@alfadocs/ui-kit 1.2.0 → 1.3.0

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 (62) hide show
  1. package/dist/_chunks/{actions-cell-renderer-ClGCSQnA.js → actions-cell-renderer-Ceah0ywE.js} +2 -2
  2. package/dist/_chunks/anamnesis-i18n-DGRdwc0i.js +8720 -0
  3. package/dist/_chunks/arrow-up-BYvcvTkB.js +26 -0
  4. package/dist/_chunks/{editable-currency-cell-renderer-Dus_sBvX.js → editable-currency-cell-renderer-Uhzkd0ZP.js} +68 -88
  5. package/dist/_chunks/{exceljs.min-DUJ-5CGx.js → exceljs.min-D2MHbJsF.js} +10 -9
  6. package/dist/_chunks/{face-scheme-Cou2efl7.js → face-scheme-C00IvkUA.js} +237 -243
  7. package/dist/_chunks/{file-manager-CNSLiuLo.js → file-manager-lNjcSXoD.js} +174 -186
  8. package/dist/_chunks/minus-BQDHq1c1.js +12 -0
  9. package/dist/_chunks/notebook-pen-CO7HoM-W.js +25 -0
  10. package/dist/_chunks/{notes-panel-CCz0J140.js → notes-panel-DPsgB4Mv.js} +73 -92
  11. package/dist/_chunks/{patient-table-DXk0wW8Q.js → patient-table-C7QHFC63.js} +2 -2
  12. package/dist/_chunks/share-2-B49jcW2I.js +18 -0
  13. package/dist/_chunks/{sparkline-DJtZBe7O.js → sparkline-BTY4B5tv.js} +153 -145
  14. package/dist/agent-catalog.json +1 -1
  15. package/dist/components/data-table/index.js +2 -2
  16. package/dist/components/face-scheme/index.js +1 -1
  17. package/dist/components/file-manager/index.js +1 -1
  18. package/dist/components/index.d.ts +1 -0
  19. package/dist/components/notes-panel/index.d.ts +1 -1
  20. package/dist/components/notes-panel/index.js +1 -1
  21. package/dist/components/patient-table/index.js +1 -1
  22. package/dist/components/sparkline/index.js +1 -1
  23. package/dist/components/sparkline/sparkline.d.ts +5 -4
  24. package/dist/index.js +132 -109
  25. package/dist/patterns/_shared/target-tile.d.ts +31 -0
  26. package/dist/patterns/anamnesis/anamnesis-catalogue.d.ts +23 -0
  27. package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts +82 -0
  28. package/dist/patterns/anamnesis/anamnesis-compile-blocks.d.ts +46 -0
  29. package/dist/patterns/anamnesis/anamnesis-compile.d.ts +48 -0
  30. package/dist/patterns/anamnesis/anamnesis-config-editor.d.ts +26 -0
  31. package/dist/patterns/anamnesis/anamnesis-config.d.ts +62 -0
  32. package/dist/patterns/anamnesis/anamnesis-derive.d.ts +194 -0
  33. package/dist/patterns/anamnesis/anamnesis-digest.d.ts +84 -0
  34. package/dist/patterns/anamnesis/anamnesis-disclosure.d.ts +19 -0
  35. package/dist/patterns/anamnesis/anamnesis-event-bar.d.ts +12 -0
  36. package/dist/patterns/anamnesis/anamnesis-events.d.ts +60 -0
  37. package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts +48 -0
  38. package/dist/patterns/anamnesis/anamnesis-evolution.d.ts +37 -0
  39. package/dist/patterns/anamnesis/anamnesis-export-download.d.ts +10 -0
  40. package/dist/patterns/anamnesis/anamnesis-export-menu.d.ts +23 -0
  41. package/dist/patterns/anamnesis/anamnesis-export-pdf.d.ts +36 -0
  42. package/dist/patterns/anamnesis/anamnesis-export.d.ts +143 -0
  43. package/dist/patterns/anamnesis/anamnesis-field.d.ts +14 -0
  44. package/dist/patterns/anamnesis/anamnesis-format.d.ts +67 -0
  45. package/dist/patterns/anamnesis/anamnesis-i18n.d.ts +6 -0
  46. package/dist/patterns/anamnesis/anamnesis-indicators.d.ts +53 -0
  47. package/dist/patterns/anamnesis/anamnesis-intake.d.ts +16 -0
  48. package/dist/patterns/anamnesis/anamnesis-matrix.d.ts +91 -0
  49. package/dist/patterns/anamnesis/anamnesis-notes.d.ts +19 -0
  50. package/dist/patterns/anamnesis/anamnesis-readonly.d.ts +17 -0
  51. package/dist/patterns/anamnesis/anamnesis-summary.d.ts +35 -0
  52. package/dist/patterns/anamnesis/anamnesis-target-editor.d.ts +18 -0
  53. package/dist/patterns/anamnesis/anamnesis-target-strip.d.ts +14 -0
  54. package/dist/patterns/anamnesis/anamnesis-targets.d.ts +58 -0
  55. package/dist/patterns/anamnesis/anamnesis-types.d.ts +336 -0
  56. package/dist/patterns/anamnesis/anamnesis-visit-note.d.ts +35 -0
  57. package/dist/patterns/anamnesis/anamnesis-window.d.ts +37 -0
  58. package/dist/patterns/anamnesis/anamnesis.d.ts +48 -0
  59. package/dist/patterns/anamnesis/index.d.ts +8 -0
  60. package/dist/patterns/anamnesis/index.js +26 -0
  61. package/dist/tokens.css +1 -1
  62. package/package.json +5 -1
@@ -1,25 +1,25 @@
1
- import { jsx as d, jsxs as D } from "react/jsx-runtime";
2
- import { forwardRef as oe, useId as de, useMemo as A, useRef as S, useState as Z, useEffect as P, useImperativeHandle as ce } from "react";
1
+ import { jsx as c, jsxs as D } from "react/jsx-runtime";
2
+ import { forwardRef as le, useId as ue, useMemo as A, useRef as P, useState as F, useEffect as U, useImperativeHandle as pe } from "react";
3
3
  import { c as E } from "./index-D2ZczOXr.js";
4
- import { useTranslation as le } from "react-i18next";
5
- import ue from "react-apexcharts";
6
- import U from "apexcharts";
7
- import { g as J, u as pe } from "./apexcharts-theme-B_AxGC_h.js";
8
- import { m as me } from "./annotation-marker-CsUJGZjQ.js";
9
- import { u as he } from "./registry-DvAUVLHh.js";
10
- function fe(n) {
4
+ import { useTranslation as me } from "react-i18next";
5
+ import he from "react-apexcharts";
6
+ import V from "apexcharts";
7
+ import { g as J, u as fe } from "./apexcharts-theme-B_AxGC_h.js";
8
+ import { m as ge } from "./annotation-marker-CsUJGZjQ.js";
9
+ import { u as ve } from "./registry-DvAUVLHh.js";
10
+ function ye(n) {
11
11
  if (n.length < 2)
12
12
  return { slope: 0, direction: "steady" };
13
- const r = n.length, c = (r - 1) / 2, s = n.reduce((a, i) => a + i, 0) / r;
14
- let o = 0, h = 0;
13
+ const r = n.length, h = (r - 1) / 2, l = n.reduce((a, i) => a + i, 0) / r;
14
+ let s = 0, u = 0;
15
15
  for (let a = 0; a < r; a++) {
16
- const i = a - c;
17
- o += i * (n[a] - s), h += i * i;
16
+ const i = a - h;
17
+ s += i * (n[a] - l), u += i * i;
18
18
  }
19
- const p = h === 0 ? 0 : o / h, y = 0.01 * (Math.max(...n) - Math.min(...n) || 1), m = Math.abs(p) < y ? "steady" : p > 0 ? "increasing" : "decreasing";
20
- return { slope: p, direction: m };
19
+ const m = u === 0 ? 0 : s / u, k = 0.01 * (Math.max(...n) - Math.min(...n) || 1), f = Math.abs(m) < k ? "steady" : m > 0 ? "increasing" : "decreasing";
20
+ return { slope: m, direction: f };
21
21
  }
22
- const ge = {
22
+ const be = {
23
23
  id: "sparkline",
24
24
  capabilities: [],
25
25
  state: {},
@@ -118,85 +118,88 @@ const ge = {
118
118
  }
119
119
  },
120
120
  defaultVariants: { tone: "neutral" }
121
- }), ve = E(
121
+ }), we = E(
122
122
  "ds:pointer-events-none ds:absolute ds:inset-x-[2px]",
123
123
  {
124
124
  variants: {
125
+ // Bleed to the target-size token, not a literal: (token − drawn)/−2 per
126
+ // size, so `.theme-accessible` (48px) widens the band automatically —
127
+ // the same calc idiom IconButton uses for its hit-area expansion.
125
128
  size: {
126
- xs: "ds:inset-y-[-10px]",
127
- sm: "ds:inset-y-[-6px]",
128
- md: "ds:inset-y-[-2px]",
129
+ xs: "ds:inset-y-[calc((var(--min-target-size)-24px)/-2)]",
130
+ sm: "ds:inset-y-[calc((var(--min-target-size)-32px)/-2)]",
131
+ md: "ds:inset-y-[calc((var(--min-target-size)-40px)/-2)]",
129
132
  auto: "ds:inset-y-0"
130
133
  }
131
134
  },
132
135
  defaultVariants: { size: "md" }
133
136
  }
134
- ), ye = {
137
+ ), ke = {
135
138
  increasing: "↑",
136
139
  decreasing: "↓",
137
140
  steady: "→"
138
- }, be = {
141
+ }, xe = {
139
142
  xs: 24,
140
143
  sm: 32,
141
144
  md: 40
142
- }, k = 2, Y = 2.5, ke = 44;
143
- function we(n, r) {
144
- const c = n.map((s) => ({
145
+ }, I = 2, Y = 2.5, ee = 44;
146
+ function Ie(n, r, h = ee) {
147
+ const l = n.map((s) => ({
145
148
  annotation: s,
146
- centre: ee(s.position) * r
147
- })).sort((s, o) => s.centre - o.centre);
148
- return c.map((s, o) => {
149
- const h = c[o - 1], p = c[o + 1], w = h ? (h.centre + s.centre) / 2 : 0, y = p ? (s.centre + p.centre) / 2 : r, m = Math.max(0, w), a = Math.min(r, y), i = Math.min(ke, Math.max(0, a - m)), x = Math.min(
150
- Math.max(s.centre - i / 2, m),
151
- a - i
149
+ centre: te(s.position) * r
150
+ })).sort((s, u) => s.centre - u.centre);
151
+ return l.map((s, u) => {
152
+ const m = l[u - 1], w = l[u + 1], k = m ? (m.centre + s.centre) / 2 : 0, f = w ? (s.centre + w.centre) / 2 : r, a = Math.max(0, k), i = Math.min(r, f), y = Math.min(h, Math.max(0, i - a)), N = Math.min(
153
+ Math.max(s.centre - y / 2, a),
154
+ i - y
152
155
  );
153
- return { annotation: s.annotation, x, width: i };
156
+ return { annotation: s.annotation, x: N, width: y };
154
157
  });
155
158
  }
156
- function ee(n) {
159
+ function te(n) {
157
160
  return Number.isFinite(n) ? Math.min(1, Math.max(0, n)) : 0;
158
161
  }
159
- function xe(n) {
162
+ function Ne(n) {
160
163
  return n.filter((r) => r != null);
161
164
  }
162
- function Ie() {
165
+ function Me() {
163
166
  return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
164
167
  }
165
- const Ne = oe(
168
+ const Te = le(
166
169
  ({
167
170
  id: n,
168
171
  data: r,
169
- variant: c = "line",
170
- size: s = "md",
171
- label: o,
172
- color: h,
173
- showEndpoint: p = !1,
172
+ variant: h = "line",
173
+ size: l = "md",
174
+ label: s,
175
+ color: u,
176
+ showEndpoint: m = !1,
174
177
  showTooltip: w = !1,
175
- width: y,
176
- height: m,
178
+ width: k,
179
+ height: f,
177
180
  annotations: a,
178
181
  onAnnotationSelect: i,
179
- className: x,
180
- ...V
181
- }, te) => {
182
- var q;
183
- const { t: f, i18n: $ } = le(), j = de(), b = A(
184
- () => `sparkline-${j.replace(/[^a-zA-Z0-9-_]/g, "")}`,
185
- [j]
186
- ), I = S(null), [O, ne] = Z(0), l = A(() => xe(r), [r]), { direction: C } = fe(l), B = A(() => {
187
- const e = a && a.length > 0 ? f("sparkline.annotations", {
188
- list: a.map((v) => v.label).join(", ")
189
- }) : "", t = (v) => e ? `${v}. ${e}` : v;
190
- if (l.length === 0)
191
- return t(f("sparkline.noData", "No data"));
192
- const u = (v) => new Intl.NumberFormat($.language).format(v), g = f(`sparkline.direction.${C}`), R = {
193
- min: u(Math.min(...l)),
194
- max: u(Math.max(...l)),
195
- current: u(l[l.length - 1]),
182
+ className: y,
183
+ ...N
184
+ }, ne) => {
185
+ var Z;
186
+ const { t: v, i18n: W } = me(), $ = ue(), x = A(
187
+ () => `sparkline-${$.replace(/[^a-zA-Z0-9-_]/g, "")}`,
188
+ [$]
189
+ ), M = P(null), [C, ae] = F(0), [re, se] = F(ee), p = A(() => Ne(r), [r]), { direction: O } = ye(p), j = A(() => {
190
+ const e = a && a.length > 0 ? v("sparkline.annotations", {
191
+ list: a.map((b) => b.label).join(", ")
192
+ }) : "", t = (b) => e ? `${b}. ${e}` : b;
193
+ if (p.length === 0)
194
+ return t(v("sparkline.noData", "No data"));
195
+ const o = (b) => new Intl.NumberFormat(W.language).format(b), g = v(`sparkline.direction.${O}`), d = {
196
+ min: o(Math.min(...p)),
197
+ max: o(Math.max(...p)),
198
+ current: o(p[p.length - 1]),
196
199
  direction: g
197
200
  };
198
- return t(o ? f("sparkline.summary", { label: o, ...R }) : f("sparkline.summaryNoLabel", R));
199
- }, [l, a, o, C, $.language, f]), [N, ae] = Z(
201
+ return t(s ? v("sparkline.summary", { label: s, ...d }) : v("sparkline.summaryNoLabel", d));
202
+ }, [p, a, s, O, W.language, v]), [T, ie] = F(
200
203
  () => {
201
204
  try {
202
205
  return J();
@@ -205,12 +208,12 @@ const Ne = oe(
205
208
  }
206
209
  }
207
210
  );
208
- P(() => {
211
+ U(() => {
209
212
  let e;
210
213
  const t = new MutationObserver(() => {
211
214
  clearTimeout(e), e = setTimeout(() => {
212
215
  try {
213
- ae(J());
216
+ ie(J());
214
217
  } catch {
215
218
  }
216
219
  }, 50);
@@ -221,67 +224,72 @@ const Ne = oe(
221
224
  }), () => {
222
225
  clearTimeout(e), t.disconnect();
223
226
  };
224
- }, []), P(() => {
225
- const e = I.current;
227
+ }, []), U(() => {
228
+ const e = M.current;
226
229
  if (!e) return;
227
- const t = new ResizeObserver((u) => {
228
- const g = u[0];
229
- g && ne(Math.floor(g.contentRect.width));
230
+ const t = () => {
231
+ const g = getComputedStyle(e).getPropertyValue("--min-target-size"), d = Number.parseFloat(g);
232
+ Number.isFinite(d) && d > 0 && se(d);
233
+ };
234
+ t();
235
+ const o = new ResizeObserver((g) => {
236
+ const d = g[0];
237
+ d && ae(Math.floor(d.contentRect.width)), t();
230
238
  });
231
- return t.observe(e), () => t.disconnect();
232
- }, []), pe(I);
233
- const M = S(i);
234
- P(() => {
235
- M.current = i;
239
+ return o.observe(e), () => o.disconnect();
240
+ }, []), fe(M);
241
+ const R = P(i);
242
+ U(() => {
243
+ R.current = i;
236
244
  }, [i]);
237
- const F = S(a);
238
- F.current = a;
239
- const z = A(
245
+ const B = P(a);
246
+ B.current = a;
247
+ const H = A(
240
248
  () => ({
241
249
  updateSeries(e) {
242
250
  var t;
243
- (t = U.getChartByID(b)) == null || t.updateSeries([{ data: e }]);
251
+ (t = V.getChartByID(x)) == null || t.updateSeries([{ data: e }]);
244
252
  },
245
253
  updateOptions(e) {
246
254
  var t;
247
- (t = U.getChartByID(b)) == null || t.updateOptions(e);
255
+ (t = V.getChartByID(x)) == null || t.updateOptions(e);
248
256
  },
249
257
  async dataURI() {
250
- const e = U.getChartByID(b);
258
+ const e = V.getChartByID(x);
251
259
  return e ? (await e.dataURI()).imgURI : "";
252
260
  },
253
261
  selectAnnotation(e) {
254
- var u, g;
255
- (u = F.current) != null && u.some((R) => R.id === e) && ((g = M.current) == null || g.call(M, e));
262
+ var o, g;
263
+ (o = B.current) != null && o.some((d) => d.id === e) && ((g = R.current) == null || g.call(R, e));
256
264
  }
257
265
  }),
258
- [b]
266
+ [x]
259
267
  );
260
- ce(te, () => z, [z]), he(ge, z, n);
261
- const _ = h ?? ((q = N.colors) == null ? void 0 : q[0]) ?? "currentColor";
262
- if (l.length === 0)
263
- return /* @__PURE__ */ d(
268
+ pe(ne, () => H, [H]), ve(be, H, n);
269
+ const _ = u ?? ((Z = T.colors) == null ? void 0 : Z[0]) ?? "currentColor";
270
+ if (p.length === 0)
271
+ return /* @__PURE__ */ c(
264
272
  "div",
265
273
  {
266
- ref: I,
274
+ ref: M,
267
275
  role: "img",
268
- "aria-label": B,
276
+ "aria-label": j,
269
277
  dir: "ltr",
270
278
  className: Q({
271
- size: m !== void 0 ? "auto" : s,
272
- className: x
279
+ size: f !== void 0 ? "auto" : l,
280
+ className: y
273
281
  }),
274
282
  "data-component": "sparkline",
275
283
  "data-component-id": n,
276
- ...V
284
+ ...N
277
285
  }
278
286
  );
279
- const G = Ie(), H = r.length > l.length, L = H ? r.flatMap((e, t) => e == null ? [] : [{ x: t, y: e }]) : l, re = {
280
- ...N,
287
+ const G = Me(), S = r.length > p.length, L = S ? r.flatMap((e, t) => e == null ? [] : [{ x: t, y: e }]) : p, oe = {
288
+ ...T,
281
289
  chart: {
282
- ...N.chart,
283
- id: b,
284
- type: c,
290
+ ...T.chart,
291
+ id: x,
292
+ type: h,
285
293
  sparkline: { enabled: !0 },
286
294
  toolbar: { show: !1 },
287
295
  animations: {
@@ -292,7 +300,7 @@ const Ne = oe(
292
300
  // the tween emits `d="… NaN …"` for a few frames. The finished
293
301
  // render is correct either way; switching the tween off keeps the
294
302
  // console clean.
295
- dynamicAnimation: { enabled: !G && !H }
303
+ dynamicAnimation: { enabled: !G && !S }
296
304
  },
297
305
  zoom: { enabled: !1 },
298
306
  parentHeightOffset: 0
@@ -300,20 +308,20 @@ const Ne = oe(
300
308
  colors: [_],
301
309
  stroke: {
302
310
  curve: "smooth",
303
- width: c === "bar" ? 0 : 2
311
+ width: h === "bar" ? 0 : 2
304
312
  },
305
313
  fill: {
306
- opacity: c === "area" ? 0.15 : 1
314
+ opacity: h === "area" ? 0.15 : 1
307
315
  },
308
316
  xaxis: {
309
317
  crosshairs: { show: !1 },
310
318
  // Pin the extent to the slot count so a gap at either end still holds
311
319
  // its place — otherwise the plot would rescale to the measurements
312
320
  // and the annotation fractions would no longer mean the same thing.
313
- ...H ? { type: "numeric", min: 0, max: r.length - 1 } : {}
321
+ ...S ? { type: "numeric", min: 0, max: r.length - 1 } : {}
314
322
  },
315
323
  tooltip: { enabled: w },
316
- markers: p ? {
324
+ markers: m ? {
317
325
  size: [0],
318
326
  discrete: [
319
327
  {
@@ -329,45 +337,45 @@ const Ne = oe(
329
337
  ]
330
338
  } : { size: 0 },
331
339
  grid: {
332
- ...N.grid,
340
+ ...T.grid,
333
341
  show: !1,
334
342
  // ApexCharts grid.padding uses physical keys (not CSS logical properties).
335
343
  // The chart wrapper enforces dir="ltr" so these always resolve correctly.
336
344
  padding: {
337
- top: k,
338
- right: k,
339
- bottom: k,
340
- left: k
345
+ top: I,
346
+ right: I,
347
+ bottom: I,
348
+ left: I
341
349
  }
342
350
  }
343
- }, se = y ?? (O > 0 ? O : "100%"), ie = m ?? be[s ?? "md"], T = a != null && a.length ? a : void 0, W = O - k * 2, K = i && T && W > 0 ? we(T, W) : void 0;
351
+ }, de = k ?? (C > 0 ? C : "100%"), ce = f ?? xe[l ?? "md"], z = a != null && a.length ? a : void 0, K = C - I * 2, q = i && z && K > 0 ? Ie(z, K, re) : void 0;
344
352
  return /* @__PURE__ */ D(
345
353
  "div",
346
354
  {
347
- ref: I,
355
+ ref: M,
348
356
  role: "img",
349
- "aria-label": B,
357
+ "aria-label": j,
350
358
  dir: "ltr",
351
359
  className: Q({
352
- size: m !== void 0 ? "auto" : s,
353
- className: x
360
+ size: f !== void 0 ? "auto" : l,
361
+ className: y
354
362
  }),
355
363
  "data-component": "sparkline",
356
364
  "data-component-id": n,
357
- ...V,
365
+ ...N,
358
366
  children: [
359
- /* @__PURE__ */ d(
360
- ue,
367
+ /* @__PURE__ */ c(
368
+ he,
361
369
  {
362
- type: c,
370
+ type: h,
363
371
  series: [{ data: L }],
364
- options: re,
365
- width: se,
366
- height: ie,
372
+ options: oe,
373
+ width: de,
374
+ height: ce,
367
375
  "aria-hidden": "true"
368
376
  }
369
377
  ),
370
- T && /* Drawn over the plot rather than through ApexCharts' own xaxis
378
+ z && /* Drawn over the plot rather than through ApexCharts' own xaxis
371
379
  annotations: a fraction of the measured extent is the one
372
380
  positioning rule that survives series of different lengths, which
373
381
  is what makes a column of sparklines share an x. */
@@ -377,15 +385,15 @@ const Ne = oe(
377
385
  equal PLOT_EDGE_PADDING — Tailwind needs a static literal, so the
378
386
  two cannot share one source; change them together or the first and
379
387
  last annotation drift off the first and last data point. */
380
- /* @__PURE__ */ d("div", { className: "ds:pointer-events-none ds:absolute ds:inset-y-0 ds:inset-x-[2px]", children: /* @__PURE__ */ d(
388
+ /* @__PURE__ */ c("div", { className: "ds:pointer-events-none ds:absolute ds:inset-y-0 ds:inset-x-[2px]", children: /* @__PURE__ */ c(
381
389
  "svg",
382
390
  {
383
391
  "aria-hidden": "true",
384
392
  focusable: "false",
385
393
  "data-testid": "sparkline-annotations",
386
394
  className: "ds:size-full",
387
- children: T.map((e) => {
388
- const t = ee(e.position);
395
+ children: z.map((e) => {
396
+ const t = te(e.position);
389
397
  return (
390
398
  /* A nested viewport placed at a percentage of the plot: the
391
399
  one positioning rule that needs no measurement, so a column
@@ -402,7 +410,7 @@ const Ne = oe(
402
410
  "data-annotation-position": t,
403
411
  className: X({ tone: e.tone }),
404
412
  children: [
405
- /* @__PURE__ */ d(
413
+ /* @__PURE__ */ c(
406
414
  "line",
407
415
  {
408
416
  x1: 0,
@@ -412,10 +420,10 @@ const Ne = oe(
412
420
  className: "ds:[stroke:var(--annotation-color)] ds:[stroke-dasharray:2_3] ds:[stroke-width:1]"
413
421
  }
414
422
  ),
415
- /* @__PURE__ */ d(
423
+ /* @__PURE__ */ c(
416
424
  "path",
417
425
  {
418
- d: me(
426
+ d: ge(
419
427
  e.shape ?? "diamond",
420
428
  0,
421
429
  Y,
@@ -432,24 +440,24 @@ const Ne = oe(
432
440
  })
433
441
  }
434
442
  ) }),
435
- K && i && /* Sized in px, not percentages: 44px is a measurement, not a
436
- fraction of a box the reader can resize. `pointer-events-none`
437
- holds all the way down to the bands, so the only live pixels are
438
- the 44px each annotation owns. */
439
- /* @__PURE__ */ d(
443
+ q && i && /* Sized in px, not percentages: the target size is a measurement,
444
+ not a fraction of a box the reader can resize.
445
+ `pointer-events-none` holds all the way down to the bands, so the
446
+ only live pixels are the token-width each annotation owns. */
447
+ /* @__PURE__ */ c(
440
448
  "div",
441
449
  {
442
- className: ve({
443
- size: m !== void 0 ? "auto" : s
450
+ className: we({
451
+ size: f !== void 0 ? "auto" : l
444
452
  }),
445
- children: /* @__PURE__ */ d(
453
+ children: /* @__PURE__ */ c(
446
454
  "svg",
447
455
  {
448
456
  "aria-hidden": "true",
449
457
  focusable: "false",
450
458
  "data-testid": "sparkline-annotation-hits",
451
459
  className: "ds:size-full",
452
- children: K.map(({ annotation: e, x: t, width: u }) => /* @__PURE__ */ D(
460
+ children: q.map(({ annotation: e, x: t, width: o }) => /* @__PURE__ */ D(
453
461
  "g",
454
462
  {
455
463
  "data-annotation-hit-id": e.id,
@@ -458,15 +466,15 @@ const Ne = oe(
458
466
  { tone: e.tone }
459
467
  )}`,
460
468
  children: [
461
- /* @__PURE__ */ d("title", { children: f("sparkline.annotationAction", {
469
+ /* @__PURE__ */ c("title", { children: v("sparkline.annotationAction", {
462
470
  label: e.label
463
471
  }) }),
464
- /* @__PURE__ */ d(
472
+ /* @__PURE__ */ c(
465
473
  "rect",
466
474
  {
467
475
  x: t,
468
476
  y: 0,
469
- width: u,
477
+ width: o,
470
478
  height: "100%",
471
479
  className: "ds:[fill:var(--annotation-color)] ds:opacity-0 ds:transition-opacity ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:group-hover:opacity-20"
472
480
  }
@@ -479,12 +487,12 @@ const Ne = oe(
479
487
  )
480
488
  }
481
489
  ),
482
- p && /* @__PURE__ */ d(
490
+ m && /* @__PURE__ */ c(
483
491
  "span",
484
492
  {
485
493
  "aria-hidden": "true",
486
494
  className: "ds:pointer-events-none ds:absolute ds:end-0 ds:top-0 ds:text-[length:var(--font-size-xs)] ds:leading-none",
487
- children: ye[C]
495
+ children: ke[O]
488
496
  }
489
497
  )
490
498
  ]
@@ -492,10 +500,10 @@ const Ne = oe(
492
500
  );
493
501
  }
494
502
  );
495
- Ne.displayName = "Sparkline";
503
+ Te.displayName = "Sparkline";
496
504
  export {
497
- Ne as S,
498
- ge as s,
499
- fe as u
505
+ Te as S,
506
+ be as s,
507
+ ye as u
500
508
  };
501
- //# sourceMappingURL=sparkline-DJtZBe7O.js.map
509
+ //# sourceMappingURL=sparkline-BTY4B5tv.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.2.0",
3
+ "packageVersion": "1.3.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1,5 +1,5 @@
1
- import { A as r, D as l, T as t, a as s, b as n, c as o, d, e as i, f as C } from "../../_chunks/actions-cell-renderer-ClGCSQnA.js";
2
- import { B as T, C as F, E as g, a as b, R as u, T as c, b as m, r as f, u as x } from "../../_chunks/editable-currency-cell-renderer-Dus_sBvX.js";
1
+ import { A as r, D as l, T as t, a as s, b as n, c as o, d, e as i, f as C } from "../../_chunks/actions-cell-renderer-Ceah0ywE.js";
2
+ import { B as T, C as F, E as g, a as b, R as u, T as c, b as m, r as f, u as x } from "../../_chunks/editable-currency-cell-renderer-Uhzkd0ZP.js";
3
3
  import { C as p, D as h, a as y, b as E, I as S, L as A, N as L, c as N, S as B, d as I, e as P, T as U, f as W, g as k, U as v } from "../../_chunks/link-cell-renderer-_DlEZHLI.js";
4
4
  export {
5
5
  r as ActionsCellRenderer,
@@ -1,4 +1,4 @@
1
- import { A as e, F as o, a as n, b as A, c as i, d as f, e as t, I, f as N, g as T, h as F, i as _, j as E, k as c, l as h, m as r, n as p, o as O, p as S, q as m, r as l, s as d, t as C, u as D } from "../../_chunks/face-scheme-Cou2efl7.js";
1
+ import { A as e, F as o, a as n, b as A, c as i, d as f, e as t, I, f as N, g as T, h as F, i as _, j as E, k as c, l as h, m as r, n as p, o as O, p as S, q as m, r as l, s as d, t as C, u as D } from "../../_chunks/face-scheme-C00IvkUA.js";
2
2
  export {
3
3
  e as ANNOTATION_TOOL_KIND,
4
4
  o as FACE_ANNOTATION_TOOLS,
@@ -1,4 +1,4 @@
1
- import { F as r, f } from "../../_chunks/file-manager-CNSLiuLo.js";
1
+ import { F as r, f } from "../../_chunks/file-manager-lNjcSXoD.js";
2
2
  export {
3
3
  r as FileManager,
4
4
  f as fileManagerAgent
@@ -198,6 +198,7 @@ export * from './transaction-chip';
198
198
  export * from './whatsapp-button';
199
199
  export * from './workflow';
200
200
  export * from '../patterns/alia-assistant';
201
+ export * from '../patterns/anamnesis';
201
202
  export * from '../patterns/marketplace-app-shell';
202
203
  export * from '../patterns/payment-automation-upsell';
203
204
  export * from '../patterns/signature-request';
@@ -1,3 +1,3 @@
1
1
  export { NotesPanel } from './notes-panel';
2
- export type { NotesPanelProps, NotesPanelNote } from './notes-panel';
2
+ export type { NotesPanelProps, NotesPanelNote, NotesPanelSubmission, } from './notes-panel';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { N as a } from "../../_chunks/notes-panel-CCz0J140.js";
1
+ import { N as a } from "../../_chunks/notes-panel-DPsgB4Mv.js";
2
2
  export {
3
3
  a as NotesPanel
4
4
  };
@@ -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-DXk0wW8Q.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-C7QHFC63.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
@@ -1,4 +1,4 @@
1
- import { S as r, s, u as n } from "../../_chunks/sparkline-DJtZBe7O.js";
1
+ import { S as r, s, u as n } from "../../_chunks/sparkline-BTY4B5tv.js";
2
2
  export {
3
3
  r as Sparkline,
4
4
  s as sparklineAgent,
@@ -84,10 +84,11 @@ export interface SparklineProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ro
84
84
  * the same thing for the same annotation (WCAG 2.1.1) — this is a pointer
85
85
  * shortcut to that control, never the only way in.
86
86
  *
87
- * The 44px band is delivered by the `size` variants only. Pass an explicit
88
- * `height` and the pointer layer falls back to the drawn height, so
89
- * `height={20}` yields a 20px-tall target below even WCAG 2.5.8. Under
90
- * `.theme-accessible`, where `--min-target-size` is 48px, the band stays 44.
87
+ * The band is delivered by the `size` variants only, and follows
88
+ * `--min-target-size` on both axes (48px under `.theme-accessible`). Pass
89
+ * an explicit `height` and the pointer layer falls back to the drawn
90
+ * height, so `height={20}` yields a 20px-tall target below even WCAG
91
+ * 2.5.8.
91
92
  */
92
93
  onAnnotationSelect?: (annotationId: string) => void;
93
94
  }