@ledgerhq/lumen-ui-react 0.1.30 → 0.1.32

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/lib/Components/AddressInput/AddressInput.d.ts +4 -4
  2. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +13 -13
  3. package/dist/lib/Components/AmountInput/AmountInput.js +14 -14
  4. package/dist/lib/Components/Banner/Banner.js +5 -5
  5. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -1
  6. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  7. package/dist/lib/Components/BaseInput/BaseInput.js +134 -85
  8. package/dist/lib/Components/BaseInput/types.d.ts +12 -4
  9. package/dist/lib/Components/BaseInput/types.d.ts.map +1 -1
  10. package/dist/lib/Components/Button/Button.js +8 -8
  11. package/dist/lib/Components/Card/Card.js +12 -12
  12. package/dist/lib/Components/CardButton/CardButton.js +4 -4
  13. package/dist/lib/Components/DataTable/DataTable.d.ts +1 -1
  14. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  15. package/dist/lib/Components/DataTable/DataTable.js +101 -99
  16. package/dist/lib/Components/DataTable/types.d.ts +8 -0
  17. package/dist/lib/Components/DataTable/types.d.ts.map +1 -1
  18. package/dist/lib/Components/Dialog/Dialog.js +13 -13
  19. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +12 -12
  20. package/dist/lib/Components/DotCount/DotCount.js +4 -4
  21. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +4 -4
  22. package/dist/lib/Components/Link/Link.js +6 -6
  23. package/dist/lib/Components/ListItem/ListItem.js +3 -3
  24. package/dist/lib/Components/MediaButton/MediaButton.js +4 -4
  25. package/dist/lib/Components/MediaImage/MediaImage.js +9 -9
  26. package/dist/lib/Components/NavBar/CoinCapsule.js +4 -4
  27. package/dist/lib/Components/NavBar/NavBar.js +26 -26
  28. package/dist/lib/Components/Popover/Popover.js +6 -6
  29. package/dist/lib/Components/SearchInput/SearchInput.d.ts +4 -4
  30. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
  31. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  32. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +54 -52
  33. package/dist/lib/Components/SegmentedControl/types.d.ts +4 -0
  34. package/dist/lib/Components/SegmentedControl/types.d.ts.map +1 -1
  35. package/dist/lib/Components/Select/Select.d.ts +1 -1
  36. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  37. package/dist/lib/Components/Select/Select.js +41 -39
  38. package/dist/lib/Components/Select/types.d.ts +1 -1
  39. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  40. package/dist/lib/Components/SideBar/SideBar.js +9 -9
  41. package/dist/lib/Components/Skeleton/Skeleton.js +4 -4
  42. package/dist/lib/Components/Switch/Switch.js +5 -5
  43. package/dist/lib/Components/Table/Table.d.ts +1 -1
  44. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  45. package/dist/lib/Components/Table/Table.js +47 -42
  46. package/dist/lib/Components/Table/types.d.ts +7 -0
  47. package/dist/lib/Components/Table/types.d.ts.map +1 -1
  48. package/dist/lib/Components/Table/utils/useThrottledScrollBottom.js +3 -3
  49. package/dist/lib/Components/TextInput/TextInput.d.ts +4 -4
  50. package/dist/lib/Symbols/Icons/Lightbulb.d.ts +29 -0
  51. package/dist/lib/Symbols/Icons/Lightbulb.d.ts.map +1 -0
  52. package/dist/lib/Symbols/Icons/Lightbulb.js +28 -0
  53. package/dist/lib/Symbols/index.d.ts +1 -0
  54. package/dist/lib/Symbols/index.d.ts.map +1 -1
  55. package/dist/lib/Symbols/index.js +270 -268
  56. package/dist/libs/utils-shared/dist/index.js +146 -133
  57. package/dist/package.json +2 -2
  58. package/package.json +2 -2
@@ -144,7 +144,7 @@ const k = ({
144
144
  ]
145
145
  }
146
146
  );
147
- }, z = ({
147
+ }, V = ({
148
148
  ref: t,
149
149
  children: a,
150
150
  className: r,
@@ -157,7 +157,7 @@ const k = ({
157
157
  ...e,
158
158
  children: a
159
159
  }
160
- ), V = ({
160
+ ), z = ({
161
161
  ref: t,
162
162
  children: a,
163
163
  className: r,
@@ -226,7 +226,7 @@ const k = ({
226
226
  children: a
227
227
  }
228
228
  );
229
- }, L = ({
229
+ }, K = ({
230
230
  ref: t,
231
231
  children: a,
232
232
  className: r,
@@ -249,7 +249,7 @@ const k = ({
249
249
  children: a
250
250
  }
251
251
  );
252
- }, M = ({
252
+ }, L = ({
253
253
  ref: t,
254
254
  children: a,
255
255
  className: r,
@@ -272,7 +272,7 @@ const k = ({
272
272
  children: a
273
273
  }
274
274
  ) });
275
- }, S = ({
275
+ }, M = ({
276
276
  ref: t,
277
277
  children: a,
278
278
  className: r,
@@ -304,7 +304,7 @@ const k = ({
304
304
  ) })
305
305
  }
306
306
  );
307
- }, U = ({
307
+ }, S = ({
308
308
  ref: t,
309
309
  children: a,
310
310
  className: r,
@@ -320,14 +320,14 @@ const k = ({
320
320
  );
321
321
  export {
322
322
  P as Card,
323
- V as CardContent,
324
- L as CardContentDescription,
323
+ z as CardContent,
324
+ K as CardContentDescription,
325
325
  B as CardContentRow,
326
326
  I as CardContentTitle,
327
- S as CardFooter,
328
- U as CardFooterActions,
327
+ M as CardFooter,
328
+ S as CardFooterActions,
329
329
  T as CardHeader,
330
- z as CardLeading,
331
- M as CardTrailing,
330
+ V as CardLeading,
331
+ L as CardTrailing,
332
332
  k as resolveCardInnerContext
333
333
  };
@@ -20,9 +20,9 @@ const h = f(
20
20
  className: o,
21
21
  appearance: d,
22
22
  icon: l,
23
- title: n,
23
+ title: r,
24
24
  description: t,
25
- hideChevron: r,
25
+ hideChevron: n,
26
26
  disabled: b,
27
27
  ...u
28
28
  }) => {
@@ -45,10 +45,10 @@ const h = f(
45
45
  children: [
46
46
  s && /* @__PURE__ */ e(s, { size: 24 }),
47
47
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 flex-col gap-4 text-left", children: [
48
- /* @__PURE__ */ e("div", { className: "min-w-0 truncate body-2-semi-bold", children: n }),
48
+ /* @__PURE__ */ e("div", { className: "min-w-0 truncate body-2-semi-bold", children: r }),
49
49
  t && /* @__PURE__ */ e("div", { className: "line-clamp-2 min-w-0 body-3 text-muted group-disabled:text-disabled", children: t })
50
50
  ] }),
51
- !r && /* @__PURE__ */ e(
51
+ !n && /* @__PURE__ */ e(
52
52
  v,
53
53
  {
54
54
  size: 24,
@@ -11,7 +11,7 @@ import { DataTableProps, DataTableRootProps } from './types';
11
11
  * <DataTable />
12
12
  * </DataTableRoot>
13
13
  */
14
- export declare const DataTableRoot: <TData extends RowData>({ table, appearance, paginationMode, loading, onScrollBottom, onRowClick, groupBy, renderGroupHeader, hideHeader, children, className, ref, ...props }: DataTableRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const DataTableRoot: <TData extends RowData>({ table, appearance, paginationMode, loading, onScrollBottom, onRowClick, groupBy, renderGroupHeader, hideHeader, stickyHeader, children, className, ref, ...props }: DataTableRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
15
15
  /**
16
16
  * Renders the full table (header + body) from the TanStack table instance
17
17
  * provided by `DataTableRoot`. Internally composes the pure-UI Table building blocks.
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,OAAO,EAER,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAgBvD,OAAO,KAAK,EAGV,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAcjB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,EAAE,wJAclD,kBAAkB,CAAC,KAAK,CAAC,4CAoB3B,CAAC;AAyDF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,8BAA8B,cAAc,4CA6BrE,CAAC;AAsHF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,wBAGxC,gBAAgB,4CAqBlB,CAAC"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,OAAO,EAER,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAgBvD,OAAO,KAAK,EAGV,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAejB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,EAAE,sKAelD,kBAAkB,CAAC,KAAK,CAAC,4CAqB3B,CAAC;AAyDF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,8BAA8B,cAAc,4CA6BrE,CAAC;AAsHF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,wBAGxC,gBAAgB,4CAqBlB,CAAC"}
@@ -1,151 +1,153 @@
1
- import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
- import { createSafeContext as h, cn as w } from "../../../libs/utils-shared/dist/index.js";
1
+ import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
+ import { createSafeContext as w, cn as C } from "../../../libs/utils-shared/dist/index.js";
3
3
  import { flexRender as m } from "@tanstack/react-table";
4
- import { useCallback as C, Fragment as R } from "react";
5
- import { TableRoot as x, Table as B, TableLoadingRow as k, TableHeader as y, TableHeaderRow as N, TableHeaderCell as S, TableSortButton as H, TableBody as b, TableGroupHeaderRow as v, TableRow as G, TableCell as q } from "../Table/Table.js";
6
- import { SearchInput as I } from "../SearchInput/SearchInput.js";
7
- const [F, u] = h("DataTableContext"), O = ({
4
+ import { useCallback as R, Fragment as x } from "react";
5
+ import { TableRoot as B, Table as k, TableLoadingRow as y, TableHeader as H, TableHeaderRow as N, TableHeaderCell as S, TableSortButton as v, TableBody as b, TableGroupHeaderRow as G, TableRow as q, TableCell as I } from "../Table/Table.js";
6
+ import { SearchInput as F } from "../SearchInput/SearchInput.js";
7
+ const [M, u] = w("DataTableContext"), Q = ({
8
8
  table: l,
9
- appearance: r = "no-background",
10
- paginationMode: a = "none",
9
+ appearance: n = "no-background",
10
+ paginationMode: o = "none",
11
11
  loading: e = !1,
12
- onScrollBottom: o,
13
- onRowClick: t,
14
- groupBy: c,
15
- renderGroupHeader: i,
12
+ onScrollBottom: t,
13
+ onRowClick: i,
14
+ groupBy: r,
15
+ renderGroupHeader: c,
16
16
  hideHeader: s = !1,
17
- children: T,
18
- className: p,
19
- ref: D,
20
- ...f
21
- }) => /* @__PURE__ */ n(
22
- F,
17
+ stickyHeader: T = !0,
18
+ children: p,
19
+ className: D,
20
+ ref: f,
21
+ ...h
22
+ }) => /* @__PURE__ */ a(
23
+ M,
23
24
  {
24
25
  value: {
25
26
  hideHeader: s,
26
- paginationMode: a,
27
+ stickyHeader: T,
28
+ paginationMode: o,
27
29
  table: l,
28
- appearance: r,
30
+ appearance: n,
29
31
  loading: e,
30
- onScrollBottom: o,
31
- onRowClick: t,
32
- groupBy: c,
33
- renderGroupHeader: i
32
+ onScrollBottom: t,
33
+ onRowClick: i,
34
+ groupBy: r,
35
+ renderGroupHeader: c
34
36
  },
35
- children: /* @__PURE__ */ n("div", { ref: D, className: w("flex flex-col", p), ...f, children: T })
37
+ children: /* @__PURE__ */ a("div", { ref: f, className: C("flex flex-col", D), ...h, children: p })
36
38
  }
37
- ), M = ({
39
+ ), j = ({
38
40
  className: l,
39
- ref: r,
40
- ...a
41
+ ref: n,
42
+ ...o
41
43
  }) => {
42
- const { table: e } = u({
44
+ const { table: e, stickyHeader: t } = u({
43
45
  consumerName: "DataTableHeader",
44
46
  contextRequired: !0
45
47
  });
46
- return /* @__PURE__ */ n(y, { ref: r, className: l, ...a, children: e.getHeaderGroups().map((o) => /* @__PURE__ */ n(N, { children: o.headers.map((t) => {
47
- const c = t.column.columnDef.meta;
48
- return /* @__PURE__ */ n(
48
+ return /* @__PURE__ */ a(H, { ref: n, className: l, ...o, children: e.getHeaderGroups().map((i) => /* @__PURE__ */ a(N, { stickyHeader: t, children: i.headers.map((r) => {
49
+ const c = r.column.columnDef.meta;
50
+ return /* @__PURE__ */ a(
49
51
  S,
50
52
  {
51
53
  align: c?.align,
52
54
  hideBelow: c?.hideBelow,
53
55
  className: c?.className,
54
56
  trailingContent: c?.headerTrailingContent,
55
- children: t.isPlaceholder ? null : t.column.getCanSort() ? /* @__PURE__ */ n(
56
- H,
57
+ children: r.isPlaceholder ? null : r.column.getCanSort() ? /* @__PURE__ */ a(
58
+ v,
57
59
  {
58
- sortDirection: t.column.getIsSorted() || void 0,
59
- onClick: t.column.getToggleSortingHandler(),
60
+ sortDirection: r.column.getIsSorted() || void 0,
61
+ onClick: r.column.getToggleSortingHandler(),
60
62
  align: c?.align,
61
63
  children: m(
62
- t.column.columnDef.header,
63
- t.getContext()
64
+ r.column.columnDef.header,
65
+ r.getContext()
64
66
  )
65
67
  }
66
68
  ) : m(
67
- t.column.columnDef.header,
68
- t.getContext()
69
+ r.column.columnDef.header,
70
+ r.getContext()
69
71
  )
70
72
  },
71
- t.id
73
+ r.id
72
74
  );
73
- }) }, o.id)) });
74
- }, Q = ({ className: l, ref: r, ...a }) => {
75
+ }) }, i.id)) });
76
+ }, U = ({ className: l, ref: n, ...o }) => {
75
77
  const {
76
78
  appearance: e,
77
- paginationMode: o,
78
- hideHeader: t,
79
- loading: c,
80
- onScrollBottom: i,
79
+ paginationMode: t,
80
+ hideHeader: i,
81
+ loading: r,
82
+ onScrollBottom: c,
81
83
  groupBy: s
82
84
  } = u({
83
85
  consumerName: "DataTable",
84
86
  contextRequired: !0
85
87
  });
86
88
  return /* @__PURE__ */ d(
87
- x,
89
+ B,
88
90
  {
89
- ref: r,
91
+ ref: n,
90
92
  appearance: e,
91
- loading: c,
92
- onScrollBottom: i,
93
+ loading: r,
94
+ onScrollBottom: c,
93
95
  className: l,
94
- ...a,
96
+ ...o,
95
97
  children: [
96
- /* @__PURE__ */ d(B, { children: [
97
- !t && /* @__PURE__ */ n(M, {}),
98
- s ? /* @__PURE__ */ n(V, {}) : /* @__PURE__ */ n(j, {})
98
+ /* @__PURE__ */ d(k, { children: [
99
+ !i && /* @__PURE__ */ a(j, {}),
100
+ s ? /* @__PURE__ */ a(K, {}) : /* @__PURE__ */ a(P, {})
99
101
  ] }),
100
- o === "infinite-scroll" && /* @__PURE__ */ n(k, {})
102
+ t === "infinite-scroll" && /* @__PURE__ */ a(y, {})
101
103
  ]
102
104
  }
103
105
  );
104
- }, j = ({ className: l, ref: r, ...a }) => {
106
+ }, P = ({ className: l, ref: n, ...o }) => {
105
107
  const { table: e } = u({
106
108
  consumerName: "DataTableBody",
107
109
  contextRequired: !0
108
110
  });
109
- return /* @__PURE__ */ n(b, { ref: r, className: l, ...a, children: e.getRowModel().rows.map((o) => /* @__PURE__ */ n(g, { row: o }, o.id)) });
110
- }, P = (l, r) => {
111
- const a = [];
111
+ return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: e.getRowModel().rows.map((t) => /* @__PURE__ */ a(g, { row: t }, t.id)) });
112
+ }, V = (l, n) => {
113
+ const o = [];
112
114
  let e = null;
113
- for (const o of l) {
114
- const t = r(o);
115
- (!e || e.key !== t) && (e = { key: t, rows: [], count: 0 }, a.push(e)), e.rows.push(o), e.count++;
115
+ for (const t of l) {
116
+ const i = n(t);
117
+ (!e || e.key !== i) && (e = { key: i, rows: [], count: 0 }, o.push(e)), e.rows.push(t), e.count++;
116
118
  }
117
- return a;
118
- }, V = ({
119
+ return o;
120
+ }, K = ({
119
121
  className: l,
120
- ref: r,
121
- ...a
122
+ ref: n,
123
+ ...o
122
124
  }) => {
123
- const { table: e, groupBy: o, renderGroupHeader: t } = u({
125
+ const { table: e, groupBy: t, renderGroupHeader: i } = u({
124
126
  consumerName: "DataTableGroupedBody",
125
127
  contextRequired: !0
126
- }), c = P(e.getRowModel().rows, o);
127
- return /* @__PURE__ */ n(b, { ref: r, className: l, ...a, children: c.map((i) => /* @__PURE__ */ d(R, { children: [
128
- /* @__PURE__ */ n(v, { colSpan: i.rows[0].getVisibleCells().length, children: t ? t({ row: i.rows[0], count: i.count }) : i.key }),
129
- i.rows.map((s) => /* @__PURE__ */ n(g, { row: s }, s.id))
130
- ] }, i.key)) });
128
+ }), r = V(e.getRowModel().rows, t);
129
+ return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: r.map((c) => /* @__PURE__ */ d(x, { children: [
130
+ /* @__PURE__ */ a(G, { colSpan: c.rows[0].getVisibleCells().length, children: i ? i({ row: c.rows[0], count: c.count }) : c.key }),
131
+ c.rows.map((s) => /* @__PURE__ */ a(g, { row: s }, s.id))
132
+ ] }, c.key)) });
131
133
  }, g = ({ row: l }) => {
132
- const { onRowClick: r } = u({
134
+ const { onRowClick: n } = u({
133
135
  consumerName: "DataTableRow",
134
136
  contextRequired: !0
135
- }), a = !!r;
136
- return /* @__PURE__ */ n(
137
- G,
137
+ }), o = !!n;
138
+ return /* @__PURE__ */ a(
139
+ q,
138
140
  {
139
- clickable: a,
140
- onClick: a ? () => r?.(l) : void 0,
141
+ clickable: o,
142
+ onClick: o ? () => n?.(l) : void 0,
141
143
  children: l.getVisibleCells().map((e) => {
142
- const o = e.column.columnDef.meta;
143
- return /* @__PURE__ */ n(
144
- q,
144
+ const t = e.column.columnDef.meta;
145
+ return /* @__PURE__ */ a(
146
+ I,
145
147
  {
146
- align: o?.align,
147
- hideBelow: o?.hideBelow,
148
- className: o?.className,
148
+ align: t?.align,
149
+ hideBelow: t?.hideBelow,
150
+ className: t?.className,
149
151
  children: m(e.column.columnDef.cell, e.getContext())
150
152
  },
151
153
  e.id
@@ -153,30 +155,30 @@ const [F, u] = h("DataTableContext"), O = ({
153
155
  })
154
156
  }
155
157
  );
156
- }, U = ({
158
+ }, W = ({
157
159
  onChange: l,
158
- ...r
160
+ ...n
159
161
  }) => {
160
- const { table: a } = u({
162
+ const { table: o } = u({
161
163
  consumerName: "DataTableGlobalSearchInput",
162
164
  contextRequired: !0
163
- }), e = C(
164
- (o) => {
165
- a.setGlobalFilter(o.target.value), l?.(o);
165
+ }), e = R(
166
+ (t) => {
167
+ o.setGlobalFilter(t.target.value), l?.(t);
166
168
  },
167
- [a, l]
169
+ [o, l]
168
170
  );
169
- return /* @__PURE__ */ n(
170
- I,
171
+ return /* @__PURE__ */ a(
172
+ F,
171
173
  {
172
- value: a.getState().globalFilter ?? "",
174
+ value: o.getState().globalFilter ?? "",
173
175
  onChange: e,
174
- ...r
176
+ ...n
175
177
  }
176
178
  );
177
179
  };
178
180
  export {
179
- Q as DataTable,
180
- U as DataTableGlobalSearchInput,
181
- O as DataTableRoot
181
+ U as DataTable,
182
+ W as DataTableGlobalSearchInput,
183
+ Q as DataTableRoot
182
184
  };
@@ -66,6 +66,14 @@ export type DataTableRootProps<TData extends RowData = RowData> = {
66
66
  * @default false
67
67
  */
68
68
  hideHeader?: boolean;
69
+ /**
70
+ * When true, applies sticky positioning to the header so it stays
71
+ * visible while scrolling. Sticks to the nearest scrolling ancestor:
72
+ * the table container when the table itself scrolls, or the page when
73
+ * the table is used inside a scrollable page.
74
+ * @default true
75
+ */
76
+ stickyHeader?: boolean;
69
77
  /**
70
78
  * Callback fired when a row is clicked.
71
79
  * Return the data of the given row from the callback function.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,C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;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAEnC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as g } from "react/jsx-runtime";
2
- import { createSafeContext as f, cn as i } from "../../../libs/utils-shared/dist/index.js";
2
+ import { createSafeContext as f, cn as n } from "../../../libs/utils-shared/dist/index.js";
3
3
  import * as l from "@radix-ui/react-dialog";
4
4
  import { cva as m } from "class-variance-authority";
5
5
  const [u, r] = f("Dialog"), x = m(
@@ -36,7 +36,7 @@ const p = ({ ref: t, className: a, ...e }) => /* @__PURE__ */ o(
36
36
  {
37
37
  ref: t,
38
38
  "data-slot": "dialog-overlay",
39
- className: i(
39
+ className: n(
40
40
  "fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in",
41
41
  a
42
42
  ),
@@ -48,7 +48,7 @@ function N({
48
48
  children: a,
49
49
  ...e
50
50
  }) {
51
- const { height: n } = r({
51
+ const { height: i } = r({
52
52
  consumerName: "DialogContent",
53
53
  contextRequired: !0
54
54
  });
@@ -58,7 +58,7 @@ function N({
58
58
  l.Content,
59
59
  {
60
60
  "data-slot": "dialog-content",
61
- className: i(x({ height: n }), t),
61
+ className: n(x({ height: i }), t),
62
62
  ...e,
63
63
  children: a
64
64
  }
@@ -69,7 +69,7 @@ const w = ({
69
69
  ref: t,
70
70
  className: a,
71
71
  children: e,
72
- scrollbarWidth: n = "none",
72
+ scrollbarWidth: i = "none",
73
73
  style: s,
74
74
  ...d
75
75
  }) => {
@@ -83,10 +83,10 @@ const w = ({
83
83
  ref: t,
84
84
  "data-slot": "dialog-body",
85
85
  style: s,
86
- className: i(
86
+ className: n(
87
87
  "-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
88
88
  c === "fit" ? "basis-auto" : "basis-0",
89
- n === "auto" ? "scrollbar-custom" : "scrollbar-none",
89
+ i === "auto" ? "scrollbar-custom" : "scrollbar-none",
90
90
  a
91
91
  ),
92
92
  ...d,
@@ -97,28 +97,28 @@ const w = ({
97
97
  ref: t,
98
98
  className: a,
99
99
  children: e,
100
- ...n
100
+ ...i
101
101
  }) => /* @__PURE__ */ o(
102
102
  "div",
103
103
  {
104
104
  ref: t,
105
105
  "data-slot": "dialog-body-sticky-content",
106
- className: i("sticky top-0 bg-canvas-sheet py-8", a),
107
- ...n,
106
+ className: n("sticky top-0 bg-canvas-sheet py-8", a),
107
+ ...i,
108
108
  children: e
109
109
  }
110
110
  ), P = ({
111
111
  ref: t,
112
112
  className: a,
113
113
  children: e,
114
- ...n
114
+ ...i
115
115
  }) => /* @__PURE__ */ o(
116
116
  "div",
117
117
  {
118
118
  ref: t,
119
119
  "data-slot": "dialog-footer",
120
- className: i("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
121
- ...n,
120
+ className: n("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
121
+ ...i,
122
122
  children: e
123
123
  }
124
124
  );
@@ -1,4 +1,4 @@
1
- import { jsxs as n, Fragment as c, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, Fragment as c, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as s } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import * as h from "@radix-ui/react-dialog";
4
4
  import { cva as u } from "class-variance-authority";
@@ -61,22 +61,22 @@ const D = u("flex px-24 text-base", {
61
61
  title: l,
62
62
  description: t,
63
63
  onClose: m,
64
- onBack: i,
64
+ onBack: n,
65
65
  ...g
66
- }) => /* @__PURE__ */ n(
66
+ }) => /* @__PURE__ */ i(
67
67
  "div",
68
68
  {
69
69
  ref: r,
70
70
  className: D({ density: o, className: a }),
71
71
  ...g,
72
72
  children: [
73
- o === "compact" && /* @__PURE__ */ n(c, { children: [
74
- i && /* @__PURE__ */ e(d, { onBack: i }),
75
- /* @__PURE__ */ n(
73
+ o === "compact" && /* @__PURE__ */ i(c, { children: [
74
+ n && /* @__PURE__ */ e(d, { onBack: n }),
75
+ /* @__PURE__ */ i(
76
76
  "div",
77
77
  {
78
78
  className: s("flex min-w-0 flex-1 flex-col", {
79
- "pl-40": !i
79
+ "pl-40": !n
80
80
  }),
81
81
  children: [
82
82
  l && /* @__PURE__ */ e("div", { className: "truncate text-center heading-5-semi-bold", children: l }),
@@ -86,12 +86,12 @@ const D = u("flex px-24 text-base", {
86
86
  ),
87
87
  /* @__PURE__ */ e(p, { onClose: m })
88
88
  ] }),
89
- o === "expanded" && /* @__PURE__ */ n(c, { children: [
90
- /* @__PURE__ */ n("div", { className: "flex h-40 flex-row items-center", children: [
91
- i && /* @__PURE__ */ e(d, { onBack: i }),
89
+ o === "expanded" && /* @__PURE__ */ i(c, { children: [
90
+ /* @__PURE__ */ i("div", { className: "flex h-40 flex-row items-center", children: [
91
+ n && /* @__PURE__ */ e(d, { onBack: n }),
92
92
  /* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(p, { onClose: m }) })
93
93
  ] }),
94
- (l || t) && /* @__PURE__ */ n("div", { className: "flex flex-col gap-4", children: [
94
+ (l || t) && /* @__PURE__ */ i("div", { className: "flex flex-col gap-4", children: [
95
95
  l && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: l }),
96
96
  t && /* @__PURE__ */ e("div", { className: "body-2 text-muted", children: t })
97
97
  ] })
@@ -104,7 +104,7 @@ const D = u("flex px-24 text-base", {
104
104
  description: o,
105
105
  density: l = "compact",
106
106
  ...t
107
- }) => /* @__PURE__ */ n(c, { children: [
107
+ }) => /* @__PURE__ */ i(c, { children: [
108
108
  /* @__PURE__ */ e(
109
109
  w,
110
110
  {
@@ -57,10 +57,10 @@ function y({
57
57
  ref: f,
58
58
  ...u
59
59
  }) {
60
- const d = g({
60
+ const r = g({
61
61
  consumerName: "DotCount",
62
62
  mergeWith: { disabled: c }
63
- }), r = Math.max(1, Math.min(b, 99)), o = !!i;
63
+ }), d = Math.max(1, Math.min(b, 99)), o = !!i;
64
64
  return /* @__PURE__ */ x(
65
65
  "div",
66
66
  {
@@ -75,10 +75,10 @@ function y({
75
75
  "aria-label": n,
76
76
  "aria-hidden": !n || void 0,
77
77
  className: a(
78
- h({ size: t, appearance: s, disabled: d }),
78
+ h({ size: t, appearance: s, disabled: r }),
79
79
  o && "absolute top-0 right-0 z-1"
80
80
  ),
81
- children: e > 0 && /* @__PURE__ */ l("span", { className: a(v({ size: t, appearance: s, disabled: d })), children: e <= r ? e : `${r}+` })
81
+ children: e > 0 && /* @__PURE__ */ l("span", { className: a(v({ size: t, appearance: s, disabled: r })), children: e <= d ? e : `${d}+` })
82
82
  }
83
83
  ),
84
84
  i
@@ -27,8 +27,8 @@ const v = u(
27
27
  }
28
28
  ), h = ({
29
29
  ref: s,
30
- className: i,
31
- iconType: r,
30
+ className: r,
31
+ iconType: i,
32
32
  icon: a,
33
33
  size: o = 24,
34
34
  appearance: n = "muted",
@@ -46,8 +46,8 @@ const v = u(
46
46
  ref: s,
47
47
  disabled: e,
48
48
  className: b(
49
- v({ disabled: e, iconType: r, appearance: n }),
50
- i
49
+ v({ disabled: e, iconType: i, appearance: n }),
50
+ r
51
51
  ),
52
52
  children: /* @__PURE__ */ t(a, { size: o })
53
53
  }
@@ -46,10 +46,10 @@ const w = k(
46
46
  disabled: b,
47
47
  ...v
48
48
  }) => {
49
- const s = x({
49
+ const r = x({
50
50
  consumerName: "Link",
51
51
  mergeWith: { disabled: b }
52
- }), r = i ? {
52
+ }), s = i ? {
53
53
  sm: 16,
54
54
  md: 20
55
55
  }[i] : 20, o = u;
@@ -62,19 +62,19 @@ const w = k(
62
62
  appearance: f,
63
63
  size: i,
64
64
  underline: p,
65
- disabled: s
65
+ disabled: r
66
66
  }),
67
67
  m
68
68
  ),
69
- "aria-disabled": s || void 0,
69
+ "aria-disabled": r || void 0,
70
70
  target: n && !t ? "_blank" : void 0,
71
71
  rel: n && !t ? "noopener noreferrer" : void 0,
72
72
  ...v,
73
73
  children: t ? a : /* @__PURE__ */ l(c, { children: [
74
- o && /* @__PURE__ */ e(o, { size: r }),
74
+ o && /* @__PURE__ */ e(o, { size: s }),
75
75
  /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: a }),
76
76
  n && /* @__PURE__ */ l(c, { children: [
77
- /* @__PURE__ */ e(z, { size: r, "aria-hidden": "true" }),
77
+ /* @__PURE__ */ e(z, { size: s, "aria-hidden": "true" }),
78
78
  /* @__PURE__ */ e("span", { className: "sr-only", children: "(opens in a new tab)" })
79
79
  ] })
80
80
  ] })