@ledgerhq/native-ui 0.22.5-next.0 → 0.22.6-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.
|
@@ -17,8 +17,8 @@ const Switch = ({ checked, onChange, disabled, label, testID }) => {
|
|
|
17
17
|
return (React.createElement(Pressable, { onPress: handlePress },
|
|
18
18
|
React.createElement(NativeSwitch, { trackColor: {
|
|
19
19
|
false: colors.neutral.c50,
|
|
20
|
-
true: colors.primary.
|
|
21
|
-
}, thumbColor: colors.neutral.
|
|
20
|
+
true: colors.primary.c70,
|
|
21
|
+
}, thumbColor: colors.neutral.c100, onValueChange: onChange, value: checked, disabled: disabled, ios_backgroundColor: colors.neutral.c50, testID: testID }),
|
|
22
22
|
label ? (React.createElement(Text, { variant: "body", color: checked ? colors.primary.c90 : colors.neutral.c100, style: { marginLeft: space[3], flexShrink: 1 } }, label)) : null));
|
|
23
23
|
};
|
|
24
24
|
export default Switch;
|
|
@@ -4,6 +4,7 @@ const bracketSizes = {
|
|
|
4
4
|
h1Inter: 32,
|
|
5
5
|
h2: 28,
|
|
6
6
|
h3: 20,
|
|
7
|
+
h3Inter: 24,
|
|
7
8
|
h4: 18,
|
|
8
9
|
h5: 18,
|
|
9
10
|
large: 20,
|
|
@@ -45,6 +46,11 @@ export function getTextTypeStyle({ bracket }) {
|
|
|
45
46
|
paddingTop: bracket ? 5 : 0,
|
|
46
47
|
textTransform: "uppercase",
|
|
47
48
|
},
|
|
49
|
+
h3Inter: {
|
|
50
|
+
fontFamily: "Inter",
|
|
51
|
+
lineHeight: "32.4px",
|
|
52
|
+
paddingTop: bracket ? 5 : 0,
|
|
53
|
+
},
|
|
48
54
|
h4: {
|
|
49
55
|
fontFamily: "Inter",
|
|
50
56
|
},
|
package/lib/styles/theme.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ColorPalette } from "@ledgerhq/ui-shared";
|
|
2
2
|
export declare const space: number[];
|
|
3
|
-
export declare const textVariants: readonly ["h1", "h1Inter", "h2", "h3", "h4", "h5", "large", "largeLineHeight", "body", "bodyLineHeight", "paragraph", "paragraphLineHeight", "small", "subtitle", "tiny", "tinyAlpha"];
|
|
3
|
+
export declare const textVariants: readonly ["h1", "h1Inter", "h2", "h3", "h3Inter", "h4", "h5", "large", "largeLineHeight", "body", "bodyLineHeight", "paragraph", "paragraphLineHeight", "small", "subtitle", "tiny", "tinyAlpha"];
|
|
4
4
|
export type TextVariants = (typeof textVariants)[number];
|
|
5
5
|
export type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;
|
|
6
|
-
export declare const fontSizes: ThemeScale<number, "h1" | "h1Inter" | "h2" | "h3" | "h4" | "h5" | "large" | "largeLineHeight" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "subtitle" | "tiny" | "tinyAlpha">;
|
|
6
|
+
export declare const fontSizes: ThemeScale<number, "h1" | "h1Inter" | "h2" | "h3" | "h3Inter" | "h4" | "h5" | "large" | "largeLineHeight" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "subtitle" | "tiny" | "tinyAlpha">;
|
|
7
7
|
export declare const radii: number[];
|
|
8
8
|
export declare const zIndexes: number[];
|
|
9
9
|
export type Theme = {
|
package/lib/styles/theme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/native-ui",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.6-next.0",
|
|
4
4
|
"description": "Ledger Live - Mobile UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"rn-range-slider": "2.1.1",
|
|
43
43
|
"styled-system": "^5.1.5",
|
|
44
44
|
"victory-native": "^35.5.5",
|
|
45
|
-
"@ledgerhq/crypto-icons-ui": "^1.0.1
|
|
45
|
+
"@ledgerhq/crypto-icons-ui": "^1.0.1",
|
|
46
46
|
"@ledgerhq/icons-ui": "^0.6.2",
|
|
47
47
|
"@ledgerhq/ui-shared": "^0.2.1"
|
|
48
48
|
},
|