@ledgerhq/lumen-ui-rnative 0.1.56 → 0.1.58

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 (225) hide show
  1. package/dist/module/lib/Components/core/Button/Button.js +1 -1
  2. package/dist/module/lib/Components/core/Button/Button.js.map +1 -1
  3. package/dist/module/lib/Components/core/Card/Card.figma.js +17 -1
  4. package/dist/module/lib/Components/core/Card/Card.figma.js.map +1 -1
  5. package/dist/module/lib/Components/core/Card/Card.js +22 -15
  6. package/dist/module/lib/Components/core/Card/Card.js.map +1 -1
  7. package/dist/module/lib/Components/core/Card/Card.mdx +10 -1
  8. package/dist/module/lib/Components/core/Card/Card.stories.js +59 -0
  9. package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
  10. package/dist/module/lib/Components/core/Card/Card.test.js +23 -0
  11. package/dist/module/lib/Components/core/Card/Card.test.js.map +1 -1
  12. package/dist/module/lib/Components/core/IconButton/IconButton.js +1 -1
  13. package/dist/module/lib/Components/core/IconButton/IconButton.js.map +1 -1
  14. package/dist/module/lib/Components/core/Link/Link.js +91 -66
  15. package/dist/module/lib/Components/core/Link/Link.js.map +1 -1
  16. package/dist/module/lib/Components/core/Link/Link.mdx +23 -2
  17. package/dist/module/lib/Components/core/Link/Link.test.js +34 -7
  18. package/dist/module/lib/Components/core/Link/Link.test.js.map +1 -1
  19. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.js +1 -1
  20. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.js.map +1 -1
  21. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.test.js +29 -0
  22. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.test.js.map +1 -1
  23. package/dist/module/lib/Components/core/Trend/Trend.js +1 -2
  24. package/dist/module/lib/Components/core/Trend/Trend.js.map +1 -1
  25. package/dist/module/lib/Components/core/Trend/Trend.test.js +5 -5
  26. package/dist/module/lib/Components/core/Trend/Trend.test.js.map +1 -1
  27. package/dist/module/lib/Components/{core/Button → internal/BaseButton}/BaseButton.js +1 -1
  28. package/dist/module/lib/Components/internal/BaseButton/BaseButton.js.map +1 -0
  29. package/dist/module/lib/Components/{core/Button → internal/BaseButton}/BaseButton.test.js +1 -1
  30. package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js.map +1 -0
  31. package/dist/module/lib/Components/internal/BaseButton/index.js +5 -0
  32. package/dist/module/lib/Components/internal/BaseButton/index.js.map +1 -0
  33. package/dist/module/lib/Components/internal/BaseButton/types.js +4 -0
  34. package/dist/module/lib/Components/internal/BaseButton/types.js.map +1 -0
  35. package/dist/module/lib/Components/symbols/icons/CalendarRefresh.js +50 -0
  36. package/dist/module/lib/Components/symbols/icons/CalendarRefresh.js.map +1 -0
  37. package/dist/module/lib/Components/symbols/icons/CodeShield.js +50 -0
  38. package/dist/module/lib/Components/symbols/icons/CodeShield.js.map +1 -0
  39. package/dist/module/lib/Components/symbols/icons/CoinStacked.js +50 -0
  40. package/dist/module/lib/Components/symbols/icons/CoinStacked.js.map +1 -0
  41. package/dist/module/lib/Components/symbols/icons/Craft.js +50 -0
  42. package/dist/module/lib/Components/symbols/icons/Craft.js.map +1 -0
  43. package/dist/module/lib/Components/symbols/icons/Equal.js +49 -0
  44. package/dist/module/lib/Components/symbols/icons/Equal.js.map +1 -0
  45. package/dist/module/lib/Components/symbols/icons/File.js +50 -0
  46. package/dist/module/lib/Components/symbols/icons/File.js.map +1 -0
  47. package/dist/module/lib/Components/symbols/icons/FileShield.js +50 -0
  48. package/dist/module/lib/Components/symbols/icons/FileShield.js.map +1 -0
  49. package/dist/module/lib/Components/symbols/icons/Fire.js +51 -0
  50. package/dist/module/lib/Components/symbols/icons/Fire.js.map +1 -0
  51. package/dist/module/lib/Components/symbols/icons/Handshake.js +50 -0
  52. package/dist/module/lib/Components/symbols/icons/Handshake.js.map +1 -0
  53. package/dist/module/lib/Components/symbols/icons/MailShield.js +50 -0
  54. package/dist/module/lib/Components/symbols/icons/MailShield.js.map +1 -0
  55. package/dist/module/lib/Components/symbols/icons/Merge.js +50 -0
  56. package/dist/module/lib/Components/symbols/icons/Merge.js.map +1 -0
  57. package/dist/module/lib/Components/symbols/icons/Minimize.js +50 -0
  58. package/dist/module/lib/Components/symbols/icons/Minimize.js.map +1 -0
  59. package/dist/module/lib/Components/symbols/icons/Nested.js +50 -0
  60. package/dist/module/lib/Components/symbols/icons/Nested.js.map +1 -0
  61. package/dist/module/lib/Components/symbols/icons/NotEqual.js +49 -0
  62. package/dist/module/lib/Components/symbols/icons/NotEqual.js.map +1 -0
  63. package/dist/module/lib/Components/symbols/icons/PeopleShield.js +50 -0
  64. package/dist/module/lib/Components/symbols/icons/PeopleShield.js.map +1 -0
  65. package/dist/module/lib/Components/symbols/icons/Pin.js +50 -0
  66. package/dist/module/lib/Components/symbols/icons/Pin.js.map +1 -0
  67. package/dist/module/lib/Components/symbols/icons/PinFill.js +47 -0
  68. package/dist/module/lib/Components/symbols/icons/PinFill.js.map +1 -0
  69. package/dist/module/lib/Components/symbols/icons/Receive.js +50 -0
  70. package/dist/module/lib/Components/symbols/icons/Receive.js.map +1 -0
  71. package/dist/module/lib/Components/symbols/icons/Retry.js +50 -0
  72. package/dist/module/lib/Components/symbols/icons/Retry.js.map +1 -0
  73. package/dist/module/lib/Components/symbols/icons/Send.js +50 -0
  74. package/dist/module/lib/Components/symbols/icons/Send.js.map +1 -0
  75. package/dist/module/lib/Components/symbols/icons/Servers.js +50 -0
  76. package/dist/module/lib/Components/symbols/icons/Servers.js.map +1 -0
  77. package/dist/module/lib/Components/symbols/icons/SubArrow.js +50 -0
  78. package/dist/module/lib/Components/symbols/icons/SubArrow.js.map +1 -0
  79. package/dist/module/lib/Components/symbols/icons/UsbCircleFill.js +52 -0
  80. package/dist/module/lib/Components/symbols/icons/UsbCircleFill.js.map +1 -0
  81. package/dist/module/lib/Components/symbols/icons/WarningCircleFill.js +47 -0
  82. package/dist/module/lib/Components/symbols/icons/WarningCircleFill.js.map +1 -0
  83. package/dist/module/lib/Components/symbols/index.js +24 -0
  84. package/dist/module/lib/Components/symbols/index.js.map +1 -1
  85. package/dist/module/lib/utils/index.js +0 -1
  86. package/dist/module/lib/utils/index.js.map +1 -1
  87. package/dist/typescript/src/lib/Components/core/Button/types.d.ts +7 -38
  88. package/dist/typescript/src/lib/Components/core/Button/types.d.ts.map +1 -1
  89. package/dist/typescript/src/lib/Components/core/Card/Card.d.ts +1 -1
  90. package/dist/typescript/src/lib/Components/core/Card/Card.d.ts.map +1 -1
  91. package/dist/typescript/src/lib/Components/core/Card/types.d.ts +6 -0
  92. package/dist/typescript/src/lib/Components/core/Card/types.d.ts.map +1 -1
  93. package/dist/typescript/src/lib/Components/core/IconButton/types.d.ts +1 -1
  94. package/dist/typescript/src/lib/Components/core/IconButton/types.d.ts.map +1 -1
  95. package/dist/typescript/src/lib/Components/core/Link/Link.d.ts +4 -1
  96. package/dist/typescript/src/lib/Components/core/Link/Link.d.ts.map +1 -1
  97. package/dist/typescript/src/lib/Components/core/Link/types.d.ts +11 -4
  98. package/dist/typescript/src/lib/Components/core/Link/types.d.ts.map +1 -1
  99. package/dist/typescript/src/lib/Components/core/MediaButton/types.d.ts +2 -6
  100. package/dist/typescript/src/lib/Components/core/MediaButton/types.d.ts.map +1 -1
  101. package/dist/typescript/src/lib/Components/core/Trend/Trend.d.ts.map +1 -1
  102. package/dist/typescript/src/lib/Components/internal/BaseButton/BaseButton.d.ts.map +1 -0
  103. package/dist/typescript/src/lib/Components/internal/BaseButton/index.d.ts +3 -0
  104. package/dist/typescript/src/lib/Components/internal/BaseButton/index.d.ts.map +1 -0
  105. package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts +39 -0
  106. package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts.map +1 -0
  107. package/dist/typescript/src/lib/Components/symbols/icons/CalendarRefresh.d.ts +35 -0
  108. package/dist/typescript/src/lib/Components/symbols/icons/CalendarRefresh.d.ts.map +1 -0
  109. package/dist/typescript/src/lib/Components/symbols/icons/CodeShield.d.ts +35 -0
  110. package/dist/typescript/src/lib/Components/symbols/icons/CodeShield.d.ts.map +1 -0
  111. package/dist/typescript/src/lib/Components/symbols/icons/CoinStacked.d.ts +35 -0
  112. package/dist/typescript/src/lib/Components/symbols/icons/CoinStacked.d.ts.map +1 -0
  113. package/dist/typescript/src/lib/Components/symbols/icons/Craft.d.ts +35 -0
  114. package/dist/typescript/src/lib/Components/symbols/icons/Craft.d.ts.map +1 -0
  115. package/dist/typescript/src/lib/Components/symbols/icons/Equal.d.ts +35 -0
  116. package/dist/typescript/src/lib/Components/symbols/icons/Equal.d.ts.map +1 -0
  117. package/dist/typescript/src/lib/Components/symbols/icons/File.d.ts +35 -0
  118. package/dist/typescript/src/lib/Components/symbols/icons/File.d.ts.map +1 -0
  119. package/dist/typescript/src/lib/Components/symbols/icons/FileShield.d.ts +35 -0
  120. package/dist/typescript/src/lib/Components/symbols/icons/FileShield.d.ts.map +1 -0
  121. package/dist/typescript/src/lib/Components/symbols/icons/Fire.d.ts +35 -0
  122. package/dist/typescript/src/lib/Components/symbols/icons/Fire.d.ts.map +1 -0
  123. package/dist/typescript/src/lib/Components/symbols/icons/Handshake.d.ts +35 -0
  124. package/dist/typescript/src/lib/Components/symbols/icons/Handshake.d.ts.map +1 -0
  125. package/dist/typescript/src/lib/Components/symbols/icons/MailShield.d.ts +35 -0
  126. package/dist/typescript/src/lib/Components/symbols/icons/MailShield.d.ts.map +1 -0
  127. package/dist/typescript/src/lib/Components/symbols/icons/Merge.d.ts +35 -0
  128. package/dist/typescript/src/lib/Components/symbols/icons/Merge.d.ts.map +1 -0
  129. package/dist/typescript/src/lib/Components/symbols/icons/Minimize.d.ts +35 -0
  130. package/dist/typescript/src/lib/Components/symbols/icons/Minimize.d.ts.map +1 -0
  131. package/dist/typescript/src/lib/Components/symbols/icons/Nested.d.ts +35 -0
  132. package/dist/typescript/src/lib/Components/symbols/icons/Nested.d.ts.map +1 -0
  133. package/dist/typescript/src/lib/Components/symbols/icons/NotEqual.d.ts +35 -0
  134. package/dist/typescript/src/lib/Components/symbols/icons/NotEqual.d.ts.map +1 -0
  135. package/dist/typescript/src/lib/Components/symbols/icons/PeopleShield.d.ts +35 -0
  136. package/dist/typescript/src/lib/Components/symbols/icons/PeopleShield.d.ts.map +1 -0
  137. package/dist/typescript/src/lib/Components/symbols/icons/Pin.d.ts +35 -0
  138. package/dist/typescript/src/lib/Components/symbols/icons/Pin.d.ts.map +1 -0
  139. package/dist/typescript/src/lib/Components/symbols/icons/PinFill.d.ts +35 -0
  140. package/dist/typescript/src/lib/Components/symbols/icons/PinFill.d.ts.map +1 -0
  141. package/dist/typescript/src/lib/Components/symbols/icons/Receive.d.ts +35 -0
  142. package/dist/typescript/src/lib/Components/symbols/icons/Receive.d.ts.map +1 -0
  143. package/dist/typescript/src/lib/Components/symbols/icons/Retry.d.ts +35 -0
  144. package/dist/typescript/src/lib/Components/symbols/icons/Retry.d.ts.map +1 -0
  145. package/dist/typescript/src/lib/Components/symbols/icons/Send.d.ts +35 -0
  146. package/dist/typescript/src/lib/Components/symbols/icons/Send.d.ts.map +1 -0
  147. package/dist/typescript/src/lib/Components/symbols/icons/Servers.d.ts +35 -0
  148. package/dist/typescript/src/lib/Components/symbols/icons/Servers.d.ts.map +1 -0
  149. package/dist/typescript/src/lib/Components/symbols/icons/SubArrow.d.ts +35 -0
  150. package/dist/typescript/src/lib/Components/symbols/icons/SubArrow.d.ts.map +1 -0
  151. package/dist/typescript/src/lib/Components/symbols/icons/UsbCircleFill.d.ts +35 -0
  152. package/dist/typescript/src/lib/Components/symbols/icons/UsbCircleFill.d.ts.map +1 -0
  153. package/dist/typescript/src/lib/Components/symbols/icons/WarningCircleFill.d.ts +35 -0
  154. package/dist/typescript/src/lib/Components/symbols/icons/WarningCircleFill.d.ts.map +1 -0
  155. package/dist/typescript/src/lib/Components/symbols/index.d.ts +24 -0
  156. package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
  157. package/dist/typescript/src/lib/utils/index.d.ts +0 -1
  158. package/dist/typescript/src/lib/utils/index.d.ts.map +1 -1
  159. package/dist/typescript/src/styles/types/create.types.d.ts +1 -3
  160. package/dist/typescript/src/styles/types/create.types.d.ts.map +1 -1
  161. package/package.json +3 -3
  162. package/src/lib/Components/core/Button/Button.tsx +1 -1
  163. package/src/lib/Components/core/Button/types.ts +7 -42
  164. package/src/lib/Components/core/Card/Card.figma.tsx +20 -0
  165. package/src/lib/Components/core/Card/Card.mdx +10 -1
  166. package/src/lib/Components/core/Card/Card.stories.tsx +44 -0
  167. package/src/lib/Components/core/Card/Card.test.tsx +25 -0
  168. package/src/lib/Components/core/Card/Card.tsx +26 -17
  169. package/src/lib/Components/core/Card/types.ts +7 -0
  170. package/src/lib/Components/core/IconButton/IconButton.tsx +1 -1
  171. package/src/lib/Components/core/IconButton/types.ts +1 -1
  172. package/src/lib/Components/core/Link/Link.mdx +23 -2
  173. package/src/lib/Components/core/Link/Link.test.tsx +64 -17
  174. package/src/lib/Components/core/Link/Link.tsx +92 -87
  175. package/src/lib/Components/core/Link/types.ts +11 -4
  176. package/src/lib/Components/core/MediaBanner/MediaBanner.test.tsx +31 -0
  177. package/src/lib/Components/core/MediaBanner/MediaBanner.tsx +1 -1
  178. package/src/lib/Components/core/MediaButton/types.ts +3 -6
  179. package/src/lib/Components/core/Trend/Trend.test.tsx +4 -5
  180. package/src/lib/Components/core/Trend/Trend.tsx +1 -3
  181. package/src/lib/Components/{core/Button → internal/BaseButton}/BaseButton.test.tsx +1 -1
  182. package/src/lib/Components/{core/Button → internal/BaseButton}/BaseButton.tsx +1 -1
  183. package/src/lib/Components/internal/BaseButton/index.ts +2 -0
  184. package/src/lib/Components/internal/BaseButton/types.ts +42 -0
  185. package/src/lib/Components/symbols/icons/CalendarRefresh.tsx +45 -0
  186. package/src/lib/Components/symbols/icons/CodeShield.tsx +45 -0
  187. package/src/lib/Components/symbols/icons/CoinStacked.tsx +45 -0
  188. package/src/lib/Components/symbols/icons/Craft.tsx +45 -0
  189. package/src/lib/Components/symbols/icons/Equal.tsx +44 -0
  190. package/src/lib/Components/symbols/icons/File.tsx +45 -0
  191. package/src/lib/Components/symbols/icons/FileShield.tsx +45 -0
  192. package/src/lib/Components/symbols/icons/Fire.tsx +46 -0
  193. package/src/lib/Components/symbols/icons/Handshake.tsx +45 -0
  194. package/src/lib/Components/symbols/icons/MailShield.tsx +45 -0
  195. package/src/lib/Components/symbols/icons/Merge.tsx +45 -0
  196. package/src/lib/Components/symbols/icons/Minimize.tsx +45 -0
  197. package/src/lib/Components/symbols/icons/Nested.tsx +45 -0
  198. package/src/lib/Components/symbols/icons/NotEqual.tsx +44 -0
  199. package/src/lib/Components/symbols/icons/PeopleShield.tsx +45 -0
  200. package/src/lib/Components/symbols/icons/Pin.tsx +45 -0
  201. package/src/lib/Components/symbols/icons/PinFill.tsx +42 -0
  202. package/src/lib/Components/symbols/icons/Receive.tsx +45 -0
  203. package/src/lib/Components/symbols/icons/Retry.tsx +45 -0
  204. package/src/lib/Components/symbols/icons/Send.tsx +45 -0
  205. package/src/lib/Components/symbols/icons/Servers.tsx +45 -0
  206. package/src/lib/Components/symbols/icons/SubArrow.tsx +45 -0
  207. package/src/lib/Components/symbols/icons/UsbCircleFill.tsx +48 -0
  208. package/src/lib/Components/symbols/icons/WarningCircleFill.tsx +42 -0
  209. package/src/lib/Components/symbols/index.ts +24 -0
  210. package/src/lib/utils/index.ts +0 -1
  211. package/src/styles/types/create.types.ts +6 -6
  212. package/dist/module/lib/Components/core/Button/BaseButton.js.map +0 -1
  213. package/dist/module/lib/Components/core/Button/BaseButton.test.js.map +0 -1
  214. package/dist/module/lib/utils/react/extractTextFromChildren.js +0 -23
  215. package/dist/module/lib/utils/react/extractTextFromChildren.js.map +0 -1
  216. package/dist/module/lib/utils/react/index.js +0 -4
  217. package/dist/module/lib/utils/react/index.js.map +0 -1
  218. package/dist/typescript/src/lib/Components/core/Button/BaseButton.d.ts.map +0 -1
  219. package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts +0 -8
  220. package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts.map +0 -1
  221. package/dist/typescript/src/lib/utils/react/index.d.ts +0 -2
  222. package/dist/typescript/src/lib/utils/react/index.d.ts.map +0 -1
  223. package/src/lib/utils/react/extractTextFromChildren.ts +0 -32
  224. package/src/lib/utils/react/index.ts +0 -1
  225. /package/dist/typescript/src/lib/Components/{core/Button → internal/BaseButton}/BaseButton.d.ts +0 -0
@@ -81,6 +81,37 @@ describe('MediaBanner', () => {
81
81
  );
82
82
  });
83
83
 
84
+ it('should keep a fixed height regardless of description line count', () => {
85
+ const { getByTestId, rerender } = render(
86
+ <TestWrapper>
87
+ <MediaBanner testID='media-banner' imageUrl={IMAGE_URL}>
88
+ <MediaBannerTitle>Title</MediaBannerTitle>
89
+ <MediaBannerDescription>One line</MediaBannerDescription>
90
+ </MediaBanner>
91
+ </TestWrapper>,
92
+ );
93
+
94
+ expect(getByTestId('media-banner').props.style.height).toBe(
95
+ ledgerLiveThemes.dark.sizes.s72,
96
+ );
97
+
98
+ rerender(
99
+ <TestWrapper>
100
+ <MediaBanner testID='media-banner' imageUrl={IMAGE_URL}>
101
+ <MediaBannerTitle>Title</MediaBannerTitle>
102
+ <MediaBannerDescription>
103
+ The image failed to load so the banner decided to gracefully hide
104
+ it.
105
+ </MediaBannerDescription>
106
+ </MediaBanner>
107
+ </TestWrapper>,
108
+ );
109
+
110
+ expect(getByTestId('media-banner').props.style.height).toBe(
111
+ ledgerLiveThemes.dark.sizes.s72,
112
+ );
113
+ });
114
+
84
115
  it('should render with imageUrl prop', () => {
85
116
  const { getByTestId } = render(
86
117
  <TestWrapper>
@@ -43,7 +43,7 @@ export function MediaBanner({
43
43
  borderRadius: t.borderRadius.md,
44
44
  overflow: 'hidden',
45
45
  flexDirection: 'row',
46
- minHeight: t.sizes.s72,
46
+ height: t.sizes.s72,
47
47
  userSelect: 'none',
48
48
  },
49
49
  contentWrapper: {
@@ -1,5 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { StyledPressableProps } from '../../../../styles';
3
+ import type { BaseButtonProps } from '../../internal/BaseButton';
3
4
 
4
5
  export type MediaButtonProps = {
5
6
  /**
@@ -31,13 +32,9 @@ export type MediaButtonProps = {
31
32
  * @default false
32
33
  */
33
34
  hideChevron?: boolean;
34
- /**
35
- * Whether the media button is disabled.
36
- * @default false
37
- */
38
- disabled?: boolean;
39
35
  /**
40
36
  * The label content of the media button.
41
37
  */
42
38
  children: ReactNode;
43
- } & Omit<StyledPressableProps, 'children'>;
39
+ } & Pick<BaseButtonProps, 'disabled'> &
40
+ Omit<StyledPressableProps, 'children'>;
@@ -20,13 +20,13 @@ describe('Trend Component', () => {
20
20
  expect(getByText('5.50%')).toBeTruthy();
21
21
  });
22
22
 
23
- it('should render negative value', () => {
23
+ it('should render negative value without a minus sign', () => {
24
24
  const { getByText } = render(
25
25
  <TestWrapper>
26
26
  <Trend value={-3.2} />
27
27
  </TestWrapper>,
28
28
  );
29
- expect(getByText('-3.20%')).toBeTruthy();
29
+ expect(getByText('3.20%')).toBeTruthy();
30
30
  });
31
31
 
32
32
  it('should render neutral when value is zero', () => {
@@ -84,15 +84,14 @@ describe('Trend Component', () => {
84
84
  });
85
85
 
86
86
  it('should render all variants side by side', () => {
87
- const { getByText } = render(
87
+ const { getByText, getAllByText } = render(
88
88
  <TestWrapper>
89
89
  <Trend value={10} />
90
90
  <Trend value={-10} />
91
91
  <Trend value={0} />
92
92
  </TestWrapper>,
93
93
  );
94
- expect(getByText('10.00%')).toBeTruthy();
95
- expect(getByText('-10.00%')).toBeTruthy();
94
+ expect(getAllByText('10.00%')).toHaveLength(2);
96
95
  expect(getByText('0.00%')).toBeTruthy();
97
96
  });
98
97
 
@@ -57,8 +57,6 @@ export function Trend({
57
57
  const iconColor = iconColorMap[variant];
58
58
 
59
59
  const absoluteFormattedValue = `${Math.abs(value).toFixed(2)}%`;
60
- const formattedValue =
61
- value < 0 ? `-${absoluteFormattedValue}` : absoluteFormattedValue;
62
60
 
63
61
  return (
64
62
  <Box
@@ -74,7 +72,7 @@ export function Trend({
74
72
  {Icon && (
75
73
  <Icon size={iconSize} color={disabled ? 'disabled' : iconColor} />
76
74
  )}
77
- <Text style={styles.text}>{formattedValue}</Text>
75
+ <Text style={styles.text}>{absoluteFormattedValue}</Text>
78
76
  </Box>
79
77
  );
80
78
  }
@@ -3,8 +3,8 @@ import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
3
3
  import { render, screen, fireEvent } from '@testing-library/react-native';
4
4
  import type { ViewStyle } from 'react-native';
5
5
 
6
+ import { ThemeProvider } from '../../core/ThemeProvider/ThemeProvider';
6
7
  import { Plus, Settings } from '../../symbols';
7
- import { ThemeProvider } from '../ThemeProvider/ThemeProvider';
8
8
  import { BaseButton } from './BaseButton';
9
9
 
10
10
  const renderWithProvider = (component: React.ReactElement) => {
@@ -2,9 +2,9 @@ import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
2
2
  import type { PropsWithChildren } from 'react';
3
3
  import { StyleSheet, Text, View } from 'react-native';
4
4
  import { useStyleSheet } from '../../../../styles';
5
+ import { Spinner } from '../../core/Spinner';
5
6
  import { Pressable } from '../../primitives';
6
7
  import type { IconSize } from '../../symbols/Icon';
7
- import { Spinner } from '../Spinner';
8
8
  import type { BaseButtonProps } from './types';
9
9
 
10
10
  type Appearance = NonNullable<BaseButtonProps['appearance']>;
@@ -0,0 +1,2 @@
1
+ export * from './BaseButton';
2
+ export * from './types';
@@ -0,0 +1,42 @@
1
+ import type { ComponentType, ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ import type { StyledPressableProps } from '../../../../styles';
4
+ import type { IconSize } from '../../symbols/Icon';
5
+
6
+ export type BaseButtonProps = {
7
+ /**
8
+ * The visual style of the button.
9
+ */
10
+ appearance?:
11
+ | 'base'
12
+ | 'gray'
13
+ | 'accent'
14
+ | 'transparent'
15
+ | 'no-background'
16
+ | 'red';
17
+ /**
18
+ * The size variant of the button.
19
+ * @default md
20
+ */
21
+ size?: 'xs' | 'sm' | 'md' | 'lg';
22
+ /**
23
+ * If true, the button expands to full width of its container.
24
+ */
25
+ isFull?: boolean;
26
+ /**
27
+ * If true, shows a loading spinner and disables the button.
28
+ */
29
+ loading?: boolean;
30
+ /**
31
+ * An optional icon component to render inside the button.
32
+ */
33
+ icon?: ComponentType<{ size?: IconSize; style?: StyleProp<ViewStyle> }>;
34
+ /**
35
+ * Whether the button is disabled.
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * The content to display inside the button.
40
+ */
41
+ children?: ReactNode;
42
+ } & Omit<StyledPressableProps, 'children'>;
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * CalendarRefresh icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { CalendarRefresh } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <CalendarRefresh />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <CalendarRefresh size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={CalendarRefresh} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const CalendarRefresh = createIcon(
35
+ 'CalendarRefresh',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='m9.482 11.247-.578-.52-.581.52m4.095 1.828a2.26 2.26 0 0 1-1.278.396 2.28 2.28 0 0 1-2.237-2.728m4.1.162.556.52.56-.52m-4.074-1.828a2.26 2.26 0 0 1 1.278-.396 2.28 2.28 0 0 1 2.236 2.728M10 2v1.333M4.667 2v1.333M2 5.333h10.667m0 1.334V4c0-.737-.597-1.333-1.334-1.333h-8C2.597 2.667 2 3.263 2 4v7.333c0 .737.597 1.334 1.333 1.334h3.334m.683-4.918h-.006l-.007-.007v-.006m-2.64.013H4.69l-.006-.007v-.006m.013 2.46H4.69l-.006-.006v-.007'
43
+ />
44
+ </Svg>,
45
+ );
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * CodeShield icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { CodeShield } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <CodeShield />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <CodeShield size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={CodeShield} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const CodeShield = createIcon(
35
+ 'CodeShield',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='m10.345 6.633.988.994-1 1.006m-2.333 5a6 6 0 1 1 6-6m-8.345-1-.988.995 1 1.005M8.5 5.971l-1 3.325m4.2 1.204c.267-.133.6-.133.933 0l1.2.467v1.4c0 1.2-1.666 2-1.666 2s-1.667-.8-1.667-2v-1.4z'
43
+ />
44
+ </Svg>,
45
+ );
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * CoinStacked icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { CoinStacked } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <CoinStacked />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <CoinStacked size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={CoinStacked} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const CoinStacked = createIcon(
35
+ 'CoinStacked',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='M6.131 2.798a5 5 0 0 1 7.071 7.07m-1.869-.201a5 5 0 1 1-10 0 5 5 0 0 1 10 0'
43
+ />
44
+ </Svg>,
45
+ );
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * Craft icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { Craft } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <Craft />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <Craft size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={Craft} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const Craft = createIcon(
35
+ 'Craft',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='M4 6.667 2.552 5.219A1.886 1.886 0 0 1 5.22 2.552L6.667 4M3.333 6 6 3.333m6 6 1.14 1.14c.185.186.312.423.364.681l.49 2.447a.333.333 0 0 1-.393.392l-2.447-.49a1.33 1.33 0 0 1-.681-.364L9.333 12m.748-7.576-.76-.76M8.53 6.644 7.436 5.551M6.31 8.195l-.76-.759m-.793 2.978L3.665 9.322M5.213 13.8a.684.684 0 0 1-.966 0L2.2 11.753a.684.684 0 0 1 0-.966L10.787 2.2a.684.684 0 0 1 .966 0L13.8 4.247c.267.267.267.7 0 .966z'
43
+ />
44
+ </Svg>,
45
+ );
@@ -0,0 +1,44 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * Equal icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { Equal } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <Equal />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <Equal size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={Equal} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const Equal = createIcon(
35
+ 'Equal',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeWidth={1.3}
41
+ d='M3 5.5h10m-10 5h10'
42
+ />
43
+ </Svg>,
44
+ );
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * File icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { File } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <File />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <File size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={File} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const File = createIcon(
35
+ 'File',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='M12.667 5.333H10a.667.667 0 0 1-.667-.666V2m-4 5.333h4m-4 2h4m-4 2H8.22m4.056-7.057-1.885-1.885C10.14 2.14 9.8 2 9.448 2H4.667c-.737 0-1.334.597-1.334 1.333v9.334c0 .736.597 1.333 1.334 1.333h6.666c.737 0 1.334-.597 1.334-1.333V5.219c0-.354-.141-.693-.391-.943'
43
+ />
44
+ </Svg>,
45
+ );
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * FileShield icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { FileShield } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <FileShield />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <FileShield size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={FileShield} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const FileShield = createIcon(
35
+ 'FileShield',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='M2.667 6V3.333C2.667 2.597 3.264 2 4 2h8.667C13.403 2 14 2.597 14 3.333v9.334c0 .736-.597 1.333-1.333 1.333H8m3.333-8.667h-6m6 2.667H8.667m2.666 2.667H10M6.667 9.529v1.83c0 1.214-1.441 2.127-2.206 2.527a.99.99 0 0 1-.921 0c-.764-.4-2.207-1.314-2.207-2.526V9.529a.336.336 0 0 1 .318-.33 3.8 3.8 0 0 0 1.958-.736.65.65 0 0 1 .782 0c.571.424 1.25.679 1.958.736a.34.34 0 0 1 .318.33'
43
+ />
44
+ </Svg>,
45
+ );
@@ -0,0 +1,46 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * Fire icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { Fire } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <Fire />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <Fire size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={Fire} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const Fire = createIcon(
35
+ 'Fire',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='m4.132 5.04 2.322-2.71 2.503 2.921 1.62-1.89 1.291 1.507a5.34 5.34 0 0 1 1.286 3.476v.171A5.154 5.154 0 0 1 8 13.67v0a5.154 5.154 0 0 1-5.154-5.154v0A5.34 5.34 0 0 1 4.132 5.04'
43
+ clipRule='evenodd'
44
+ />
45
+ </Svg>,
46
+ );
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * Handshake icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { Handshake } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <Handshake />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <Handshake size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={Handshake} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const Handshake = createIcon(
35
+ 'Handshake',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='M11.307 9.276h-.634a1.2 1.2 0 0 0-.5.108L7.637 10.54m6.368-5.146h-1.667a1 1 0 0 0-1 1v2.668a1 1 0 0 0 1 1h1.667M2 10.061h1.667a1 1 0 0 0 1-1V6.393a1 1 0 0 0-1-1H2m9.608.285-2.066-.91c-.372-.163-.8-.128-1.141.092L6.828 5.88a.908.908 0 0 0 .877 1.584l.938-.438.659.598a.98.98 0 0 1 .003 1.45l-1.397 1.279c-.46.42-1.163.422-1.624.004l-.84-.762a1.3 1.3 0 0 0-.742-.322m-.02-3.178 1.456-.524c.335-.118.704-.08 1.01.1'
43
+ />
44
+ </Svg>,
45
+ );
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../Icon/createIcon';
3
+
4
+ /**
5
+ * MailShield icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { MailShield } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <MailShield />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <MailShield size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={MailShield} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const MailShield = createIcon(
35
+ 'MailShield',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.3}
42
+ d='M13.114 7.073V3.88m-5.757 7.033H3.52a1.28 1.28 0 0 1-1.279-1.28V3.862m0 0c0-.71.576-1.287 1.286-1.287h8.302a1.287 1.287 0 0 1 .722 2.352L9.124 7.251a2.58 2.58 0 0 1-2.893 0L2.804 4.927a1.29 1.29 0 0 1-.564-1.065m11.927 6.183v1.598c0 1.124-1.412 1.953-2.04 2.267a.65.65 0 0 1-.587 0c-.628-.314-2.04-1.144-2.04-2.267v-1.598a.34.34 0 0 1 .315-.33 3.3 3.3 0 0 0 1.638-.612.65.65 0 0 1 .76 0 3.3 3.3 0 0 0 1.638.613c.174.013.31.155.316.33'
43
+ />
44
+ </Svg>,
45
+ );