@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,18 +2,34 @@ 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 { TextInput } from './TextInput';
5
- import { type TextInputProps } from './types';
6
5
 
7
6
  const meta = {
8
7
  component: TextInput,
9
8
  id: 'rnative-textinput',
10
9
  title: 'Core/TextInput',
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: {
14
30
  language: 'tsx',
15
31
  format: true,
16
- type: 'dynamic',
32
+ type: 'code',
17
33
  },
18
34
  },
19
35
  },
@@ -22,83 +38,63 @@ const meta = {
22
38
  export default meta;
23
39
  type Story = StoryObj<typeof TextInput>;
24
40
 
25
- const TextInputStory = (args: TextInputProps & { initialValue?: string }) => {
26
- const [value, setValue] = useState(args.initialValue ?? '');
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
- <TextInput
40
- {...args}
41
- value={value}
42
- onChangeText={setValue}
43
- onClear={args.onClear}
44
- />
45
- </View>
46
- </View>
47
- );
48
- };
49
-
50
41
  export const Base: Story = {
51
- render: (args) => <TextInputStory {...args} />,
52
- args: {
53
- label: 'Username',
54
- editable: true,
55
- hideClearButton: false,
56
- keyboardType: 'default',
42
+ args: { label: 'Username' },
43
+ render: (args) => {
44
+ const [value, setValue] = useState('');
45
+ return <TextInput {...args} value={value} onChangeText={setValue} />;
57
46
  },
58
47
  };
59
48
 
60
49
  export const WithContent: Story = {
61
- render: (args) => <TextInputStory {...args} initialValue='johndoe' />,
62
- args: {
63
- label: 'Username',
64
- editable: true,
65
- hideClearButton: false,
66
- keyboardType: 'default',
50
+ render: () => {
51
+ const [value, setValue] = useState('johndoe');
52
+ return <TextInput label='Username' value={value} onChangeText={setValue} />;
67
53
  },
68
54
  };
69
55
 
70
56
  export const WithLabelAndPlaceholder: Story = {
71
- render: (args) => <TextInputStory {...args} />,
72
- args: {
73
- label: 'Phone',
74
- placeholder: '+1 (555) 000-0000',
75
- editable: true,
76
- hideClearButton: false,
77
- keyboardType: 'phone-pad',
57
+ render: () => {
58
+ const [value, setValue] = useState('');
59
+ return (
60
+ <TextInput
61
+ label='Phone'
62
+ placeholder='+1 (555) 000-0000'
63
+ keyboardType='phone-pad'
64
+ value={value}
65
+ onChangeText={setValue}
66
+ />
67
+ );
78
68
  },
79
69
  };
80
70
 
81
71
  export const WithError: Story = {
82
- render: (args) => <TextInputStory {...args} initialValue='ab' />,
83
- args: {
84
- label: 'Username',
85
- helperText: 'Username must be at least 3 characters',
86
- status: 'error',
87
- editable: true,
88
- hideClearButton: false,
89
- keyboardType: 'default',
72
+ render: () => {
73
+ const [value, setValue] = useState('ab');
74
+ return (
75
+ <TextInput
76
+ label='Username'
77
+ helperText='Username must be at least 3 characters'
78
+ status='error'
79
+ value={value}
80
+ onChangeText={setValue}
81
+ />
82
+ );
90
83
  },
91
84
  };
92
85
 
93
86
  export const WithCounter: Story = {
94
- render: (args) => <TextInputStory {...args} />,
95
- args: {
96
- label: 'Label',
97
- helperText: 'Info text',
98
- maxCount: 32,
99
- editable: true,
100
- hideClearButton: false,
101
- keyboardType: 'default',
87
+ render: () => {
88
+ const [value, setValue] = useState('');
89
+ return (
90
+ <TextInput
91
+ label='Label'
92
+ helperText='Info text'
93
+ maxCount={32}
94
+ value={value}
95
+ onChangeText={setValue}
96
+ />
97
+ );
102
98
  },
103
99
  };
104
100
 
@@ -109,162 +105,178 @@ export const WithCounterExceeded: Story = {
109
105
  const isOverLimit = value.length > maxCount;
110
106
 
111
107
  return (
112
- <View
113
- style={{
114
- flex: 1,
115
- minHeight: 96,
116
- alignItems: 'center',
117
- justifyContent: 'center',
118
- padding: 24,
119
- }}
120
- >
121
- <View style={{ width: '100%', maxWidth: 400 }}>
122
- <TextInput
123
- label='Label'
124
- value={value}
125
- onChangeText={setValue}
126
- helperText={isOverLimit ? 'Character limit exceeded' : 'Info text'}
127
- status={isOverLimit ? 'error' : undefined}
128
- maxCount={maxCount}
129
- />
130
- </View>
131
- </View>
108
+ <TextInput
109
+ label='Label'
110
+ value={value}
111
+ onChangeText={setValue}
112
+ helperText={isOverLimit ? 'Character limit exceeded' : 'Info text'}
113
+ status={isOverLimit ? 'error' : undefined}
114
+ maxCount={maxCount}
115
+ />
132
116
  );
133
117
  },
134
118
  };
135
119
 
136
120
  export const WithNativeMaxLength: Story = {
137
- render: (args) => <TextInputStory {...args} />,
138
- args: {
139
- label: 'Label',
140
- helperText: 'Input is capped at 8 characters',
141
- maxLength: 8,
142
- maxCount: 8,
143
- editable: true,
144
- hideClearButton: false,
145
- keyboardType: 'default',
121
+ render: () => {
122
+ const [value, setValue] = useState('');
123
+ return (
124
+ <TextInput
125
+ label='Label'
126
+ helperText='Input is capped at 8 characters'
127
+ maxLength={8}
128
+ maxCount={8}
129
+ value={value}
130
+ onChangeText={setValue}
131
+ />
132
+ );
146
133
  },
147
134
  };
148
135
 
149
136
  export const WithSuccess: Story = {
150
- render: (args) => (
151
- <TextInputStory
152
- {...args}
153
- initialValue='0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27'
154
- />
155
- ),
156
- args: {
157
- label: 'Address',
158
- helperText: 'Address verified',
159
- status: 'success',
160
- editable: true,
161
- hideClearButton: false,
162
- keyboardType: 'default',
137
+ render: () => {
138
+ const [value, setValue] = useState(
139
+ '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
140
+ );
141
+ return (
142
+ <TextInput
143
+ label='Address'
144
+ helperText='Address verified'
145
+ status='success'
146
+ value={value}
147
+ onChangeText={setValue}
148
+ />
149
+ );
163
150
  },
164
151
  };
165
152
 
166
153
  export const WithNeutralHint: Story = {
167
- render: (args) => <TextInputStory {...args} />,
168
- args: {
169
- label: 'Address',
170
- helperText: 'Enter your ETH address',
171
- editable: true,
172
- hideClearButton: false,
173
- keyboardType: 'default',
154
+ render: () => {
155
+ const [value, setValue] = useState('');
156
+ return (
157
+ <TextInput
158
+ label='Address'
159
+ helperText='Enter your ETH address'
160
+ value={value}
161
+ onChangeText={setValue}
162
+ />
163
+ );
174
164
  },
175
165
  };
176
166
 
177
167
  export const WithMultiline: Story = {
178
- render: (args) => <TextInputStory {...args} />,
179
- args: {
180
- label: 'Note',
181
- helperText: 'Grows from 2 to 5 lines, then scrolls',
182
- multiline: true,
183
- minLines: 2,
184
- maxLines: 5,
185
- editable: true,
186
- hideClearButton: false,
187
- keyboardType: 'default',
168
+ render: () => {
169
+ const [value, setValue] = useState('');
170
+ return (
171
+ <TextInput
172
+ label='Note'
173
+ helperText='Grows from 2 to 5 lines, then scrolls'
174
+ multiline
175
+ minLines={2}
176
+ maxLines={5}
177
+ value={value}
178
+ onChangeText={setValue}
179
+ />
180
+ );
188
181
  },
189
182
  };
190
183
 
191
184
  export const WithMultilineFixedHeight: Story = {
192
- render: (args) => <TextInputStory {...args} />,
193
- args: {
194
- label: 'Note',
195
- multiline: true,
196
- minLines: 4,
197
- maxLines: 4,
198
- editable: true,
199
- hideClearButton: false,
200
- keyboardType: 'default',
185
+ render: () => {
186
+ const [value, setValue] = useState('');
187
+ return (
188
+ <TextInput
189
+ label='Note'
190
+ multiline
191
+ minLines={4}
192
+ maxLines={4}
193
+ value={value}
194
+ onChangeText={setValue}
195
+ />
196
+ );
201
197
  },
202
198
  };
203
199
 
204
200
  export const DisabledTextInput: Story = {
205
- render: (args) => <TextInputStory {...args} initialValue='johndoe' />,
206
- args: {
207
- label: 'Username',
208
- disabled: true,
209
- hideClearButton: false,
210
- keyboardType: 'default',
201
+ render: () => {
202
+ const [value, setValue] = useState('johndoe');
203
+ return (
204
+ <TextInput
205
+ label='Username'
206
+ disabled
207
+ value={value}
208
+ onChangeText={setValue}
209
+ />
210
+ );
211
211
  },
212
212
  };
213
213
 
214
214
  export const ReadOnlyTextInput: Story = {
215
- render: (args) => <TextInputStory {...args} initialValue='johndoe' />,
216
- args: {
217
- label: 'Username',
218
- readOnly: true,
219
- hideClearButton: false,
220
- keyboardType: 'default',
215
+ render: () => {
216
+ const [value, setValue] = useState('johndoe');
217
+ return (
218
+ <TextInput
219
+ label='Username'
220
+ readOnly
221
+ value={value}
222
+ onChangeText={setValue}
223
+ />
224
+ );
221
225
  },
222
226
  };
223
227
 
224
228
  export const WithHiddenClearButton: Story = {
225
- render: (args) => (
226
- <TextInputStory {...args} initialValue='Content with hidden clear' />
227
- ),
228
- args: {
229
- label: 'Label',
230
- editable: true,
231
- hideClearButton: true,
232
- keyboardType: 'default',
229
+ render: () => {
230
+ const [value, setValue] = useState('Content with hidden clear');
231
+ return (
232
+ <TextInput
233
+ label='Label'
234
+ hideClearButton
235
+ value={value}
236
+ onChangeText={setValue}
237
+ />
238
+ );
233
239
  },
234
240
  };
235
241
 
236
242
  export const WithClearCallback: Story = {
237
- render: (args) => (
238
- <TextInputStory
239
- {...args}
240
- initialValue='Click clear to see callback'
241
- onClear={() => alert('Input cleared!')}
242
- />
243
- ),
244
- args: {
245
- label: 'Label',
246
- editable: true,
247
- hideClearButton: false,
248
- keyboardType: 'default',
243
+ render: () => {
244
+ const [value, setValue] = useState('Click clear to see callback');
245
+ return (
246
+ <TextInput
247
+ label='Label'
248
+ onClear={() => alert('Input cleared!')}
249
+ value={value}
250
+ onChangeText={setValue}
251
+ />
252
+ );
249
253
  },
250
254
  };
251
255
 
252
256
  export const EmailKeyboard: Story = {
253
- render: (args) => <TextInputStory {...args} />,
254
- args: {
255
- label: 'Email',
256
- editable: true,
257
- hideClearButton: false,
258
- keyboardType: 'email-address',
257
+ render: () => {
258
+ const [value, setValue] = useState('');
259
+ return (
260
+ <TextInput
261
+ label='Email'
262
+ keyboardType='email-address'
263
+ value={value}
264
+ onChangeText={setValue}
265
+ />
266
+ );
259
267
  },
260
268
  };
261
269
 
262
270
  export const PhoneKeyboard: Story = {
263
- render: (args) => <TextInputStory {...args} />,
264
- args: {
265
- label: 'Phone Number',
266
- editable: true,
267
- hideClearButton: false,
268
- keyboardType: 'phone-pad',
271
+ render: () => {
272
+ const [value, setValue] = useState('');
273
+ return (
274
+ <TextInput
275
+ label='Phone Number'
276
+ keyboardType='phone-pad'
277
+ value={value}
278
+ onChangeText={setValue}
279
+ />
280
+ );
269
281
  },
270
282
  };
@@ -24,7 +24,7 @@ const geometries: {
24
24
  chrome: number;
25
25
  }[] = [
26
26
  {
27
- name: 'labelled',
27
+ name: 'labeled',
28
28
  props: { label: 'Note' },
29
29
  lineHeight: body2.lineHeight,
30
30
  suffixOffset: spacings.s8,
@@ -32,7 +32,7 @@ const geometries: {
32
32
  chrome: spacings.s16 + 2 * spacings.s6,
33
33
  },
34
34
  {
35
- name: 'unlabelled',
35
+ name: 'unlabeled',
36
36
  props: {},
37
37
  lineHeight: body1.lineHeight,
38
38
  suffixOffset: spacings.s2,
@@ -76,21 +76,6 @@ export const Base: Story = {
76
76
  </TileContent>
77
77
  </Tile>
78
78
  ),
79
- parameters: {
80
- docs: {
81
- source: {
82
- code: `
83
- <Tile lx={{ maxWidth: 's112' }}>
84
- <Spot icon={Settings} />
85
- <TileContent>
86
- <TileTitle>Item with Spot and Description</TileTitle>
87
- <TileDescription>Additional information</TileDescription>
88
- </TileContent>
89
- </Tile>
90
- `,
91
- },
92
- },
93
- },
94
79
  };
95
80
 
96
81
  export const VariantsShowcase: Story = {
@@ -154,24 +139,6 @@ export const WithSecondaryAction: Story = {
154
139
  </TileContent>
155
140
  </Tile>
156
141
  ),
157
- parameters: {
158
- docs: {
159
- source: {
160
- code: `
161
- <Tile
162
- onLongPress={() => alert('Long press - secondary action triggered!')}
163
- lx={{ maxWidth: 's160' }}
164
- >
165
- <Spot icon={Settings} />
166
- <TileContent>
167
- <TileTitle>Long Press Me</TileTitle>
168
- <TileDescription>Try long pressing this tile</TileDescription>
169
- </TileContent>
170
- </Tile>
171
- `,
172
- },
173
- },
174
- },
175
142
  };
176
143
 
177
144
  export const HorizontalList: Story = {
@@ -14,6 +14,7 @@ const iconOptions = {
14
14
  };
15
15
 
16
16
  const meta = {
17
+ parameters: { docs: { source: { type: 'code' } } },
17
18
  component: TileButton,
18
19
  id: 'rnative-tilebutton',
19
20
  title: 'Core/TileButton',
@@ -37,18 +38,19 @@ export default meta;
37
38
  type Story = StoryObj<typeof TileButton>;
38
39
 
39
40
  export const Base: Story = {
41
+ parameters: {
42
+ docs: { source: { type: 'dynamic' } },
43
+ jsx: {
44
+ functionValue: (fn: unknown) =>
45
+ Object.entries(iconOptions).find(([, icon]) => icon === fn)?.[0] ??
46
+ '() => {}',
47
+ },
48
+ },
40
49
  args: {
41
50
  icon: Settings,
42
51
  children: 'Settings',
43
52
  },
44
53
  render: (args) => <TileButton {...args} />,
45
- parameters: {
46
- docs: {
47
- source: {
48
- code: `<TileButton icon={Settings} onPress={() => {}}>Settings</TileButton>`,
49
- },
50
- },
51
- },
52
54
  };
53
55
 
54
56
  export const AppearanceShowcase: Story = {
@@ -39,7 +39,7 @@ const meta = {
39
39
  source: {
40
40
  language: 'tsx',
41
41
  format: true,
42
- type: 'dynamic',
42
+ type: 'code',
43
43
  },
44
44
  },
45
45
  },
@@ -53,6 +53,7 @@ export const Base: Story = {
53
53
  status: 'idle',
54
54
  },
55
55
  parameters: {
56
+ docs: { source: { type: 'dynamic' } },
56
57
  layout: 'centered',
57
58
  backgrounds: { default: 'light' },
58
59
  },
@@ -93,6 +94,7 @@ export const Base: Story = {
93
94
 
94
95
  export const WithInformative: Story = {
95
96
  parameters: {
97
+ docs: { source: { type: 'dynamic' } },
96
98
  layout: 'centered',
97
99
  backgrounds: { default: 'light' },
98
100
  },
@@ -120,6 +122,7 @@ export const WithInformative: Story = {
120
122
 
121
123
  export const StatusShowcase: Story = {
122
124
  parameters: {
125
+ docs: { source: { type: 'dynamic' } },
123
126
  layout: 'centered',
124
127
  backgrounds: { default: 'light' },
125
128
  },
@@ -129,6 +132,9 @@ export const StatusShowcase: Story = {
129
132
  <TimelineItemHeader>
130
133
  <TimelineItemLeading>
131
134
  <TimelineItemTitle>Payment confirmed</TimelineItemTitle>
135
+ <TimelineItemDescription>
136
+ Confirmed on device
137
+ </TimelineItemDescription>
132
138
  </TimelineItemLeading>
133
139
  </TimelineItemHeader>
134
140
  </TimelineItem>
@@ -146,6 +152,9 @@ export const StatusShowcase: Story = {
146
152
  <TimelineItemHeader>
147
153
  <TimelineItemLeading>
148
154
  <TimelineItemTitle>Rejected</TimelineItemTitle>
155
+ <TimelineItemDescription>
156
+ Insufficient network fees.
157
+ </TimelineItemDescription>
149
158
  </TimelineItemLeading>
150
159
  </TimelineItemHeader>
151
160
  </TimelineItem>
@@ -153,6 +162,9 @@ export const StatusShowcase: Story = {
153
162
  <TimelineItemHeader>
154
163
  <TimelineItemLeading>
155
164
  <TimelineItemTitle>Confirming</TimelineItemTitle>
165
+ <TimelineItemDescription>
166
+ Waiting for confirmations.
167
+ </TimelineItemDescription>
156
168
  </TimelineItemLeading>
157
169
  </TimelineItemHeader>
158
170
  </TimelineItem>
@@ -160,6 +172,9 @@ export const StatusShowcase: Story = {
160
172
  <TimelineItemHeader>
161
173
  <TimelineItemLeading>
162
174
  <TimelineItemTitle>Settled</TimelineItemTitle>
175
+ <TimelineItemDescription>
176
+ Funds are available.
177
+ </TimelineItemDescription>
163
178
  </TimelineItemLeading>
164
179
  </TimelineItemHeader>
165
180
  </TimelineItem>
@@ -181,6 +196,9 @@ export const WithCollapse: Story = {
181
196
  <TimelineItemHeader>
182
197
  <TimelineItemLeading>
183
198
  <TimelineItemTitle>Payment confirmed</TimelineItemTitle>
199
+ <TimelineItemDescription>
200
+ Confirmed on device
201
+ </TimelineItemDescription>
184
202
  </TimelineItemLeading>
185
203
  <TimelineItemTrailing>
186
204
  <IconButton
@@ -217,6 +235,7 @@ export const WithCollapse: Story = {
217
235
 
218
236
  export const ResponsivenessShowcase: Story = {
219
237
  parameters: {
238
+ docs: { source: { type: 'dynamic' } },
220
239
  layout: 'centered',
221
240
  backgrounds: { default: 'light' },
222
241
  },
@@ -195,8 +195,8 @@ describe('Timeline', () => {
195
195
  ),
196
196
  ).toEqual(
197
197
  expect.objectContaining({
198
- width: 20,
199
- height: 20,
198
+ width: 16,
199
+ height: 16,
200
200
  borderWidth: 2,
201
201
  borderColor: colors.border.mutedSubtleHover,
202
202
  }),
@@ -213,7 +213,7 @@ describe('Timeline', () => {
213
213
  </TestWrapper>,
214
214
  );
215
215
 
216
- const outgoing = screen.getByTestId('timeline-line-out', hidden);
216
+ const outgoing = screen.getAllByTestId('timeline-line-out', hidden)[0];
217
217
  const incoming = screen.getAllByTestId('timeline-line-in', hidden)[1];
218
218
 
219
219
  expect(StyleSheet.flatten(outgoing.props.style).backgroundColor).toBe(
@@ -241,9 +241,12 @@ describe('Timeline', () => {
241
241
 
242
242
  expect(StyleSheet.flatten(firstIn.props.style).opacity).toBe(0);
243
243
  expect(StyleSheet.flatten(lastIn.props.style).opacity).not.toBe(0);
244
- expect(screen.getAllByTestId('timeline-line-out', hidden)).toHaveLength(
245
- 1,
244
+ const [firstOut, lastOut] = screen.getAllByTestId(
245
+ 'timeline-line-out',
246
+ hidden,
246
247
  );
248
+ expect(StyleSheet.flatten(firstOut.props.style).opacity).not.toBe(0);
249
+ expect(StyleSheet.flatten(lastOut.props.style).opacity).toBe(0);
247
250
  });
248
251
 
249
252
  it('should position items grouped in a fragment as siblings', () => {
@@ -267,9 +270,10 @@ describe('Timeline', () => {
267
270
  expect(StyleSheet.flatten(firstIn.props.style).opacity).toBe(0);
268
271
  expect(StyleSheet.flatten(secondIn.props.style).opacity).not.toBe(0);
269
272
  expect(StyleSheet.flatten(lastIn.props.style).opacity).not.toBe(0);
270
- expect(screen.getAllByTestId('timeline-line-out', hidden)).toHaveLength(
271
- 2,
272
- );
273
+ const outs = screen.getAllByTestId('timeline-line-out', hidden);
274
+ expect(
275
+ outs.map((o) => StyleSheet.flatten(o.props.style).opacity),
276
+ ).toEqual([undefined, undefined, 0]);
273
277
  });
274
278
  });
275
279
  });