@ledgerhq/native-ui 0.20.4-next.0 → 0.20.5-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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IconOrElementType, IconType } from "./type";
|
|
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;
|
|
5
5
|
export declare const DEFAULT_BADGE_SIZE = 20;
|
|
@@ -37,13 +37,13 @@ export type IconBoxProps = {
|
|
|
37
37
|
};
|
|
38
38
|
export type BoxedIconProps = IconBoxProps & {
|
|
39
39
|
/**
|
|
40
|
-
* Component that takes `{size?: number; color?: string}` as props. Will be rendered at the top right with the size provided in `iconSize` or a default size.
|
|
40
|
+
* Component that takes `{size?: number | "XS/S/M/L/XL"; color?: string}` as props. Will be rendered at the top right with the size provided in `iconSize` or a default size.
|
|
41
41
|
*/
|
|
42
|
-
Icon: IconOrElementType;
|
|
42
|
+
Icon: IconOrElementType | NewIconOrElementType;
|
|
43
43
|
/**
|
|
44
44
|
* Icon size, will be applied to the component provided in the `Icon` prop
|
|
45
45
|
*/
|
|
46
|
-
iconSize?: number;
|
|
46
|
+
iconSize?: number | NewIconProps["size"];
|
|
47
47
|
/**
|
|
48
48
|
* Icon color, will be applied to the component provided in the `Icon` prop
|
|
49
49
|
*/
|
|
@@ -4,4 +4,11 @@ export type IconProps = {
|
|
|
4
4
|
color?: string;
|
|
5
5
|
};
|
|
6
6
|
export type IconType = React.ComponentType<IconProps>;
|
|
7
|
+
export type NewIconProps = {
|
|
8
|
+
size?: "XS" | "S" | "M" | "L" | "XL";
|
|
9
|
+
color?: string;
|
|
10
|
+
style?: object;
|
|
11
|
+
};
|
|
12
|
+
export type NewIconType = React.ComponentType<NewIconProps>;
|
|
7
13
|
export type IconOrElementType = IconType | React.ReactElement;
|
|
14
|
+
export type NewIconOrElementType = NewIconType | React.ReactElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/native-ui",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.5-next.0",
|
|
4
4
|
"description": "Ledger Live - Mobile UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"rn-range-slider": "2.1.1",
|
|
47
47
|
"styled-system": "^5.1.5",
|
|
48
48
|
"victory-native": "^35.5.5",
|
|
49
|
-
"@ledgerhq/crypto-icons-ui": "^0.5.1
|
|
50
|
-
"@ledgerhq/icons-ui": "^0.4.
|
|
51
|
-
"@ledgerhq/ui-shared": "^0.2.1
|
|
49
|
+
"@ledgerhq/crypto-icons-ui": "^0.5.1",
|
|
50
|
+
"@ledgerhq/icons-ui": "^0.4.4-next.0",
|
|
51
|
+
"@ledgerhq/ui-shared": "^0.2.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@types/react": "*",
|