@ledgerhq/lumen-ui-react 0.1.3 → 0.1.5

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.
@@ -1,15 +1,15 @@
1
1
  import { jsx as n, 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";
3
+ import { cva as s } from "class-variance-authority";
4
4
  import { useThrottledScrollBottom as T } from "./utils/useThrottledScrollBottom.js";
5
5
  import { Spot as g } from "../Spot/Spot.js";
6
6
  import { Information as w } from "../../Symbols/Icons/Information.js";
7
- import { useCommonTranslation as R } from "../../../i18n/useCommonTranslation.js";
8
- import { ChevronUpDown as B } from "../../Symbols/Icons/ChevronUpDown.js";
9
- import { ChevronDescending as C } from "../../Symbols/Icons/ChevronDescending.js";
7
+ import { useCommonTranslation as C } from "../../../i18n/useCommonTranslation.js";
8
+ import { ChevronUpDown as R } from "../../Symbols/Icons/ChevronUpDown.js";
9
+ import { ChevronDescending as B } from "../../Symbols/Icons/ChevronDescending.js";
10
10
  import { ChevronAscending as j } from "../../Symbols/Icons/ChevronAscending.js";
11
11
  import { InteractiveIcon as H } from "../InteractiveIcon/InteractiveIcon.js";
12
- const [A, u] = N("Table"), I = o(
12
+ const [A, 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: {
@@ -25,7 +25,7 @@ const [A, u] = N("Table"), I = o(
25
25
  className: a,
26
26
  onScrollBottom: l,
27
27
  loading: r,
28
- ref: s,
28
+ ref: o,
29
29
  ...i
30
30
  }) => {
31
31
  const d = T({
@@ -36,7 +36,7 @@ const [A, u] = N("Table"), I = o(
36
36
  "div",
37
37
  {
38
38
  ...i,
39
- ref: s,
39
+ ref: o,
40
40
  className: I({ appearance: e, className: a }),
41
41
  onScroll: d,
42
42
  children: t
@@ -44,7 +44,7 @@ const [A, u] = N("Table"), I = o(
44
44
  ) });
45
45
  };
46
46
  L.displayName = "TableRoot";
47
- const V = ({ children: t, className: e, ref: a, ...l }) => /* @__PURE__ */ n(
47
+ const S = ({ children: t, className: e, ref: a, ...l }) => /* @__PURE__ */ n(
48
48
  "table",
49
49
  {
50
50
  ...l,
@@ -53,28 +53,28 @@ const V = ({ children: t, className: e, ref: a, ...l }) => /* @__PURE__ */ n(
53
53
  children: t
54
54
  }
55
55
  );
56
- V.displayName = "Table";
57
- const S = ({
56
+ S.displayName = "Table";
57
+ const V = ({
58
58
  children: t,
59
59
  className: e,
60
60
  ref: a,
61
61
  ...l
62
62
  }) => /* @__PURE__ */ n("thead", { ref: a, className: e, ...l, children: t });
63
- S.displayName = "TableHeader";
64
- const q = ({
63
+ V.displayName = "TableHeader";
64
+ const k = ({
65
65
  children: t,
66
66
  className: e,
67
67
  ref: a,
68
68
  ...l
69
69
  }) => /* @__PURE__ */ n("tbody", { ref: a, className: e, ...l, children: t });
70
- q.displayName = "TableBody";
71
- const z = ({
70
+ k.displayName = "TableBody";
71
+ const q = ({
72
72
  children: t,
73
73
  className: e,
74
74
  clickable: a = !1,
75
75
  onClick: l,
76
76
  ref: r,
77
- ...s
77
+ ...o
78
78
  }) => /* @__PURE__ */ n(
79
79
  "tr",
80
80
  {
@@ -85,19 +85,19 @@ const z = ({
85
85
  a && "cursor-pointer outline-none select-none hover:bg-base-transparent-hover active:bg-base-transparent-pressed",
86
86
  e
87
87
  ),
88
- ...s,
88
+ ...o,
89
89
  children: t
90
90
  }
91
91
  );
92
- z.displayName = "TableRow";
93
- const G = o("sticky top-0", {
92
+ q.displayName = "TableRow";
93
+ const z = s("sticky top-0", {
94
94
  variants: {
95
95
  appearance: {
96
96
  "no-background": "bg-canvas",
97
97
  plain: "bg-surface"
98
98
  }
99
99
  }
100
- }), M = ({
100
+ }), G = ({
101
101
  children: t,
102
102
  className: e,
103
103
  ref: a,
@@ -111,21 +111,21 @@ const G = o("sticky top-0", {
111
111
  "tr",
112
112
  {
113
113
  ref: a,
114
- className: G({ appearance: r, className: e }),
114
+ className: z({ appearance: r, className: e }),
115
115
  ...l,
116
116
  children: t
117
117
  }
118
118
  );
119
119
  };
120
- M.displayName = "TableHeaderRow";
121
- const k = ({
120
+ G.displayName = "TableHeaderRow";
121
+ const M = ({
122
122
  children: t,
123
123
  className: e,
124
124
  colSpan: a = 1,
125
125
  ref: l,
126
126
  ...r
127
127
  }) => {
128
- const { appearance: s } = u({
128
+ const { appearance: o } = u({
129
129
  consumerName: "TableGroupHeaderRow",
130
130
  contextRequired: !0
131
131
  });
@@ -134,15 +134,15 @@ const k = ({
134
134
  {
135
135
  className: c(
136
136
  "flex h-32 w-full items-center bg-muted px-12 body-3 text-base",
137
- s === "no-background" && "rounded-sm"
137
+ o === "no-background" && "rounded-sm"
138
138
  ),
139
139
  children: t
140
140
  }
141
141
  ) }) });
142
142
  };
143
- k.displayName = "TableGroupHeaderRow";
143
+ M.displayName = "TableGroupHeaderRow";
144
144
  const p = {
145
- root: o(
145
+ root: s(
146
146
  "h-64 truncate p-12 body-3 text-base first:rounded-l-md last:rounded-r-md",
147
147
  {
148
148
  variants: {
@@ -156,7 +156,7 @@ const p = {
156
156
  }
157
157
  }
158
158
  ),
159
- inner: o("flex flex-1 justify-end", {
159
+ inner: s("flex flex-1 justify-end", {
160
160
  variants: {
161
161
  align: {
162
162
  start: "text-start justify-start",
@@ -170,18 +170,18 @@ const p = {
170
170
  hideBelow: a,
171
171
  align: l = "start",
172
172
  ref: r,
173
- ...s
173
+ ...o
174
174
  }) => /* @__PURE__ */ n(
175
175
  "td",
176
176
  {
177
177
  ref: r,
178
178
  className: p.root({ hideBelow: a, className: e }),
179
- ...s,
179
+ ...o,
180
180
  children: /* @__PURE__ */ n("div", { className: p.inner({ align: l }), children: t })
181
181
  }
182
182
  );
183
183
  J.displayName = "TableCell";
184
- const K = o("flex items-center gap-12 truncate", {
184
+ const K = s("flex items-center gap-12 truncate", {
185
185
  variants: {
186
186
  align: {
187
187
  start: "text-start",
@@ -194,12 +194,12 @@ const K = o("flex items-center gap-12 truncate", {
194
194
  leadingContent: a,
195
195
  title: l,
196
196
  description: r,
197
- ref: s,
197
+ ref: o,
198
198
  ...i
199
199
  }) => /* @__PURE__ */ m(
200
200
  "div",
201
201
  {
202
- ref: s,
202
+ ref: o,
203
203
  className: K({ align: e, className: t }),
204
204
  ...i,
205
205
  children: [
@@ -213,7 +213,7 @@ const K = o("flex items-center gap-12 truncate", {
213
213
  );
214
214
  P.displayName = "TableCellContent";
215
215
  const f = {
216
- root: o("group h-40 truncate p-12 body-3 text-base", {
216
+ root: s("group h-40 truncate p-12 body-3 text-base", {
217
217
  variants: {
218
218
  hideBelow: {
219
219
  xs: "hidden xs:table-cell",
@@ -224,7 +224,7 @@ const f = {
224
224
  }
225
225
  }
226
226
  }),
227
- content: o("flex min-w-0 items-center gap-4 truncate", {
227
+ content: s("flex min-w-0 items-center gap-4 truncate", {
228
228
  variants: {
229
229
  align: {
230
230
  start: "text-start justify-start",
@@ -232,7 +232,7 @@ const f = {
232
232
  }
233
233
  }
234
234
  }),
235
- trailingContent: o(
235
+ trailingContent: s(
236
236
  "flex items-center justify-center opacity-0 group-hover:opacity-100"
237
237
  )
238
238
  }, U = ({
@@ -241,7 +241,7 @@ const f = {
241
241
  scope: a = "col",
242
242
  hideBelow: l,
243
243
  align: r = "start",
244
- trailingContent: s,
244
+ trailingContent: o,
245
245
  ref: i,
246
246
  ...d
247
247
  }) => /* @__PURE__ */ n(
@@ -253,7 +253,7 @@ const f = {
253
253
  ...d,
254
254
  children: /* @__PURE__ */ n("div", { className: "min-w-0", children: /* @__PURE__ */ m("div", { className: f.content({ align: r }), children: [
255
255
  /* @__PURE__ */ n("span", { className: c("truncate", r === "end" && "order-1"), children: t }),
256
- /* @__PURE__ */ n("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: s })
256
+ /* @__PURE__ */ n("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: o })
257
257
  ] }) })
258
258
  }
259
259
  );
@@ -343,10 +343,10 @@ const W = ({
343
343
  W.displayName = "TableInfoIcon";
344
344
  const X = {
345
345
  asc: j,
346
- desc: C,
347
- idle: B
346
+ desc: B,
347
+ idle: R
348
348
  }, v = {
349
- root: o(
349
+ root: s(
350
350
  [
351
351
  "flex min-w-0 cursor-pointer items-center gap-4",
352
352
  "rounded-xs focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"
@@ -360,7 +360,7 @@ const X = {
360
360
  }
361
361
  }
362
362
  ),
363
- icon: o("", {
363
+ icon: s("", {
364
364
  variants: {
365
365
  active: {
366
366
  true: "opacity-100",
@@ -374,11 +374,11 @@ const X = {
374
374
  align: a = "start",
375
375
  onToggleSort: l,
376
376
  className: r,
377
- onClick: s,
377
+ onClick: o,
378
378
  ref: i,
379
379
  ...d
380
380
  }) => {
381
- const { t: b } = R(), x = X[e || "idle"], h = {
381
+ const { t: b } = C(), x = X[e || "idle"], h = {
382
382
  asc: b("table.ascAriaLabel"),
383
383
  desc: b("table.descAriaLabel")
384
384
  };
@@ -391,7 +391,7 @@ const X = {
391
391
  className: v.root({ align: a, className: r }),
392
392
  "aria-label": e ? h[e] : void 0,
393
393
  onClick: (y) => {
394
- s == null || s(y), l == null || l(e === "asc" ? "desc" : "asc");
394
+ o?.(y), l?.(e === "asc" ? "desc" : "asc");
395
395
  },
396
396
  children: [
397
397
  /* @__PURE__ */ n("span", { className: "min-w-0 truncate", children: t }),
@@ -410,20 +410,20 @@ const X = {
410
410
  };
411
411
  Y.displayName = "TableSortButton";
412
412
  export {
413
- V as Table,
413
+ S as Table,
414
414
  E as TableActionBar,
415
415
  F as TableActionBarLeading,
416
416
  O as TableActionBarTrailing,
417
- q as TableBody,
417
+ k as TableBody,
418
418
  J as TableCell,
419
419
  P as TableCellContent,
420
- k as TableGroupHeaderRow,
421
- S as TableHeader,
420
+ M as TableGroupHeaderRow,
421
+ V as TableHeader,
422
422
  U as TableHeaderCell,
423
- M as TableHeaderRow,
423
+ G as TableHeaderRow,
424
424
  W as TableInfoIcon,
425
425
  Q as TableLoadingRow,
426
426
  L as TableRoot,
427
- z as TableRow,
427
+ q as TableRow,
428
428
  Y as TableSortButton
429
429
  };
@@ -1,37 +1,36 @@
1
1
  import { throttle as h } from "../../../../libs/utils-shared/dist/index.js";
2
- import { useMemo as L, useRef as u, useEffect as _ } from "react";
2
+ import { useMemo as L, useRef as s, useEffect as _ } from "react";
3
3
  import { TABLE_SCROLL_BOTTOM_THRESHOLD_IN_ROW as R, TABLE_CELL_HEIGHT as a } from "../constants.js";
4
4
  const m = 150, E = ({
5
5
  element: t,
6
- threshold: c = 10
6
+ threshold: r = 10
7
7
  }) => {
8
- const { scrollTop: n, scrollHeight: o, clientHeight: e } = t;
9
- return n + e >= o - c;
8
+ const { scrollTop: c, scrollHeight: n, clientHeight: e } = t;
9
+ return c + e >= n - r;
10
10
  }, p = ({
11
11
  onScrollBottom: t,
12
- loading: c = !1,
13
- thresholdInRow: n = R
12
+ loading: r = !1,
13
+ thresholdInRow: c = R
14
14
  }) => {
15
- const o = L(
16
- () => n * a,
17
- [n]
18
- ), e = u(t), l = u(c);
19
- e.current = t, l.current = c;
20
- const f = u(null), i = L(() => {
15
+ const n = L(
16
+ () => c * a,
17
+ [c]
18
+ ), e = s(t), u = s(r);
19
+ e.current = t, u.current = r;
20
+ const l = s(null), f = L(() => {
21
21
  if (!t)
22
22
  return;
23
- const r = h((s) => {
24
- l.current || !e.current || E({ element: s, threshold: o }) && e.current();
23
+ const i = h((o) => {
24
+ u.current || !e.current || E({ element: o, threshold: n }) && e.current();
25
25
  }, m);
26
- return f.current = r, (s) => {
27
- const T = s.currentTarget;
28
- T && r(T);
26
+ return l.current = i, (o) => {
27
+ const T = o.currentTarget;
28
+ T && i(T);
29
29
  };
30
- }, [t, o]);
30
+ }, [t, n]);
31
31
  return _(() => () => {
32
- var r;
33
- (r = f.current) == null || r.cancel();
34
- }, [i]), i;
32
+ l.current?.cancel();
33
+ }, [f]), f;
35
34
  };
36
35
  export {
37
36
  E as isScrolledToBottom,
@@ -1,10 +1,10 @@
1
- import { jsx as r, jsxs as b } from "react/jsx-runtime";
2
- import { createSafeContext as T, cn as s } from "../../../libs/utils-shared/dist/index.js";
1
+ import { jsx as i, jsxs as b } from "react/jsx-runtime";
2
+ import { createSafeContext as T, cn as l } from "../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as f } from "class-variance-authority";
4
4
  import { useCallback as x } from "react";
5
5
  import { Spot as v } from "../Spot/Spot.js";
6
6
  import { InteractiveIcon as y } from "../InteractiveIcon/InteractiveIcon.js";
7
- const [N, l] = T("Tile"), m = {
7
+ const [N, s] = T("Tile"), m = {
8
8
  root: f([
9
9
  "group relative flex flex-col items-center rounded-md text-base transition-colors focus-visible:outline-2 focus-visible:outline-focus"
10
10
  ]),
@@ -39,14 +39,14 @@ const [N, l] = T("Tile"), m = {
39
39
  ref: t,
40
40
  className: e,
41
41
  onClick: a,
42
- secondaryAction: i,
42
+ secondaryAction: o,
43
43
  appearance: c = "no-background",
44
- disabled: o = !1,
44
+ disabled: r = !1,
45
45
  centered: d = !1,
46
46
  children: u,
47
47
  style: p,
48
48
  ...n
49
- }) => /* @__PURE__ */ r(N, { value: { disabled: o }, children: /* @__PURE__ */ b(
49
+ }) => /* @__PURE__ */ i(N, { value: { disabled: r }, children: /* @__PURE__ */ b(
50
50
  "div",
51
51
  {
52
52
  ref: t,
@@ -55,61 +55,61 @@ const [N, l] = T("Tile"), m = {
55
55
  className: e
56
56
  }),
57
57
  children: [
58
- /* @__PURE__ */ r(
58
+ /* @__PURE__ */ i(
59
59
  "button",
60
60
  {
61
61
  ...n,
62
62
  onClick: a,
63
- disabled: o,
63
+ disabled: r,
64
64
  className: m.inner({
65
65
  appearance: c,
66
- disabled: o,
66
+ disabled: r,
67
67
  centered: d
68
68
  }),
69
69
  children: u
70
70
  }
71
71
  ),
72
- i
72
+ o
73
73
  ]
74
74
  }
75
75
  ) });
76
76
  g.displayName = "Tile";
77
77
  const h = ({ size: t = 48, ...e }) => {
78
- const { disabled: a } = l({
78
+ const { disabled: a } = s({
79
79
  consumerName: "TileSpot",
80
80
  contextRequired: !0
81
81
  });
82
- return /* @__PURE__ */ r(v, { ...e, size: t, disabled: a });
82
+ return /* @__PURE__ */ i(v, { ...e, size: t, disabled: a });
83
83
  };
84
84
  h.displayName = "TileSpot";
85
- const S = ({
85
+ const C = ({
86
86
  children: t,
87
87
  className: e,
88
88
  ...a
89
- }) => /* @__PURE__ */ r(
89
+ }) => /* @__PURE__ */ i(
90
90
  "div",
91
91
  {
92
- className: s("flex w-full flex-col items-center text-center", e),
92
+ className: l("flex w-full flex-col items-center text-center", e),
93
93
  ...a,
94
94
  children: t
95
95
  }
96
96
  );
97
- S.displayName = "TileContent";
98
- const w = ({
97
+ C.displayName = "TileContent";
98
+ const S = ({
99
99
  children: t,
100
100
  className: e,
101
101
  ...a
102
102
  }) => {
103
- const { disabled: i } = l({
103
+ const { disabled: o } = s({
104
104
  consumerName: "TileTitle",
105
105
  contextRequired: !0
106
106
  });
107
- return /* @__PURE__ */ r(
107
+ return /* @__PURE__ */ i(
108
108
  "div",
109
109
  {
110
- className: s(
110
+ className: l(
111
111
  "w-full truncate body-2-semi-bold",
112
- i && "text-disabled",
112
+ o && "text-disabled",
113
113
  e
114
114
  ),
115
115
  ...a,
@@ -117,22 +117,22 @@ const w = ({
117
117
  }
118
118
  );
119
119
  };
120
- w.displayName = "TileTitle";
121
- const q = ({
120
+ S.displayName = "TileTitle";
121
+ const k = ({
122
122
  children: t,
123
123
  className: e,
124
124
  ...a
125
125
  }) => {
126
- const { disabled: i } = l({
126
+ const { disabled: o } = s({
127
127
  consumerName: "TileDescription",
128
128
  contextRequired: !0
129
129
  });
130
- return /* @__PURE__ */ r(
130
+ return /* @__PURE__ */ i(
131
131
  "div",
132
132
  {
133
- className: s(
133
+ className: l(
134
134
  "w-full truncate body-3",
135
- i ? "text-disabled" : "text-muted",
135
+ o ? "text-disabled" : "text-muted",
136
136
  e
137
137
  ),
138
138
  ...a,
@@ -140,63 +140,63 @@ const q = ({
140
140
  }
141
141
  );
142
142
  };
143
- q.displayName = "TileDescription";
144
- const C = ({
143
+ k.displayName = "TileDescription";
144
+ const w = ({
145
145
  children: t,
146
146
  className: e,
147
147
  ...a
148
- }) => /* @__PURE__ */ r(
148
+ }) => /* @__PURE__ */ i(
149
149
  "div",
150
150
  {
151
- className: s("mt-4 flex w-full flex-col items-center gap-8", e),
151
+ className: l("mt-4 flex w-full flex-col items-center gap-8", e),
152
152
  ...a,
153
153
  children: t
154
154
  }
155
155
  );
156
- C.displayName = "TileTrailingContent";
157
- const D = ({
156
+ w.displayName = "TileTrailingContent";
157
+ const q = ({
158
158
  ref: t,
159
159
  onClick: e,
160
160
  icon: a,
161
- className: i,
161
+ className: o,
162
162
  "aria-label": c,
163
- ...o
163
+ ...r
164
164
  }) => {
165
- const { disabled: d } = l({
165
+ const { disabled: d } = s({
166
166
  consumerName: "TileSecondaryAction",
167
167
  contextRequired: !0
168
168
  }), u = x(
169
169
  (n) => {
170
- n.stopPropagation(), n.preventDefault(), e == null || e(n);
170
+ n.stopPropagation(), n.preventDefault(), e?.(n);
171
171
  },
172
172
  [e]
173
173
  );
174
174
  if (d) return null;
175
175
  const p = a;
176
- return /* @__PURE__ */ r(
176
+ return /* @__PURE__ */ i(
177
177
  y,
178
178
  {
179
- className: s(
179
+ className: l(
180
180
  "absolute top-8 right-4 opacity-0 transition-opacity duration-200 group-hover:opacity-100 focus-within:opacity-100",
181
- i
181
+ o
182
182
  ),
183
183
  "data-secondary-button-container": !0,
184
184
  iconType: "stroked",
185
185
  onClick: u,
186
186
  "aria-label": c,
187
187
  ref: t,
188
- ...o,
189
- children: /* @__PURE__ */ r(p, { size: 24 })
188
+ ...r,
189
+ children: /* @__PURE__ */ i(p, { size: 24 })
190
190
  }
191
191
  );
192
192
  };
193
- D.displayName = "TileSecondaryAction";
193
+ q.displayName = "TileSecondaryAction";
194
194
  export {
195
195
  g as Tile,
196
- S as TileContent,
197
- q as TileDescription,
198
- D as TileSecondaryAction,
196
+ C as TileContent,
197
+ k as TileDescription,
198
+ q as TileSecondaryAction,
199
199
  h as TileSpot,
200
- w as TileTitle,
201
- C as TileTrailingContent
200
+ S as TileTitle,
201
+ w as TileTrailingContent
202
202
  };
@@ -1,9 +1,9 @@
1
- import { jsxs as b, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as b, jsx as s } from "react/jsx-runtime";
2
2
  import { cn as p } from "../../../libs/utils-shared/dist/index.js";
3
3
  import { Slot as v, Slottable as x } from "@radix-ui/react-slot";
4
- import { cva as r } from "class-variance-authority";
4
+ import { cva as i } from "class-variance-authority";
5
5
  import { useCallback as g } from "react";
6
- const N = r(
6
+ const N = i(
7
7
  [
8
8
  "flex flex-col items-center gap-8 rounded-md p-12",
9
9
  "bg-muted body-2-semi-bold text-base transition-colors",
@@ -24,7 +24,7 @@ const N = r(
24
24
  isFull: !1
25
25
  }
26
26
  }
27
- ), V = r("shrink-0", {
27
+ ), V = i("shrink-0", {
28
28
  variants: {
29
29
  disabled: {
30
30
  true: "text-disabled",
@@ -34,17 +34,17 @@ const N = r(
34
34
  defaultVariants: {
35
35
  disabled: !1
36
36
  }
37
- }), y = ({
38
- ref: i,
37
+ }), k = ({
38
+ ref: r,
39
39
  icon: n,
40
- children: l,
41
- onClick: t,
40
+ children: a,
41
+ onClick: l,
42
42
  disabled: e = !1,
43
43
  isFull: u = !1,
44
- className: f,
45
- asChild: s = !1,
46
- "aria-label": m,
47
- ...c
44
+ className: c,
45
+ asChild: t = !1,
46
+ "aria-label": f,
47
+ ...m
48
48
  }) => {
49
49
  const d = g(
50
50
  (o) => {
@@ -52,29 +52,29 @@ const N = r(
52
52
  o.preventDefault();
53
53
  return;
54
54
  }
55
- t == null || t(o);
55
+ l?.(o);
56
56
  },
57
- [e, t]
57
+ [e, l]
58
58
  );
59
59
  return /* @__PURE__ */ b(
60
- s ? v : "button",
60
+ t ? v : "button",
61
61
  {
62
- ref: i,
63
- type: s ? void 0 : "button",
64
- className: p(N({ disabled: e, isFull: u }), f),
62
+ ref: r,
63
+ type: t ? void 0 : "button",
64
+ className: p(N({ disabled: e, isFull: u }), c),
65
65
  onClick: d,
66
66
  disabled: e,
67
67
  "data-disabled": e || void 0,
68
- "aria-label": m,
69
- ...c,
68
+ "aria-label": f,
69
+ ...m,
70
70
  children: [
71
- /* @__PURE__ */ a(n, { size: 20, className: V({ disabled: e }) }),
72
- s ? /* @__PURE__ */ a(x, { children: l }) : /* @__PURE__ */ a("span", { className: "line-clamp-2 text-center", children: l })
71
+ /* @__PURE__ */ s(n, { size: 20, className: V({ disabled: e }) }),
72
+ t ? /* @__PURE__ */ s(x, { children: a }) : /* @__PURE__ */ s("span", { className: "line-clamp-2 text-center", children: a })
73
73
  ]
74
74
  }
75
75
  );
76
76
  };
77
- y.displayName = "TileButton";
77
+ k.displayName = "TileButton";
78
78
  export {
79
- y as TileButton
79
+ k as TileButton
80
80
  };