@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.
- package/lib/assets/logos/LedgerLiveAltRegular.d.ts +1 -1
- package/lib/assets/logos/LedgerLiveRegular.d.ts +1 -1
- package/lib/cjs/components/asorted/Icon/FlagIcon.js +1 -1
- package/lib/cjs/components/asorted/Icon/FlagIcon.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/PaymentIcon.js +1 -1
- package/lib/cjs/components/asorted/Icon/PaymentIcon.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/ProviderIcon.js +15 -11
- package/lib/cjs/components/asorted/Icon/ProviderIcon.js.map +2 -2
- package/lib/components/Chart/index.d.ts +1 -1
- package/lib/components/Chart/types.d.ts +3 -3
- package/lib/components/Table/index.d.ts +1 -1
- package/lib/components/Table/stories.helper.d.ts +2 -2
- package/lib/components/Tag/index.d.ts +3 -3
- package/lib/components/asorted/Divider/index.d.ts +1 -1
- package/lib/components/asorted/Icon/BoxedIcon.d.ts +3 -3
- package/lib/components/asorted/Icon/CryptoIcon.d.ts +1 -1
- package/lib/components/asorted/Icon/FlagIcon.d.ts +2 -2
- package/lib/components/asorted/Icon/FlagIcon.js +1 -1
- package/lib/components/asorted/Icon/Icon.d.ts +1 -1
- package/lib/components/asorted/Icon/PaymentIcon.d.ts +3 -3
- package/lib/components/asorted/Icon/PaymentIcon.js +1 -1
- package/lib/components/asorted/Icon/ProviderIcon.d.ts +3 -3
- package/lib/components/asorted/Icon/ProviderIcon.js +12 -9
- package/lib/components/asorted/Text/index.d.ts +2 -2
- package/lib/components/cards/Carousel/Slide.d.ts +1 -1
- package/lib/components/cards/Carousel/index.d.ts +1 -1
- package/lib/components/cta/Button/index.d.ts +3 -3
- package/lib/components/cta/Link/index.d.ts +1 -1
- package/lib/components/form/BaseInput/index.d.ts +4 -4
- package/lib/components/form/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/form/Dropdown/index.d.ts +1 -1
- package/lib/components/form/DropdownGeneric/index.d.ts +2 -2
- package/lib/components/form/LegendInput/index.d.ts +1 -1
- package/lib/components/form/Radio/RadioElement.d.ts +2 -2
- package/lib/components/form/Radio/RadioListElement.d.ts +3 -3
- package/lib/components/form/Radio/index.d.ts +1 -1
- package/lib/components/form/SelectInput/Option.d.ts +2 -2
- package/lib/components/form/SelectInput/ValueContainer.d.ts +1 -1
- package/lib/components/form/SelectInput/VirtualMenuList.d.ts +1 -1
- package/lib/components/form/SelectInput/index.d.ts +2 -2
- package/lib/components/form/SplitInput/index.d.ts +4 -4
- package/lib/components/form/Switch/Switch.d.ts +1 -1
- package/lib/components/helpers.d.ts +1 -1
- package/lib/components/layout/Box/index.d.ts +1 -1
- package/lib/components/layout/Flex/index.d.ts +1 -1
- package/lib/components/layout/List/VerticalTimeline/TimelineIndicator.d.ts +1 -1
- package/lib/components/layout/List/VerticalTimeline/TimelineItem.d.ts +1 -1
- package/lib/components/layout/List/VerticalTimeline/index.d.ts +3 -3
- package/lib/components/layout/Popin/index.d.ts +1 -1
- package/lib/components/loaders/InfiniteLoader/index.d.ts +1 -1
- package/lib/components/message/Alert/index.d.ts +2 -2
- package/lib/components/message/Log/index.d.ts +1 -1
- package/lib/components/message/Notification/Badge.d.ts +1 -1
- package/lib/components/message/Notification/index.d.ts +1 -1
- package/lib/components/message/Tip/index.d.ts +1 -1
- package/lib/components/message/Tooltip/index.d.ts +1 -1
- package/lib/components/navigation/Aside/index.d.ts +1 -1
- package/lib/components/navigation/Breadcrumb/index.d.ts +4 -4
- package/lib/components/navigation/FlowStepper/index.d.ts +7 -7
- package/lib/components/navigation/Header/index.d.ts +1 -1
- package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts +1 -1
- package/lib/components/navigation/progress/Stepper/index.d.ts +3 -3
- package/lib/components/navigation/sideBar/Item/Item.d.ts +1 -1
- package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts +1 -1
- package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts +1 -1
- package/lib/components/navigation/sideBar/index.d.ts +1 -1
- package/lib/components/styled.d.ts +1 -1
- package/lib/components/tabs/Bar/index.d.ts +1 -1
- package/lib/components/tabs/Chip/index.d.ts +1 -1
- package/lib/components/tabs/Pill/index.d.ts +1 -1
- package/lib/components/tabs/Tabs/index.d.ts +1 -1
- package/lib/components/transitions/TransitionInOut.d.ts +1 -1
- package/lib/components/transitions/TransitionScale.d.ts +1 -1
- package/lib/components/transitions/TransitionSlide.d.ts +1 -1
- package/lib/styles/InvertTheme.d.ts +1 -1
- package/lib/styles/global.d.ts +1 -1
- package/lib/styles/theme.d.ts +4 -4
- package/package.json +5 -5
- package/lib/assets/providersFavicons/Aave.png +0 -0
- package/lib/assets/providersFavicons/Baanx.png +0 -0
- package/lib/assets/providersFavicons/Banxa.png +0 -0
- package/lib/assets/providersFavicons/Bitrefill.png +0 -0
- package/lib/assets/providersFavicons/BtcDirect.png +0 -0
- package/lib/assets/providersFavicons/Changelly.png +0 -0
- package/lib/assets/providersFavicons/CoinGecko.png +0 -0
- package/lib/assets/providersFavicons/Coinify.png +0 -0
- package/lib/assets/providersFavicons/Compound.png +0 -0
- package/lib/assets/providersFavicons/Deversifi.png +0 -0
- package/lib/assets/providersFavicons/Ftx.png +0 -0
- package/lib/assets/providersFavicons/Ftxus.png +0 -0
- package/lib/assets/providersFavicons/Kiln.png +0 -0
- package/lib/assets/providersFavicons/LedgerBlack.png +0 -0
- package/lib/assets/providersFavicons/LedgerCard.png +0 -0
- package/lib/assets/providersFavicons/LedgerWhite.png +0 -0
- package/lib/assets/providersFavicons/Lido.png +0 -0
- package/lib/assets/providersFavicons/LoopiPay.png +0 -0
- package/lib/assets/providersFavicons/Mercuryo.png +0 -0
- package/lib/assets/providersFavicons/Moonpay.png +0 -0
- package/lib/assets/providersFavicons/Opensea.png +0 -0
- package/lib/assets/providersFavicons/PancakeSwap.png +0 -0
- package/lib/assets/providersFavicons/Paraswap.png +0 -0
- package/lib/assets/providersFavicons/Poap.png +0 -0
- package/lib/assets/providersFavicons/RainbowMe.png +0 -0
- package/lib/assets/providersFavicons/Ramp.png +0 -0
- package/lib/assets/providersFavicons/Rarible.png +0 -0
- package/lib/assets/providersFavicons/Simplex.png +0 -0
- package/lib/assets/providersFavicons/SushiSwap.png +0 -0
- package/lib/assets/providersFavicons/Transak.png +0 -0
- package/lib/assets/providersFavicons/Wyre.png +0 -0
- package/lib/assets/providersFavicons/Zerion.png +0 -0
- package/lib/assets/providersFavicons/_1Inch.png +0 -0
- package/lib/cjs/assets/providersFavicons/Aave.png +0 -0
- package/lib/cjs/assets/providersFavicons/Baanx.png +0 -0
- package/lib/cjs/assets/providersFavicons/Banxa.png +0 -0
- package/lib/cjs/assets/providersFavicons/Bitrefill.png +0 -0
- package/lib/cjs/assets/providersFavicons/BtcDirect.png +0 -0
- package/lib/cjs/assets/providersFavicons/Changelly.png +0 -0
- package/lib/cjs/assets/providersFavicons/CoinGecko.png +0 -0
- package/lib/cjs/assets/providersFavicons/Coinify.png +0 -0
- package/lib/cjs/assets/providersFavicons/Compound.png +0 -0
- package/lib/cjs/assets/providersFavicons/Deversifi.png +0 -0
- package/lib/cjs/assets/providersFavicons/Ftx.png +0 -0
- package/lib/cjs/assets/providersFavicons/Ftxus.png +0 -0
- package/lib/cjs/assets/providersFavicons/Kiln.png +0 -0
- package/lib/cjs/assets/providersFavicons/LedgerBlack.png +0 -0
- package/lib/cjs/assets/providersFavicons/LedgerCard.png +0 -0
- package/lib/cjs/assets/providersFavicons/LedgerWhite.png +0 -0
- package/lib/cjs/assets/providersFavicons/Lido.png +0 -0
- package/lib/cjs/assets/providersFavicons/LoopiPay.png +0 -0
- package/lib/cjs/assets/providersFavicons/Mercuryo.png +0 -0
- package/lib/cjs/assets/providersFavicons/Moonpay.png +0 -0
- package/lib/cjs/assets/providersFavicons/Opensea.png +0 -0
- package/lib/cjs/assets/providersFavicons/PancakeSwap.png +0 -0
- package/lib/cjs/assets/providersFavicons/Paraswap.png +0 -0
- package/lib/cjs/assets/providersFavicons/Poap.png +0 -0
- package/lib/cjs/assets/providersFavicons/RainbowMe.png +0 -0
- package/lib/cjs/assets/providersFavicons/Ramp.png +0 -0
- package/lib/cjs/assets/providersFavicons/Rarible.png +0 -0
- package/lib/cjs/assets/providersFavicons/Simplex.png +0 -0
- package/lib/cjs/assets/providersFavicons/SushiSwap.png +0 -0
- package/lib/cjs/assets/providersFavicons/Transak.png +0 -0
- package/lib/cjs/assets/providersFavicons/Wyre.png +0 -0
- package/lib/cjs/assets/providersFavicons/Zerion.png +0 -0
- package/lib/cjs/assets/providersFavicons/_1Inch.png +0 -0
- package/lib/cjs/components/asorted/Icon/providerFaviconsIndex.js +0 -92
- package/lib/cjs/components/asorted/Icon/providerFaviconsIndex.js.map +0 -7
- package/lib/components/asorted/Icon/providerFaviconsIndex.d.ts +0 -33
- 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
|
|
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
|
|
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
|
|
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,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { BaseStyledProps } from "src/components/styled";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
4
|
-
|
|
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
|
|
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
|
|
3
|
+
export type Props = {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
icon: JSX.Element;
|
|
6
6
|
} & React.ComponentProps<typeof Wrapper>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TippyProps } from "@tippyjs/react";
|
|
3
|
-
|
|
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
|
|
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
|
|
2
|
+
export type Props = {
|
|
3
3
|
segments: Segment[];
|
|
4
4
|
onChange: (values: string[]) => void;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type Element = {
|
|
7
7
|
label: string;
|
|
8
8
|
value: string;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type Elements = {
|
|
11
11
|
value: Element;
|
|
12
12
|
options: Element[];
|
|
13
13
|
};
|
|
14
|
-
export
|
|
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
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
|
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
|
-
|
|
111
|
-
export
|
|
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
|
*/
|
|
@@ -4,8 +4,8 @@ import { FlexBoxProps } from "../../../layout/Flex";
|
|
|
4
4
|
/**
|
|
5
5
|
* The state of a progress bar step.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
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
|
|
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
|
|
3
|
+
export type ItemType = {
|
|
4
4
|
label: string;
|
|
5
5
|
children: JSX.Element;
|
|
6
6
|
onClick: () => void;
|
|
@@ -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
|
|
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
|
*/
|
|
@@ -6,7 +6,7 @@ export interface TabContent {
|
|
|
6
6
|
badge?: string | number;
|
|
7
7
|
Component: React.ReactFragment;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3
|
+
type TransitionSlideProps = Partial<CSSTransitionProps & {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
fixed: boolean;
|
|
6
6
|
reverseExit?: boolean;
|
package/lib/styles/global.d.ts
CHANGED
package/lib/styles/theme.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DefaultTheme } from "styled-components";
|
|
2
2
|
import { ColorPalette } from "@ledgerhq/ui-shared";
|
|
3
|
-
export
|
|
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
|
|
7
|
-
export
|
|
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
|
|
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",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|