@ledgerhq/native-ui 0.7.13 → 0.7.16

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.
@@ -3,6 +3,7 @@ const bracketSizes = {
3
3
  h2: 28,
4
4
  h3: 20,
5
5
  h4: 18,
6
+ h5: 18,
6
7
  large: 20,
7
8
  body: 20,
8
9
  bodyLineHeight: 20,
@@ -37,7 +38,9 @@ export function getTextTypeStyle({ bracket }) {
37
38
  },
38
39
  h4: {
39
40
  fontFamily: "Inter",
40
- textTransform: "uppercase",
41
+ },
42
+ h5: {
43
+ fontFamily: "Inter",
41
44
  },
42
45
  large: {
43
46
  fontFamily: "Inter",
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { BaseTextProps as TextProps } from "../../Text";
3
3
  import { FlexBoxProps } from "../../Layout/Flex";
4
4
  export declare type Props = React.PropsWithChildren<FlexBoxProps & {
5
- extraTextProps?: TextProps;
5
+ extraTextProps?: Omit<TextProps, "children">;
6
6
  }>;
7
7
  declare function Log({ children, extraTextProps }: Props): JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof Log>;
@@ -6,6 +6,7 @@ import Text from "../../Text";
6
6
  import CloseMedium from "@ledgerhq/icons-ui/native/CloseMedium";
7
7
  import { Flex } from "../../Layout";
8
8
  import { space } from "styled-system";
9
+ import { ExternalLinkMedium } from "@ledgerhq/icons-ui/native";
9
10
  const NotificationContainer = styled.View `
10
11
  display: flex;
11
12
  width: 100%;
@@ -35,7 +36,9 @@ export default function Notification({ Icon, iconColor, variant = "primary", num
35
36
  !!subtitle && (React.createElement(Text, { variant: "body", fontWeight: "medium", color: variant === "primary" ? colors.neutral.c00 : colors.neutral.c80, mt: 2 }, subtitle)),
36
37
  linkText && onLinkPress && (React.createElement(Flex, { mt: 3 },
37
38
  React.createElement(TouchableOpacity, { onPress: onLinkPress },
38
- React.createElement(Text, { variant: "body", fontWeight: "semiBold", color: textColor }, linkText))))),
39
+ React.createElement(Flex, { flexDirection: "row", alignItems: "center" },
40
+ React.createElement(Text, { variant: "body", fontWeight: "semiBold", color: textColor, mr: 3 }, linkText),
41
+ React.createElement(ExternalLinkMedium, { size: 16, color: textColor })))))),
39
42
  onClose && (React.createElement(FlexBox, { marginLeft: "auto", pl: 16 },
40
43
  React.createElement(ClosePressableExtendedBounds, { onPress: onClose },
41
44
  React.createElement(CloseMedium, { size: 14, color: textColor }))))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.7.13",
3
+ "version": "0.7.16",
4
4
  "description": "Ledger Live - React Native UI",
5
5
  "repository": "https://github.com/LedgerHQ/ui",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "index.js"
16
16
  ],
17
17
  "dependencies": {
18
- "@ledgerhq/icons-ui": "^0.2.3",
18
+ "@ledgerhq/icons-ui": "^0.2.4",
19
19
  "@ledgerhq/ui-shared": "^0.1.6",
20
20
  "@types/color": "^3.0.2",
21
21
  "@types/react": "^17.0.37",
package/styles/theme.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ColorPalette } from "@ledgerhq/ui-shared";
2
2
  export declare const space: number[];
3
- export declare type TextVariants = "h1" | "h2" | "h3" | "h4" | "large" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "subtitle" | "tiny";
3
+ export declare type TextVariants = "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "subtitle" | "tiny";
4
4
  export declare type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;
5
5
  export declare const fontSizes: ThemeScale<number, TextVariants>;
6
6
  export declare const radii: number[];
package/styles/theme.js CHANGED
@@ -16,7 +16,8 @@ export const fontSizes = [10, 11, 12, 13, 14, 16, 18, 24, 28];
16
16
  ] = fontSizes;
17
17
  fontSizes.bodyLineHeight = fontSizes.body;
18
18
  fontSizes.paragraphLineHeight = fontSizes.paragraph;
19
- fontSizes.h4 = fontSizes.h3;
19
+ fontSizes.h4 = fontSizes.h2;
20
+ fontSizes.h5 = fontSizes.h3;
20
21
  export const radii = [0, 4, 8];
21
22
  export const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];
22
23
  const theme = {