@ledgerhq/lumen-ui-rnative 0.1.57 → 0.1.59

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 (348) hide show
  1. package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js +9 -0
  2. package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js.map +1 -1
  3. package/dist/module/lib/Components/animations/Spin/Spin.stories.js +3 -0
  4. package/dist/module/lib/Components/animations/Spin/Spin.stories.js.map +1 -1
  5. package/dist/module/lib/Components/core/AddressInput/AddressInput.figma.js +4 -0
  6. package/dist/module/lib/Components/core/AddressInput/AddressInput.figma.js.map +1 -1
  7. package/dist/module/lib/Components/core/AddressInput/AddressInput.js +18 -6
  8. package/dist/module/lib/Components/core/AddressInput/AddressInput.js.map +1 -1
  9. package/dist/module/lib/Components/core/AddressInput/AddressInput.mdx +26 -1
  10. package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js +30 -0
  11. package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js.map +1 -1
  12. package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js +6 -0
  13. package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js.map +1 -1
  14. package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js +64 -44
  15. package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js.map +1 -1
  16. package/dist/module/lib/Components/core/Banner/Banner.stories.js.map +1 -1
  17. package/dist/module/lib/Components/core/Button/Button.stories.js +21 -0
  18. package/dist/module/lib/Components/core/Button/Button.stories.js.map +1 -1
  19. package/dist/module/lib/Components/core/Card/Card.figma.js +17 -1
  20. package/dist/module/lib/Components/core/Card/Card.figma.js.map +1 -1
  21. package/dist/module/lib/Components/core/Card/Card.js +36 -24
  22. package/dist/module/lib/Components/core/Card/Card.js.map +1 -1
  23. package/dist/module/lib/Components/core/Card/Card.mdx +10 -1
  24. package/dist/module/lib/Components/core/Card/Card.stories.js +78 -2
  25. package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
  26. package/dist/module/lib/Components/core/Card/Card.test.js +31 -3
  27. package/dist/module/lib/Components/core/Card/Card.test.js.map +1 -1
  28. package/dist/module/lib/Components/core/CardButton/CardButton.stories.js +15 -0
  29. package/dist/module/lib/Components/core/CardButton/CardButton.stories.js.map +1 -1
  30. package/dist/module/lib/Components/core/Checkbox/Checkbox.stories.js.map +1 -1
  31. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +13 -0
  32. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +1 -1
  33. package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js +11 -0
  34. package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js.map +1 -1
  35. package/dist/module/lib/Components/core/Divider/Divider.stories.js.map +1 -1
  36. package/dist/module/lib/Components/core/IconButton/IconButton.stories.js +10 -0
  37. package/dist/module/lib/Components/core/IconButton/IconButton.stories.js.map +1 -1
  38. package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js +12 -0
  39. package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js.map +1 -1
  40. package/dist/module/lib/Components/core/Link/Link.stories.js.map +1 -1
  41. package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +21 -3
  42. package/dist/module/lib/Components/core/ListItem/ListItem.stories.js.map +1 -1
  43. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js +18 -1
  44. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js.map +1 -1
  45. package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js +9 -0
  46. package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js.map +1 -1
  47. package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js +13 -0
  48. package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js.map +1 -1
  49. package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js +13 -0
  50. package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js.map +1 -1
  51. package/dist/module/lib/Components/core/NavBar/NavBar.stories.js.map +1 -1
  52. package/dist/module/lib/Components/core/OptionList/OptionList.stories.js +52 -0
  53. package/dist/module/lib/Components/core/OptionList/OptionList.stories.js.map +1 -1
  54. package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js.map +1 -1
  55. package/dist/module/lib/Components/core/SectionHeader/SectionHeader.stories.js.map +1 -1
  56. package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js.map +1 -1
  57. package/dist/module/lib/Components/core/Spinner/Spinner.stories.js.map +1 -1
  58. package/dist/module/lib/Components/core/Spot/Spot.stories.js +20 -0
  59. package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
  60. package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +4 -0
  61. package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +1 -1
  62. package/dist/module/lib/Components/core/Subheader/Subheader.stories.js.map +1 -1
  63. package/dist/module/lib/Components/core/Switch/Switch.stories.js.map +1 -1
  64. package/dist/module/lib/Components/core/Tag/Tag.stories.js +12 -0
  65. package/dist/module/lib/Components/core/Tag/Tag.stories.js.map +1 -1
  66. package/dist/module/lib/Components/core/TextInput/TextInput.figma.js +4 -0
  67. package/dist/module/lib/Components/core/TextInput/TextInput.figma.js.map +1 -1
  68. package/dist/module/lib/Components/core/TextInput/TextInput.mdx +25 -0
  69. package/dist/module/lib/Components/core/TextInput/TextInput.stories.js +29 -0
  70. package/dist/module/lib/Components/core/TextInput/TextInput.stories.js.map +1 -1
  71. package/dist/module/lib/Components/core/TextInput/TextInput.test.js +125 -2
  72. package/dist/module/lib/Components/core/TextInput/TextInput.test.js.map +1 -1
  73. package/dist/module/lib/Components/core/Tile/Tile.stories.js +23 -1
  74. package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
  75. package/dist/module/lib/Components/core/TileButton/TileButton.stories.js +24 -0
  76. package/dist/module/lib/Components/core/TileButton/TileButton.stories.js.map +1 -1
  77. package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js +12 -0
  78. package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js.map +1 -1
  79. package/dist/module/lib/Components/core/Trend/Trend.js +1 -2
  80. package/dist/module/lib/Components/core/Trend/Trend.js.map +1 -1
  81. package/dist/module/lib/Components/core/Trend/Trend.stories.js +9 -0
  82. package/dist/module/lib/Components/core/Trend/Trend.stories.js.map +1 -1
  83. package/dist/module/lib/Components/core/Trend/Trend.test.js +5 -5
  84. package/dist/module/lib/Components/core/Trend/Trend.test.js.map +1 -1
  85. package/dist/module/lib/Components/internal/BaseInput/BaseInput.js +114 -201
  86. package/dist/module/lib/Components/internal/BaseInput/BaseInput.js.map +1 -1
  87. package/dist/module/lib/Components/internal/BaseInput/BaseInputCounter.js +32 -0
  88. package/dist/module/lib/Components/internal/BaseInput/BaseInputCounter.js.map +1 -0
  89. package/dist/module/lib/Components/internal/BaseInput/BaseInputHelperText.js +60 -0
  90. package/dist/module/lib/Components/internal/BaseInput/BaseInputHelperText.js.map +1 -0
  91. package/dist/module/lib/Components/internal/BaseInput/BaseInputLabel.js +126 -0
  92. package/dist/module/lib/Components/internal/BaseInput/BaseInputLabel.js.map +1 -0
  93. package/dist/module/lib/Components/internal/BaseInput/multilineLayout.js +34 -0
  94. package/dist/module/lib/Components/internal/BaseInput/multilineLayout.js.map +1 -0
  95. package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.js +46 -0
  96. package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.js.map +1 -0
  97. package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.js +111 -0
  98. package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.js.map +1 -0
  99. package/dist/module/lib/Components/primitives/Box/Box.stories.js.map +1 -1
  100. package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js +14 -0
  101. package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
  102. package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js +8 -0
  103. package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js.map +1 -1
  104. package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js.map +1 -1
  105. package/dist/module/lib/Components/primitives/Text/Text.stories.js.map +1 -1
  106. package/dist/module/lib/Components/symbols/Icon/Icon.stories.js.map +1 -1
  107. package/dist/module/lib/Components/symbols/icons/CalendarRefresh.js +50 -0
  108. package/dist/module/lib/Components/symbols/icons/CalendarRefresh.js.map +1 -0
  109. package/dist/module/lib/Components/symbols/icons/CodeShield.js +50 -0
  110. package/dist/module/lib/Components/symbols/icons/CodeShield.js.map +1 -0
  111. package/dist/module/lib/Components/symbols/icons/CoinStacked.js +50 -0
  112. package/dist/module/lib/Components/symbols/icons/CoinStacked.js.map +1 -0
  113. package/dist/module/lib/Components/symbols/icons/Craft.js +50 -0
  114. package/dist/module/lib/Components/symbols/icons/Craft.js.map +1 -0
  115. package/dist/module/lib/Components/symbols/icons/Equal.js +49 -0
  116. package/dist/module/lib/Components/symbols/icons/Equal.js.map +1 -0
  117. package/dist/module/lib/Components/symbols/icons/File.js +50 -0
  118. package/dist/module/lib/Components/symbols/icons/File.js.map +1 -0
  119. package/dist/module/lib/Components/symbols/icons/FileShield.js +50 -0
  120. package/dist/module/lib/Components/symbols/icons/FileShield.js.map +1 -0
  121. package/dist/module/lib/Components/symbols/icons/Fire.js +51 -0
  122. package/dist/module/lib/Components/symbols/icons/Fire.js.map +1 -0
  123. package/dist/module/lib/Components/symbols/icons/Handshake.js +50 -0
  124. package/dist/module/lib/Components/symbols/icons/Handshake.js.map +1 -0
  125. package/dist/module/lib/Components/symbols/icons/MailShield.js +50 -0
  126. package/dist/module/lib/Components/symbols/icons/MailShield.js.map +1 -0
  127. package/dist/module/lib/Components/symbols/icons/Merge.js +50 -0
  128. package/dist/module/lib/Components/symbols/icons/Merge.js.map +1 -0
  129. package/dist/module/lib/Components/symbols/icons/Minimize.js +50 -0
  130. package/dist/module/lib/Components/symbols/icons/Minimize.js.map +1 -0
  131. package/dist/module/lib/Components/symbols/icons/Nested.js +50 -0
  132. package/dist/module/lib/Components/symbols/icons/Nested.js.map +1 -0
  133. package/dist/module/lib/Components/symbols/icons/NotEqual.js +49 -0
  134. package/dist/module/lib/Components/symbols/icons/NotEqual.js.map +1 -0
  135. package/dist/module/lib/Components/symbols/icons/PeopleShield.js +50 -0
  136. package/dist/module/lib/Components/symbols/icons/PeopleShield.js.map +1 -0
  137. package/dist/module/lib/Components/symbols/icons/Pin.js +50 -0
  138. package/dist/module/lib/Components/symbols/icons/Pin.js.map +1 -0
  139. package/dist/module/lib/Components/symbols/icons/PinFill.js +47 -0
  140. package/dist/module/lib/Components/symbols/icons/PinFill.js.map +1 -0
  141. package/dist/module/lib/Components/symbols/icons/Receive.js +50 -0
  142. package/dist/module/lib/Components/symbols/icons/Receive.js.map +1 -0
  143. package/dist/module/lib/Components/symbols/icons/Retry.js +50 -0
  144. package/dist/module/lib/Components/symbols/icons/Retry.js.map +1 -0
  145. package/dist/module/lib/Components/symbols/icons/Send.js +50 -0
  146. package/dist/module/lib/Components/symbols/icons/Send.js.map +1 -0
  147. package/dist/module/lib/Components/symbols/icons/Servers.js +50 -0
  148. package/dist/module/lib/Components/symbols/icons/Servers.js.map +1 -0
  149. package/dist/module/lib/Components/symbols/icons/SubArrow.js +50 -0
  150. package/dist/module/lib/Components/symbols/icons/SubArrow.js.map +1 -0
  151. package/dist/module/lib/Components/symbols/icons/UsbCircleFill.js +52 -0
  152. package/dist/module/lib/Components/symbols/icons/UsbCircleFill.js.map +1 -0
  153. package/dist/module/lib/Components/symbols/icons/WarningCircleFill.js +47 -0
  154. package/dist/module/lib/Components/symbols/icons/WarningCircleFill.js.map +1 -0
  155. package/dist/module/lib/Components/symbols/index.js +24 -0
  156. package/dist/module/lib/Components/symbols/index.js.map +1 -1
  157. package/dist/module/lib/utils/index.js +0 -1
  158. package/dist/module/lib/utils/index.js.map +1 -1
  159. package/dist/typescript/src/lib/Components/core/AddressInput/AddressInput.d.ts +1 -1
  160. package/dist/typescript/src/lib/Components/core/AddressInput/AddressInput.d.ts.map +1 -1
  161. package/dist/typescript/src/lib/Components/core/Card/Card.d.ts +1 -1
  162. package/dist/typescript/src/lib/Components/core/Card/Card.d.ts.map +1 -1
  163. package/dist/typescript/src/lib/Components/core/Card/types.d.ts +6 -0
  164. package/dist/typescript/src/lib/Components/core/Card/types.d.ts.map +1 -1
  165. package/dist/typescript/src/lib/Components/core/SearchInput/types.d.ts +1 -1
  166. package/dist/typescript/src/lib/Components/core/SearchInput/types.d.ts.map +1 -1
  167. package/dist/typescript/src/lib/Components/core/Trend/Trend.d.ts.map +1 -1
  168. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInput.d.ts +1 -1
  169. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInput.d.ts.map +1 -1
  170. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputCounter.d.ts +8 -0
  171. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputCounter.d.ts.map +1 -0
  172. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts +8 -0
  173. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts.map +1 -0
  174. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputLabel.d.ts +8 -0
  175. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputLabel.d.ts.map +1 -0
  176. package/dist/typescript/src/lib/Components/internal/BaseInput/multilineLayout.d.ts +27 -0
  177. package/dist/typescript/src/lib/Components/internal/BaseInput/multilineLayout.d.ts.map +1 -0
  178. package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts +48 -1
  179. package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts.map +1 -1
  180. package/dist/typescript/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.d.ts +27 -0
  181. package/dist/typescript/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.d.ts.map +1 -0
  182. package/dist/typescript/src/lib/Components/symbols/icons/CalendarRefresh.d.ts +35 -0
  183. package/dist/typescript/src/lib/Components/symbols/icons/CalendarRefresh.d.ts.map +1 -0
  184. package/dist/typescript/src/lib/Components/symbols/icons/CodeShield.d.ts +35 -0
  185. package/dist/typescript/src/lib/Components/symbols/icons/CodeShield.d.ts.map +1 -0
  186. package/dist/typescript/src/lib/Components/symbols/icons/CoinStacked.d.ts +35 -0
  187. package/dist/typescript/src/lib/Components/symbols/icons/CoinStacked.d.ts.map +1 -0
  188. package/dist/typescript/src/lib/Components/symbols/icons/Craft.d.ts +35 -0
  189. package/dist/typescript/src/lib/Components/symbols/icons/Craft.d.ts.map +1 -0
  190. package/dist/typescript/src/lib/Components/symbols/icons/Equal.d.ts +35 -0
  191. package/dist/typescript/src/lib/Components/symbols/icons/Equal.d.ts.map +1 -0
  192. package/dist/typescript/src/lib/Components/symbols/icons/File.d.ts +35 -0
  193. package/dist/typescript/src/lib/Components/symbols/icons/File.d.ts.map +1 -0
  194. package/dist/typescript/src/lib/Components/symbols/icons/FileShield.d.ts +35 -0
  195. package/dist/typescript/src/lib/Components/symbols/icons/FileShield.d.ts.map +1 -0
  196. package/dist/typescript/src/lib/Components/symbols/icons/Fire.d.ts +35 -0
  197. package/dist/typescript/src/lib/Components/symbols/icons/Fire.d.ts.map +1 -0
  198. package/dist/typescript/src/lib/Components/symbols/icons/Handshake.d.ts +35 -0
  199. package/dist/typescript/src/lib/Components/symbols/icons/Handshake.d.ts.map +1 -0
  200. package/dist/typescript/src/lib/Components/symbols/icons/MailShield.d.ts +35 -0
  201. package/dist/typescript/src/lib/Components/symbols/icons/MailShield.d.ts.map +1 -0
  202. package/dist/typescript/src/lib/Components/symbols/icons/Merge.d.ts +35 -0
  203. package/dist/typescript/src/lib/Components/symbols/icons/Merge.d.ts.map +1 -0
  204. package/dist/typescript/src/lib/Components/symbols/icons/Minimize.d.ts +35 -0
  205. package/dist/typescript/src/lib/Components/symbols/icons/Minimize.d.ts.map +1 -0
  206. package/dist/typescript/src/lib/Components/symbols/icons/Nested.d.ts +35 -0
  207. package/dist/typescript/src/lib/Components/symbols/icons/Nested.d.ts.map +1 -0
  208. package/dist/typescript/src/lib/Components/symbols/icons/NotEqual.d.ts +35 -0
  209. package/dist/typescript/src/lib/Components/symbols/icons/NotEqual.d.ts.map +1 -0
  210. package/dist/typescript/src/lib/Components/symbols/icons/PeopleShield.d.ts +35 -0
  211. package/dist/typescript/src/lib/Components/symbols/icons/PeopleShield.d.ts.map +1 -0
  212. package/dist/typescript/src/lib/Components/symbols/icons/Pin.d.ts +35 -0
  213. package/dist/typescript/src/lib/Components/symbols/icons/Pin.d.ts.map +1 -0
  214. package/dist/typescript/src/lib/Components/symbols/icons/PinFill.d.ts +35 -0
  215. package/dist/typescript/src/lib/Components/symbols/icons/PinFill.d.ts.map +1 -0
  216. package/dist/typescript/src/lib/Components/symbols/icons/Receive.d.ts +35 -0
  217. package/dist/typescript/src/lib/Components/symbols/icons/Receive.d.ts.map +1 -0
  218. package/dist/typescript/src/lib/Components/symbols/icons/Retry.d.ts +35 -0
  219. package/dist/typescript/src/lib/Components/symbols/icons/Retry.d.ts.map +1 -0
  220. package/dist/typescript/src/lib/Components/symbols/icons/Send.d.ts +35 -0
  221. package/dist/typescript/src/lib/Components/symbols/icons/Send.d.ts.map +1 -0
  222. package/dist/typescript/src/lib/Components/symbols/icons/Servers.d.ts +35 -0
  223. package/dist/typescript/src/lib/Components/symbols/icons/Servers.d.ts.map +1 -0
  224. package/dist/typescript/src/lib/Components/symbols/icons/SubArrow.d.ts +35 -0
  225. package/dist/typescript/src/lib/Components/symbols/icons/SubArrow.d.ts.map +1 -0
  226. package/dist/typescript/src/lib/Components/symbols/icons/UsbCircleFill.d.ts +35 -0
  227. package/dist/typescript/src/lib/Components/symbols/icons/UsbCircleFill.d.ts.map +1 -0
  228. package/dist/typescript/src/lib/Components/symbols/icons/WarningCircleFill.d.ts +35 -0
  229. package/dist/typescript/src/lib/Components/symbols/icons/WarningCircleFill.d.ts.map +1 -0
  230. package/dist/typescript/src/lib/Components/symbols/index.d.ts +24 -0
  231. package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
  232. package/dist/typescript/src/lib/utils/index.d.ts +0 -1
  233. package/dist/typescript/src/lib/utils/index.d.ts.map +1 -1
  234. package/dist/typescript/src/styles/types/create.types.d.ts +1 -3
  235. package/dist/typescript/src/styles/types/create.types.d.ts.map +1 -1
  236. package/package.json +3 -3
  237. package/src/lib/Components/animations/Pulse/Pulse.stories.tsx +7 -2
  238. package/src/lib/Components/animations/Spin/Spin.stories.tsx +5 -2
  239. package/src/lib/Components/core/AddressInput/AddressInput.figma.tsx +4 -0
  240. package/src/lib/Components/core/AddressInput/AddressInput.mdx +26 -1
  241. package/src/lib/Components/core/AddressInput/AddressInput.stories.tsx +30 -2
  242. package/src/lib/Components/core/AddressInput/AddressInput.tsx +24 -8
  243. package/src/lib/Components/core/AmountDisplay/AmountDisplay.stories.tsx +8 -2
  244. package/src/lib/Components/core/AmountInput/AmountInput.stories.tsx +33 -13
  245. package/src/lib/Components/core/Avatar/Avatar.stories.tsx +1 -1
  246. package/src/lib/Components/core/AvatarButton/AvatarButton.stories.tsx +1 -1
  247. package/src/lib/Components/core/Banner/Banner.stories.tsx +2 -2
  248. package/src/lib/Components/core/Button/Button.stories.tsx +23 -2
  249. package/src/lib/Components/core/Card/Card.figma.tsx +20 -0
  250. package/src/lib/Components/core/Card/Card.mdx +10 -1
  251. package/src/lib/Components/core/Card/Card.stories.tsx +63 -2
  252. package/src/lib/Components/core/Card/Card.test.tsx +35 -3
  253. package/src/lib/Components/core/Card/Card.tsx +46 -26
  254. package/src/lib/Components/core/Card/types.ts +7 -0
  255. package/src/lib/Components/core/CardButton/CardButton.stories.tsx +17 -2
  256. package/src/lib/Components/core/Checkbox/Checkbox.stories.tsx +3 -3
  257. package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +15 -2
  258. package/src/lib/Components/core/DescriptionItem/DescriptionItem.stories.tsx +13 -2
  259. package/src/lib/Components/core/Divider/Divider.stories.tsx +2 -2
  260. package/src/lib/Components/core/DotCount/DotCount.stories.tsx +1 -1
  261. package/src/lib/Components/core/DotIcon/DotIcon.stories.tsx +1 -1
  262. package/src/lib/Components/core/DotIndicator/DotIndicator.stories.tsx +1 -1
  263. package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +1 -1
  264. package/src/lib/Components/core/IconButton/IconButton.stories.tsx +12 -2
  265. package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.tsx +14 -2
  266. package/src/lib/Components/core/Link/Link.stories.tsx +2 -2
  267. package/src/lib/Components/core/ListItem/ListItem.stories.tsx +18 -0
  268. package/src/lib/Components/core/MediaBanner/MediaBanner.stories.tsx +19 -2
  269. package/src/lib/Components/core/MediaButton/MediaButton.stories.tsx +11 -2
  270. package/src/lib/Components/core/MediaCard/MediaCard.stories.tsx +13 -0
  271. package/src/lib/Components/core/MediaImage/MediaImage.stories.tsx +1 -1
  272. package/src/lib/Components/core/MediaTag/MediaTag.stories.tsx +15 -2
  273. package/src/lib/Components/core/NavBar/NavBar.stories.tsx +2 -2
  274. package/src/lib/Components/core/OptionList/OptionList.stories.tsx +52 -0
  275. package/src/lib/Components/core/PageIndicator/PageIndicator.stories.tsx +1 -1
  276. package/src/lib/Components/core/SearchInput/SearchInput.stories.tsx +2 -2
  277. package/src/lib/Components/core/SearchInput/types.ts +4 -1
  278. package/src/lib/Components/core/SectionHeader/SectionHeader.stories.tsx +2 -2
  279. package/src/lib/Components/core/SegmentedControl/SegmentedControl.stories.tsx +1 -1
  280. package/src/lib/Components/core/Skeleton/Skeleton.stories.tsx +2 -2
  281. package/src/lib/Components/core/Spinner/Spinner.stories.tsx +2 -2
  282. package/src/lib/Components/core/Spot/Spot.stories.tsx +22 -2
  283. package/src/lib/Components/core/Stepper/Stepper.stories.tsx +6 -2
  284. package/src/lib/Components/core/Subheader/Subheader.stories.tsx +2 -2
  285. package/src/lib/Components/core/Switch/Switch.stories.tsx +3 -3
  286. package/src/lib/Components/core/TabBar/TabBar.stories.tsx +1 -1
  287. package/src/lib/Components/core/Tag/Tag.stories.tsx +14 -2
  288. package/src/lib/Components/core/TextInput/TextInput.figma.tsx +4 -0
  289. package/src/lib/Components/core/TextInput/TextInput.mdx +25 -0
  290. package/src/lib/Components/core/TextInput/TextInput.stories.tsx +29 -2
  291. package/src/lib/Components/core/TextInput/TextInput.test.tsx +129 -2
  292. package/src/lib/Components/core/Tile/Tile.stories.tsx +24 -2
  293. package/src/lib/Components/core/TileButton/TileButton.stories.tsx +26 -2
  294. package/src/lib/Components/core/Tooltip/Tooltip.stories.tsx +14 -2
  295. package/src/lib/Components/core/Trend/Trend.stories.tsx +11 -2
  296. package/src/lib/Components/core/Trend/Trend.test.tsx +4 -5
  297. package/src/lib/Components/core/Trend/Trend.tsx +1 -3
  298. package/src/lib/Components/internal/BaseInput/BaseInput.tsx +123 -242
  299. package/src/lib/Components/internal/BaseInput/BaseInputCounter.tsx +35 -0
  300. package/src/lib/Components/internal/BaseInput/BaseInputHelperText.tsx +57 -0
  301. package/src/lib/Components/internal/BaseInput/BaseInputLabel.tsx +137 -0
  302. package/src/lib/Components/internal/BaseInput/multilineLayout.ts +49 -0
  303. package/src/lib/Components/internal/BaseInput/types.ts +49 -1
  304. package/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.ts +110 -0
  305. package/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.ts +72 -0
  306. package/src/lib/Components/primitives/Box/Box.stories.tsx +2 -2
  307. package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.tsx +6 -2
  308. package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.tsx +5 -2
  309. package/src/lib/Components/primitives/Pressable/Pressable.stories.tsx +2 -2
  310. package/src/lib/Components/primitives/Text/Text.stories.tsx +2 -2
  311. package/src/lib/Components/symbols/Icon/Icon.stories.tsx +2 -2
  312. package/src/lib/Components/symbols/icons/CalendarRefresh.tsx +45 -0
  313. package/src/lib/Components/symbols/icons/CodeShield.tsx +45 -0
  314. package/src/lib/Components/symbols/icons/CoinStacked.tsx +45 -0
  315. package/src/lib/Components/symbols/icons/Craft.tsx +45 -0
  316. package/src/lib/Components/symbols/icons/Equal.tsx +44 -0
  317. package/src/lib/Components/symbols/icons/File.tsx +45 -0
  318. package/src/lib/Components/symbols/icons/FileShield.tsx +45 -0
  319. package/src/lib/Components/symbols/icons/Fire.tsx +46 -0
  320. package/src/lib/Components/symbols/icons/Handshake.tsx +45 -0
  321. package/src/lib/Components/symbols/icons/MailShield.tsx +45 -0
  322. package/src/lib/Components/symbols/icons/Merge.tsx +45 -0
  323. package/src/lib/Components/symbols/icons/Minimize.tsx +45 -0
  324. package/src/lib/Components/symbols/icons/Nested.tsx +45 -0
  325. package/src/lib/Components/symbols/icons/NotEqual.tsx +44 -0
  326. package/src/lib/Components/symbols/icons/PeopleShield.tsx +45 -0
  327. package/src/lib/Components/symbols/icons/Pin.tsx +45 -0
  328. package/src/lib/Components/symbols/icons/PinFill.tsx +42 -0
  329. package/src/lib/Components/symbols/icons/Receive.tsx +45 -0
  330. package/src/lib/Components/symbols/icons/Retry.tsx +45 -0
  331. package/src/lib/Components/symbols/icons/Send.tsx +45 -0
  332. package/src/lib/Components/symbols/icons/Servers.tsx +45 -0
  333. package/src/lib/Components/symbols/icons/SubArrow.tsx +45 -0
  334. package/src/lib/Components/symbols/icons/UsbCircleFill.tsx +48 -0
  335. package/src/lib/Components/symbols/icons/WarningCircleFill.tsx +42 -0
  336. package/src/lib/Components/symbols/index.ts +24 -0
  337. package/src/lib/utils/index.ts +0 -1
  338. package/src/styles/types/create.types.ts +6 -6
  339. package/dist/module/lib/utils/react/extractTextFromChildren.js +0 -23
  340. package/dist/module/lib/utils/react/extractTextFromChildren.js.map +0 -1
  341. package/dist/module/lib/utils/react/index.js +0 -4
  342. package/dist/module/lib/utils/react/index.js.map +0 -1
  343. package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts +0 -8
  344. package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts.map +0 -1
  345. package/dist/typescript/src/lib/utils/react/index.d.ts +0 -2
  346. package/dist/typescript/src/lib/utils/react/index.d.ts.map +0 -1
  347. package/src/lib/utils/react/extractTextFromChildren.ts +0 -32
  348. package/src/lib/utils/react/index.ts +0 -1
@@ -23,6 +23,9 @@ figma.connect(
23
23
  helperText: figma.nestedProps('.status', {
24
24
  label: figma.string('label'),
25
25
  }),
26
+ multiline: figma.enum('type', {
27
+ 'multi-line': true,
28
+ }),
26
29
  },
27
30
  example: (props) => (
28
31
  <AddressInput
@@ -32,6 +35,7 @@ figma.connect(
32
35
  onQrCodeClick={() => {}}
33
36
  helperText={props.helperText.label}
34
37
  status={props.status}
38
+ multiline={props.multiline}
35
39
  onChangeText={() => {}}
36
40
  />
37
41
  ),
@@ -1,4 +1,4 @@
1
- import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
1
+ import { Meta, Canvas, Controls, Source } from '@storybook/addon-docs/blocks';
2
2
  import * as AddressInputStories from './AddressInput.stories';
3
3
  import { AddressInput } from './AddressInput';
4
4
  import { CustomTabs, Tab } from '../../../../../.storybook/components';
@@ -51,6 +51,21 @@ Use `hideClearButton` to prevent the clear button from appearing.
51
51
 
52
52
  <Canvas of={AddressInputStories.WithHiddenClearButton} />
53
53
 
54
+ ### Multiline
55
+
56
+ Set `multiline` to wrap a long address over several lines instead of truncating it. Prefix, QR scanner, clear button, helper text, and counter behave exactly as they do on a single-line field.
57
+
58
+ - `minLines`: height the field starts at, in lines. Defaults to `1`
59
+ - `maxLines`: growth ceiling, in lines. Once reached, the field scrolls internally instead of growing. Unbounded when omitted
60
+
61
+ <Canvas of={AddressInputStories.WithMultiline} />
62
+
63
+ Equal `minLines` and `maxLines` give a fixed-height box that scrolls instead of growing:
64
+
65
+ <Canvas of={AddressInputStories.WithMultilineFixedHeight} />
66
+
67
+ > **Note:** The scroll indicator inside a clamped field is drawn by the platform, so unlike the web component there is no `scrollbarWidth` prop to configure it.
68
+
54
69
  ### Error State
55
70
 
56
71
  The input supports error handling through `helperText` and `status` (`'error'` \| `'success'`), which show copy below the input with matching border and text styling.
@@ -294,6 +309,16 @@ function MyComponent() {
294
309
 
295
310
  > **Note:** Helper text is optional. Use `helperText` with `status="error"` to show validation feedback below the input.
296
311
 
312
+ ### Multiline
313
+
314
+ `multiline` wraps a long address over several lines, bounded by `minLines` and `maxLines`:
315
+
316
+ <Source of={AddressInputStories.WithMultiline} />
317
+
318
+ Equal `minLines` and `maxLines` give a fixed-height box that scrolls once the ceiling is reached.
319
+
320
+ <Source of={AddressInputStories.WithMultilineFixedHeight} />
321
+
297
322
  ### With Custom Styling
298
323
 
299
324
  While the component comes with predefined styles, you can extend them using the `style` prop:
@@ -4,7 +4,7 @@ import { View } from 'react-native';
4
4
  import { AddressInput } from './AddressInput';
5
5
  import type { AddressInputProps } from './types';
6
6
 
7
- const meta: Meta<typeof AddressInput> = {
7
+ const meta = {
8
8
  component: AddressInput,
9
9
  id: 'rnative-addressinput',
10
10
  title: 'Core/AddressInput',
@@ -17,7 +17,7 @@ const meta: Meta<typeof AddressInput> = {
17
17
  },
18
18
  },
19
19
  },
20
- };
20
+ } satisfies Meta<typeof AddressInput>;
21
21
 
22
22
  export default meta;
23
23
  type Story = StoryObj<typeof AddressInput>;
@@ -128,6 +128,34 @@ export const WithError: Story = {
128
128
  },
129
129
  };
130
130
 
131
+ export const WithMultiline: Story = {
132
+ render: (args) => <AddressInputStory {...args} />,
133
+ args: {
134
+ placeholder: 'Enter address or ENS',
135
+ value: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
136
+ prefix: 'To:',
137
+ multiline: true,
138
+ minLines: 2,
139
+ maxLines: 5,
140
+ editable: true,
141
+ hideClearButton: false,
142
+ },
143
+ };
144
+
145
+ export const WithMultilineFixedHeight: Story = {
146
+ render: (args) => <AddressInputStory {...args} />,
147
+ args: {
148
+ placeholder: 'Enter address or ENS',
149
+ value: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
150
+ prefix: 'To:',
151
+ multiline: true,
152
+ minLines: 4,
153
+ maxLines: 4,
154
+ editable: true,
155
+ hideClearButton: false,
156
+ },
157
+ };
158
+
131
159
  export const Disabled: Story = {
132
160
  render: (args) => <AddressInputStory {...args} />,
133
161
  args: {
@@ -1,7 +1,8 @@
1
1
  import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
2
- import { Text } from 'react-native';
2
+ import { StyleSheet, Text } from 'react-native';
3
3
  import { useCommonTranslation } from '../../../../i18n';
4
4
  import { useStyleSheet } from '../../../../styles';
5
+ import { RuntimeConstants } from '../../../utils';
5
6
  import { BaseInput } from '../../internal/BaseInput';
6
7
  import { QrCode } from '../../symbols';
7
8
  import { InteractiveIcon } from '../InteractiveIcon';
@@ -12,6 +13,7 @@ export const AddressInput = ({
12
13
  suffix,
13
14
  onQrCodeClick,
14
15
  disabled: disabledProp,
16
+ multiline = false,
15
17
  ref,
16
18
  ...props
17
19
  }: AddressInputProps) => {
@@ -20,7 +22,7 @@ export const AddressInput = ({
20
22
  mergeWith: { disabled: disabledProp },
21
23
  });
22
24
  const { t } = useCommonTranslation();
23
- const styles = useStyles({ disabled });
25
+ const styles = useStyles({ disabled, multiline });
24
26
 
25
27
  const actualPrefix = (
26
28
  <Text accessible={false} style={styles.prefix}>
@@ -46,19 +48,33 @@ export const AddressInput = ({
46
48
  prefix={actualPrefix}
47
49
  suffix={actualSuffix}
48
50
  disabled={disabledProp}
51
+ multiline={multiline}
49
52
  {...props}
50
53
  />
51
54
  );
52
55
  };
53
56
 
54
- const useStyles = ({ disabled }: { disabled: boolean }) => {
57
+ const useStyles = ({
58
+ disabled,
59
+ multiline,
60
+ }: {
61
+ disabled: boolean;
62
+ multiline: boolean;
63
+ }) => {
55
64
  return useStyleSheet(
56
65
  (t) => ({
57
- prefix: {
58
- ...t.typographies.body1,
59
- color: disabled ? t.colors.text.disabled : t.colors.text.base,
60
- },
66
+ prefix: StyleSheet.flatten([
67
+ {
68
+ ...t.typographies.body1,
69
+ color: disabled ? t.colors.text.disabled : t.colors.text.base,
70
+ },
71
+ // A multiline field top-aligns its row instead of centring it. iOS centres a
72
+ // Text's glyph inside an explicit line height but leaves the field's at the
73
+ // bottom of it, so only there does the prefix need the field's natural metrics
74
+ // to share a line with it.
75
+ multiline && RuntimeConstants.isIOS && { lineHeight: 0 },
76
+ ]),
61
77
  }),
62
- [disabled],
78
+ [disabled, multiline],
63
79
  );
64
80
  };
@@ -42,7 +42,7 @@ const btcFormatter = (value: number): FormattedValue => {
42
42
  };
43
43
  };
44
44
 
45
- const meta: Meta<typeof AmountDisplay> = {
45
+ const meta = {
46
46
  component: AmountDisplay,
47
47
  id: 'rnative-amountdisplay',
48
48
  title: 'Core/AmountDisplay',
@@ -98,7 +98,7 @@ const meta: Meta<typeof AmountDisplay> = {
98
98
  },
99
99
  },
100
100
  },
101
- };
101
+ } satisfies Meta<typeof AmountDisplay>;
102
102
 
103
103
  export default meta;
104
104
  type Story = StoryObj<typeof AmountDisplay>;
@@ -129,6 +129,9 @@ export const Sizes: Story = {
129
129
  };
130
130
 
131
131
  export const WithHideButton: Story = {
132
+ args: {
133
+ value: 1234.56,
134
+ },
132
135
  render: (props) => {
133
136
  const [hidden, setHidden] = useState(false);
134
137
 
@@ -174,6 +177,9 @@ export const AnimationShowcase: Story = {
174
177
  };
175
178
 
176
179
  export const Loading: Story = {
180
+ args: {
181
+ value: 1234.56,
182
+ },
177
183
  render: (props) => {
178
184
  return (
179
185
  <AmountDisplay
@@ -15,7 +15,7 @@ const SIZES: { size: AmountInputSize; value: string }[] = [
15
15
  { size: 'sm', value: '55 555' },
16
16
  ];
17
17
 
18
- const meta: Meta<typeof AmountInput> = {
18
+ const meta = {
19
19
  component: AmountInput,
20
20
  id: 'rnative-amountinput',
21
21
  title: 'Core/AmountInput',
@@ -37,7 +37,7 @@ const meta: Meta<typeof AmountInput> = {
37
37
  args: {
38
38
  isInvalid: false,
39
39
  },
40
- };
40
+ } satisfies Meta<typeof AmountInput>;
41
41
 
42
42
  export default meta;
43
43
  type Story = StoryObj<typeof AmountInput>;
@@ -63,8 +63,9 @@ const AmountInputStory = (args: AmountInputProps) => {
63
63
  };
64
64
 
65
65
  export const Base: Story = {
66
- render: (args) => <AmountInputStory {...args} />,
67
66
  args: {
67
+ value: '',
68
+ onChangeText: () => {},
68
69
  currencyText: 'USD',
69
70
  currencyPosition: 'left',
70
71
  allowDecimals: true,
@@ -74,12 +75,13 @@ export const Base: Story = {
74
75
  isInvalid: false,
75
76
  editable: true,
76
77
  },
78
+ render: (args) => <AmountInputStory {...args} />,
77
79
  };
78
80
 
79
81
  export const WithValue: Story = {
80
- render: (args) => <AmountInputStory {...args} />,
81
82
  args: {
82
83
  value: '1234.56',
84
+ onChangeText: () => {},
83
85
  currencyText: 'USD',
84
86
  currencyPosition: 'left',
85
87
  allowDecimals: true,
@@ -87,9 +89,14 @@ export const WithValue: Story = {
87
89
  isInvalid: false,
88
90
  editable: true,
89
91
  },
92
+ render: (args) => <AmountInputStory {...args} />,
90
93
  };
91
94
 
92
95
  export const Size: Story = {
96
+ args: {
97
+ value: '1234.56',
98
+ onChangeText: () => {},
99
+ },
93
100
  render: () => (
94
101
  <View
95
102
  style={{
@@ -114,6 +121,10 @@ export const Size: Story = {
114
121
  };
115
122
 
116
123
  export const Alignment: Story = {
124
+ args: {
125
+ value: '1234.56',
126
+ onChangeText: () => {},
127
+ },
117
128
  render: () => (
118
129
  <View
119
130
  style={{
@@ -137,9 +148,9 @@ export const Alignment: Story = {
137
148
  };
138
149
 
139
150
  export const CurrencyPositionLeft: Story = {
140
- render: (args) => <AmountInputStory {...args} />,
141
151
  args: {
142
152
  value: '1000',
153
+ onChangeText: () => {},
143
154
  currencyText: '$',
144
155
  currencyPosition: 'left',
145
156
  allowDecimals: true,
@@ -147,12 +158,13 @@ export const CurrencyPositionLeft: Story = {
147
158
  isInvalid: false,
148
159
  editable: true,
149
160
  },
161
+ render: (args) => <AmountInputStory {...args} />,
150
162
  };
151
163
 
152
164
  export const CurrencyPositionRight: Story = {
153
- render: (args) => <AmountInputStory {...args} />,
154
165
  args: {
155
166
  value: '1000',
167
+ onChangeText: () => {},
156
168
  currencyText: 'ETH',
157
169
  currencyPosition: 'right',
158
170
  allowDecimals: true,
@@ -160,12 +172,13 @@ export const CurrencyPositionRight: Story = {
160
172
  isInvalid: false,
161
173
  editable: true,
162
174
  },
175
+ render: (args) => <AmountInputStory {...args} />,
163
176
  };
164
177
 
165
178
  export const IntegerOnly: Story = {
166
- render: (args) => <AmountInputStory {...args} />,
167
179
  args: {
168
180
  value: '1234',
181
+ onChangeText: () => {},
169
182
  currencyText: 'items',
170
183
  currencyPosition: 'right',
171
184
  allowDecimals: false,
@@ -173,12 +186,13 @@ export const IntegerOnly: Story = {
173
186
  isInvalid: false,
174
187
  editable: true,
175
188
  },
189
+ render: (args) => <AmountInputStory {...args} />,
176
190
  };
177
191
 
178
192
  export const WithThousandsSeparator: Story = {
179
- render: (args) => <AmountInputStory {...args} />,
180
193
  args: {
181
194
  value: '1000000',
195
+ onChangeText: () => {},
182
196
  currencyText: 'USD',
183
197
  currencyPosition: 'left',
184
198
  allowDecimals: true,
@@ -186,12 +200,13 @@ export const WithThousandsSeparator: Story = {
186
200
  isInvalid: false,
187
201
  editable: true,
188
202
  },
203
+ render: (args) => <AmountInputStory {...args} />,
189
204
  };
190
205
 
191
206
  export const WithoutThousandsSeparator: Story = {
192
- render: (args) => <AmountInputStory {...args} />,
193
207
  args: {
194
208
  value: '1000000',
209
+ onChangeText: () => {},
195
210
  currencyText: 'USD',
196
211
  currencyPosition: 'left',
197
212
  allowDecimals: true,
@@ -199,12 +214,13 @@ export const WithoutThousandsSeparator: Story = {
199
214
  isInvalid: false,
200
215
  editable: true,
201
216
  },
217
+ render: (args) => <AmountInputStory {...args} />,
202
218
  };
203
219
 
204
220
  export const DecimalSeparatorComma: Story = {
205
- render: (args) => <AmountInputStory {...args} />,
206
221
  args: {
207
222
  value: '1234.5',
223
+ onChangeText: () => {},
208
224
  currencyText: '€',
209
225
  currencyPosition: 'right',
210
226
  allowDecimals: true,
@@ -213,12 +229,13 @@ export const DecimalSeparatorComma: Story = {
213
229
  isInvalid: false,
214
230
  editable: true,
215
231
  },
232
+ render: (args) => <AmountInputStory {...args} />,
216
233
  };
217
234
 
218
235
  export const ErrorState: Story = {
219
- render: (args) => <AmountInputStory {...args} />,
220
236
  args: {
221
237
  value: '1234.56',
238
+ onChangeText: () => {},
222
239
  currencyText: 'USD',
223
240
  currencyPosition: 'left',
224
241
  allowDecimals: true,
@@ -226,12 +243,13 @@ export const ErrorState: Story = {
226
243
  isInvalid: true,
227
244
  editable: true,
228
245
  },
246
+ render: (args) => <AmountInputStory {...args} />,
229
247
  };
230
248
 
231
249
  export const DisabledAmountInput: Story = {
232
- render: (args) => <AmountInputStory {...args} />,
233
250
  args: {
234
251
  value: '1234.56',
252
+ onChangeText: () => {},
235
253
  currencyText: 'USD',
236
254
  currencyPosition: 'left',
237
255
  allowDecimals: true,
@@ -239,12 +257,13 @@ export const DisabledAmountInput: Story = {
239
257
  isInvalid: false,
240
258
  disabled: true,
241
259
  },
260
+ render: (args) => <AmountInputStory {...args} />,
242
261
  };
243
262
 
244
263
  export const CustomLengthLimits: Story = {
245
- render: (args) => <AmountInputStory {...args} />,
246
264
  args: {
247
265
  value: '123',
266
+ onChangeText: () => {},
248
267
  currencyText: '$',
249
268
  currencyPosition: 'left',
250
269
  allowDecimals: true,
@@ -254,4 +273,5 @@ export const CustomLengthLimits: Story = {
254
273
  isInvalid: false,
255
274
  editable: true,
256
275
  },
276
+ render: (args) => <AmountInputStory {...args} />,
257
277
  };
@@ -22,7 +22,7 @@ const meta = {
22
22
  } satisfies Meta<typeof Avatar>;
23
23
 
24
24
  export default meta;
25
- type Story = StoryObj<typeof meta>;
25
+ type Story = StoryObj<typeof Avatar>;
26
26
 
27
27
  const exampleSrc =
28
28
  'https://plus.unsplash.com/premium_photo-1689551670902-19b441a6afde?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D';
@@ -17,7 +17,7 @@ const meta = {
17
17
  } satisfies Meta<typeof AvatarButton>;
18
18
 
19
19
  export default meta;
20
- type Story = StoryObj<typeof meta>;
20
+ type Story = StoryObj<typeof AvatarButton>;
21
21
 
22
22
  const exampleSrc =
23
23
  'https://plus.unsplash.com/premium_photo-1689551670902-19b441a6afde?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D';
@@ -4,7 +4,7 @@ import { Box, Text } from '../../primitives';
4
4
  import { Button } from '../Button';
5
5
  import { Banner } from './Banner';
6
6
 
7
- const meta: Meta<typeof Banner> = {
7
+ const meta = {
8
8
  component: Banner,
9
9
  id: 'rnative-banner',
10
10
  title: 'Core/Banner',
@@ -81,7 +81,7 @@ const meta: Meta<typeof Banner> = {
81
81
  description: 'Close action with onClick and ariaLabel',
82
82
  },
83
83
  },
84
- };
84
+ } satisfies Meta<typeof Banner>;
85
85
 
86
86
  export default meta;
87
87
  type Story = StoryObj<typeof Banner>;
@@ -4,7 +4,7 @@ import { Box, Text } from '../../primitives';
4
4
  import { Plus, Settings } from '../../symbols';
5
5
  import { Button } from './Button';
6
6
 
7
- const meta: Meta<typeof Button> = {
7
+ const meta = {
8
8
  component: Button,
9
9
  id: 'rnative-button',
10
10
  title: 'Core/Button',
@@ -32,7 +32,7 @@ const meta: Meta<typeof Button> = {
32
32
  },
33
33
  },
34
34
  },
35
- };
35
+ } satisfies Meta<typeof Button>;
36
36
 
37
37
  export default meta;
38
38
  type Story = StoryObj<typeof Button>;
@@ -76,6 +76,9 @@ export const Loading: Story = {
76
76
  };
77
77
 
78
78
  export const AppearanceShowcase: Story = {
79
+ args: {
80
+ children: null,
81
+ },
79
82
  render: () => {
80
83
  const appearances: { name: string; appearance: ButtonAppearance }[] = [
81
84
  { name: 'Accent', appearance: 'accent' },
@@ -99,6 +102,9 @@ export const AppearanceShowcase: Story = {
99
102
  };
100
103
 
101
104
  export const ContentTypesShowcase: Story = {
105
+ args: {
106
+ children: null,
107
+ },
102
108
  render: () => (
103
109
  <Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's4' }}>
104
110
  <Button appearance='base'>Text Only</Button>
@@ -110,6 +116,9 @@ export const ContentTypesShowcase: Story = {
110
116
  };
111
117
 
112
118
  export const SizesShowcase: Story = {
119
+ args: {
120
+ children: null,
121
+ },
113
122
  render: () => (
114
123
  <Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's4' }}>
115
124
  <Button appearance='base' size='sm'>
@@ -126,6 +135,9 @@ export const SizesShowcase: Story = {
126
135
  };
127
136
 
128
137
  export const StatesShowcase: Story = {
138
+ args: {
139
+ children: null,
140
+ },
129
141
  render: () => (
130
142
  <Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's4' }}>
131
143
  <Button appearance='base'>Default</Button>
@@ -143,6 +155,9 @@ export const StatesShowcase: Story = {
143
155
  };
144
156
 
145
157
  export const ResponsiveLayout: Story = {
158
+ args: {
159
+ children: null,
160
+ },
146
161
  render: () => (
147
162
  <Box
148
163
  lx={{
@@ -162,6 +177,9 @@ export const ResponsiveLayout: Story = {
162
177
  };
163
178
 
164
179
  export const LabelTruncate: Story = {
180
+ args: {
181
+ children: null,
182
+ },
165
183
  render: () => (
166
184
  <Box>
167
185
  <Text typography='body4SemiBold' lx={{ color: 'muted' }}>
@@ -178,6 +196,9 @@ export const LabelTruncate: Story = {
178
196
  };
179
197
 
180
198
  export const InteractiveLoadingStates: Story = {
199
+ args: {
200
+ children: null,
201
+ },
181
202
  render: () => {
182
203
  const [states, setStates] = useState<
183
204
  Record<'text' | 'withIcon' | 'iconOnly', 'idle' | 'loading' | 'red'>
@@ -9,6 +9,7 @@ import {
9
9
  CardContent,
10
10
  CardContentDescription,
11
11
  CardContentTitle,
12
+ CardFooter,
12
13
  CardHeader,
13
14
  CardLeading,
14
15
  CardTrailing,
@@ -109,6 +110,25 @@ figma.connect(
109
110
  },
110
111
  );
111
112
 
113
+ // —— CardFooter ——
114
+ figma.connect(
115
+ CardFooter,
116
+ 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=14067-7402',
117
+ {
118
+ imports: ["import { CardFooter } from '@ledgerhq/lumen-ui-rnative'"],
119
+ props: {
120
+ appearance: figma.enum('appearance', {
121
+ 'no-background': 'no-background',
122
+ plain: 'plain',
123
+ }),
124
+ children: figma.children('*'),
125
+ },
126
+ example: (props) => (
127
+ <CardFooter appearance={props.appearance}>{props.children}</CardFooter>
128
+ ),
129
+ },
130
+ );
131
+
112
132
  // —— Card (expandable/info variant) ——
113
133
  figma.connect(
114
134
  'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=14481-33979',
@@ -43,7 +43,7 @@ Card is a flexible container component that uses a composite pattern for display
43
43
  - **CardContentTitle**: Primary text label with single-line truncation.
44
44
  - **CardContentDescription**: Secondary muted text with single-line truncation.
45
45
  - **CardTrailing**: Right section for trailing content (Button, Tag, right-aligned values, etc.).
46
- - **CardFooter**: Footer container with muted background. Collapses with a 300ms animation when `expanded === false`.
46
+ - **CardFooter**: Footer container. `appearance="plain"` (default) uses a muted background; `appearance="no-background"` blends with the card surface. Collapses with a 300ms animation when `expanded === false`.
47
47
  - **CardFooterActions**: Horizontal row for action buttons.
48
48
 
49
49
  ## Properties
@@ -66,6 +66,15 @@ The `disabled` prop cascades disabled styling to all sub-components via context.
66
66
 
67
67
  <Canvas of={CardStories.StatesShowcase} />
68
68
 
69
+ ## Appearance
70
+
71
+ `CardFooter` supports two appearances:
72
+
73
+ - **`"plain"`** (default): muted transparent background that visually separates the footer from the header.
74
+ - **`"no-background"`**: transparent, so the footer blends with the card surface.
75
+
76
+ <Canvas of={CardStories.FooterAppearance} />
77
+
69
78
  ## Expandable
70
79
 
71
80
  Set `type="expandable"` with the `expanded` and `onPress` props. Only the header shows pressed states and handles the press. Footer actions (buttons) work independently.