@ledgerhq/lumen-ui-rnative 0.1.48 → 0.1.49

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 (292) hide show
  1. package/dist/module/i18n/locales/de.json +1 -3
  2. package/dist/module/i18n/locales/en.json +1 -3
  3. package/dist/module/i18n/locales/es.json +1 -3
  4. package/dist/module/i18n/locales/fr.json +1 -3
  5. package/dist/module/i18n/locales/ja.json +1 -3
  6. package/dist/module/i18n/locales/ko.json +1 -3
  7. package/dist/module/i18n/locales/pt.json +1 -3
  8. package/dist/module/i18n/locales/ru.json +1 -3
  9. package/dist/module/i18n/locales/th.json +1 -3
  10. package/dist/module/i18n/locales/tr.json +1 -3
  11. package/dist/module/i18n/locales/zh.json +1 -3
  12. package/dist/module/lib/Animations/Pulse/Pulse.js +3 -3
  13. package/dist/module/lib/Animations/Pulse/Pulse.js.map +1 -1
  14. package/dist/module/lib/Animations/Pulse/Pulse.mdx +0 -1
  15. package/dist/module/lib/Animations/Spin/Spin.js +3 -3
  16. package/dist/module/lib/Animations/Spin/Spin.js.map +1 -1
  17. package/dist/module/lib/Animations/Spin/Spin.mdx +0 -1
  18. package/dist/module/lib/Components/AddressInput/AddressInput.figma.js +36 -0
  19. package/dist/module/lib/Components/AddressInput/AddressInput.figma.js.map +1 -0
  20. package/dist/module/lib/Components/AddressInput/AddressInput.mdx +0 -183
  21. package/dist/module/lib/Components/AmountDisplay/AmountDisplay.figma.js +31 -0
  22. package/dist/module/lib/Components/AmountDisplay/AmountDisplay.figma.js.map +1 -0
  23. package/dist/module/lib/Components/AmountDisplay/AmountDisplay.mdx +0 -90
  24. package/dist/module/lib/Components/AmountInput/AmountInput.figma.js +70 -0
  25. package/dist/module/lib/Components/AmountInput/AmountInput.figma.js.map +1 -0
  26. package/dist/module/lib/Components/AmountInput/AmountInput.mdx +0 -190
  27. package/dist/module/lib/Components/Avatar/Avatar.figma.js +15 -12
  28. package/dist/module/lib/Components/Avatar/Avatar.figma.js.map +1 -1
  29. package/dist/module/lib/Components/Avatar/Avatar.js +4 -27
  30. package/dist/module/lib/Components/Avatar/Avatar.js.map +1 -1
  31. package/dist/module/lib/Components/Avatar/Avatar.mdx +53 -69
  32. package/dist/module/lib/Components/Avatar/Avatar.stories.js +27 -33
  33. package/dist/module/lib/Components/Avatar/Avatar.stories.js.map +1 -1
  34. package/dist/module/lib/Components/Avatar/Avatar.test.js +21 -39
  35. package/dist/module/lib/Components/Avatar/Avatar.test.js.map +1 -1
  36. package/dist/module/lib/Components/Banner/Banner.figma.js +107 -0
  37. package/dist/module/lib/Components/Banner/Banner.figma.js.map +1 -0
  38. package/dist/module/lib/Components/Banner/Banner.mdx +0 -86
  39. package/dist/module/lib/Components/BottomSheet/BottomSheet.figma.js +49 -0
  40. package/dist/module/lib/Components/BottomSheet/BottomSheet.figma.js.map +1 -0
  41. package/dist/module/lib/Components/BottomSheet/BottomSheet.mdx +0 -119
  42. package/dist/module/lib/Components/Button/Button.figma.js +45 -0
  43. package/dist/module/lib/Components/Button/Button.figma.js.map +1 -0
  44. package/dist/module/lib/Components/Button/Button.mdx +25 -224
  45. package/dist/module/lib/Components/Button/Button.stories.js +4 -36
  46. package/dist/module/lib/Components/Button/Button.stories.js.map +1 -1
  47. package/dist/module/lib/Components/Card/Card.figma.js +143 -0
  48. package/dist/module/lib/Components/Card/Card.figma.js.map +1 -0
  49. package/dist/module/lib/Components/Card/Card.mdx +0 -160
  50. package/dist/module/lib/Components/CardButton/CardButton.figma.js +38 -0
  51. package/dist/module/lib/Components/CardButton/CardButton.figma.js.map +1 -0
  52. package/dist/module/lib/Components/CardButton/CardButton.mdx +0 -48
  53. package/dist/module/lib/Components/Checkbox/Checkbox.figma.js +48 -0
  54. package/dist/module/lib/Components/Checkbox/Checkbox.figma.js.map +1 -0
  55. package/dist/module/lib/Components/Checkbox/Checkbox.mdx +0 -73
  56. package/dist/module/lib/Components/ContentBanner/ContentBanner.figma.js +91 -0
  57. package/dist/module/lib/Components/ContentBanner/ContentBanner.figma.js.map +1 -0
  58. package/dist/module/lib/Components/ContentBanner/ContentBanner.mdx +0 -2
  59. package/dist/module/lib/Components/CryptoIcon/CryptoIcon.figma.js +17 -0
  60. package/dist/module/lib/Components/CryptoIcon/CryptoIcon.figma.js.map +1 -0
  61. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.figma.js +29 -0
  62. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.figma.js.map +1 -0
  63. package/dist/module/lib/Components/Divider/Divider.figma.js +10 -0
  64. package/dist/module/lib/Components/Divider/Divider.figma.js.map +1 -0
  65. package/dist/module/lib/Components/Divider/Divider.mdx +0 -2
  66. package/dist/module/lib/Components/DotCount/DotCount.figma.js +29 -0
  67. package/dist/module/lib/Components/DotCount/DotCount.figma.js.map +1 -0
  68. package/dist/module/lib/Components/DotIndicator/DotIndicator.figma.js +29 -0
  69. package/dist/module/lib/Components/DotIndicator/DotIndicator.figma.js.map +1 -0
  70. package/dist/module/lib/Components/DotIndicator/DotIndicator.stories.js +6 -3
  71. package/dist/module/lib/Components/DotIndicator/DotIndicator.stories.js.map +1 -1
  72. package/dist/module/lib/Components/DotIndicator/getDotIndicatorProps.js +17 -0
  73. package/dist/module/lib/Components/DotIndicator/getDotIndicatorProps.js.map +1 -0
  74. package/dist/module/lib/Components/DotIndicator/getDotIndicatorProps.test.js +17 -0
  75. package/dist/module/lib/Components/DotIndicator/getDotIndicatorProps.test.js.map +1 -0
  76. package/dist/module/lib/Components/DotIndicator/index.js +1 -0
  77. package/dist/module/lib/Components/DotIndicator/index.js.map +1 -1
  78. package/dist/module/lib/Components/Icon/Icon.figma.js +1840 -0
  79. package/dist/module/lib/Components/Icon/Icon.figma.js.map +1 -0
  80. package/dist/module/lib/Components/Icon/Icon.mdx +0 -62
  81. package/dist/module/lib/Components/IconButton/IconButton.figma.js +42 -0
  82. package/dist/module/lib/Components/IconButton/IconButton.figma.js.map +1 -0
  83. package/dist/module/lib/Components/IconButton/IconButton.mdx +0 -68
  84. package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.figma.js +51 -0
  85. package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.figma.js.map +1 -0
  86. package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.mdx +0 -107
  87. package/dist/module/lib/Components/Link/Link.figma.js +41 -0
  88. package/dist/module/lib/Components/Link/Link.figma.js.map +1 -0
  89. package/dist/module/lib/Components/Link/Link.mdx +0 -102
  90. package/dist/module/lib/Components/ListItem/ListItem.figma.js +416 -0
  91. package/dist/module/lib/Components/ListItem/ListItem.figma.js.map +1 -0
  92. package/dist/module/lib/Components/ListItem/ListItem.mdx +0 -129
  93. package/dist/module/lib/Components/MediaBanner/MediaBanner.figma.js +25 -0
  94. package/dist/module/lib/Components/MediaBanner/MediaBanner.figma.js.map +1 -0
  95. package/dist/module/lib/Components/MediaBanner/MediaBanner.mdx +0 -3
  96. package/dist/module/lib/Components/MediaButton/MediaButton.figma.js +72 -0
  97. package/dist/module/lib/Components/MediaButton/MediaButton.figma.js.map +1 -0
  98. package/dist/module/lib/Components/MediaCard/MediaCard.figma.js +28 -0
  99. package/dist/module/lib/Components/MediaCard/MediaCard.figma.js.map +1 -0
  100. package/dist/module/lib/Components/MediaCard/MediaCard.mdx +0 -2
  101. package/dist/module/lib/Components/MediaImage/MediaImage.mdx +0 -1
  102. package/dist/module/lib/Components/MediaTag/MediaTag.figma.js +100 -0
  103. package/dist/module/lib/Components/MediaTag/MediaTag.figma.js.map +1 -0
  104. package/dist/module/lib/Components/MediaTag/MediaTag.mdx +0 -2
  105. package/dist/module/lib/Components/NavBar/NavBar.figma.js +79 -0
  106. package/dist/module/lib/Components/NavBar/NavBar.figma.js.map +1 -0
  107. package/dist/module/lib/Components/NavBar/NavBar.mdx +0 -2
  108. package/dist/module/lib/Components/OptionList/OptionList.mdx +0 -90
  109. package/dist/module/lib/Components/PageIndicator/PageIndicator.figma.js +13 -0
  110. package/dist/module/lib/Components/PageIndicator/PageIndicator.figma.js.map +1 -0
  111. package/dist/module/lib/Components/PageIndicator/PageIndicator.mdx +0 -2
  112. package/dist/module/lib/Components/SearchInput/SearchInput.figma.js +31 -0
  113. package/dist/module/lib/Components/SearchInput/SearchInput.figma.js.map +1 -0
  114. package/dist/module/lib/Components/SearchInput/SearchInput.mdx +0 -199
  115. package/dist/module/lib/Components/SegmentedControl/SegmentedControl.figma.js +35 -0
  116. package/dist/module/lib/Components/SegmentedControl/SegmentedControl.figma.js.map +1 -0
  117. package/dist/module/lib/Components/SegmentedControl/SegmentedControl.mdx +0 -1
  118. package/dist/module/lib/Components/Skeleton/Skeleton.figma.js +18 -0
  119. package/dist/module/lib/Components/Skeleton/Skeleton.figma.js.map +1 -0
  120. package/dist/module/lib/Components/Skeleton/Skeleton.mdx +0 -71
  121. package/dist/module/lib/Components/Spinner/Spinner.figma.js +13 -0
  122. package/dist/module/lib/Components/Spinner/Spinner.figma.js.map +1 -0
  123. package/dist/module/lib/Components/Spinner/Spinner.mdx +0 -100
  124. package/dist/module/lib/Components/Spot/Spot.figma.js +37 -0
  125. package/dist/module/lib/Components/Spot/Spot.figma.js.map +1 -0
  126. package/dist/module/lib/Components/Spot/Spot.mdx +0 -94
  127. package/dist/module/lib/Components/Stepper/Stepper.figma.js +13 -0
  128. package/dist/module/lib/Components/Stepper/Stepper.figma.js.map +1 -0
  129. package/dist/module/lib/Components/Stepper/Stepper.mdx +0 -67
  130. package/dist/module/lib/Components/Subheader/Subheader.figma.js +67 -0
  131. package/dist/module/lib/Components/Subheader/Subheader.figma.js.map +1 -0
  132. package/dist/module/lib/Components/Subheader/Subheader.mdx +0 -116
  133. package/dist/module/lib/Components/Switch/Switch.figma.js +58 -0
  134. package/dist/module/lib/Components/Switch/Switch.figma.js.map +1 -0
  135. package/dist/module/lib/Components/Switch/Switch.mdx +0 -39
  136. package/dist/module/lib/Components/TabBar/TabBar.figma.js +98 -0
  137. package/dist/module/lib/Components/TabBar/TabBar.figma.js.map +1 -0
  138. package/dist/module/lib/Components/TabBar/TabBar.mdx +0 -5
  139. package/dist/module/lib/Components/Tag/Tag.figma.js +41 -0
  140. package/dist/module/lib/Components/Tag/Tag.figma.js.map +1 -0
  141. package/dist/module/lib/Components/Tag/Tag.mdx +0 -2
  142. package/dist/module/lib/Components/TextInput/TextInput.figma.js +37 -0
  143. package/dist/module/lib/Components/TextInput/TextInput.figma.js.map +1 -0
  144. package/dist/module/lib/Components/TextInput/TextInput.mdx +0 -178
  145. package/dist/module/lib/Components/Tile/Tile.figma.js +111 -0
  146. package/dist/module/lib/Components/Tile/Tile.figma.js.map +1 -0
  147. package/dist/module/lib/Components/Tile/Tile.mdx +0 -53
  148. package/dist/module/lib/Components/TileButton/TileButton.figma.js +23 -0
  149. package/dist/module/lib/Components/TileButton/TileButton.figma.js.map +1 -0
  150. package/dist/module/lib/Components/TileButton/TileButton.mdx +0 -40
  151. package/dist/module/lib/Components/Tooltip/Tooltip.figma.js +26 -0
  152. package/dist/module/lib/Components/Tooltip/Tooltip.figma.js.map +1 -0
  153. package/dist/module/lib/Components/Tooltip/Tooltip.mdx +0 -183
  154. package/dist/module/lib/Components/Trend/Trend.figma.js +29 -0
  155. package/dist/module/lib/Components/Trend/Trend.figma.js.map +1 -0
  156. package/dist/module/lib/Components/Trend/Trend.mdx +0 -2
  157. package/dist/module/lib/Components/Utility/Text/Text.mdx +0 -1
  158. package/dist/module/lib/Symbols/Icons/ChevronAscending.js +1 -1
  159. package/dist/module/lib/Symbols/Icons/ChevronDescending.js +1 -1
  160. package/dist/module/lib/Symbols/Icons/Contact.js +50 -0
  161. package/dist/module/lib/Symbols/Icons/Contact.js.map +1 -0
  162. package/dist/module/lib/Symbols/index.js +1 -0
  163. package/dist/module/lib/Symbols/index.js.map +1 -1
  164. package/dist/typescript/src/lib/Animations/Pulse/Pulse.d.ts.map +1 -1
  165. package/dist/typescript/src/lib/Animations/Spin/Spin.d.ts.map +1 -1
  166. package/dist/typescript/src/lib/Components/Avatar/Avatar.d.ts +1 -4
  167. package/dist/typescript/src/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  168. package/dist/typescript/src/lib/Components/Avatar/types.d.ts +0 -6
  169. package/dist/typescript/src/lib/Components/Avatar/types.d.ts.map +1 -1
  170. package/dist/typescript/src/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +24 -0
  171. package/dist/typescript/src/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -0
  172. package/dist/typescript/src/lib/Components/DotIndicator/index.d.ts +1 -0
  173. package/dist/typescript/src/lib/Components/DotIndicator/index.d.ts.map +1 -1
  174. package/dist/typescript/src/lib/Symbols/Icons/Contact.d.ts +35 -0
  175. package/dist/typescript/src/lib/Symbols/Icons/Contact.d.ts.map +1 -0
  176. package/dist/typescript/src/lib/Symbols/index.d.ts +1 -0
  177. package/dist/typescript/src/lib/Symbols/index.d.ts.map +1 -1
  178. package/package.json +3 -3
  179. package/src/i18n/locales/de.json +1 -3
  180. package/src/i18n/locales/en.json +1 -3
  181. package/src/i18n/locales/es.json +1 -3
  182. package/src/i18n/locales/fr.json +1 -3
  183. package/src/i18n/locales/ja.json +1 -3
  184. package/src/i18n/locales/ko.json +1 -3
  185. package/src/i18n/locales/pt.json +1 -3
  186. package/src/i18n/locales/ru.json +1 -3
  187. package/src/i18n/locales/th.json +1 -3
  188. package/src/i18n/locales/tr.json +1 -3
  189. package/src/i18n/locales/zh.json +1 -3
  190. package/src/lib/Animations/Pulse/Pulse.mdx +0 -1
  191. package/src/lib/Animations/Pulse/Pulse.tsx +8 -1
  192. package/src/lib/Animations/Spin/Spin.mdx +0 -1
  193. package/src/lib/Animations/Spin/Spin.tsx +8 -1
  194. package/src/lib/Components/AddressInput/AddressInput.figma.tsx +39 -0
  195. package/src/lib/Components/AddressInput/AddressInput.mdx +0 -183
  196. package/src/lib/Components/AmountDisplay/AmountDisplay.figma.tsx +37 -0
  197. package/src/lib/Components/AmountDisplay/AmountDisplay.mdx +0 -90
  198. package/src/lib/Components/AmountInput/AmountInput.figma.tsx +78 -0
  199. package/src/lib/Components/AmountInput/AmountInput.mdx +0 -190
  200. package/src/lib/Components/Avatar/Avatar.figma.tsx +24 -14
  201. package/src/lib/Components/Avatar/Avatar.mdx +53 -69
  202. package/src/lib/Components/Avatar/Avatar.stories.tsx +16 -50
  203. package/src/lib/Components/Avatar/Avatar.test.tsx +12 -32
  204. package/src/lib/Components/Avatar/Avatar.tsx +4 -34
  205. package/src/lib/Components/Avatar/types.ts +0 -6
  206. package/src/lib/Components/Banner/Banner.figma.tsx +115 -0
  207. package/src/lib/Components/Banner/Banner.mdx +0 -86
  208. package/src/lib/Components/BottomSheet/BottomSheet.figma.tsx +52 -0
  209. package/src/lib/Components/BottomSheet/BottomSheet.mdx +0 -119
  210. package/src/lib/Components/Button/Button.figma.tsx +57 -0
  211. package/src/lib/Components/Button/Button.mdx +25 -224
  212. package/src/lib/Components/Button/Button.stories.tsx +3 -35
  213. package/src/lib/Components/Card/Card.figma.tsx +149 -0
  214. package/src/lib/Components/Card/Card.mdx +0 -160
  215. package/src/lib/Components/CardButton/CardButton.figma.tsx +49 -0
  216. package/src/lib/Components/CardButton/CardButton.mdx +0 -48
  217. package/src/lib/Components/Checkbox/Checkbox.figma.tsx +54 -0
  218. package/src/lib/Components/Checkbox/Checkbox.mdx +0 -73
  219. package/src/lib/Components/ContentBanner/ContentBanner.figma.tsx +108 -0
  220. package/src/lib/Components/ContentBanner/ContentBanner.mdx +0 -2
  221. package/src/lib/Components/CryptoIcon/CryptoIcon.figma.tsx +20 -0
  222. package/src/lib/Components/DescriptionItem/DescriptionItem.figma.tsx +36 -0
  223. package/src/lib/Components/Divider/Divider.figma.tsx +11 -0
  224. package/src/lib/Components/Divider/Divider.mdx +0 -2
  225. package/src/lib/Components/DotCount/DotCount.figma.tsx +32 -0
  226. package/src/lib/Components/DotIndicator/DotIndicator.figma.tsx +32 -0
  227. package/src/lib/Components/DotIndicator/DotIndicator.stories.tsx +4 -1
  228. package/src/lib/Components/DotIndicator/getDotIndicatorProps.test.ts +15 -0
  229. package/src/lib/Components/DotIndicator/getDotIndicatorProps.ts +10 -0
  230. package/src/lib/Components/DotIndicator/index.ts +1 -0
  231. package/src/lib/Components/Icon/Icon.figma.tsx +3085 -0
  232. package/src/lib/Components/Icon/Icon.mdx +0 -62
  233. package/src/lib/Components/IconButton/IconButton.figma.tsx +53 -0
  234. package/src/lib/Components/IconButton/IconButton.mdx +0 -68
  235. package/src/lib/Components/InteractiveIcon/InteractiveIcon.figma.tsx +52 -0
  236. package/src/lib/Components/InteractiveIcon/InteractiveIcon.mdx +0 -107
  237. package/src/lib/Components/Link/Link.figma.tsx +53 -0
  238. package/src/lib/Components/Link/Link.mdx +0 -102
  239. package/src/lib/Components/ListItem/ListItem.figma.tsx +431 -0
  240. package/src/lib/Components/ListItem/ListItem.mdx +0 -129
  241. package/src/lib/Components/MediaBanner/MediaBanner.figma.tsx +32 -0
  242. package/src/lib/Components/MediaBanner/MediaBanner.mdx +0 -3
  243. package/src/lib/Components/MediaButton/MediaButton.figma.tsx +60 -0
  244. package/src/lib/Components/MediaCard/MediaCard.figma.tsx +27 -0
  245. package/src/lib/Components/MediaCard/MediaCard.mdx +0 -2
  246. package/src/lib/Components/MediaImage/MediaImage.mdx +0 -1
  247. package/src/lib/Components/MediaTag/MediaTag.figma.tsx +116 -0
  248. package/src/lib/Components/MediaTag/MediaTag.mdx +0 -2
  249. package/src/lib/Components/NavBar/NavBar.figma.tsx +84 -0
  250. package/src/lib/Components/NavBar/NavBar.mdx +0 -2
  251. package/src/lib/Components/OptionList/OptionList.mdx +0 -90
  252. package/src/lib/Components/PageIndicator/PageIndicator.figma.tsx +11 -0
  253. package/src/lib/Components/PageIndicator/PageIndicator.mdx +0 -2
  254. package/src/lib/Components/SearchInput/SearchInput.figma.tsx +34 -0
  255. package/src/lib/Components/SearchInput/SearchInput.mdx +0 -199
  256. package/src/lib/Components/SegmentedControl/SegmentedControl.figma.tsx +34 -0
  257. package/src/lib/Components/SegmentedControl/SegmentedControl.mdx +0 -1
  258. package/src/lib/Components/Skeleton/Skeleton.figma.tsx +17 -0
  259. package/src/lib/Components/Skeleton/Skeleton.mdx +0 -71
  260. package/src/lib/Components/Spinner/Spinner.figma.tsx +12 -0
  261. package/src/lib/Components/Spinner/Spinner.mdx +0 -100
  262. package/src/lib/Components/Spot/Spot.figma.tsx +50 -0
  263. package/src/lib/Components/Spot/Spot.mdx +0 -94
  264. package/src/lib/Components/Stepper/Stepper.figma.tsx +11 -0
  265. package/src/lib/Components/Stepper/Stepper.mdx +0 -67
  266. package/src/lib/Components/Subheader/Subheader.figma.tsx +72 -0
  267. package/src/lib/Components/Subheader/Subheader.mdx +0 -116
  268. package/src/lib/Components/Switch/Switch.figma.tsx +66 -0
  269. package/src/lib/Components/Switch/Switch.mdx +0 -39
  270. package/src/lib/Components/TabBar/TabBar.figma.tsx +70 -0
  271. package/src/lib/Components/TabBar/TabBar.mdx +0 -5
  272. package/src/lib/Components/Tag/Tag.figma.tsx +52 -0
  273. package/src/lib/Components/Tag/Tag.mdx +0 -2
  274. package/src/lib/Components/TextInput/TextInput.figma.tsx +40 -0
  275. package/src/lib/Components/TextInput/TextInput.mdx +0 -178
  276. package/src/lib/Components/Tile/Tile.figma.tsx +113 -0
  277. package/src/lib/Components/Tile/Tile.mdx +0 -53
  278. package/src/lib/Components/TileButton/TileButton.figma.tsx +35 -0
  279. package/src/lib/Components/TileButton/TileButton.mdx +0 -40
  280. package/src/lib/Components/Tooltip/Tooltip.figma.tsx +30 -0
  281. package/src/lib/Components/Tooltip/Tooltip.mdx +0 -183
  282. package/src/lib/Components/Trend/Trend.figma.tsx +28 -0
  283. package/src/lib/Components/Trend/Trend.mdx +0 -2
  284. package/src/lib/Components/Utility/Text/Text.mdx +0 -1
  285. package/src/lib/Symbols/Icons/ChevronAscending.tsx +1 -1
  286. package/src/lib/Symbols/Icons/ChevronDescending.tsx +1 -1
  287. package/src/lib/Symbols/Icons/Contact.tsx +45 -0
  288. package/src/lib/Symbols/index.ts +1 -0
  289. package/dist/typescript/src/lib/Components/Avatar/Avatar.figma.d.ts +0 -2
  290. package/dist/typescript/src/lib/Components/Avatar/Avatar.figma.d.ts.map +0 -1
  291. package/dist/typescript/src/lib/Components/OptionList/OptionList.figma.d.ts +0 -2
  292. package/dist/typescript/src/lib/Components/OptionList/OptionList.figma.d.ts.map +0 -1
@@ -0,0 +1,431 @@
1
+ import figma from '@figma/code-connect';
2
+ import CryptoIcon from '@ledgerhq/crypto-icons/native';
3
+ import { ChevronRight, Placeholder, Settings } from '../../Symbols';
4
+ import { Button } from '../Button';
5
+ import { Checkbox } from '../Checkbox';
6
+ import { Spot } from '../Spot';
7
+ import { Switch } from '../Switch/Switch';
8
+ import { Tag } from '../Tag';
9
+ import { Trend } from '../Trend';
10
+ import {
11
+ ListItem,
12
+ ListItemContent,
13
+ ListItemContentRow,
14
+ ListItemDescription,
15
+ ListItemLeading,
16
+ ListItemTitle,
17
+ ListItemTrailing,
18
+ } from './ListItem';
19
+
20
+ const commonProps = {
21
+ titleArea: figma.boolean('show-title-tag', {
22
+ true: (
23
+ <ListItemContentRow>
24
+ <ListItemTitle>Title</ListItemTitle>
25
+ <Tag label='Label' size='sm' appearance='base' />
26
+ </ListItemContentRow>
27
+ ),
28
+ false: <ListItemTitle>Title</ListItemTitle>,
29
+ }),
30
+ descriptionArea: figma.enum('density', {
31
+ compact: undefined,
32
+ expanded: figma.boolean('show-description', {
33
+ true: figma.boolean('show-description-tag', {
34
+ true: figma.boolean('show-description-network', {
35
+ true: (
36
+ <ListItemContentRow>
37
+ <ListItemDescription>Description</ListItemDescription>
38
+ <Tag label='Label' size='sm' appearance='gray' />
39
+ <CryptoIcon ledgerId='ethereum' ticker='ETH' size={20} />
40
+ </ListItemContentRow>
41
+ ),
42
+ false: (
43
+ <ListItemContentRow>
44
+ <ListItemDescription>Description</ListItemDescription>
45
+ <Tag label='Label' size='sm' appearance='gray' />
46
+ </ListItemContentRow>
47
+ ),
48
+ }),
49
+ false: figma.boolean('show-description-network', {
50
+ true: (
51
+ <ListItemContentRow>
52
+ <ListItemDescription>Description</ListItemDescription>
53
+ <CryptoIcon ledgerId='ethereum' ticker='ETH' size={20} />
54
+ </ListItemContentRow>
55
+ ),
56
+ false: <ListItemDescription>Description</ListItemDescription>,
57
+ }),
58
+ }),
59
+ false: figma.boolean('show-description-tag', {
60
+ true: figma.boolean('show-description-network', {
61
+ true: (
62
+ <ListItemContentRow>
63
+ <Tag label='Label' size='sm' appearance='gray' />
64
+ <CryptoIcon ledgerId='ethereum' ticker='ETH' size={20} />
65
+ </ListItemContentRow>
66
+ ),
67
+ false: <Tag label='Label' size='sm' appearance='gray' />,
68
+ }),
69
+ false: figma.boolean('show-description-network', {
70
+ true: <CryptoIcon ledgerId='ethereum' ticker='ETH' size={20} />,
71
+ false: undefined,
72
+ }),
73
+ }),
74
+ }),
75
+ }),
76
+ leadingContent: figma.enum('leading-content', {
77
+ 'no-icon': undefined,
78
+ coin: figma.enum('density', {
79
+ compact: <CryptoIcon ledgerId='bitcoin' ticker='BTC' size={24} />,
80
+ expanded: <CryptoIcon ledgerId='bitcoin' ticker='BTC' size={48} />,
81
+ }),
82
+ network: figma.enum('density', {
83
+ compact: <CryptoIcon ledgerId='ethereum' ticker='ETH' size={24} />,
84
+ expanded: <CryptoIcon ledgerId='ethereum' ticker='ETH' size={48} />,
85
+ }),
86
+ flag: figma.enum('density', {
87
+ compact: <CryptoIcon ledgerId='united-states' ticker='USD' size={24} />,
88
+ expanded: <CryptoIcon ledgerId='united-states' ticker='USD' size={48} />,
89
+ }),
90
+ spot: <Spot size={48} appearance='icon' icon={Settings} />,
91
+ 'interface-icon': <Placeholder size={24} />,
92
+ }),
93
+ checkbox: figma.boolean('show-checkbox', {
94
+ true: <Checkbox checked={false} onCheckedChange={() => {}} />,
95
+ false: undefined,
96
+ }),
97
+ disabled: figma.enum('state', {
98
+ disabled: true,
99
+ }),
100
+ density: figma.enum('density', {
101
+ compact: 'compact',
102
+ expanded: 'expanded',
103
+ }),
104
+ };
105
+
106
+ // —— trailing-content: none ——
107
+ figma.connect(
108
+ ListItem,
109
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=2255%3A4155',
110
+ {
111
+ imports: [
112
+ "import { ListItem, ListItemLeading, ListItemContent, ListItemContentRow, ListItemTitle, ListItemDescription, ListItemTrailing } from '@ledgerhq/lumen-ui-rnative'",
113
+ "import { Spot } from '@ledgerhq/lumen-ui-rnative'",
114
+ "import { Settings, Placeholder, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols'",
115
+ "import { Checkbox } from '@ledgerhq/lumen-ui-rnative'",
116
+ "import { Tag } from '@ledgerhq/lumen-ui-rnative'",
117
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
118
+ ],
119
+ variant: { 'trailing-content': 'none' },
120
+ props: {
121
+ ...commonProps,
122
+ chevron: figma.boolean('show-chevron', {
123
+ true: (
124
+ <ListItemTrailing>
125
+ <ChevronRight size={24} />
126
+ </ListItemTrailing>
127
+ ),
128
+ false: undefined,
129
+ }),
130
+ },
131
+ example: (props) => (
132
+ <ListItem disabled={props.disabled} density={props.density}>
133
+ <ListItemLeading>
134
+ {props.checkbox}
135
+ {props.leadingContent}
136
+ <ListItemContent>
137
+ {props.titleArea}
138
+ {props.descriptionArea}
139
+ </ListItemContent>
140
+ </ListItemLeading>
141
+ {props.chevron}
142
+ </ListItem>
143
+ ),
144
+ },
145
+ );
146
+
147
+ // —— trailing-content: value (without subvalue) ——
148
+ figma.connect(
149
+ ListItem,
150
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=2255%3A4155',
151
+ {
152
+ imports: [
153
+ "import { ListItem, ListItemLeading, ListItemContent, ListItemContentRow, ListItemTitle, ListItemDescription, ListItemTrailing } from '@ledgerhq/lumen-ui-rnative'",
154
+ "import { Spot } from '@ledgerhq/lumen-ui-rnative'",
155
+ "import { Settings, Placeholder, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols'",
156
+ "import { Checkbox } from '@ledgerhq/lumen-ui-rnative'",
157
+ "import { Tag } from '@ledgerhq/lumen-ui-rnative'",
158
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
159
+ ],
160
+ variant: { 'trailing-content': 'value', 'show-subvalue': false },
161
+ props: {
162
+ ...commonProps,
163
+ value: figma.string('value'),
164
+ chevron: figma.boolean('show-chevron', {
165
+ true: <ChevronRight size={24} />,
166
+ false: undefined,
167
+ }),
168
+ },
169
+ example: (props) => (
170
+ <ListItem disabled={props.disabled} density={props.density}>
171
+ <ListItemLeading>
172
+ {props.checkbox}
173
+ {props.leadingContent}
174
+ <ListItemContent>
175
+ {props.titleArea}
176
+ {props.descriptionArea}
177
+ </ListItemContent>
178
+ </ListItemLeading>
179
+ <ListItemTrailing>
180
+ <ListItemTitle>{props.value}</ListItemTitle>
181
+ {props.chevron}
182
+ </ListItemTrailing>
183
+ </ListItem>
184
+ ),
185
+ },
186
+ );
187
+
188
+ // —— trailing-content: value (with subvalue) ——
189
+ figma.connect(
190
+ ListItem,
191
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=2255%3A4155',
192
+ {
193
+ imports: [
194
+ "import { ListItem, ListItemLeading, ListItemContent, ListItemContentRow, ListItemTitle, ListItemDescription, ListItemTrailing } from '@ledgerhq/lumen-ui-rnative'",
195
+ "import { Spot } from '@ledgerhq/lumen-ui-rnative'",
196
+ "import { Settings, Placeholder, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols'",
197
+ "import { Checkbox } from '@ledgerhq/lumen-ui-rnative'",
198
+ "import { Tag } from '@ledgerhq/lumen-ui-rnative'",
199
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
200
+ ],
201
+ variant: { 'trailing-content': 'value', 'show-subvalue': true },
202
+ props: {
203
+ ...commonProps,
204
+ value: figma.string('value'),
205
+ subvalue: figma.string('subvalue'),
206
+ chevron: figma.boolean('show-chevron', {
207
+ true: <ChevronRight size={24} />,
208
+ false: undefined,
209
+ }),
210
+ },
211
+ example: (props) => (
212
+ <ListItem disabled={props.disabled} density={props.density}>
213
+ <ListItemLeading>
214
+ {props.checkbox}
215
+ {props.leadingContent}
216
+ <ListItemContent>
217
+ {props.titleArea}
218
+ {props.descriptionArea}
219
+ </ListItemContent>
220
+ </ListItemLeading>
221
+ <ListItemTrailing>
222
+ <ListItemContent>
223
+ <ListItemTitle>{props.value}</ListItemTitle>
224
+ <ListItemDescription>{props.subvalue}</ListItemDescription>
225
+ </ListItemContent>
226
+ {props.chevron}
227
+ </ListItemTrailing>
228
+ </ListItem>
229
+ ),
230
+ },
231
+ );
232
+
233
+ // —— trailing-content: icon ——
234
+ figma.connect(
235
+ ListItem,
236
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=2255%3A4155',
237
+ {
238
+ imports: [
239
+ "import { ListItem, ListItemLeading, ListItemContent, ListItemContentRow, ListItemTitle, ListItemDescription, ListItemTrailing } from '@ledgerhq/lumen-ui-rnative'",
240
+ "import { Spot } from '@ledgerhq/lumen-ui-rnative'",
241
+ "import { Settings, Placeholder, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols'",
242
+ "import { Checkbox } from '@ledgerhq/lumen-ui-rnative'",
243
+ "import { Tag } from '@ledgerhq/lumen-ui-rnative'",
244
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
245
+ ],
246
+ variant: { 'trailing-content': 'icon' },
247
+ props: {
248
+ ...commonProps,
249
+ chevron: figma.boolean('show-chevron', {
250
+ true: <ChevronRight size={24} />,
251
+ false: undefined,
252
+ }),
253
+ },
254
+ example: (props) => (
255
+ <ListItem disabled={props.disabled} density={props.density}>
256
+ <ListItemLeading>
257
+ {props.checkbox}
258
+ {props.leadingContent}
259
+ <ListItemContent>
260
+ {props.titleArea}
261
+ {props.descriptionArea}
262
+ </ListItemContent>
263
+ </ListItemLeading>
264
+ <ListItemTrailing>
265
+ <Placeholder size={24} />
266
+ {props.chevron}
267
+ </ListItemTrailing>
268
+ </ListItem>
269
+ ),
270
+ },
271
+ );
272
+
273
+ // —— trailing-content: tag ——
274
+ figma.connect(
275
+ ListItem,
276
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=2255%3A4155',
277
+ {
278
+ imports: [
279
+ "import { ListItem, ListItemLeading, ListItemContent, ListItemContentRow, ListItemTitle, ListItemDescription, ListItemTrailing } from '@ledgerhq/lumen-ui-rnative'",
280
+ "import { Spot } from '@ledgerhq/lumen-ui-rnative'",
281
+ "import { Settings, Placeholder, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols'",
282
+ "import { Checkbox } from '@ledgerhq/lumen-ui-rnative'",
283
+ "import { Tag } from '@ledgerhq/lumen-ui-rnative'",
284
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
285
+ ],
286
+ variant: { 'trailing-content': 'tag' },
287
+ props: {
288
+ ...commonProps,
289
+ chevron: figma.boolean('show-chevron', {
290
+ true: <ChevronRight size={24} />,
291
+ false: undefined,
292
+ }),
293
+ },
294
+ example: (props) => (
295
+ <ListItem disabled={props.disabled} density={props.density}>
296
+ <ListItemLeading>
297
+ {props.checkbox}
298
+ {props.leadingContent}
299
+ <ListItemContent>
300
+ {props.titleArea}
301
+ {props.descriptionArea}
302
+ </ListItemContent>
303
+ </ListItemLeading>
304
+ <ListItemTrailing>
305
+ <Tag label='Label' appearance='base' size='sm' />
306
+ {props.chevron}
307
+ </ListItemTrailing>
308
+ </ListItem>
309
+ ),
310
+ },
311
+ );
312
+
313
+ // —— trailing-content: toggle ——
314
+ figma.connect(
315
+ ListItem,
316
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=2255%3A4155',
317
+ {
318
+ imports: [
319
+ "import { ListItem, ListItemLeading, ListItemContent, ListItemContentRow, ListItemTitle, ListItemDescription, ListItemTrailing } from '@ledgerhq/lumen-ui-rnative'",
320
+ "import { Spot } from '@ledgerhq/lumen-ui-rnative'",
321
+ "import { Settings, Placeholder } from '@ledgerhq/lumen-ui-rnative/symbols'",
322
+ "import { Checkbox } from '@ledgerhq/lumen-ui-rnative'",
323
+ "import { Tag } from '@ledgerhq/lumen-ui-rnative'",
324
+ "import { Switch } from '@ledgerhq/lumen-ui-rnative'",
325
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
326
+ ],
327
+ variant: { 'trailing-content': 'toggle' },
328
+ props: {
329
+ ...commonProps,
330
+ },
331
+ example: (props) => (
332
+ <ListItem disabled={props.disabled} density={props.density}>
333
+ <ListItemLeading>
334
+ {props.checkbox}
335
+ {props.leadingContent}
336
+ <ListItemContent>
337
+ {props.titleArea}
338
+ {props.descriptionArea}
339
+ </ListItemContent>
340
+ </ListItemLeading>
341
+ <ListItemTrailing>
342
+ <Switch checked={false} onCheckedChange={() => {}} />
343
+ </ListItemTrailing>
344
+ </ListItem>
345
+ ),
346
+ },
347
+ );
348
+
349
+ // —— trailing-content: value+trend ——
350
+ figma.connect(
351
+ ListItem,
352
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=2255%3A4155',
353
+ {
354
+ imports: [
355
+ "import { ListItem, ListItemLeading, ListItemContent, ListItemContentRow, ListItemTitle, ListItemDescription, ListItemTrailing } from '@ledgerhq/lumen-ui-rnative'",
356
+ "import { Spot } from '@ledgerhq/lumen-ui-rnative'",
357
+ "import { Settings, Placeholder, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols'",
358
+ "import { Checkbox } from '@ledgerhq/lumen-ui-rnative'",
359
+ "import { Tag } from '@ledgerhq/lumen-ui-rnative'",
360
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
361
+ ],
362
+ variant: { 'trailing-content': 'value+trend' },
363
+ props: {
364
+ ...commonProps,
365
+ value: figma.string('value'),
366
+ chevron: figma.boolean('show-chevron', {
367
+ true: <ChevronRight size={24} />,
368
+ false: undefined,
369
+ }),
370
+ },
371
+ example: (props) => (
372
+ <ListItem disabled={props.disabled} density={props.density}>
373
+ <ListItemLeading>
374
+ {props.checkbox}
375
+ {props.leadingContent}
376
+ <ListItemContent>
377
+ {props.titleArea}
378
+ {props.descriptionArea}
379
+ </ListItemContent>
380
+ </ListItemLeading>
381
+ <ListItemTrailing>
382
+ <ListItemContent
383
+ style={{ flexDirection: 'row', alignItems: 'center', gap: 's4' }}
384
+ >
385
+ <ListItemTitle>{props.value}</ListItemTitle>
386
+ <Trend value={5.25} size='sm' />
387
+ </ListItemContent>
388
+ {props.chevron}
389
+ </ListItemTrailing>
390
+ </ListItem>
391
+ ),
392
+ },
393
+ );
394
+
395
+ // —— trailing-content: button ——
396
+ figma.connect(
397
+ ListItem,
398
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=2255%3A4155',
399
+ {
400
+ imports: [
401
+ "import { ListItem, ListItemLeading, ListItemContent, ListItemContentRow, ListItemTitle, ListItemDescription, ListItemTrailing } from '@ledgerhq/lumen-ui-rnative'",
402
+ "import { Spot } from '@ledgerhq/lumen-ui-rnative'",
403
+ "import { Settings, Placeholder } from '@ledgerhq/lumen-ui-rnative/symbols'",
404
+ "import { Checkbox } from '@ledgerhq/lumen-ui-rnative'",
405
+ "import { Tag } from '@ledgerhq/lumen-ui-rnative'",
406
+ "import { Button } from '@ledgerhq/lumen-ui-rnative'",
407
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
408
+ ],
409
+ variant: { 'trailing-content': 'button' },
410
+ props: {
411
+ ...commonProps,
412
+ },
413
+ example: (props) => (
414
+ <ListItem disabled={props.disabled} density={props.density}>
415
+ <ListItemLeading>
416
+ {props.checkbox}
417
+ {props.leadingContent}
418
+ <ListItemContent>
419
+ {props.titleArea}
420
+ {props.descriptionArea}
421
+ </ListItemContent>
422
+ </ListItemLeading>
423
+ <ListItemTrailing>
424
+ <Button appearance='transparent' size='sm' onPress={() => {}}>
425
+ Label
426
+ </Button>
427
+ </ListItemTrailing>
428
+ </ListItem>
429
+ ),
430
+ },
431
+ );
@@ -13,11 +13,7 @@ import {
13
13
  import {
14
14
  CustomTabs,
15
15
  Tab,
16
- DoVsDontRow,
17
- DoBlockItem,
18
- DontBlockItem,
19
16
  } from '../../../../.storybook/components';
20
- import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
21
17
 
22
18
  <Meta title='Core/ListItem' of={ListItemStories} />
23
19
 
@@ -443,131 +439,6 @@ import { ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols';
443
439
  </ListItem>
444
440
  ```
445
441
 
446
- ## Do's and Don'ts
447
-
448
- The following guidelines ensure consistent usage of the ListItem component and maintain design system principles.
449
-
450
- <Box lx={{ flexDirection: 'column', gap: 's24' }}>
451
- <DoVsDontRow>
452
- <DoBlockItem
453
- title='Use the composite pattern correctly'
454
- description='ListItemContent should be nested inside ListItemLeading to group visual and text content together'
455
- >
456
-
457
- {/* prettier-ignore */}
458
- ```tsx
459
- <ListItem>
460
- <ListItemLeading>
461
- <Spot appearance='icon' icon={Settings} />
462
- <ListItemContent>
463
- <ListItemTitle>Settings</ListItemTitle>
464
- <ListItemDescription>Manage preferences</ListItemDescription>
465
- </ListItemContent>
466
- </ListItemLeading>
467
- <ListItemTrailing>
468
- <ChevronRight size={24} />
469
- </ListItemTrailing>
470
- </ListItem>
471
- ```
472
-
473
- </DoBlockItem>
474
- <DontBlockItem
475
- title="Don't place ListItemContent outside ListItemLeading"
476
- description='ListItemContent must be inside ListItemLeading for proper layout'
477
- >
478
-
479
- {/* prettier-ignore */}
480
- ```tsx
481
- // DON'T - ListItemContent outside ListItemLeading
482
- <ListItem>
483
- <ListItemLeading>
484
- <Spot appearance='icon' icon={Settings} />
485
- </ListItemLeading>
486
- <ListItemContent>
487
- <ListItemTitle>Settings</ListItemTitle>
488
- </ListItemContent>
489
- </ListItem>
490
- ```
491
-
492
- </DontBlockItem>
493
-
494
- </DoVsDontRow>
495
-
496
- <DoVsDontRow>
497
- <DoBlockItem
498
- title='Use ListItemContentRow for inline Tags'
499
- description='Wrap title or description with a Tag inside ListItemContentRow for proper layout'
500
- >
501
-
502
- {/* prettier-ignore */}
503
- ```tsx
504
- <ListItemContent>
505
- <ListItemContentRow>
506
- <ListItemTitle>New Item</ListItemTitle>
507
- <Tag label='New' appearance='base' size='sm' />
508
- </ListItemContentRow>
509
- <ListItemDescription>Recently added</ListItemDescription>
510
- </ListItemContent>
511
- ```
512
-
513
- </DoBlockItem>
514
- <DontBlockItem
515
- title="Don't place Tags outside ListItemContentRow"
516
- description='Tags placed directly inside ListItemContent break the layout'
517
- >
518
-
519
- {/* prettier-ignore */}
520
- ```tsx
521
- // DON'T - Tag outside ListItemContentRow
522
- <ListItemContent>
523
- <ListItemTitle>New Item</ListItemTitle>
524
- <ListItemDescription>Recently added</ListItemDescription>
525
- <Tag label='New' appearance='base' size='sm' />
526
- </ListItemContent>
527
- ```
528
-
529
- </DontBlockItem>
530
-
531
- </DoVsDontRow>
532
-
533
- <DoVsDontRow>
534
- <DoBlockItem
535
- title='Use concise text for title and description'
536
- description='Keep title and description short since they truncate to one line'
537
- >
538
-
539
- {/* prettier-ignore */}
540
- ```tsx
541
- <ListItemContent>
542
- <ListItemTitle>Account Settings</ListItemTitle>
543
- <ListItemDescription>Manage preferences</ListItemDescription>
544
- </ListItemContent>
545
- ```
546
-
547
- </DoBlockItem>
548
- <DontBlockItem
549
- title="Don't use long text"
550
- description='Title and description truncate to one line'
551
- >
552
-
553
- {/* prettier-ignore */}
554
- ```tsx
555
- <ListItemContent>
556
- <ListItemTitle>
557
- This is a very long title that will be truncated
558
- </ListItemTitle>
559
- <ListItemDescription>
560
- This is also a very long description that will be truncated
561
- </ListItemDescription>
562
- </ListItemContent>
563
- ```
564
-
565
- </DontBlockItem>
566
-
567
- </DoVsDontRow>
568
-
569
- <CommonRulesDoAndDont />
570
- </Box>
571
442
 
572
443
  </Tab>
573
444
  </CustomTabs>
@@ -0,0 +1,32 @@
1
+ import figma from '@figma/code-connect';
2
+ import {
3
+ MediaBanner,
4
+ MediaBannerDescription,
5
+ MediaBannerTitle,
6
+ } from './MediaBanner';
7
+
8
+ figma.connect(
9
+ MediaBanner,
10
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=18788-44622',
11
+ {
12
+ imports: [
13
+ "import { MediaBanner, MediaBannerTitle, MediaBannerDescription } from '@ledgerhq/lumen-ui-rnative'",
14
+ ],
15
+ props: {
16
+ onClose: figma.boolean('show-close', {
17
+ true: () => {},
18
+ false: undefined,
19
+ }),
20
+ },
21
+ example: (props) => (
22
+ <MediaBanner
23
+ imageUrl='/image.jpg'
24
+ onClose={props.onClose}
25
+ closeAccessibilityLabel='Close banner'
26
+ >
27
+ <MediaBannerTitle>Title</MediaBannerTitle>
28
+ <MediaBannerDescription>Description</MediaBannerDescription>
29
+ </MediaBanner>
30
+ ),
31
+ },
32
+ );
@@ -7,8 +7,6 @@ import {
7
7
  } from './MediaBanner';
8
8
  import { Box } from '../Utility';
9
9
  import { CustomTabs, Tab } from '../../../../.storybook/components';
10
- import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
11
- import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
12
10
 
13
11
  <Meta title='Core/MediaBanner' of={MediaBannerStories} />
14
12
 
@@ -144,7 +142,6 @@ Use the `lx` prop for layout adjustments like margins or positioning:
144
142
  </MediaBanner>
145
143
  ```
146
144
 
147
- <CommonRulesDoAndDont />
148
145
 
149
146
  </Tab>
150
147
  </CustomTabs>
@@ -0,0 +1,60 @@
1
+ import figma from '@figma/code-connect';
2
+ import CryptoIcon from '@ledgerhq/crypto-icons/native';
3
+ import { Placeholder } from '../../Symbols';
4
+ import { MediaButton } from './MediaButton';
5
+
6
+ figma.connect(
7
+ MediaButton,
8
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=6389-45680',
9
+ {
10
+ imports: [
11
+ "import { MediaButton } from '@ledgerhq/lumen-ui-rnative'",
12
+ "import { Placeholder } from '@ledgerhq/lumen-ui-rnative/symbols'",
13
+ "import CryptoIcon from '@ledgerhq/crypto-icons/native'",
14
+ ],
15
+ props: {
16
+ appearance: figma.enum('appearance', {
17
+ plain: 'gray',
18
+ transparent: 'transparent',
19
+ 'no-background': 'no-background',
20
+ }),
21
+ size: figma.enum('size', {
22
+ sm: 'sm',
23
+ md: 'md',
24
+ }),
25
+ leadingContent: figma.enum('leading-content', {
26
+ 'interface-icon': figma.enum('size', {
27
+ sm: <Placeholder size={24} />,
28
+ md: <Placeholder size={32} />,
29
+ }),
30
+ coin: figma.enum('size', {
31
+ sm: <CryptoIcon ledgerId='bitcoin' ticker='BTC' size={24} />,
32
+ md: <CryptoIcon ledgerId='bitcoin' ticker='BTC' size={32} />,
33
+ }),
34
+ stock: figma.enum('size', {
35
+ sm: <CryptoIcon size={24} ledgerId='walmart' ticker='WMT' />,
36
+ md: <CryptoIcon size={32} ledgerId='walmart' ticker='WMT' />,
37
+ }),
38
+ none: undefined,
39
+ }),
40
+ leadingContentShape: figma.enum('leading-content', {
41
+ 'interface-icon': 'flat',
42
+ coin: 'rounded',
43
+ stock: 'rounded',
44
+ none: 'flat',
45
+ }),
46
+ children: figma.string('label'),
47
+ },
48
+ example: (props) => (
49
+ <MediaButton
50
+ appearance={props.appearance}
51
+ size={props.size}
52
+ leadingContent={props.leadingContent}
53
+ leadingContentShape={props.leadingContentShape}
54
+ onPress={() => {}}
55
+ >
56
+ {props.children}
57
+ </MediaButton>
58
+ ),
59
+ },
60
+ );