@ledgerhq/native-ui 0.53.0 → 0.54.0-nightly.20260120133631

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 (260) hide show
  1. package/lib/assets/index.js +3 -6
  2. package/lib/assets/logos/LedgerLiveAltRegular.d.ts +1 -1
  3. package/lib/assets/logos/LedgerLiveAltRegular.d.ts.map +1 -1
  4. package/lib/assets/logos/LedgerLiveAltRegular.js +2 -3
  5. package/lib/assets/logos/LedgerLiveRegular.d.ts +1 -1
  6. package/lib/assets/logos/LedgerLiveRegular.d.ts.map +1 -1
  7. package/lib/assets/logos/LedgerLiveRegular.js +2 -9
  8. package/lib/components/Cards/BannerCard/index.d.ts +6 -10
  9. package/lib/components/Cards/BannerCard/index.d.ts.map +1 -1
  10. package/lib/components/Cards/BannerCard/index.js +4 -10
  11. package/lib/components/Cards/FullBackgroundCard/ColoredGradient.d.ts +1 -1
  12. package/lib/components/Cards/FullBackgroundCard/ColoredGradient.d.ts.map +1 -1
  13. package/lib/components/Cards/FullBackgroundCard/ColoredGradient.js +2 -8
  14. package/lib/components/Cards/FullBackgroundCard/ShadowGradient.d.ts +1 -1
  15. package/lib/components/Cards/FullBackgroundCard/ShadowGradient.d.ts.map +1 -1
  16. package/lib/components/Cards/FullBackgroundCard/ShadowGradient.js +2 -7
  17. package/lib/components/Cards/FullBackgroundCard/index.js +5 -16
  18. package/lib/components/Cards/InformativeCard/index.d.ts +1 -1
  19. package/lib/components/Cards/InformativeCard/index.js +6 -10
  20. package/lib/components/Cards/NewBannerCard/index.d.ts +2 -2
  21. package/lib/components/Cards/NewBannerCard/index.d.ts.map +1 -1
  22. package/lib/components/Cards/NewBannerCard/index.js +2 -12
  23. package/lib/components/Cards/NotificationCard/index.d.ts +1 -3
  24. package/lib/components/Cards/NotificationCard/index.d.ts.map +1 -1
  25. package/lib/components/Cards/NotificationCard/index.js +6 -17
  26. package/lib/components/Cards/SideImageCard/index.d.ts +8 -12
  27. package/lib/components/Cards/SideImageCard/index.d.ts.map +1 -1
  28. package/lib/components/Cards/SideImageCard/index.js +8 -18
  29. package/lib/components/Cards/helper.d.ts +1 -1
  30. package/lib/components/Cards/helper.d.ts.map +1 -1
  31. package/lib/components/Cards/helper.js +2 -2
  32. package/lib/components/Carousel/index.d.ts +2 -2
  33. package/lib/components/Carousel/index.d.ts.map +1 -1
  34. package/lib/components/Carousel/index.js +13 -16
  35. package/lib/components/Form/Checkbox/index.d.ts +1 -1
  36. package/lib/components/Form/Checkbox/index.d.ts.map +1 -1
  37. package/lib/components/Form/Checkbox/index.js +2 -5
  38. package/lib/components/Form/DrawerTabSelector/index.d.ts +1 -1
  39. package/lib/components/Form/DrawerTabSelector/index.d.ts.map +1 -1
  40. package/lib/components/Form/DrawerTabSelector/index.js +13 -16
  41. package/lib/components/Form/Input/AnimatedInputSelect/Select.d.ts +1 -2
  42. package/lib/components/Form/Input/AnimatedInputSelect/Select.d.ts.map +1 -1
  43. package/lib/components/Form/Input/AnimatedInputSelect/Select.js +2 -5
  44. package/lib/components/Form/Input/AnimatedInputSelect/index.js +2 -1
  45. package/lib/components/Form/Input/BaseInput/index.d.ts +11 -11
  46. package/lib/components/Form/Input/BaseInput/index.d.ts.map +1 -1
  47. package/lib/components/Form/Input/BaseInput/index.js +8 -14
  48. package/lib/components/Form/Input/LegendInput/index.d.ts +4 -4
  49. package/lib/components/Form/Input/LegendInput/index.d.ts.map +1 -1
  50. package/lib/components/Form/Input/LegendInput/index.js +2 -2
  51. package/lib/components/Form/Input/NumberInput/index.d.ts +4 -4
  52. package/lib/components/Form/Input/NumberInput/index.d.ts.map +1 -1
  53. package/lib/components/Form/Input/NumberInput/index.js +5 -7
  54. package/lib/components/Form/Input/QrCodeInput/index.d.ts +4 -4
  55. package/lib/components/Form/Input/QrCodeInput/index.d.ts.map +1 -1
  56. package/lib/components/Form/Input/QrCodeInput/index.js +2 -3
  57. package/lib/components/Form/Input/SearchInput/index.d.ts +4 -4
  58. package/lib/components/Form/Input/SearchInput/index.d.ts.map +1 -1
  59. package/lib/components/Form/Input/SearchInput/index.js +3 -3
  60. package/lib/components/Form/SelectableList.d.ts +2 -2
  61. package/lib/components/Form/SelectableList.d.ts.map +1 -1
  62. package/lib/components/Form/SelectableList.js +18 -19
  63. package/lib/components/Form/Slider/components.d.ts +6 -6
  64. package/lib/components/Form/Slider/components.d.ts.map +1 -1
  65. package/lib/components/Form/Slider/components.js +3 -5
  66. package/lib/components/Form/Slider/index.d.ts +1 -2
  67. package/lib/components/Form/Slider/index.d.ts.map +1 -1
  68. package/lib/components/Form/Slider/index.js +2 -2
  69. package/lib/components/Form/Slider/index.native.d.ts +1 -2
  70. package/lib/components/Form/Slider/index.native.d.ts.map +1 -1
  71. package/lib/components/Form/Slider/index.native.js +9 -12
  72. package/lib/components/Form/Switch/index.d.ts +1 -1
  73. package/lib/components/Form/Switch/index.d.ts.map +1 -1
  74. package/lib/components/Form/Switch/index.js +6 -7
  75. package/lib/components/Form/TabSelector/index.d.ts +1 -1
  76. package/lib/components/Form/TabSelector/index.d.ts.map +1 -1
  77. package/lib/components/Form/TabSelector/index.js +12 -11
  78. package/lib/components/Form/Toggle/index.d.ts +1 -1
  79. package/lib/components/Form/Toggle/index.d.ts.map +1 -1
  80. package/lib/components/Form/Toggle/index.js +2 -3
  81. package/lib/components/Icon/BannerIcon.d.ts +1 -2
  82. package/lib/components/Icon/BannerIcon.d.ts.map +1 -1
  83. package/lib/components/Icon/BannerIcon.js +9 -18
  84. package/lib/components/Icon/BoxedIcon.d.ts +3 -3
  85. package/lib/components/Icon/BoxedIcon.d.ts.map +1 -1
  86. package/lib/components/Icon/BoxedIcon.js +6 -15
  87. package/lib/components/Icon/Icon.d.ts +1 -1
  88. package/lib/components/Icon/Icon.d.ts.map +1 -1
  89. package/lib/components/Icon/Icon.js +2 -2
  90. package/lib/components/Icon/IconBadge.d.ts +1 -2
  91. package/lib/components/Icon/IconBadge.d.ts.map +1 -1
  92. package/lib/components/Icon/IconBadge.js +8 -3
  93. package/lib/components/Icon/IconBox/index.d.ts.map +1 -1
  94. package/lib/components/Icon/IconBox/index.js +8 -3
  95. package/lib/components/Icon/type.js +0 -1
  96. package/lib/components/Layout/Box/index.d.ts +1 -1
  97. package/lib/components/Layout/Box/index.d.ts.map +1 -1
  98. package/lib/components/Layout/Collapse/Accordion/index.js +8 -9
  99. package/lib/components/Layout/Divider/index.js +3 -6
  100. package/lib/components/Layout/Flex/index.d.ts +1 -1
  101. package/lib/components/Layout/Flex/index.d.ts.map +1 -1
  102. package/lib/components/Layout/List/IconBoxList/index.js +4 -3
  103. package/lib/components/Layout/List/List/index.js +5 -9
  104. package/lib/components/Layout/List/NumberedList/index.js +4 -3
  105. package/lib/components/Layout/List/TipList/index.js +4 -3
  106. package/lib/components/Layout/List/VerticalStepper/StepperItem.d.ts +1 -2
  107. package/lib/components/Layout/List/VerticalStepper/StepperItem.d.ts.map +1 -1
  108. package/lib/components/Layout/List/VerticalStepper/StepperItem.js +3 -13
  109. package/lib/components/Layout/List/VerticalStepper/index.js +2 -3
  110. package/lib/components/Layout/List/VerticalTimeline/TimelineIndicator.d.ts +1 -2
  111. package/lib/components/Layout/List/VerticalTimeline/TimelineIndicator.d.ts.map +1 -1
  112. package/lib/components/Layout/List/VerticalTimeline/TimelineIndicator.js +4 -13
  113. package/lib/components/Layout/List/VerticalTimeline/TimelineItem.d.ts +1 -1
  114. package/lib/components/Layout/List/VerticalTimeline/TimelineItem.d.ts.map +1 -1
  115. package/lib/components/Layout/List/VerticalTimeline/TimelineItem.js +11 -19
  116. package/lib/components/Layout/List/VerticalTimeline/index.d.ts +2 -2
  117. package/lib/components/Layout/List/VerticalTimeline/index.d.ts.map +1 -1
  118. package/lib/components/Layout/List/VerticalTimeline/index.js +6 -8
  119. package/lib/components/Layout/Modals/BaseModal/index.js +6 -25
  120. package/lib/components/Layout/Modals/BottomDrawer/index.js +2 -2
  121. package/lib/components/Layout/Modals/Popin/index.js +2 -8
  122. package/lib/components/Layout/Modals/Tooltip/index.js +5 -6
  123. package/lib/components/Layout/ScrollContainer/index.d.ts +1 -1
  124. package/lib/components/Layout/ScrollContainer/index.d.ts.map +1 -1
  125. package/lib/components/Layout/ScrollContainer/index.js +2 -2
  126. package/lib/components/Layout/ScrollContainerHeader/Header.d.ts +1 -1
  127. package/lib/components/Layout/ScrollContainerHeader/Header.d.ts.map +1 -1
  128. package/lib/components/Layout/ScrollContainerHeader/Header.js +3 -8
  129. package/lib/components/Layout/ScrollContainerHeader/index.d.ts +1 -1
  130. package/lib/components/Layout/ScrollContainerHeader/index.js +2 -3
  131. package/lib/components/Layout/ScrollListContainer/index.d.ts +1 -1
  132. package/lib/components/Layout/ScrollListContainer/index.js +2 -1
  133. package/lib/components/Layout/Table/Row.js +3 -11
  134. package/lib/components/Loader/InfiniteLoader/index.d.ts +2 -2
  135. package/lib/components/Loader/InfiniteLoader/index.d.ts.map +1 -1
  136. package/lib/components/Loader/InfiniteLoader/index.js +3 -15
  137. package/lib/components/Loader/ProgressLoader/index.js +4 -15
  138. package/lib/components/Navigation/FlowStepper/index.d.ts +2 -2
  139. package/lib/components/Navigation/FlowStepper/index.d.ts.map +1 -1
  140. package/lib/components/Navigation/FlowStepper/index.js +19 -23
  141. package/lib/components/Navigation/SlideIndicator/index.js +3 -4
  142. package/lib/components/Navigation/Stepper/index.d.ts.map +1 -1
  143. package/lib/components/Navigation/Stepper/index.js +19 -30
  144. package/lib/components/Navigation/StoriesIndicator/index.d.ts +1 -1
  145. package/lib/components/Navigation/StoriesIndicator/index.d.ts.map +1 -1
  146. package/lib/components/Navigation/StoriesIndicator/index.js +7 -6
  147. package/lib/components/ProgressBar/index.d.ts +1 -1
  148. package/lib/components/ProgressBar/index.d.ts.map +1 -1
  149. package/lib/components/ProgressBar/index.js +2 -2
  150. package/lib/components/ProgressPoint/index.d.ts +1 -1
  151. package/lib/components/ProgressPoint/index.d.ts.map +1 -1
  152. package/lib/components/ProgressPoint/index.js +2 -2
  153. package/lib/components/Tabs/Chip/index.js +3 -4
  154. package/lib/components/Tabs/Graph/index.js +3 -3
  155. package/lib/components/Tabs/TemplateTabs/index.d.ts +2 -2
  156. package/lib/components/Tabs/TemplateTabs/index.d.ts.map +1 -1
  157. package/lib/components/Tabs/TemplateTabs/index.js +2 -2
  158. package/lib/components/Text/index.d.ts +1 -1
  159. package/lib/components/Text/index.d.ts.map +1 -1
  160. package/lib/components/Text/index.js +4 -7
  161. package/lib/components/cta/Button/index.d.ts +3 -6
  162. package/lib/components/cta/Button/index.d.ts.map +1 -1
  163. package/lib/components/cta/Button/index.js +7 -19
  164. package/lib/components/cta/Link/index.d.ts +1 -3
  165. package/lib/components/cta/Link/index.d.ts.map +1 -1
  166. package/lib/components/cta/Link/index.js +3 -8
  167. package/lib/components/cta/QuickAction/QuickActionButton/index.d.ts +3 -5
  168. package/lib/components/cta/QuickAction/QuickActionButton/index.d.ts.map +1 -1
  169. package/lib/components/cta/QuickAction/QuickActionButton/index.js +11 -7
  170. package/lib/components/cta/QuickAction/QuickActionList/index.js +4 -4
  171. package/lib/components/index.js +1 -2
  172. package/lib/components/message/Alert/index.d.ts +3 -3
  173. package/lib/components/message/Alert/index.d.ts.map +1 -1
  174. package/lib/components/message/Alert/index.js +2 -6
  175. package/lib/components/message/ContinueOnDevice/index.js +2 -6
  176. package/lib/components/message/Log/Brackets.d.ts +4 -4
  177. package/lib/components/message/Log/Brackets.d.ts.map +1 -1
  178. package/lib/components/message/Log/Brackets.js +7 -13
  179. package/lib/components/message/Log/index.d.ts +1 -1
  180. package/lib/components/message/Log/index.d.ts.map +1 -1
  181. package/lib/components/message/Log/index.js +3 -9
  182. package/lib/components/message/Notification/index.js +2 -15
  183. package/lib/components/tags/Badge/index.d.ts +1 -0
  184. package/lib/components/tags/Badge/index.d.ts.map +1 -1
  185. package/lib/components/tags/Badge/index.js +2 -2
  186. package/lib/components/tags/Tag/index.d.ts +1 -1
  187. package/lib/components/tags/Tag/index.d.ts.map +1 -1
  188. package/lib/components/tags/Tag/index.js +2 -5
  189. package/lib/components/transitions/Fade.d.ts +1 -2
  190. package/lib/components/transitions/Fade.d.ts.map +1 -1
  191. package/lib/components/transitions/Fade.js +4 -3
  192. package/lib/components/transitions/Slide.d.ts +1 -2
  193. package/lib/components/transitions/Slide.d.ts.map +1 -1
  194. package/lib/components/transitions/Slide.js +4 -3
  195. package/lib/components/transitions/Transition.d.ts +1 -1
  196. package/lib/components/transitions/Transition.d.ts.map +1 -1
  197. package/lib/components/transitions/types.js +0 -1
  198. package/lib/icons/BracketLeft.js +2 -4
  199. package/lib/icons/BracketRight.js +2 -4
  200. package/lib/icons/Close.js +2 -3
  201. package/lib/icons/Info.js +2 -4
  202. package/lib/pre-ldls/components/AccountItem/AccountItem.d.ts +1 -2
  203. package/lib/pre-ldls/components/AccountItem/AccountItem.d.ts.map +1 -1
  204. package/lib/pre-ldls/components/AccountItem/AccountItem.js +4 -22
  205. package/lib/pre-ldls/components/AddAccountButton/AddAccountButton.d.ts +1 -2
  206. package/lib/pre-ldls/components/AddAccountButton/AddAccountButton.d.ts.map +1 -1
  207. package/lib/pre-ldls/components/AddAccountButton/AddAccountButton.js +3 -5
  208. package/lib/pre-ldls/components/AddAccountButton/AddAccountButton.stories.js +2 -3
  209. package/lib/pre-ldls/components/Address/Address.d.ts +1 -2
  210. package/lib/pre-ldls/components/Address/Address.d.ts.map +1 -1
  211. package/lib/pre-ldls/components/Address/Address.js +2 -4
  212. package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.d.ts +1 -2
  213. package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.d.ts.map +1 -1
  214. package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.js +2 -2
  215. package/lib/pre-ldls/components/AssetItem/AssetItem.d.ts +1 -1
  216. package/lib/pre-ldls/components/AssetItem/AssetItem.d.ts.map +1 -1
  217. package/lib/pre-ldls/components/AssetItem/AssetItem.js +3 -10
  218. package/lib/pre-ldls/components/AssetTypeList/AssetList.d.ts +1 -2
  219. package/lib/pre-ldls/components/AssetTypeList/AssetList.d.ts.map +1 -1
  220. package/lib/pre-ldls/components/AssetTypeList/AssetList.js +4 -3
  221. package/lib/pre-ldls/components/AssetTypeList/AssetList.stories.js +2 -3
  222. package/lib/pre-ldls/components/CryptoIcon/CryptoIcon.d.ts +1 -2
  223. package/lib/pre-ldls/components/CryptoIcon/CryptoIcon.d.ts.map +1 -1
  224. package/lib/pre-ldls/components/CryptoIcon/CryptoIcon.js +2 -2
  225. package/lib/pre-ldls/components/Input/Input.d.ts +1 -0
  226. package/lib/pre-ldls/components/Input/Input.d.ts.map +1 -1
  227. package/lib/pre-ldls/components/Input/Input.js +2 -3
  228. package/lib/pre-ldls/components/Input/Input.stories.js +2 -2
  229. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.d.ts +1 -2
  230. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.d.ts.map +1 -1
  231. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js +2 -3
  232. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.d.ts +1 -2
  233. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.d.ts.map +1 -1
  234. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js +2 -4
  235. package/lib/pre-ldls/components/NetworkItem/NetworkItem.d.ts +1 -1
  236. package/lib/pre-ldls/components/NetworkItem/NetworkItem.d.ts.map +1 -1
  237. package/lib/pre-ldls/components/NetworkItem/NetworkItem.js +3 -8
  238. package/lib/pre-ldls/components/NetworkList/NetworkList.d.ts +1 -2
  239. package/lib/pre-ldls/components/NetworkList/NetworkList.d.ts.map +1 -1
  240. package/lib/pre-ldls/components/NetworkList/NetworkList.js +4 -3
  241. package/lib/pre-ldls/components/NetworkList/NetwrokList.stories.js +2 -3
  242. package/lib/pre-ldls/components/Search/Search.d.ts +1 -2
  243. package/lib/pre-ldls/components/Search/Search.d.ts.map +1 -1
  244. package/lib/pre-ldls/components/Search/Search.js +3 -2
  245. package/lib/pre-ldls/components/Tag/Tag.d.ts +2 -2
  246. package/lib/pre-ldls/components/Tag/Tag.d.ts.map +1 -1
  247. package/lib/pre-ldls/components/Tag/Tag.js +2 -3
  248. package/lib/pre-ldls/components/sharedStoryBook.d.ts +3 -4
  249. package/lib/pre-ldls/components/sharedStoryBook.d.ts.map +1 -1
  250. package/lib/pre-ldls/components/sharedStoryBook.js +3 -5
  251. package/lib/pre-ldls/hooks/useDebouncedCallback.d.ts.map +1 -1
  252. package/lib/pre-ldls/hooks/useDebouncedCallback.js +7 -3
  253. package/lib/pre-ldls/hooks/useDebouncedCallback.stories.d.ts +1 -2
  254. package/lib/pre-ldls/hooks/useDebouncedCallback.stories.d.ts.map +1 -1
  255. package/lib/pre-ldls/hooks/useDebouncedCallback.stories.js +7 -9
  256. package/lib/pre-ldls/libs/index.d.ts +0 -1
  257. package/lib/pre-ldls/libs/index.d.ts.map +1 -1
  258. package/lib/styles/InvertTheme.js +3 -2
  259. package/lib/styles/StyleProvider.js +3 -2
  260. package/package.json +17 -17
@@ -1,6 +1,3 @@
1
- import * as IconsLegacy_1 from "@ledgerhq/icons-ui/nativeLegacy";
2
- export { IconsLegacy_1 as IconsLegacy };
3
- import * as Icons_1 from "@ledgerhq/icons-ui/native";
4
- export { Icons_1 as Icons };
5
- import * as Logos_1 from "./logos";
6
- export { Logos_1 as Logos };
1
+ export * as IconsLegacy from "@ledgerhq/icons-ui/nativeLegacy";
2
+ export * as Icons from "@ledgerhq/icons-ui/native";
3
+ export * as Logos from "./logos";
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { type JSX } from "react";
2
2
  type Props = {
3
3
  width?: number | string;
4
4
  height?: number | string;
@@ -1 +1 @@
1
- {"version":3,"file":"LedgerLiveAltRegular.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/LedgerLiveAltRegular.tsx"],"names":[],"mappings":";AAGA,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,iBAAS,oBAAoB,CAAC,EAC5B,KAAU,EACV,MAAW,EACX,KAAsB,GACvB,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CASrB;AAED,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"LedgerLiveAltRegular.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/LedgerLiveAltRegular.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,iBAAS,oBAAoB,CAAC,EAC5B,KAAU,EACV,MAAW,EACX,KAAsB,GACvB,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CASrB;AAED,eAAe,oBAAoB,CAAC"}
@@ -1,7 +1,6 @@
1
- import * as React from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import Svg, { Path } from "react-native-svg";
3
3
  function LedgerLiveAltRegular({ width = 38, height = 32, color = "currentColor", }) {
4
- return (React.createElement(Svg, { width: width, height: height, viewBox: "0 0 38 32", fill: "none" },
5
- React.createElement(Path, { d: "M0.620148 22.9137V32H14.4471V29.9849H2.63476V22.9137H0.620148ZM35.3653 22.9137V29.9849H23.553V31.9995H37.3799V22.9137H35.3653ZM14.4671 9.08631V22.9132H23.553V21.0961H16.4817V9.08631H14.4671ZM0.620148 0V9.08631H2.63476V2.01461H14.4471V0H0.620148ZM23.553 0V2.01461H35.3653V9.08631H37.3799V0H23.553Z", fill: color })));
4
+ return (_jsx(Svg, { width: width, height: height, viewBox: "0 0 38 32", fill: "none", children: _jsx(Path, { d: "M0.620148 22.9137V32H14.4471V29.9849H2.63476V22.9137H0.620148ZM35.3653 22.9137V29.9849H23.553V31.9995H37.3799V22.9137H35.3653ZM14.4671 9.08631V22.9132H23.553V21.0961H16.4817V9.08631H14.4671ZM0.620148 0V9.08631H2.63476V2.01461H14.4471V0H0.620148ZM23.553 0V2.01461H35.3653V9.08631H37.3799V0H23.553Z", fill: color }) }));
6
5
  }
7
6
  export default LedgerLiveAltRegular;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { JSX } from "react";
2
2
  type Props = {
3
3
  width?: number | string;
4
4
  height?: number | string;
@@ -1 +1 @@
1
- {"version":3,"file":"LedgerLiveRegular.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/LedgerLiveRegular.tsx"],"names":[],"mappings":";AAGA,KAAK,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnF,iBAAS,iBAAiB,CAAC,EACzB,KAAW,EACX,MAAW,EACX,KAAsB,GACvB,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAwBrB;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"LedgerLiveRegular.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/LedgerLiveRegular.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,KAAK,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnF,iBAAS,iBAAiB,CAAC,EACzB,KAAW,EACX,MAAW,EACX,KAAsB,GACvB,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAwBrB;AAED,eAAe,iBAAiB,CAAC"}
@@ -1,13 +1,6 @@
1
- import * as React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Svg, { Path } from "react-native-svg";
3
3
  function LedgerLiveRegular({ width = 220, height = 60, color = "currentColor", }) {
4
- return (React.createElement(Svg, { width: width, height: height, viewBox: "0 0 220 60", fill: "none" },
5
- React.createElement(Path, { d: "M0 42.9632V60H25.9539V56.2217H3.78153V42.9632H0ZM65.2185 42.9632V56.2217H43.0461V59.9991H69V42.9632H65.2185ZM25.9915 17.0368V42.9623H43.0461V39.5551H29.7731V17.0368H25.9915ZM0 0V17.0368H3.78153V3.7774H25.9539V0H0ZM43.0461 0V3.7774H65.2185V17.0368H69V0H43.0461Z", fill: color }),
6
- React.createElement(Path, { d: "M86.7939 17.75H90.5814L92.1189 39.725H92.6439L94.4814 22.2125H100.144L102.019 39.725H102.544L104.156 17.75H107.794L105.356 44H99.5439L97.5564 26.4875H97.0314L95.0439 44H89.2314L86.7939 17.75Z", fill: color }),
7
- React.createElement(Path, { d: "M129.904 44H125.892L124.204 37.625H115.317L113.554 44H109.654L117.229 17.75H122.554L129.904 44ZM116.254 34.175H123.304L120.117 22.025H119.592L116.254 34.175Z", fill: color }),
8
- React.createElement(Path, { d: "M134.577 17.75H138.402V40.55H151.827V44H134.577V17.75Z", fill: color }),
9
- React.createElement(Path, { d: "M157.062 17.75H160.887V40.55H174.312V44H157.062V17.75Z", fill: color }),
10
- React.createElement(Path, { d: "M179.173 17.75H195.673V21.2H182.998V29.075H194.548V32.525H182.998V40.55H196.235V44H179.173V17.75Z", fill: color }),
11
- React.createElement(Path, { d: "M207.808 21.2H199.596V17.75H219.846V21.2H211.633V44H207.808V21.2Z", fill: color })));
4
+ return (_jsxs(Svg, { width: width, height: height, viewBox: "0 0 220 60", fill: "none", children: [_jsx(Path, { d: "M0 42.9632V60H25.9539V56.2217H3.78153V42.9632H0ZM65.2185 42.9632V56.2217H43.0461V59.9991H69V42.9632H65.2185ZM25.9915 17.0368V42.9623H43.0461V39.5551H29.7731V17.0368H25.9915ZM0 0V17.0368H3.78153V3.7774H25.9539V0H0ZM43.0461 0V3.7774H65.2185V17.0368H69V0H43.0461Z", fill: color }), _jsx(Path, { d: "M86.7939 17.75H90.5814L92.1189 39.725H92.6439L94.4814 22.2125H100.144L102.019 39.725H102.544L104.156 17.75H107.794L105.356 44H99.5439L97.5564 26.4875H97.0314L95.0439 44H89.2314L86.7939 17.75Z", fill: color }), _jsx(Path, { d: "M129.904 44H125.892L124.204 37.625H115.317L113.554 44H109.654L117.229 17.75H122.554L129.904 44ZM116.254 34.175H123.304L120.117 22.025H119.592L116.254 34.175Z", fill: color }), _jsx(Path, { d: "M134.577 17.75H138.402V40.55H151.827V44H134.577V17.75Z", fill: color }), _jsx(Path, { d: "M157.062 17.75H160.887V40.55H174.312V44H157.062V17.75Z", fill: color }), _jsx(Path, { d: "M179.173 17.75H195.673V21.2H182.998V29.075H194.548V32.525H182.998V40.55H196.235V44H179.173V17.75Z", fill: color }), _jsx(Path, { d: "M207.808 21.2H199.596V17.75H219.846V21.2H211.633V44H207.808V21.2Z", fill: color })] }));
12
5
  }
13
6
  export default LedgerLiveRegular;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { type JSX } from "react";
2
2
  import { TouchableOpacityProps } from "react-native";
3
3
  export type CardProps = TouchableOpacityProps & {
4
4
  title?: string;
@@ -10,21 +10,17 @@ export type CardProps = TouchableOpacityProps & {
10
10
  type CloseProps = {
11
11
  onPressDismiss?: () => void;
12
12
  };
13
- export declare const Container: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<Omit<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, "ref"> & {
14
- ref?: ((instance: import("react-native").View | null) => void) | React.RefObject<import("react-native").View> | null | undefined;
15
- }, never>>;
16
- export declare const CloseContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<Omit<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, "ref"> & {
17
- ref?: ((instance: import("react-native").View | null) => void) | React.RefObject<import("react-native").View> | null | undefined;
18
- }, never>>;
19
- export declare const ChevronContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, "color" | "bottom" | "top" | "left" | "right" | "flex" | "p" | "height" | "width" | "border" | "size" | "display" | "opacity" | "order" | "overflow" | "position" | "padding" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "verticalAlign" | "backgroundColor" | "borderColor" | "alignContent" | "alignItems" | "alignSelf" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopWidth" | "borderWidth" | "flexBasis" | "flexDirection" | "rowGap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "zIndex" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderStyle" | "borderTopColor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "justifyItems" | "justifySelf" | "bg" | "overflowX" | "overflowY" | "borderX" | "borderY" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat"> & 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").OverflowProps<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").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
13
+ export declare const Container: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
14
+ export declare const CloseContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
15
+ export declare const ChevronContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, "color" | "bottom" | "top" | "left" | "right" | "flex" | "p" | "size" | "position" | "border" | "padding" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "height" | "width" | "verticalAlign" | "backgroundColor" | "borderColor" | "overflow" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopWidth" | "borderWidth" | "display" | "flexBasis" | "flexDirection" | "rowGap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "zIndex" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderStyle" | "borderTopColor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "justifyItems" | "justifySelf" | "order" | "bg" | "overflowX" | "overflowY" | "borderX" | "borderY" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat"> & 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").OverflowProps<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").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
20
16
  columnGap?: string | number | undefined;
21
17
  rowGap?: string | number | undefined;
22
18
  color?: string | undefined;
23
19
  display?: string | undefined;
24
20
  position?: string | undefined;
25
21
  maxHeight?: string | number | undefined;
26
- }, never>>;
27
- export declare const CloseButton: ({ onPressDismiss }: CloseProps) => React.JSX.Element;
22
+ }, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
23
+ export declare const CloseButton: ({ onPressDismiss }: CloseProps) => import("react/jsx-runtime").JSX.Element;
28
24
  declare const BannerCard: (props: CardProps) => React.ReactElement;
29
25
  export default BannerCard;
30
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/BannerCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAoB,MAAM,cAAc,CAAC;AAMvE,MAAM,MAAM,SAAS,GAAG,qBAAqB,GAAG;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC1B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,GAAG,OAAO,CAAC;CACpC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,SAAS;;UAUrB,CAAC;AAEF,eAAO,MAAM,cAAc;;UAQ1B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;UAM5B,CAAC;AAEF,eAAO,MAAM,WAAW,uBAAwB,UAAU,sBAOzD,CAAC;AAsCF,QAAA,MAAM,UAAU,UAAW,SAAS,KAAG,MAAM,YAE5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/BannerCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAoB,MAAM,cAAc,CAAC;AAMvE,MAAM,MAAM,SAAS,GAAG,qBAAqB,GAAG;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC1B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,GAAG,OAAO,CAAC;CACpC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,SAAS,uUAUrB,CAAC;AAEF,eAAO,MAAM,cAAc,uUAQ1B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;wHAM5B,CAAC;AAEF,eAAO,MAAM,WAAW,uBAAwB,UAAU,4CAOzD,CAAC;AAsCF,QAAA,MAAM,UAAU,UAAW,SAAS,KAAG,MAAM,YAE5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ChevronRightMedium, CloseMedium } from "@ledgerhq/icons-ui/nativeLegacy";
3
3
  import { TouchableOpacity } from "react-native";
4
4
  import styled, { useTheme } from "styled-components/native";
@@ -33,19 +33,13 @@ export const ChevronContainer = styled(Flex) `
33
33
  `;
34
34
  export const CloseButton = ({ onPressDismiss }) => {
35
35
  const { colors } = useTheme();
36
- return (React.createElement(CloseContainer, { onPress: onPressDismiss },
37
- React.createElement(CloseMedium, { size: 14, color: colors.neutral.c100 })));
36
+ return (_jsx(CloseContainer, { onPress: onPressDismiss, children: _jsx(CloseMedium, { size: 14, color: colors.neutral.c100 }) }));
38
37
  };
39
38
  const CardContainer = (props) => {
40
39
  const { onPressDismiss, LeftElement, LeftElementNotCirlcled, title, typeOfRightIcon } = props;
41
- return (React.createElement(Container, { ...props },
42
- LeftElementNotCirlcled ? (LeftElement) : (React.createElement(Flex, { borderRadius: 50, height: 40, width: 40, alignItems: "center", justifyContent: "center", bg: "opacityDefault.c05" }, LeftElement)),
43
- React.createElement(Flex, { flexShrink: 1 },
44
- React.createElement(Text, { mx: 4, variant: "large", fontWeight: "medium", numberOfLines: 2, color: "neutral.c100" }, title)),
45
- typeOfRightIcon === "close" ? (React.createElement(CloseButton, { onPressDismiss: onPressDismiss })) : (React.createElement(ChevronContainer, null,
46
- React.createElement(ChevronRightMedium, { size: 24 })))));
40
+ return (_jsxs(Container, { ...props, children: [LeftElementNotCirlcled ? (LeftElement) : (_jsx(Flex, { borderRadius: 50, height: 40, width: 40, alignItems: "center", justifyContent: "center", bg: "opacityDefault.c05", children: LeftElement })), _jsx(Flex, { flexShrink: 1, children: _jsx(Text, { mx: 4, variant: "large", fontWeight: "medium", numberOfLines: 2, color: "neutral.c100", children: title }) }), typeOfRightIcon === "close" ? (_jsx(CloseButton, { onPressDismiss: onPressDismiss })) : (_jsx(ChevronContainer, { children: _jsx(ChevronRightMedium, { size: 24 }) }))] }));
47
41
  };
48
42
  const BannerCard = (props) => {
49
- return React.createElement(CardContainer, { ...props, activeOpacity: 0.5 });
43
+ return _jsx(CardContainer, { ...props, activeOpacity: 0.5 });
50
44
  };
51
45
  export default BannerCard;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { type JSX } from "react";
2
2
  import Svg from "react-native-svg";
3
3
  export type Props = {
4
4
  color: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ColoredGradient.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/FullBackgroundCard/ColoredGradient.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAyC,MAAM,kBAAkB,CAAC;AAUzE,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAoBnF"}
1
+ {"version":3,"file":"ColoredGradient.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/FullBackgroundCard/ColoredGradient.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,GAAyC,MAAM,kBAAkB,CAAC;AAUzE,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAoBnF"}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Svg, { LinearGradient, Defs, Stop, Rect } from "react-native-svg";
3
3
  import styled from "styled-components/native";
4
4
  const StyledSVG = styled(Svg) `
@@ -8,11 +8,5 @@ const StyledSVG = styled(Svg) `
8
8
  height: 164px;
9
9
  `;
10
10
  export default function Gradient({ color, opacityColor, style }) {
11
- return (React.createElement(StyledSVG, { style: style },
12
- React.createElement(Defs, null,
13
- React.createElement(LinearGradient, { id: "myGradient", x1: "0%", y1: "0%", x2: "100%", y2: "100%", gradientUnits: "userSpaceOnUse" },
14
- React.createElement(Stop, { key: "0%", offset: "40%", stopOpacity: 1, stopColor: color }),
15
- React.createElement(Stop, { key: "100%", offset: "100%", stopOpacity: 0, stopColor: color }))),
16
- React.createElement(Rect, { rx: 8, x: "0", y: "0", width: "100%", height: "100%", opacity: 1, fill: "url(#myGradient)" }),
17
- React.createElement(Rect, { rx: 8, x: "0", y: "0", width: "100%", height: "100%", opacity: 0.6, fill: opacityColor })));
11
+ return (_jsxs(StyledSVG, { style: style, children: [_jsx(Defs, { children: _jsxs(LinearGradient, { id: "myGradient", x1: "0%", y1: "0%", x2: "100%", y2: "100%", gradientUnits: "userSpaceOnUse", children: [_jsx(Stop, { offset: "40%", stopOpacity: 1, stopColor: color }, "0%"), _jsx(Stop, { offset: "100%", stopOpacity: 0, stopColor: color }, "100%")] }) }), _jsx(Rect, { rx: 8, x: "0", y: "0", width: "100%", height: "100%", opacity: 1, fill: "url(#myGradient)" }), _jsx(Rect, { rx: 8, x: "0", y: "0", width: "100%", height: "100%", opacity: 0.6, fill: opacityColor })] }));
18
12
  }
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { type JSX } from "react";
2
2
  import Svg from "react-native-svg";
3
3
  export type Props = React.ComponentProps<typeof Svg> & {
4
4
  color: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ShadowGradient.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/FullBackgroundCard/ShadowGradient.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAyC,MAAM,kBAAkB,CAAC;AAUzE,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG;IACrD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAmB9D"}
1
+ {"version":3,"file":"ShadowGradient.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/FullBackgroundCard/ShadowGradient.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,GAAyC,MAAM,kBAAkB,CAAC;AAUzE,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG;IACrD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAmB9D"}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Svg, { LinearGradient, Defs, Stop, Rect } from "react-native-svg";
3
3
  import styled from "styled-components/native";
4
4
  const StyledSVG = styled(Svg) `
@@ -8,10 +8,5 @@ const StyledSVG = styled(Svg) `
8
8
  height: 100%;
9
9
  `;
10
10
  export default function Gradient({ color }) {
11
- return (React.createElement(StyledSVG, null,
12
- React.createElement(Defs, null,
13
- React.createElement(LinearGradient, { id: "myGradient", x1: "0%", y1: "100%", x2: "100%", y2: "0%", gradientUnits: "userSpaceOnUse" },
14
- React.createElement(Stop, { key: "0%", offset: "0%", stopOpacity: 0.8, stopColor: color }),
15
- React.createElement(Stop, { key: "100%", offset: "100%", stopOpacity: 0.25, stopColor: color }))),
16
- React.createElement(Rect, { rx: 8, x: "0", y: "0", width: "100%", height: "100%", opacity: 1, fill: "url(#myGradient)" })));
11
+ return (_jsxs(StyledSVG, { children: [_jsx(Defs, { children: _jsxs(LinearGradient, { id: "myGradient", x1: "0%", y1: "100%", x2: "100%", y2: "0%", gradientUnits: "userSpaceOnUse", children: [_jsx(Stop, { offset: "0%", stopOpacity: 0.8, stopColor: color }, "0%"), _jsx(Stop, { offset: "100%", stopOpacity: 0.25, stopColor: color }, "100%")] }) }), _jsx(Rect, { rx: 8, x: "0", y: "0", width: "100%", height: "100%", opacity: 1, fill: "url(#myGradient)" })] }));
17
12
  }
@@ -1,4 +1,5 @@
1
- import React, { useMemo } from "react";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
2
3
  import { TouchableOpacity, Image } from "react-native";
3
4
  import styled, { useTheme } from "styled-components/native";
4
5
  import { Flex, Text, Icon } from "../../index";
@@ -17,20 +18,8 @@ const FullBackgroundCard = ({ variant, backgroundImage, tag, description, onPres
17
18
  const backgroundVariantColor = variant && backgroundVariants[variant]
18
19
  ? backgroundVariants[variant]
19
20
  : backgroundVariants.purple;
20
- return (React.createElement(Flex, { borderRadius: 8 },
21
- React.createElement(TouchableOpacity, { activeOpacity: 0.5, onPress: onPress },
22
- backgroundImage ? (React.createElement(React.Fragment, null,
23
- React.createElement(ImageContent, { source: {
24
- uri: backgroundImage,
25
- }, style: { width: "100%", height: "100%", position: "absolute" } }),
26
- React.createElement(ShadowGradient, { color: colors.neutral.c00 }))) : (React.createElement(ColoredGradient, { color: backgroundVariantColor, opacityColor: colors.neutral.c20 })),
27
- React.createElement(Flex, { p: 6 },
28
- React.createElement(Flex, { flexDirection: "row", justifyContent: "space-between", mb: 3 },
29
- React.createElement(Flex, { bg: "opacityDefault.c10", borderRadius: 6, px: 3, py: "6px", maxWidth: "80%" },
30
- React.createElement(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1 }, tag)),
31
- React.createElement(TouchableOpacity, { onPress: onDismiss, style: { top: -8, right: -8 } },
32
- React.createElement(Flex, { bg: "neutral.c30", p: "6px", borderRadius: 24 },
33
- React.createElement(Icon, { name: "Close", size: 12, color: "neutral.c100" })))),
34
- description ? (React.createElement(Text, { variant: "h4", fontWeight: "semiBold", color: "neutral.c100", numberOfLines: 3, height: "96px", lineHeight: "32.4px" }, highlight(description, "h4"))) : null))));
21
+ return (_jsx(Flex, { borderRadius: 8, children: _jsxs(TouchableOpacity, { activeOpacity: 0.5, onPress: onPress, children: [backgroundImage ? (_jsxs(_Fragment, { children: [_jsx(ImageContent, { source: {
22
+ uri: backgroundImage,
23
+ }, style: { width: "100%", height: "100%", position: "absolute" } }), _jsx(ShadowGradient, { color: colors.neutral.c00 })] })) : (_jsx(ColoredGradient, { color: backgroundVariantColor, opacityColor: colors.neutral.c20 })), _jsxs(Flex, { p: 6, children: [_jsxs(Flex, { flexDirection: "row", justifyContent: "space-between", mb: 3, children: [_jsx(Flex, { bg: "opacityDefault.c10", borderRadius: 6, px: 3, py: "6px", maxWidth: "80%", children: _jsx(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1, children: tag }) }), _jsx(TouchableOpacity, { onPress: onDismiss, style: { top: -8, right: -8 }, children: _jsx(Flex, { bg: "neutral.c30", p: "6px", borderRadius: 24, children: _jsx(Icon, { name: "Close", size: 12, color: "neutral.c100" }) }) })] }), description ? (_jsx(Text, { variant: "h4", fontWeight: "semiBold", color: "neutral.c100", numberOfLines: 3, height: "96px", lineHeight: "32.4px", children: highlight(description, "h4") })) : null] })] }) }));
35
24
  };
36
25
  export default FullBackgroundCard;
@@ -7,6 +7,6 @@ export type CardProps = TouchableOpacityProps & {
7
7
  onClickCard?: () => void;
8
8
  imageProps?: Partial<ImageProps>;
9
9
  };
10
- declare const _default: React.MemoExoticComponent<(props: CardProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>>;
10
+ declare const _default: React.MemoExoticComponent<(props: CardProps) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>;
11
11
  export default _default;
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,5 @@
1
- import React, { memo } from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { memo } from "react";
2
3
  import { TouchableOpacity, Image, StyleSheet, } from "react-native";
3
4
  import styled from "styled-components/native";
4
5
  import Text from "../../Text";
@@ -16,16 +17,11 @@ const styles = StyleSheet.create({
16
17
  });
17
18
  const CardContainer = (props) => {
18
19
  const { imageUrl, title, tag, imageProps } = props;
19
- return (React.createElement(Flex, { flexDirection: "row" },
20
- React.createElement(Flex, { justifyContent: "space-between", alignItems: "flex-start", py: 2, pr: imageUrl ? 4 : 2, flex: 1 },
21
- React.createElement(Text, { variant: "body", fontWeight: "medium", color: "neutral.c100", numberOfLines: 2 }, title),
22
- React.createElement(Text, { variant: "paragraph", fontWeight: "medium", color: "neutral.c70", numberOfLines: 1, mt: 4 }, tag)),
23
- imageUrl && (React.createElement(ImageContent, { source: {
24
- uri: imageUrl,
25
- }, style: styles.image, ...imageProps }))));
20
+ return (_jsxs(Flex, { flexDirection: "row", children: [_jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", py: 2, pr: imageUrl ? 4 : 2, flex: 1, children: [_jsx(Text, { variant: "body", fontWeight: "medium", color: "neutral.c100", numberOfLines: 2, children: title }), _jsx(Text, { variant: "paragraph", fontWeight: "medium", color: "neutral.c70", numberOfLines: 1, mt: 4, children: tag })] }), imageUrl && (_jsx(ImageContent, { source: {
21
+ uri: imageUrl,
22
+ }, style: styles.image, ...imageProps }))] }));
26
23
  };
27
24
  const InformativeCard = (props) => {
28
- return (React.createElement(Base, { ...props, activeOpacity: 0.5, onPress: props.onClickCard },
29
- React.createElement(CardContainer, { ...props })));
25
+ return (_jsx(Base, { ...props, activeOpacity: 0.5, onPress: props.onClickCard, children: _jsx(CardContainer, { ...props }) }));
30
26
  };
31
27
  export default memo(InformativeCard);
@@ -1,4 +1,4 @@
1
- import React, { type ReactNode } from "react";
1
+ import { type ReactNode } from "react";
2
2
  import * as Icons from "@ledgerhq/icons-ui/native";
3
3
  import type { BaseStyledProps } from "../../styled";
4
4
  type Props = BaseStyledProps & Readonly<{
@@ -10,6 +10,6 @@ type Props = BaseStyledProps & Readonly<{
10
10
  unread?: boolean;
11
11
  onPress: () => void;
12
12
  }>;
13
- export default function NewBannerCard({ title, description, cta, icon, hasExternalLinkIcon, unread, onPress, p, borderRadius, ...styledProps }: Props): React.JSX.Element;
13
+ export default function NewBannerCard({ title, description, cta, icon, hasExternalLinkIcon, unread, onPress, p, borderRadius, ...styledProps }: Props): import("react/jsx-runtime").JSX.Element;
14
14
  export {};
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/NewBannerCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,KAAK,KAAK,GAAG,eAAe,GAC1B,QAAQ,CAAC;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,MAAM,OAAO,KAAK,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC,CAAC;AAEL,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,KAAK,EACL,WAAW,EACX,GAAG,EACH,IAAI,EACJ,mBAAmB,EACnB,MAAM,EACN,OAAO,EACP,CAAK,EACL,YAAiB,EACjB,GAAG,WAAW,EACf,EAAE,KAAK,qBAsDP"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/NewBannerCard/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,KAAK,KAAK,GAAG,eAAe,GAC1B,QAAQ,CAAC;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,MAAM,OAAO,KAAK,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC,CAAC;AAEL,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,KAAK,EACL,WAAW,EACX,GAAG,EACH,IAAI,EACJ,mBAAmB,EACnB,MAAM,EACN,OAAO,EACP,CAAK,EACL,YAAiB,EACjB,GAAG,WAAW,EACf,EAAE,KAAK,2CAsDP"}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Pressable } from "react-native";
3
3
  import { useTheme } from "styled-components/native";
4
4
  import * as Icons from "@ledgerhq/icons-ui/native";
@@ -7,15 +7,5 @@ import { Flex } from "../../Layout";
7
7
  import Text from "../../Text";
8
8
  export default function NewBannerCard({ title, description, cta, icon, hasExternalLinkIcon, unread, onPress, p = 4, borderRadius = 12, ...styledProps }) {
9
9
  const { theme } = useTheme();
10
- return (React.createElement(Pressable, { onPress: onPress, style: (p) => [{ opacity: p.pressed ? 0.2 : 1.0 }] },
11
- React.createElement(Flex, { flexDirection: "row", alignItems: "center", bg: theme === "dark" ? "opacityDefault.c05" : "background.default", p: p, borderRadius: borderRadius, ...styledProps },
12
- React.createElement(Flex, { position: "relative" },
13
- React.createElement(BannerIcon, { icon: icon }),
14
- !!unread && (React.createElement(Flex, { bg: "error.c60", height: 8, width: 8, borderRadius: 4, position: "absolute", right: 0, bottom: 0 }))),
15
- React.createElement(Flex, { ml: 5, flexShrink: 1 },
16
- title && (React.createElement(Text, { color: "neutral.c70", variant: "subtitle" }, title)),
17
- React.createElement(Text, { color: "neutral.c100", variant: "body", mt: 2 }, description),
18
- React.createElement(Flex, { mt: 3, flexDirection: "row", alignItems: "center" },
19
- React.createElement(Text, { color: "primary.c80", variant: "paragraph", fontWeight: "semiBold", pr: hasExternalLinkIcon ? 3 : 0 }, cta),
20
- hasExternalLinkIcon && React.createElement(Icons.ExternalLink, { size: "S", color: "primary.c80" }))))));
10
+ return (_jsx(Pressable, { onPress: onPress, style: (p) => [{ opacity: p.pressed ? 0.2 : 1.0 }], children: _jsxs(Flex, { flexDirection: "row", alignItems: "center", bg: theme === "dark" ? "opacityDefault.c05" : "background.default", p: p, borderRadius: borderRadius, ...styledProps, children: [_jsxs(Flex, { position: "relative", children: [_jsx(BannerIcon, { icon: icon }), !!unread && (_jsx(Flex, { bg: "error.c60", height: 8, width: 8, borderRadius: 4, position: "absolute", right: 0, bottom: 0 }))] }), _jsxs(Flex, { ml: 5, flexShrink: 1, children: [title && (_jsx(Text, { color: "neutral.c70", variant: "subtitle", children: title })), _jsx(Text, { color: "neutral.c100", variant: "body", mt: 2, children: description }), _jsxs(Flex, { mt: 3, flexDirection: "row", alignItems: "center", children: [_jsx(Text, { color: "primary.c80", variant: "paragraph", fontWeight: "semiBold", pr: hasExternalLinkIcon ? 3 : 0, children: cta }), hasExternalLinkIcon && _jsx(Icons.ExternalLink, { size: "S", color: "primary.c80" })] })] })] }) }));
21
11
  }
@@ -12,8 +12,6 @@ export type CardProps = TouchableOpacityProps & {
12
12
  viewed: boolean;
13
13
  };
14
14
  declare const NotificationCard: (props: CardProps) => React.ReactElement;
15
- export declare const Base: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<Omit<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, "ref"> & {
16
- ref?: ((instance: import("react-native").View | null) => void) | React.RefObject<import("react-native").View> | null | undefined;
17
- }, never>>;
15
+ export declare const Base: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
18
16
  export default NotificationCard;
19
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/NotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,EAAE,qBAAqB,EAAoB,MAAM,cAAc,CAAC;AAEvE,MAAM,MAAM,SAAS,GAAG,qBAAqB,GAAG;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AA0BF,QAAA,MAAM,gBAAgB,UAAW,SAAS,KAAG,MAAM,YAwElD,CAAC;AAEF,eAAO,MAAM,IAAI;;UAA6B,CAAC;AAM/C,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/NotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,EAAE,qBAAqB,EAAoB,MAAM,cAAc,CAAC;AAEvE,MAAM,MAAM,SAAS,GAAG,qBAAqB,GAAG;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AA0BF,QAAA,MAAM,gBAAgB,UAAW,SAAS,KAAG,MAAM,YAwElD,CAAC;AAEF,eAAO,MAAM,IAAI,uUAA6B,CAAC;AAM/C,eAAe,gBAAgB,CAAC"}
@@ -1,4 +1,5 @@
1
- import React, { useMemo } from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
2
3
  import { ExternalLinkMedium } from "@ledgerhq/icons-ui/nativeLegacy";
3
4
  import Text from "../../Text";
4
5
  import Flex from "../../Layout/Flex";
@@ -6,27 +7,15 @@ import Box from "../../Layout/Box";
6
7
  import Link from "../../cta/Link";
7
8
  import styled from "styled-components/native";
8
9
  import { TouchableOpacity } from "react-native";
9
- const Tag = ({ tag }) => (React.createElement(Flex, { bg: "opacityDefault.c10", borderRadius: 6, px: 3, py: "3px", maxWidth: "75%" },
10
- React.createElement(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1 }, tag)));
11
- const Timer = ({ time, viewed }) => (React.createElement(Flex, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", ml: 2 },
12
- React.createElement(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1 }, time),
13
- React.createElement(Box, { ml: 3, backgroundColor: viewed ? "transparent" : "error.c40", height: "8px", width: "8px", borderRadius: 24 })));
10
+ const Tag = ({ tag }) => (_jsx(Flex, { bg: "opacityDefault.c10", borderRadius: 6, px: 3, py: "3px", maxWidth: "75%", children: _jsx(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1, children: tag }) }));
11
+ const Timer = ({ time, viewed }) => (_jsxs(Flex, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", ml: 2, children: [_jsx(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1, children: time }), _jsx(Box, { ml: 3, backgroundColor: viewed ? "transparent" : "error.c40", height: "8px", width: "8px", borderRadius: 24 })] }));
14
12
  const NotificationCard = (props) => {
15
13
  const { tag = "", time = "", title, description, cta, viewed, onClickCard, showLinkCta, link = "", } = props;
16
14
  const ctaIcon = useMemo(() => {
17
15
  const isDeepLink = link?.startsWith("ledgerlive:");
18
- return link && isDeepLink ? undefined : () => React.createElement(ExternalLinkMedium, { color: "neutral.c100" });
16
+ return link && isDeepLink ? undefined : () => _jsx(ExternalLinkMedium, { color: "neutral.c100" });
19
17
  }, [link]);
20
- return (React.createElement(Base, { onPress: onClickCard, activeOpacity: link ? 0.5 : 1 },
21
- React.createElement(Flex, { width: "100%", flexDirection: "column" },
22
- React.createElement(Flex, { flexDirection: "row", justifyContent: "space-between" },
23
- React.createElement(Tag, { tag: tag }),
24
- React.createElement(Timer, { time: time, viewed: viewed })),
25
- React.createElement(Text, { variant: "large", fontWeight: "semiBold", color: "neutral.c100", numberOfLines: 1, mt: 4 }, title),
26
- typeof description === "string" ? (React.createElement(Text, { variant: "bodyLineHeight", fontWeight: "medium", color: "neutral.c70", numberOfLines: 3, mt: 2, mb: showLinkCta ? 4 : 0 }, description)) : (React.createElement(Box, { mt: 2, mb: showLinkCta ? 4 : 0 }, description)),
27
- !!showLinkCta && (React.createElement(Flex, { alignItems: "flex-start" },
28
- React.createElement(Link, { type: "main", size: "medium", iconPosition: "right", Icon: ctaIcon, onPress: onClickCard, numberOfLines: 1 },
29
- React.createElement(StyledText, { variant: "bodyLineHeight", fontWeight: "semiBold", color: "neutral.c100", numberOfLines: 1 }, cta)))))));
18
+ return (_jsx(Base, { onPress: onClickCard, activeOpacity: link ? 0.5 : 1, children: _jsxs(Flex, { width: "100%", flexDirection: "column", children: [_jsxs(Flex, { flexDirection: "row", justifyContent: "space-between", children: [_jsx(Tag, { tag: tag }), _jsx(Timer, { time: time, viewed: viewed })] }), _jsx(Text, { variant: "large", fontWeight: "semiBold", color: "neutral.c100", numberOfLines: 1, mt: 4, children: title }), typeof description === "string" ? (_jsx(Text, { variant: "bodyLineHeight", fontWeight: "medium", color: "neutral.c70", numberOfLines: 3, mt: 2, mb: showLinkCta ? 4 : 0, children: description })) : (_jsx(Box, { mt: 2, mb: showLinkCta ? 4 : 0, children: description })), !!showLinkCta && (_jsx(Flex, { alignItems: "flex-start", children: _jsx(Link, { type: "main", size: "medium", iconPosition: "right", Icon: ctaIcon, onPress: onClickCard, numberOfLines: 1, children: _jsx(StyledText, { variant: "bodyLineHeight", fontWeight: "semiBold", color: "neutral.c100", numberOfLines: 1, children: cta }) }) }))] }) }));
30
19
  };
31
20
  export const Base = styled(TouchableOpacity) ``;
32
21
  const StyledText = styled(Text) `
@@ -7,30 +7,26 @@ export type CardProps = TouchableOpacityProps & {
7
7
  imageUrl?: string;
8
8
  onPressDismiss?: () => void;
9
9
  };
10
- export declare const Base: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<Omit<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, "ref"> & {
11
- ref?: ((instance: import("react-native").View | null) => void) | React.RefObject<import("react-native").View> | null | undefined;
12
- }, never>>;
13
- export declare const Container: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, "color" | "bottom" | "top" | "left" | "right" | "flex" | "p" | "height" | "width" | "border" | "size" | "display" | "opacity" | "order" | "overflow" | "position" | "padding" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "verticalAlign" | "backgroundColor" | "borderColor" | "alignContent" | "alignItems" | "alignSelf" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopWidth" | "borderWidth" | "flexBasis" | "flexDirection" | "rowGap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "zIndex" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderStyle" | "borderTopColor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "justifyItems" | "justifySelf" | "bg" | "overflowX" | "overflowY" | "borderX" | "borderY" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat"> & 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").OverflowProps<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").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
10
+ export declare const Base: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
11
+ export declare const Container: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, "color" | "bottom" | "top" | "left" | "right" | "flex" | "p" | "size" | "position" | "border" | "padding" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "height" | "width" | "verticalAlign" | "backgroundColor" | "borderColor" | "overflow" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopWidth" | "borderWidth" | "display" | "flexBasis" | "flexDirection" | "rowGap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "zIndex" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderStyle" | "borderTopColor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "justifyItems" | "justifySelf" | "order" | "bg" | "overflowX" | "overflowY" | "borderX" | "borderY" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat"> & 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").OverflowProps<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").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
14
12
  columnGap?: string | number | undefined;
15
13
  rowGap?: string | number | undefined;
16
14
  color?: string | undefined;
17
15
  display?: string | undefined;
18
16
  position?: string | undefined;
19
17
  maxHeight?: string | number | undefined;
20
- }, never>>;
21
- export declare const ImageContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, "color" | "bottom" | "top" | "left" | "right" | "flex" | "p" | "height" | "width" | "border" | "size" | "display" | "opacity" | "order" | "overflow" | "position" | "padding" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "verticalAlign" | "backgroundColor" | "borderColor" | "alignContent" | "alignItems" | "alignSelf" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopWidth" | "borderWidth" | "flexBasis" | "flexDirection" | "rowGap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "zIndex" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderStyle" | "borderTopColor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "justifyItems" | "justifySelf" | "bg" | "overflowX" | "overflowY" | "borderX" | "borderY" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat"> & 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").OverflowProps<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").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
18
+ }, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
19
+ export declare const ImageContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, "color" | "bottom" | "top" | "left" | "right" | "flex" | "p" | "size" | "position" | "border" | "padding" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "height" | "width" | "verticalAlign" | "backgroundColor" | "borderColor" | "overflow" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopWidth" | "borderWidth" | "display" | "flexBasis" | "flexDirection" | "rowGap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "zIndex" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderStyle" | "borderTopColor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "justifyItems" | "justifySelf" | "order" | "bg" | "overflowX" | "overflowY" | "borderX" | "borderY" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat"> & 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").OverflowProps<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").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
22
20
  columnGap?: string | number | undefined;
23
21
  rowGap?: string | number | undefined;
24
22
  color?: string | undefined;
25
23
  display?: string | undefined;
26
24
  position?: string | undefined;
27
25
  maxHeight?: string | number | undefined;
28
- }, never>>;
29
- export declare const ImageContent: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ImageProps & React.RefAttributes<Image>, never>>;
30
- export declare const CloseContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<Omit<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, "ref"> & {
31
- ref?: ((instance: import("react-native").View | null) => void) | React.RefObject<import("react-native").View> | null | undefined;
32
- }, never>>;
33
- export declare const CloseButton: (props: CardProps) => React.JSX.Element;
26
+ }, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
27
+ export declare const ImageContent: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("react-native").ImageProps & React.RefAttributes<Image>, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
28
+ export declare const CloseContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<TouchableOpacityProps & React.RefAttributes<import("react-native").View>, import("styled-components/native/dist/types").BaseObject>> & import("styled-components/native/dist/types").BaseObject;
29
+ export declare const CloseButton: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
34
30
  declare const SideImageCard: (props: CardProps) => React.ReactElement;
35
31
  export default SideImageCard;
36
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/SideImageCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAoB,KAAK,EAAE,MAAM,cAAc,CAAC;AAQ9E,MAAM,MAAM,SAAS,GAAG,qBAAqB,GAAG;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,IAAI;;UAEhB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;UAIrB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;UAI1B,CAAC;AACF,eAAO,MAAM,YAAY,6MAIxB,CAAC;AAEF,eAAO,MAAM,cAAc;;UAW1B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,SAAS,sBAO3C,CAAC;AAiEF,QAAA,MAAM,aAAa,UAAW,SAAS,KAAG,MAAM,YAM/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/SideImageCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAoB,KAAK,EAAE,MAAM,cAAc,CAAC;AAQ9E,MAAM,MAAM,SAAS,GAAG,qBAAqB,GAAG;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,IAAI,uUAEhB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;wHAIrB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;wHAI1B,CAAC;AACF,eAAO,MAAM,YAAY,6TAIxB,CAAC;AAEF,eAAO,MAAM,cAAc,uUAW1B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,SAAS,4CAO3C,CAAC;AAiEF,QAAA,MAAM,aAAa,UAAW,SAAS,KAAG,MAAM,YAM/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ArrowRightMedium, CloseMedium } from "@ledgerhq/icons-ui/nativeLegacy";
3
3
  import { TouchableOpacity, Image } from "react-native";
4
4
  import styled, { useTheme } from "styled-components/native";
@@ -38,27 +38,17 @@ export const CloseContainer = styled(TouchableOpacity) `
38
38
  `;
39
39
  export const CloseButton = (props) => {
40
40
  const { colors } = useTheme();
41
- return (React.createElement(CloseContainer, { onPress: props.onPressDismiss },
42
- React.createElement(CloseMedium, { size: 14, color: colors.neutral.c100 })));
41
+ return (_jsx(CloseContainer, { onPress: props.onPressDismiss, children: _jsx(CloseMedium, { size: 14, color: colors.neutral.c100 }) }));
43
42
  };
44
- const ImageComponent = (props) => (React.createElement(ImageContainer, { width: props.imageUrl ? 115 : 0 },
45
- React.createElement(ImageContent, { source: {
46
- uri: props.imageUrl,
47
- }, style: { width: "100%", height: "100%" } }),
48
- React.createElement(CloseButton, { onPressDismiss: props.onPressDismiss })));
49
- const TextComponent = (props) => (React.createElement(Flex, { justifyContent: "space-between", alignItems: "flex-start", p: "12px", flex: 1 },
50
- React.createElement(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c70", uppercase: true, numberOfLines: 1, maxWidth: "80%" }, props.tag),
51
- props.title && (React.createElement(Text, { variant: "large", numberOfLines: 3, fontWeight: "semiBold", color: "neutral.c100", lineHeight: "18.2px" }, highlight(props.title, "large"))),
52
- React.createElement(Link, { type: "main", size: "medium", iconPosition: "right", Icon: () => React.createElement(ArrowRightMedium, { color: "primary.c80" }), onPress: props.onPress, numberOfLines: 1 },
53
- React.createElement(Text, { variant: "paragraph", fontWeight: "semiBold", color: "primary.c80", numberOfLines: 1 }, props.cta))));
43
+ const ImageComponent = (props) => (_jsxs(ImageContainer, { width: props.imageUrl ? 115 : 0, children: [_jsx(ImageContent, { source: {
44
+ uri: props.imageUrl,
45
+ }, style: { width: "100%", height: "100%" } }), _jsx(CloseButton, { onPressDismiss: props.onPressDismiss })] }));
46
+ const TextComponent = (props) => (_jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", p: "12px", flex: 1, children: [_jsx(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c70", uppercase: true, numberOfLines: 1, maxWidth: "80%", children: props.tag }), props.title && (_jsx(Text, { variant: "large", numberOfLines: 3, fontWeight: "semiBold", color: "neutral.c100", lineHeight: "18.2px", children: highlight(props.title, "large") })), _jsx(Link, { type: "main", size: "medium", iconPosition: "right", Icon: () => _jsx(ArrowRightMedium, { color: "primary.c80" }), onPress: props.onPress, numberOfLines: 1, children: _jsx(Text, { variant: "paragraph", fontWeight: "semiBold", color: "primary.c80", numberOfLines: 1, children: props.cta }) })] }));
54
47
  const CardContainer = (props) => {
55
48
  const { imageUrl, onPressDismiss } = props;
56
- return (React.createElement(Container, { height: 125 },
57
- React.createElement(TextComponent, { ...props }),
58
- React.createElement(ImageComponent, { imageUrl: imageUrl, onPressDismiss: onPressDismiss })));
49
+ return (_jsxs(Container, { height: 125, children: [_jsx(TextComponent, { ...props }), _jsx(ImageComponent, { imageUrl: imageUrl, onPressDismiss: onPressDismiss })] }));
59
50
  };
60
51
  const SideImageCard = (props) => {
61
- return (React.createElement(Base, { ...props, activeOpacity: 0.5 },
62
- React.createElement(CardContainer, { ...props })));
52
+ return (_jsx(Base, { ...props, activeOpacity: 0.5, children: _jsx(CardContainer, { ...props }) }));
63
53
  };
64
54
  export default SideImageCard;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { type JSX } from "react";
2
2
  import { BaseTextProps } from "../Text";
3
3
  declare function highlight(text: string, variant: BaseTextProps["variant"]): (string | JSX.Element)[];
4
4
  export { highlight };
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/Cards/helper.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,iBAAS,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,4BA0BjE;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/Cards/helper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,iBAAS,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,4BA0BjE;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Text } from "../../index";
3
3
  function highlight(text, variant) {
4
4
  const textSplitted = text
@@ -9,7 +9,7 @@ function highlight(text, variant) {
9
9
  textSplitted.forEach((w, index) => {
10
10
  if (index % 2 !== 0) {
11
11
  const word = w.replace(/<bold>(.*?)<\/bold>/g, "$1");
12
- elems.push(React.createElement(Text, { key: "highlighted_" + index, variant: variant, fontWeight: "semiBold", color: "primary.c80" }, word));
12
+ elems.push(_jsx(Text, { variant: variant, fontWeight: "semiBold", color: "primary.c80", children: word }, "highlighted_" + index));
13
13
  }
14
14
  else {
15
15
  elems.push(w);