@ledgerhq/lumen-ui-rnative 0.1.69 → 0.1.70

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 (310) hide show
  1. package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js +7 -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 +7 -0
  4. package/dist/module/lib/Components/animations/Spin/Spin.stories.js.map +1 -1
  5. package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js +129 -136
  6. package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js.map +1 -1
  7. package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js +12 -6
  8. package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js.map +1 -1
  9. package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js +154 -176
  10. package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js.map +1 -1
  11. package/dist/module/lib/Components/core/Avatar/Avatar.stories.js +54 -47
  12. package/dist/module/lib/Components/core/Avatar/Avatar.stories.js.map +1 -1
  13. package/dist/module/lib/Components/core/AvatarButton/AvatarButton.stories.js +2 -9
  14. package/dist/module/lib/Components/core/AvatarButton/AvatarButton.stories.js.map +1 -1
  15. package/dist/module/lib/Components/core/Banner/Banner.stories.js +48 -87
  16. package/dist/module/lib/Components/core/Banner/Banner.stories.js.map +1 -1
  17. package/dist/module/lib/Components/core/Button/Button.figma.js +2 -1
  18. package/dist/module/lib/Components/core/Button/Button.figma.js.map +1 -1
  19. package/dist/module/lib/Components/core/Button/Button.mdx +2 -1
  20. package/dist/module/lib/Components/core/Button/Button.stories.js +34 -10
  21. package/dist/module/lib/Components/core/Button/Button.stories.js.map +1 -1
  22. package/dist/module/lib/Components/core/Card/Card.mdx +6 -0
  23. package/dist/module/lib/Components/core/Card/Card.stories.js +63 -24
  24. package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
  25. package/dist/module/lib/Components/core/CardButton/CardButton.stories.js +27 -85
  26. package/dist/module/lib/Components/core/CardButton/CardButton.stories.js.map +1 -1
  27. package/dist/module/lib/Components/core/Checkbox/Checkbox.stories.js +1 -1
  28. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +8 -18
  29. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +1 -1
  30. package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js +28 -0
  31. package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js.map +1 -1
  32. package/dist/module/lib/Components/core/Divider/Divider.stories.js +7 -0
  33. package/dist/module/lib/Components/core/Divider/Divider.stories.js.map +1 -1
  34. package/dist/module/lib/Components/core/DotCount/DotCount.stories.js +28 -0
  35. package/dist/module/lib/Components/core/DotCount/DotCount.stories.js.map +1 -1
  36. package/dist/module/lib/Components/core/DotIcon/DotIcon.stories.js +12 -0
  37. package/dist/module/lib/Components/core/DotIcon/DotIcon.stories.js.map +1 -1
  38. package/dist/module/lib/Components/core/DotIndicator/DotIndicator.stories.js +21 -0
  39. package/dist/module/lib/Components/core/DotIndicator/DotIndicator.stories.js.map +1 -1
  40. package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js +21 -0
  41. package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js.map +1 -1
  42. package/dist/module/lib/Components/core/IconButton/IconButton.stories.js +17 -0
  43. package/dist/module/lib/Components/core/IconButton/IconButton.stories.js.map +1 -1
  44. package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js +15 -21
  45. package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js.map +1 -1
  46. package/dist/module/lib/Components/core/Link/Link.js +1 -1
  47. package/dist/module/lib/Components/core/Link/Link.mdx +32 -5
  48. package/dist/module/lib/Components/core/Link/Link.stories.js +35 -139
  49. package/dist/module/lib/Components/core/Link/Link.stories.js.map +1 -1
  50. package/dist/module/lib/Components/core/Link/Link.test.js +1 -1
  51. package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +2 -41
  52. package/dist/module/lib/Components/core/ListItem/ListItem.stories.js.map +1 -1
  53. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js +19 -12
  54. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js.map +1 -1
  55. package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js +2 -13
  56. package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js.map +1 -1
  57. package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js +24 -50
  58. package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js.map +1 -1
  59. package/dist/module/lib/Components/core/MediaImage/MediaImage.stories.js +1 -1
  60. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +6 -0
  61. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js +96 -22
  62. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js.map +1 -1
  63. package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js +9 -0
  64. package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js.map +1 -1
  65. package/dist/module/lib/Components/core/MenuList/MenuList.mdx +2 -2
  66. package/dist/module/lib/Components/core/MenuList/MenuList.stories.js +17 -1
  67. package/dist/module/lib/Components/core/MenuList/MenuList.stories.js.map +1 -1
  68. package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js +1 -1
  69. package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js.map +1 -1
  70. package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js +56 -50
  71. package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js.map +1 -1
  72. package/dist/module/lib/Components/core/Pagination/Pagination.figma.js +22 -0
  73. package/dist/module/lib/Components/core/Pagination/Pagination.figma.js.map +1 -0
  74. package/dist/module/lib/Components/core/Pagination/Pagination.js +182 -0
  75. package/dist/module/lib/Components/core/Pagination/Pagination.js.map +1 -0
  76. package/dist/module/lib/Components/core/Pagination/Pagination.mdx +108 -0
  77. package/dist/module/lib/Components/core/Pagination/Pagination.stories.js +121 -0
  78. package/dist/module/lib/Components/core/Pagination/Pagination.stories.js.map +1 -0
  79. package/dist/module/lib/Components/core/Pagination/Pagination.test.js +338 -0
  80. package/dist/module/lib/Components/core/Pagination/Pagination.test.js.map +1 -0
  81. package/dist/module/lib/Components/core/Pagination/index.js +4 -0
  82. package/dist/module/lib/Components/core/Pagination/index.js.map +1 -0
  83. package/dist/module/lib/Components/core/Pagination/types.js +4 -0
  84. package/dist/module/lib/Components/core/Pagination/types.js.map +1 -0
  85. package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js +75 -67
  86. package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js.map +1 -1
  87. package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js +12 -0
  88. package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js.map +1 -1
  89. package/dist/module/lib/Components/core/SelectList/SelectList.mdx +3 -1
  90. package/dist/module/lib/Components/core/SelectList/SelectList.stories.js +3 -3
  91. package/dist/module/lib/Components/core/SelectList/SelectList.stories.js.map +1 -1
  92. package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js +7 -0
  93. package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js.map +1 -1
  94. package/dist/module/lib/Components/core/Spinner/Spinner.stories.js +7 -0
  95. package/dist/module/lib/Components/core/Spinner/Spinner.stories.js.map +1 -1
  96. package/dist/module/lib/Components/core/Spot/Spot.stories.js +20 -1
  97. package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
  98. package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +7 -0
  99. package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +1 -1
  100. package/dist/module/lib/Components/core/Subheader/Subheader.stories.js +11 -1
  101. package/dist/module/lib/Components/core/Subheader/Subheader.stories.js.map +1 -1
  102. package/dist/module/lib/Components/core/Switch/Switch.stories.js +21 -1
  103. package/dist/module/lib/Components/core/Switch/Switch.stories.js.map +1 -1
  104. package/dist/module/lib/Components/core/TabBar/TabBar.stories.js +17 -5
  105. package/dist/module/lib/Components/core/TabBar/TabBar.stories.js.map +1 -1
  106. package/dist/module/lib/Components/core/Tag/Tag.stories.js +28 -0
  107. package/dist/module/lib/Components/core/Tag/Tag.stories.js.map +1 -1
  108. package/dist/module/lib/Components/core/TextInput/TextInput.stories.js +159 -196
  109. package/dist/module/lib/Components/core/TextInput/TextInput.stories.js.map +1 -1
  110. package/dist/module/lib/Components/core/TextInput/TextInput.test.js +2 -2
  111. package/dist/module/lib/Components/core/TextInput/TextInput.test.js.map +1 -1
  112. package/dist/module/lib/Components/core/Tile/Tile.stories.js +2 -35
  113. package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
  114. package/dist/module/lib/Components/core/TileButton/TileButton.stories.js +18 -8
  115. package/dist/module/lib/Components/core/TileButton/TileButton.stories.js.map +1 -1
  116. package/dist/module/lib/Components/core/Timeline/Timeline.js +81 -67
  117. package/dist/module/lib/Components/core/Timeline/Timeline.js.map +1 -1
  118. package/dist/module/lib/Components/core/Timeline/Timeline.stories.js +46 -16
  119. package/dist/module/lib/Components/core/Timeline/Timeline.stories.js.map +1 -1
  120. package/dist/module/lib/Components/core/Timeline/Timeline.test.js +8 -5
  121. package/dist/module/lib/Components/core/Timeline/Timeline.test.js.map +1 -1
  122. package/dist/module/lib/Components/core/Toast/Toast.mdx +1 -1
  123. package/dist/module/lib/Components/core/Toast/Toast.stories.js +61 -58
  124. package/dist/module/lib/Components/core/Toast/Toast.stories.js.map +1 -1
  125. package/dist/module/lib/Components/core/Toast/Toaster.test.js +1 -1
  126. package/dist/module/lib/Components/core/Toast/Toaster.test.js.map +1 -1
  127. package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js +31 -2
  128. package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js.map +1 -1
  129. package/dist/module/lib/Components/core/Trend/Trend.stories.js +9 -0
  130. package/dist/module/lib/Components/core/Trend/Trend.stories.js.map +1 -1
  131. package/dist/module/lib/Components/core/index.js +1 -0
  132. package/dist/module/lib/Components/core/index.js.map +1 -1
  133. package/dist/module/lib/Components/internal/BaseButton/BaseButton.js +5 -2
  134. package/dist/module/lib/Components/internal/BaseButton/BaseButton.js.map +1 -1
  135. package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js +1 -1
  136. package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js.map +1 -1
  137. package/dist/module/lib/Components/primitives/Box/Box.stories.js +1 -18
  138. package/dist/module/lib/Components/primitives/Box/Box.stories.js.map +1 -1
  139. package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js +36 -0
  140. package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
  141. package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js +1 -1
  142. package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js +1 -19
  143. package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js.map +1 -1
  144. package/dist/module/lib/Components/primitives/Text/Text.stories.js +1 -12
  145. package/dist/module/lib/Components/primitives/Text/Text.stories.js.map +1 -1
  146. package/dist/module/lib/Components/symbols/Icon/Icon.stories.js +128 -85
  147. package/dist/module/lib/Components/symbols/Icon/Icon.stories.js.map +1 -1
  148. package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js +1 -1
  149. package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js.map +1 -1
  150. package/dist/module/lib/Components/visualization/Line/utils.js +1 -1
  151. package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js +69 -0
  152. package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js.map +1 -1
  153. package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js +1 -1
  154. package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js.map +1 -1
  155. package/dist/module/lib/Components/visualization/Point/Point.stories.js +12 -0
  156. package/dist/module/lib/Components/visualization/Point/Point.stories.js.map +1 -1
  157. package/dist/module/lib/Components/visualization/Point/Point.test.js +1 -1
  158. package/dist/module/lib/Components/visualization/Point/usePointGeometry.js +1 -1
  159. package/dist/module/lib/Components/visualization/Point/utils.js +1 -1
  160. package/dist/module/lib/Components/visualization/Point/utils.test.js +2 -2
  161. package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js +23 -0
  162. package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js.map +1 -1
  163. package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js +3 -3
  164. package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js.map +1 -1
  165. package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js +35 -0
  166. package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js.map +1 -1
  167. package/dist/module/translations/locales/de.json +7 -0
  168. package/dist/module/translations/locales/en.json +7 -0
  169. package/dist/module/translations/locales/es.json +7 -0
  170. package/dist/module/translations/locales/fr.json +7 -0
  171. package/dist/module/translations/locales/ja.json +7 -0
  172. package/dist/module/translations/locales/ko.json +7 -0
  173. package/dist/module/translations/locales/pt.json +7 -0
  174. package/dist/module/translations/locales/ru.json +7 -0
  175. package/dist/module/translations/locales/th.json +7 -0
  176. package/dist/module/translations/locales/tr.json +7 -0
  177. package/dist/module/translations/locales/zh.json +7 -0
  178. package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts +15 -0
  179. package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts.map +1 -0
  180. package/dist/typescript/src/lib/Components/core/Pagination/index.d.ts +3 -0
  181. package/dist/typescript/src/lib/Components/core/Pagination/index.d.ts.map +1 -0
  182. package/dist/typescript/src/lib/Components/core/Pagination/types.d.ts +29 -0
  183. package/dist/typescript/src/lib/Components/core/Pagination/types.d.ts.map +1 -0
  184. package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts +2 -2
  185. package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts.map +1 -1
  186. package/dist/typescript/src/lib/Components/core/index.d.ts +1 -0
  187. package/dist/typescript/src/lib/Components/core/index.d.ts.map +1 -1
  188. package/dist/typescript/src/lib/Components/internal/BaseButton/BaseButton.d.ts.map +1 -1
  189. package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts +1 -1
  190. package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts.map +1 -1
  191. package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts +1 -1
  192. package/dist/typescript/src/lib/Components/visualization/Axis/types.d.ts +1 -1
  193. package/dist/typescript/src/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
  194. package/dist/typescript/src/lib/Components/visualization/Line/utils.d.ts +1 -1
  195. package/dist/typescript/src/lib/Components/visualization/LineChart/types.d.ts +3 -3
  196. package/dist/typescript/src/lib/Components/visualization/Point/types.d.ts +3 -3
  197. package/dist/typescript/src/lib/Components/visualization/Point/usePointGeometry.d.ts +1 -1
  198. package/dist/typescript/src/lib/Components/visualization/Point/utils.d.ts +1 -1
  199. package/dist/typescript/src/translations/translations.d.ts +84 -0
  200. package/dist/typescript/src/translations/translations.d.ts.map +1 -1
  201. package/package.json +8 -8
  202. package/src/lib/Components/animations/Pulse/Pulse.stories.tsx +1 -0
  203. package/src/lib/Components/animations/Spin/Spin.stories.tsx +1 -0
  204. package/src/lib/Components/core/AddressInput/AddressInput.stories.tsx +168 -123
  205. package/src/lib/Components/core/AmountDisplay/AmountDisplay.stories.tsx +7 -7
  206. package/src/lib/Components/core/AmountInput/AmountInput.stories.tsx +162 -158
  207. package/src/lib/Components/core/Avatar/Avatar.stories.tsx +37 -46
  208. package/src/lib/Components/core/AvatarButton/AvatarButton.stories.tsx +1 -8
  209. package/src/lib/Components/core/Banner/Banner.stories.tsx +8 -95
  210. package/src/lib/Components/core/Button/Button.figma.tsx +1 -0
  211. package/src/lib/Components/core/Button/Button.mdx +2 -1
  212. package/src/lib/Components/core/Button/Button.stories.tsx +13 -14
  213. package/src/lib/Components/core/Card/Card.mdx +6 -0
  214. package/src/lib/Components/core/Card/Card.stories.tsx +31 -27
  215. package/src/lib/Components/core/CardButton/CardButton.stories.tsx +14 -90
  216. package/src/lib/Components/core/Checkbox/Checkbox.stories.tsx +1 -1
  217. package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +1 -17
  218. package/src/lib/Components/core/DescriptionItem/DescriptionItem.stories.tsx +4 -0
  219. package/src/lib/Components/core/Divider/Divider.stories.tsx +1 -0
  220. package/src/lib/Components/core/DotCount/DotCount.stories.tsx +4 -0
  221. package/src/lib/Components/core/DotIcon/DotIcon.stories.tsx +8 -0
  222. package/src/lib/Components/core/DotIndicator/DotIndicator.stories.tsx +3 -0
  223. package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +3 -0
  224. package/src/lib/Components/core/IconButton/IconButton.stories.tsx +9 -0
  225. package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.tsx +16 -23
  226. package/src/lib/Components/core/Link/Link.mdx +32 -5
  227. package/src/lib/Components/core/Link/Link.stories.tsx +20 -146
  228. package/src/lib/Components/core/Link/Link.test.tsx +1 -1
  229. package/src/lib/Components/core/Link/Link.tsx +1 -1
  230. package/src/lib/Components/core/ListItem/ListItem.stories.tsx +0 -39
  231. package/src/lib/Components/core/MediaBanner/MediaBanner.stories.tsx +3 -14
  232. package/src/lib/Components/core/MediaButton/MediaButton.stories.tsx +1 -12
  233. package/src/lib/Components/core/MediaCard/MediaCard.stories.tsx +10 -53
  234. package/src/lib/Components/core/MediaImage/MediaImage.stories.tsx +1 -1
  235. package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +6 -0
  236. package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.tsx +47 -15
  237. package/src/lib/Components/core/MediaTag/MediaTag.stories.tsx +3 -0
  238. package/src/lib/Components/core/MenuList/MenuList.mdx +2 -2
  239. package/src/lib/Components/core/MenuList/MenuList.stories.tsx +13 -1
  240. package/src/lib/Components/core/PageIndicator/PageIndicator.figma.tsx +1 -1
  241. package/src/lib/Components/core/PageIndicator/PageIndicator.stories.tsx +45 -42
  242. package/src/lib/Components/core/Pagination/Pagination.figma.tsx +25 -0
  243. package/src/lib/Components/core/Pagination/Pagination.mdx +108 -0
  244. package/src/lib/Components/core/Pagination/Pagination.stories.tsx +90 -0
  245. package/src/lib/Components/core/Pagination/Pagination.test.tsx +346 -0
  246. package/src/lib/Components/core/Pagination/Pagination.tsx +200 -0
  247. package/src/lib/Components/core/Pagination/index.ts +2 -0
  248. package/src/lib/Components/core/Pagination/types.ts +29 -0
  249. package/src/lib/Components/core/SearchInput/SearchInput.stories.tsx +91 -66
  250. package/src/lib/Components/core/SegmentedControl/SegmentedControl.stories.tsx +2 -0
  251. package/src/lib/Components/core/SelectList/SelectList.mdx +3 -1
  252. package/src/lib/Components/core/SelectList/SelectList.stories.tsx +3 -3
  253. package/src/lib/Components/core/Skeleton/Skeleton.stories.tsx +1 -0
  254. package/src/lib/Components/core/Spinner/Spinner.stories.tsx +1 -0
  255. package/src/lib/Components/core/Spot/Spot.stories.tsx +10 -1
  256. package/src/lib/Components/core/Stepper/Stepper.stories.tsx +1 -0
  257. package/src/lib/Components/core/Subheader/Subheader.stories.tsx +5 -2
  258. package/src/lib/Components/core/Switch/Switch.stories.tsx +17 -1
  259. package/src/lib/Components/core/TabBar/TabBar.stories.tsx +15 -5
  260. package/src/lib/Components/core/Tag/Tag.stories.tsx +4 -0
  261. package/src/lib/Components/core/TextInput/TextInput.stories.tsx +186 -174
  262. package/src/lib/Components/core/TextInput/TextInput.test.tsx +2 -2
  263. package/src/lib/Components/core/Tile/Tile.stories.tsx +0 -33
  264. package/src/lib/Components/core/TileButton/TileButton.stories.tsx +9 -7
  265. package/src/lib/Components/core/Timeline/Timeline.stories.tsx +20 -1
  266. package/src/lib/Components/core/Timeline/Timeline.test.tsx +12 -8
  267. package/src/lib/Components/core/Timeline/Timeline.tsx +79 -75
  268. package/src/lib/Components/core/Toast/Toast.mdx +1 -1
  269. package/src/lib/Components/core/Toast/Toast.stories.tsx +55 -66
  270. package/src/lib/Components/core/Toast/Toaster.test.tsx +1 -1
  271. package/src/lib/Components/core/Tooltip/Tooltip.stories.tsx +7 -3
  272. package/src/lib/Components/core/Trend/Trend.stories.tsx +3 -0
  273. package/src/lib/Components/core/index.ts +1 -0
  274. package/src/lib/Components/internal/BaseButton/BaseButton.test.tsx +1 -0
  275. package/src/lib/Components/internal/BaseButton/BaseButton.tsx +3 -0
  276. package/src/lib/Components/internal/BaseButton/types.ts +2 -1
  277. package/src/lib/Components/internal/BaseInput/types.ts +1 -1
  278. package/src/lib/Components/primitives/Box/Box.stories.tsx +1 -18
  279. package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.tsx +12 -0
  280. package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.tsx +1 -1
  281. package/src/lib/Components/primitives/Pressable/Pressable.stories.tsx +0 -18
  282. package/src/lib/Components/primitives/Text/Text.stories.tsx +1 -12
  283. package/src/lib/Components/symbols/Icon/Icon.stories.tsx +133 -94
  284. package/src/lib/Components/visualization/Axis/types.ts +1 -1
  285. package/src/lib/Components/visualization/CartesianChart/types.ts +1 -1
  286. package/src/lib/Components/visualization/DonutChart/DonutChart.test.tsx +1 -1
  287. package/src/lib/Components/visualization/Line/utils.ts +1 -1
  288. package/src/lib/Components/visualization/LineChart/LineChart.stories.tsx +15 -0
  289. package/src/lib/Components/visualization/LineChart/LineChart.test.tsx +1 -1
  290. package/src/lib/Components/visualization/LineChart/types.ts +3 -3
  291. package/src/lib/Components/visualization/Point/Point.stories.tsx +2 -0
  292. package/src/lib/Components/visualization/Point/Point.test.tsx +1 -1
  293. package/src/lib/Components/visualization/Point/types.ts +3 -3
  294. package/src/lib/Components/visualization/Point/usePointGeometry.ts +1 -1
  295. package/src/lib/Components/visualization/Point/utils.test.ts +2 -2
  296. package/src/lib/Components/visualization/Point/utils.ts +1 -1
  297. package/src/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.tsx +5 -0
  298. package/src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.ts +3 -3
  299. package/src/lib/Components/visualization/Scrubber/Scrubber.stories.tsx +5 -0
  300. package/src/translations/locales/de.json +7 -0
  301. package/src/translations/locales/en.json +7 -0
  302. package/src/translations/locales/es.json +7 -0
  303. package/src/translations/locales/fr.json +7 -0
  304. package/src/translations/locales/ja.json +7 -0
  305. package/src/translations/locales/ko.json +7 -0
  306. package/src/translations/locales/pt.json +7 -0
  307. package/src/translations/locales/ru.json +7 -0
  308. package/src/translations/locales/th.json +7 -0
  309. package/src/translations/locales/tr.json +7 -0
  310. package/src/translations/locales/zh.json +7 -0
@@ -2,12 +2,28 @@ import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
2
  import { useState } from 'react';
3
3
  import { View } from 'react-native';
4
4
  import { AddressInput } from './AddressInput';
5
- import type { AddressInputProps } from './types';
6
5
 
7
6
  const meta = {
8
7
  component: AddressInput,
9
8
  id: 'rnative-addressinput',
10
9
  title: 'Core/AddressInput',
10
+ decorators: [
11
+ (Story) => (
12
+ <View
13
+ style={{
14
+ flex: 1,
15
+ minHeight: 96,
16
+ alignItems: 'center',
17
+ justifyContent: 'center',
18
+ padding: 24,
19
+ }}
20
+ >
21
+ <View style={{ width: '100%', maxWidth: 400 }}>
22
+ <Story />
23
+ </View>
24
+ </View>
25
+ ),
26
+ ],
11
27
  parameters: {
12
28
  docs: {
13
29
  source: {
@@ -22,169 +38,198 @@ const meta = {
22
38
  export default meta;
23
39
  type Story = StoryObj<typeof AddressInput>;
24
40
 
25
- const AddressInputStory = (args: AddressInputProps) => {
26
- const [address, setAddress] = useState(args.value?.toString() ?? '');
27
-
28
- return (
29
- <View
30
- style={{
31
- flex: 1,
32
- minHeight: 96,
33
- alignItems: 'center',
34
- justifyContent: 'center',
35
- padding: 24,
36
- }}
37
- >
38
- <View style={{ width: '100%', maxWidth: 400 }}>
39
- <AddressInput
40
- {...args}
41
- value={address}
42
- onChangeText={setAddress}
43
- onQrCodeClick={
44
- args.onQrCodeClick ?? (() => alert('QR code scanner opened'))
45
- }
46
- />
47
- </View>
48
- </View>
49
- );
50
- };
51
-
52
41
  export const Base: Story = {
53
- render: (args) => <AddressInputStory {...args} />,
54
42
  args: {
55
43
  placeholder: 'Enter address or ENS',
56
44
  prefix: 'To:',
57
45
  editable: true,
58
46
  hideClearButton: false,
47
+ onQrCodeClick: () => alert('QR code scanner opened'),
48
+ },
49
+ render: (args) => {
50
+ const [address, setAddress] = useState('');
51
+
52
+ return <AddressInput {...args} value={address} onChangeText={setAddress} />;
59
53
  },
60
54
  };
61
55
 
62
56
  export const WithContent: Story = {
63
- render: (args) => <AddressInputStory {...args} />,
64
- args: {
65
- placeholder: 'Enter address or ENS',
66
- value: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
67
- prefix: 'To:',
68
- editable: true,
69
- hideClearButton: false,
57
+ render: () => {
58
+ const [address, setAddress] = useState(
59
+ '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
60
+ );
61
+
62
+ return (
63
+ <AddressInput
64
+ placeholder='Enter address or ENS'
65
+ prefix='To:'
66
+ editable
67
+ hideClearButton={false}
68
+ value={address}
69
+ onChangeText={setAddress}
70
+ onQrCodeClick={() => alert('QR code scanner opened')}
71
+ />
72
+ );
70
73
  },
71
74
  };
72
75
 
73
76
  export const WithCustomPrefix: Story = {
74
- render: (args) => <AddressInputStory {...args} />,
75
- args: {
76
- placeholder: 'Enter sender address',
77
- prefix: 'From:',
78
- editable: true,
79
- hideClearButton: false,
77
+ render: () => {
78
+ const [address, setAddress] = useState('');
79
+
80
+ return (
81
+ <AddressInput
82
+ placeholder='Enter sender address'
83
+ prefix='From:'
84
+ editable
85
+ hideClearButton={false}
86
+ value={address}
87
+ onChangeText={setAddress}
88
+ onQrCodeClick={() => alert('QR code scanner opened')}
89
+ />
90
+ );
80
91
  },
81
92
  };
82
93
 
83
- const AddressInputWithoutQrStory = (args: AddressInputProps) => {
84
- const [address, setAddress] = useState(args.value?.toString() ?? '');
85
-
86
- return (
87
- <View
88
- style={{
89
- flex: 1,
90
- minHeight: 96,
91
- alignItems: 'center',
92
- justifyContent: 'center',
93
- padding: 24,
94
- }}
95
- >
96
- <View style={{ width: '100%', maxWidth: 400 }}>
97
- <AddressInput
98
- {...args}
99
- value={address}
100
- onChangeText={setAddress}
101
- onQrCodeClick={undefined}
102
- />
103
- </View>
104
- </View>
105
- );
106
- };
107
-
108
94
  export const WithoutQrCode: Story = {
109
- render: (args) => <AddressInputWithoutQrStory {...args} />,
110
- args: {
111
- placeholder: 'Enter address or ENS',
112
- prefix: 'To:',
113
- editable: true,
114
- hideClearButton: false,
95
+ render: () => {
96
+ const [address, setAddress] = useState('');
97
+
98
+ return (
99
+ <AddressInput
100
+ placeholder='Enter address or ENS'
101
+ prefix='To:'
102
+ editable
103
+ hideClearButton={false}
104
+ value={address}
105
+ onChangeText={setAddress}
106
+ />
107
+ );
115
108
  },
116
109
  };
117
110
 
118
111
  export const WithError: Story = {
119
- render: (args) => <AddressInputStory {...args} />,
120
- args: {
121
- placeholder: 'Enter address or ENS',
122
- value: 'invalid-address',
123
- helperText: 'Invalid address format',
124
- status: 'error',
125
- prefix: 'To:',
126
- editable: true,
127
- hideClearButton: false,
112
+ render: () => {
113
+ const [address, setAddress] = useState('invalid-address');
114
+
115
+ return (
116
+ <AddressInput
117
+ placeholder='Enter address or ENS'
118
+ helperText='Invalid address format'
119
+ status='error'
120
+ prefix='To:'
121
+ editable
122
+ hideClearButton={false}
123
+ value={address}
124
+ onChangeText={setAddress}
125
+ onQrCodeClick={() => alert('QR code scanner opened')}
126
+ />
127
+ );
128
128
  },
129
129
  };
130
130
 
131
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,
132
+ render: () => {
133
+ const [address, setAddress] = useState(
134
+ '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
135
+ );
136
+
137
+ return (
138
+ <AddressInput
139
+ placeholder='Enter address or ENS'
140
+ prefix='To:'
141
+ multiline
142
+ minLines={2}
143
+ maxLines={5}
144
+ editable
145
+ hideClearButton={false}
146
+ value={address}
147
+ onChangeText={setAddress}
148
+ onQrCodeClick={() => alert('QR code scanner opened')}
149
+ />
150
+ );
142
151
  },
143
152
  };
144
153
 
145
154
  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,
155
+ render: () => {
156
+ const [address, setAddress] = useState(
157
+ '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
158
+ );
159
+
160
+ return (
161
+ <AddressInput
162
+ placeholder='Enter address or ENS'
163
+ prefix='To:'
164
+ multiline
165
+ minLines={4}
166
+ maxLines={4}
167
+ editable
168
+ hideClearButton={false}
169
+ value={address}
170
+ onChangeText={setAddress}
171
+ onQrCodeClick={() => alert('QR code scanner opened')}
172
+ />
173
+ );
156
174
  },
157
175
  };
158
176
 
159
177
  export const Disabled: Story = {
160
- render: (args) => <AddressInputStory {...args} />,
161
- args: {
162
- placeholder: 'Enter address or ENS',
163
- value: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
164
- prefix: 'To:',
165
- disabled: true,
166
- hideClearButton: false,
178
+ render: () => {
179
+ const [address, setAddress] = useState(
180
+ '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
181
+ );
182
+
183
+ return (
184
+ <AddressInput
185
+ placeholder='Enter address or ENS'
186
+ prefix='To:'
187
+ disabled
188
+ hideClearButton={false}
189
+ value={address}
190
+ onChangeText={setAddress}
191
+ onQrCodeClick={() => alert('QR code scanner opened')}
192
+ />
193
+ );
167
194
  },
168
195
  };
169
196
 
170
197
  export const ReadOnly: Story = {
171
- render: (args) => <AddressInputStory {...args} />,
172
- args: {
173
- placeholder: 'Enter address or ENS',
174
- value: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
175
- prefix: 'To:',
176
- readOnly: true,
177
- hideClearButton: false,
198
+ render: () => {
199
+ const [address, setAddress] = useState(
200
+ '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
201
+ );
202
+
203
+ return (
204
+ <AddressInput
205
+ placeholder='Enter address or ENS'
206
+ prefix='To:'
207
+ readOnly
208
+ hideClearButton={false}
209
+ value={address}
210
+ onChangeText={setAddress}
211
+ onQrCodeClick={() => alert('QR code scanner opened')}
212
+ />
213
+ );
178
214
  },
179
215
  };
180
216
 
181
217
  export const WithHiddenClearButton: Story = {
182
- render: (args) => <AddressInputStory {...args} />,
183
- args: {
184
- placeholder: 'Enter address or ENS',
185
- value: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
186
- prefix: 'To:',
187
- editable: true,
188
- hideClearButton: true,
218
+ render: () => {
219
+ const [address, setAddress] = useState(
220
+ '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
221
+ );
222
+
223
+ return (
224
+ <AddressInput
225
+ placeholder='Enter address or ENS'
226
+ prefix='To:'
227
+ editable
228
+ hideClearButton
229
+ value={address}
230
+ onChangeText={setAddress}
231
+ onQrCodeClick={() => alert('QR code scanner opened')}
232
+ />
233
+ );
189
234
  },
190
235
  };
@@ -104,21 +104,20 @@ export default meta;
104
104
  type Story = StoryObj<typeof AmountDisplay>;
105
105
 
106
106
  export const Base: Story = {
107
+ parameters: {
108
+ docs: { source: { type: 'dynamic' } },
109
+ jsx: { functionValue: (fn: { name?: string }) => fn.name || '() => {}' },
110
+ },
107
111
  args: {
108
112
  value: 1234.56,
109
- },
110
- parameters: {
111
- docs: {
112
- source: {
113
- code: `<AmountDisplay value={1234.56} />`,
114
- },
115
- },
113
+ formatter: eurFormatter,
116
114
  },
117
115
  };
118
116
 
119
117
  export const Sizes: Story = {
120
118
  args: {
121
119
  value: 1234.56,
120
+ formatter: eurFormatter,
122
121
  },
123
122
  render: (props) => (
124
123
  <View style={{ alignItems: 'center', gap: 24 }}>
@@ -179,6 +178,7 @@ export const AnimationShowcase: Story = {
179
178
  export const Loading: Story = {
180
179
  args: {
181
180
  value: 1234.56,
181
+ formatter: eurFormatter,
182
182
  },
183
183
  render: (props) => {
184
184
  return (