@ledgerhq/lumen-ui-rnative 0.1.68 → 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 (373) 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.js +1 -1
  60. package/dist/module/lib/Components/core/MediaImage/MediaImage.js.map +1 -1
  61. package/dist/module/lib/Components/core/MediaImage/MediaImage.stories.js +1 -1
  62. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.js +215 -0
  63. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.js.map +1 -0
  64. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.js +221 -0
  65. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.js.map +1 -0
  66. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +96 -0
  67. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js +258 -0
  68. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js.map +1 -0
  69. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.test.js +246 -0
  70. package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.test.js.map +1 -0
  71. package/dist/module/lib/Components/core/MediaImageGroup/index.js +5 -0
  72. package/dist/module/lib/Components/core/MediaImageGroup/index.js.map +1 -0
  73. package/dist/module/lib/Components/core/MediaImageGroup/types.js +4 -0
  74. package/dist/module/lib/Components/core/MediaImageGroup/types.js.map +1 -0
  75. package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js +9 -0
  76. package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js.map +1 -1
  77. package/dist/module/lib/Components/core/MenuList/MenuList.mdx +2 -2
  78. package/dist/module/lib/Components/core/MenuList/MenuList.stories.js +17 -1
  79. package/dist/module/lib/Components/core/MenuList/MenuList.stories.js.map +1 -1
  80. package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js +1 -1
  81. package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js.map +1 -1
  82. package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js +56 -50
  83. package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js.map +1 -1
  84. package/dist/module/lib/Components/core/Pagination/Pagination.figma.js +22 -0
  85. package/dist/module/lib/Components/core/Pagination/Pagination.figma.js.map +1 -0
  86. package/dist/module/lib/Components/core/Pagination/Pagination.js +182 -0
  87. package/dist/module/lib/Components/core/Pagination/Pagination.js.map +1 -0
  88. package/dist/module/lib/Components/core/Pagination/Pagination.mdx +108 -0
  89. package/dist/module/lib/Components/core/Pagination/Pagination.stories.js +121 -0
  90. package/dist/module/lib/Components/core/Pagination/Pagination.stories.js.map +1 -0
  91. package/dist/module/lib/Components/core/Pagination/Pagination.test.js +338 -0
  92. package/dist/module/lib/Components/core/Pagination/Pagination.test.js.map +1 -0
  93. package/dist/module/lib/Components/core/Pagination/index.js +4 -0
  94. package/dist/module/lib/Components/core/Pagination/index.js.map +1 -0
  95. package/dist/module/lib/Components/core/Pagination/types.js +4 -0
  96. package/dist/module/lib/Components/core/Pagination/types.js.map +1 -0
  97. package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js +75 -67
  98. package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js.map +1 -1
  99. package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js +12 -0
  100. package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js.map +1 -1
  101. package/dist/module/lib/Components/core/SelectList/SelectList.mdx +3 -1
  102. package/dist/module/lib/Components/core/SelectList/SelectList.stories.js +3 -3
  103. package/dist/module/lib/Components/core/SelectList/SelectList.stories.js.map +1 -1
  104. package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js +7 -0
  105. package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js.map +1 -1
  106. package/dist/module/lib/Components/core/Spinner/Spinner.stories.js +7 -0
  107. package/dist/module/lib/Components/core/Spinner/Spinner.stories.js.map +1 -1
  108. package/dist/module/lib/Components/core/Spot/Spot.stories.js +20 -1
  109. package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
  110. package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +7 -0
  111. package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +1 -1
  112. package/dist/module/lib/Components/core/Subheader/Subheader.stories.js +11 -1
  113. package/dist/module/lib/Components/core/Subheader/Subheader.stories.js.map +1 -1
  114. package/dist/module/lib/Components/core/Switch/Switch.stories.js +21 -1
  115. package/dist/module/lib/Components/core/Switch/Switch.stories.js.map +1 -1
  116. package/dist/module/lib/Components/core/TabBar/TabBar.stories.js +17 -5
  117. package/dist/module/lib/Components/core/TabBar/TabBar.stories.js.map +1 -1
  118. package/dist/module/lib/Components/core/Tag/Tag.stories.js +28 -0
  119. package/dist/module/lib/Components/core/Tag/Tag.stories.js.map +1 -1
  120. package/dist/module/lib/Components/core/TextInput/TextInput.stories.js +159 -196
  121. package/dist/module/lib/Components/core/TextInput/TextInput.stories.js.map +1 -1
  122. package/dist/module/lib/Components/core/TextInput/TextInput.test.js +2 -2
  123. package/dist/module/lib/Components/core/TextInput/TextInput.test.js.map +1 -1
  124. package/dist/module/lib/Components/core/Tile/Tile.stories.js +2 -35
  125. package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
  126. package/dist/module/lib/Components/core/TileButton/TileButton.stories.js +18 -8
  127. package/dist/module/lib/Components/core/TileButton/TileButton.stories.js.map +1 -1
  128. package/dist/module/lib/Components/core/Timeline/Timeline.js +81 -67
  129. package/dist/module/lib/Components/core/Timeline/Timeline.js.map +1 -1
  130. package/dist/module/lib/Components/core/Timeline/Timeline.stories.js +46 -16
  131. package/dist/module/lib/Components/core/Timeline/Timeline.stories.js.map +1 -1
  132. package/dist/module/lib/Components/core/Timeline/Timeline.test.js +8 -5
  133. package/dist/module/lib/Components/core/Timeline/Timeline.test.js.map +1 -1
  134. package/dist/module/lib/Components/core/Toast/Toast.mdx +1 -1
  135. package/dist/module/lib/Components/core/Toast/Toast.stories.js +61 -58
  136. package/dist/module/lib/Components/core/Toast/Toast.stories.js.map +1 -1
  137. package/dist/module/lib/Components/core/Toast/Toaster.test.js +1 -1
  138. package/dist/module/lib/Components/core/Toast/Toaster.test.js.map +1 -1
  139. package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js +31 -2
  140. package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js.map +1 -1
  141. package/dist/module/lib/Components/core/Trend/Trend.stories.js +9 -0
  142. package/dist/module/lib/Components/core/Trend/Trend.stories.js.map +1 -1
  143. package/dist/module/lib/Components/core/index.js +2 -0
  144. package/dist/module/lib/Components/core/index.js.map +1 -1
  145. package/dist/module/lib/Components/internal/BaseButton/BaseButton.js +5 -2
  146. package/dist/module/lib/Components/internal/BaseButton/BaseButton.js.map +1 -1
  147. package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js +1 -1
  148. package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js.map +1 -1
  149. package/dist/module/lib/Components/primitives/Box/Box.stories.js +1 -18
  150. package/dist/module/lib/Components/primitives/Box/Box.stories.js.map +1 -1
  151. package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js +36 -0
  152. package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
  153. package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js +1 -1
  154. package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js +1 -19
  155. package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js.map +1 -1
  156. package/dist/module/lib/Components/primitives/Text/Text.stories.js +1 -12
  157. package/dist/module/lib/Components/primitives/Text/Text.stories.js.map +1 -1
  158. package/dist/module/lib/Components/symbols/Icon/Icon.stories.js +128 -85
  159. package/dist/module/lib/Components/symbols/Icon/Icon.stories.js.map +1 -1
  160. package/dist/module/lib/Components/symbols/icons/Ar.js +2 -2
  161. package/dist/module/lib/Components/symbols/icons/Ar.js.map +1 -1
  162. package/dist/module/lib/Components/symbols/icons/Range.js +1 -1
  163. package/dist/module/lib/Components/symbols/icons/Share.js +1 -1
  164. package/dist/module/lib/Components/symbols/icons/{Charon.js → ShoppingInvoiceList.js} +8 -8
  165. package/dist/module/lib/Components/symbols/icons/ShoppingInvoiceList.js.map +1 -0
  166. package/dist/module/lib/Components/symbols/icons/WalletInput.js +1 -1
  167. package/dist/module/lib/Components/symbols/icons/WalletInput.js.map +1 -1
  168. package/dist/module/lib/Components/symbols/index.js +1 -4
  169. package/dist/module/lib/Components/symbols/index.js.map +1 -1
  170. package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js +1 -1
  171. package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js.map +1 -1
  172. package/dist/module/lib/Components/visualization/Line/utils.js +1 -1
  173. package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js +69 -0
  174. package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js.map +1 -1
  175. package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js +1 -1
  176. package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js.map +1 -1
  177. package/dist/module/lib/Components/visualization/Point/Point.stories.js +12 -0
  178. package/dist/module/lib/Components/visualization/Point/Point.stories.js.map +1 -1
  179. package/dist/module/lib/Components/visualization/Point/Point.test.js +1 -1
  180. package/dist/module/lib/Components/visualization/Point/usePointGeometry.js +1 -1
  181. package/dist/module/lib/Components/visualization/Point/utils.js +1 -1
  182. package/dist/module/lib/Components/visualization/Point/utils.test.js +2 -2
  183. package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js +23 -0
  184. package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js.map +1 -1
  185. package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js +3 -3
  186. package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js.map +1 -1
  187. package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js +35 -0
  188. package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js.map +1 -1
  189. package/dist/module/translations/locales/de.json +7 -0
  190. package/dist/module/translations/locales/en.json +7 -0
  191. package/dist/module/translations/locales/es.json +7 -0
  192. package/dist/module/translations/locales/fr.json +7 -0
  193. package/dist/module/translations/locales/ja.json +7 -0
  194. package/dist/module/translations/locales/ko.json +7 -0
  195. package/dist/module/translations/locales/pt.json +7 -0
  196. package/dist/module/translations/locales/ru.json +7 -0
  197. package/dist/module/translations/locales/th.json +7 -0
  198. package/dist/module/translations/locales/tr.json +7 -0
  199. package/dist/module/translations/locales/zh.json +7 -0
  200. package/dist/typescript/src/lib/Components/core/MediaImage/MediaImage.d.ts +4 -0
  201. package/dist/typescript/src/lib/Components/core/MediaImage/MediaImage.d.ts.map +1 -1
  202. package/dist/typescript/src/lib/Components/core/MediaImageGroup/MediaImageGroup.d.ts +33 -0
  203. package/dist/typescript/src/lib/Components/core/MediaImageGroup/MediaImageGroup.d.ts.map +1 -0
  204. package/dist/typescript/src/lib/Components/core/MediaImageGroup/index.d.ts +3 -0
  205. package/dist/typescript/src/lib/Components/core/MediaImageGroup/index.d.ts.map +1 -0
  206. package/dist/typescript/src/lib/Components/core/MediaImageGroup/types.d.ts +66 -0
  207. package/dist/typescript/src/lib/Components/core/MediaImageGroup/types.d.ts.map +1 -0
  208. package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts +15 -0
  209. package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts.map +1 -0
  210. package/dist/typescript/src/lib/Components/core/Pagination/index.d.ts +3 -0
  211. package/dist/typescript/src/lib/Components/core/Pagination/index.d.ts.map +1 -0
  212. package/dist/typescript/src/lib/Components/core/Pagination/types.d.ts +29 -0
  213. package/dist/typescript/src/lib/Components/core/Pagination/types.d.ts.map +1 -0
  214. package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts +2 -2
  215. package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts.map +1 -1
  216. package/dist/typescript/src/lib/Components/core/index.d.ts +2 -0
  217. package/dist/typescript/src/lib/Components/core/index.d.ts.map +1 -1
  218. package/dist/typescript/src/lib/Components/internal/BaseButton/BaseButton.d.ts.map +1 -1
  219. package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts +1 -1
  220. package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts.map +1 -1
  221. package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts +1 -1
  222. package/dist/typescript/src/lib/Components/symbols/icons/{Charon.d.ts → ShoppingInvoiceList.d.ts} +7 -7
  223. package/dist/typescript/src/lib/Components/symbols/icons/ShoppingInvoiceList.d.ts.map +1 -0
  224. package/dist/typescript/src/lib/Components/symbols/index.d.ts +1 -4
  225. package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
  226. package/dist/typescript/src/lib/Components/visualization/Axis/types.d.ts +1 -1
  227. package/dist/typescript/src/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
  228. package/dist/typescript/src/lib/Components/visualization/Line/utils.d.ts +1 -1
  229. package/dist/typescript/src/lib/Components/visualization/LineChart/types.d.ts +3 -3
  230. package/dist/typescript/src/lib/Components/visualization/Point/types.d.ts +3 -3
  231. package/dist/typescript/src/lib/Components/visualization/Point/usePointGeometry.d.ts +1 -1
  232. package/dist/typescript/src/lib/Components/visualization/Point/utils.d.ts +1 -1
  233. package/dist/typescript/src/translations/translations.d.ts +84 -0
  234. package/dist/typescript/src/translations/translations.d.ts.map +1 -1
  235. package/package.json +9 -9
  236. package/src/lib/Components/animations/Pulse/Pulse.stories.tsx +1 -0
  237. package/src/lib/Components/animations/Spin/Spin.stories.tsx +1 -0
  238. package/src/lib/Components/core/AddressInput/AddressInput.stories.tsx +168 -123
  239. package/src/lib/Components/core/AmountDisplay/AmountDisplay.stories.tsx +7 -7
  240. package/src/lib/Components/core/AmountInput/AmountInput.stories.tsx +162 -158
  241. package/src/lib/Components/core/Avatar/Avatar.stories.tsx +37 -46
  242. package/src/lib/Components/core/AvatarButton/AvatarButton.stories.tsx +1 -8
  243. package/src/lib/Components/core/Banner/Banner.stories.tsx +8 -95
  244. package/src/lib/Components/core/Button/Button.figma.tsx +1 -0
  245. package/src/lib/Components/core/Button/Button.mdx +2 -1
  246. package/src/lib/Components/core/Button/Button.stories.tsx +13 -14
  247. package/src/lib/Components/core/Card/Card.mdx +6 -0
  248. package/src/lib/Components/core/Card/Card.stories.tsx +31 -27
  249. package/src/lib/Components/core/CardButton/CardButton.stories.tsx +14 -90
  250. package/src/lib/Components/core/Checkbox/Checkbox.stories.tsx +1 -1
  251. package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +1 -17
  252. package/src/lib/Components/core/DescriptionItem/DescriptionItem.stories.tsx +4 -0
  253. package/src/lib/Components/core/Divider/Divider.stories.tsx +1 -0
  254. package/src/lib/Components/core/DotCount/DotCount.stories.tsx +4 -0
  255. package/src/lib/Components/core/DotIcon/DotIcon.stories.tsx +8 -0
  256. package/src/lib/Components/core/DotIndicator/DotIndicator.stories.tsx +3 -0
  257. package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +3 -0
  258. package/src/lib/Components/core/IconButton/IconButton.stories.tsx +9 -0
  259. package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.tsx +16 -23
  260. package/src/lib/Components/core/Link/Link.mdx +32 -5
  261. package/src/lib/Components/core/Link/Link.stories.tsx +20 -146
  262. package/src/lib/Components/core/Link/Link.test.tsx +1 -1
  263. package/src/lib/Components/core/Link/Link.tsx +1 -1
  264. package/src/lib/Components/core/ListItem/ListItem.stories.tsx +0 -39
  265. package/src/lib/Components/core/MediaBanner/MediaBanner.stories.tsx +3 -14
  266. package/src/lib/Components/core/MediaButton/MediaButton.stories.tsx +1 -12
  267. package/src/lib/Components/core/MediaCard/MediaCard.stories.tsx +10 -53
  268. package/src/lib/Components/core/MediaImage/MediaImage.stories.tsx +1 -1
  269. package/src/lib/Components/core/MediaImage/MediaImage.tsx +1 -1
  270. package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.tsx +119 -0
  271. package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +96 -0
  272. package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.tsx +154 -0
  273. package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.test.tsx +213 -0
  274. package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.tsx +264 -0
  275. package/src/lib/Components/core/MediaImageGroup/index.ts +2 -0
  276. package/src/lib/Components/core/MediaImageGroup/types.ts +77 -0
  277. package/src/lib/Components/core/MediaTag/MediaTag.stories.tsx +3 -0
  278. package/src/lib/Components/core/MenuList/MenuList.mdx +2 -2
  279. package/src/lib/Components/core/MenuList/MenuList.stories.tsx +13 -1
  280. package/src/lib/Components/core/PageIndicator/PageIndicator.figma.tsx +1 -1
  281. package/src/lib/Components/core/PageIndicator/PageIndicator.stories.tsx +45 -42
  282. package/src/lib/Components/core/Pagination/Pagination.figma.tsx +25 -0
  283. package/src/lib/Components/core/Pagination/Pagination.mdx +108 -0
  284. package/src/lib/Components/core/Pagination/Pagination.stories.tsx +90 -0
  285. package/src/lib/Components/core/Pagination/Pagination.test.tsx +346 -0
  286. package/src/lib/Components/core/Pagination/Pagination.tsx +200 -0
  287. package/src/lib/Components/core/Pagination/index.ts +2 -0
  288. package/src/lib/Components/core/Pagination/types.ts +29 -0
  289. package/src/lib/Components/core/SearchInput/SearchInput.stories.tsx +91 -66
  290. package/src/lib/Components/core/SegmentedControl/SegmentedControl.stories.tsx +2 -0
  291. package/src/lib/Components/core/SelectList/SelectList.mdx +3 -1
  292. package/src/lib/Components/core/SelectList/SelectList.stories.tsx +3 -3
  293. package/src/lib/Components/core/Skeleton/Skeleton.stories.tsx +1 -0
  294. package/src/lib/Components/core/Spinner/Spinner.stories.tsx +1 -0
  295. package/src/lib/Components/core/Spot/Spot.stories.tsx +10 -1
  296. package/src/lib/Components/core/Stepper/Stepper.stories.tsx +1 -0
  297. package/src/lib/Components/core/Subheader/Subheader.stories.tsx +5 -2
  298. package/src/lib/Components/core/Switch/Switch.stories.tsx +17 -1
  299. package/src/lib/Components/core/TabBar/TabBar.stories.tsx +15 -5
  300. package/src/lib/Components/core/Tag/Tag.stories.tsx +4 -0
  301. package/src/lib/Components/core/TextInput/TextInput.stories.tsx +186 -174
  302. package/src/lib/Components/core/TextInput/TextInput.test.tsx +2 -2
  303. package/src/lib/Components/core/Tile/Tile.stories.tsx +0 -33
  304. package/src/lib/Components/core/TileButton/TileButton.stories.tsx +9 -7
  305. package/src/lib/Components/core/Timeline/Timeline.stories.tsx +20 -1
  306. package/src/lib/Components/core/Timeline/Timeline.test.tsx +12 -8
  307. package/src/lib/Components/core/Timeline/Timeline.tsx +79 -75
  308. package/src/lib/Components/core/Toast/Toast.mdx +1 -1
  309. package/src/lib/Components/core/Toast/Toast.stories.tsx +55 -66
  310. package/src/lib/Components/core/Toast/Toaster.test.tsx +1 -1
  311. package/src/lib/Components/core/Tooltip/Tooltip.stories.tsx +7 -3
  312. package/src/lib/Components/core/Trend/Trend.stories.tsx +3 -0
  313. package/src/lib/Components/core/index.ts +2 -0
  314. package/src/lib/Components/internal/BaseButton/BaseButton.test.tsx +1 -0
  315. package/src/lib/Components/internal/BaseButton/BaseButton.tsx +3 -0
  316. package/src/lib/Components/internal/BaseButton/types.ts +2 -1
  317. package/src/lib/Components/internal/BaseInput/types.ts +1 -1
  318. package/src/lib/Components/primitives/Box/Box.stories.tsx +1 -18
  319. package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.tsx +12 -0
  320. package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.tsx +1 -1
  321. package/src/lib/Components/primitives/Pressable/Pressable.stories.tsx +0 -18
  322. package/src/lib/Components/primitives/Text/Text.stories.tsx +1 -12
  323. package/src/lib/Components/symbols/Icon/Icon.stories.tsx +133 -94
  324. package/src/lib/Components/symbols/icons/Ar.tsx +2 -2
  325. package/src/lib/Components/symbols/icons/Range.tsx +1 -1
  326. package/src/lib/Components/symbols/icons/Share.tsx +1 -1
  327. package/src/lib/Components/symbols/icons/{Charon.tsx → ShoppingInvoiceList.tsx} +8 -8
  328. package/src/lib/Components/symbols/icons/WalletInput.tsx +1 -1
  329. package/src/lib/Components/symbols/index.ts +1 -4
  330. package/src/lib/Components/visualization/Axis/types.ts +1 -1
  331. package/src/lib/Components/visualization/CartesianChart/types.ts +1 -1
  332. package/src/lib/Components/visualization/DonutChart/DonutChart.test.tsx +1 -1
  333. package/src/lib/Components/visualization/Line/utils.ts +1 -1
  334. package/src/lib/Components/visualization/LineChart/LineChart.stories.tsx +15 -0
  335. package/src/lib/Components/visualization/LineChart/LineChart.test.tsx +1 -1
  336. package/src/lib/Components/visualization/LineChart/types.ts +3 -3
  337. package/src/lib/Components/visualization/Point/Point.stories.tsx +2 -0
  338. package/src/lib/Components/visualization/Point/Point.test.tsx +1 -1
  339. package/src/lib/Components/visualization/Point/types.ts +3 -3
  340. package/src/lib/Components/visualization/Point/usePointGeometry.ts +1 -1
  341. package/src/lib/Components/visualization/Point/utils.test.ts +2 -2
  342. package/src/lib/Components/visualization/Point/utils.ts +1 -1
  343. package/src/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.tsx +5 -0
  344. package/src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.ts +3 -3
  345. package/src/lib/Components/visualization/Scrubber/Scrubber.stories.tsx +5 -0
  346. package/src/translations/locales/de.json +7 -0
  347. package/src/translations/locales/en.json +7 -0
  348. package/src/translations/locales/es.json +7 -0
  349. package/src/translations/locales/fr.json +7 -0
  350. package/src/translations/locales/ja.json +7 -0
  351. package/src/translations/locales/ko.json +7 -0
  352. package/src/translations/locales/pt.json +7 -0
  353. package/src/translations/locales/ru.json +7 -0
  354. package/src/translations/locales/th.json +7 -0
  355. package/src/translations/locales/tr.json +7 -0
  356. package/src/translations/locales/zh.json +7 -0
  357. package/dist/module/lib/Components/symbols/icons/Apex.js +0 -49
  358. package/dist/module/lib/Components/symbols/icons/Apex.js.map +0 -1
  359. package/dist/module/lib/Components/symbols/icons/BellNotification.js +0 -91
  360. package/dist/module/lib/Components/symbols/icons/BellNotification.js.map +0 -1
  361. package/dist/module/lib/Components/symbols/icons/Charon.js.map +0 -1
  362. package/dist/module/lib/Components/symbols/icons/ShieldCheckNotification.js +0 -82
  363. package/dist/module/lib/Components/symbols/icons/ShieldCheckNotification.js.map +0 -1
  364. package/dist/typescript/src/lib/Components/symbols/icons/Apex.d.ts +0 -35
  365. package/dist/typescript/src/lib/Components/symbols/icons/Apex.d.ts.map +0 -1
  366. package/dist/typescript/src/lib/Components/symbols/icons/BellNotification.d.ts +0 -35
  367. package/dist/typescript/src/lib/Components/symbols/icons/BellNotification.d.ts.map +0 -1
  368. package/dist/typescript/src/lib/Components/symbols/icons/Charon.d.ts.map +0 -1
  369. package/dist/typescript/src/lib/Components/symbols/icons/ShieldCheckNotification.d.ts +0 -35
  370. package/dist/typescript/src/lib/Components/symbols/icons/ShieldCheckNotification.d.ts.map +0 -1
  371. package/src/lib/Components/symbols/icons/Apex.tsx +0 -44
  372. package/src/lib/Components/symbols/icons/BellNotification.tsx +0 -75
  373. package/src/lib/Components/symbols/icons/ShieldCheckNotification.tsx +0 -67
@@ -82,37 +82,31 @@ const useTimelineStyles = () =>
82
82
  position: 'relative',
83
83
  },
84
84
  rail: {
85
- position: 'absolute',
86
- top: 0,
87
- bottom: 0,
88
- start: 0,
89
- width: t.sizes.s32,
85
+ width: t.sizes.s20,
86
+ flexShrink: 0,
87
+ alignSelf: 'stretch',
90
88
  flexDirection: 'column',
91
89
  alignItems: 'center',
90
+ marginVertical: -t.spacings.s8,
92
91
  },
93
92
  line: {
93
+ flex: 1,
94
94
  width: t.borderWidth.s2,
95
95
  backgroundColor: t.colors.border.mutedSubtleHover,
96
96
  },
97
97
  lineIn: {
98
- height: t.sizes.s16,
99
- },
100
- lineInHidden: {
101
- opacity: 0,
102
- },
103
- indicatorSpacer: {
104
- height: t.sizes.s32,
98
+ flex: 0,
105
99
  flexShrink: 0,
100
+ height: t.spacings.s4,
106
101
  },
107
- lineOut: {
108
- flex: 1,
102
+ lineHidden: {
103
+ opacity: 0,
109
104
  },
110
105
  indicator: {
111
- marginTop: t.spacings.s16,
112
- width: t.sizes.s32,
113
- height: t.sizes.s32,
106
+ marginVertical: t.spacings.s4,
107
+ width: t.sizes.s20,
108
+ height: t.sizes.s20,
114
109
  flexShrink: 0,
115
- alignSelf: 'flex-start',
116
110
  alignItems: 'center',
117
111
  justifyContent: 'center',
118
112
  },
@@ -123,17 +117,17 @@ const useTimelineStyles = () =>
123
117
  backgroundColor: t.colors.bg.mutedPressed,
124
118
  },
125
119
  idleRing: {
126
- width: t.sizes.s20,
127
- height: t.sizes.s20,
120
+ width: t.sizes.s16,
121
+ height: t.sizes.s16,
128
122
  borderRadius: t.borderRadius.full,
129
123
  borderWidth: t.borderWidth.s2,
130
124
  borderColor: t.colors.border.mutedSubtleHover,
131
125
  },
132
126
  header: {
133
127
  flexDirection: 'row',
134
- alignItems: 'center',
135
- minHeight: t.sizes.s64,
128
+ alignItems: 'flex-start',
136
129
  minWidth: 0,
130
+ paddingVertical: t.spacings.s8,
137
131
  gap: t.spacings.s8,
138
132
  },
139
133
  leading: {
@@ -171,10 +165,18 @@ const useTimelineStyles = () =>
171
165
  alignItems: 'flex-end',
172
166
  },
173
167
  body: {
174
- marginStart: t.spacings.s40,
168
+ flexDirection: 'row',
169
+ gap: t.spacings.s8,
170
+ },
171
+ bodyLine: {
172
+ width: t.sizes.s20,
173
+ flexShrink: 0,
174
+ alignItems: 'center',
175
+ },
176
+ bodyContent: {
177
+ flex: 1,
175
178
  minWidth: 0,
176
- paddingTop: t.spacings.s8,
177
- paddingBottom: t.spacings.s12,
179
+ paddingBottom: t.spacings.s8,
178
180
  },
179
181
  }),
180
182
  [],
@@ -195,15 +197,19 @@ const useTitleStyles = (muted: boolean) =>
195
197
  [muted],
196
198
  );
197
199
 
198
- const TimelineIndicator = ({ status }: { status?: TimelineItemStatus }) => {
200
+ const TimelineRail = ({ status }: { status?: TimelineItemStatus }) => {
199
201
  const styles = useTimelineStyles();
202
+ const { isFirst, isLast } = useTimelinePosition({
203
+ consumerName: 'TimelineItem',
204
+ contextRequired: false,
205
+ });
200
206
  const decorative = status !== 'loading';
201
207
  const indicatorByStatus = {
202
208
  success: (
203
209
  <CheckmarkCircleFill
204
210
  accessible={false}
205
211
  color='success'
206
- size={24}
212
+ size={20}
207
213
  testID='timeline-indicator-success'
208
214
  />
209
215
  ),
@@ -211,7 +217,7 @@ const TimelineIndicator = ({ status }: { status?: TimelineItemStatus }) => {
211
217
  <DeleteCircleFill
212
218
  accessible={false}
213
219
  color='error'
214
- size={24}
220
+ size={20}
215
221
  testID='timeline-indicator-error'
216
222
  />
217
223
  ),
@@ -219,12 +225,12 @@ const TimelineIndicator = ({ status }: { status?: TimelineItemStatus }) => {
219
225
  <ClockFill
220
226
  accessible={false}
221
227
  color='muted'
222
- size={24}
228
+ size={20}
223
229
  testID='timeline-indicator-pending'
224
230
  />
225
231
  ),
226
232
  loading: (
227
- <Spinner color='muted' size={24} testID='timeline-indicator-loading' />
233
+ <Spinner color='muted' size={20} testID='timeline-indicator-loading' />
228
234
  ),
229
235
  idle: (
230
236
  <Box
@@ -236,53 +242,38 @@ const TimelineIndicator = ({ status }: { status?: TimelineItemStatus }) => {
236
242
  } satisfies Record<TimelineItemStatus, ReactElement>;
237
243
 
238
244
  return (
239
- <Box
240
- accessibilityElementsHidden={decorative}
241
- importantForAccessibility={decorative ? 'no-hide-descendants' : 'auto'}
242
- style={styles.indicator}
243
- >
244
- {status ? (
245
- indicatorByStatus[status]
246
- ) : (
247
- <Box
248
- accessible={false}
249
- style={styles.neutralDot}
250
- testID='timeline-indicator-neutral'
251
- />
252
- )}
253
- </Box>
254
- );
255
- };
256
-
257
- const TimelineRail = () => {
258
- const styles = useTimelineStyles();
259
- const { isFirst, isLast } = useTimelinePosition({
260
- consumerName: 'TimelineItem',
261
- contextRequired: false,
262
- });
263
-
264
- return (
265
- <Box
266
- accessibilityElementsHidden
267
- importantForAccessibility='no-hide-descendants'
268
- pointerEvents='none'
269
- style={styles.rail}
270
- >
245
+ <Box style={styles.rail}>
271
246
  <Box
247
+ accessibilityElementsHidden
248
+ importantForAccessibility='no-hide-descendants'
272
249
  style={StyleSheet.flatten([
273
250
  styles.line,
274
251
  styles.lineIn,
275
- isFirst && styles.lineInHidden,
252
+ isFirst && styles.lineHidden,
276
253
  ])}
277
254
  testID='timeline-line-in'
278
255
  />
279
- <Box style={styles.indicatorSpacer} />
280
- {!isLast && (
281
- <Box
282
- style={StyleSheet.flatten([styles.line, styles.lineOut])}
283
- testID='timeline-line-out'
284
- />
285
- )}
256
+ <Box
257
+ accessibilityElementsHidden={decorative}
258
+ importantForAccessibility={decorative ? 'no-hide-descendants' : 'auto'}
259
+ style={styles.indicator}
260
+ >
261
+ {status ? (
262
+ indicatorByStatus[status]
263
+ ) : (
264
+ <Box
265
+ accessible={false}
266
+ style={styles.neutralDot}
267
+ testID='timeline-indicator-neutral'
268
+ />
269
+ )}
270
+ </Box>
271
+ <Box
272
+ accessibilityElementsHidden
273
+ importantForAccessibility='no-hide-descendants'
274
+ style={StyleSheet.flatten([styles.line, isLast && styles.lineHidden])}
275
+ testID='timeline-line-out'
276
+ />
286
277
  </Box>
287
278
  );
288
279
  };
@@ -337,7 +328,7 @@ export const Timeline = ({
337
328
 
338
329
  /**
339
330
  * One row of a timeline. Draws the indicator from `status` and the connector
340
- * to the neighbouring items.
331
+ * to the neighboring items.
341
332
  */
342
333
  export const TimelineItem = ({
343
334
  ref,
@@ -358,7 +349,6 @@ export const TimelineItem = ({
358
349
  testID='timeline-item'
359
350
  {...props}
360
351
  >
361
- <TimelineRail />
362
352
  {children}
363
353
  </Box>
364
354
  </TimelineItemProvider>
@@ -388,7 +378,7 @@ export const TimelineItemHeader = ({
388
378
  style={StyleSheet.flatten([styles.header, style])}
389
379
  {...props}
390
380
  >
391
- <TimelineIndicator status={status} />
381
+ <TimelineRail status={status} />
392
382
  {children}
393
383
  </Box>
394
384
  );
@@ -552,7 +542,7 @@ export const TimelineItemTrailing = ({
552
542
  };
553
543
 
554
544
  /**
555
- * Block under the header, indented past the indicator.
545
+ * Block under the header, aligned with the header text.
556
546
  */
557
547
  export const TimelineItemBody = ({
558
548
  ref,
@@ -562,6 +552,10 @@ export const TimelineItemBody = ({
562
552
  ...props
563
553
  }: TimelineItemBodyProps) => {
564
554
  const styles = useTimelineStyles();
555
+ const { isLast } = useTimelinePosition({
556
+ consumerName: 'TimelineItem',
557
+ contextRequired: false,
558
+ });
565
559
 
566
560
  return (
567
561
  <Box
@@ -570,7 +564,17 @@ export const TimelineItemBody = ({
570
564
  style={StyleSheet.flatten([styles.body, style])}
571
565
  {...props}
572
566
  >
573
- {isTextChildren(children) ? <Text>{children}</Text> : children}
567
+ <Box
568
+ accessibilityElementsHidden
569
+ importantForAccessibility='no-hide-descendants'
570
+ pointerEvents='none'
571
+ style={styles.bodyLine}
572
+ >
573
+ {!isLast && <Box style={styles.line} />}
574
+ </Box>
575
+ <Box style={styles.bodyContent}>
576
+ {isTextChildren(children) ? <Text>{children}</Text> : children}
577
+ </Box>
574
578
  </Box>
575
579
  );
576
580
  };
@@ -123,7 +123,7 @@ of entering from the edge.
123
123
  assertively. Android TalkBack reads the surface's `accessibilityLiveRegion`;
124
124
  iOS VoiceOver has no live regions, so `Toaster` posts the title as an
125
125
  announcement, interrupting current speech only for warning and error.
126
- - Screen readers capture swipes, so each toast is a single element labelled by
126
+ - Screen readers capture swipes, so each toast is a single element labeled by
127
127
  its title, with dismissal and the action exposed as accessibility actions
128
128
  (VoiceOver rotor, TalkBack actions menu). On iOS the two-finger escape scrub
129
129
  also dismisses.
@@ -55,7 +55,7 @@ const meta = {
55
55
  source: {
56
56
  language: 'tsx',
57
57
  format: true,
58
- type: 'dynamic',
58
+ type: 'code',
59
59
  },
60
60
  },
61
61
  },
@@ -159,91 +159,80 @@ export const WithDuration: Story = {
159
159
  ),
160
160
  };
161
161
 
162
- const DismissDemo = () => {
163
- const [id, setId] = useState<string | null>(null);
164
-
165
- return (
166
- <Button
167
- appearance='base'
168
- onPress={() => {
169
- if (id === null) {
170
- const next = toast.error({ title: 'Unable to save' });
171
- setId(next.id);
172
- return;
173
- }
174
- toast.dismiss(id);
175
- setId(null);
176
- }}
177
- >
178
- {id === null ? 'Show toast' : 'Hide toast'}
179
- </Button>
180
- );
181
- };
182
-
183
162
  export const WithDismiss: Story = {
184
- render: () => (
185
- <SafeAreaProvider>
186
- <Toaster />
187
- <DismissDemo />
188
- </SafeAreaProvider>
189
- ),
190
- };
163
+ render: () => {
164
+ const [id, setId] = useState<string | null>(null);
191
165
 
192
- const UpdateDemo = () => (
193
- <Button
194
- appearance='base'
195
- onPress={() => {
196
- const { id } = toast.loading({ title: 'Uploading…' });
197
- setTimeout(() => {
198
- toast.update(id, {
199
- appearance: 'success',
200
- loading: false,
201
- title: 'Upload complete',
202
- });
203
- }, 2000);
204
- }}
205
- >
206
- Upload file
207
- </Button>
208
- );
166
+ return (
167
+ <SafeAreaProvider>
168
+ <Toaster />
169
+ <Button
170
+ appearance='base'
171
+ onPress={() => {
172
+ if (id === null) {
173
+ const next = toast.error({ title: 'Unable to save' });
174
+ setId(next.id);
175
+ return;
176
+ }
177
+ toast.dismiss(id);
178
+ setId(null);
179
+ }}
180
+ >
181
+ {id === null ? 'Show toast' : 'Hide toast'}
182
+ </Button>
183
+ </SafeAreaProvider>
184
+ );
185
+ },
186
+ };
209
187
 
210
188
  export const WithUpdate: Story = {
211
189
  render: () => (
212
190
  <SafeAreaProvider>
213
191
  <Toaster />
214
- <UpdateDemo />
192
+ <Button
193
+ appearance='base'
194
+ onPress={() => {
195
+ const { id } = toast.loading({ title: 'Uploading…' });
196
+ setTimeout(() => {
197
+ toast.update(id, {
198
+ appearance: 'success',
199
+ loading: false,
200
+ title: 'Upload complete',
201
+ });
202
+ }, 2000);
203
+ }}
204
+ >
205
+ Upload file
206
+ </Button>
215
207
  </SafeAreaProvider>
216
208
  ),
217
209
  };
218
210
 
219
- const simulateSaveProfile = () =>
220
- new Promise<void>((resolve) => setTimeout(resolve, 2000));
221
-
222
- const PromiseDemo = () => (
223
- <Button
224
- appearance='base'
225
- onPress={() =>
226
- toast.promise(simulateSaveProfile(), {
227
- loading: { title: 'Saving…' },
228
- success: { title: 'Profile saved' },
229
- error: { title: 'Could not save' },
230
- })
231
- }
232
- >
233
- Save profile
234
- </Button>
235
- );
236
-
237
211
  export const WithPromise: Story = {
238
212
  render: () => (
239
213
  <SafeAreaProvider>
240
214
  <Toaster />
241
- <PromiseDemo />
215
+ <Button
216
+ appearance='base'
217
+ onPress={() =>
218
+ toast.promise(
219
+ new Promise<void>((resolve) => setTimeout(resolve, 2000)),
220
+ {
221
+ loading: { title: 'Saving…' },
222
+ success: { title: 'Profile saved' },
223
+ error: { title: 'Could not save' },
224
+ },
225
+ )
226
+ }
227
+ >
228
+ Save profile
229
+ </Button>
242
230
  </SafeAreaProvider>
243
231
  ),
244
232
  };
245
233
 
246
234
  export const AppearanceShowcase: Story = {
235
+ parameters: { docs: { source: { type: 'dynamic' } } },
247
236
  render: () => (
248
237
  <Box lx={{ flexDirection: 'column', gap: 's8', width: 's400' }}>
249
238
  <Toast appearance='info' title='Your transaction was sent' />
@@ -431,7 +431,7 @@ describe('Toaster', () => {
431
431
  jest.useRealTimers();
432
432
  });
433
433
 
434
- it('should expose the toast as one element labelled by its title', () => {
434
+ it('should expose the toast as one element labeled by its title', () => {
435
435
  renderToaster();
436
436
  act(() => {
437
437
  toast.info({ title: 'Saved' });
@@ -8,6 +8,7 @@ import { GlobalTooltipBottomSheet } from './GlobalTooltipBottomSheet';
8
8
  import { Tooltip, TooltipTrigger, TooltipContent } from './Tooltip';
9
9
 
10
10
  const meta = {
11
+ parameters: { docs: { source: { type: 'code' } } },
11
12
  component: Tooltip,
12
13
  subcomponents: { TooltipTrigger, TooltipContent },
13
14
  id: 'rnative-tooltip',
@@ -19,10 +20,11 @@ export default meta;
19
20
  type Story = StoryObj<typeof Tooltip>;
20
21
 
21
22
  export const Base: Story = {
23
+ parameters: { docs: { source: { type: 'dynamic' } } },
22
24
  args: {
23
- children: null,
25
+ onOpenChange: () => {},
24
26
  },
25
- render: () => (
27
+ render: (args) => (
26
28
  <>
27
29
  <Box
28
30
  lx={{
@@ -32,7 +34,7 @@ export const Base: Story = {
32
34
  padding: 's24',
33
35
  }}
34
36
  >
35
- <Tooltip>
37
+ <Tooltip {...args}>
36
38
  <TooltipTrigger asChild>
37
39
  <Button>Press me</Button>
38
40
  </TooltipTrigger>
@@ -48,6 +50,7 @@ export const Base: Story = {
48
50
  };
49
51
 
50
52
  export const WithCustomContent: Story = {
53
+ parameters: { docs: { source: { type: 'dynamic' } } },
51
54
  args: {
52
55
  children: null,
53
56
  },
@@ -144,6 +147,7 @@ export const WithMultipleTooltips: Story = {
144
147
  };
145
148
 
146
149
  export const WithChangeCallback: Story = {
150
+ parameters: { docs: { source: { type: 'dynamic' } } },
147
151
  args: {
148
152
  children: null,
149
153
  },
@@ -3,6 +3,9 @@ import { Box } from '../../primitives/Box';
3
3
  import { Trend } from './Trend';
4
4
 
5
5
  const meta = {
6
+ parameters: {
7
+ docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
8
+ },
6
9
  component: Trend,
7
10
  id: 'rnative-trend',
8
11
  title: 'Core/Trend',
@@ -24,10 +24,12 @@ export * from './MediaBanner';
24
24
  export * from './MediaButton';
25
25
  export * from './MediaCard';
26
26
  export * from './MediaImage';
27
+ export * from './MediaImageGroup';
27
28
  export * from './MediaTag';
28
29
  export * from './MenuList';
29
30
  export * from './NavBar';
30
31
  export * from './PageIndicator';
32
+ export * from './Pagination';
31
33
  export * from './SearchInput';
32
34
  export * from './SectionHeader';
33
35
  export * from './SegmentedControl';
@@ -34,6 +34,7 @@ describe('BaseButton Component', () => {
34
34
  'transparent',
35
35
  'no-background',
36
36
  'red',
37
+ 'green',
37
38
  ] as const)('should render with %s appearance', (appearance) => {
38
39
  renderWithProvider(
39
40
  <BaseButton testID='button' appearance={appearance}>
@@ -56,6 +56,7 @@ const useStyles = ({
56
56
  transparent: t.colors.bg.mutedTransparent,
57
57
  'no-background': 'transparent',
58
58
  red: t.colors.bg.errorTransparent,
59
+ green: t.colors.bg.successTransparent,
59
60
  };
60
61
 
61
62
  const pressedBgColors: Record<Appearance, string> = {
@@ -65,12 +66,14 @@ const useStyles = ({
65
66
  transparent: t.colors.bg.mutedTransparentPressed,
66
67
  'no-background': t.colors.bg.baseTransparentPressed,
67
68
  red: t.colors.bg.errorTransparentPressed,
69
+ green: t.colors.bg.successTransparentPressed,
68
70
  };
69
71
 
70
72
  const textColors: Record<Appearance, string> = {
71
73
  base: t.colors.text.onInteractive,
72
74
  accent: t.colors.text.onAccent,
73
75
  red: t.colors.text.error,
76
+ green: t.colors.text.success,
74
77
  gray: t.colors.text.base,
75
78
  'no-background': t.colors.text.base,
76
79
  transparent: t.colors.text.base,
@@ -13,7 +13,8 @@ export type BaseButtonProps = {
13
13
  | 'accent'
14
14
  | 'transparent'
15
15
  | 'no-background'
16
- | 'red';
16
+ | 'red'
17
+ | 'green';
17
18
  /**
18
19
  * The size variant of the button.
19
20
  * @default md
@@ -110,7 +110,7 @@ export type BaseInputLabelProps = {
110
110
  */
111
111
  showClearButton: boolean;
112
112
  /**
113
- * Whether the input is editable, driving the disabled label colour.
113
+ * Whether the input is editable, driving the disabled label color.
114
114
  */
115
115
  isEditable: boolean;
116
116
  /**
@@ -10,7 +10,7 @@ const meta = {
10
10
  source: {
11
11
  language: 'tsx',
12
12
  format: true,
13
- type: 'code',
13
+ type: 'dynamic',
14
14
  },
15
15
  },
16
16
  },
@@ -28,21 +28,4 @@ export const Base: Story = {
28
28
  borderRadius: 'md',
29
29
  },
30
30
  },
31
- parameters: {
32
- docs: {
33
- source: {
34
- code: `
35
- <Box
36
- lx={{
37
- height: 's48',
38
- width: 's48',
39
- backgroundColor: 'accent',
40
- borderRadius: 'md',
41
- alignSelf: 'center',
42
- }}
43
- />
44
- `,
45
- },
46
- },
47
- },
48
31
  };
@@ -25,6 +25,9 @@ export default meta;
25
25
  type Story = StoryObj<typeof LinearGradient>;
26
26
 
27
27
  export const Base: Story = {
28
+ parameters: {
29
+ docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
30
+ },
28
31
  args: {
29
32
  direction: 'to-bottom',
30
33
  stops: [{ color: 'accent' }, { color: 'active', opacity: 0 }],
@@ -37,6 +40,9 @@ export const Base: Story = {
37
40
  };
38
41
 
39
42
  export const DirectionShowcase: Story = {
43
+ parameters: {
44
+ docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
45
+ },
40
46
  args: {
41
47
  stops: [{ color: 'accent' }, { color: 'active', opacity: 0 }],
42
48
  },
@@ -78,6 +84,9 @@ export const DirectionShowcase: Story = {
78
84
  };
79
85
 
80
86
  export const WithChildren: Story = {
87
+ parameters: {
88
+ docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
89
+ },
81
90
  args: {
82
91
  direction: 'to-bottomright',
83
92
  stops: [{ color: 'accent' }, { color: 'active', opacity: 0, offset: 0.75 }],
@@ -104,6 +113,9 @@ export const WithChildren: Story = {
104
113
  };
105
114
 
106
115
  export const WithMultipleStops: Story = {
116
+ parameters: {
117
+ docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
118
+ },
107
119
  args: {
108
120
  direction: 'to-right',
109
121
  stops: [
@@ -14,7 +14,7 @@ const meta = {
14
14
  source: {
15
15
  language: 'tsx',
16
16
  format: true,
17
- type: 'code',
17
+ type: 'dynamic',
18
18
  },
19
19
  },
20
20
  },
@@ -31,22 +31,4 @@ export const Base: Story = {
31
31
  style: ({ pressed }) => ({ opacity: pressed ? 0.5 : 1 }),
32
32
  },
33
33
  render: (args) => <Pressable {...args} />,
34
- parameters: {
35
- docs: {
36
- source: {
37
- code: `
38
- <Pressable
39
- style={({ pressed }) => ({ opacity: pressed ? 0.5 : 1 })}
40
- lx={{
41
- height: 's48',
42
- width: 's48',
43
- backgroundColor: 'accent',
44
- borderRadius: 'md',
45
- alignSelf: 'center',
46
- }}
47
- />
48
- `,
49
- },
50
- },
51
- },
52
34
  };