@ledgerhq/lumen-ui-rnative 0.1.65 → 0.1.67

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 (304) hide show
  1. package/dist/module/index.js +1 -1
  2. package/dist/module/index.js.map +1 -1
  3. package/dist/module/lib/Components/core/AddressInput/AddressInput.js +1 -1
  4. package/dist/module/lib/Components/core/AddressInput/AddressInput.js.map +1 -1
  5. package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
  6. package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.js.map +1 -1
  7. package/dist/module/lib/Components/core/AmountInput/AmountInput.js +1 -1
  8. package/dist/module/lib/Components/core/AmountInput/AmountInput.js.map +1 -1
  9. package/dist/module/lib/Components/core/Avatar/Avatar.js +1 -1
  10. package/dist/module/lib/Components/core/Avatar/Avatar.js.map +1 -1
  11. package/dist/module/lib/Components/core/Banner/Banner.js +1 -1
  12. package/dist/module/lib/Components/core/Banner/Banner.js.map +1 -1
  13. package/dist/module/lib/Components/core/BottomSheet/BottomSheet.stories.js +6 -3
  14. package/dist/module/lib/Components/core/BottomSheet/BottomSheet.stories.js.map +1 -1
  15. package/dist/module/lib/Components/core/BottomSheet/BottomSheetHeader.js +1 -1
  16. package/dist/module/lib/Components/core/BottomSheet/BottomSheetHeader.js.map +1 -1
  17. package/dist/module/lib/Components/core/Card/Card.figma.js +0 -1
  18. package/dist/module/lib/Components/core/Card/Card.figma.js.map +1 -1
  19. package/dist/module/lib/Components/core/Card/Card.stories.js +0 -2
  20. package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
  21. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.figma.js +0 -1
  22. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.figma.js.map +1 -1
  23. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.js +2 -2
  24. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.js.map +1 -1
  25. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.mdx +4 -4
  26. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +1 -9
  27. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +1 -1
  28. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.test.js +0 -1
  29. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.test.js.map +1 -1
  30. package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js +0 -5
  31. package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js.map +1 -1
  32. package/dist/module/lib/Components/core/ListItem/ListItem.figma.js +0 -1
  33. package/dist/module/lib/Components/core/ListItem/ListItem.figma.js.map +1 -1
  34. package/dist/module/lib/Components/core/ListItem/ListItem.js +1 -1
  35. package/dist/module/lib/Components/core/ListItem/ListItem.mdx +10 -10
  36. package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +2 -29
  37. package/dist/module/lib/Components/core/ListItem/ListItem.stories.js.map +1 -1
  38. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.js +1 -1
  39. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.js.map +1 -1
  40. package/dist/module/lib/Components/core/MediaCard/MediaCard.js +1 -1
  41. package/dist/module/lib/Components/core/MediaCard/MediaCard.js.map +1 -1
  42. package/dist/module/lib/Components/core/NavBar/NavBar.js +1 -1
  43. package/dist/module/lib/Components/core/NavBar/NavBar.js.map +1 -1
  44. package/dist/module/lib/Components/core/SelectList/SelectList.mdx +1 -1
  45. package/dist/module/lib/Components/core/SelectList/SelectList.stories.js +0 -1
  46. package/dist/module/lib/Components/core/SelectList/SelectList.stories.js.map +1 -1
  47. package/dist/module/lib/Components/core/Spinner/Spinner.js +1 -1
  48. package/dist/module/lib/Components/core/Spinner/Spinner.js.map +1 -1
  49. package/dist/module/lib/Components/core/Spot/Spot.figma.js +31 -16
  50. package/dist/module/lib/Components/core/Spot/Spot.figma.js.map +1 -1
  51. package/dist/module/lib/Components/core/Spot/Spot.js +24 -146
  52. package/dist/module/lib/Components/core/Spot/Spot.js.map +1 -1
  53. package/dist/module/lib/Components/core/Spot/Spot.mdx +47 -108
  54. package/dist/module/lib/Components/core/Spot/Spot.stories.js +108 -215
  55. package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
  56. package/dist/module/lib/Components/core/Spot/Spot.test.js +61 -0
  57. package/dist/module/lib/Components/core/Spot/Spot.test.js.map +1 -0
  58. package/dist/module/lib/Components/core/Spot/SpotNumber.js +56 -0
  59. package/dist/module/lib/Components/core/Spot/SpotNumber.js.map +1 -0
  60. package/dist/module/lib/Components/core/Spot/SpotNumber.test.js +72 -0
  61. package/dist/module/lib/Components/core/Spot/SpotNumber.test.js.map +1 -0
  62. package/dist/module/lib/Components/core/Spot/index.js +1 -0
  63. package/dist/module/lib/Components/core/Spot/index.js.map +1 -1
  64. package/dist/module/lib/Components/core/Spot/useSpotStyles.js +93 -0
  65. package/dist/module/lib/Components/core/Spot/useSpotStyles.js.map +1 -0
  66. package/dist/module/lib/Components/core/Stepper/Stepper.js +1 -1
  67. package/dist/module/lib/Components/core/Stepper/Stepper.js.map +1 -1
  68. package/dist/module/lib/Components/core/Subheader/Subheader.js +5 -1
  69. package/dist/module/lib/Components/core/Subheader/Subheader.js.map +1 -1
  70. package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.js +2 -2
  71. package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.js.map +1 -1
  72. package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.test.js +9 -1
  73. package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.test.js.map +1 -1
  74. package/dist/module/lib/Components/core/Tile/Tile.figma.js +0 -1
  75. package/dist/module/lib/Components/core/Tile/Tile.figma.js.map +1 -1
  76. package/dist/module/lib/Components/core/Tile/Tile.js +3 -3
  77. package/dist/module/lib/Components/core/Tile/Tile.mdx +8 -8
  78. package/dist/module/lib/Components/core/Tile/Tile.stories.js +7 -25
  79. package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
  80. package/dist/module/lib/Components/core/Toast/hooks/useToastAccessibility.js +1 -1
  81. package/dist/module/lib/Components/core/Toast/hooks/useToastAccessibility.js.map +1 -1
  82. package/dist/module/lib/Components/core/Trend/Trend.js +1 -1
  83. package/dist/module/lib/Components/core/Trend/Trend.js.map +1 -1
  84. package/dist/module/lib/Components/internal/BaseInput/BaseInput.js +1 -1
  85. package/dist/module/lib/Components/internal/BaseInput/BaseInput.js.map +1 -1
  86. package/dist/module/lib/Components/symbols/icons/AiBubble.js +60 -0
  87. package/dist/module/lib/Components/symbols/icons/AiBubble.js.map +1 -0
  88. package/dist/module/lib/Components/symbols/icons/ArrowBottomLeft.js +49 -0
  89. package/dist/module/lib/Components/symbols/icons/ArrowBottomLeft.js.map +1 -0
  90. package/dist/module/lib/Components/symbols/icons/Bug.js +1 -1
  91. package/dist/module/lib/Components/symbols/icons/Bug.js.map +1 -1
  92. package/dist/module/lib/Components/symbols/icons/Hourglass.js +49 -0
  93. package/dist/module/lib/Components/symbols/icons/Hourglass.js.map +1 -0
  94. package/dist/module/lib/Components/symbols/icons/Repeat.js +49 -0
  95. package/dist/module/lib/Components/symbols/icons/Repeat.js.map +1 -0
  96. package/dist/module/lib/Components/symbols/icons/Robot.js +57 -0
  97. package/dist/module/lib/Components/symbols/icons/Robot.js.map +1 -0
  98. package/dist/module/lib/Components/symbols/icons/Switch.js +11 -5
  99. package/dist/module/lib/Components/symbols/icons/Switch.js.map +1 -1
  100. package/dist/module/lib/Components/symbols/icons/Wifi.js +52 -0
  101. package/dist/module/lib/Components/symbols/icons/Wifi.js.map +1 -0
  102. package/dist/module/lib/Components/symbols/index.js +6 -0
  103. package/dist/module/lib/Components/symbols/index.js.map +1 -1
  104. package/dist/module/lib/Components/visualization/CartesianChart/CartesianChart.js +6 -2
  105. package/dist/module/lib/Components/visualization/CartesianChart/CartesianChart.js.map +1 -1
  106. package/dist/module/lib/Components/visualization/DonutChart/DonutChart.js +8 -4
  107. package/dist/module/lib/Components/visualization/DonutChart/DonutChart.js.map +1 -1
  108. package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js +1 -1
  109. package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js.map +1 -1
  110. package/dist/module/lib/Components/visualization/DonutChart/DonutRing.js +12 -3
  111. package/dist/module/lib/Components/visualization/DonutChart/DonutRing.js.map +1 -1
  112. package/dist/module/lib/Components/visualization/Legend/Legend.js +1 -1
  113. package/dist/module/lib/Components/visualization/Legend/Legend.js.map +1 -1
  114. package/dist/module/lib/Components/visualization/Legend/Legend.test.js +12 -8
  115. package/dist/module/lib/Components/visualization/Legend/Legend.test.js.map +1 -1
  116. package/dist/module/lib/Components/visualization/LineChart/LineChart.js +8 -2
  117. package/dist/module/lib/Components/visualization/LineChart/LineChart.js.map +1 -1
  118. package/dist/module/lib/Components/visualization/LineChart/utils.js +3 -2
  119. package/dist/module/lib/Components/visualization/LineChart/utils.js.map +1 -1
  120. package/dist/module/lib/Components/visualization/LineChart/utils.test.js +8 -4
  121. package/dist/module/lib/Components/visualization/LineChart/utils.test.js.map +1 -1
  122. package/dist/module/lib/Components/visualization/config.js +1 -4
  123. package/dist/module/lib/Components/visualization/config.js.map +1 -1
  124. package/dist/module/translations/index.js +5 -0
  125. package/dist/module/translations/index.js.map +1 -0
  126. package/dist/module/{i18n → translations}/languages.js +0 -6
  127. package/dist/module/translations/languages.js.map +1 -0
  128. package/dist/module/{i18n → translations}/locales/de.json +0 -3
  129. package/{src/i18n → dist/module/translations}/locales/en.json +9 -3
  130. package/{src/i18n → dist/module/translations}/locales/es.json +0 -3
  131. package/dist/module/{i18n → translations}/locales/fr.json +0 -3
  132. package/{src/i18n → dist/module/translations}/locales/ja.json +0 -3
  133. package/dist/module/{i18n → translations}/locales/ko.json +0 -3
  134. package/dist/module/{i18n → translations}/locales/pt.json +0 -3
  135. package/dist/module/{i18n → translations}/locales/ru.json +0 -3
  136. package/dist/module/{i18n → translations}/locales/th.json +0 -3
  137. package/dist/module/{i18n → translations}/locales/tr.json +0 -3
  138. package/{src/i18n → dist/module/translations}/locales/zh.json +0 -3
  139. package/dist/module/translations/translations.js +36 -0
  140. package/dist/module/translations/translations.js.map +1 -0
  141. package/dist/module/translations/translations.test.js +34 -0
  142. package/dist/module/translations/translations.test.js.map +1 -0
  143. package/dist/typescript/src/index.d.ts +1 -1
  144. package/dist/typescript/src/index.d.ts.map +1 -1
  145. package/dist/typescript/src/lib/Components/core/ContentBanner/ContentBanner.d.ts +1 -1
  146. package/dist/typescript/src/lib/Components/core/ListItem/ListItem.d.ts +1 -1
  147. package/dist/typescript/src/lib/Components/core/Spot/Spot.d.ts +7 -25
  148. package/dist/typescript/src/lib/Components/core/Spot/Spot.d.ts.map +1 -1
  149. package/dist/typescript/src/lib/Components/core/Spot/SpotNumber.d.ts +16 -0
  150. package/dist/typescript/src/lib/Components/core/Spot/SpotNumber.d.ts.map +1 -0
  151. package/dist/typescript/src/lib/Components/core/Spot/index.d.ts +1 -0
  152. package/dist/typescript/src/lib/Components/core/Spot/index.d.ts.map +1 -1
  153. package/dist/typescript/src/lib/Components/core/Spot/types.d.ts +29 -29
  154. package/dist/typescript/src/lib/Components/core/Spot/types.d.ts.map +1 -1
  155. package/dist/typescript/src/lib/Components/core/Spot/useSpotStyles.d.ts +14 -0
  156. package/dist/typescript/src/lib/Components/core/Spot/useSpotStyles.d.ts.map +1 -0
  157. package/dist/typescript/src/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
  158. package/dist/typescript/src/lib/Components/core/ThemeProvider/types.d.ts +1 -1
  159. package/dist/typescript/src/lib/Components/core/ThemeProvider/types.d.ts.map +1 -1
  160. package/dist/typescript/src/lib/Components/core/Tile/Tile.d.ts +3 -3
  161. package/dist/typescript/src/lib/Components/symbols/icons/AiBubble.d.ts +35 -0
  162. package/dist/typescript/src/lib/Components/symbols/icons/AiBubble.d.ts.map +1 -0
  163. package/dist/typescript/src/lib/Components/symbols/icons/ArrowBottomLeft.d.ts +35 -0
  164. package/dist/typescript/src/lib/Components/symbols/icons/ArrowBottomLeft.d.ts.map +1 -0
  165. package/dist/typescript/src/lib/Components/symbols/icons/Hourglass.d.ts +35 -0
  166. package/dist/typescript/src/lib/Components/symbols/icons/Hourglass.d.ts.map +1 -0
  167. package/dist/typescript/src/lib/Components/symbols/icons/Repeat.d.ts +35 -0
  168. package/dist/typescript/src/lib/Components/symbols/icons/Repeat.d.ts.map +1 -0
  169. package/dist/typescript/src/lib/Components/symbols/icons/Robot.d.ts +35 -0
  170. package/dist/typescript/src/lib/Components/symbols/icons/Robot.d.ts.map +1 -0
  171. package/dist/typescript/src/lib/Components/symbols/icons/Switch.d.ts.map +1 -1
  172. package/dist/typescript/src/lib/Components/symbols/icons/Wifi.d.ts +35 -0
  173. package/dist/typescript/src/lib/Components/symbols/icons/Wifi.d.ts.map +1 -0
  174. package/dist/typescript/src/lib/Components/symbols/index.d.ts +6 -0
  175. package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
  176. package/dist/typescript/src/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
  177. package/dist/typescript/src/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
  178. package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
  179. package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
  180. package/dist/typescript/src/lib/Components/visualization/DonutChart/types.d.ts +1 -1
  181. package/dist/typescript/src/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
  182. package/dist/typescript/src/lib/Components/visualization/Legend/types.d.ts +2 -2
  183. package/dist/typescript/src/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
  184. package/dist/typescript/src/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
  185. package/dist/typescript/src/lib/Components/visualization/LineChart/types.d.ts +1 -1
  186. package/dist/typescript/src/lib/Components/visualization/LineChart/utils.d.ts +2 -1
  187. package/dist/typescript/src/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
  188. package/dist/typescript/src/lib/Components/visualization/config.d.ts +0 -3
  189. package/dist/typescript/src/lib/Components/visualization/config.d.ts.map +1 -1
  190. package/dist/typescript/src/translations/index.d.ts +3 -0
  191. package/dist/typescript/src/translations/index.d.ts.map +1 -0
  192. package/dist/typescript/src/{i18n → translations}/languages.d.ts +0 -5
  193. package/dist/typescript/src/translations/languages.d.ts.map +1 -0
  194. package/dist/typescript/src/translations/translations.d.ts +421 -0
  195. package/dist/typescript/src/translations/translations.d.ts.map +1 -0
  196. package/package.json +4 -6
  197. package/src/index.ts +1 -1
  198. package/src/lib/Components/core/AddressInput/AddressInput.tsx +1 -1
  199. package/src/lib/Components/core/AmountDisplay/AmountDisplay.tsx +1 -1
  200. package/src/lib/Components/core/AmountInput/AmountInput.tsx +1 -1
  201. package/src/lib/Components/core/Avatar/Avatar.tsx +1 -1
  202. package/src/lib/Components/core/Banner/Banner.tsx +1 -1
  203. package/src/lib/Components/core/BottomSheet/BottomSheet.stories.tsx +12 -4
  204. package/src/lib/Components/core/BottomSheet/BottomSheetHeader.tsx +1 -1
  205. package/src/lib/Components/core/Card/Card.figma.tsx +1 -1
  206. package/src/lib/Components/core/Card/Card.stories.tsx +2 -2
  207. package/src/lib/Components/core/ContentBanner/ContentBanner.figma.tsx +1 -1
  208. package/src/lib/Components/core/ContentBanner/ContentBanner.mdx +4 -4
  209. package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +9 -9
  210. package/src/lib/Components/core/ContentBanner/ContentBanner.test.tsx +1 -1
  211. package/src/lib/Components/core/ContentBanner/ContentBanner.tsx +2 -2
  212. package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +5 -5
  213. package/src/lib/Components/core/ListItem/ListItem.figma.tsx +1 -1
  214. package/src/lib/Components/core/ListItem/ListItem.mdx +10 -10
  215. package/src/lib/Components/core/ListItem/ListItem.stories.tsx +29 -33
  216. package/src/lib/Components/core/ListItem/ListItem.tsx +1 -1
  217. package/src/lib/Components/core/MediaBanner/MediaBanner.tsx +1 -1
  218. package/src/lib/Components/core/MediaCard/MediaCard.tsx +1 -1
  219. package/src/lib/Components/core/NavBar/NavBar.tsx +1 -1
  220. package/src/lib/Components/core/SelectList/SelectList.mdx +1 -1
  221. package/src/lib/Components/core/SelectList/SelectList.stories.tsx +1 -1
  222. package/src/lib/Components/core/Spinner/Spinner.tsx +1 -1
  223. package/src/lib/Components/core/Spot/Spot.figma.tsx +42 -21
  224. package/src/lib/Components/core/Spot/Spot.mdx +47 -108
  225. package/src/lib/Components/core/Spot/Spot.stories.tsx +114 -175
  226. package/src/lib/Components/core/Spot/Spot.test.tsx +71 -0
  227. package/src/lib/Components/core/Spot/Spot.tsx +21 -163
  228. package/src/lib/Components/core/Spot/SpotNumber.test.tsx +93 -0
  229. package/src/lib/Components/core/Spot/SpotNumber.tsx +48 -0
  230. package/src/lib/Components/core/Spot/index.ts +1 -0
  231. package/src/lib/Components/core/Spot/types.ts +39 -41
  232. package/src/lib/Components/core/Spot/useSpotStyles.ts +119 -0
  233. package/src/lib/Components/core/Stepper/Stepper.tsx +1 -1
  234. package/src/lib/Components/core/Subheader/Subheader.tsx +3 -1
  235. package/src/lib/Components/core/ThemeProvider/ThemeProvider.test.tsx +12 -1
  236. package/src/lib/Components/core/ThemeProvider/ThemeProvider.tsx +3 -3
  237. package/src/lib/Components/core/ThemeProvider/types.ts +1 -1
  238. package/src/lib/Components/core/Tile/Tile.figma.tsx +1 -1
  239. package/src/lib/Components/core/Tile/Tile.mdx +8 -8
  240. package/src/lib/Components/core/Tile/Tile.stories.tsx +32 -25
  241. package/src/lib/Components/core/Tile/Tile.tsx +3 -3
  242. package/src/lib/Components/core/Toast/hooks/useToastAccessibility.ts +1 -1
  243. package/src/lib/Components/core/Trend/Trend.tsx +1 -1
  244. package/src/lib/Components/internal/BaseInput/BaseInput.tsx +1 -1
  245. package/src/lib/Components/symbols/icons/AiBubble.tsx +51 -0
  246. package/src/lib/Components/symbols/icons/ArrowBottomLeft.tsx +44 -0
  247. package/src/lib/Components/symbols/icons/Bug.tsx +1 -1
  248. package/src/lib/Components/symbols/icons/Hourglass.tsx +44 -0
  249. package/src/lib/Components/symbols/icons/Repeat.tsx +44 -0
  250. package/src/lib/Components/symbols/icons/Robot.tsx +44 -0
  251. package/src/lib/Components/symbols/icons/Switch.tsx +8 -1
  252. package/src/lib/Components/symbols/icons/Wifi.tsx +48 -0
  253. package/src/lib/Components/symbols/index.ts +6 -0
  254. package/src/lib/Components/visualization/CartesianChart/CartesianChart.tsx +4 -2
  255. package/src/lib/Components/visualization/CartesianChart/types.ts +1 -1
  256. package/src/lib/Components/visualization/DonutChart/DonutChart.test.tsx +1 -3
  257. package/src/lib/Components/visualization/DonutChart/DonutChart.tsx +7 -3
  258. package/src/lib/Components/visualization/DonutChart/DonutRing.tsx +11 -1
  259. package/src/lib/Components/visualization/DonutChart/types.ts +1 -1
  260. package/src/lib/Components/visualization/Legend/Legend.test.tsx +9 -8
  261. package/src/lib/Components/visualization/Legend/Legend.tsx +1 -1
  262. package/src/lib/Components/visualization/Legend/types.ts +2 -2
  263. package/src/lib/Components/visualization/LineChart/LineChart.tsx +10 -2
  264. package/src/lib/Components/visualization/LineChart/types.ts +1 -1
  265. package/src/lib/Components/visualization/LineChart/utils.test.ts +4 -0
  266. package/src/lib/Components/visualization/LineChart/utils.ts +6 -2
  267. package/src/lib/Components/visualization/config.ts +0 -3
  268. package/src/translations/index.ts +2 -0
  269. package/src/{i18n → translations}/languages.ts +0 -6
  270. package/src/{i18n → translations}/locales/de.json +0 -3
  271. package/{dist/module/i18n → src/translations}/locales/en.json +9 -3
  272. package/{dist/module/i18n → src/translations}/locales/es.json +0 -3
  273. package/src/{i18n → translations}/locales/fr.json +0 -3
  274. package/{dist/module/i18n → src/translations}/locales/ja.json +0 -3
  275. package/src/{i18n → translations}/locales/ko.json +0 -3
  276. package/src/{i18n → translations}/locales/pt.json +0 -3
  277. package/src/{i18n → translations}/locales/ru.json +0 -3
  278. package/src/{i18n → translations}/locales/th.json +0 -3
  279. package/src/{i18n → translations}/locales/tr.json +0 -3
  280. package/{dist/module/i18n → src/translations}/locales/zh.json +0 -3
  281. package/src/translations/translations.test.ts +56 -0
  282. package/src/translations/translations.ts +21 -0
  283. package/dist/module/i18n/I18nProvider.js +0 -20
  284. package/dist/module/i18n/I18nProvider.js.map +0 -1
  285. package/dist/module/i18n/i18n.js +0 -82
  286. package/dist/module/i18n/i18n.js.map +0 -1
  287. package/dist/module/i18n/index.js +0 -6
  288. package/dist/module/i18n/index.js.map +0 -1
  289. package/dist/module/i18n/languages.js.map +0 -1
  290. package/dist/module/i18n/useCommonTranslation.js +0 -8
  291. package/dist/module/i18n/useCommonTranslation.js.map +0 -1
  292. package/dist/typescript/src/i18n/I18nProvider.d.ts +0 -8
  293. package/dist/typescript/src/i18n/I18nProvider.d.ts.map +0 -1
  294. package/dist/typescript/src/i18n/i18n.d.ts +0 -13
  295. package/dist/typescript/src/i18n/i18n.d.ts.map +0 -1
  296. package/dist/typescript/src/i18n/index.d.ts +0 -4
  297. package/dist/typescript/src/i18n/index.d.ts.map +0 -1
  298. package/dist/typescript/src/i18n/languages.d.ts.map +0 -1
  299. package/dist/typescript/src/i18n/useCommonTranslation.d.ts +0 -2
  300. package/dist/typescript/src/i18n/useCommonTranslation.d.ts.map +0 -1
  301. package/src/i18n/I18nProvider.tsx +0 -20
  302. package/src/i18n/i18n.ts +0 -107
  303. package/src/i18n/index.ts +0 -3
  304. package/src/i18n/useCommonTranslation.ts +0 -6
@@ -1,82 +0,0 @@
1
- "use strict";
2
-
3
- import i18next from 'i18next';
4
- import { initReactI18next } from 'react-i18next';
5
- import { DEFAULT_LANGUAGE, I18N_DEFAULT_NAMESPACE } from "./languages.js";
6
- import de from './locales/de.json';
7
- import en from './locales/en.json';
8
- import es from './locales/es.json';
9
- import fr from './locales/fr.json';
10
- import ja from './locales/ja.json';
11
- import ko from './locales/ko.json';
12
- import pt from './locales/pt.json';
13
- import ru from './locales/ru.json';
14
- import th from './locales/th.json';
15
- import tr from './locales/tr.json';
16
- import zh from './locales/zh.json';
17
- const localeResources = {
18
- de,
19
- en,
20
- es,
21
- fr,
22
- ja,
23
- ko,
24
- pt,
25
- ru,
26
- th,
27
- tr,
28
- zh
29
- };
30
- const loadedLocales = new Set();
31
- const initializeI18n = () => {
32
- const instance = i18next.createInstance();
33
- const resources = Object.fromEntries(Object.entries(localeResources).map(([locale, translations]) => [locale, {
34
- [I18N_DEFAULT_NAMESPACE]: translations
35
- }]));
36
- Object.keys(localeResources).forEach(locale => loadedLocales.add(locale));
37
- instance.use(initReactI18next).init({
38
- resources,
39
- lng: DEFAULT_LANGUAGE,
40
- defaultNS: I18N_DEFAULT_NAMESPACE,
41
- fallbackLng: DEFAULT_LANGUAGE,
42
- interpolation: {
43
- escapeValue: false
44
- },
45
- react: {
46
- useSuspense: false
47
- }
48
- }).catch(error => {
49
- // eslint-disable-next-line no-console
50
- console.error('Failed to initialize i18next:', error);
51
- });
52
- return instance;
53
- };
54
- export const i18n = initializeI18n();
55
-
56
- /**
57
- * Loads the translations for a given locale.
58
- * In React Native, we bundle all locales, so this just adds the resource bundle.
59
- */
60
- export const loadLocale = async locale => {
61
- if (loadedLocales.has(locale)) {
62
- return;
63
- }
64
- try {
65
- const translations = localeResources[locale];
66
- i18n.addResourceBundle(locale, I18N_DEFAULT_NAMESPACE, translations, true, true);
67
- loadedLocales.add(locale);
68
- } catch (error) {
69
- // eslint-disable-next-line no-console
70
- console.error(`Failed to load locale ${locale}`, error);
71
- throw error;
72
- }
73
- };
74
-
75
- /**
76
- * Switches the language to the given locale.
77
- */
78
- export const switchLanguage = async locale => {
79
- await loadLocale(locale);
80
- await i18n.changeLanguage(locale);
81
- };
82
- //# sourceMappingURL=i18n.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["i18next","initReactI18next","DEFAULT_LANGUAGE","I18N_DEFAULT_NAMESPACE","de","en","es","fr","ja","ko","pt","ru","th","tr","zh","localeResources","loadedLocales","Set","initializeI18n","instance","createInstance","resources","Object","fromEntries","entries","map","locale","translations","keys","forEach","add","use","init","lng","defaultNS","fallbackLng","interpolation","escapeValue","react","useSuspense","catch","error","console","i18n","loadLocale","has","addResourceBundle","switchLanguage","changeLanguage"],"sourceRoot":"../../../src","sources":["i18n/i18n.ts"],"mappings":"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","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- export { I18nProvider } from "./I18nProvider.js";
4
- export { Languages } from "./languages.js";
5
- export { useCommonTranslation } from "./useCommonTranslation.js";
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["I18nProvider","Languages","useCommonTranslation"],"sourceRoot":"../../../src","sources":["i18n/index.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,mBAAgB;AAC7C,SAA+BC,SAAS,QAAQ,gBAAa;AAC7D,SAASC,oBAAoB,QAAQ,2BAAwB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["Languages","de","id","en","es","fr","ja","ko","pt","ru","th","tr","zh","DEFAULT_LANGUAGE","I18N_DEFAULT_NAMESPACE"],"sourceRoot":"../../../src","sources":["i18n/languages.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG;EACvBC,EAAE,EAAE;IACFC,EAAE,EAAE;EACN,CAAC;EACDC,EAAE,EAAE;IACFD,EAAE,EAAE;EACN,CAAC;EACDE,EAAE,EAAE;IACFF,EAAE,EAAE;EACN,CAAC;EACDG,EAAE,EAAE;IACFH,EAAE,EAAE;EACN,CAAC;EACDI,EAAE,EAAE;IACFJ,EAAE,EAAE;EACN,CAAC;EACDK,EAAE,EAAE;IACFL,EAAE,EAAE;EACN,CAAC;EACDM,EAAE,EAAE;IACFN,EAAE,EAAE;EACN,CAAC;EACDO,EAAE,EAAE;IACFP,EAAE,EAAE;EACN,CAAC;EACDQ,EAAE,EAAE;IACFR,EAAE,EAAE;EACN,CAAC;EACDS,EAAE,EAAE;IACFT,EAAE,EAAE;EACN,CAAC;EACDU,EAAE,EAAE;IACFV,EAAE,EAAE;EACN;AACF,CAAmD;;AAEnD;AACA;AACA;AACA,OAAO,MAAMW,gBAAgB,GAAGb,SAAS,CAACG,EAAE,CAACD,EAAE;;AAE/C;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA,OAAO,MAAMY,sBAAsB,GAAG,QAAQ","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- import { useTranslation as useI18nextTranslation } from 'react-i18next';
4
- import { I18N_DEFAULT_NAMESPACE } from "./languages.js";
5
- export const useCommonTranslation = () => {
6
- return useI18nextTranslation(I18N_DEFAULT_NAMESPACE);
7
- };
8
- //# sourceMappingURL=useCommonTranslation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useTranslation","useI18nextTranslation","I18N_DEFAULT_NAMESPACE","useCommonTranslation"],"sourceRoot":"../../../src","sources":["i18n/useCommonTranslation.ts"],"mappings":";;AAAA,SAASA,cAAc,IAAIC,qBAAqB,QAAQ,eAAe;AACvE,SAASC,sBAAsB,QAAQ,gBAAa;AAEpD,OAAO,MAAMC,oBAAoB,GAAGA,CAAA,KAAM;EACxC,OAAOF,qBAAqB,CAACC,sBAAsB,CAAC;AACtD,CAAC","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import { type SupportedLocale } from './languages';
3
- type I18nProviderProps = PropsWithChildren & {
4
- locale?: SupportedLocale;
5
- };
6
- export declare const I18nProvider: ({ locale, children, }: I18nProviderProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=I18nProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../../../src/i18n/I18nProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAErE,KAAK,iBAAiB,GAAG,iBAAiB,GAAG;IAC3C,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,uBAG1B,iBAAiB,4CAMnB,CAAC"}
@@ -1,13 +0,0 @@
1
- import { type i18n as I18nInstance } from 'i18next';
2
- import type { SupportedLocale } from './languages';
3
- export declare const i18n: I18nInstance;
4
- /**
5
- * Loads the translations for a given locale.
6
- * In React Native, we bundle all locales, so this just adds the resource bundle.
7
- */
8
- export declare const loadLocale: (locale: SupportedLocale) => Promise<void>;
9
- /**
10
- * Switches the language to the given locale.
11
- */
12
- export declare const switchLanguage: (locale: SupportedLocale) => Promise<void>;
13
- //# sourceMappingURL=i18n.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAmEnD,eAAO,MAAM,IAAI,cAAmB,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAU,QAAQ,eAAe,KAAG,OAAO,CAAC,IAAI,CAqBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,eAAe,KACtB,OAAO,CAAC,IAAI,CAGd,CAAC"}
@@ -1,4 +0,0 @@
1
- export { I18nProvider } from './I18nProvider';
2
- export { type SupportedLocale, Languages } from './languages';
3
- export { useCommonTranslation } from './useCommonTranslation';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../../../src/i18n/languages.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC6B,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,gBAAgB,MAAkB,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,SAAS,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,WAAW,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useCommonTranslation: () => import("react-i18next").UseTranslationResponse<"common", undefined>;
2
- //# sourceMappingURL=useCommonTranslation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCommonTranslation.d.ts","sourceRoot":"","sources":["../../../../src/i18n/useCommonTranslation.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,2EAEhC,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import { useEffect } from 'react';
3
- import { I18nextProvider } from 'react-i18next';
4
- import { i18n, switchLanguage } from './i18n';
5
- import { DEFAULT_LANGUAGE, type SupportedLocale } from './languages';
6
-
7
- type I18nProviderProps = PropsWithChildren & {
8
- locale?: SupportedLocale;
9
- };
10
-
11
- export const I18nProvider = ({
12
- locale = DEFAULT_LANGUAGE,
13
- children,
14
- }: I18nProviderProps) => {
15
- useEffect(() => {
16
- switchLanguage(locale);
17
- }, [locale]);
18
-
19
- return <I18nextProvider i18n={i18n}>{children}</I18nextProvider>;
20
- };
package/src/i18n/i18n.ts DELETED
@@ -1,107 +0,0 @@
1
- import i18next, { type i18n as I18nInstance } from 'i18next';
2
- import { initReactI18next } from 'react-i18next';
3
- import type { SupportedLocale } from './languages';
4
- import { DEFAULT_LANGUAGE, I18N_DEFAULT_NAMESPACE } from './languages';
5
-
6
- import de from './locales/de.json';
7
- import en from './locales/en.json';
8
- import es from './locales/es.json';
9
- import fr from './locales/fr.json';
10
- import ja from './locales/ja.json';
11
- import ko from './locales/ko.json';
12
- import pt from './locales/pt.json';
13
- import ru from './locales/ru.json';
14
- import th from './locales/th.json';
15
- import tr from './locales/tr.json';
16
- import zh from './locales/zh.json';
17
-
18
- const localeResources = {
19
- de,
20
- en,
21
- es,
22
- fr,
23
- ja,
24
- ko,
25
- pt,
26
- ru,
27
- th,
28
- tr,
29
- zh,
30
- };
31
-
32
- const loadedLocales = new Set<SupportedLocale>();
33
-
34
- const initializeI18n = (): I18nInstance => {
35
- const instance = i18next.createInstance();
36
-
37
- const resources = Object.fromEntries(
38
- Object.entries(localeResources).map(([locale, translations]) => [
39
- locale,
40
- { [I18N_DEFAULT_NAMESPACE]: translations },
41
- ]),
42
- );
43
-
44
- Object.keys(localeResources).forEach((locale) =>
45
- loadedLocales.add(locale as SupportedLocale),
46
- );
47
-
48
- instance
49
- .use(initReactI18next)
50
- .init({
51
- resources,
52
- lng: DEFAULT_LANGUAGE,
53
- defaultNS: I18N_DEFAULT_NAMESPACE,
54
- fallbackLng: DEFAULT_LANGUAGE,
55
- interpolation: {
56
- escapeValue: false,
57
- },
58
- react: {
59
- useSuspense: false,
60
- },
61
- })
62
- .catch((error: unknown) => {
63
- // eslint-disable-next-line no-console
64
- console.error('Failed to initialize i18next:', error);
65
- });
66
-
67
- return instance;
68
- };
69
-
70
- export const i18n = initializeI18n();
71
-
72
- /**
73
- * Loads the translations for a given locale.
74
- * In React Native, we bundle all locales, so this just adds the resource bundle.
75
- */
76
- export const loadLocale = async (locale: SupportedLocale): Promise<void> => {
77
- if (loadedLocales.has(locale)) {
78
- return;
79
- }
80
-
81
- try {
82
- const translations = localeResources[locale];
83
- i18n.addResourceBundle(
84
- locale,
85
- I18N_DEFAULT_NAMESPACE,
86
- translations,
87
- true,
88
- true,
89
- );
90
-
91
- loadedLocales.add(locale);
92
- } catch (error) {
93
- // eslint-disable-next-line no-console
94
- console.error(`Failed to load locale ${locale}`, error);
95
- throw error;
96
- }
97
- };
98
-
99
- /**
100
- * Switches the language to the given locale.
101
- */
102
- export const switchLanguage = async (
103
- locale: SupportedLocale,
104
- ): Promise<void> => {
105
- await loadLocale(locale);
106
- await i18n.changeLanguage(locale);
107
- };
package/src/i18n/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export { I18nProvider } from './I18nProvider';
2
- export { type SupportedLocale, Languages } from './languages';
3
- export { useCommonTranslation } from './useCommonTranslation';
@@ -1,6 +0,0 @@
1
- import { useTranslation as useI18nextTranslation } from 'react-i18next';
2
- import { I18N_DEFAULT_NAMESPACE } from './languages';
3
-
4
- export const useCommonTranslation = () => {
5
- return useI18nextTranslation(I18N_DEFAULT_NAMESPACE);
6
- };