@alfadocs/ui-kit 1.9.2 → 1.9.3

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,20 +1,20 @@
1
1
  import { jsx as c, jsxs as O } from "react/jsx-runtime";
2
- import { useState as k, useEffect as w, useCallback as U, useMemo as z, useRef as J } from "react";
2
+ import { useState as k, useEffect as w, useCallback as H, useMemo as z, useRef as J } from "react";
3
3
  import { useGridFilter as A } from "ag-grid-react";
4
- import { D as H } from "./date-range-picker-BD8P_rJq.js";
4
+ import { D as $ } from "./date-range-picker-BD8P_rJq.js";
5
5
  import { useTranslation as L } from "react-i18next";
6
6
  import { C as Q } from "./checkbox-BuZ1u__2.js";
7
7
  import { B as P } from "./button-nJaPh_HC.js";
8
8
  import { M as W } from "./multi-select-DqL4o0qV.js";
9
9
  import { S as X } from "./scroll-area-BZOvUhwQ.js";
10
- import { A as $ } from "./autocomplete-BrONKN8l.js";
10
+ import { A as G } from "./autocomplete-BrONKN8l.js";
11
11
  import { N as D } from "./number-input-Cgu2TtA8.js";
12
12
  import { S as Y } from "./select-BW5ecXlX.js";
13
13
  import { B as ee } from "./badge-sTusUqZD.js";
14
- import { A as G } from "./avatar-BNQNhoyL.js";
15
- import { T as V } from "./tag-3wgkwwDB.js";
14
+ import { A as V } from "./avatar-BNQNhoyL.js";
15
+ import { T as j } from "./tag-3wgkwwDB.js";
16
16
  import { T as te } from "./tooltip-DvmfrNvB.js";
17
- import { T as j } from "./timestamp-BV2lC-wV.js";
17
+ import { T as B } from "./timestamp-BV2lC-wV.js";
18
18
  function M(t) {
19
19
  return t ? t.toISOString().slice(0, 10) : null;
20
20
  }
@@ -24,8 +24,8 @@ function S(t) {
24
24
  return Number.isNaN(e.getTime()) ? void 0 : e;
25
25
  }
26
26
  function Ee(t) {
27
- var i;
28
- const { model: e, onModelChange: n, getValue: a, doesRowPassOtherFilter: l } = t, r = ((i = t.colDef) == null ? void 0 : i.filterParams) ?? {}, [o, d] = k(() => ({
27
+ var u;
28
+ const { model: e, onModelChange: n, getValue: a, doesRowPassOtherFilter: l } = t, r = ((u = t.colDef) == null ? void 0 : u.filterParams) ?? {}, [o, d] = k(() => ({
29
29
  from: S(e == null ? void 0 : e.dateFrom),
30
30
  to: S(e == null ? void 0 : e.dateTo)
31
31
  }));
@@ -44,7 +44,7 @@ function Ee(t) {
44
44
  return !(!T || p && T < p || C && T > C);
45
45
  }
46
46
  });
47
- function u(s) {
47
+ function i(s) {
48
48
  if (d(s), !s.from && !s.to) {
49
49
  n(null);
50
50
  return;
@@ -61,10 +61,10 @@ function Ee(t) {
61
61
  "data-component": "date-range-filter",
62
62
  className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]",
63
63
  children: /* @__PURE__ */ c(
64
- H,
64
+ $,
65
65
  {
66
66
  value: o,
67
- onChange: u,
67
+ onChange: i,
68
68
  commitMode: r.commitMode,
69
69
  size: "sm"
70
70
  }
@@ -73,8 +73,8 @@ function Ee(t) {
73
73
  );
74
74
  }
75
75
  function Pe(t) {
76
- var u, i;
77
- const { model: e, onModelChange: n, column: a } = t, l = ((i = (u = a == null ? void 0 : a.getColDef) == null ? void 0 : u.call(a)) == null ? void 0 : i.filterParams) ?? {}, [r, o] = k(() => ({
76
+ var i, u;
77
+ const { model: e, onModelChange: n, column: a } = t, l = ((u = (i = a == null ? void 0 : a.getColDef) == null ? void 0 : i.call(a)) == null ? void 0 : u.filterParams) ?? {}, [r, o] = k(() => ({
78
78
  from: S(e == null ? void 0 : e.dateFrom),
79
79
  to: S(e == null ? void 0 : e.dateTo)
80
80
  }));
@@ -96,7 +96,7 @@ function Pe(t) {
96
96
  });
97
97
  }
98
98
  return /* @__PURE__ */ c("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
99
- H,
99
+ $,
100
100
  {
101
101
  value: r,
102
102
  onChange: d,
@@ -133,22 +133,22 @@ function K(t, e, n) {
133
133
  d.current = n;
134
134
  }), w(() => {
135
135
  if (l || !t) return;
136
- const u = () => {
137
- o((i) => {
136
+ const i = () => {
137
+ o((u) => {
138
138
  const s = ae(t, d.current);
139
- return re(i, s) ? i : s;
139
+ return re(u, s) ? u : s;
140
140
  });
141
141
  };
142
- return u(), t.addEventListener("modelUpdated", u), t.addEventListener("cellValueChanged", u), () => {
143
- t.isDestroyed() || (t.removeEventListener("modelUpdated", u), t.removeEventListener("cellValueChanged", u));
142
+ return i(), t.addEventListener("modelUpdated", i), t.addEventListener("cellValueChanged", i), () => {
143
+ t.isDestroyed() || (t.removeEventListener("modelUpdated", i), t.removeEventListener("cellValueChanged", i));
144
144
  };
145
145
  }, [t, l]), a ?? r;
146
146
  }
147
147
  function De(t) {
148
- const { model: e, onModelChange: n, getValue: a, api: l, options: r, placeholder: o } = t, { t: d } = L("ui"), u = U(
148
+ const { model: e, onModelChange: n, getValue: a, api: l, options: r, placeholder: o } = t, { t: d } = L("ui"), i = H(
149
149
  (m) => a(m),
150
150
  [a]
151
- ), i = K(l, r, u), s = z(() => {
151
+ ), u = K(l, r, i), s = z(() => {
152
152
  const m = /* @__PURE__ */ new Set(), f = (e == null ? void 0 : e.values) ?? [];
153
153
  for (const g of f) m.add(R(g));
154
154
  return m;
@@ -177,7 +177,7 @@ function De(t) {
177
177
  return;
178
178
  }
179
179
  const m = [];
180
- for (const f of i)
180
+ for (const f of u)
181
181
  p.has(R(f.value)) && m.push(f.value);
182
182
  if (m.length === 0) {
183
183
  n(null);
@@ -201,7 +201,7 @@ function De(t) {
201
201
  role: "group",
202
202
  "aria-label": v,
203
203
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
204
- children: i.length === 0 ? /* @__PURE__ */ c("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: d("dataTable.agGrid.noRowsToShow") }) : i.map((m) => {
204
+ children: u.length === 0 ? /* @__PURE__ */ c("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: d("dataTable.agGrid.noRowsToShow") }) : u.map((m) => {
205
205
  const f = R(m.value);
206
206
  return /* @__PURE__ */ c(
207
207
  Q,
@@ -226,26 +226,26 @@ function De(t) {
226
226
  }
227
227
  function Me(t) {
228
228
  var T;
229
- const { model: e, onModelChange: n, column: a, api: l } = t, r = (T = a == null ? void 0 : a.getColDef) == null ? void 0 : T.call(a), o = (r == null ? void 0 : r.filterParams) ?? {}, d = U(
229
+ const { model: e, onModelChange: n, column: a, api: l } = t, r = (T = a == null ? void 0 : a.getColDef) == null ? void 0 : T.call(a), o = (r == null ? void 0 : r.filterParams) ?? {}, d = H(
230
230
  (b) => l && a ? l.getCellValue({
231
231
  rowNode: b,
232
232
  colKey: a
233
233
  }) : void 0,
234
234
  [l, a]
235
- ), u = K(
235
+ ), i = K(
236
236
  l,
237
237
  o.options,
238
238
  d
239
- ), i = o.placeholder ?? (typeof (r == null ? void 0 : r.headerName) == "string" ? r.headerName : void 0), s = z(() => {
239
+ ), u = o.placeholder ?? (typeof (r == null ? void 0 : r.headerName) == "string" ? r.headerName : void 0), s = z(() => {
240
240
  const b = /* @__PURE__ */ new Map();
241
- for (const v of u) b.set(String(v.value), v.value);
241
+ for (const v of i) b.set(String(v.value), v.value);
242
242
  return b;
243
- }, [u]), p = z(
244
- () => u.map((b) => ({
243
+ }, [i]), p = z(
244
+ () => i.map((b) => ({
245
245
  value: String(b.value),
246
246
  label: b.label
247
247
  })),
248
- [u]
248
+ [i]
249
249
  ), C = z(
250
250
  () => ((e == null ? void 0 : e.values) ?? []).map((b) => String(b)),
251
251
  [e]
@@ -274,7 +274,7 @@ function Me(t) {
274
274
  value: C,
275
275
  onChange: y,
276
276
  placeholder: o.placeholder,
277
- "aria-label": i,
277
+ "aria-label": u,
278
278
  allowClear: !0
279
279
  }
280
280
  ) });
@@ -291,8 +291,8 @@ function Ae(t) {
291
291
  column: r,
292
292
  options: o,
293
293
  loadOptions: d,
294
- placeholder: u
295
- } = t, { t: i } = L("ui"), s = z(() => {
294
+ placeholder: i
295
+ } = t, { t: u } = L("ui"), s = z(() => {
296
296
  if (o && o.length > 0) return o;
297
297
  if (!l || !r) return [];
298
298
  const f = /* @__PURE__ */ new Map();
@@ -331,7 +331,7 @@ function Ae(t) {
331
331
  function v() {
332
332
  y(""), n(null);
333
333
  }
334
- const m = u ?? i("dataTable.typeaheadFilter.placeholder");
334
+ const m = i ?? u("dataTable.typeaheadFilter.placeholder");
335
335
  return /* @__PURE__ */ O(
336
336
  "div",
337
337
  {
@@ -339,7 +339,7 @@ function Ae(t) {
339
339
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
340
340
  children: [
341
341
  /* @__PURE__ */ c(
342
- $,
342
+ G,
343
343
  {
344
344
  size: "sm",
345
345
  value: C,
@@ -350,14 +350,14 @@ function Ae(t) {
350
350
  "aria-label": m
351
351
  }
352
352
  ),
353
- /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ c(P, { intent: "ghost", size: "sm", onClick: v, type: "button", children: i("dataTable.typeaheadFilter.clear") }) })
353
+ /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ c(P, { intent: "ghost", size: "sm", onClick: v, type: "button", children: u("dataTable.typeaheadFilter.clear") }) })
354
354
  ]
355
355
  }
356
356
  );
357
357
  }
358
358
  function qe(t) {
359
359
  var T, b;
360
- const { model: e, onModelChange: n, column: a } = t, { t: l } = L("ui"), r = ((b = (T = a == null ? void 0 : a.getColDef) == null ? void 0 : T.call(a)) == null ? void 0 : b.filterParams) ?? {}, o = r.options ?? [], d = r.loadOptions, u = r.placeholder ?? l("dataTable.typeaheadFilter.placeholder"), i = z(() => async (v, m) => {
360
+ const { model: e, onModelChange: n, column: a } = t, { t: l } = L("ui"), r = ((b = (T = a == null ? void 0 : a.getColDef) == null ? void 0 : T.call(a)) == null ? void 0 : b.filterParams) ?? {}, o = r.options ?? [], d = r.loadOptions, i = r.placeholder ?? l("dataTable.typeaheadFilter.placeholder"), u = z(() => async (v, m) => {
361
361
  if (d)
362
362
  return (await d(v, m)).map((F) => ({ value: F.value, label: F.label }));
363
363
  const f = E(v);
@@ -373,15 +373,15 @@ function qe(t) {
373
373
  p(v), v === "" && e && n(null);
374
374
  }
375
375
  return /* @__PURE__ */ c("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
376
- $,
376
+ G,
377
377
  {
378
378
  size: "sm",
379
379
  value: s,
380
380
  onChange: y,
381
381
  onSelect: C,
382
- loadOptions: i,
383
- placeholder: u,
384
- "aria-label": u
382
+ loadOptions: u,
383
+ placeholder: i,
384
+ "aria-label": i
385
385
  }
386
386
  ) });
387
387
  }
@@ -396,10 +396,10 @@ const le = [
396
396
  "blank",
397
397
  "notBlank"
398
398
  ];
399
- function B(t) {
399
+ function I(t) {
400
400
  return t !== "blank" && t !== "notBlank";
401
401
  }
402
- function I(t) {
402
+ function _(t) {
403
403
  return t === "inRange";
404
404
  }
405
405
  function se(t, e, n, a) {
@@ -443,8 +443,8 @@ function Ve(t) {
443
443
  min: r,
444
444
  max: o,
445
445
  step: d,
446
- placeholder: u
447
- } = t, { t: i } = L("ui"), s = (e == null ? void 0 : e.type) ?? l ?? "equals", [p, C] = k(s), [y, T] = k((e == null ? void 0 : e.filter) ?? null), [b, v] = k(
446
+ placeholder: i
447
+ } = t, { t: u } = L("ui"), s = (e == null ? void 0 : e.type) ?? l ?? "equals", [p, C] = k(s), [y, T] = k((e == null ? void 0 : e.filter) ?? null), [b, v] = k(
448
448
  (e == null ? void 0 : e.filterTo) ?? null
449
449
  );
450
450
  w(() => {
@@ -468,12 +468,12 @@ function Ve(t) {
468
468
  const m = z(
469
469
  () => le.map((x) => ({
470
470
  value: x,
471
- label: i(`dataTable.numberFilter.operators.${x}`)
471
+ label: u(`dataTable.numberFilter.operators.${x}`)
472
472
  })),
473
- [i]
474
- ), f = u ?? i("dataTable.numberFilter.placeholder");
473
+ [u]
474
+ ), f = i ?? u("dataTable.numberFilter.placeholder");
475
475
  function g() {
476
- if (!B(p)) {
476
+ if (!I(p)) {
477
477
  n({ type: p, filter: 0 });
478
478
  return;
479
479
  }
@@ -481,7 +481,7 @@ function Ve(t) {
481
481
  n(null);
482
482
  return;
483
483
  }
484
- if (I(p)) {
484
+ if (_(p)) {
485
485
  n({
486
486
  type: p,
487
487
  filter: y,
@@ -494,7 +494,7 @@ function Ve(t) {
494
494
  function h() {
495
495
  C(l ?? "equals"), T(null), v(null), n(null);
496
496
  }
497
- const F = B(p), N = I(p);
497
+ const F = I(p), N = _(p);
498
498
  return /* @__PURE__ */ O(
499
499
  "div",
500
500
  {
@@ -510,7 +510,7 @@ function Ve(t) {
510
510
  onValueChange: (x) => {
511
511
  x !== "" && C(x);
512
512
  },
513
- "aria-label": i("dataTable.numberFilter.operators.equals")
513
+ "aria-label": u("dataTable.numberFilter.operators.equals")
514
514
  }
515
515
  ),
516
516
  F && !N && /* @__PURE__ */ c(
@@ -536,8 +536,8 @@ function Ve(t) {
536
536
  min: r,
537
537
  max: o,
538
538
  step: d,
539
- placeholder: i("dataTable.numberFilter.from"),
540
- "aria-label": i("dataTable.numberFilter.from")
539
+ placeholder: u("dataTable.numberFilter.from"),
540
+ "aria-label": u("dataTable.numberFilter.from")
541
541
  }
542
542
  ),
543
543
  /* @__PURE__ */ c(
@@ -549,14 +549,14 @@ function Ve(t) {
549
549
  min: r,
550
550
  max: o,
551
551
  step: d,
552
- placeholder: i("dataTable.numberFilter.to"),
553
- "aria-label": i("dataTable.numberFilter.to")
552
+ placeholder: u("dataTable.numberFilter.to"),
553
+ "aria-label": u("dataTable.numberFilter.to")
554
554
  }
555
555
  )
556
556
  ] }),
557
557
  /* @__PURE__ */ O("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
558
- /* @__PURE__ */ c(P, { intent: "ghost", size: "sm", onClick: h, type: "button", children: i("dataTable.numberFilter.clear") }),
559
- /* @__PURE__ */ c(P, { intent: "primary", size: "sm", onClick: g, type: "button", children: i("dataTable.numberFilter.apply") })
558
+ /* @__PURE__ */ c(P, { intent: "ghost", size: "sm", onClick: h, type: "button", children: u("dataTable.numberFilter.clear") }),
559
+ /* @__PURE__ */ c(P, { intent: "primary", size: "sm", onClick: g, type: "button", children: u("dataTable.numberFilter.apply") })
560
560
  ] })
561
561
  ]
562
562
  }
@@ -564,25 +564,25 @@ function Ve(t) {
564
564
  }
565
565
  function je(t) {
566
566
  var s, p;
567
- const { model: e, onModelChange: n, column: a } = t, { t: l } = L("ui"), r = ((p = (s = a == null ? void 0 : a.getColDef) == null ? void 0 : s.call(a)) == null ? void 0 : p.filterParams) ?? {}, o = r.defaultOperator ?? "equals", d = r.placeholder ?? l("dataTable.numberFilter.placeholder"), [u, i] = k((e == null ? void 0 : e.filter) ?? null);
567
+ const { model: e, onModelChange: n, column: a } = t, { t: l } = L("ui"), r = ((p = (s = a == null ? void 0 : a.getColDef) == null ? void 0 : s.call(a)) == null ? void 0 : p.filterParams) ?? {}, o = r.defaultOperator ?? "equals", d = r.placeholder ?? l("dataTable.numberFilter.placeholder"), [i, u] = k((e == null ? void 0 : e.filter) ?? null);
568
568
  return w(() => {
569
- i((e == null ? void 0 : e.filter) ?? null);
569
+ u((e == null ? void 0 : e.filter) ?? null);
570
570
  }, [e == null ? void 0 : e.filter]), w(() => {
571
- if (u === ((e == null ? void 0 : e.filter) ?? null)) return;
571
+ if (i === ((e == null ? void 0 : e.filter) ?? null)) return;
572
572
  const C = setTimeout(() => {
573
- if (u === null || Number.isNaN(u)) {
573
+ if (i === null || Number.isNaN(i)) {
574
574
  n(null);
575
575
  return;
576
576
  }
577
- n({ type: o, filter: u });
577
+ n({ type: o, filter: i });
578
578
  }, 200);
579
579
  return () => clearTimeout(C);
580
- }, [u, o]), /* @__PURE__ */ c("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
580
+ }, [i, o]), /* @__PURE__ */ c("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
581
581
  D,
582
582
  {
583
583
  size: "sm",
584
- value: u,
585
- onChange: i,
584
+ value: i,
585
+ onChange: u,
586
586
  min: r.min,
587
587
  max: r.max,
588
588
  step: r.step,
@@ -598,7 +598,7 @@ function Be(t) {
598
598
  function Ie(t) {
599
599
  const { value: e } = t;
600
600
  return e ? /* @__PURE__ */ O("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
601
- /* @__PURE__ */ c(G, { name: e.name, src: e.src, size: "sm" }),
601
+ /* @__PURE__ */ c(V, { name: e.name, src: e.src, size: "sm" }),
602
602
  /* @__PURE__ */ c("span", { children: e.name })
603
603
  ] }) : null;
604
604
  }
@@ -633,28 +633,28 @@ function _e(t) {
633
633
  shape: o = "rounded"
634
634
  } = t;
635
635
  if (!e) return null;
636
- const d = q(e, n), u = de(d), i = a ? q(e, a) ?? "" : "", s = l ? q(e, l) : void 0;
637
- return u ? /* @__PURE__ */ c(
636
+ const d = q(e, n), i = de(d), u = a ? q(e, a) ?? "" : "", s = l ? q(e, l) : void 0;
637
+ return o === "circle" && s ? /* @__PURE__ */ c(V, { src: i, name: s, size: r }) : i ? /* @__PURE__ */ c(
638
638
  "img",
639
639
  {
640
- src: u,
641
- alt: i,
640
+ src: i,
641
+ alt: u,
642
642
  loading: "lazy",
643
643
  decoding: "async",
644
644
  className: ["ds:object-cover", ie[r], ue[o]].join(
645
645
  " "
646
646
  )
647
647
  }
648
- ) : s ? /* @__PURE__ */ c(G, { name: s, size: r }) : null;
648
+ ) : s ? /* @__PURE__ */ c(V, { name: s, size: r }) : null;
649
649
  }
650
650
  function Ue(t) {
651
651
  const { value: e, maxVisible: n = 3 } = t, { t: a } = L();
652
652
  if (!Array.isArray(e) || e.length === 0) return null;
653
653
  const l = e.slice(0, n), r = e.length - n;
654
654
  return /* @__PURE__ */ O("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
655
- l.map((o) => /* @__PURE__ */ c(V, { label: o, size: "sm" }, o)),
655
+ l.map((o) => /* @__PURE__ */ c(j, { label: o, size: "sm" }, o)),
656
656
  r > 0 && /* @__PURE__ */ c(te, { label: e.slice(n).join(", "), children: /* @__PURE__ */ c(
657
- V,
657
+ j,
658
658
  {
659
659
  label: a("inputs.multiSelect.overflow", { count: r }),
660
660
  size: "sm",
@@ -677,8 +677,8 @@ const fe = {
677
677
  };
678
678
  function He(t) {
679
679
  const { value: e, format: n = "date", options: a } = t;
680
- return e == null || e === "" ? null : n === "relative" && !a ? /* @__PURE__ */ c(j, { value: e, shape: "bare" }) : /* @__PURE__ */ c(
681
- j,
680
+ return e == null || e === "" ? null : n === "relative" && !a ? /* @__PURE__ */ c(B, { value: e, shape: "bare" }) : /* @__PURE__ */ c(
681
+ B,
682
682
  {
683
683
  value: e,
684
684
  format: "absolute",
@@ -701,14 +701,14 @@ function $e(t) {
701
701
  options: r
702
702
  } = t, { i18n: o } = L(), d = pe(e);
703
703
  if (d === null) return null;
704
- const u = o.language || "en", i = new Intl.NumberFormat(u, {
704
+ const i = o.language || "en", u = new Intl.NumberFormat(i, {
705
705
  style: "currency",
706
706
  currency: n,
707
707
  ...r
708
708
  }).format(d), s = ["ds:tabular-nums"];
709
- return a && d < 0 && s.push("ds:text-[color:var(--destructive)]"), l && s.push("line-through"), /* @__PURE__ */ c("span", { className: s.join(" "), children: i });
709
+ return a && d < 0 && s.push("ds:text-[color:var(--destructive)]"), l && s.push("line-through"), /* @__PURE__ */ c("span", { className: s.join(" "), children: u });
710
710
  }
711
- function _(t, e) {
711
+ function U(t, e) {
712
712
  return typeof t == "function" ? t(e) : t;
713
713
  }
714
714
  function me(t) {
@@ -717,7 +717,7 @@ function me(t) {
717
717
  function Ge(t) {
718
718
  const { value: e, data: n, href: a, onClick: l, secondary: r } = t;
719
719
  if (!n) return null;
720
- const o = _(a, n), d = _(r, n), u = e == null || e === "" ? "" : String(e), i = [
720
+ const o = U(a, n), d = U(r, n), i = e == null || e === "" ? "" : String(e), u = [
721
721
  "ds:text-[color:var(--primary)]",
722
722
  "ds:hover:underline",
723
723
  "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
@@ -734,8 +734,8 @@ function Ge(t) {
734
734
  {
735
735
  href: me(o),
736
736
  onClick: s,
737
- className: i,
738
- children: u
737
+ className: u,
738
+ children: i
739
739
  }
740
740
  ) : /* @__PURE__ */ c(
741
741
  "button",
@@ -744,9 +744,9 @@ function Ge(t) {
744
744
  onClick: s,
745
745
  className: [
746
746
  "ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
747
- i
747
+ u
748
748
  ].join(" "),
749
- children: u
749
+ children: i
750
750
  }
751
751
  ),
752
752
  d ? /* @__PURE__ */ c("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: d }) : null
@@ -769,4 +769,4 @@ export {
769
769
  Ae as f,
770
770
  qe as g
771
771
  };
772
- //# sourceMappingURL=link-cell-renderer-BqO66pIA.js.map
772
+ //# sourceMappingURL=link-cell-renderer-x8kS41M7.js.map
@@ -4,7 +4,7 @@ import { useTranslation as $ } from "react-i18next";
4
4
  import { a as p, T as b, A as be, d as ne, D as P, e as ge } from "./actions-cell-renderer-B2pw6iH8.js";
5
5
  import { S as Ce } from "./select-BW5ecXlX.js";
6
6
  import { u as ve } from "./registry-DvAUVLHh.js";
7
- import { I as Ne, L as we, b as L, a as _, c as U, N as H, d as F, S as R, T as ie, D as K, C as Te, g as Fe, f as Re, U as Ie, e as ye } from "./link-cell-renderer-BqO66pIA.js";
7
+ import { I as Ne, L as we, b as L, a as _, c as U, N as H, d as F, S as R, T as ie, D as K, C as Te, g as Fe, f as Re, U as Ie, e as ye } from "./link-cell-renderer-x8kS41M7.js";
8
8
  import { B as ae } from "./badge-sTusUqZD.js";
9
9
  import { c as Pe } from "./index-D2ZczOXr.js";
10
10
  import { T as We } from "./timestamp-BV2lC-wV.js";
@@ -282,6 +282,7 @@ function Ze(e, i = {}) {
282
282
  sortable: !1,
283
283
  filter: !1,
284
284
  resizable: !1,
285
+ cellClass: "ag-cell-graphic",
285
286
  // Hug the 32px (size="sm") avatar + cell padding — a tight fixed column,
286
287
  // not a wide empty one. width === minWidth === maxWidth pins it to size so
287
288
  // the pinned group can't stretch it (pinned columns never flex).
@@ -813,7 +814,7 @@ function Ze(e, i = {}) {
813
814
  // Header + action group left-aligned (justify-start), consistent with every
814
815
  // other column — no right-aligned header (the actions still sit at the
815
816
  // pinned inline-end edge, the group just starts at the cell's leading edge).
816
- cellClass: "ds:justify-start",
817
+ cellClass: "ds:justify-start ag-cell-graphic",
817
818
  cellRenderer: be,
818
819
  cellRendererParams: {
819
820
  actions: f,
@@ -1105,4 +1106,4 @@ export {
1105
1106
  q as g,
1106
1107
  tt as u
1107
1108
  };
1108
- //# sourceMappingURL=patient-table-6XnaWimB.js.map
1109
+ //# sourceMappingURL=patient-table-S77TBCEB.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.9.2",
3
+ "packageVersion": "1.9.3",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1,6 +1,6 @@
1
1
  import { A as r, D as l, E as t, T as s, a as d, b as n, c as o, d as i, e as R, f as C, g as T, i as F, h as g } from "../../_chunks/actions-cell-renderer-B2pw6iH8.js";
2
2
  import { B as b, C as u, E as x, a as c, R as p, T as E, b as m, r as f, u as h } from "../../_chunks/editable-currency-cell-renderer-DYdzKpjL.js";
3
- import { C as A, D as w, a as y, b as I, I as L, L as N, N as P, c as W, S as B, d as U, e as _, T as k, f as v, g as O, U as X } from "../../_chunks/link-cell-renderer-BqO66pIA.js";
3
+ import { C as A, D as w, a as y, b as I, I as L, L as N, N as P, c as W, S as B, d as U, e as _, T as k, f as v, g as O, U as X } from "../../_chunks/link-cell-renderer-x8kS41M7.js";
4
4
  export {
5
5
  r as ActionsCellRenderer,
6
6
  b as BalanceCellRenderer,
@@ -1,4 +1,4 @@
1
- import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-6XnaWimB.js";
1
+ import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-S77TBCEB.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
package/dist/index.js CHANGED
@@ -77,7 +77,7 @@ import { C as Kr } from "./_chunks/contact-card-0hnFJwrz.js";
77
77
  import { C as Xr } from "./_chunks/counter-dRlTNC_y.js";
78
78
  import { A as zr, D as jr, E as Qr, T as Jr, a as Zr, b as $r, c as ao, d as eo, e as so, f as ro, g as oo, i as to, h as no } from "./_chunks/actions-cell-renderer-B2pw6iH8.js";
79
79
  import { B as po, C as mo, E as lo, a as Ao, R as co, T as fo, b as go, r as So, u as Co } from "./_chunks/editable-currency-cell-renderer-DYdzKpjL.js";
80
- import { C as xo, D as uo, a as Po, b as Io, I as Eo, L as Ro, N as bo, c as _o, S as No, d as Do, e as ho, T as Oo, f as Fo, g as Lo, U as Mo } from "./_chunks/link-cell-renderer-BqO66pIA.js";
80
+ import { C as xo, D as uo, a as Po, b as Io, I as Eo, L as Ro, N as bo, c as _o, S as No, d as Do, e as ho, T as Oo, f as Fo, g as Lo, U as Mo } from "./_chunks/link-cell-renderer-x8kS41M7.js";
81
81
  import { D as ko, d as Bo, a as Go, b as Ho } from "./_chunks/data-table-tabs-C1kRUzat.js";
82
82
  import { C as wo, c as Uo } from "./_chunks/clinical-note-card-BBgFd2nB.js";
83
83
  import { D as Wo } from "./_chunks/description-list-CjJqR8WK.js";
@@ -193,7 +193,7 @@ import { P as WA, p as KA } from "./_chunks/patient-details-xrqe13az.js";
193
193
  import { P as XA, p as qA } from "./_chunks/patient-search-D5ufYoRc.js";
194
194
  import { P as jA, p as QA } from "./_chunks/patient-summary-card-CBfuDvJ5.js";
195
195
  import { A as ZA, a as $A } from "./_chunks/anamnesis-summary-card-DGVKBQoq.js";
196
- import { B as ec, C as sc, N as rc, P as oc, a as tc, b as nc, g as ic, u as pc } from "./_chunks/patient-table-6XnaWimB.js";
196
+ import { B as ec, C as sc, N as rc, P as oc, a as tc, b as nc, g as ic, u as pc } from "./_chunks/patient-table-S77TBCEB.js";
197
197
  import { B as lc, M as dc, P as Ac, a as cc, b as fc, c as gc, d as Sc, S as Cc, e as Tc, f as xc, g as uc, h as Pc, p as Ic, i as Ec, j as Rc, k as bc, s as _c, t as Nc, l as Dc } from "./_chunks/periodontal-chart-BatZEFar.js";
198
198
  import { P as Oc, a as Fc, p as Lc } from "./_chunks/periodontal-chart-card-BBpY_rBc.js";
199
199
  import { D as yc, P as kc, a as Bc, b as Gc, c as Hc, S as vc, e as wc, i as Uc, p as Vc } from "./_chunks/periodontal-diagnosis-HrFsVi-C.js";
package/dist/tokens.css CHANGED
@@ -1351,7 +1351,7 @@ button.ag-side-button-button:focus{box-shadow:none}
1351
1351
  .ag-theme-alfadocs .ag-paging-page-size select,.ag-theme-alfadocs .ag-paging-page-size .ag-picker-field-wrapper{min-block-size:0;block-size:calc(var(--min-target-size) - var(--spacing-md));padding-inline:var(--spacing-sm);border:var(--border-width-sm) solid var(--border);border-radius:var(--radius-sm);background:var(--background);color:var(--foreground);font:inherit}
1352
1352
  .ag-theme-alfadocs .ag-paging-panel{border:0;border-block-start:var(--border-width-sm) solid color-mix(in srgb,var(--border) 50%,transparent);padding-block:var(--spacing-sm);padding-inline:var(--spacing-md)}
1353
1353
  .ag-theme-alfadocs .ag-cell{display:flex;align-items:center;line-height:var(--line-height-base, 1.5);font-feature-settings:"tnum";letter-spacing:0}
1354
- .ag-theme-alfadocs .ag-cell:has([data-component=avatar]),.ag-theme-alfadocs .ag-cell:has([data-component=icon-button-group]){padding-inline:var(--spacing-sm)}
1354
+ .ag-theme-alfadocs .ag-cell.ag-cell-graphic,.ag-theme-alfadocs .ag-cell:has([data-component=avatar]),.ag-theme-alfadocs .ag-cell:has([data-component=icon-button-group]){padding-inline:var(--spacing-sm)}
1355
1355
  .ag-theme-alfadocs .ag-cell.ag-row-group{align-items:flex-start}
1356
1356
  .ag-theme-alfadocs .ag-right-aligned-cell{justify-content:flex-end}
1357
1357
  .ag-theme-alfadocs .ag-cell-wrapper.ag-row-group .ag-group-value{align-self:stretch;display:flex;align-items:center}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",