@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
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './lib/Components';
2
- export { type SupportedLocale, Languages } from './i18n';
2
+ export { type SupportedLocale, Languages } from './translations';
3
3
  export { useControllableState } from './utils/useControllableState';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Languages as t } from "./i18n/languages.js";
1
+ import { Languages as t } from "./translations/languages.js";
2
2
  import { useControllableState as n } from "./utils/useControllableState/useControllableState.js";
3
3
  import { AddressInput as i } from "./lib/Components/core/AddressInput/AddressInput.js";
4
4
  import { AmountInput as m } from "./lib/Components/core/AmountInput/AmountInput.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { useCommonTranslation as f } from "../../../../i18n/useCommonTranslation.js";
2
+ import { useCommonTranslation as f } from "../../../../translations/translations.js";
3
3
  import { QrCode as p } from "../../symbols/icons/QrCode.js";
4
4
  import { BaseInput as m } from "../../internal/BaseInput/BaseInput.js";
5
5
  import { InteractiveIcon as c } from "../InteractiveIcon/InteractiveIcon.js";
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
2
  import { useSplitText as y, buildAriaLabel as w, cn as m } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { memo as u } from "react";
4
4
  import { DIGITS as v } from "./types.js";
5
- import { useCommonTranslation as D } from "../../../../i18n/useCommonTranslation.js";
5
+ import { useCommonTranslation as D } from "../../../../translations/translations.js";
6
6
  const o = {
7
7
  "heading-1-semi-bold": {
8
8
  0: 25,
@@ -1,10 +1,10 @@
1
- import { jsxs as z, jsx as a } from "react/jsx-runtime";
2
- import { useDisabledContext as M, useMergedRef as D, getFontSize as F, cn as f } from "../../../../libs/utils-shared/dist/index.js";
1
+ import { jsxs as k, jsx as a } from "react/jsx-runtime";
2
+ import { useDisabledContext as z, useMergedRef as F, getFontSize as D, cn as f } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as i } from "class-variance-authority";
4
4
  import { useMemo as W } from "react";
5
5
  import { useAmountInputValue as q } from "./useAmountInputValue/useAmountInputValue.js";
6
- import { useAutoWidthInput as E } from "./useAutoWidthInput/useAutoWidthInput.js";
7
- const L = i(
6
+ import { useAutoWidthInput as B } from "./useAutoWidthInput/useAutoWidthInput.js";
7
+ const E = i(
8
8
  [
9
9
  "bg-transparent caret-active outline-hidden transition-colors",
10
10
  "text-base placeholder:text-muted-subtle",
@@ -46,7 +46,7 @@ const L = i(
46
46
  size: "md"
47
47
  }
48
48
  }
49
- ), B = i("invisible absolute whitespace-pre", {
49
+ ), G = i("invisible absolute whitespace-pre", {
50
50
  variants: {
51
51
  size: {
52
52
  md: "heading-0-semi-bold",
@@ -56,7 +56,7 @@ const L = i(
56
56
  defaultVariants: {
57
57
  size: "md"
58
58
  }
59
- }), G = i(
59
+ }), H = i(
60
60
  "group relative flex w-full items-center overflow-visible transition-transform",
61
61
  {
62
62
  variants: {
@@ -83,17 +83,17 @@ const L = i(
83
83
  allowDecimals: x = !0,
84
84
  thousandsSeparator: w = !0,
85
85
  decimalSeparator: y = ".",
86
- value: C,
87
- onChange: S,
86
+ value: S,
87
+ onChange: C,
88
88
  placeholder: d,
89
89
  ...V
90
90
  }) => {
91
- const A = M({
91
+ const A = z({
92
92
  consumerName: "AmountInput",
93
93
  mergeWith: { disabled: g }
94
- }), { inputValue: n, isChanging: j, setIsChanging: I, handleChange: N } = q({
95
- value: C,
96
- onChange: S,
94
+ }), { inputValue: n, isChanging: N, setIsChanging: j, handleChange: I } = q({
95
+ value: S,
96
+ onChange: C,
97
97
  formatOptions: {
98
98
  allowDecimals: x,
99
99
  thousandsSeparator: w,
@@ -101,18 +101,18 @@ const L = i(
101
101
  maxDecimalLength: v,
102
102
  decimalSeparator: y
103
103
  }
104
- }), u = n === "" ? d ?? "" : n, { spanRef: k, inputRef: m } = E({
104
+ }), u = n === "" ? d ?? "" : n, { spanRef: M, inputRef: m } = B({
105
105
  inputValue: u,
106
106
  currencyText: t,
107
107
  size: e
108
- }), R = D(r, m), s = { fontSize: W(
109
- () => F(n, e) + "px",
108
+ }), R = F(r, m), s = { fontSize: W(
109
+ () => D(n, e) + "px",
110
110
  [n, e]
111
111
  ), letterSpacing: "normal" };
112
- return /* @__PURE__ */ z(
112
+ return /* @__PURE__ */ k(
113
113
  "div",
114
114
  {
115
- className: G({ align: h }),
115
+ className: H({ align: h }),
116
116
  onPointerDown: () => {
117
117
  const p = m.current;
118
118
  p && window.requestAnimationFrame(() => {
@@ -124,8 +124,8 @@ const L = i(
124
124
  /* @__PURE__ */ a(
125
125
  "span",
126
126
  {
127
- ref: k,
128
- className: B({ size: e }),
127
+ ref: M,
128
+ className: G({ size: e }),
129
129
  "aria-hidden": "true",
130
130
  style: s,
131
131
  children: u
@@ -140,9 +140,9 @@ const L = i(
140
140
  disabled: A,
141
141
  value: n,
142
142
  placeholder: d,
143
- onChange: N,
144
- onAnimationEnd: () => I(!1),
145
- className: f(L({ size: e, isChanging: j }), o),
143
+ onChange: I,
144
+ onAnimationEnd: () => j(!1),
145
+ className: f(E({ size: e, isChanging: N }), o),
146
146
  ...V,
147
147
  style: s
148
148
  }
@@ -2,9 +2,9 @@ import { jsxs as h, jsx as t } from "react/jsx-runtime";
2
2
  import { cn as p } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as m } from "class-variance-authority";
4
4
  import { useState as z, useEffect as y } from "react";
5
- import { getAvatarFallbackTextColor as j } from "./resolveAvatarColor.js";
6
- import { useCommonTranslation as A } from "../../../../i18n/useCommonTranslation.js";
7
- import { User as C } from "../../symbols/icons/User.js";
5
+ import { getAvatarFallbackTextColor as N } from "./resolveAvatarColor.js";
6
+ import { useCommonTranslation as j } from "../../../../translations/translations.js";
7
+ import { User as A } from "../../symbols/icons/User.js";
8
8
  const c = {
9
9
  root: m(
10
10
  "relative inline-flex items-center justify-center rounded-full bg-base-transparent-hover align-middle transition-colors",
@@ -36,7 +36,7 @@ const c = {
36
36
  }
37
37
  }
38
38
  })
39
- }, N = {
39
+ }, C = {
40
40
  xs: 12,
41
41
  sm: 16,
42
42
  md: 24,
@@ -49,9 +49,9 @@ const c = {
49
49
  fallbackColor: e
50
50
  }) => {
51
51
  const s = {
52
- color: j(e)
52
+ color: N(e)
53
53
  };
54
- return r ? /* @__PURE__ */ t("span", { className: c.text({ size: o }), style: s, children: r }) : /* @__PURE__ */ t(C, { style: s, size: N[o], "aria-hidden": "true" });
54
+ return r ? /* @__PURE__ */ t("span", { className: c.text({ size: o }), style: s, children: r }) : /* @__PURE__ */ t(A, { style: s, size: C[o], "aria-hidden": "true" });
55
55
  }, q = ({
56
56
  ref: o,
57
57
  className: r,
@@ -64,7 +64,7 @@ const c = {
64
64
  appearance: i,
65
65
  ...v
66
66
  }) => {
67
- const { t: f } = A(), [x, l] = z(!1), d = !e || x, g = s || f("components.avatar.defaultAriaLabel");
67
+ const { t: f } = j(), [x, l] = z(!1), d = !e || x, g = s || f("components.avatar.defaultAriaLabel");
68
68
  return y(() => {
69
69
  l(!1);
70
70
  }, [e]), /* @__PURE__ */ h(
@@ -1,10 +1,10 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
2
  import { useDisabledContext as f, cn as v } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { Avatar as m } from "../Avatar/Avatar.js";
4
- const A = ({
5
- ref: o,
6
- className: s,
7
- src: t,
4
+ const N = ({
5
+ ref: t,
6
+ className: o,
7
+ src: s,
8
8
  alt: r,
9
9
  size: a,
10
10
  imgLoading: n,
@@ -21,19 +21,19 @@ const A = ({
21
21
  return /* @__PURE__ */ p(
22
22
  "button",
23
23
  {
24
- ref: o,
24
+ ref: t,
25
25
  type: "button",
26
26
  disabled: c,
27
27
  className: v(
28
28
  "group relative cursor-pointer rounded-full focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-focus disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-30",
29
- s
29
+ o
30
30
  ),
31
31
  ...b,
32
32
  children: [
33
33
  /* @__PURE__ */ e(
34
34
  m,
35
35
  {
36
- src: t,
36
+ src: s,
37
37
  alt: r,
38
38
  size: a,
39
39
  imgLoading: n,
@@ -48,5 +48,5 @@ const A = ({
48
48
  );
49
49
  };
50
50
  export {
51
- A as AvatarButton
51
+ N as AvatarButton
52
52
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import { cn as t } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as b } from "class-variance-authority";
4
- import { useCommonTranslation as g } from "../../../../i18n/useCommonTranslation.js";
4
+ import { useCommonTranslation as g } from "../../../../translations/translations.js";
5
5
  import { IconButton as N } from "../IconButton/IconButton.js";
6
6
  import { Close as h } from "../../symbols/icons/Close.js";
7
7
  import { DeleteCircleFill as u } from "../../symbols/icons/DeleteCircleFill.js";
@@ -1,8 +1,8 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { cn as n } from "../../../../libs/utils-shared/dist/index.js";
3
- import { cva as d } from "class-variance-authority";
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { cn as d } from "../../../../libs/utils-shared/dist/index.js";
3
+ import { cva as e } from "class-variance-authority";
4
4
  import { BaseButton as b } from "../../internal/BaseButton/BaseButton.js";
5
- const l = d("", {
5
+ const l = e("", {
6
6
  variants: {
7
7
  size: {
8
8
  sm: "px-16 py-10 body-2-semi-bold",
@@ -22,7 +22,7 @@ const l = d("", {
22
22
  size: o,
23
23
  icon: i,
24
24
  ...p
25
- }) => /* @__PURE__ */ e(
25
+ }) => /* @__PURE__ */ n(
26
26
  b,
27
27
  {
28
28
  ref: t,
@@ -30,7 +30,7 @@ const l = d("", {
30
30
  disabled: r,
31
31
  icon: i,
32
32
  loading: s,
33
- className: n(l({ size: o }), "gap-8", m),
33
+ className: d(l({ size: o }), "gap-8", m),
34
34
  ...p,
35
35
  children: a
36
36
  }
@@ -3,8 +3,8 @@ import { createSafeContext as m, DisabledProvider as g, cn as o, getButtonA11yPr
3
3
  import { cva as v } from "class-variance-authority";
4
4
  import { useMemo as h } from "react";
5
5
  import { ChevronUp as N } from "../../symbols/icons/ChevronUp.js";
6
- import { ChevronDown as w } from "../../symbols/icons/ChevronDown.js";
7
- const k = ({
6
+ import { ChevronDown as k } from "../../symbols/icons/ChevronDown.js";
7
+ const w = ({
8
8
  type: r,
9
9
  expanded: t,
10
10
  onClick: a,
@@ -83,7 +83,7 @@ const k = ({
83
83
  ...p
84
84
  }) => {
85
85
  const u = h(
86
- () => k({
86
+ () => w({
87
87
  type: a,
88
88
  expanded: e,
89
89
  onClick: d,
@@ -143,7 +143,7 @@ const k = ({
143
143
  t,
144
144
  l && /* @__PURE__ */ f(b, { children: [
145
145
  d && /* @__PURE__ */ n(N, { className: "text-muted", size: 20 }),
146
- !d && /* @__PURE__ */ n(w, { className: "text-muted", size: 20 })
146
+ !d && /* @__PURE__ */ n(k, { className: "text-muted", size: 20 })
147
147
  ] })
148
148
  ]
149
149
  }
@@ -184,7 +184,7 @@ const k = ({
184
184
  children: t
185
185
  }
186
186
  );
187
- }, L = ({
187
+ }, I = ({
188
188
  ref: r,
189
189
  children: t,
190
190
  className: a,
@@ -207,7 +207,7 @@ const k = ({
207
207
  children: t
208
208
  }
209
209
  );
210
- }, I = ({
210
+ }, J = ({
211
211
  ref: r,
212
212
  children: t,
213
213
  className: a,
@@ -230,7 +230,7 @@ const k = ({
230
230
  children: t
231
231
  }
232
232
  );
233
- }, M = ({
233
+ }, L = ({
234
234
  ref: r,
235
235
  children: t,
236
236
  className: a,
@@ -253,7 +253,7 @@ const k = ({
253
253
  children: t
254
254
  }
255
255
  );
256
- }, S = ({
256
+ }, M = ({
257
257
  ref: r,
258
258
  children: t,
259
259
  className: a,
@@ -289,7 +289,7 @@ const k = ({
289
289
  appearance: "plain"
290
290
  }
291
291
  }
292
- ), U = ({
292
+ ), S = ({
293
293
  ref: r,
294
294
  children: t,
295
295
  className: a,
@@ -322,7 +322,7 @@ const k = ({
322
322
  ) })
323
323
  }
324
324
  );
325
- }, Z = ({
325
+ }, U = ({
326
326
  ref: r,
327
327
  children: t,
328
328
  className: a,
@@ -339,13 +339,13 @@ const k = ({
339
339
  export {
340
340
  P as Card,
341
341
  B as CardContent,
342
- M as CardContentDescription,
343
- L as CardContentRow,
344
- I as CardContentTitle,
345
- U as CardFooter,
346
- Z as CardFooterActions,
342
+ L as CardContentDescription,
343
+ I as CardContentRow,
344
+ J as CardContentTitle,
345
+ S as CardFooter,
346
+ U as CardFooterActions,
347
347
  T as CardHeader,
348
348
  z as CardLeading,
349
- S as CardTrailing,
350
- k as resolveCardInnerContext
349
+ M as CardTrailing,
350
+ w as resolveCardInnerContext
351
351
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
2
  import { cn as a } from "../../../../libs/utils-shared/dist/index.js";
3
- import { useCommonTranslation as m } from "../../../../i18n/useCommonTranslation.js";
3
+ import { useCommonTranslation as m } from "../../../../translations/translations.js";
4
4
  import { Close as p } from "../../symbols/icons/Close.js";
5
5
  import { InteractiveIcon as d } from "../InteractiveIcon/InteractiveIcon.js";
6
6
  const C = ({
@@ -2,14 +2,14 @@ import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
2
  import { createSafeContext as w, cn as R } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { flexRender as m } from "@tanstack/react-table";
4
4
  import { useCallback as x, Fragment as B } from "react";
5
- import { TableRoot as N, Table as k, TableLoadingRow as y, TableColGroup as H, TableCol as S, TableHeader as G, TableHeaderRow as v, TableHeaderCell as q, TableSortButton as I, TableBody as b, TableGroupHeaderRow as F, TableRow as L, TableCell as M } from "../Table/Table.js";
6
- import { SearchInput as P } from "../SearchInput/SearchInput.js";
7
- const [V, i] = w("DataTableContext"), Y = ({
5
+ import { TableRoot as N, Table as k, TableLoadingRow as y, TableColGroup as H, TableCol as S, TableHeader as G, TableHeaderRow as v, TableHeaderCell as q, TableSortButton as I, TableBody as b, TableGroupHeaderRow as F, TableRow as M, TableCell as P } from "../Table/Table.js";
6
+ import { SearchInput as V } from "../SearchInput/SearchInput.js";
7
+ const [j, i] = w("DataTableContext"), Y = ({
8
8
  table: l,
9
9
  appearance: n = "no-background",
10
- paginationMode: o = "none",
10
+ paginationMode: t = "none",
11
11
  loading: e = !1,
12
- onScrollBottom: t,
12
+ onScrollBottom: o,
13
13
  onRowClick: r,
14
14
  getRowProps: c,
15
15
  groupBy: s,
@@ -21,16 +21,16 @@ const [V, i] = w("DataTableContext"), Y = ({
21
21
  ref: C,
22
22
  ...f
23
23
  }) => /* @__PURE__ */ a(
24
- V,
24
+ j,
25
25
  {
26
26
  value: {
27
27
  hideHeader: T,
28
28
  stickyHeader: p,
29
- paginationMode: o,
29
+ paginationMode: t,
30
30
  table: l,
31
31
  appearance: n,
32
32
  loading: e,
33
- onScrollBottom: t,
33
+ onScrollBottom: o,
34
34
  onRowClick: r,
35
35
  getRowProps: c,
36
36
  groupBy: s,
@@ -38,18 +38,18 @@ const [V, i] = w("DataTableContext"), Y = ({
38
38
  },
39
39
  children: /* @__PURE__ */ a("div", { ref: C, className: R("flex flex-col", h), ...f, children: D })
40
40
  }
41
- ), j = () => {
41
+ ), L = () => {
42
42
  const { table: l } = i({
43
43
  consumerName: "DataTableColGroup",
44
44
  contextRequired: !0
45
45
  });
46
46
  return /* @__PURE__ */ a(H, { children: l.getVisibleLeafColumns().map((n) => {
47
- const o = n.columnDef.meta;
47
+ const t = n.columnDef.meta;
48
48
  return /* @__PURE__ */ a(
49
49
  S,
50
50
  {
51
- hideBelow: o?.hideBelow,
52
- className: o?.className
51
+ hideBelow: t?.hideBelow,
52
+ className: t?.className
53
53
  },
54
54
  n.id
55
55
  );
@@ -57,13 +57,13 @@ const [V, i] = w("DataTableContext"), Y = ({
57
57
  }, z = ({
58
58
  className: l,
59
59
  ref: n,
60
- ...o
60
+ ...t
61
61
  }) => {
62
- const { table: e, stickyHeader: t } = i({
62
+ const { table: e, stickyHeader: o } = i({
63
63
  consumerName: "DataTableHeader",
64
64
  contextRequired: !0
65
65
  });
66
- return /* @__PURE__ */ a(G, { ref: n, className: l, ...o, children: e.getHeaderGroups().map((r) => /* @__PURE__ */ a(v, { stickyHeader: t, children: r.headers.map((c) => {
66
+ return /* @__PURE__ */ a(G, { ref: n, className: l, ...t, children: e.getHeaderGroups().map((r) => /* @__PURE__ */ a(v, { stickyHeader: o, children: r.headers.map((c) => {
67
67
  const s = c.column.columnDef.meta;
68
68
  return /* @__PURE__ */ a(
69
69
  q,
@@ -91,10 +91,10 @@ const [V, i] = w("DataTableContext"), Y = ({
91
91
  c.id
92
92
  );
93
93
  }) }, r.id)) });
94
- }, Z = ({ className: l, ref: n, ...o }) => {
94
+ }, Z = ({ className: l, ref: n, ...t }) => {
95
95
  const {
96
96
  appearance: e,
97
- paginationMode: t,
97
+ paginationMode: o,
98
98
  hideHeader: r,
99
99
  loading: c,
100
100
  onScrollBottom: s,
@@ -111,70 +111,70 @@ const [V, i] = w("DataTableContext"), Y = ({
111
111
  loading: c,
112
112
  onScrollBottom: s,
113
113
  className: l,
114
- ...o,
114
+ ...t,
115
115
  children: [
116
116
  /* @__PURE__ */ d(k, { children: [
117
- /* @__PURE__ */ a(j, {}),
117
+ /* @__PURE__ */ a(L, {}),
118
118
  !r && /* @__PURE__ */ a(z, {}),
119
119
  u ? /* @__PURE__ */ a(J, {}) : /* @__PURE__ */ a(A, {})
120
120
  ] }),
121
- t === "infinite-scroll" && /* @__PURE__ */ a(y, {})
121
+ o === "infinite-scroll" && /* @__PURE__ */ a(y, {})
122
122
  ]
123
123
  }
124
124
  );
125
- }, A = ({ className: l, ref: n, ...o }) => {
125
+ }, A = ({ className: l, ref: n, ...t }) => {
126
126
  const { table: e } = i({
127
127
  consumerName: "DataTableBody",
128
128
  contextRequired: !0
129
129
  });
130
- return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: e.getRowModel().rows.map((t) => /* @__PURE__ */ a(g, { row: t }, t.id)) });
130
+ return /* @__PURE__ */ a(b, { ref: n, className: l, ...t, children: e.getRowModel().rows.map((o) => /* @__PURE__ */ a(g, { row: o }, o.id)) });
131
131
  }, E = (l, n) => {
132
- const o = [];
132
+ const t = [];
133
133
  let e = null;
134
- for (const t of l) {
135
- const r = n(t);
136
- (!e || e.key !== r) && (e = { key: r, rows: [], count: 0 }, o.push(e)), e.rows.push(t), e.count++;
134
+ for (const o of l) {
135
+ const r = n(o);
136
+ (!e || e.key !== r) && (e = { key: r, rows: [], count: 0 }, t.push(e)), e.rows.push(o), e.count++;
137
137
  }
138
- return o;
138
+ return t;
139
139
  }, J = ({
140
140
  className: l,
141
141
  ref: n,
142
- ...o
142
+ ...t
143
143
  }) => {
144
- const { table: e, groupBy: t, renderGroupHeader: r } = i({
144
+ const { table: e, groupBy: o, renderGroupHeader: r } = i({
145
145
  consumerName: "DataTableGroupedBody",
146
146
  contextRequired: !0
147
147
  }), c = E(
148
148
  e.getRowModel().rows,
149
- t
149
+ o
150
150
  );
151
- return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: c.map((s) => /* @__PURE__ */ d(B, { children: [
151
+ return /* @__PURE__ */ a(b, { ref: n, className: l, ...t, children: c.map((s) => /* @__PURE__ */ d(B, { children: [
152
152
  /* @__PURE__ */ a(F, { colSpan: s.rows[0].getVisibleCells().length, children: r ? r({ row: s.rows[0], count: s.count }) : s.key }),
153
153
  s.rows.map((u) => /* @__PURE__ */ a(g, { row: u }, u.id))
154
154
  ] }, s.key)) });
155
155
  }, g = ({ row: l }) => {
156
- const { onRowClick: n, getRowProps: o } = i({
156
+ const { onRowClick: n, getRowProps: t } = i({
157
157
  consumerName: "DataTableRow",
158
158
  contextRequired: !0
159
159
  }), e = !!n;
160
160
  return /* @__PURE__ */ a(
161
- L,
161
+ M,
162
162
  {
163
- ...o?.(l),
163
+ ...t?.(l),
164
164
  clickable: e,
165
165
  onClick: e ? () => n?.(l) : void 0,
166
166
  role: e ? "button" : void 0,
167
- children: l.getVisibleCells().map((t) => {
168
- const r = t.column.columnDef.meta;
167
+ children: l.getVisibleCells().map((o) => {
168
+ const r = o.column.columnDef.meta;
169
169
  return /* @__PURE__ */ a(
170
- M,
170
+ P,
171
171
  {
172
172
  align: r?.align,
173
173
  hideBelow: r?.hideBelow,
174
174
  className: r?.className,
175
- children: m(t.column.columnDef.cell, t.getContext())
175
+ children: m(o.column.columnDef.cell, o.getContext())
176
176
  },
177
- t.id
177
+ o.id
178
178
  );
179
179
  })
180
180
  }
@@ -183,19 +183,19 @@ const [V, i] = w("DataTableContext"), Y = ({
183
183
  onChange: l,
184
184
  ...n
185
185
  }) => {
186
- const { table: o } = i({
186
+ const { table: t } = i({
187
187
  consumerName: "DataTableGlobalSearchInput",
188
188
  contextRequired: !0
189
189
  }), e = x(
190
- (t) => {
191
- o.setGlobalFilter(t.target.value), l?.(t);
190
+ (o) => {
191
+ t.setGlobalFilter(o.target.value), l?.(o);
192
192
  },
193
- [o, l]
193
+ [t, l]
194
194
  );
195
195
  return /* @__PURE__ */ a(
196
- P,
196
+ V,
197
197
  {
198
- value: o.getState().globalFilter ?? "",
198
+ value: t.getState().globalFilter ?? "",
199
199
  onChange: e,
200
200
  ...n
201
201
  }
@@ -3,7 +3,7 @@ import { cn as s } from "../../../../../libs/utils-shared/dist/index.js";
3
3
  import * as h from "@radix-ui/react-dialog";
4
4
  import { cva as u } from "class-variance-authority";
5
5
  import { DialogClose as N } from "../DialogClose/DialogClose.js";
6
- import { useCommonTranslation as x } from "../../../../../i18n/useCommonTranslation.js";
6
+ import { useCommonTranslation as x } from "../../../../../translations/translations.js";
7
7
  import { IconButton as f } from "../../IconButton/IconButton.js";
8
8
  import { ArrowLeft as b } from "../../../symbols/icons/ArrowLeft.js";
9
9
  import { Close as v } from "../../../symbols/icons/Close.js";
@@ -2,9 +2,9 @@ import { jsx as l } from "react/jsx-runtime";
2
2
  import { cn as a } from "../../../../libs/utils-shared/dist/index.js";
3
3
  const d = ({
4
4
  ref: o,
5
- className: e,
5
+ className: t,
6
6
  orientation: r = "horizontal",
7
- ...t
7
+ ...e
8
8
  }) => /* @__PURE__ */ l(
9
9
  "div",
10
10
  {
@@ -14,9 +14,9 @@ const d = ({
14
14
  className: a(
15
15
  "border-muted-subtle",
16
16
  r === "horizontal" ? "w-full border-t" : "h-full border-l",
17
- e
17
+ t
18
18
  ),
19
- ...t
19
+ ...e
20
20
  }
21
21
  );
22
22
  export {
@@ -45,7 +45,7 @@ const h = m(
45
45
  disabled: !1
46
46
  }
47
47
  });
48
- function C({
48
+ function N({
49
49
  value: e,
50
50
  size: t = "md",
51
51
  max: b = 99,
@@ -86,7 +86,7 @@ function C({
86
86
  }
87
87
  );
88
88
  }
89
- C.displayName = "DotCount";
89
+ N.displayName = "DotCount";
90
90
  export {
91
- C as DotCount
91
+ N as DotCount
92
92
  };