@ledgerhq/lumen-ui-react 0.1.45 → 0.1.47

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 (103) hide show
  1. package/dist/i18n/locales/de.json.d.ts +1 -3
  2. package/dist/i18n/locales/de.json.js +1 -1
  3. package/dist/i18n/locales/en.json.d.ts +1 -3
  4. package/dist/i18n/locales/en.json.js +1 -1
  5. package/dist/i18n/locales/es.json.d.ts +1 -3
  6. package/dist/i18n/locales/es.json.js +1 -1
  7. package/dist/i18n/locales/fr.json.d.ts +1 -3
  8. package/dist/i18n/locales/fr.json.js +1 -1
  9. package/dist/i18n/locales/ja.json.d.ts +1 -3
  10. package/dist/i18n/locales/ja.json.js +2 -2
  11. package/dist/i18n/locales/ko.json.d.ts +1 -3
  12. package/dist/i18n/locales/ko.json.js +2 -2
  13. package/dist/i18n/locales/pt.json.d.ts +1 -3
  14. package/dist/i18n/locales/pt.json.js +1 -1
  15. package/dist/i18n/locales/ru.json.d.ts +1 -3
  16. package/dist/i18n/locales/ru.json.js +1 -1
  17. package/dist/i18n/locales/th.json.d.ts +1 -3
  18. package/dist/i18n/locales/th.json.js +2 -2
  19. package/dist/i18n/locales/tr.json.d.ts +1 -3
  20. package/dist/i18n/locales/tr.json.js +2 -2
  21. package/dist/i18n/locales/zh.json.d.ts +1 -3
  22. package/dist/i18n/locales/zh.json.js +2 -2
  23. package/dist/index.js +169 -161
  24. package/dist/lib/Components/AmountInput/AmountInput.js +2 -2
  25. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  26. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  27. package/dist/lib/Components/Avatar/Avatar.js +33 -40
  28. package/dist/lib/Components/Avatar/types.d.ts +0 -6
  29. package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
  30. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -1
  31. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  32. package/dist/lib/Components/BaseInput/BaseInput.js +119 -93
  33. package/dist/lib/Components/BaseInput/types.d.ts +24 -0
  34. package/dist/lib/Components/BaseInput/types.d.ts.map +1 -1
  35. package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
  36. package/dist/lib/Components/Card/Card.js +5 -5
  37. package/dist/lib/Components/CardButton/CardButton.js +1 -1
  38. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  39. package/dist/lib/Components/DataTable/DataTable.js +97 -80
  40. package/dist/lib/Components/DataTable/types.d.ts +2 -1
  41. package/dist/lib/Components/DataTable/types.d.ts.map +1 -1
  42. package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts +1 -1
  43. package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts.map +1 -1
  44. package/dist/lib/Components/DescriptionItem/DescriptionItem.js +74 -48
  45. package/dist/lib/Components/DescriptionItem/types.d.ts +6 -0
  46. package/dist/lib/Components/DescriptionItem/types.d.ts.map +1 -1
  47. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +1 -1
  48. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +24 -0
  49. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -0
  50. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.js +11 -0
  51. package/dist/lib/Components/DotIndicator/index.d.ts +1 -0
  52. package/dist/lib/Components/DotIndicator/index.d.ts.map +1 -1
  53. package/dist/lib/Components/Icon/Icon.js +8 -8
  54. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  55. package/dist/lib/Components/ListItem/ListItem.js +118 -68
  56. package/dist/lib/Components/ListItem/types.d.ts +11 -1
  57. package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
  58. package/dist/lib/Components/MediaCard/MediaCard.js +4 -4
  59. package/dist/lib/Components/Menu/Menu.d.ts +1 -1
  60. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  61. package/dist/lib/Components/Menu/Menu.js +79 -65
  62. package/dist/lib/Components/Menu/types.d.ts +6 -0
  63. package/dist/lib/Components/Menu/types.d.ts.map +1 -1
  64. package/dist/lib/Components/SearchInput/SearchInput.js +10 -10
  65. package/dist/lib/Components/SectionHeader/SectionHeader.d.ts +33 -0
  66. package/dist/lib/Components/SectionHeader/SectionHeader.d.ts.map +1 -0
  67. package/dist/lib/Components/SectionHeader/SectionHeader.js +56 -0
  68. package/dist/lib/Components/SectionHeader/index.d.ts +3 -0
  69. package/dist/lib/Components/SectionHeader/index.d.ts.map +1 -0
  70. package/dist/lib/Components/SectionHeader/types.d.ts +26 -0
  71. package/dist/lib/Components/SectionHeader/types.d.ts.map +1 -0
  72. package/dist/lib/Components/SideBar/SideBar.js +2 -2
  73. package/dist/lib/Components/Spot/Spot.js +5 -5
  74. package/dist/lib/Components/Table/Table.d.ts +17 -1
  75. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  76. package/dist/lib/Components/Table/Table.js +121 -92
  77. package/dist/lib/Components/Table/types.d.ts +23 -0
  78. package/dist/lib/Components/Table/types.d.ts.map +1 -1
  79. package/dist/lib/Components/Table/utils/useThrottledScrollBottom.js +5 -5
  80. package/dist/lib/Components/TileButton/TileButton.d.ts +1 -1
  81. package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
  82. package/dist/lib/Components/TileButton/TileButton.js +52 -39
  83. package/dist/lib/Components/TileButton/types.d.ts +5 -0
  84. package/dist/lib/Components/TileButton/types.d.ts.map +1 -1
  85. package/dist/lib/Components/Trend/Trend.js +2 -2
  86. package/dist/lib/Components/index.d.ts +1 -0
  87. package/dist/lib/Components/index.d.ts.map +1 -1
  88. package/dist/lib/Symbols/Icons/ChevronAscending.js +1 -1
  89. package/dist/lib/Symbols/Icons/ChevronDescending.js +1 -1
  90. package/dist/lib/Symbols/Icons/Contact.d.ts +29 -0
  91. package/dist/lib/Symbols/Icons/Contact.d.ts.map +1 -0
  92. package/dist/lib/Symbols/Icons/Contact.js +28 -0
  93. package/dist/lib/Symbols/Icons/Upload.d.ts +29 -0
  94. package/dist/lib/Symbols/Icons/Upload.d.ts.map +1 -0
  95. package/dist/lib/Symbols/Icons/Upload.js +28 -0
  96. package/dist/lib/Symbols/index.d.ts +2 -0
  97. package/dist/lib/Symbols/index.d.ts.map +1 -1
  98. package/dist/lib/Symbols/index.js +396 -392
  99. package/dist/libs/utils-shared/dist/index.js +58 -52
  100. package/dist/package.json +3 -3
  101. package/package.json +3 -3
  102. package/dist/lib/Components/Design-tokens/shared.d.ts +0 -20
  103. package/dist/lib/Components/Design-tokens/shared.d.ts.map +0 -1
@@ -1,15 +1,15 @@
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 o } from "class-variance-authority";
4
- import { useThrottledScrollBottom as y } from "./utils/useThrottledScrollBottom.js";
5
- import { Spot as T } from "../Spot/Spot.js";
3
+ import { cva as s } from "class-variance-authority";
4
+ import { useThrottledScrollBottom as T } from "./utils/useThrottledScrollBottom.js";
5
+ import { Spot as y } from "../Spot/Spot.js";
6
6
  import { Information as w } from "../../Symbols/Icons/Information.js";
7
7
  import { useCommonTranslation as C } from "../../../i18n/useCommonTranslation.js";
8
8
  import { ChevronUpDown as R } from "../../Symbols/Icons/ChevronUpDown.js";
9
- import { ChevronDescending as j } from "../../Symbols/Icons/ChevronDescending.js";
10
- import { ChevronAscending as B } from "../../Symbols/Icons/ChevronAscending.js";
9
+ import { ChevronDescending as B } from "../../Symbols/Icons/ChevronDescending.js";
10
+ import { ChevronAscending as j } from "../../Symbols/Icons/ChevronAscending.js";
11
11
  import { InteractiveIcon as k } from "../InteractiveIcon/InteractiveIcon.js";
12
- const [H, u] = N("Table"), I = o(
12
+ const [H, u] = N("Table"), I = s(
13
13
  "relative scrollbar-none w-full max-w-full border-collapse overflow-x-auto rounded-lg",
14
14
  {
15
15
  variants: {
@@ -19,30 +19,30 @@ const [H, u] = N("Table"), I = o(
19
19
  }
20
20
  }
21
21
  }
22
- ), O = ({
22
+ ), Q = ({
23
23
  children: a,
24
24
  appearance: e = "no-background",
25
25
  className: t,
26
26
  onScrollBottom: n,
27
- loading: s,
28
- ref: l,
27
+ loading: l,
28
+ ref: o,
29
29
  ...i
30
30
  }) => {
31
- const d = y({
31
+ const d = T({
32
32
  onScrollBottom: n,
33
- loading: s
33
+ loading: l
34
34
  });
35
- return /* @__PURE__ */ r(H, { value: { appearance: e, loading: s }, children: /* @__PURE__ */ r(
35
+ return /* @__PURE__ */ r(H, { value: { appearance: e, loading: l }, children: /* @__PURE__ */ r(
36
36
  "div",
37
37
  {
38
38
  ...i,
39
- ref: l,
39
+ ref: o,
40
40
  className: I({ appearance: e, className: t }),
41
41
  onScroll: d,
42
42
  children: a
43
43
  }
44
44
  ) });
45
- }, Q = ({ children: a, className: e, ref: t, ...n }) => /* @__PURE__ */ r(
45
+ }, W = ({ children: a, className: e, ref: t, ...n }) => /* @__PURE__ */ r(
46
46
  "table",
47
47
  {
48
48
  ...n,
@@ -50,37 +50,64 @@ const [H, u] = N("Table"), I = o(
50
50
  ref: t,
51
51
  children: a
52
52
  }
53
- ), W = ({
53
+ ), X = ({
54
+ children: a,
55
+ className: e,
56
+ ref: t,
57
+ ...n
58
+ }) => /* @__PURE__ */ r("colgroup", { ref: t, className: e, ...n, children: a }), S = s("", {
59
+ variants: {
60
+ hideBelow: {
61
+ xs: "hidden xs:table-column",
62
+ sm: "hidden sm:table-column",
63
+ md: "hidden md:table-column",
64
+ lg: "hidden lg:table-column",
65
+ xl: "hidden xl:table-column"
66
+ }
67
+ }
68
+ }), Y = ({
69
+ className: a,
70
+ hideBelow: e,
71
+ ref: t,
72
+ ...n
73
+ }) => /* @__PURE__ */ r(
74
+ "col",
75
+ {
76
+ ref: t,
77
+ className: S({ hideBelow: e, className: a }),
78
+ ...n
79
+ }
80
+ ), Z = ({
54
81
  children: a,
55
82
  className: e,
56
83
  ref: t,
57
84
  ...n
58
- }) => /* @__PURE__ */ r("thead", { ref: t, className: e, ...n, children: a }), X = ({
85
+ }) => /* @__PURE__ */ r("thead", { ref: t, className: e, ...n, children: a }), _ = ({
59
86
  children: a,
60
87
  className: e,
61
88
  ref: t,
62
89
  ...n
63
- }) => /* @__PURE__ */ r("tbody", { ref: t, className: e, ...n, children: a }), Y = ({
90
+ }) => /* @__PURE__ */ r("tbody", { ref: t, className: e, ...n, children: a }), $ = ({
64
91
  children: a,
65
92
  className: e,
66
93
  clickable: t = !1,
67
94
  onClick: n,
68
- ref: s,
69
- ...l
95
+ ref: l,
96
+ ...o
70
97
  }) => /* @__PURE__ */ r(
71
98
  "tr",
72
99
  {
73
- ref: s,
100
+ ref: l,
74
101
  onClick: n,
75
102
  role: t ? "button" : void 0,
76
103
  className: c(
77
104
  t && "cursor-pointer outline-none select-none hover:bg-base-transparent-hover active:bg-base-transparent-pressed",
78
105
  e
79
106
  ),
80
- ...l,
107
+ ...o,
81
108
  children: a
82
109
  }
83
- ), S = o("", {
110
+ ), V = s("", {
84
111
  variants: {
85
112
  appearance: {
86
113
  "no-background": "bg-canvas",
@@ -91,14 +118,14 @@ const [H, u] = N("Table"), I = o(
91
118
  false: ""
92
119
  }
93
120
  }
94
- }), Z = ({
121
+ }), D = ({
95
122
  children: a,
96
123
  className: e,
97
124
  stickyHeader: t = !0,
98
125
  ref: n,
99
- ...s
126
+ ...l
100
127
  }) => {
101
- const { appearance: l } = u({
128
+ const { appearance: o } = u({
102
129
  consumerName: "TableHeaderRow",
103
130
  contextRequired: !0
104
131
  });
@@ -106,34 +133,34 @@ const [H, u] = N("Table"), I = o(
106
133
  "tr",
107
134
  {
108
135
  ref: n,
109
- className: S({ appearance: l, stickyHeader: t, className: e }),
110
- ...s,
136
+ className: V({ appearance: o, stickyHeader: t, className: e }),
137
+ ...l,
111
138
  children: a
112
139
  }
113
140
  );
114
- }, _ = ({
141
+ }, ee = ({
115
142
  children: a,
116
143
  className: e,
117
144
  colSpan: t = 1,
118
145
  ref: n,
119
- ...s
146
+ ...l
120
147
  }) => {
121
- const { appearance: l } = u({
148
+ const { appearance: o } = u({
122
149
  consumerName: "TableGroupHeaderRow",
123
150
  contextRequired: !0
124
151
  });
125
- return /* @__PURE__ */ r("tr", { ref: n, className: c("h-40", e), ...s, children: /* @__PURE__ */ r("td", { colSpan: t, children: /* @__PURE__ */ r(
152
+ return /* @__PURE__ */ r("tr", { ref: n, className: c("h-40", e), ...l, children: /* @__PURE__ */ r("td", { colSpan: t, children: /* @__PURE__ */ r(
126
153
  "div",
127
154
  {
128
155
  className: c(
129
156
  "flex h-32 w-full items-center bg-muted px-12 body-3 text-base",
130
- l === "no-background" && "rounded-sm"
157
+ o === "no-background" && "rounded-sm"
131
158
  ),
132
159
  children: a
133
160
  }
134
161
  ) }) });
135
162
  }, p = {
136
- root: o(
163
+ root: s(
137
164
  "h-64 truncate p-12 body-3 text-base first:rounded-l-md last:rounded-r-md",
138
165
  {
139
166
  variants: {
@@ -147,60 +174,60 @@ const [H, u] = N("Table"), I = o(
147
174
  }
148
175
  }
149
176
  ),
150
- inner: o("flex flex-1 justify-end", {
177
+ inner: s("flex flex-1 justify-end", {
151
178
  variants: {
152
179
  align: {
153
- start: "text-start justify-start",
154
- end: "text-end justify-end"
180
+ start: "justify-start text-start",
181
+ end: "justify-end text-end"
155
182
  }
156
183
  }
157
184
  })
158
- }, $ = ({
185
+ }, te = ({
159
186
  children: a,
160
187
  className: e,
161
188
  hideBelow: t,
162
189
  align: n = "start",
163
- ref: s,
164
- ...l
190
+ ref: l,
191
+ ...o
165
192
  }) => /* @__PURE__ */ r(
166
193
  "td",
167
194
  {
168
- ref: s,
195
+ ref: l,
169
196
  className: p.root({ hideBelow: t, className: e }),
170
- ...l,
197
+ ...o,
171
198
  children: /* @__PURE__ */ r("div", { className: p.inner({ align: n }), children: a })
172
199
  }
173
- ), A = o("flex min-w-0 items-center gap-12", {
200
+ ), A = s("flex min-w-0 items-center gap-12", {
174
201
  variants: {
175
202
  align: {
176
203
  start: "text-start",
177
204
  end: "text-end"
178
205
  }
179
206
  }
180
- }), D = ({
207
+ }), ae = ({
181
208
  className: a,
182
209
  align: e = "start",
183
210
  leadingContent: t,
184
211
  title: n,
185
- description: s,
186
- ref: l,
212
+ description: l,
213
+ ref: o,
187
214
  ...i
188
215
  }) => /* @__PURE__ */ m(
189
216
  "div",
190
217
  {
191
- ref: l,
218
+ ref: o,
192
219
  className: A({ align: e, className: a }),
193
220
  ...i,
194
221
  children: [
195
222
  t && /* @__PURE__ */ r("div", { className: "shrink-0", children: t }),
196
223
  /* @__PURE__ */ m("div", { className: "flex min-w-0 flex-col gap-4", children: [
197
224
  /* @__PURE__ */ r("div", { className: "shrink-0 body-2 text-base", children: n }),
198
- /* @__PURE__ */ r("div", { className: "truncate body-3 text-muted", children: s })
225
+ /* @__PURE__ */ r("div", { className: "truncate body-3 text-muted", children: l })
199
226
  ] })
200
227
  ]
201
228
  }
202
229
  ), f = {
203
- root: o("group h-40 truncate p-12 body-3 text-base", {
230
+ root: s("group h-40 truncate p-12 body-3 text-base", {
204
231
  variants: {
205
232
  hideBelow: {
206
233
  xs: "hidden xs:table-cell",
@@ -211,24 +238,24 @@ const [H, u] = N("Table"), I = o(
211
238
  }
212
239
  }
213
240
  }),
214
- content: o("flex min-w-0 items-center gap-4 truncate", {
241
+ content: s("flex min-w-0 items-center gap-4 truncate", {
215
242
  variants: {
216
243
  align: {
217
- start: "text-start justify-start",
218
- end: "text-end justify-end"
244
+ start: "justify-start text-start",
245
+ end: "justify-end text-end"
219
246
  }
220
247
  }
221
248
  }),
222
- trailingContent: o(
249
+ trailingContent: s(
223
250
  "flex items-center justify-center opacity-0 group-hover:opacity-100"
224
251
  )
225
- }, ee = ({
252
+ }, ne = ({
226
253
  children: a,
227
254
  className: e,
228
255
  scope: t = "col",
229
256
  hideBelow: n,
230
- align: s = "start",
231
- trailingContent: l,
257
+ align: l = "start",
258
+ trailingContent: o,
232
259
  ref: i,
233
260
  ...d
234
261
  }) => /* @__PURE__ */ r(
@@ -238,12 +265,12 @@ const [H, u] = N("Table"), I = o(
238
265
  scope: t,
239
266
  className: f.root({ hideBelow: n, className: e }),
240
267
  ...d,
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 })
268
+ children: /* @__PURE__ */ r("div", { className: "min-w-0", children: /* @__PURE__ */ m("div", { className: f.content({ align: l }), children: [
269
+ /* @__PURE__ */ r("span", { className: c("truncate", l === "end" && "order-1"), children: a }),
270
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: o })
244
271
  ] }) })
245
272
  }
246
- ), te = ({
273
+ ), re = ({
247
274
  children: a,
248
275
  className: e,
249
276
  ref: t,
@@ -256,7 +283,7 @@ const [H, u] = N("Table"), I = o(
256
283
  ...n,
257
284
  children: a
258
285
  }
259
- ), ae = ({
286
+ ), le = ({
260
287
  children: a,
261
288
  className: e,
262
289
  ref: t,
@@ -269,7 +296,7 @@ const [H, u] = N("Table"), I = o(
269
296
  ...n,
270
297
  children: a
271
298
  }
272
- ), ne = ({
299
+ ), oe = ({
273
300
  children: a,
274
301
  className: e,
275
302
  ref: t,
@@ -282,7 +309,7 @@ const [H, u] = N("Table"), I = o(
282
309
  ...n,
283
310
  children: a
284
311
  }
285
- ), re = ({
312
+ ), se = ({
286
313
  className: a,
287
314
  ref: e,
288
315
  ...t
@@ -300,10 +327,10 @@ const [H, u] = N("Table"), I = o(
300
327
  "flex h-80 w-full items-center justify-center p-12",
301
328
  a
302
329
  ),
303
- children: /* @__PURE__ */ r(T, { appearance: "loader", size: 48 })
330
+ children: /* @__PURE__ */ r(y, { appearance: "loader", size: 48 })
304
331
  }
305
332
  ) : null;
306
- }, se = ({
333
+ }, ce = ({
307
334
  className: a,
308
335
  ref: e,
309
336
  ...t
@@ -318,11 +345,11 @@ const [H, u] = N("Table"), I = o(
318
345
  ref: e
319
346
  }
320
347
  ), L = {
321
- asc: B,
322
- desc: j,
348
+ asc: j,
349
+ desc: B,
323
350
  idle: R
324
351
  }, h = {
325
- root: o(
352
+ root: s(
326
353
  [
327
354
  "flex min-w-0 cursor-pointer items-center gap-4",
328
355
  "rounded-xs focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"
@@ -336,7 +363,7 @@ const [H, u] = N("Table"), I = o(
336
363
  }
337
364
  }
338
365
  ),
339
- icon: o("", {
366
+ icon: s("", {
340
367
  variants: {
341
368
  active: {
342
369
  true: "opacity-100",
@@ -344,17 +371,17 @@ const [H, u] = N("Table"), I = o(
344
371
  }
345
372
  }
346
373
  })
347
- }, le = ({
374
+ }, ie = ({
348
375
  children: a,
349
376
  sortDirection: e,
350
377
  align: t = "start",
351
378
  onToggleSort: n,
352
- className: s,
353
- onClick: l,
379
+ className: l,
380
+ onClick: o,
354
381
  ref: i,
355
382
  ...d
356
383
  }) => {
357
- const { t: b } = C(), v = L[e || "idle"], x = {
384
+ const { t: b } = C(), x = L[e || "idle"], v = {
358
385
  asc: b("components.table.ascAriaLabel"),
359
386
  desc: b("components.table.descAriaLabel")
360
387
  };
@@ -364,15 +391,15 @@ const [H, u] = N("Table"), I = o(
364
391
  ...d,
365
392
  ref: i,
366
393
  type: "button",
367
- className: h.root({ align: t, className: s }),
368
- "aria-label": e ? x[e] : void 0,
394
+ className: h.root({ align: t, className: l }),
395
+ "aria-label": e ? v[e] : void 0,
369
396
  onClick: (g) => {
370
- l?.(g), n?.(e === "asc" ? "desc" : "asc");
397
+ o?.(g), n?.(e === "asc" ? "desc" : "asc");
371
398
  },
372
399
  children: [
373
400
  /* @__PURE__ */ r("span", { className: "min-w-0 truncate", children: a }),
374
401
  /* @__PURE__ */ r(
375
- v,
402
+ x,
376
403
  {
377
404
  size: 20,
378
405
  className: h.icon({
@@ -385,20 +412,22 @@ const [H, u] = N("Table"), I = o(
385
412
  );
386
413
  };
387
414
  export {
388
- Q as Table,
389
- te as TableActionBar,
390
- ae as TableActionBarLeading,
391
- ne as TableActionBarTrailing,
392
- X as TableBody,
393
- $ as TableCell,
394
- D as TableCellContent,
395
- _ as TableGroupHeaderRow,
396
- W as TableHeader,
397
- ee as TableHeaderCell,
398
- Z as TableHeaderRow,
399
- se as TableInfoIcon,
400
- re as TableLoadingRow,
401
- O as TableRoot,
402
- Y as TableRow,
403
- le as TableSortButton
415
+ W as Table,
416
+ re as TableActionBar,
417
+ le as TableActionBarLeading,
418
+ oe as TableActionBarTrailing,
419
+ _ as TableBody,
420
+ te as TableCell,
421
+ ae as TableCellContent,
422
+ Y as TableCol,
423
+ X as TableColGroup,
424
+ ee as TableGroupHeaderRow,
425
+ Z as TableHeader,
426
+ ne as TableHeaderCell,
427
+ D as TableHeaderRow,
428
+ ce as TableInfoIcon,
429
+ se as TableLoadingRow,
430
+ Q as TableRoot,
431
+ $ as TableRow,
432
+ ie as TableSortButton
404
433
  };
@@ -226,6 +226,29 @@ export type TableInfoIconProps = {
226
226
  */
227
227
  className?: string;
228
228
  } & Omit<ComponentPropsWithRef<'button'>, 'children'>;
229
+ export type TableColGroupProps = {
230
+ /**
231
+ * The column definitions (TableCol)
232
+ */
233
+ children: ReactNode;
234
+ /**
235
+ * Custom classname
236
+ */
237
+ className?: string;
238
+ } & ComponentPropsWithRef<'colgroup'>;
239
+ export type TableColProps = {
240
+ /**
241
+ * Collapses this column's width to 0 when the screen width is below the
242
+ * specified breakpoint. Pair with `hideBelow` on the matching cells so the
243
+ * column is fully removed responsively while keeping its fixed width above
244
+ * the breakpoint.
245
+ */
246
+ hideBelow?: Breakpoints;
247
+ /**
248
+ * Custom classname
249
+ */
250
+ className?: string;
251
+ } & ComponentPropsWithRef<'col'>;
229
252
  export type TableSortValue = 'asc' | 'desc' | undefined;
230
253
  export type TableSortButtonProps = {
231
254
  /**
@@ -1 +1 @@
1
- {"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G;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { throttle as h } from "../../../../libs/utils-shared/dist/index.js";
2
2
  import { useMemo as L, useRef as s, useEffect as _ } from "react";
3
- import { TABLE_SCROLL_BOTTOM_THRESHOLD_IN_ROW as m, TABLE_CELL_HEIGHT as R } from "../constants.js";
4
- const a = 150, E = ({
3
+ import { TABLE_SCROLL_BOTTOM_THRESHOLD_IN_ROW as R, TABLE_CELL_HEIGHT as a } from "../constants.js";
4
+ const m = 150, E = ({
5
5
  element: t,
6
6
  threshold: r = 10
7
7
  }) => {
@@ -10,10 +10,10 @@ const a = 150, E = ({
10
10
  }, p = ({
11
11
  onScrollBottom: t,
12
12
  loading: r = !1,
13
- thresholdInRow: c = m
13
+ thresholdInRow: c = R
14
14
  }) => {
15
15
  const n = L(
16
- () => c * R,
16
+ () => c * a,
17
17
  [c]
18
18
  ), e = s(t), u = s(r);
19
19
  e.current = t, u.current = r;
@@ -22,7 +22,7 @@ const a = 150, E = ({
22
22
  return;
23
23
  const T = h((o) => {
24
24
  u.current || !e.current || E({ element: o, threshold: n }) && e.current();
25
- }, a);
25
+ }, m);
26
26
  return l.current = T, (o) => {
27
27
  const i = o.currentTarget;
28
28
  i && T(i);
@@ -21,5 +21,5 @@ import { TileButtonProps } from './types';
21
21
  * <Link to="/settings">Settings</Link>
22
22
  * </TileButton>
23
23
  */
24
- export declare const TileButton: ({ ref, icon: Icon, children, onClick, disabled: disabledProp, isFull, className, asChild, "aria-label": ariaLabel, ...props }: TileButtonProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const TileButton: ({ ref, icon: Icon, children, onClick, disabled: disabledProp, isFull, appearance, className, asChild, "aria-label": ariaLabel, ...props }: TileButtonProps) => import("react/jsx-runtime").JSX.Element;
25
25
  //# sourceMappingURL=TileButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TileButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/TileButton/TileButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAsC/C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU,GAAI,+HAWxB,eAAe,4CAqCjB,CAAC"}
1
+ {"version":3,"file":"TileButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/TileButton/TileButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA+C/C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU,GAAI,2IAYxB,eAAe,4CAwCjB,CAAC"}