@ledgerhq/lumen-ui-react 0.1.61 → 0.1.62

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 (83) hide show
  1. package/dist/index.js +79 -62
  2. package/dist/lib/Components/core/AmountInput/AmountInput.js +16 -16
  3. package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
  4. package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
  5. package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
  6. package/dist/lib/Components/core/Banner/Banner.js +8 -8
  7. package/dist/lib/Components/core/Button/Button.js +10 -10
  8. package/dist/lib/Components/core/Card/Card.js +6 -6
  9. package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
  10. package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
  11. package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
  12. package/dist/lib/Components/core/DataTable/DataTable.js +7 -7
  13. package/dist/lib/Components/core/Divider/Divider.js +8 -8
  14. package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
  15. package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
  16. package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
  17. package/dist/lib/Components/core/Link/Link.d.ts +1 -1
  18. package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
  19. package/dist/lib/Components/core/Link/Link.js +21 -20
  20. package/dist/lib/Components/core/Link/types.d.ts +1 -1
  21. package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
  22. package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
  23. package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
  24. package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
  25. package/dist/lib/Components/core/Menu/Menu.js +30 -30
  26. package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
  27. package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
  28. package/dist/lib/Components/core/Popover/Popover.js +6 -6
  29. package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
  30. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
  31. package/dist/lib/Components/core/Select/Select.js +8 -8
  32. package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
  33. package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
  34. package/dist/lib/Components/core/Spot/Spot.js +9 -9
  35. package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
  36. package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
  37. package/dist/lib/Components/core/Stepper/Stepper.js +137 -65
  38. package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
  39. package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
  40. package/dist/lib/Components/core/Switch/Switch.js +5 -5
  41. package/dist/lib/Components/core/Table/Table.js +9 -9
  42. package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
  43. package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
  44. package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
  45. package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
  46. package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
  47. package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
  48. package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
  49. package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
  50. package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
  51. package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
  52. package/dist/lib/Components/core/Toast/Toast.js +68 -0
  53. package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
  54. package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
  55. package/dist/lib/Components/core/Toast/Toaster.js +92 -0
  56. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
  57. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
  58. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
  59. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
  60. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
  61. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
  62. package/dist/lib/Components/core/Toast/index.d.ts +5 -0
  63. package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
  64. package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
  65. package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
  66. package/dist/lib/Components/core/Toast/styles.js +77 -0
  67. package/dist/lib/Components/core/Toast/types.d.ts +81 -0
  68. package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
  69. package/dist/lib/Components/core/Trend/Trend.js +2 -2
  70. package/dist/lib/Components/core/index.d.ts +2 -0
  71. package/dist/lib/Components/core/index.d.ts.map +1 -1
  72. package/dist/lib/Components/internal/BaseButton/BaseButton.js +2 -2
  73. package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
  74. package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
  75. package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
  76. package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
  77. package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
  78. package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
  79. package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
  80. package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
  81. package/dist/libs/utils-shared/dist/index.js +306 -141
  82. package/dist/package.json +1 -1
  83. package/package.json +3 -3
@@ -8,8 +8,8 @@ import { Divider as w } from "../Divider/Divider.js";
8
8
  import { ChevronRight as z } from "../../symbols/icons/ChevronRight.js";
9
9
  import { MenuRoot as G } from "../../../../node_modules/@base-ui/react/esm/menu/root/MenuRoot.js";
10
10
  import { MenuTrigger as P } from "../../../../node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js";
11
- import { MenuPortal as N } from "../../../../node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js";
12
- import { MenuPositioner as C } from "../../../../node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js";
11
+ import { MenuPortal as C } from "../../../../node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js";
12
+ import { MenuPositioner as N } from "../../../../node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js";
13
13
  import { MenuPopup as v } from "../../../../node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js";
14
14
  import { MenuItem as T } from "../../../../node_modules/@base-ui/react/esm/menu/item/MenuItem.js";
15
15
  import { MenuCheckboxItem as I } from "../../../../node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js";
@@ -17,9 +17,9 @@ import { MenuCheckboxItemIndicator as $ } from "../../../../node_modules/@base-u
17
17
  import { MenuRadioItem as j } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js";
18
18
  import { MenuRadioItemIndicator as W } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js";
19
19
  import { MenuGroupLabel as D } from "../../../../node_modules/@base-ui/react/esm/menu/group-label/MenuGroupLabel.js";
20
- import { MenuGroup as O } from "../../../../node_modules/@base-ui/react/esm/menu/group/MenuGroup.js";
21
- import { MenuSubmenuRoot as V } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js";
22
- import { MenuSubmenuTrigger as L } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js";
20
+ import { MenuGroup as L } from "../../../../node_modules/@base-ui/react/esm/menu/group/MenuGroup.js";
21
+ import { MenuSubmenuRoot as O } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js";
22
+ import { MenuSubmenuTrigger as V } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js";
23
23
  import { MenuRadioGroup as q } from "../../../../node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js";
24
24
  const k = M(
25
25
  [
@@ -95,10 +95,10 @@ const he = ({
95
95
  }
96
96
  );
97
97
  function fe({ ...e }) {
98
- return /* @__PURE__ */ t(O, { "data-slot": "menu-group", ...e });
98
+ return /* @__PURE__ */ t(L, { "data-slot": "menu-group", ...e });
99
99
  }
100
100
  function ge({ ...e }) {
101
- return /* @__PURE__ */ t(V, { ...e });
101
+ return /* @__PURE__ */ t(O, { ...e });
102
102
  }
103
103
  function E({
104
104
  onValueChange: e,
@@ -119,7 +119,7 @@ const Me = ({
119
119
  children: o,
120
120
  ...n
121
121
  }) => /* @__PURE__ */ p(
122
- L,
122
+ V,
123
123
  {
124
124
  ref: e,
125
125
  "data-slot": "menu-sub-trigger",
@@ -130,7 +130,7 @@ const Me = ({
130
130
  /* @__PURE__ */ t(z, { size: 20, className: "ml-auto text-muted" })
131
131
  ]
132
132
  }
133
- ), xe = ({ className: e, children: a }) => /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(C, { className: "z-menu", side: "right", sideOffset: 4, children: /* @__PURE__ */ t(
133
+ ), xe = ({ className: e, children: a }) => /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(N, { className: "z-menu", side: "right", sideOffset: 4, children: /* @__PURE__ */ t(
134
134
  v,
135
135
  {
136
136
  "data-slot": "menu-sub-content",
@@ -138,7 +138,7 @@ const Me = ({
138
138
  onClick: (o) => o.stopPropagation(),
139
139
  children: a
140
140
  }
141
- ) }) }), Ne = ({
141
+ ) }) }), Ce = ({
142
142
  side: e = "bottom",
143
143
  sideOffset: a = 4,
144
144
  align: o = "start",
@@ -146,8 +146,8 @@ const Me = ({
146
146
  sticky: i = !0,
147
147
  className: s,
148
148
  children: m
149
- }) => /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
150
- C,
149
+ }) => /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(
150
+ N,
151
151
  {
152
152
  className: "z-menu",
153
153
  side: e,
@@ -165,7 +165,7 @@ const Me = ({
165
165
  }
166
166
  )
167
167
  }
168
- ) }), Ce = ({
168
+ ) }), Ne = ({
169
169
  ref: e,
170
170
  className: a,
171
171
  appearance: o = "base",
@@ -175,17 +175,17 @@ const Me = ({
175
175
  closeOnClick: m = !0,
176
176
  ...d
177
177
  }) => {
178
- const u = b({
178
+ const l = b({
179
179
  consumerName: "MenuItem",
180
180
  mergeWith: { disabled: n }
181
181
  });
182
- return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ t(
182
+ return /* @__PURE__ */ t(h, { value: { disabled: l }, children: /* @__PURE__ */ t(
183
183
  T,
184
184
  {
185
185
  ref: e,
186
186
  "data-slot": "menu-item",
187
187
  label: s,
188
- disabled: u,
188
+ disabled: l,
189
189
  closeOnClick: m,
190
190
  className: r(c({ appearance: o }), a),
191
191
  onClick: i,
@@ -201,14 +201,14 @@ const Me = ({
201
201
  onCheckedChange: s,
202
202
  disabled: m,
203
203
  label: d,
204
- closeOnClick: u,
204
+ closeOnClick: l,
205
205
  ...f
206
206
  }) => {
207
- const l = b({
207
+ const u = b({
208
208
  consumerName: "MenuCheckboxItem",
209
209
  mergeWith: { disabled: m }
210
210
  });
211
- return /* @__PURE__ */ t(h, { value: { disabled: l }, children: /* @__PURE__ */ p(
211
+ return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ p(
212
212
  I,
213
213
  {
214
214
  ref: e,
@@ -216,14 +216,14 @@ const Me = ({
216
216
  label: d,
217
217
  checked: n,
218
218
  defaultChecked: i,
219
- disabled: l,
220
- closeOnClick: u ?? !1,
219
+ disabled: u,
220
+ closeOnClick: l ?? !1,
221
221
  className: r(c(), a),
222
222
  onCheckedChange: s,
223
223
  ...f,
224
224
  children: [
225
225
  o,
226
- /* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(x, { disabled: l, size: 24, className: "text-active" }) }) })
226
+ /* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(x, { disabled: u, size: 24, className: "text-active" }) }) })
227
227
  ]
228
228
  }
229
229
  ) });
@@ -236,10 +236,10 @@ const Me = ({
236
236
  onCheckedChange: s,
237
237
  disabled: m,
238
238
  label: d,
239
- closeOnClick: u,
239
+ closeOnClick: l,
240
240
  ...f
241
241
  }) => {
242
- const l = b({
242
+ const u = b({
243
243
  consumerName: "MenuSwitchItem",
244
244
  mergeWith: { disabled: m }
245
245
  }), [g, S] = R({
@@ -247,15 +247,15 @@ const Me = ({
247
247
  onChange: s,
248
248
  defaultProp: i ?? !1
249
249
  });
250
- return /* @__PURE__ */ t(h, { value: { disabled: l }, children: /* @__PURE__ */ p(
250
+ return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ p(
251
251
  I,
252
252
  {
253
253
  ref: e,
254
254
  "data-slot": "menu-switch-item",
255
255
  label: d,
256
256
  checked: g,
257
- disabled: l,
258
- closeOnClick: u ?? !1,
257
+ disabled: u,
258
+ closeOnClick: l ?? !1,
259
259
  className: r(c(), a),
260
260
  onCheckedChange: S,
261
261
  ...f,
@@ -265,7 +265,7 @@ const Me = ({
265
265
  y,
266
266
  {
267
267
  selected: g,
268
- disabled: l,
268
+ disabled: u,
269
269
  "aria-hidden": !0,
270
270
  tabIndex: -1
271
271
  }
@@ -313,9 +313,9 @@ function Re() {
313
313
  export {
314
314
  be as Menu,
315
315
  ve as MenuCheckboxItem,
316
- Ne as MenuContent,
316
+ Ce as MenuContent,
317
317
  fe as MenuGroup,
318
- Ce as MenuItem,
318
+ Ne as MenuItem,
319
319
  ke as MenuLabel,
320
320
  E as MenuRadioGroup,
321
321
  F as MenuRadioItem,
@@ -1,22 +1,22 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as c } from "../../../../libs/utils-shared/dist/index.js";
3
3
  const o = ({
4
4
  ref: s,
5
- ticker: t,
6
- leadingContent: n,
7
- className: a
8
- }) => /* @__PURE__ */ r(
5
+ ticker: n,
6
+ leadingContent: t,
7
+ className: r
8
+ }) => /* @__PURE__ */ a(
9
9
  "div",
10
10
  {
11
11
  ref: s,
12
12
  className: c(
13
13
  "flex items-center gap-8 rounded-full bg-muted-transparent p-8 pr-12",
14
- a
14
+ r
15
15
  ),
16
16
  "data-slot": "coin-capsule",
17
17
  children: [
18
- /* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children: n }),
19
- /* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children: t })
18
+ /* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children: t }),
19
+ /* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children: n })
20
20
  ]
21
21
  }
22
22
  );
@@ -4,30 +4,30 @@ import { getPaginationRange as h } from "./getPaginationRange.js";
4
4
  import { useCommonTranslation as v } from "../../../../i18n/useCommonTranslation.js";
5
5
  import { IconButton as s } from "../IconButton/IconButton.js";
6
6
  import { ChevronLeft as y } from "../../symbols/icons/ChevronLeft.js";
7
- import { Button as k } from "../Button/Button.js";
8
- import { ChevronRight as A } from "../../symbols/icons/ChevronRight.js";
7
+ import { Button as L } from "../Button/Button.js";
8
+ import { ChevronRight as k } from "../../symbols/icons/ChevronRight.js";
9
9
  const R = ({
10
10
  page: p,
11
- totalPages: i,
11
+ totalPages: e,
12
12
  onPageChange: r,
13
13
  siblingCount: c = 1,
14
14
  className: l,
15
15
  ref: m,
16
16
  ...u
17
17
  }) => {
18
- const { t: e } = v();
19
- if (i <= 0)
18
+ const { t: i } = v();
19
+ if (e <= 0)
20
20
  return null;
21
- const a = Math.min(Math.max(p, 1), i), b = Math.max(c, 0), d = h(
21
+ const a = Math.min(Math.max(p, 1), e), b = Math.max(c, 0), d = h(
22
22
  a,
23
- i,
23
+ e,
24
24
  b
25
25
  );
26
26
  return /* @__PURE__ */ g(
27
27
  "nav",
28
28
  {
29
29
  ref: m,
30
- "aria-label": e("components.pagination.navigationAriaLabel"),
30
+ "aria-label": i("components.pagination.navigationAriaLabel"),
31
31
  className: x("flex items-center gap-8 overflow-x-auto p-4", l),
32
32
  ...u,
33
33
  children: [
@@ -39,7 +39,7 @@ const R = ({
39
39
  size: "sm",
40
40
  appearance: "gray",
41
41
  disabled: a <= 1,
42
- "aria-label": e("components.pagination.previousPageAriaLabel"),
42
+ "aria-label": i("components.pagination.previousPageAriaLabel"),
43
43
  onClick: () => r(a - 1)
44
44
  }
45
45
  ),
@@ -56,13 +56,13 @@ const R = ({
56
56
  );
57
57
  const t = n === a;
58
58
  return /* @__PURE__ */ o(
59
- k,
59
+ L,
60
60
  {
61
61
  type: "button",
62
62
  size: "sm",
63
63
  appearance: t ? "gray" : "no-background",
64
64
  className: "shrink-0",
65
- "aria-label": e("components.pagination.pageAriaLabel", {
65
+ "aria-label": i("components.pagination.pageAriaLabel", {
66
66
  page: n
67
67
  }),
68
68
  "aria-current": t ? "page" : void 0,
@@ -76,11 +76,11 @@ const R = ({
76
76
  s,
77
77
  {
78
78
  type: "button",
79
- icon: A,
79
+ icon: k,
80
80
  size: "sm",
81
81
  appearance: "gray",
82
- disabled: a >= i,
83
- "aria-label": e("components.pagination.nextPageAriaLabel"),
82
+ disabled: a >= e,
83
+ "aria-label": i("components.pagination.nextPageAriaLabel"),
84
84
  onClick: () => r(a + 1)
85
85
  }
86
86
  )
@@ -43,7 +43,7 @@ const [b, y] = l("Popover"), C = v(
43
43
  "fixed inset-0 z-dialog-overlay bg-canvas-overlay-subtle",
44
44
  "data-open:animate-fade-in",
45
45
  "data-closed:animate-fade-out"
46
- ), q = ({
46
+ ), B = ({
47
47
  open: o,
48
48
  defaultOpen: a,
49
49
  onOpenChange: r,
@@ -60,7 +60,7 @@ const [b, y] = l("Popover"), C = v(
60
60
  handle: n,
61
61
  children: i
62
62
  }
63
- ) }), B = ({
63
+ ) }), L = ({
64
64
  handle: o,
65
65
  payload: a,
66
66
  render: r,
@@ -117,10 +117,10 @@ const [b, y] = l("Popover"), C = v(
117
117
  }
118
118
  )
119
119
  ] });
120
- }, A = c;
120
+ }, V = c;
121
121
  export {
122
- q as Popover,
122
+ B as Popover,
123
123
  O as PopoverContent,
124
- B as PopoverTrigger,
125
- A as createPopoverHandle
124
+ L as PopoverTrigger,
125
+ V as createPopoverHandle
126
126
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { cn as t } from "../../../../libs/utils-shared/dist/index.js";
3
- import { cva as n } from "class-variance-authority";
3
+ import { cva as e } from "class-variance-authority";
4
4
  import { BaseInput as c } from "../../internal/BaseInput/BaseInput.js";
5
5
  import { Search as d } from "../../symbols/icons/Search.js";
6
- const m = n("", {
6
+ const m = e("", {
7
7
  variants: {
8
8
  appearance: {
9
9
  plain: "",
@@ -13,7 +13,7 @@ const m = n("", {
13
13
  defaultVariants: {
14
14
  appearance: "plain"
15
15
  }
16
- }), l = n("", {
16
+ }), l = e("", {
17
17
  variants: {
18
18
  appearance: {
19
19
  plain: "",
@@ -24,7 +24,7 @@ const m = n("", {
24
24
  appearance: "plain"
25
25
  }
26
26
  }), x = ({
27
- ref: e,
27
+ ref: n,
28
28
  appearance: a = "plain",
29
29
  className: s,
30
30
  inputClassName: p,
@@ -33,7 +33,7 @@ const m = n("", {
33
33
  }) => /* @__PURE__ */ r(
34
34
  c,
35
35
  {
36
- ref: e,
36
+ ref: n,
37
37
  prefix: /* @__PURE__ */ r(
38
38
  d,
39
39
  {
@@ -89,7 +89,7 @@ function x({
89
89
  icon: t,
90
90
  label: r,
91
91
  visible: n,
92
- onClick: a
92
+ onClick: s
93
93
  }) {
94
94
  return /* @__PURE__ */ o(
95
95
  "button",
@@ -99,7 +99,7 @@ function x({
99
99
  "aria-hidden": !n,
100
100
  tabIndex: -1,
101
101
  disabled: !n,
102
- onClick: a,
102
+ onClick: s,
103
103
  className: f.arrow({ visible: n, side: e }),
104
104
  children: /* @__PURE__ */ o(t, { size: 20 })
105
105
  }
@@ -110,12 +110,12 @@ function D({
110
110
  tabLayout: t,
111
111
  className: r,
112
112
  selectedIndex: n,
113
- children: a,
113
+ children: s,
114
114
  ...d
115
115
  }) {
116
- const l = v(null), { canScrollLeft: c, canScrollRight: s, scrollBy: u } = j(l);
116
+ const l = v(null), { canScrollLeft: c, canScrollRight: a, scrollBy: u } = j(l);
117
117
  z(l, n);
118
- const i = c || s ? B(c, s) : void 0;
118
+ const i = c || a ? B(c, a) : void 0;
119
119
  return /* @__PURE__ */ b(
120
120
  "div",
121
121
  {
@@ -131,7 +131,7 @@ function D({
131
131
  ref: l,
132
132
  className: "scrollbar-none overflow-x-auto",
133
133
  style: i ? { maskImage: i, WebkitMaskImage: i } : void 0,
134
- children: a
134
+ children: s
135
135
  }
136
136
  ),
137
137
  /* @__PURE__ */ o(
@@ -150,7 +150,7 @@ function D({
150
150
  side: "right",
151
151
  icon: L,
152
152
  label: "Scroll right",
153
- visible: s,
153
+ visible: a,
154
154
  onClick: () => u("right")
155
155
  }
156
156
  )
@@ -182,15 +182,15 @@ function P({
182
182
  selectedIndex: r,
183
183
  children: n
184
184
  }) {
185
- const a = v(null), { pill: d, isReady: l } = I({
186
- ref: a,
185
+ const s = v(null), { pill: d, isReady: l } = I({
186
+ ref: s,
187
187
  selectedIndex: r,
188
188
  children: n
189
189
  });
190
190
  return /* @__PURE__ */ b(
191
191
  "div",
192
192
  {
193
- ref: a,
193
+ ref: s,
194
194
  role: "radiogroup",
195
195
  "aria-disabled": t,
196
196
  className: f.root({ tabLayout: e }),
@@ -213,17 +213,17 @@ function $({
213
213
  children: t,
214
214
  icon: r,
215
215
  trailingContent: n,
216
- onClick: a,
216
+ onClick: s,
217
217
  className: d,
218
218
  disabled: l,
219
219
  ...c
220
220
  }) {
221
221
  const {
222
- selectedValue: s,
222
+ selectedValue: a,
223
223
  onSelectedChange: u,
224
224
  disabled: i,
225
225
  tabLayout: S
226
- } = k(), g = s === e, p = w(() => !!(l || i), [l, i]);
226
+ } = k(), g = a === e, p = w(() => !!(l || i), [l, i]);
227
227
  return /* @__PURE__ */ o(
228
228
  "button",
229
229
  {
@@ -233,7 +233,7 @@ function $({
233
233
  "aria-disabled": p,
234
234
  disabled: p,
235
235
  onClick: (C) => {
236
- p || (u(e), a?.(C));
236
+ p || (u(e), s?.(C));
237
237
  },
238
238
  className: h(
239
239
  f.item({ selected: g, disabled: p }),
@@ -254,14 +254,14 @@ function E({
254
254
  onSelectedChange: t,
255
255
  children: r,
256
256
  className: n,
257
- disabled: a,
257
+ disabled: s,
258
258
  appearance: d = "background",
259
259
  tabLayout: l = "fixed",
260
260
  ...c
261
261
  }) {
262
- const s = y({
262
+ const a = y({
263
263
  consumerName: "SegmentedControl",
264
- mergeWith: { disabled: a }
264
+ mergeWith: { disabled: s }
265
265
  }), u = R(
266
266
  e,
267
267
  r
@@ -272,7 +272,7 @@ function E({
272
272
  value: {
273
273
  selectedValue: e,
274
274
  onSelectedChange: (i) => t(i),
275
- disabled: s,
275
+ disabled: a,
276
276
  tabLayout: l
277
277
  },
278
278
  children: /* @__PURE__ */ o(
@@ -287,7 +287,7 @@ function E({
287
287
  P,
288
288
  {
289
289
  tabLayout: l,
290
- disabled: s,
290
+ disabled: a,
291
291
  selectedIndex: u,
292
292
  children: r
293
293
  }
@@ -36,8 +36,8 @@ function re({
36
36
  defaultSearchValue: m,
37
37
  onSearchValueChange: b,
38
38
  open: y,
39
- defaultOpen: v,
40
- onOpenChange: C,
39
+ defaultOpen: C,
40
+ onOpenChange: v,
41
41
  name: N,
42
42
  required: w,
43
43
  children: I
@@ -45,7 +45,7 @@ function re({
45
45
  const V = G({
46
46
  consumerName: "Select",
47
47
  mergeWith: { disabled: r }
48
- }), [h, T] = W(
48
+ }), [h, L] = W(
49
49
  {
50
50
  prop: o,
51
51
  defaultProp: a ?? null,
@@ -54,7 +54,7 @@ function re({
54
54
  }
55
55
  }
56
56
  ), {
57
- isGrouped: L,
57
+ isGrouped: T,
58
58
  groupedItems: R,
59
59
  filteredItemsForRoot: q,
60
60
  resolvedSearchValue: P,
@@ -79,18 +79,18 @@ function re({
79
79
  inputValue: P,
80
80
  onInputValueChange: D,
81
81
  value: h,
82
- onValueChange: (d) => T(f(d)),
82
+ onValueChange: (d) => L(f(d)),
83
83
  isItemEqualToValue: (d, E) => f(d) === f(E),
84
84
  open: y,
85
- defaultOpen: v,
86
- onOpenChange: C,
85
+ defaultOpen: C,
86
+ onOpenChange: v,
87
87
  name: N,
88
88
  required: w,
89
89
  disabled: V,
90
90
  children: /* @__PURE__ */ t(
91
91
  M,
92
92
  {
93
- value: { selectedValue: h, registerSearch: z, isGrouped: L, searchMounted: j },
93
+ value: { selectedValue: h, registerSearch: z, isGrouped: T, searchMounted: j },
94
94
  children: I
95
95
  }
96
96
  )
@@ -1,5 +1,5 @@
1
- import { jsx as e, jsxs as x, Fragment as P } from "react/jsx-runtime";
2
- import { createSafeContext as R, cn as m, useDisabledContext as q } from "../../../../libs/utils-shared/dist/index.js";
1
+ import { jsx as e, jsxs as x, Fragment as R } from "react/jsx-runtime";
2
+ import { createSafeContext as V, cn as m, useDisabledContext as q } from "../../../../libs/utils-shared/dist/index.js";
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";
@@ -7,7 +7,7 @@ import { useCommonTranslation as A } from "../../../../i18n/useCommonTranslation
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, y] = R("SideBar"), f = {
10
+ const [O, L] = 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",
@@ -128,43 +128,43 @@ const [O, y] = R("SideBar"), f = {
128
128
  const c = q({
129
129
  consumerName: "SideBarItem",
130
130
  mergeWith: { disabled: i }
131
- }), { collapsed: b, active: g, onActiveChange: v } = y({
131
+ }), { collapsed: b, active: g, onActiveChange: v } = L({
132
132
  consumerName: "SideBarItem",
133
133
  contextRequired: !0
134
- }), u = g === t, h = u ? a : r, I = s ?? o, L = S(
135
- (k) => {
136
- c || (l?.(k), v?.(t));
134
+ }), u = g === t, h = u ? a : r, y = s ?? o, I = S(
135
+ (P) => {
136
+ c || (l?.(P), v?.(t));
137
137
  },
138
138
  [c, l, v, t]
139
- ), V = /* @__PURE__ */ x(P, { children: [
139
+ ), j = /* @__PURE__ */ x(R, { children: [
140
140
  /* @__PURE__ */ e(h, { size: 20 }),
141
141
  o != null && /* @__PURE__ */ e("span", { className: "translate-x-8 truncate", children: o })
142
- ] }), j = /* @__PURE__ */ e(
142
+ ] }), k = /* @__PURE__ */ e(
143
143
  "button",
144
144
  {
145
145
  ref: n,
146
146
  type: "button",
147
147
  disabled: c,
148
- onClick: L,
148
+ onClick: I,
149
149
  className: m(
150
150
  f.item({ active: u, disabled: c }),
151
151
  d
152
152
  ),
153
153
  "aria-current": u ? "page" : void 0,
154
154
  ...p,
155
- children: V
155
+ children: j
156
156
  }
157
157
  );
158
158
  return /* @__PURE__ */ x(N, { open: b ? void 0 : !1, children: [
159
- /* @__PURE__ */ e(T, { asChild: !0, children: j }),
160
- /* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: I })
159
+ /* @__PURE__ */ e(T, { asChild: !0, children: k }),
160
+ /* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: y })
161
161
  ] });
162
162
  }, H = ({
163
163
  className: n,
164
164
  tooltipContent: t,
165
165
  ...r
166
166
  }) => {
167
- const { t: a } = A(), { collapsed: o, setCollapsed: s } = y({
167
+ const { t: a } = A(), { collapsed: o, setCollapsed: s } = L({
168
168
  consumerName: "SideBarCollapseToggle",
169
169
  contextRequired: !0
170
170
  }), i = S(() => {
@@ -3,15 +3,15 @@ import { cn as s } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { useCommonTranslation as a } from "../../../../i18n/useCommonTranslation.js";
4
4
  const c = ({
5
5
  ref: r,
6
- className: t,
6
+ className: e,
7
7
  size: n = 16,
8
- ...e
8
+ ...t
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", t),
14
+ className: s("shrink-0 animate-spin text-base", e),
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
- ...e,
23
+ ...t,
24
24
  children: /* @__PURE__ */ o(
25
25
  "path",
26
26
  {