@ledgerhq/lumen-ui-react 0.1.44 → 0.1.45

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 (58) hide show
  1. package/dist/index.js +111 -107
  2. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  3. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +1 -0
  4. package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -1
  5. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  6. package/dist/lib/Components/AmountInput/AmountInput.js +34 -32
  7. package/dist/lib/Components/AmountInput/types.d.ts +8 -0
  8. package/dist/lib/Components/AmountInput/types.d.ts.map +1 -1
  9. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.d.ts +1 -0
  10. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.d.ts.map +1 -1
  11. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.js +9 -8
  12. package/dist/lib/Components/BaseInput/BaseInput.js +13 -13
  13. package/dist/lib/Components/Button/Button.js +9 -9
  14. package/dist/lib/Components/Card/Card.js +14 -14
  15. package/dist/lib/Components/DataTable/DataTable.js +6 -6
  16. package/dist/lib/Components/Divider/Divider.js +4 -4
  17. package/dist/lib/Components/DotIcon/DotIcon.js +5 -5
  18. package/dist/lib/Components/Icon/Icon.js +4 -4
  19. package/dist/lib/Components/Link/Link.js +6 -6
  20. package/dist/lib/Components/MediaImage/MediaImage.js +6 -6
  21. package/dist/lib/Components/Menu/Menu.d.ts +8 -3
  22. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  23. package/dist/lib/Components/Menu/Menu.js +40 -33
  24. package/dist/lib/Components/Menu/types.d.ts +6 -5
  25. package/dist/lib/Components/Menu/types.d.ts.map +1 -1
  26. package/dist/lib/Components/NavBar/NavBar.js +9 -9
  27. package/dist/lib/Components/Pagination/Pagination.js +10 -10
  28. package/dist/lib/Components/Popover/Popover.js +10 -10
  29. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +8 -3
  30. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  31. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +41 -32
  32. package/dist/lib/Components/SegmentedControl/types.d.ts +6 -5
  33. package/dist/lib/Components/SegmentedControl/types.d.ts.map +1 -1
  34. package/dist/lib/Components/Select/Select.d.ts +19 -5
  35. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  36. package/dist/lib/Components/Select/Select.js +127 -104
  37. package/dist/lib/Components/Select/index.d.ts +1 -1
  38. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  39. package/dist/lib/Components/Select/types.d.ts +20 -19
  40. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  41. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +9 -9
  42. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -1
  43. package/dist/lib/Components/Select/utils/groupItems.d.ts +2 -2
  44. package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -1
  45. package/dist/lib/Components/SideBar/SideBar.d.ts +11 -3
  46. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  47. package/dist/lib/Components/SideBar/SideBar.js +61 -51
  48. package/dist/lib/Components/SideBar/index.d.ts +2 -2
  49. package/dist/lib/Components/SideBar/index.d.ts.map +1 -1
  50. package/dist/lib/Components/SideBar/types.d.ts +7 -6
  51. package/dist/lib/Components/SideBar/types.d.ts.map +1 -1
  52. package/dist/lib/Components/Table/Table.js +49 -49
  53. package/dist/lib/Components/Table/utils/useThrottledScrollBottom.js +5 -5
  54. package/dist/lib/Components/TileButton/TileButton.js +6 -6
  55. package/dist/lib/Components/Tooltip/Tooltip.js +4 -4
  56. package/dist/libs/utils-shared/dist/index.js +138 -143
  57. package/dist/package.json +1 -1
  58. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { MetaShape, SelectItemData, SelectItemGroup } from '../types';
1
+ import { MetaShape, SelectItemData, SelectItemGroup, SelectValue } from '../types';
2
2
  /**
3
3
  * base-ui's Combobox calls onValueChange with either a string (click on
4
4
  * Combobox.Item) or a full SelectItemData object (keyboard selection, which
@@ -10,7 +10,7 @@ export declare const resolveValue: (value: unknown) => string | null;
10
10
  * the insertion order of the first occurrence of each group key.
11
11
  * Items without a `group` value are collected under an empty-string key.
12
12
  */
13
- export declare function groupItemsByKey<TMeta extends MetaShape = MetaShape>(items: SelectItemData<TMeta>[]): SelectItemGroup<TMeta>[];
13
+ export declare function groupItemsByKey<T extends SelectValue = SelectValue, TMeta extends MetaShape = MetaShape>(items: SelectItemData<T, TMeta>[]): SelectItemGroup<T, TMeta>[];
14
14
  /**
15
15
  * Case-insensitive substring match on `item.label`.
16
16
  * Returns `true` for empty/whitespace-only queries so all items are shown.
@@ -1 +1 @@
1
- {"version":3,"file":"groupItems.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Select/utils/groupItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,IAWtD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,EACjE,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,GAC7B,eAAe,CAAC,KAAK,CAAC,EAAE,CAY1B;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,MAAM,cAAc,EACpB,OAAO,MAAM,KACZ,OAIF,CAAC"}
1
+ {"version":3,"file":"groupItems.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Select/utils/groupItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,eAAe,EACf,WAAW,EACZ,MAAM,UAAU,CAAC;AAElB;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,IAWtD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,KAAK,SAAS,SAAS,GAAG,SAAS,EACnC,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,GAAG,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAYhE;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,MAAM,cAAc,EACpB,OAAO,MAAM,KACZ,OAIF,CAAC"}
@@ -1,4 +1,5 @@
1
- import { SideBarProps, SideBarLeadingProps, SideBarTrailingProps, SideBarItemProps, SideBarCollapseToggleProps } from './types';
1
+ import { ReactElement } from 'react';
2
+ import { SideBarProps, SideBarLeadingProps, SideBarTrailingProps, SideBarItemProps, SideBarCollapseToggleProps, SideBarValue } from './types';
2
3
  /**
3
4
  * A responsive sidebar navigation component with collapsible functionality.
4
5
  * Uses a composite pattern for maximum flexibility with value-based selection.
@@ -19,7 +20,7 @@ import { SideBarProps, SideBarLeadingProps, SideBarTrailingProps, SideBarItemPro
19
20
  * </SideBarTrailing>
20
21
  * </SideBar>
21
22
  */
22
- export declare const SideBar: ({ ref, collapsed: controlledCollapsed, defaultCollapsed, onCollapsedChange, active: controlledActive, defaultActive, onActiveChange, children, className, ...props }: SideBarProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const SideBar: <T extends SideBarValue = SideBarValue>({ ref, collapsed: controlledCollapsed, defaultCollapsed, onCollapsedChange, active: controlledActive, defaultActive, onActiveChange, children, className, ...props }: SideBarProps<T>) => import("react/jsx-runtime").JSX.Element;
23
24
  /**
24
25
  * Container for the leading (top) section of the sidebar.
25
26
  * Typically contains the main navigation items.
@@ -53,7 +54,7 @@ export declare const SideBarTrailing: ({ ref, children, className, ...props }: S
53
54
  * tooltipContent="Wallet"
54
55
  * />
55
56
  */
56
- export declare const SideBarItem: ({ ref, value, icon: Icon, activeIcon: ActiveIcon, label, tooltipContent: tooltipContentProp, disabled: disabledProp, className, onClick, ...props }: SideBarItemProps) => import("react/jsx-runtime").JSX.Element;
57
+ export declare const SideBarItem: <T extends SideBarValue = SideBarValue>({ ref, value, icon: Icon, activeIcon: ActiveIcon, label, tooltipContent: tooltipContentProp, disabled: disabledProp, className, onClick, ...props }: SideBarItemProps<T>) => import("react/jsx-runtime").JSX.Element;
57
58
  /**
58
59
  * Collapse toggle button for the sidebar.
59
60
  * Place inside SideBarTrailing to allow users to collapse/expand the sidebar.
@@ -64,4 +65,11 @@ export declare const SideBarItem: ({ ref, value, icon: Icon, activeIcon: ActiveI
64
65
  * </SideBarTrailing>
65
66
  */
66
67
  export declare const SideBarCollapseToggle: ({ className, tooltipContent: tooltipContentProp, ...props }: SideBarCollapseToggleProps) => import("react/jsx-runtime").JSX.Element;
68
+ export declare function createSideBar<T extends SideBarValue = never>(): {
69
+ SideBar: (props: SideBarProps<T>) => ReactElement;
70
+ SideBarLeading: (props: SideBarLeadingProps) => ReactElement;
71
+ SideBarTrailing: (props: SideBarTrailingProps) => ReactElement;
72
+ SideBarItem: (props: SideBarItemProps<T>) => ReactElement;
73
+ SideBarCollapseToggle: (props: SideBarCollapseToggleProps) => ReactElement;
74
+ };
67
75
  //# sourceMappingURL=SideBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideBar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/SideBar/SideBar.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAEV,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAmDjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,GAAI,sKAWrB,YAAY,4CA4Bd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,w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CAAC;IAClD,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,YAAY,CAAC;IAC7D,eAAe,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,YAAY,CAAC;IAC/D,WAAW,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;IAC1D,qBAAqB,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,YAAY,CAAC;CAC5E,CAQA"}
@@ -1,14 +1,14 @@
1
- import { jsx as e, jsxs as C, Fragment as P } from "react/jsx-runtime";
2
- import { createSafeContext as R, cn as m, useDisabledContext as V } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as h } from "class-variance-authority";
4
- import { useCallback as B } from "react";
5
- import { Tooltip as S, TooltipTrigger as N, TooltipContent as T } from "../Tooltip/Tooltip.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
+ import { cva as C } from "class-variance-authority";
4
+ import { useCallback as S } from "react";
5
+ import { Tooltip as N, TooltipTrigger as T, TooltipContent as w } from "../Tooltip/Tooltip.js";
6
6
  import { useCommonTranslation as A } from "../../../i18n/useCommonTranslation.js";
7
- import { useControllableState as x } from "../../../utils/useControllableState/useControllableState.js";
8
- import { ExpandRight as q } from "../../Symbols/Icons/ExpandRight.js";
7
+ import { useControllableState as B } from "../../../utils/useControllableState/useControllableState.js";
8
+ import { ExpandRight as z } from "../../Symbols/Icons/ExpandRight.js";
9
9
  import { ExpandLeft as E } from "../../Symbols/Icons/ExpandLeft.js";
10
- const [O, w] = R("SideBar"), f = {
11
- root: h(
10
+ const [O, y] = V("SideBar"), f = {
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",
14
14
  "transition-[width] duration-300 ease-in-out",
@@ -26,8 +26,8 @@ const [O, w] = R("SideBar"), f = {
26
26
  }
27
27
  }
28
28
  ),
29
- section: h(["flex flex-col gap-16"]),
30
- item: h(
29
+ section: C(["flex flex-col gap-16"]),
30
+ item: C(
31
31
  [
32
32
  "flex h-44 w-full cursor-pointer items-center overflow-hidden rounded-md p-12",
33
33
  "transition-all duration-300",
@@ -50,26 +50,26 @@ const [O, w] = R("SideBar"), f = {
50
50
  }
51
51
  }
52
52
  )
53
- }, U = ({
53
+ }, D = ({
54
54
  ref: n,
55
55
  collapsed: t,
56
56
  defaultCollapsed: s = !1,
57
57
  onCollapsedChange: a,
58
58
  active: o,
59
59
  defaultActive: r,
60
- onActiveChange: c,
60
+ onActiveChange: i,
61
61
  children: d,
62
- className: i,
62
+ className: l,
63
63
  ...p
64
64
  }) => {
65
- const { t: l } = A(), [b, g] = x({
65
+ const { t: c } = A(), [b, g] = B({
66
66
  prop: t,
67
67
  defaultProp: s,
68
68
  onChange: a
69
- }), [v, u] = x({
69
+ }), [v, u] = B({
70
70
  prop: o,
71
71
  defaultProp: r ?? "",
72
- onChange: c
72
+ onChange: i ? (h) => i(h) : void 0
73
73
  });
74
74
  return /* @__PURE__ */ e(
75
75
  O,
@@ -79,15 +79,15 @@ const [O, w] = R("SideBar"), f = {
79
79
  "nav",
80
80
  {
81
81
  ref: n,
82
- className: m(f.root({ collapsed: b }), i),
83
- "aria-label": l("components.sideBar.navigationAriaLabel"),
82
+ className: m(f.root({ collapsed: b }), l),
83
+ "aria-label": c("components.sideBar.navigationAriaLabel"),
84
84
  ...p,
85
85
  children: d
86
86
  }
87
87
  )
88
88
  }
89
89
  );
90
- }, X = ({
90
+ }, F = ({
91
91
  ref: n,
92
92
  children: t,
93
93
  className: s,
@@ -100,7 +100,7 @@ const [O, w] = R("SideBar"), f = {
100
100
  ...a,
101
101
  children: t
102
102
  }
103
- ), Y = ({
103
+ ), U = ({
104
104
  ref: n,
105
105
  children: t,
106
106
  className: s,
@@ -113,41 +113,41 @@ const [O, w] = R("SideBar"), f = {
113
113
  ...a,
114
114
  children: t
115
115
  }
116
- ), Z = ({
116
+ ), W = ({
117
117
  ref: n,
118
118
  value: t,
119
119
  icon: s,
120
120
  activeIcon: a,
121
121
  label: o,
122
122
  tooltipContent: r,
123
- disabled: c = !1,
123
+ disabled: i = !1,
124
124
  className: d,
125
- onClick: i,
125
+ onClick: l,
126
126
  ...p
127
127
  }) => {
128
- const l = V({
128
+ const c = q({
129
129
  consumerName: "SideBarItem",
130
- mergeWith: { disabled: c }
131
- }), { collapsed: b, active: g, onActiveChange: v } = w({
130
+ mergeWith: { disabled: i }
131
+ }), { collapsed: b, active: g, onActiveChange: v } = y({
132
132
  consumerName: "SideBarItem",
133
133
  contextRequired: !0
134
- }), u = g === t, y = u ? a : s, I = r ?? o, L = B(
135
- (z) => {
136
- l || (i?.(z), v?.(t));
134
+ }), u = g === t, h = u ? a : s, I = r ?? o, L = S(
135
+ (P) => {
136
+ c || (l?.(P), v?.(t));
137
137
  },
138
- [l, i, v, t]
139
- ), j = /* @__PURE__ */ C(P, { children: [
140
- /* @__PURE__ */ e(y, { size: 20 }),
138
+ [c, l, v, t]
139
+ ), j = /* @__PURE__ */ x(R, { children: [
140
+ /* @__PURE__ */ e(h, { size: 20 }),
141
141
  o != null && /* @__PURE__ */ e("span", { className: "translate-x-8 truncate", children: o })
142
142
  ] }), k = /* @__PURE__ */ e(
143
143
  "button",
144
144
  {
145
145
  ref: n,
146
146
  type: "button",
147
- disabled: l,
147
+ disabled: c,
148
148
  onClick: L,
149
149
  className: m(
150
- f.item({ active: u, disabled: l }),
150
+ f.item({ active: u, disabled: c }),
151
151
  d
152
152
  ),
153
153
  "aria-current": u ? "page" : void 0,
@@ -155,25 +155,25 @@ const [O, w] = R("SideBar"), f = {
155
155
  children: j
156
156
  }
157
157
  );
158
- return /* @__PURE__ */ C(S, { open: b ? void 0 : !1, children: [
159
- /* @__PURE__ */ e(N, { asChild: !0, children: k }),
160
- /* @__PURE__ */ e(T, { side: "right", sideOffset: 8, children: I })
158
+ return /* @__PURE__ */ x(N, { open: b ? void 0 : !1, children: [
159
+ /* @__PURE__ */ e(T, { asChild: !0, children: k }),
160
+ /* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: I })
161
161
  ] });
162
- }, _ = ({
162
+ }, G = ({
163
163
  className: n,
164
164
  tooltipContent: t,
165
165
  ...s
166
166
  }) => {
167
- const { t: a } = A(), { collapsed: o, setCollapsed: r } = w({
167
+ const { t: a } = A(), { collapsed: o, setCollapsed: r } = y({
168
168
  consumerName: "SideBarCollapseToggle",
169
169
  contextRequired: !0
170
- }), c = B(() => {
170
+ }), i = S(() => {
171
171
  r(!o);
172
- }, [o, r]), d = o ? q : E, i = /* @__PURE__ */ e(
172
+ }, [o, r]), d = o ? z : E, l = /* @__PURE__ */ e(
173
173
  "button",
174
174
  {
175
175
  type: "button",
176
- onClick: c,
176
+ onClick: i,
177
177
  className: m(
178
178
  f.item({ active: !1, disabled: !1 }),
179
179
  n
@@ -183,15 +183,25 @@ const [O, w] = R("SideBar"), f = {
183
183
  children: /* @__PURE__ */ e(d, { size: 20 })
184
184
  }
185
185
  ), p = t ?? a("components.sideBar.collapseAriaLabel");
186
- return /* @__PURE__ */ C(S, { open: o ? void 0 : !1, children: [
187
- /* @__PURE__ */ e(N, { asChild: !0, children: i }),
188
- /* @__PURE__ */ e(T, { side: "right", sideOffset: 8, children: p })
186
+ return /* @__PURE__ */ x(N, { open: o ? void 0 : !1, children: [
187
+ /* @__PURE__ */ e(T, { asChild: !0, children: l }),
188
+ /* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: p })
189
189
  ] });
190
190
  };
191
+ function $() {
192
+ return {
193
+ SideBar: D,
194
+ SideBarLeading: F,
195
+ SideBarTrailing: U,
196
+ SideBarItem: W,
197
+ SideBarCollapseToggle: G
198
+ };
199
+ }
191
200
  export {
192
- U as SideBar,
193
- _ as SideBarCollapseToggle,
194
- Z as SideBarItem,
195
- X as SideBarLeading,
196
- Y as SideBarTrailing
201
+ D as SideBar,
202
+ G as SideBarCollapseToggle,
203
+ W as SideBarItem,
204
+ F as SideBarLeading,
205
+ U as SideBarTrailing,
206
+ $ as createSideBar
197
207
  };
@@ -1,3 +1,3 @@
1
- export { SideBar, SideBarLeading, SideBarTrailing, SideBarItem, SideBarCollapseToggle, } from './SideBar';
2
- export * from './types';
1
+ export * from './SideBar';
2
+ export type * from './types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/SideBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,WAAW,EACX,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/SideBar/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,mBAAmB,SAAS,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { ComponentPropsWithRef, ComponentType, MouseEventHandler, ReactNode } from 'react';
2
2
  import { IconSize } from '../Icon/types';
3
+ export type SideBarValue = string;
3
4
  /**
4
5
  * Context value for passing state to SideBar sub-components
5
6
  */
@@ -24,7 +25,7 @@ export type SideBarContextValue = {
24
25
  /**
25
26
  * Props for the SideBar root component
26
27
  */
27
- export type SideBarProps = {
28
+ export type SideBarProps<T extends SideBarValue = SideBarValue> = {
28
29
  /**
29
30
  * Controlled collapsed state. When provided, the component becomes controlled.
30
31
  */
@@ -42,15 +43,15 @@ export type SideBarProps = {
42
43
  * The value of the currently active item.
43
44
  * When provided, the component becomes controlled for selection.
44
45
  */
45
- active?: string;
46
+ active?: T;
46
47
  /**
47
48
  * Default active item value for uncontrolled mode.
48
49
  */
49
- defaultActive?: string;
50
+ defaultActive?: T;
50
51
  /**
51
52
  * Callback fired when the active item changes.
52
53
  */
53
- onActiveChange?: (value: string) => void;
54
+ onActiveChange?: (value: T) => void;
54
55
  /**
55
56
  * The children of the sidebar (SideBarLeading, SideBarTrailing).
56
57
  */
@@ -89,11 +90,11 @@ export type SideBarTrailingProps = {
89
90
  /**
90
91
  * Props for the SideBarItem component
91
92
  */
92
- export type SideBarItemProps = {
93
+ export type SideBarItemProps<T extends SideBarValue = SideBarValue> = {
93
94
  /**
94
95
  * Unique identifier for this item. Used to determine which item is active.
95
96
  */
96
- value: string;
97
+ value: T;
97
98
  /**
98
99
  * The icon component to display when inactive.
99
100
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/SideBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,C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AAG,SAAS,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/SideBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,IAAI;IAChE;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,CAAC;IACX;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK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C,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
2
  import { createSafeContext as N, cn as c } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as s } from "class-variance-authority";
3
+ import { cva as o } from "class-variance-authority";
4
4
  import { useThrottledScrollBottom as y } from "./utils/useThrottledScrollBottom.js";
5
5
  import { Spot as T } from "../Spot/Spot.js";
6
6
  import { Information as w } from "../../Symbols/Icons/Information.js";
@@ -9,7 +9,7 @@ import { ChevronUpDown as R } from "../../Symbols/Icons/ChevronUpDown.js";
9
9
  import { ChevronDescending as j } from "../../Symbols/Icons/ChevronDescending.js";
10
10
  import { ChevronAscending as B } from "../../Symbols/Icons/ChevronAscending.js";
11
11
  import { InteractiveIcon as k } from "../InteractiveIcon/InteractiveIcon.js";
12
- const [H, u] = N("Table"), I = s(
12
+ const [H, u] = N("Table"), I = o(
13
13
  "relative scrollbar-none w-full max-w-full border-collapse overflow-x-auto rounded-lg",
14
14
  {
15
15
  variants: {
@@ -24,19 +24,19 @@ const [H, u] = N("Table"), I = s(
24
24
  appearance: e = "no-background",
25
25
  className: t,
26
26
  onScrollBottom: n,
27
- loading: l,
28
- ref: o,
27
+ loading: s,
28
+ ref: l,
29
29
  ...i
30
30
  }) => {
31
31
  const d = y({
32
32
  onScrollBottom: n,
33
- loading: l
33
+ loading: s
34
34
  });
35
- return /* @__PURE__ */ r(H, { value: { appearance: e, loading: l }, children: /* @__PURE__ */ r(
35
+ return /* @__PURE__ */ r(H, { value: { appearance: e, loading: s }, children: /* @__PURE__ */ r(
36
36
  "div",
37
37
  {
38
38
  ...i,
39
- ref: o,
39
+ ref: l,
40
40
  className: I({ appearance: e, className: t }),
41
41
  onScroll: d,
42
42
  children: a
@@ -65,22 +65,22 @@ const [H, u] = N("Table"), I = s(
65
65
  className: e,
66
66
  clickable: t = !1,
67
67
  onClick: n,
68
- ref: l,
69
- ...o
68
+ ref: s,
69
+ ...l
70
70
  }) => /* @__PURE__ */ r(
71
71
  "tr",
72
72
  {
73
- ref: l,
73
+ ref: s,
74
74
  onClick: n,
75
75
  role: t ? "button" : void 0,
76
76
  className: c(
77
77
  t && "cursor-pointer outline-none select-none hover:bg-base-transparent-hover active:bg-base-transparent-pressed",
78
78
  e
79
79
  ),
80
- ...o,
80
+ ...l,
81
81
  children: a
82
82
  }
83
- ), S = s("", {
83
+ ), S = o("", {
84
84
  variants: {
85
85
  appearance: {
86
86
  "no-background": "bg-canvas",
@@ -96,9 +96,9 @@ const [H, u] = N("Table"), I = s(
96
96
  className: e,
97
97
  stickyHeader: t = !0,
98
98
  ref: n,
99
- ...l
99
+ ...s
100
100
  }) => {
101
- const { appearance: o } = u({
101
+ const { appearance: l } = u({
102
102
  consumerName: "TableHeaderRow",
103
103
  contextRequired: !0
104
104
  });
@@ -106,8 +106,8 @@ const [H, u] = N("Table"), I = s(
106
106
  "tr",
107
107
  {
108
108
  ref: n,
109
- className: S({ appearance: o, stickyHeader: t, className: e }),
110
- ...l,
109
+ className: S({ appearance: l, stickyHeader: t, className: e }),
110
+ ...s,
111
111
  children: a
112
112
  }
113
113
  );
@@ -116,24 +116,24 @@ const [H, u] = N("Table"), I = s(
116
116
  className: e,
117
117
  colSpan: t = 1,
118
118
  ref: n,
119
- ...l
119
+ ...s
120
120
  }) => {
121
- const { appearance: o } = u({
121
+ const { appearance: l } = u({
122
122
  consumerName: "TableGroupHeaderRow",
123
123
  contextRequired: !0
124
124
  });
125
- return /* @__PURE__ */ r("tr", { ref: n, className: c("h-40", e), ...l, children: /* @__PURE__ */ r("td", { colSpan: t, children: /* @__PURE__ */ r(
125
+ return /* @__PURE__ */ r("tr", { ref: n, className: c("h-40", e), ...s, children: /* @__PURE__ */ r("td", { colSpan: t, children: /* @__PURE__ */ r(
126
126
  "div",
127
127
  {
128
128
  className: c(
129
129
  "flex h-32 w-full items-center bg-muted px-12 body-3 text-base",
130
- o === "no-background" && "rounded-sm"
130
+ l === "no-background" && "rounded-sm"
131
131
  ),
132
132
  children: a
133
133
  }
134
134
  ) }) });
135
135
  }, p = {
136
- root: s(
136
+ root: o(
137
137
  "h-64 truncate p-12 body-3 text-base first:rounded-l-md last:rounded-r-md",
138
138
  {
139
139
  variants: {
@@ -147,7 +147,7 @@ const [H, u] = N("Table"), I = s(
147
147
  }
148
148
  }
149
149
  ),
150
- inner: s("flex flex-1 justify-end", {
150
+ inner: o("flex flex-1 justify-end", {
151
151
  variants: {
152
152
  align: {
153
153
  start: "text-start justify-start",
@@ -160,17 +160,17 @@ const [H, u] = N("Table"), I = s(
160
160
  className: e,
161
161
  hideBelow: t,
162
162
  align: n = "start",
163
- ref: l,
164
- ...o
163
+ ref: s,
164
+ ...l
165
165
  }) => /* @__PURE__ */ r(
166
166
  "td",
167
167
  {
168
- ref: l,
168
+ ref: s,
169
169
  className: p.root({ hideBelow: t, className: e }),
170
- ...o,
170
+ ...l,
171
171
  children: /* @__PURE__ */ r("div", { className: p.inner({ align: n }), children: a })
172
172
  }
173
- ), A = s("flex min-w-0 items-center gap-12", {
173
+ ), A = o("flex min-w-0 items-center gap-12", {
174
174
  variants: {
175
175
  align: {
176
176
  start: "text-start",
@@ -182,25 +182,25 @@ const [H, u] = N("Table"), I = s(
182
182
  align: e = "start",
183
183
  leadingContent: t,
184
184
  title: n,
185
- description: l,
186
- ref: o,
185
+ description: s,
186
+ ref: l,
187
187
  ...i
188
188
  }) => /* @__PURE__ */ m(
189
189
  "div",
190
190
  {
191
- ref: o,
191
+ ref: l,
192
192
  className: A({ align: e, className: a }),
193
193
  ...i,
194
194
  children: [
195
195
  t && /* @__PURE__ */ r("div", { className: "shrink-0", children: t }),
196
196
  /* @__PURE__ */ m("div", { className: "flex min-w-0 flex-col gap-4", children: [
197
197
  /* @__PURE__ */ r("div", { className: "shrink-0 body-2 text-base", children: n }),
198
- /* @__PURE__ */ r("div", { className: "truncate body-3 text-muted", children: l })
198
+ /* @__PURE__ */ r("div", { className: "truncate body-3 text-muted", children: s })
199
199
  ] })
200
200
  ]
201
201
  }
202
202
  ), f = {
203
- root: s("group h-40 truncate p-12 body-3 text-base", {
203
+ root: o("group h-40 truncate p-12 body-3 text-base", {
204
204
  variants: {
205
205
  hideBelow: {
206
206
  xs: "hidden xs:table-cell",
@@ -211,7 +211,7 @@ const [H, u] = N("Table"), I = s(
211
211
  }
212
212
  }
213
213
  }),
214
- content: s("flex min-w-0 items-center gap-4 truncate", {
214
+ content: o("flex min-w-0 items-center gap-4 truncate", {
215
215
  variants: {
216
216
  align: {
217
217
  start: "text-start justify-start",
@@ -219,7 +219,7 @@ const [H, u] = N("Table"), I = s(
219
219
  }
220
220
  }
221
221
  }),
222
- trailingContent: s(
222
+ trailingContent: o(
223
223
  "flex items-center justify-center opacity-0 group-hover:opacity-100"
224
224
  )
225
225
  }, ee = ({
@@ -227,8 +227,8 @@ const [H, u] = N("Table"), I = s(
227
227
  className: e,
228
228
  scope: t = "col",
229
229
  hideBelow: n,
230
- align: l = "start",
231
- trailingContent: o,
230
+ align: s = "start",
231
+ trailingContent: l,
232
232
  ref: i,
233
233
  ...d
234
234
  }) => /* @__PURE__ */ r(
@@ -238,9 +238,9 @@ const [H, u] = N("Table"), I = s(
238
238
  scope: t,
239
239
  className: f.root({ hideBelow: n, className: e }),
240
240
  ...d,
241
- children: /* @__PURE__ */ r("div", { className: "min-w-0", children: /* @__PURE__ */ m("div", { className: f.content({ align: l }), children: [
242
- /* @__PURE__ */ r("span", { className: c("truncate", l === "end" && "order-1"), children: a }),
243
- /* @__PURE__ */ r("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: o })
241
+ children: /* @__PURE__ */ r("div", { className: "min-w-0", children: /* @__PURE__ */ m("div", { className: f.content({ align: s }), children: [
242
+ /* @__PURE__ */ r("span", { className: c("truncate", s === "end" && "order-1"), children: a }),
243
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: l })
244
244
  ] }) })
245
245
  }
246
246
  ), te = ({
@@ -303,7 +303,7 @@ const [H, u] = N("Table"), I = s(
303
303
  children: /* @__PURE__ */ r(T, { appearance: "loader", size: 48 })
304
304
  }
305
305
  ) : null;
306
- }, le = ({
306
+ }, se = ({
307
307
  className: a,
308
308
  ref: e,
309
309
  ...t
@@ -322,7 +322,7 @@ const [H, u] = N("Table"), I = s(
322
322
  desc: j,
323
323
  idle: R
324
324
  }, h = {
325
- root: s(
325
+ root: o(
326
326
  [
327
327
  "flex min-w-0 cursor-pointer items-center gap-4",
328
328
  "rounded-xs focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"
@@ -336,7 +336,7 @@ const [H, u] = N("Table"), I = s(
336
336
  }
337
337
  }
338
338
  ),
339
- icon: s("", {
339
+ icon: o("", {
340
340
  variants: {
341
341
  active: {
342
342
  true: "opacity-100",
@@ -344,13 +344,13 @@ const [H, u] = N("Table"), I = s(
344
344
  }
345
345
  }
346
346
  })
347
- }, oe = ({
347
+ }, le = ({
348
348
  children: a,
349
349
  sortDirection: e,
350
350
  align: t = "start",
351
351
  onToggleSort: n,
352
- className: l,
353
- onClick: o,
352
+ className: s,
353
+ onClick: l,
354
354
  ref: i,
355
355
  ...d
356
356
  }) => {
@@ -364,10 +364,10 @@ const [H, u] = N("Table"), I = s(
364
364
  ...d,
365
365
  ref: i,
366
366
  type: "button",
367
- className: h.root({ align: t, className: l }),
367
+ className: h.root({ align: t, className: s }),
368
368
  "aria-label": e ? x[e] : void 0,
369
369
  onClick: (g) => {
370
- o?.(g), n?.(e === "asc" ? "desc" : "asc");
370
+ l?.(g), n?.(e === "asc" ? "desc" : "asc");
371
371
  },
372
372
  children: [
373
373
  /* @__PURE__ */ r("span", { className: "min-w-0 truncate", children: a }),
@@ -396,9 +396,9 @@ export {
396
396
  W as TableHeader,
397
397
  ee as TableHeaderCell,
398
398
  Z as TableHeaderRow,
399
- le as TableInfoIcon,
399
+ se as TableInfoIcon,
400
400
  re as TableLoadingRow,
401
401
  O as TableRoot,
402
402
  Y as TableRow,
403
- oe as TableSortButton
403
+ le as TableSortButton
404
404
  };