@ledgerhq/lumen-ui-react 0.1.62 → 0.1.63

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 (138) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/lib/Components/core/AddressInput/AddressInput.js +1 -1
  5. package/dist/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
  6. package/dist/lib/Components/core/AmountInput/AmountInput.js +22 -22
  7. package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
  8. package/dist/lib/Components/core/AvatarButton/AvatarButton.js +8 -8
  9. package/dist/lib/Components/core/Banner/Banner.js +1 -1
  10. package/dist/lib/Components/core/Button/Button.js +6 -6
  11. package/dist/lib/Components/core/Card/Card.js +17 -17
  12. package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
  13. package/dist/lib/Components/core/DataTable/DataTable.js +45 -45
  14. package/dist/lib/Components/core/Dialog/DialogHeader/DialogHeader.js +1 -1
  15. package/dist/lib/Components/core/Divider/Divider.js +4 -4
  16. package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
  17. package/dist/lib/Components/core/DotIcon/DotIcon.js +4 -4
  18. package/dist/lib/Components/core/DotSymbol/DotSymbol.js +18 -18
  19. package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
  20. package/dist/lib/Components/core/Link/Link.js +25 -24
  21. package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
  22. package/dist/lib/Components/core/MediaBanner/MediaBanner.js +16 -16
  23. package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
  24. package/dist/lib/Components/core/MediaCard/MediaCard.js +1 -1
  25. package/dist/lib/Components/core/MediaImage/MediaImage.js +5 -5
  26. package/dist/lib/Components/core/Menu/Menu.js +25 -25
  27. package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
  28. package/dist/lib/Components/core/NavBar/NavBar.js +3 -3
  29. package/dist/lib/Components/core/PageIndicator/PageIndicator.js +5 -5
  30. package/dist/lib/Components/core/Pagination/Pagination.js +15 -15
  31. package/dist/lib/Components/core/Popover/Popover.js +13 -13
  32. package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
  33. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  34. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +78 -82
  35. package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
  36. package/dist/lib/Components/core/Select/Select.js +105 -104
  37. package/dist/lib/Components/core/SideBar/SideBar.js +28 -28
  38. package/dist/lib/Components/core/Spinner/Spinner.js +5 -5
  39. package/dist/lib/Components/core/Spot/Spot.js +10 -10
  40. package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
  41. package/dist/lib/Components/core/Stepper/Stepper.js +51 -48
  42. package/dist/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
  43. package/dist/lib/Components/core/Subheader/Subheader.js +33 -29
  44. package/dist/lib/Components/core/Switch/Switch.js +5 -5
  45. package/dist/lib/Components/core/Table/Table.js +6 -6
  46. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.js +6 -6
  47. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts +1 -1
  48. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
  49. package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
  50. package/dist/lib/Components/core/Timeline/Timeline.js +16 -16
  51. package/dist/lib/Components/core/Toast/Toast.js +4 -4
  52. package/dist/lib/Components/core/Toast/Toaster.js +9 -9
  53. package/dist/lib/Components/core/Trend/Trend.js +3 -3
  54. package/dist/lib/Components/internal/BaseButton/BaseButton.js +9 -9
  55. package/dist/lib/Components/internal/BaseInput/BaseInput.js +21 -21
  56. package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +4 -4
  57. package/dist/lib/Components/internal/BaseTag/BaseTag.js +4 -4
  58. package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
  59. package/dist/lib/Components/symbols/Icon/createIcon.js +5 -5
  60. package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
  61. package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +36 -35
  62. package/dist/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
  63. package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
  64. package/dist/lib/Components/visualization/DonutChart/DonutChart.js +31 -31
  65. package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +4 -4
  66. package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
  67. package/dist/lib/Components/visualization/DonutChart/DonutRing.js +13 -12
  68. package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
  69. package/dist/lib/Components/visualization/DonutChart/types.d.ts +1 -1
  70. package/dist/lib/Components/visualization/Legend/Legend.d.ts +1 -1
  71. package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
  72. package/dist/lib/Components/visualization/Legend/Legend.js +7 -11
  73. package/dist/lib/Components/visualization/Legend/types.d.ts +2 -2
  74. package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
  75. package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
  76. package/dist/lib/Components/visualization/LineChart/LineChart.js +90 -84
  77. package/dist/lib/Components/visualization/LineChart/types.d.ts +1 -1
  78. package/dist/lib/Components/visualization/LineChart/utils.d.ts +2 -1
  79. package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
  80. package/dist/lib/Components/visualization/LineChart/utils.js +23 -22
  81. package/dist/lib/Components/visualization/config.d.ts +0 -3
  82. package/dist/lib/Components/visualization/config.d.ts.map +1 -1
  83. package/dist/lib/Components/visualization/config.js +3 -6
  84. package/dist/libs/utils-shared/dist/index.js +191 -143
  85. package/dist/package.json +4 -6
  86. package/dist/translations/index.d.ts +3 -0
  87. package/dist/translations/index.d.ts.map +1 -0
  88. package/dist/{i18n → translations}/languages.d.ts +0 -5
  89. package/dist/translations/languages.d.ts.map +1 -0
  90. package/dist/{i18n → translations}/languages.js +1 -2
  91. package/dist/{i18n → translations}/locales/en.json.d.ts +11 -0
  92. package/dist/{i18n → translations}/locales/en.json.js +2 -2
  93. package/dist/translations/translations.d.ts +727 -0
  94. package/dist/translations/translations.d.ts.map +1 -0
  95. package/dist/translations/translations.js +22 -0
  96. package/package.json +3 -5
  97. package/dist/_virtual/dynamic-import-helper.js +0 -9
  98. package/dist/i18n/I18nProvider.d.ts +0 -8
  99. package/dist/i18n/I18nProvider.d.ts.map +0 -1
  100. package/dist/i18n/I18nProvider.js +0 -14
  101. package/dist/i18n/i18n.d.ts +0 -12
  102. package/dist/i18n/i18n.d.ts.map +0 -1
  103. package/dist/i18n/i18n.js +0 -42
  104. package/dist/i18n/index.d.ts +0 -4
  105. package/dist/i18n/index.d.ts.map +0 -1
  106. package/dist/i18n/languages.d.ts.map +0 -1
  107. package/dist/i18n/useCommonTranslation.d.ts +0 -2
  108. package/dist/i18n/useCommonTranslation.d.ts.map +0 -1
  109. package/dist/i18n/useCommonTranslation.js +0 -6
  110. package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1479
  111. package/dist/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -19
  112. package/dist/node_modules/react-i18next/dist/es/context.js +0 -17
  113. package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
  114. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -8
  115. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -11
  116. package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -25
  117. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -65
  118. package/dist/node_modules/react-i18next/dist/es/utils.js +0 -57
  119. /package/dist/{i18n → translations}/locales/de.json.d.ts +0 -0
  120. /package/dist/{i18n → translations}/locales/de.json.js +0 -0
  121. /package/dist/{i18n → translations}/locales/es.json.d.ts +0 -0
  122. /package/dist/{i18n → translations}/locales/es.json.js +0 -0
  123. /package/dist/{i18n → translations}/locales/fr.json.d.ts +0 -0
  124. /package/dist/{i18n → translations}/locales/fr.json.js +0 -0
  125. /package/dist/{i18n → translations}/locales/ja.json.d.ts +0 -0
  126. /package/dist/{i18n → translations}/locales/ja.json.js +0 -0
  127. /package/dist/{i18n → translations}/locales/ko.json.d.ts +0 -0
  128. /package/dist/{i18n → translations}/locales/ko.json.js +0 -0
  129. /package/dist/{i18n → translations}/locales/pt.json.d.ts +0 -0
  130. /package/dist/{i18n → translations}/locales/pt.json.js +0 -0
  131. /package/dist/{i18n → translations}/locales/ru.json.d.ts +0 -0
  132. /package/dist/{i18n → translations}/locales/ru.json.js +0 -0
  133. /package/dist/{i18n → translations}/locales/th.json.d.ts +0 -0
  134. /package/dist/{i18n → translations}/locales/th.json.js +0 -0
  135. /package/dist/{i18n → translations}/locales/tr.json.d.ts +0 -0
  136. /package/dist/{i18n → translations}/locales/tr.json.js +0 -0
  137. /package/dist/{i18n → translations}/locales/zh.json.d.ts +0 -0
  138. /package/dist/{i18n → translations}/locales/zh.json.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/translations/translations.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiD,CAAC;AAE3E,eAAO,MAAQ,oBAAoB;;;IAAmB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItE,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { createTranslations as o } from "../libs/utils-shared/dist/index.js";
2
+ import { DEFAULT_LANGUAGE as r } from "./languages.js";
3
+ import m from "./locales/de.json.js";
4
+ import t from "./locales/en.json.js";
5
+ import i from "./locales/es.json.js";
6
+ import f from "./locales/fr.json.js";
7
+ import p from "./locales/ja.json.js";
8
+ import a from "./locales/ko.json.js";
9
+ import s from "./locales/pt.json.js";
10
+ import e from "./locales/ru.json.js";
11
+ import n from "./locales/th.json.js";
12
+ import l from "./locales/tr.json.js";
13
+ import c from "./locales/zh.json.js";
14
+ const T = { de: m, en: t, es: i, fr: f, ja: p, ko: a, pt: s, ru: e, th: n, tr: l, zh: c }, { TranslationsProvider: C, useTranslations: D } = o({
15
+ dictionaries: T,
16
+ defaultLocale: r
17
+ });
18
+ export {
19
+ C as TranslationsProvider,
20
+ T as dictionaries,
21
+ D as useCommonTranslation
22
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-react",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [
@@ -47,13 +47,11 @@
47
47
  ]
48
48
  },
49
49
  "dependencies": {
50
- "@ledgerhq/lumen-utils-shared": "0.1.15",
50
+ "@ledgerhq/lumen-utils-shared": "0.1.16",
51
51
  "@types/d3-scale": "^4.0.9",
52
52
  "@types/d3-shape": "^3.1.8",
53
53
  "d3-scale": "^4.0.2",
54
- "d3-shape": "^3.2.0",
55
- "i18next": "^23.7.0",
56
- "react-i18next": "^14.0.0"
54
+ "d3-shape": "^3.2.0"
57
55
  },
58
56
  "peerDependencies": {
59
57
  "@base-ui/react": "^1.3.0",
@@ -1,9 +0,0 @@
1
- const l = (r, n, t) => {
2
- const e = r[n];
3
- return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
4
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : ""))));
5
- });
6
- };
7
- export {
8
- l as default
9
- };
@@ -1,8 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { SupportedLocale } from './languages';
3
- type I18nProviderProps = PropsWithChildren & {
4
- locale?: SupportedLocale;
5
- };
6
- export declare const I18nProvider: FC<I18nProviderProps>;
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,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAInD,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,EAAE,EAAE,CAAC,iBAAiB,CAS9C,CAAC"}
@@ -1,14 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { useEffect as m } from "react";
3
- import { switchLanguage as i, i18n as e } from "./i18n.js";
4
- import { DEFAULT_LANGUAGE as f } from "./languages.js";
5
- import { I18nextProvider as n } from "../node_modules/react-i18next/dist/es/I18nextProvider.js";
6
- const E = ({
7
- locale: r = f,
8
- children: o
9
- }) => (m(() => {
10
- i(r);
11
- }, [r]), /* @__PURE__ */ t(n, { i18n: e, children: o }));
12
- export {
13
- E as I18nProvider
14
- };
@@ -1,12 +0,0 @@
1
- import { i18n as I18nInstance } from 'i18next';
2
- import { SupportedLocale } from './languages';
3
- export declare const i18n: I18nInstance;
4
- /**
5
- * Loads the translations for a given locale.
6
- */
7
- export declare const loadLocale: (locale: SupportedLocale) => Promise<void>;
8
- /**
9
- * Switches the language to the given locale.
10
- */
11
- export declare const switchLanguage: (locale: SupportedLocale) => Promise<void>;
12
- //# 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;AA8BnD,eAAO,MAAM,IAAI,cAAmB,CAAC;AAErC;;GAEG;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"}
package/dist/i18n/i18n.js DELETED
@@ -1,42 +0,0 @@
1
- import r from "../_virtual/dynamic-import-helper.js";
2
- import i from "../node_modules/i18next/dist/esm/i18next.js";
3
- import { DEFAULT_LANGUAGE as t, I18N_DEFAULT_NAMESPACE as s } from "./languages.js";
4
- import { initReactI18next as l } from "../node_modules/react-i18next/dist/es/initReactI18next.js";
5
- const a = /* @__PURE__ */ new Set(), c = () => {
6
- const o = i.createInstance();
7
- return o.use(l).init({
8
- resources: {},
9
- lng: t,
10
- defaultNS: s,
11
- fallbackLng: t,
12
- interpolation: {
13
- escapeValue: !1
14
- },
15
- react: {
16
- useSuspense: !1
17
- }
18
- }).catch((e) => {
19
- console.error("Failed to initialize i18next:", e);
20
- }), o;
21
- }, n = c(), m = async (o) => {
22
- if (!a.has(o))
23
- try {
24
- const e = await r(/* @__PURE__ */ Object.assign({ "./locales/de.json": () => import("./locales/de.json.js"), "./locales/en.json": () => import("./locales/en.json.js"), "./locales/es.json": () => import("./locales/es.json.js"), "./locales/fr.json": () => import("./locales/fr.json.js"), "./locales/ja.json": () => import("./locales/ja.json.js"), "./locales/ko.json": () => import("./locales/ko.json.js"), "./locales/pt.json": () => import("./locales/pt.json.js"), "./locales/ru.json": () => import("./locales/ru.json.js"), "./locales/th.json": () => import("./locales/th.json.js"), "./locales/tr.json": () => import("./locales/tr.json.js"), "./locales/zh.json": () => import("./locales/zh.json.js") }), `./locales/${o}.json`, 3);
25
- n.addResourceBundle(
26
- o,
27
- s,
28
- e.default,
29
- !0,
30
- !0
31
- ), a.add(o);
32
- } catch (e) {
33
- throw console.error(`Failed to load locale ${o}`, e), e;
34
- }
35
- }, f = async (o) => {
36
- await m(o), await n.changeLanguage(o);
37
- };
38
- export {
39
- n as i18n,
40
- m as loadLocale,
41
- f as switchLanguage
42
- };
@@ -1,4 +0,0 @@
1
- export { type SupportedLocale, Languages } from './languages';
2
- export { I18nProvider } from './I18nProvider';
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,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,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,6 +0,0 @@
1
- import { I18N_DEFAULT_NAMESPACE as o } from "./languages.js";
2
- import { useTranslation as r } from "../node_modules/react-i18next/dist/es/useTranslation.js";
3
- const m = () => r(o);
4
- export {
5
- m as useCommonTranslation
6
- };