@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
@@ -1,11 +1,11 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { useDisabledContext as x, cn as w } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as y } from "class-variance-authority";
4
- import { useMemo as C } from "react";
4
+ import { useMemo as F } from "react";
5
5
  import { Spinner as P } from "../Spinner/Spinner.js";
6
- import { InformationFill as F } from "../../symbols/icons/InformationFill.js";
7
- import { WarningFill as k } from "../../symbols/icons/WarningFill.js";
8
- import { DeleteCircleFill as N } from "../../symbols/icons/DeleteCircleFill.js";
6
+ import { InformationFill as C } from "../../symbols/icons/InformationFill.js";
7
+ import { WarningFill as N } from "../../symbols/icons/WarningFill.js";
8
+ import { DeleteCircleFill as k } from "../../symbols/icons/DeleteCircleFill.js";
9
9
  import { CheckmarkCircleFill as S } from "../../symbols/icons/CheckmarkCircleFill.js";
10
10
  import { BluetoothCircleFill as v } from "../../symbols/icons/BluetoothCircleFill.js";
11
11
  const I = y(
@@ -34,7 +34,7 @@ const I = y(
34
34
  }
35
35
  }
36
36
  }
37
- ), E = (t) => {
37
+ ), G = (t) => {
38
38
  const s = t.size ?? 48, i = {
39
39
  32: 12,
40
40
  40: 16,
@@ -47,7 +47,7 @@ const I = y(
47
47
  48: "heading-5",
48
48
  56: "heading-4",
49
49
  72: "heading-2"
50
- }, o = i[s] ?? 20, a = c[s] ?? "heading-5", { componentProps: m, content: p } = C(() => {
50
+ }, o = i[s] ?? 20, a = c[s] ?? "heading-5", { componentProps: m, content: p } = F(() => {
51
51
  if (t.appearance === "icon") {
52
52
  const { icon: n, ...r } = t;
53
53
  return {
@@ -69,11 +69,11 @@ const I = y(
69
69
  case "check":
70
70
  return /* @__PURE__ */ e(S, { size: o });
71
71
  case "error":
72
- return /* @__PURE__ */ e(N, { size: o });
73
- case "warning":
74
72
  return /* @__PURE__ */ e(k, { size: o });
73
+ case "warning":
74
+ return /* @__PURE__ */ e(N, { size: o });
75
75
  case "info":
76
- return /* @__PURE__ */ e(F, { size: o });
76
+ return /* @__PURE__ */ e(C, { size: o });
77
77
  case "loader":
78
78
  return /* @__PURE__ */ e(P, { size: o });
79
79
  }
@@ -108,5 +108,5 @@ const I = y(
108
108
  );
109
109
  };
110
110
  export {
111
- E as Spot
111
+ G as Spot
112
112
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/Stepper.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2B5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,GAAI,wGAUrB,YAAY,4CAkId,CAAC"}
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/Stepper.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2B5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,GAAI,wGAUrB,YAAY,4CAwId,CAAC"}
@@ -1,11 +1,12 @@
1
- import { jsxs as i, jsx as s } from "react/jsx-runtime";
2
- import { useDisabledContext as w, cn as o, getStepperCalculations as $ } from "../../../../libs/utils-shared/dist/index.js";
3
- import { cva as j } from "class-variance-authority";
4
- import { useId as z } from "react";
5
- const L = {
1
+ import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
+ import { useDisabledContext as w, cn as l, getStepperCalculations as $ } from "../../../../libs/utils-shared/dist/index.js";
3
+ import { cva as z } from "class-variance-authority";
4
+ import { useId as M } from "react";
5
+ import { useCommonTranslation as j } from "../../../../translations/translations.js";
6
+ const A = {
6
7
  md: { px: 48, strokeWidth: 4, root: "size-48", label: "body-2" },
7
8
  lg: { px: 72, strokeWidth: 6, root: "size-72", label: "heading-4" }
8
- }, I = j("transition-[stroke] duration-300 ease-in-out", {
9
+ }, I = z("transition-[stroke] duration-300 ease-in-out", {
9
10
  variants: {
10
11
  appearance: { accent: "", success: "" },
11
12
  disabled: { true: "", false: "" }
@@ -23,58 +24,60 @@ const L = {
23
24
  },
24
25
  { disabled: !0, class: "stroke-muted-subtle-hover" }
25
26
  ]
26
- }), S = ({
27
- className: f,
27
+ }), E = ({
28
+ className: k,
28
29
  appearance: x = "accent",
29
30
  size: b = "md",
30
- currentStep: l,
31
+ currentStep: r,
31
32
  totalSteps: a,
32
- disabled: y = !1,
33
- label: n,
34
- ref: g,
35
- ...v
33
+ disabled: g = !1,
34
+ label: t,
35
+ ref: y,
36
+ ...N
36
37
  }) => {
37
- const r = w({
38
+ const o = w({
38
39
  consumerName: "Stepper",
39
- mergeWith: { disabled: y }
40
- }), u = z(), {
40
+ mergeWith: { disabled: g }
41
+ }), { t: v } = j(), u = M(), {
41
42
  px: e,
42
- strokeWidth: t,
43
- root: N,
43
+ strokeWidth: i,
44
+ root: D,
44
45
  label: c
45
- } = L[b], {
46
- displayLabel: D,
46
+ } = A[b], {
47
47
  r: d,
48
48
  cx: m,
49
49
  cy: h,
50
50
  progressDashArray: p,
51
51
  progressMaskDashArray: C,
52
52
  progressDashOffset: W,
53
- dashPatternOffset: k
53
+ dashPatternOffset: f
54
54
  } = $({
55
- currentStep: l,
55
+ currentStep: r,
56
56
  totalSteps: a,
57
57
  size: e,
58
- label: n,
59
- strokeWidth: t
58
+ label: t,
59
+ strokeWidth: i
60
60
  });
61
- return /* @__PURE__ */ i(
61
+ return /* @__PURE__ */ n(
62
62
  "div",
63
63
  {
64
- ref: g,
64
+ ref: y,
65
65
  role: "progressbar",
66
- "aria-valuenow": l,
66
+ "aria-valuenow": r,
67
67
  "aria-valuemin": 1,
68
68
  "aria-valuemax": a,
69
- "aria-label": D,
70
- className: o(
69
+ "aria-label": t ?? v("components.stepper.progressAriaLabel", {
70
+ currentStep: Math.min(Math.max(r, 0), a),
71
+ totalSteps: a
72
+ }),
73
+ className: l(
71
74
  "relative flex shrink-0 items-center justify-center rounded-full",
72
- N,
73
- f
75
+ D,
76
+ k
74
77
  ),
75
- ...v,
78
+ ...N,
76
79
  children: [
77
- /* @__PURE__ */ i(
80
+ /* @__PURE__ */ n(
78
81
  "svg",
79
82
  {
80
83
  width: e,
@@ -94,9 +97,9 @@ const L = {
94
97
  strokeLinecap: "round",
95
98
  className: "stroke-muted-subtle",
96
99
  style: {
97
- strokeWidth: `${t}px`,
100
+ strokeWidth: `${i}px`,
98
101
  strokeDasharray: p,
99
- strokeDashoffset: k
102
+ strokeDashoffset: f
100
103
  }
101
104
  }
102
105
  ),
@@ -119,7 +122,7 @@ const L = {
119
122
  stroke: "white",
120
123
  className: "transition-[stroke-dashoffset] duration-300 ease-in-out",
121
124
  style: {
122
- strokeWidth: `${t}px`,
125
+ strokeWidth: `${i}px`,
123
126
  strokeDasharray: C,
124
127
  strokeDashoffset: W
125
128
  }
@@ -137,31 +140,31 @@ const L = {
137
140
  stroke: "currentColor",
138
141
  strokeLinecap: "round",
139
142
  mask: `url(#${u})`,
140
- className: I({ appearance: x, disabled: r }),
143
+ className: I({ appearance: x, disabled: o }),
141
144
  style: {
142
- strokeWidth: `${t}px`,
145
+ strokeWidth: `${i}px`,
143
146
  strokeDasharray: p,
144
- strokeDashoffset: k
147
+ strokeDashoffset: f
145
148
  }
146
149
  }
147
150
  )
148
151
  ]
149
152
  }
150
153
  ),
151
- /* @__PURE__ */ s("span", { className: "absolute inset-0 m-4 flex min-w-0 items-center justify-center text-base", children: n ? /* @__PURE__ */ s(
154
+ /* @__PURE__ */ s("span", { className: "absolute inset-0 m-4 flex min-w-0 items-center justify-center text-base", children: t ? /* @__PURE__ */ s(
152
155
  "span",
153
156
  {
154
- className: o(c, "truncate", r && "text-disabled"),
155
- children: n
157
+ className: l(c, "truncate", o && "text-disabled"),
158
+ children: t
156
159
  }
157
- ) : /* @__PURE__ */ i("span", { className: "truncate", children: [
158
- /* @__PURE__ */ s("span", { className: o(c, r && "text-disabled"), children: Math.min(Math.max(l, 0), a) }),
159
- /* @__PURE__ */ i(
160
+ ) : /* @__PURE__ */ n("span", { className: "truncate", children: [
161
+ /* @__PURE__ */ s("span", { className: l(c, o && "text-disabled"), children: Math.min(Math.max(r, 0), a) }),
162
+ /* @__PURE__ */ n(
160
163
  "span",
161
164
  {
162
- className: o(
165
+ className: l(
163
166
  c,
164
- r ? "text-disabled" : "text-muted"
167
+ o ? "text-disabled" : "text-muted"
165
168
  ),
166
169
  children: [
167
170
  "/",
@@ -175,5 +178,5 @@ const L = {
175
178
  );
176
179
  };
177
180
  export {
178
- S as Stepper
181
+ E as Stepper
179
182
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Subheader/Subheader.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,kDAK5B,mBAAmB,4CAYrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,4CAK1B,iBAAiB,4CAgBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CAUrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,wCAK3B,kBAAkB,4CAcpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,sBAAsB,4CAaxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,mCAIlC,yBAAyB,4CAM3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,SAAS,GAAI,mCAIvB,cAAc,4CAMhB,CAAC"}
1
+ {"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Subheader/Subheader.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,kDAK5B,mBAAmB,4CAYrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,4CAK1B,iBAAiB,4CAgBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CAUrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,wCAK3B,kBAAkB,4CAepB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,sBAAsB,4CAaxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,mCAIlC,yBAAyB,4CAM3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,SAAS,GAAI,mCAIvB,cAAc,4CAMhB,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { cn as s } from "../../../../libs/utils-shared/dist/index.js";
3
- import { Information as i } from "../../symbols/icons/Information.js";
4
- import { ChevronRight as m } from "../../symbols/icons/ChevronRight.js";
5
- import { InteractiveIcon as c } from "../InteractiveIcon/InteractiveIcon.js";
6
- const b = ({
3
+ import { useCommonTranslation as i } from "../../../../translations/translations.js";
4
+ import { Information as m } from "../../symbols/icons/Information.js";
5
+ import { ChevronRight as c } from "../../symbols/icons/ChevronRight.js";
6
+ import { InteractiveIcon as u } from "../InteractiveIcon/InteractiveIcon.js";
7
+ const x = ({
7
8
  children: r,
8
9
  as: e = "h2",
9
10
  className: t,
@@ -18,7 +19,7 @@ const b = ({
18
19
  ...n,
19
20
  children: r
20
21
  }
21
- ), f = ({
22
+ ), g = ({
22
23
  children: r,
23
24
  onClick: e,
24
25
  className: t,
@@ -35,7 +36,7 @@ const b = ({
35
36
  ...n,
36
37
  children: r
37
38
  }
38
- ), x = ({
39
+ ), v = ({
39
40
  value: r,
40
41
  format: e,
41
42
  className: t,
@@ -50,23 +51,26 @@ const b = ({
50
51
  children: a
51
52
  }
52
53
  );
53
- }, g = ({
54
+ }, N = ({
54
55
  ref: r,
55
56
  iconType: e = "stroked",
56
57
  className: t,
57
58
  ...n
58
- }) => /* @__PURE__ */ o("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ o(
59
- c,
60
- {
61
- ref: r,
62
- iconType: e,
63
- icon: i,
64
- size: 16,
65
- className: t,
66
- "aria-label": "More information",
67
- ...n
68
- }
69
- ) }), v = ({
59
+ }) => {
60
+ const { t: a } = i();
61
+ return /* @__PURE__ */ o("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ o(
62
+ u,
63
+ {
64
+ ref: r,
65
+ iconType: e,
66
+ icon: m,
67
+ size: 16,
68
+ className: t,
69
+ "aria-label": a("components.subheader.moreInfoAriaLabel"),
70
+ ...n
71
+ }
72
+ ) });
73
+ }, S = ({
70
74
  className: r,
71
75
  ...e
72
76
  }) => /* @__PURE__ */ o(
@@ -78,23 +82,23 @@ const b = ({
78
82
  r
79
83
  ),
80
84
  ...e,
81
- children: /* @__PURE__ */ o(m, { size: 24 })
85
+ children: /* @__PURE__ */ o(c, { size: 24 })
82
86
  }
83
- ), S = ({
87
+ ), w = ({
84
88
  children: r,
85
89
  className: e,
86
90
  ...t
87
- }) => /* @__PURE__ */ o("p", { className: s("body-3 text-muted", e), ...t, children: r }), w = ({
91
+ }) => /* @__PURE__ */ o("p", { className: s("body-3 text-muted", e), ...t, children: r }), I = ({
88
92
  className: r,
89
93
  children: e,
90
94
  ...t
91
95
  }) => /* @__PURE__ */ o("div", { className: s("flex flex-col gap-4", r), ...t, children: e });
92
96
  export {
93
- w as Subheader,
94
- x as SubheaderCount,
95
- S as SubheaderDescription,
96
- g as SubheaderInfo,
97
- f as SubheaderRow,
98
- v as SubheaderShowMore,
99
- b as SubheaderTitle
97
+ I as Subheader,
98
+ v as SubheaderCount,
99
+ w as SubheaderDescription,
100
+ N as SubheaderInfo,
101
+ g as SubheaderRow,
102
+ S as SubheaderShowMore,
103
+ x as SubheaderTitle
100
104
  };
@@ -1,4 +1,4 @@
1
- import { jsx as t } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import { useDisabledContext as h, cn as s } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import * as a from "@radix-ui/react-switch";
4
4
  import { cva as d } from "class-variance-authority";
@@ -39,7 +39,7 @@ const b = d(
39
39
  selected: r,
40
40
  defaultSelected: n,
41
41
  onChange: c,
42
- size: e = "md",
42
+ size: t = "md",
43
43
  disabled: l,
44
44
  ...u
45
45
  }) => {
@@ -47,17 +47,17 @@ const b = d(
47
47
  consumerName: "Switch",
48
48
  mergeWith: { disabled: l }
49
49
  });
50
- return /* @__PURE__ */ t(
50
+ return /* @__PURE__ */ e(
51
51
  a.Root,
52
52
  {
53
53
  ref: i,
54
- className: s(b({ size: e }), o),
54
+ className: s(b({ size: t }), o),
55
55
  checked: r,
56
56
  defaultChecked: n,
57
57
  onCheckedChange: c,
58
58
  disabled: m,
59
59
  ...u,
60
- children: /* @__PURE__ */ t(a.Thumb, { className: g({ size: e }) })
60
+ children: /* @__PURE__ */ e(a.Thumb, { className: g({ size: t }) })
61
61
  }
62
62
  );
63
63
  };
@@ -4,7 +4,7 @@ import { cva as c } from "class-variance-authority";
4
4
  import { useThrottledScrollBottom as N } from "./utils/useThrottledScrollBottom.js";
5
5
  import { Spot as w } from "../Spot/Spot.js";
6
6
  import { Information as y } from "../../symbols/icons/Information.js";
7
- import { useCommonTranslation as R } from "../../../../i18n/useCommonTranslation.js";
7
+ import { useCommonTranslation as R } from "../../../../translations/translations.js";
8
8
  import { ChevronUpDown as B } from "../../symbols/icons/ChevronUpDown.js";
9
9
  import { ChevronDescending as j } from "../../symbols/icons/ChevronDescending.js";
10
10
  import { ChevronAscending as I } from "../../symbols/icons/ChevronAscending.js";
@@ -107,7 +107,7 @@ const [k, u] = h("Table"), q = c(
107
107
  ...o,
108
108
  children: n
109
109
  }
110
- ), L = c("", {
110
+ ), S = c("", {
111
111
  variants: {
112
112
  appearance: {
113
113
  "no-background": "bg-canvas",
@@ -133,7 +133,7 @@ const [k, u] = h("Table"), q = c(
133
133
  "tr",
134
134
  {
135
135
  ref: a,
136
- className: L({ appearance: o, stickyHeader: t, className: e }),
136
+ className: S({ appearance: o, stickyHeader: t, className: e }),
137
137
  ...r,
138
138
  children: n
139
139
  }
@@ -197,7 +197,7 @@ const [k, u] = h("Table"), q = c(
197
197
  ...o,
198
198
  children: /* @__PURE__ */ l("div", { className: p.inner({ align: a }), children: n })
199
199
  }
200
- ), [S, m] = h("TableCellItem", { align: "start" }), V = c("flex min-w-0 items-center gap-12", {
200
+ ), [V, m] = h("TableCellItem", { align: "start" }), L = c("flex min-w-0 items-center gap-12", {
201
201
  variants: {
202
202
  align: {
203
203
  start: "text-start",
@@ -210,11 +210,11 @@ const [k, u] = h("Table"), q = c(
210
210
  children: t,
211
211
  ref: a,
212
212
  ...r
213
- }) => /* @__PURE__ */ l(S, { value: { align: e }, children: /* @__PURE__ */ l(
213
+ }) => /* @__PURE__ */ l(V, { value: { align: e }, children: /* @__PURE__ */ l(
214
214
  "div",
215
215
  {
216
216
  ref: a,
217
- className: V({ align: e, className: n }),
217
+ className: L({ align: e, className: n }),
218
218
  ...r,
219
219
  children: t
220
220
  }
@@ -1,17 +1,17 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { createSafeContext as c } from "../../../../libs/utils-shared/dist/index.js";
3
- import { useMemo as n } from "react";
2
+ import { createSafeContext as n } from "../../../../libs/utils-shared/dist/index.js";
3
+ import { useMemo as c } from "react";
4
4
  import { COLOR_SCHEMES as i } from "./ThemeProvider.types.js";
5
5
  import { useResolvedColorScheme as h, useRootColorModeSideEffect as u } from "./useRootColorModeSideEffect.js";
6
- import { I18nProvider as d } from "../../../../i18n/I18nProvider.js";
7
- const [f, l] = c("ThemeProvider"), a = ({
6
+ import { TranslationsProvider as d } from "../../../../translations/translations.js";
7
+ const [f, l] = n("ThemeProvider"), x = ({
8
8
  children: o,
9
9
  colorScheme: t = i.system,
10
10
  locale: m
11
11
  }) => {
12
12
  const e = h(t);
13
13
  u(e);
14
- const s = n(
14
+ const s = c(
15
15
  () => ({
16
16
  colorScheme: e
17
17
  }),
@@ -23,6 +23,6 @@ const [f, l] = c("ThemeProvider"), a = ({
23
23
  contextRequired: !0
24
24
  });
25
25
  export {
26
- a as ThemeProvider,
26
+ x as ThemeProvider,
27
27
  P as useTheme
28
28
  };
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { SupportedLocale } from '../../../../i18n';
2
+ import { SupportedLocale } from '../../../../translations';
3
3
  export declare const COLOR_SCHEMES: {
4
4
  readonly light: "light";
5
5
  readonly dark: "dark";
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/ThemeProvider/ThemeProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/ThemeProvider/ThemeProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { jsxs as x, jsx as t } from "react/jsx-runtime";
2
2
  import { useDisabledContext as g, cn as v } from "../../../../libs/utils-shared/dist/index.js";
3
- import { Slot as y, Slottable as C } from "@radix-ui/react-slot";
3
+ import { Slot as y, Slottable as N } from "@radix-ui/react-slot";
4
4
  import { cva as i } from "class-variance-authority";
5
- import { useCallback as N } from "react";
6
- const V = i(
5
+ import { useCallback as V } from "react";
6
+ const h = i(
7
7
  [
8
8
  "flex flex-col items-center gap-8 rounded-md p-12",
9
9
  "bg-surface body-2-semi-bold transition-colors",
@@ -29,7 +29,7 @@ const V = i(
29
29
  isFull: !1
30
30
  }
31
31
  }
32
- ), h = i("shrink-0", {
32
+ ), k = i("shrink-0", {
33
33
  variants: {
34
34
  appearance: {
35
35
  gray: "text-base",
@@ -59,7 +59,7 @@ const V = i(
59
59
  const e = g({
60
60
  consumerName: "TileButton",
61
61
  mergeWith: { disabled: c }
62
- }), p = N(
62
+ }), p = V(
63
63
  (o) => {
64
64
  if (e) {
65
65
  o.preventDefault();
@@ -75,7 +75,7 @@ const V = i(
75
75
  ref: n,
76
76
  type: a ? void 0 : "button",
77
77
  className: v(
78
- V({ disabled: e, isFull: u, appearance: l }),
78
+ h({ disabled: e, isFull: u, appearance: l }),
79
79
  b
80
80
  ),
81
81
  onClick: p,
@@ -84,8 +84,8 @@ const V = i(
84
84
  "aria-label": f,
85
85
  ...m,
86
86
  children: [
87
- /* @__PURE__ */ t(d, { size: 20, className: h({ disabled: e, appearance: l }) }),
88
- a ? /* @__PURE__ */ t(C, { children: s }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-center", children: s })
87
+ /* @__PURE__ */ t(d, { size: 20, className: k({ disabled: e, appearance: l }) }),
88
+ a ? /* @__PURE__ */ t(N, { children: s }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-center", children: s })
89
89
  ]
90
90
  }
91
91
  );
@@ -5,14 +5,14 @@ import { Spinner as c } from "../Spinner/Spinner.js";
5
5
  import { ClockFill as u } from "../../symbols/icons/ClockFill.js";
6
6
  import { DeleteCircleFill as x } from "../../symbols/icons/DeleteCircleFill.js";
7
7
  import { CheckmarkCircleFill as f } from "../../symbols/icons/CheckmarkCircleFill.js";
8
- const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
8
+ const [p, m] = d("TimelineItem"), N = o("min-w-0 truncate body-2-semi-bold", {
9
9
  variants: {
10
10
  muted: {
11
11
  true: "text-muted",
12
12
  false: "text-base"
13
13
  }
14
14
  }
15
- }), N = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "size-12 rounded-full bg-muted-pressed" }), b = {
15
+ }), h = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "size-12 rounded-full bg-muted-pressed" }), b = {
16
16
  success: /* @__PURE__ */ t(f, { "aria-hidden": !0, className: "text-success", size: 24 }),
17
17
  error: /* @__PURE__ */ t(x, { "aria-hidden": !0, className: "text-error", size: 24 }),
18
18
  pending: /* @__PURE__ */ t(u, { "aria-hidden": !0, className: "text-muted", size: 24 }),
@@ -29,7 +29,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
29
29
  {
30
30
  className: "mt-16 flex size-32 shrink-0 items-center justify-center self-start",
31
31
  "data-testid": `timeline-indicator-${e ?? "neutral"}`,
32
- children: e ? b[e] : N
32
+ children: e ? b[e] : h
33
33
  }
34
34
  ), T = () => /* @__PURE__ */ l(
35
35
  "div",
@@ -113,7 +113,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
113
113
  ]
114
114
  }
115
115
  );
116
- }, L = ({
116
+ }, S = ({
117
117
  ref: e,
118
118
  children: i,
119
119
  className: n,
@@ -126,7 +126,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
126
126
  ...r,
127
127
  children: i
128
128
  }
129
- ), S = ({
129
+ ), q = ({
130
130
  ref: e,
131
131
  children: i,
132
132
  className: n,
@@ -139,7 +139,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
139
139
  ...r,
140
140
  children: i
141
141
  }
142
- ), q = ({
142
+ ), B = ({
143
143
  ref: e,
144
144
  children: i,
145
145
  className: n,
@@ -152,7 +152,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
152
152
  ...r,
153
153
  children: i
154
154
  }
155
- ), B = ({
155
+ ), D = ({
156
156
  ref: e,
157
157
  children: i,
158
158
  className: n,
@@ -166,12 +166,12 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
166
166
  "div",
167
167
  {
168
168
  ref: e,
169
- className: s(h({ muted: a === "idle" }), n),
169
+ className: s(N({ muted: a === "idle" }), n),
170
170
  ...r,
171
171
  children: i
172
172
  }
173
173
  );
174
- }, D = ({
174
+ }, H = ({
175
175
  ref: e,
176
176
  children: i,
177
177
  className: n,
@@ -184,7 +184,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
184
184
  ...r,
185
185
  children: i
186
186
  }
187
- ), H = ({
187
+ ), L = ({
188
188
  ref: e,
189
189
  children: i,
190
190
  className: n,
@@ -218,11 +218,11 @@ export {
218
218
  R as Timeline,
219
219
  j as TimelineItem,
220
220
  P as TimelineItemBody,
221
- q as TimelineItemCaption,
222
- D as TimelineItemDescription,
221
+ B as TimelineItemCaption,
222
+ H as TimelineItemDescription,
223
223
  F as TimelineItemHeader,
224
- L as TimelineItemLeading,
225
- S as TimelineItemLeadingRow,
226
- B as TimelineItemTitle,
227
- H as TimelineItemTrailing
224
+ S as TimelineItemLeading,
225
+ q as TimelineItemLeadingRow,
226
+ D as TimelineItemTitle,
227
+ L as TimelineItemTrailing
228
228
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as l } from "../../../../libs/utils-shared/dist/index.js";
3
- import { toastVariants as x } from "./styles.js";
4
- import { useCommonTranslation as N } from "../../../../i18n/useCommonTranslation.js";
3
+ import { toastVariants as N } from "./styles.js";
4
+ import { useCommonTranslation as x } from "../../../../translations/translations.js";
5
5
  import { Spinner as v } from "../Spinner/Spinner.js";
6
6
  import { Button as u } from "../Button/Button.js";
7
7
  import { IconButton as k } from "../IconButton/IconButton.js";
@@ -25,13 +25,13 @@ const g = {
25
25
  role: p,
26
26
  ...d
27
27
  }) => {
28
- const { t: h } = N(), t = i || s !== "info";
28
+ const { t: h } = x(), t = i || s !== "info";
29
29
  return /* @__PURE__ */ a(
30
30
  "div",
31
31
  {
32
32
  ref: n,
33
33
  role: p ?? (s === "error" || s === "warning" ? "alert" : "status"),
34
- className: l(x({ hasLeading: t }), f),
34
+ className: l(N({ hasLeading: t }), f),
35
35
  ...d,
36
36
  children: [
37
37
  i ? /* @__PURE__ */ e("div", { className: "pt-10", children: /* @__PURE__ */ e(v, { size: 20, className: "shrink-0 text-on-interactive" }) }) : s !== "info" && /* @__PURE__ */ e("span", { className: "flex shrink-0 pt-10", children: g[s] }),