@alfadocs/ui-kit 0.2.0 → 0.2.1

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 (31) hide show
  1. package/dist/_chunks/{combobox-DCNXqbC7.js → combobox-BLWruOxK.js} +74 -75
  2. package/dist/_chunks/{freemium-paywall-CnvceDav.js → freemium-paywall-CrVefV0M.js} +2 -2
  3. package/dist/_chunks/{link-8QmFjIz2.js → link-BcYW1eNM.js} +48 -32
  4. package/dist/_chunks/{message-card-ChCX9Iv6.js → message-card-DjvsB_3U.js} +12 -12
  5. package/dist/_chunks/{message-tray-n8q9ITXI.js → message-tray-BbnAzlLH.js} +23 -23
  6. package/dist/_chunks/{notification-card-hBlPN1-c.js → notification-card-uTPEvAQS.js} +21 -21
  7. package/dist/_chunks/{notification-tray-C5cnXbl9.js → notification-tray-PGtMqXbP.js} +56 -56
  8. package/dist/_chunks/{payment-form-C3vT_npe.js → payment-form-B_BdHwjb.js} +21 -21
  9. package/dist/_chunks/transaction-chip-DE6DITun.js +196 -0
  10. package/dist/agent-catalog.json +15 -1
  11. package/dist/components/combobox/index.js +1 -1
  12. package/dist/components/freemium-paywall/index.js +1 -1
  13. package/dist/components/index.d.ts +1 -0
  14. package/dist/components/link/index.js +1 -1
  15. package/dist/components/link/link.d.ts +1 -0
  16. package/dist/components/message-card/index.js +1 -1
  17. package/dist/components/message-tray/index.js +1 -1
  18. package/dist/components/notification-card/index.js +1 -1
  19. package/dist/components/notification-tray/index.js +1 -1
  20. package/dist/components/payment-form/index.js +1 -1
  21. package/dist/components/transaction-chip/index.d.ts +3 -0
  22. package/dist/components/transaction-chip/index.js +5 -0
  23. package/dist/components/transaction-chip/transaction-chip.d.ts +30 -0
  24. package/dist/i18n/config.js +36 -0
  25. package/dist/i18n/resources.d.ts +36 -0
  26. package/dist/index.js +33 -31
  27. package/dist/locales/de.json +12 -0
  28. package/dist/locales/en.json +12 -0
  29. package/dist/locales/it.json +12 -0
  30. package/dist/tokens.css +1 -1
  31. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
1
  import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
- import { forwardRef as $e, useContext as ke, useState as M, useMemo as Q, useRef as v, useLayoutEffect as Oe, useEffect as E, useCallback as Ve } from "react";
2
+ import { forwardRef as $e, useContext as ke, useState as G, useMemo as M, useRef as v, useLayoutEffect as Oe, useEffect as E, useCallback as Ve } from "react";
3
3
  import * as F from "@radix-ui/react-popover";
4
4
  import { R as qe, _ as u, P as Be } from "./index-4xgbg-sn.js";
5
5
  import { c as D } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as Ue } from "react-i18next";
7
7
  import { u as He, F as Ge } from "./form-field-context-B3APVHKx.js";
8
8
  import { c as Me } from "./compose-refs-C0k0tdqF.js";
9
- import { n as K } from "./normalize-diacritics-BNGbFNlJ.js";
10
- import { g as Qe } from "./group-options-BvKhQ3xb.js";
11
- import { I as Ke, a as L, d as X, c as Le } from "./input-surface-u4QB0lxe.js";
9
+ import { n as L } from "./normalize-diacritics-BNGbFNlJ.js";
10
+ import { g as Le } from "./group-options-BvKhQ3xb.js";
11
+ import { I as Qe, a as Q, d as K, c as Ke } from "./input-surface-u4QB0lxe.js";
12
12
  import { u as Xe } from "./registry-C9nwlNyL.js";
13
13
  import { X as We } from "./x-CCcI3eJp.js";
14
14
  import { C as Je } from "./check-DPdL_Sm7.js";
@@ -104,16 +104,16 @@ const Ye = {
104
104
  ), et = D(
105
105
  [
106
106
  "ds:group ds:relative ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:w-full",
107
- Le
107
+ Ke
108
108
  ].join(" "),
109
109
  {
110
110
  variants: {
111
111
  size: {
112
- sm: `${L.sm} ${X.sm}`,
113
- md: `${L.md} ${X.md}`,
114
- lg: `${L.lg} ${X.lg}`
112
+ sm: `${Q.sm} ${K.sm}`,
113
+ md: `${Q.md} ${K.md}`,
114
+ lg: `${Q.lg} ${K.lg}`
115
115
  },
116
- tone: Ke
116
+ tone: Qe
117
117
  },
118
118
  defaultVariants: {
119
119
  size: "md",
@@ -132,7 +132,7 @@ const Ye = {
132
132
  "ds:data-[side=top]:slide-in-from-bottom-2",
133
133
  "ds:motion-reduce:animate-none"
134
134
  ].join(" ")
135
- ), re = D(
135
+ ), ae = D(
136
136
  [
137
137
  "ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]",
138
138
  "ds:rounded-[var(--radius-sm)]",
@@ -176,7 +176,7 @@ function at({
176
176
  keywords: [],
177
177
  forceMount: !0,
178
178
  onSelect: () => j(s),
179
- className: re({ size: P }),
179
+ className: ae({ size: P }),
180
180
  children: [
181
181
  /* @__PURE__ */ o(
182
182
  "span",
@@ -190,66 +190,66 @@ function at({
190
190
  }
191
191
  );
192
192
  }
193
- const ae = $e(
193
+ const ie = $e(
194
194
  function({
195
195
  options: r,
196
196
  value: y,
197
197
  defaultValue: P,
198
198
  onValueChange: j,
199
- placeholder: W,
199
+ placeholder: X,
200
200
  clearable: A = !1,
201
- disabled: ie,
202
- readOnly: de,
203
- required: le,
204
- name: ce,
201
+ disabled: de,
202
+ readOnly: le,
203
+ required: ce,
204
+ name: ue,
205
205
  id: T,
206
206
  size: x = "md",
207
- tone: ue = "default",
207
+ tone: me = "default",
208
208
  filter: $,
209
- allowCreate: me = !1,
209
+ allowCreate: fe = !1,
210
210
  onCreate: k,
211
- open: J,
211
+ open: W,
212
212
  onOpenChange: m,
213
- emptyMessage: fe,
214
- className: pe,
215
- "aria-label": O
216
- }, be) {
217
- const { t: C } = Ue(), h = He(), N = ke(Ge) !== null, [he, V] = M(
213
+ emptyMessage: pe,
214
+ className: be,
215
+ "aria-label": J
216
+ }, he) {
217
+ const { t: C } = Ue(), h = He(), N = ke(Ge) !== null, [ge, O] = G(
218
218
  y ?? P ?? ""
219
- ), z = y !== void 0, f = z ? y : he, q = Q(
219
+ ), z = y !== void 0, f = z ? y : ge, V = M(
220
220
  () => r.find((e) => e.value === f),
221
221
  [r, f]
222
- ), S = (q == null ? void 0 : q.label) ?? "", [p, i] = M(S), [ge, Y] = M(!1), R = J !== void 0, d = R ? J : ge, w = v(!1), _ = v(null), Z = v(null);
222
+ ), S = (V == null ? void 0 : V.label) ?? "", [p, i] = G(S), [ve, Y] = G(!1), R = W !== void 0, d = R ? W : ve, w = v(!1), _ = v(null), Z = v(null);
223
223
  Oe(() => {
224
224
  var e;
225
225
  (e = _.current) == null || e.setAttribute("aria-expanded", String(d));
226
226
  }), E(() => {
227
227
  d || i(S);
228
228
  }, [S, d]);
229
- const ve = T ?? (N ? h.id : void 0), B = (N ? h.disabled : !1) || !!ie, g = !!de, ye = (N ? h.required : !1) || !!le, ee = N ? h.invalid : !1, xe = ee ? "error" : ue, Ce = N && h.describedBy ? h.describedBy : void 0, Ne = W ?? C("ui.inputs.combobox.placeholder", "Search…"), ze = Q(
229
+ const ye = T ?? (N ? h.id : void 0), q = (N ? h.disabled : !1) || !!de, g = !!le, xe = (N ? h.required : !1) || !!ce, ee = N ? h.invalid : !1, Ce = ee ? "error" : me, Ne = N && h.describedBy ? h.describedBy : void 0, te = X ?? C("ui.inputs.combobox.placeholder", "Search…"), ze = M(
230
230
  () => (e, t, n) => {
231
231
  if (w.current) return 1;
232
- const b = K(e), a = K(t), G = n == null ? void 0 : n.map(K);
232
+ const b = L(e), a = L(t), H = n == null ? void 0 : n.map(L);
233
233
  return $ ? $(b, a) : qe(
234
234
  b,
235
235
  a,
236
- G
236
+ H
237
237
  );
238
238
  },
239
239
  [$]
240
- ), l = j, te = (e) => {
241
- z || V(e), l == null || l(e);
240
+ ), l = j, se = (e) => {
241
+ z || O(e), l == null || l(e);
242
242
  }, c = (e) => {
243
243
  R || Y(e), m == null || m(e);
244
244
  }, Se = (e) => {
245
245
  const t = r.find((n) => n.value === e);
246
- te(e), i((t == null ? void 0 : t.label) ?? ""), c(!1);
246
+ se(e), i((t == null ? void 0 : t.label) ?? ""), c(!1);
247
247
  }, Ie = (e) => {
248
248
  k == null || k(e), c(!1);
249
249
  }, Re = (e) => {
250
250
  g || (i(e), !d && e.length > 0 && !w.current && c(!0));
251
251
  }, we = () => {
252
- !B && !g && c(!0);
252
+ !q && !g && c(!0);
253
253
  }, _e = () => {
254
254
  w.current = !0;
255
255
  }, Ee = () => {
@@ -261,34 +261,34 @@ const ae = $e(
261
261
  e.nativeEvent.isComposing || e.key === "Escape" && d && (e.preventDefault(), c(!1), i(S));
262
262
  }, De = (e) => {
263
263
  var t;
264
- e.preventDefault(), e.stopPropagation(), te(""), i(""), c(!0), (t = _.current) == null || t.focus();
264
+ e.preventDefault(), e.stopPropagation(), se(""), i(""), c(!0), (t = _.current) == null || t.focus();
265
265
  }, Pe = (e) => {
266
266
  g && e || (c(e), e || i(S));
267
- }, se = v(f);
267
+ }, oe = v(f);
268
268
  E(() => {
269
- se.current = f;
269
+ oe.current = f;
270
270
  }, [f]);
271
- const oe = v(p);
271
+ const ne = v(p);
272
272
  E(() => {
273
- oe.current = p;
273
+ ne.current = p;
274
274
  }, [p]);
275
- const ne = v(d);
275
+ const re = v(d);
276
276
  E(() => {
277
- ne.current = d;
277
+ re.current = d;
278
278
  }, [d]);
279
- const U = Ve(
279
+ const B = Ve(
280
280
  (e) => {
281
281
  R || Y(e), m == null || m(e);
282
282
  },
283
283
  [R, m]
284
- ), je = Q(
284
+ ), je = M(
285
285
  () => ({
286
- getValue: () => se.current || null,
287
- getQuery: () => oe.current,
288
- getIsOpen: () => ne.current,
286
+ getValue: () => oe.current || null,
287
+ getQuery: () => ne.current,
288
+ getIsOpen: () => re.current,
289
289
  setValue: (e) => {
290
290
  const t = e ?? "";
291
- z || V(t), l == null || l(t);
291
+ z || O(t), l == null || l(t);
292
292
  const n = r.find((b) => b.value === t);
293
293
  i((n == null ? void 0 : n.label) ?? "");
294
294
  },
@@ -296,22 +296,22 @@ const ae = $e(
296
296
  i(e);
297
297
  },
298
298
  clear: () => {
299
- z || V(""), l == null || l(""), i("");
299
+ z || O(""), l == null || l(""), i("");
300
300
  },
301
- open: () => U(!0),
302
- close: () => U(!1)
301
+ open: () => B(!0),
302
+ close: () => B(!1)
303
303
  }),
304
- [l, z, r, U]
304
+ [l, z, r, B]
305
305
  );
306
306
  Xe(Ye, je, T);
307
- const Ae = A && !!f && !B && !g, Te = Qe(r), H = rt[x];
307
+ const Ae = A && !!f && !q && !g, Te = Le(r), U = rt[x];
308
308
  return /* @__PURE__ */ o(F.Root, { open: d, onOpenChange: Pe, children: /* @__PURE__ */ I(
309
309
  u,
310
310
  {
311
311
  filter: ze,
312
312
  shouldFilter: !0,
313
313
  loop: !0,
314
- label: O,
314
+ label: J ?? te,
315
315
  className: "ds:w-full",
316
316
  children: [
317
317
  /* @__PURE__ */ o(F.Anchor, { asChild: !0, children: /* @__PURE__ */ I(
@@ -320,8 +320,8 @@ const ae = $e(
320
320
  ref: Z,
321
321
  className: et({
322
322
  size: x,
323
- tone: xe,
324
- className: pe
323
+ tone: Ce,
324
+ className: be
325
325
  }),
326
326
  "data-component": "combobox",
327
327
  "data-component-id": T,
@@ -329,17 +329,16 @@ const ae = $e(
329
329
  /* @__PURE__ */ o(
330
330
  u.Input,
331
331
  {
332
- ref: Me(be, _),
332
+ ref: Me(he, _),
333
333
  value: p,
334
334
  onValueChange: Re,
335
- id: ve,
336
- name: ce,
337
- placeholder: Ne,
338
- disabled: B,
335
+ id: ye,
336
+ name: ue,
337
+ placeholder: te,
338
+ disabled: q,
339
339
  readOnly: g,
340
- required: ye,
341
- "aria-label": O,
342
- "aria-describedby": Ce,
340
+ required: xe,
341
+ "aria-describedby": Ne,
343
342
  "aria-invalid": ee || void 0,
344
343
  onFocus: we,
345
344
  onKeyDown: Fe,
@@ -374,7 +373,7 @@ const ae = $e(
374
373
  {
375
374
  forceMount: !0,
376
375
  hidden: !d,
377
- "aria-label": O ?? C("ui.inputs.combobox.popupLabel", "Options"),
376
+ "aria-label": J ?? C("ui.inputs.combobox.popupLabel", "Options"),
378
377
  onOpenAutoFocus: (e) => e.preventDefault(),
379
378
  onCloseAutoFocus: (e) => e.preventDefault(),
380
379
  onInteractOutside: (e) => {
@@ -386,10 +385,10 @@ const ae = $e(
386
385
  align: "start",
387
386
  className: tt(),
388
387
  children: /* @__PURE__ */ I(u.List, { className: ot, children: [
389
- /* @__PURE__ */ o(u.Empty, { className: nt, children: fe ?? C("ui.inputs.combobox.empty", "No results found") }),
388
+ /* @__PURE__ */ o(u.Empty, { className: nt, children: pe ?? C("ui.inputs.combobox.empty", "No results found") }),
390
389
  Te.map(({ group: e, items: t }, n) => {
391
390
  const b = t.map((a) => {
392
- const G = a.value === f;
391
+ const H = a.value === f;
393
392
  return /* @__PURE__ */ I(
394
393
  u.Item,
395
394
  {
@@ -397,14 +396,14 @@ const ae = $e(
397
396
  keywords: [a.label],
398
397
  disabled: a.disabled,
399
398
  onSelect: Se,
400
- className: re({ size: x }),
399
+ className: ae({ size: x }),
401
400
  children: [
402
401
  /* @__PURE__ */ o(
403
402
  "span",
404
403
  {
405
404
  "aria-hidden": "true",
406
- className: `ds:inline-flex ds:items-center ds:justify-center ${H}`,
407
- children: G ? /* @__PURE__ */ o(Je, { className: H }) : null
405
+ className: `ds:inline-flex ds:items-center ds:justify-center ${U}`,
406
+ children: H ? /* @__PURE__ */ o(Je, { className: U }) : null
408
407
  }
409
408
  ),
410
409
  /* @__PURE__ */ o("span", { className: "ds:flex-1 ds:truncate", children: a.label }),
@@ -423,7 +422,7 @@ const ae = $e(
423
422
  `group-${e}`
424
423
  ) : /* @__PURE__ */ o(u.Group, { children: b }, `group-${n}`);
425
424
  }),
426
- me && p.length > 0 ? /* @__PURE__ */ o(
425
+ fe && p.length > 0 ? /* @__PURE__ */ o(
427
426
  at,
428
427
  {
429
428
  search: p,
@@ -434,7 +433,7 @@ const ae = $e(
434
433
  value: p
435
434
  }
436
435
  ),
437
- iconClass: H,
436
+ iconClass: U,
438
437
  size: x,
439
438
  onSelect: Ie
440
439
  }
@@ -447,14 +446,14 @@ const ae = $e(
447
446
  ) });
448
447
  }
449
448
  );
450
- ae.displayName = "Combobox";
451
- const xt = ae;
449
+ ie.displayName = "Combobox";
450
+ const xt = ie;
452
451
  export {
453
452
  xt as C,
454
453
  tt as a,
455
454
  Ze as b,
456
455
  Ye as c,
457
- re as d,
456
+ ae as d,
458
457
  et as e
459
458
  };
460
- //# sourceMappingURL=combobox-DCNXqbC7.js.map
459
+ //# sourceMappingURL=combobox-BLWruOxK.js.map
@@ -7,7 +7,7 @@ import { useTranslation as Z } from "react-i18next";
7
7
  import { u as $ } from "./registry-C9nwlNyL.js";
8
8
  import { B as j } from "./button-DD_0Xdmr.js";
9
9
  import { P as ee } from "./progress-C11tqhoI.js";
10
- import { f as se } from "./payment-form-C3vT_npe.js";
10
+ import { f as se } from "./payment-form-B_BdHwjb.js";
11
11
  import { T as ae } from "./triangle-alert-CBPUIzQo.js";
12
12
  import { C as re } from "./check-DPdL_Sm7.js";
13
13
  const te = {
@@ -264,4 +264,4 @@ export {
264
264
  de as F,
265
265
  te as f
266
266
  };
267
- //# sourceMappingURL=freemium-paywall-CnvceDav.js.map
267
+ //# sourceMappingURL=freemium-paywall-CrVefV0M.js.map
@@ -1,4 +1,4 @@
1
- import { jsxs as y, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as b, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as k } from "react";
3
3
  import { c as w } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as N } from "react-i18next";
@@ -15,7 +15,7 @@ const _ = [
15
15
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
16
16
  ], j = L("external-link", _), T = w(
17
17
  [
18
- "ds:inline ds:underline-offset-4",
18
+ "ds:underline-offset-4",
19
19
  "ds:rounded-[var(--radius-xs)]",
20
20
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
21
21
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
@@ -37,73 +37,89 @@ const _ = [
37
37
  weight: {
38
38
  normal: "ds:font-normal",
39
39
  strong: "ds:font-semibold"
40
+ },
41
+ // When the link carries an icon, the anchor itself becomes a flex
42
+ // container so glyphs centre on the text optical centre — the
43
+ // previous `vertical-align: -0.125em` heuristic over-corrected when
44
+ // the link was the only thing on its line (e.g. each <li> of a
45
+ // vertical sidebar nav). Text-only links remain plain `inline` so
46
+ // they wrap naturally inside a paragraph.
47
+ hasIcon: {
48
+ no: "ds:inline",
49
+ yes: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"
40
50
  }
41
51
  },
42
52
  defaultVariants: {
43
53
  intent: "default",
44
- weight: "normal"
54
+ weight: "normal",
55
+ hasIcon: "no"
45
56
  }
46
57
  }
47
58
  ), q = k(
48
59
  ({
49
60
  href: l,
50
- external: i = !1,
51
- disabled: e = !1,
52
- startIcon: a,
53
- endIcon: r,
61
+ external: e = !1,
62
+ disabled: s = !1,
63
+ startIcon: i,
64
+ endIcon: a,
54
65
  intent: t,
55
66
  weight: c,
56
67
  className: f,
57
68
  children: u,
58
69
  target: m,
59
- rel: d,
60
- onClick: n,
70
+ rel: r,
71
+ onClick: o,
61
72
  ...v
62
- }, p) => {
63
- const { t: h } = N(), g = i ? "_blank" : m, x = i ? [d, "noopener", "noreferrer"].filter(Boolean).join(" ") : d, b = h("ui.link.opensInNewTab", "Opens in a new tab");
64
- return /* @__PURE__ */ y(
73
+ }, h) => {
74
+ const { t: p } = N(), g = e ? "_blank" : m, x = e ? [r, "noopener", "noreferrer"].filter(Boolean).join(" ") : r, y = p("ui.link.opensInNewTab", "Opens in a new tab");
75
+ return /* @__PURE__ */ b(
65
76
  "a",
66
77
  {
67
- ref: p,
68
- href: e ? void 0 : l,
69
- role: e ? "link" : void 0,
70
- "aria-disabled": e || void 0,
78
+ ref: h,
79
+ href: s ? void 0 : l,
80
+ role: s ? "link" : void 0,
81
+ "aria-disabled": s || void 0,
71
82
  target: g,
72
83
  rel: x || void 0,
73
- onClick: (o) => {
74
- if (e) {
75
- o.preventDefault();
84
+ onClick: (d) => {
85
+ if (s) {
86
+ d.preventDefault();
76
87
  return;
77
88
  }
78
- n == null || n(o);
89
+ o == null || o(d);
79
90
  },
80
91
  "data-component": "link",
81
92
  "data-intent": t ?? "default",
82
- className: T({ intent: t, weight: c, className: f }),
93
+ className: T({
94
+ intent: t,
95
+ weight: c,
96
+ hasIcon: !!(i || a || e) ? "yes" : "no",
97
+ className: f
98
+ }),
83
99
  ...v,
84
100
  children: [
85
- a ? /* @__PURE__ */ s(
101
+ i ? /* @__PURE__ */ n(
86
102
  "span",
87
103
  {
88
104
  "aria-hidden": "true",
89
- className: "ds:inline-flex ds:items-center ds:me-[var(--spacing-2xs)] ds:[&_svg]:size-[1em] ds:align-[-0.125em]",
90
- children: a
105
+ className: "ds:inline-flex ds:items-center ds:[&_svg]:size-[1em]",
106
+ children: i
91
107
  }
92
108
  ) : null,
93
109
  u,
94
- i ? /* @__PURE__ */ s(
110
+ e ? /* @__PURE__ */ n(
95
111
  "span",
96
112
  {
97
- className: "ds:inline-flex ds:items-center ds:ms-[var(--spacing-2xs)] ds:align-[-0.125em]",
98
- "aria-label": b,
99
- children: /* @__PURE__ */ s(j, { "aria-hidden": "true", className: "ds:size-[1em]" })
113
+ className: "ds:inline-flex ds:items-center",
114
+ "aria-label": y,
115
+ children: /* @__PURE__ */ n(j, { "aria-hidden": "true", className: "ds:size-[1em]" })
100
116
  }
101
- ) : r ? /* @__PURE__ */ s(
117
+ ) : a ? /* @__PURE__ */ n(
102
118
  "span",
103
119
  {
104
120
  "aria-hidden": "true",
105
- className: "ds:inline-flex ds:items-center ds:ms-[var(--spacing-2xs)] ds:[&_svg]:size-[1em] ds:align-[-0.125em]",
106
- children: r
121
+ className: "ds:inline-flex ds:items-center ds:[&_svg]:size-[1em]",
122
+ children: a
107
123
  }
108
124
  ) : null
109
125
  ]
@@ -115,4 +131,4 @@ q.displayName = "Link";
115
131
  export {
116
132
  q as L
117
133
  };
118
- //# sourceMappingURL=link-8QmFjIz2.js.map
134
+ //# sourceMappingURL=link-BcYW1eNM.js.map
@@ -1,13 +1,13 @@
1
1
  import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
2
  import { forwardRef as B, useMemo as L, useState as U, useRef as W, useCallback as _ } from "react";
3
- import { c as E } from "./index-D2ZczOXr.js";
4
- import { useTranslation as H } from "react-i18next";
5
- import { I as X } from "./icon-button-C4CGcYuz.js";
3
+ import { c as D } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as E } from "react-i18next";
5
+ import { I as H } from "./icon-button-C4CGcYuz.js";
6
6
  import { B as k } from "./button-DD_0Xdmr.js";
7
- import { A as q } from "./avatar-Dcr6XuDQ.js";
8
- import { T as D } from "./timestamp-BV2lC-wV.js";
7
+ import { A as X } from "./avatar-Dcr6XuDQ.js";
8
+ import { T as q } from "./timestamp-BV2lC-wV.js";
9
9
  import { X as G } from "./x-CCcI3eJp.js";
10
- const J = E(
10
+ const J = D(
11
11
  [
12
12
  "ds:relative ds:flex ds:gap-[var(--spacing-sm)]",
13
13
  "ds:rounded-[var(--radius-sm)]",
@@ -84,7 +84,7 @@ const Q = B(
84
84
  className: T,
85
85
  ...z
86
86
  }, K) => {
87
- const { t: n, i18n: v } = H(), M = L(() => {
87
+ const { t: n, i18n: v } = E(), M = L(() => {
88
88
  const s = new Date(e.sentAt);
89
89
  return Number.isNaN(s.getTime()) ? "" : new Intl.DateTimeFormat(v.language, {
90
90
  dateStyle: "medium",
@@ -132,7 +132,7 @@ const Q = B(
132
132
  "aria-label": C,
133
133
  className: j + " ds:contents",
134
134
  onClick: (s) => {
135
- s.defaultPrevented || s.metaKey || s.ctrlKey || s.shiftKey || r(e);
135
+ s.defaultPrevented || s.metaKey || s.ctrlKey || s.shiftKey || (s.preventDefault(), r(e));
136
136
  },
137
137
  children: i
138
138
  }
@@ -171,7 +171,7 @@ const Q = B(
171
171
  ...z,
172
172
  children: [
173
173
  /* @__PURE__ */ a(
174
- q,
174
+ X,
175
175
  {
176
176
  name: e.sender.name,
177
177
  src: e.sender.avatarUrl,
@@ -217,7 +217,7 @@ const Q = B(
217
217
  ) : null,
218
218
  /* @__PURE__ */ a("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)] ds:[overflow:hidden] ds:[display:-webkit-box] ds:[-webkit-box-orient:vertical] ds:[-webkit-line-clamp:2] ds:break-words", children: e.preview }),
219
219
  /* @__PURE__ */ a(
220
- D,
220
+ q,
221
221
  {
222
222
  value: e.sentAt,
223
223
  shape: "chip",
@@ -258,7 +258,7 @@ const Q = B(
258
258
  ] }) : null
259
259
  ] }),
260
260
  d === "compact" && t ? /* @__PURE__ */ a("span", { className: "ds:relative ds:z-[1] ds:opacity-0 ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:transition-opacity ds:motion-reduce:transition-none", children: /* @__PURE__ */ a(
261
- X,
261
+ H,
262
262
  {
263
263
  icon: /* @__PURE__ */ a(G, {}),
264
264
  intent: "ghost",
@@ -277,4 +277,4 @@ export {
277
277
  Q as M,
278
278
  O as i
279
279
  };
280
- //# sourceMappingURL=message-card-ChCX9Iv6.js.map
280
+ //# sourceMappingURL=message-card-DjvsB_3U.js.map