@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
@@ -5,26 +5,27 @@ import { useLayoutEffect as F } from "react";
5
5
  import { SelectProvider as M, useSelectContext as p } from "./SelectContext.js";
6
6
  import { useControllableState as W } from "../../../../utils/useControllableState/useControllableState.js";
7
7
  import { useSelectItems as A } from "./useSelectItems/useSelectItems.js";
8
- import { resolveValue as f } from "./utils/groupItems.js";
9
- import { SearchInput as B } from "../SearchInput/SearchInput.js";
10
- import { Check as H } from "../../symbols/icons/Check.js";
11
- import { Divider as J } from "../Divider/Divider.js";
12
- import { ChevronDown as K } from "../../symbols/icons/ChevronDown.js";
13
- import { ComboboxRoot as O } from "../../../../node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js";
14
- import { ComboboxTrigger as x } from "../../../../node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js";
15
- import { ComboboxPortal as Q } from "../../../../node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js";
16
- import { ComboboxPositioner as U } from "../../../../node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js";
17
- import { ComboboxPopup as X } from "../../../../node_modules/@base-ui/react/esm/combobox/popup/ComboboxPopup.js";
18
- import { ComboboxInput as Y } from "../../../../node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js";
19
- import { ComboboxList as Z } from "../../../../node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js";
20
- import { ComboboxGroup as _ } from "../../../../node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js";
21
- import { ComboboxCollection as $ } from "../../../../node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js";
22
- import { ComboboxItem as ee } from "../../../../node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js";
23
- import { ComboboxItemIndicator as te } from "../../../../node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js";
24
- import { ComboboxEmpty as oe } from "../../../../node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js";
25
- import { ComboboxValue as g } from "../../../../node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js";
26
- import { ComboboxGroupLabel as ae } from "../../../../node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js";
27
- function re({
8
+ import { resolveValue as h } from "./utils/groupItems.js";
9
+ import { useCommonTranslation as B } from "../../../../translations/translations.js";
10
+ import { SearchInput as H } from "../SearchInput/SearchInput.js";
11
+ import { Check as J } from "../../symbols/icons/Check.js";
12
+ import { Divider as K } from "../Divider/Divider.js";
13
+ import { ChevronDown as O } from "../../symbols/icons/ChevronDown.js";
14
+ import { ComboboxRoot as Q } from "../../../../node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js";
15
+ import { ComboboxTrigger as g } from "../../../../node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js";
16
+ import { ComboboxPortal as U } from "../../../../node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js";
17
+ import { ComboboxPositioner as X } from "../../../../node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js";
18
+ import { ComboboxPopup as Y } from "../../../../node_modules/@base-ui/react/esm/combobox/popup/ComboboxPopup.js";
19
+ import { ComboboxInput as Z } from "../../../../node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js";
20
+ import { ComboboxList as _ } from "../../../../node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js";
21
+ import { ComboboxGroup as $ } from "../../../../node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js";
22
+ import { ComboboxCollection as ee } from "../../../../node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js";
23
+ import { ComboboxItem as te } from "../../../../node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js";
24
+ import { ComboboxItemIndicator as oe } from "../../../../node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js";
25
+ import { ComboboxEmpty as ae } from "../../../../node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js";
26
+ import { ComboboxValue as S } from "../../../../node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js";
27
+ import { ComboboxGroupLabel as re } from "../../../../node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js";
28
+ function le({
28
29
  value: o,
29
30
  defaultValue: a,
30
31
  onValueChange: e,
@@ -35,7 +36,7 @@ function re({
35
36
  searchValue: c,
36
37
  defaultSearchValue: m,
37
38
  onSearchValueChange: b,
38
- open: y,
39
+ open: f,
39
40
  defaultOpen: C,
40
41
  onOpenChange: v,
41
42
  name: N,
@@ -45,7 +46,7 @@ function re({
45
46
  const V = G({
46
47
  consumerName: "Select",
47
48
  mergeWith: { disabled: r }
48
- }), [h, L] = W(
49
+ }), [x, T] = W(
49
50
  {
50
51
  prop: o,
51
52
  defaultProp: a ?? null,
@@ -54,10 +55,10 @@ function re({
54
55
  }
55
56
  }
56
57
  ), {
57
- isGrouped: T,
58
- groupedItems: R,
59
- filteredItemsForRoot: q,
60
- resolvedSearchValue: P,
58
+ isGrouped: L,
59
+ groupedItems: P,
60
+ filteredItemsForRoot: R,
61
+ resolvedSearchValue: q,
61
62
  searchMounted: j,
62
63
  registerSearch: z,
63
64
  handleSearchValueChange: D
@@ -70,18 +71,18 @@ function re({
70
71
  onSearchValueChange: b
71
72
  });
72
73
  return /* @__PURE__ */ t(
73
- O,
74
+ Q,
74
75
  {
75
76
  "data-slot": "select",
76
77
  filter: null,
77
- items: R ?? s,
78
- filteredItems: q,
79
- inputValue: P,
78
+ items: P ?? s,
79
+ filteredItems: R,
80
+ inputValue: q,
80
81
  onInputValueChange: D,
81
- value: h,
82
- onValueChange: (d) => L(f(d)),
83
- isItemEqualToValue: (d, E) => f(d) === f(E),
84
- open: y,
82
+ value: x,
83
+ onValueChange: (d) => T(h(d)),
84
+ isItemEqualToValue: (d, E) => h(d) === h(E),
85
+ open: f,
85
86
  defaultOpen: C,
86
87
  onOpenChange: v,
87
88
  name: N,
@@ -90,27 +91,27 @@ function re({
90
91
  children: /* @__PURE__ */ t(
91
92
  M,
92
93
  {
93
- value: { selectedValue: h, registerSearch: z, isGrouped: T, searchMounted: j },
94
+ value: { selectedValue: x, registerSearch: z, isGrouped: L, searchMounted: j },
94
95
  children: I
95
96
  }
96
97
  )
97
98
  }
98
99
  );
99
100
  }
100
- const le = l(
101
+ const se = l(
101
102
  "group relative flex h-48 w-full cursor-pointer items-center justify-between gap-8",
102
103
  "rounded-sm bg-muted px-16",
103
104
  "body-2 text-base",
104
105
  "hover:bg-muted-hover",
105
106
  "transition-colors duration-200 focus:ring-2 focus:ring-active focus:outline-hidden",
106
107
  "disabled:cursor-not-allowed disabled:text-disabled"
107
- ), se = l(
108
+ ), ne = l(
108
109
  "pointer-events-none absolute left-16 origin-left text-muted transition-all duration-300",
109
110
  "top-10 -translate-y-4 body-4",
110
111
  "group-data-placeholder:top-14 group-data-placeholder:translate-y-0 group-data-placeholder:body-2",
111
112
  "group-data-disabled:text-disabled",
112
113
  "max-w-[calc(100%-var(--size-56))] truncate"
113
- ), ne = ({
114
+ ), ie = ({
114
115
  ref: o,
115
116
  className: a,
116
117
  labelClassName: e,
@@ -122,15 +123,15 @@ const le = l(
122
123
  contextRequired: !0
123
124
  }), i = n !== null && n !== "";
124
125
  return /* @__PURE__ */ u(
125
- x,
126
+ g,
126
127
  {
127
128
  ref: o,
128
129
  "data-slot": "select-trigger",
129
130
  "data-placeholder": i ? void 0 : "",
130
- className: l(le, a),
131
+ className: l(se, a),
131
132
  ...s,
132
133
  children: [
133
- r && /* @__PURE__ */ t("label", { className: l(se, e), children: r }),
134
+ r && /* @__PURE__ */ t("label", { className: l(ne, e), children: r }),
134
135
  /* @__PURE__ */ t(
135
136
  "span",
136
137
  {
@@ -139,11 +140,11 @@ const le = l(
139
140
  r && "mt-16 opacity-100 transition-opacity delay-100 duration-300",
140
141
  r && !i && "mt-0 opacity-0"
141
142
  ),
142
- children: /* @__PURE__ */ t(g, {})
143
+ children: /* @__PURE__ */ t(S, {})
143
144
  }
144
145
  ),
145
146
  /* @__PURE__ */ t(
146
- K,
147
+ O,
147
148
  {
148
149
  size: 20,
149
150
  className: "text-muted group-data-disabled:text-disabled"
@@ -152,7 +153,7 @@ const le = l(
152
153
  ]
153
154
  }
154
155
  );
155
- }, ie = ({
156
+ }, ce = ({
156
157
  render: o,
157
158
  disabled: a,
158
159
  ...e
@@ -160,9 +161,9 @@ const le = l(
160
161
  const { selectedValue: r } = p({
161
162
  consumerName: "SelectTrigger",
162
163
  contextRequired: !0
163
- }), s = /* @__PURE__ */ t(g, {});
164
+ }), s = /* @__PURE__ */ t(S, {});
164
165
  return o ? /* @__PURE__ */ t(
165
- x,
166
+ g,
166
167
  {
167
168
  disabled: a,
168
169
  ref: e.ref,
@@ -172,8 +173,8 @@ const le = l(
172
173
  selectedContent: s
173
174
  })
174
175
  }
175
- ) : /* @__PURE__ */ t(ne, { ...e, disabled: a });
176
- }, ce = k(
176
+ ) : /* @__PURE__ */ t(ie, { ...e, disabled: a });
177
+ }, de = k(
177
178
  [
178
179
  "group/select-content relative flex max-h-(--available-height) w-(--anchor-width) flex-col overflow-hidden",
179
180
  "rounded-sm bg-surface",
@@ -201,7 +202,7 @@ const le = l(
201
202
  }
202
203
  }
203
204
  }
204
- ), de = ({
205
+ ), me = ({
205
206
  ref: o,
206
207
  className: a,
207
208
  children: e,
@@ -210,8 +211,8 @@ const le = l(
210
211
  align: n = "start",
211
212
  initialFocus: i = !0,
212
213
  ...c
213
- }) => /* @__PURE__ */ t(Q, { "data-slot": "select-portal", children: /* @__PURE__ */ t(
214
- U,
214
+ }) => /* @__PURE__ */ t(U, { "data-slot": "select-portal", children: /* @__PURE__ */ t(
215
+ X,
215
216
  {
216
217
  "data-slot": "select-positioner",
217
218
  className: "pointer-events-auto z-select",
@@ -219,18 +220,18 @@ const le = l(
219
220
  sideOffset: s,
220
221
  align: n,
221
222
  children: /* @__PURE__ */ t(
222
- X,
223
+ Y,
223
224
  {
224
225
  ref: o,
225
226
  "data-slot": "select-content",
226
227
  initialFocus: i,
227
- className: l(ce({ side: r }), a),
228
+ className: l(de({ side: r }), a),
228
229
  ...c,
229
230
  children: e
230
231
  }
231
232
  )
232
233
  }
233
- ) }), me = ({
234
+ ) }), ue = ({
234
235
  ref: o,
235
236
  className: a,
236
237
  renderItem: e,
@@ -241,7 +242,7 @@ const le = l(
241
242
  contextRequired: !0
242
243
  });
243
244
  return /* @__PURE__ */ t(
244
- Z,
245
+ _,
245
246
  {
246
247
  ref: o,
247
248
  "data-slot": "select-list",
@@ -251,29 +252,29 @@ const le = l(
251
252
  ),
252
253
  ...r,
253
254
  children: s ? (n, i) => /* @__PURE__ */ u(
254
- _,
255
+ $,
255
256
  {
256
257
  items: n.items,
257
258
  "data-slot": "select-group",
258
259
  children: [
259
- i > 0 && /* @__PURE__ */ t(S, {}),
260
- n.label && /* @__PURE__ */ t(ue, { children: n.label }),
261
- /* @__PURE__ */ t($, { children: e })
260
+ i > 0 && /* @__PURE__ */ t(y, {}),
261
+ n.label && /* @__PURE__ */ t(pe, { children: n.label }),
262
+ /* @__PURE__ */ t(ee, { children: e })
262
263
  ]
263
264
  },
264
265
  n.label
265
266
  ) : e
266
267
  }
267
268
  );
268
- }, ue = ({ ref: o, className: a, ...e }) => /* @__PURE__ */ t(
269
- ae,
269
+ }, pe = ({ ref: o, className: a, ...e }) => /* @__PURE__ */ t(
270
+ re,
270
271
  {
271
272
  ref: o,
272
273
  "data-slot": "select-label",
273
274
  className: l("mb-4 px-8 pt-8 pb-0 body-3-semi-bold text-muted", a),
274
275
  ...e
275
276
  }
276
- ), pe = l(
277
+ ), be = l(
277
278
  "group/item flex w-full min-w-0 cursor-pointer items-center gap-12 bg-base-transparent select-none",
278
279
  "rounded-sm p-8",
279
280
  "body-2 text-base",
@@ -281,28 +282,28 @@ const le = l(
281
282
  "data-highlighted:bg-base-transparent-hover",
282
283
  "active:bg-base-transparent-pressed",
283
284
  "data-disabled:cursor-not-allowed data-disabled:text-disabled"
284
- ), be = ({
285
+ ), fe = ({
285
286
  ref: o,
286
287
  className: a,
287
288
  children: e,
288
289
  ...r
289
290
  }) => /* @__PURE__ */ u(
290
- ee,
291
+ te,
291
292
  {
292
293
  ref: o,
293
294
  "data-slot": "select-item",
294
- className: l(pe, a),
295
+ className: l(be, a),
295
296
  ...r,
296
297
  children: [
297
298
  e,
298
- /* @__PURE__ */ t(te, { className: "ml-auto flex shrink-0 items-center justify-center", children: /* @__PURE__ */ t(H, { size: 24, className: "shrink-0 text-active" }) })
299
+ /* @__PURE__ */ t(oe, { className: "ml-auto flex shrink-0 items-center justify-center", children: /* @__PURE__ */ t(J, { size: 24, className: "shrink-0 text-active" }) })
299
300
  ]
300
301
  }
301
- ), S = ({
302
+ ), y = ({
302
303
  ref: o,
303
304
  className: a,
304
305
  ...e
305
- }) => /* @__PURE__ */ t(J, { ref: o, className: l("mx-8 my-4 w-auto", a), ...e }), fe = ({ ref: o, className: a, ...e }) => /* @__PURE__ */ t(
306
+ }) => /* @__PURE__ */ t(K, { ref: o, className: l("mx-8 my-4 w-auto", a), ...e }), he = ({ ref: o, className: a, ...e }) => /* @__PURE__ */ t(
306
307
  "span",
307
308
  {
308
309
  ref: o,
@@ -310,7 +311,7 @@ const le = l(
310
311
  className: l("truncate body-2", a),
311
312
  ...e
312
313
  }
313
- ), he = ({
314
+ ), xe = ({
314
315
  ref: o,
315
316
  className: a,
316
317
  children: e,
@@ -324,7 +325,7 @@ const le = l(
324
325
  ...r,
325
326
  children: e
326
327
  }
327
- ), xe = ({
328
+ ), ge = ({
328
329
  ref: o,
329
330
  className: a,
330
331
  children: e,
@@ -342,9 +343,9 @@ const le = l(
342
343
  ...r,
343
344
  children: e
344
345
  }
345
- ), ge = ({
346
+ ), Se = ({
346
347
  className: o,
347
- placeholder: a = "Search",
348
+ placeholder: a,
348
349
  helperText: e,
349
350
  status: r,
350
351
  "aria-invalid": s,
@@ -355,35 +356,35 @@ const le = l(
355
356
  const { registerSearch: m } = p({
356
357
  consumerName: "SelectSearch",
357
358
  contextRequired: !0
358
- });
359
+ }), { t: b } = B();
359
360
  return F(() => m(), [m]), /* @__PURE__ */ t(
360
- Y,
361
+ Z,
361
362
  {
362
- render: (b) => /* @__PURE__ */ t(
363
- B,
363
+ render: (f) => /* @__PURE__ */ t(
364
+ H,
364
365
  {
365
- ...b,
366
+ ...f,
366
367
  "aria-invalid": s,
367
368
  helperText: e,
368
369
  status: r,
369
370
  suffix: n,
370
371
  onClear: i,
371
372
  hideClearButton: c,
372
- placeholder: a,
373
+ placeholder: a ?? b("components.select.searchPlaceholder"),
373
374
  containerClassName: "rounded-b-none ring-inset",
374
375
  className: l(o, "rounded-b-none ring-inset")
375
376
  }
376
377
  )
377
378
  }
378
379
  );
379
- }, Se = ({
380
+ }, ye = ({
380
381
  ref: o,
381
382
  className: a,
382
383
  title: e,
383
384
  description: r,
384
385
  ...s
385
386
  }) => /* @__PURE__ */ u(
386
- oe,
387
+ ae,
387
388
  {
388
389
  ref: o,
389
390
  "data-slot": "select-empty-state",
@@ -399,32 +400,32 @@ const le = l(
399
400
  ]
400
401
  }
401
402
  );
402
- function Oe() {
403
+ function Ue() {
403
404
  return {
404
- Select: re,
405
- SelectTrigger: ie,
406
- SelectContent: de,
407
- SelectSearch: ge,
408
- SelectList: me,
409
- SelectItemText: fe,
410
- SelectItemContent: he,
411
- SelectItemDescription: xe,
412
- SelectItem: be,
413
- SelectSeparator: S,
414
- SelectEmptyState: Se
405
+ Select: le,
406
+ SelectTrigger: ce,
407
+ SelectContent: me,
408
+ SelectSearch: Se,
409
+ SelectList: ue,
410
+ SelectItemText: he,
411
+ SelectItemContent: xe,
412
+ SelectItemDescription: ge,
413
+ SelectItem: fe,
414
+ SelectSeparator: y,
415
+ SelectEmptyState: ye
415
416
  };
416
417
  }
417
418
  export {
418
- re as Select,
419
- de as SelectContent,
420
- Se as SelectEmptyState,
421
- be as SelectItem,
422
- he as SelectItemContent,
423
- xe as SelectItemDescription,
424
- fe as SelectItemText,
425
- me as SelectList,
426
- ge as SelectSearch,
427
- S as SelectSeparator,
428
- ie as SelectTrigger,
429
- Oe as createSelect
419
+ le as Select,
420
+ me as SelectContent,
421
+ ye as SelectEmptyState,
422
+ fe as SelectItem,
423
+ xe as SelectItemContent,
424
+ ge as SelectItemDescription,
425
+ he as SelectItemText,
426
+ ue as SelectList,
427
+ Se as SelectSearch,
428
+ y as SelectSeparator,
429
+ ce as SelectTrigger,
430
+ Ue as createSelect
430
431
  };
@@ -3,11 +3,11 @@ import { createSafeContext as V, cn as m, useDisabledContext as q } from "../../
3
3
  import { cva as C } from "class-variance-authority";
4
4
  import { useCallback as S } from "react";
5
5
  import { Tooltip as N, TooltipTrigger as T, TooltipContent as w } from "../Tooltip/Tooltip.js";
6
- import { useCommonTranslation as A } from "../../../../i18n/useCommonTranslation.js";
6
+ import { useCommonTranslation as A } from "../../../../translations/translations.js";
7
7
  import { useControllableState as B } from "../../../../utils/useControllableState/useControllableState.js";
8
8
  import { ExpandRight as z } from "../../symbols/icons/ExpandRight.js";
9
9
  import { ExpandLeft as E } from "../../symbols/icons/ExpandLeft.js";
10
- const [O, L] = V("SideBar"), f = {
10
+ const [F, y] = V("SideBar"), f = {
11
11
  root: C(
12
12
  [
13
13
  "flex h-full flex-col justify-between gap-16 overflow-y-auto rounded-xl bg-surface-transparent p-16",
@@ -50,13 +50,13 @@ const [O, L] = V("SideBar"), f = {
50
50
  }
51
51
  }
52
52
  )
53
- }, D = ({
53
+ }, O = ({
54
54
  ref: n,
55
55
  collapsed: t,
56
- defaultCollapsed: r = !1,
56
+ defaultCollapsed: s = !1,
57
57
  onCollapsedChange: a,
58
58
  active: o,
59
- defaultActive: s,
59
+ defaultActive: r,
60
60
  onActiveChange: i,
61
61
  children: d,
62
62
  className: l,
@@ -64,15 +64,15 @@ const [O, L] = V("SideBar"), f = {
64
64
  }) => {
65
65
  const { t: c } = A(), [b, g] = B({
66
66
  prop: t,
67
- defaultProp: r,
67
+ defaultProp: s,
68
68
  onChange: a
69
69
  }), [v, u] = B({
70
70
  prop: o,
71
- defaultProp: s ?? "",
71
+ defaultProp: r ?? "",
72
72
  onChange: i ? (h) => i(h) : void 0
73
73
  });
74
74
  return /* @__PURE__ */ e(
75
- O,
75
+ F,
76
76
  {
77
77
  value: { collapsed: b, setCollapsed: g, active: v, onActiveChange: u },
78
78
  children: /* @__PURE__ */ e(
@@ -87,39 +87,39 @@ const [O, L] = V("SideBar"), f = {
87
87
  )
88
88
  }
89
89
  );
90
- }, F = ({
90
+ }, D = ({
91
91
  ref: n,
92
92
  children: t,
93
- className: r,
93
+ className: s,
94
94
  ...a
95
95
  }) => /* @__PURE__ */ e(
96
96
  "div",
97
97
  {
98
98
  ref: n,
99
- className: m(f.section(), r),
99
+ className: m(f.section(), s),
100
100
  ...a,
101
101
  children: t
102
102
  }
103
103
  ), W = ({
104
104
  ref: n,
105
105
  children: t,
106
- className: r,
106
+ className: s,
107
107
  ...a
108
108
  }) => /* @__PURE__ */ e(
109
109
  "div",
110
110
  {
111
111
  ref: n,
112
- className: m("mt-auto", f.section(), r),
112
+ className: m("mt-auto", f.section(), s),
113
113
  ...a,
114
114
  children: t
115
115
  }
116
116
  ), G = ({
117
117
  ref: n,
118
118
  value: t,
119
- icon: r,
119
+ icon: s,
120
120
  activeIcon: a,
121
121
  label: o,
122
- tooltipContent: s,
122
+ tooltipContent: r,
123
123
  disabled: i = !1,
124
124
  className: d,
125
125
  onClick: l,
@@ -128,10 +128,10 @@ const [O, L] = V("SideBar"), f = {
128
128
  const c = q({
129
129
  consumerName: "SideBarItem",
130
130
  mergeWith: { disabled: i }
131
- }), { collapsed: b, active: g, onActiveChange: v } = L({
131
+ }), { collapsed: b, active: g, onActiveChange: v } = y({
132
132
  consumerName: "SideBarItem",
133
133
  contextRequired: !0
134
- }), u = g === t, h = u ? a : r, y = s ?? o, I = S(
134
+ }), u = g === t, h = u ? a : s, I = r ?? o, L = S(
135
135
  (P) => {
136
136
  c || (l?.(P), v?.(t));
137
137
  },
@@ -145,7 +145,7 @@ const [O, L] = V("SideBar"), f = {
145
145
  ref: n,
146
146
  type: "button",
147
147
  disabled: c,
148
- onClick: I,
148
+ onClick: L,
149
149
  className: m(
150
150
  f.item({ active: u, disabled: c }),
151
151
  d
@@ -157,19 +157,19 @@ const [O, L] = V("SideBar"), f = {
157
157
  );
158
158
  return /* @__PURE__ */ x(N, { open: b ? void 0 : !1, children: [
159
159
  /* @__PURE__ */ e(T, { asChild: !0, children: k }),
160
- /* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: y })
160
+ /* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: I })
161
161
  ] });
162
162
  }, H = ({
163
163
  className: n,
164
164
  tooltipContent: t,
165
- ...r
165
+ ...s
166
166
  }) => {
167
- const { t: a } = A(), { collapsed: o, setCollapsed: s } = L({
167
+ const { t: a } = A(), { collapsed: o, setCollapsed: r } = y({
168
168
  consumerName: "SideBarCollapseToggle",
169
169
  contextRequired: !0
170
170
  }), i = S(() => {
171
- s(!o);
172
- }, [o, s]), d = o ? z : E, l = /* @__PURE__ */ e(
171
+ r(!o);
172
+ }, [o, r]), d = o ? z : E, l = /* @__PURE__ */ e(
173
173
  "button",
174
174
  {
175
175
  type: "button",
@@ -179,7 +179,7 @@ const [O, L] = V("SideBar"), f = {
179
179
  n
180
180
  ),
181
181
  "aria-label": a(o ? "components.sideBar.expandAriaLabel" : "components.sideBar.collapseAriaLabel"),
182
- ...r,
182
+ ...s,
183
183
  children: /* @__PURE__ */ e(d, { size: 20 })
184
184
  }
185
185
  ), p = t ?? a("components.sideBar.collapseAriaLabel");
@@ -190,18 +190,18 @@ const [O, L] = V("SideBar"), f = {
190
190
  };
191
191
  function $() {
192
192
  return {
193
- SideBar: D,
194
- SideBarLeading: F,
193
+ SideBar: O,
194
+ SideBarLeading: D,
195
195
  SideBarTrailing: W,
196
196
  SideBarItem: G,
197
197
  SideBarCollapseToggle: H
198
198
  };
199
199
  }
200
200
  export {
201
- D as SideBar,
201
+ O as SideBar,
202
202
  H as SideBarCollapseToggle,
203
203
  G as SideBarItem,
204
- F as SideBarLeading,
204
+ D as SideBarLeading,
205
205
  W as SideBarTrailing,
206
206
  $ as createSideBar
207
207
  };
@@ -1,17 +1,17 @@
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 { useCommonTranslation as a } from "../../../../i18n/useCommonTranslation.js";
3
+ import { useCommonTranslation as a } from "../../../../translations/translations.js";
4
4
  const c = ({
5
5
  ref: r,
6
- className: e,
6
+ className: t,
7
7
  size: n = 16,
8
- ...t
8
+ ...e
9
9
  }) => {
10
10
  const { t: i } = a();
11
11
  return /* @__PURE__ */ o(
12
12
  "svg",
13
13
  {
14
- className: s("shrink-0 animate-spin text-base", e),
14
+ className: s("shrink-0 animate-spin text-base", t),
15
15
  xmlns: "http://www.w3.org/2000/svg",
16
16
  width: n,
17
17
  height: n,
@@ -20,7 +20,7 @@ const c = ({
20
20
  "aria-label": i("components.spinner.loadingAriaLabel"),
21
21
  role: "img",
22
22
  ref: r,
23
- ...t,
23
+ ...e,
24
24
  children: /* @__PURE__ */ o(
25
25
  "path",
26
26
  {