@alfadocs/ui-kit 1.64.0 → 1.65.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 (91) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-DFWws7mM.js → anamnesis-summary-rows-BIfw890v.js} +3 -3
  2. package/dist/_chunks/{antenatal-schedule-timeline-DuaAQj1m.js → antenatal-schedule-timeline-DW_qkGo1.js} +3 -3
  3. package/dist/_chunks/{appointment-timeline-DaHKV81s.js → appointment-timeline-CCqjORFb.js} +2 -2
  4. package/dist/_chunks/{balance-badge-cell-ejODZU7R.js → balance-badge-cell-DZNthHO1.js} +3 -3
  5. package/dist/_chunks/{booking-CGhOtxad.js → booking-DkjatiXc.js} +5 -5
  6. package/dist/_chunks/{calendar-DCr65Kt1.js → calendar-BhN-jisv.js} +43 -40
  7. package/dist/_chunks/{calendar-workspace-BArq9vkD.js → calendar-workspace-Cp8yTZ1g.js} +9 -9
  8. package/dist/_chunks/chart-CIzXxNeM.js +1322 -0
  9. package/dist/_chunks/{clinical-note-card-D2bbWksq.js → clinical-note-card-BnFTIs6x.js} +2 -2
  10. package/dist/_chunks/{contact-profile-card-B4sjoIqf.js → contact-profile-card-C4-OCshj.js} +2 -2
  11. package/dist/_chunks/{cycle-calculator-D-rwX9Pj.js → cycle-calculator-D2Y4LvgC.js} +3 -3
  12. package/dist/_chunks/{data-table-C6ft3fSd.js → data-table-COoCQ4n_.js} +2 -2
  13. package/dist/_chunks/{date-picker-BSZuKo13.js → date-picker-KcoNNsM0.js} +3 -3
  14. package/dist/_chunks/{date-picker-variants-BnF-sHzq.js → date-picker-variants-DN37Oj5-.js} +2 -2
  15. package/dist/_chunks/{date-range-picker-CFk-5O3R.js → date-range-picker-CjcjUJLW.js} +4 -4
  16. package/dist/_chunks/{date-time-picker-CjxTkblD.js → date-time-picker-BVQNZ4yC.js} +3 -3
  17. package/dist/_chunks/{due-date-calculator-DTfxFJCM.js → due-date-calculator-41uZDkVR.js} +4 -4
  18. package/dist/_chunks/escape-html-Cn9Fao6a.js +7 -0
  19. package/dist/_chunks/{file-manager-w1UEprw8.js → file-manager-RiV7-OEE.js} +2 -2
  20. package/dist/_chunks/{format-price-BKle6Xwt.js → format-price-BcFBa-WP.js} +2 -2
  21. package/dist/_chunks/{freemium-paywall-r-z48YaT.js → freemium-paywall-DKJHRFpp.js} +2 -2
  22. package/dist/_chunks/{gestational-age-calculator-BnCAL5a-.js → gestational-age-calculator-CZYa2D6m.js} +5 -5
  23. package/dist/_chunks/{hcg-doubling-DVDiqFyp.js → hcg-doubling-DwTcjfke.js} +3 -3
  24. package/dist/_chunks/{heatmap-DuDfTIII.js → heatmap-BxRHM8Et.js} +5 -5
  25. package/dist/_chunks/intl-locale-FWh-Y5_3.js +33 -0
  26. package/dist/_chunks/{kit-extensions-RnddkrXn.js → kit-extensions-DWs1UEXb.js} +4 -4
  27. package/dist/_chunks/{link-cell-renderer-dtEYlxi2.js → link-cell-renderer-CtTsvfPY.js} +2 -2
  28. package/dist/_chunks/{money-CeClE1nH.js → money-Tsczpjfz.js} +2 -2
  29. package/dist/_chunks/{note-attachment-D8V7PUiR.js → note-attachment-DIlIQ7JF.js} +14 -16
  30. package/dist/_chunks/{note-timeline-CwxPQ2Ak.js → note-timeline-DDqNU46n.js} +2 -2
  31. package/dist/_chunks/{notes-panel-BRLc2ozF.js → notes-panel-uEGIL7mi.js} +2 -2
  32. package/dist/_chunks/{parse-jZ-i8Xgj.js → parse-UB4FJGNA.js} +2 -2
  33. package/dist/_chunks/{patient-details-BY8Rwwpi.js → patient-details-4P1vA9Ls.js} +2 -2
  34. package/dist/_chunks/{patient-field-row-C8ymfffP.js → patient-field-row-CBXhlfGD.js} +2 -2
  35. package/dist/_chunks/{patient-summary-card-cmqjIXMk.js → patient-summary-card-CuDLo8MP.js} +2 -2
  36. package/dist/_chunks/{payment-form-i90DUuNK.js → payment-form-C3dGY7v4.js} +2 -2
  37. package/dist/_chunks/{practice-results-B8L9ZmtR.js → practice-results-8h2Utpt3.js} +2 -2
  38. package/dist/_chunks/{pregnancy-dating-D2XTELiw.js → pregnancy-dating-B8wo4l_r.js} +5 -5
  39. package/dist/_chunks/{radiograph-panel.agent-DDNUo4Ul.js → radiograph-panel.agent-8Ewv8-d7.js} +3 -3
  40. package/dist/_chunks/{sparkline-pkGPCXbl.js → sparkline-SnniCoCl.js} +72 -64
  41. package/dist/_chunks/subDays-xH7cpN6B.js +8 -0
  42. package/dist/_chunks/{task-editor-DoiOzNiC.js → task-editor-CifOznfq.js} +2 -2
  43. package/dist/_chunks/{treatment-receipt-BdJ36vNP.js → treatment-receipt-Cpm8tqQN.js} +2 -2
  44. package/dist/_chunks/{use-appointment-details-read-D6Gb_OuN.js → use-appointment-details-read-B-FEWbQM.js} +5 -5
  45. package/dist/agent-catalog.json +1 -1
  46. package/dist/components/_shared/escape-html.d.ts +7 -0
  47. package/dist/components/_shared/intl-locale.d.ts +5 -3
  48. package/dist/components/_shared/use-apex-radial-centre.d.ts +19 -0
  49. package/dist/components/appointment-details-panel/index.js +1 -1
  50. package/dist/components/appointment-timeline/index.js +1 -1
  51. package/dist/components/booking/index.js +1 -1
  52. package/dist/components/calendar/index.js +1 -1
  53. package/dist/components/chart/chart.d.ts +8 -5
  54. package/dist/components/chart/index.js +1 -1
  55. package/dist/components/clinical-note-card/index.js +1 -1
  56. package/dist/components/contact-profile-card/index.js +1 -1
  57. package/dist/components/cycle-calculator/index.js +1 -1
  58. package/dist/components/data-table/index.js +2 -2
  59. package/dist/components/date-picker/index.js +1 -1
  60. package/dist/components/date-range-picker/index.js +1 -1
  61. package/dist/components/date-time-picker/index.js +1 -1
  62. package/dist/components/due-date-calculator/index.js +2 -2
  63. package/dist/components/file-manager/index.js +1 -1
  64. package/dist/components/freemium-paywall/index.js +1 -1
  65. package/dist/components/gestational-age-calculator/index.js +1 -1
  66. package/dist/components/hcg-doubling/index.js +1 -1
  67. package/dist/components/heatmap/heatmap-model.d.ts +4 -1
  68. package/dist/components/heatmap/heatmap.d.ts +3 -1
  69. package/dist/components/heatmap/index.js +1 -1
  70. package/dist/components/money/index.js +1 -1
  71. package/dist/components/note-timeline/index.js +1 -1
  72. package/dist/components/notes-panel/index.js +1 -1
  73. package/dist/components/patient-details/index.js +1 -1
  74. package/dist/components/patient-summary-card/index.js +1 -1
  75. package/dist/components/patient-table/index.js +1 -1
  76. package/dist/components/payment-form/index.js +1 -1
  77. package/dist/components/practice-results/index.js +1 -1
  78. package/dist/components/pregnancy-dating/index.js +1 -1
  79. package/dist/components/radiograph-panel/index.js +1 -1
  80. package/dist/components/rich-text-editor/index.js +1 -1
  81. package/dist/components/sparkline/index.js +1 -1
  82. package/dist/components/task-editor/index.js +1 -1
  83. package/dist/components/treatment-receipt/index.js +1 -1
  84. package/dist/index.js +36 -36
  85. package/dist/patterns/anamnesis/index.js +1 -1
  86. package/dist/patterns/calendar/index.js +1 -1
  87. package/dist/tokens.css +15 -1
  88. package/package.json +1 -1
  89. package/dist/_chunks/chart-CzTF8yhH.js +0 -1123
  90. package/dist/_chunks/intl-locale-ySteXlDD.js +0 -23
  91. package/dist/_chunks/subDays-DlMw8Xng.js +0 -8
@@ -8,8 +8,8 @@ import { B as L } from "./badge-BUk4RjTS.js";
8
8
  import { F as V } from "./form-field-Ani72sVY.js";
9
9
  import { T as oe } from "./text-area-COMVJ1yE.js";
10
10
  import { F as de } from "./file-upload-CxjCs7TX.js";
11
- import { D as te } from "./date-picker-BSZuKo13.js";
12
- import { D as le } from "./date-range-picker-CFk-5O3R.js";
11
+ import { D as te } from "./date-picker-KcoNNsM0.js";
12
+ import { D as le } from "./date-range-picker-CjcjUJLW.js";
13
13
  import { E } from "./empty-state-pL1qum99.js";
14
14
  import { P as ne } from "./panel-header-BJkaUwnl.js";
15
15
  import { c as $ } from "./createLucideIcon-DhHxpK9K.js";
@@ -533,4 +533,4 @@ export {
533
533
  qe as R,
534
534
  Ae as r
535
535
  };
536
- //# sourceMappingURL=radiograph-panel.agent-DDNUo4Ul.js.map
536
+ //# sourceMappingURL=radiograph-panel.agent-8Ewv8-d7.js.map
@@ -1,13 +1,14 @@
1
- import { jsx as u, jsxs as E } from "react/jsx-runtime";
2
- import { forwardRef as ve, useId as we, useMemo as _, useRef as k, useState as $, useEffect as H, useImperativeHandle as xe } from "react";
1
+ import { jsx as u, jsxs as B } from "react/jsx-runtime";
2
+ import { forwardRef as we, useId as xe, useMemo as _, useRef as k, useState as E, useEffect as H, useImperativeHandle as ke } from "react";
3
3
  import { c as j } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ke } from "react-i18next";
5
- import Ie from "react-apexcharts";
4
+ import { useTranslation as Ie } from "react-i18next";
5
+ import Ne from "react-apexcharts";
6
6
  import P from "apexcharts";
7
- import { g as re, u as Ne, a as Re } from "./apexcharts-theme-DNoXvgnZ.js";
8
- import { m as Me } from "./annotation-marker-D-M7y4R1.js";
9
- import { u as Te } from "./registry-DvAUVLHh.js";
10
- function Ce(n) {
7
+ import { g as re, u as Re, a as Me } from "./apexcharts-theme-DNoXvgnZ.js";
8
+ import { e as ae } from "./escape-html-Cn9Fao6a.js";
9
+ import { m as Te } from "./annotation-marker-D-M7y4R1.js";
10
+ import { u as Ce } from "./registry-DvAUVLHh.js";
11
+ function Ae(n) {
11
12
  if (n.length < 2)
12
13
  return { slope: 0, direction: "steady" };
13
14
  const r = n.length, g = (r - 1) / 2, p = n.reduce((c, d) => c + d, 0) / r;
@@ -19,7 +20,7 @@ function Ce(n) {
19
20
  const f = h === 0 ? 0 : a / h, N = 0.01 * (Math.max(...n) - Math.min(...n) || 1), v = Math.abs(f) < N ? "steady" : f > 0 ? "increasing" : "decreasing";
20
21
  return { slope: f, direction: v };
21
22
  }
22
- const Ae = {
23
+ const Oe = {
23
24
  id: "sparkline",
24
25
  capabilities: [],
25
26
  // `select_annotation` enforces two preconditions silently and
@@ -129,7 +130,7 @@ const Ae = {
129
130
  description: "Sourced from the id prop."
130
131
  }
131
132
  }
132
- }, ae = j("ds:relative ds:inline-block ds:w-full", {
133
+ }, se = j("ds:relative ds:inline-block ds:w-full", {
133
134
  variants: {
134
135
  size: {
135
136
  xs: "ds:h-6",
@@ -141,7 +142,7 @@ const Ae = {
141
142
  }
142
143
  },
143
144
  defaultVariants: { size: "md" }
144
- }), se = j("", {
145
+ }), ie = j("", {
145
146
  variants: {
146
147
  tone: {
147
148
  neutral: "ds:[--annotation-color:var(--muted-foreground)]",
@@ -156,7 +157,7 @@ const Ae = {
156
157
  }
157
158
  },
158
159
  defaultVariants: { tone: "neutral" }
159
- }), Oe = j(
160
+ }), Se = j(
160
161
  "ds:pointer-events-none ds:absolute ds:inset-x-[2px]",
161
162
  {
162
163
  variants: {
@@ -172,19 +173,19 @@ const Ae = {
172
173
  },
173
174
  defaultVariants: { size: "md" }
174
175
  }
175
- ), Se = {
176
+ ), ze = {
176
177
  increasing: "↑",
177
178
  decreasing: "↓",
178
179
  steady: "→"
179
- }, ze = {
180
+ }, _e = {
180
181
  xs: 24,
181
182
  sm: 32,
182
183
  md: 40
183
- }, T = 2, ie = 2.5, oe = 44;
184
- function _e(n, r, g = oe) {
184
+ }, T = 2, oe = 2.5, de = 44;
185
+ function He(n, r, g = de) {
185
186
  const p = n.map((a) => ({
186
187
  annotation: a,
187
- centre: de(a.position) * r
188
+ centre: ce(a.position) * r
188
189
  })).sort((a, h) => a.centre - h.centre);
189
190
  return p.map((a, h) => {
190
191
  const f = p[h - 1], b = p[h + 1], N = f ? (f.centre + a.centre) / 2 : 0, v = b ? (a.centre + b.centre) / 2 : r, c = Math.max(0, N), d = Math.min(r, v), s = Math.min(g, Math.max(0, d - c)), y = Math.min(
@@ -194,16 +195,16 @@ function _e(n, r, g = oe) {
194
195
  return { annotation: a.annotation, x: y, width: s };
195
196
  });
196
197
  }
197
- function de(n) {
198
+ function ce(n) {
198
199
  return Number.isFinite(n) ? Math.min(1, Math.max(0, n)) : 0;
199
200
  }
200
- function He(n) {
201
+ function Pe(n) {
201
202
  return n.filter((r) => r != null);
202
203
  }
203
- function Pe() {
204
+ function De() {
204
205
  return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
205
206
  }
206
- const De = ve(
207
+ const Fe = we(
207
208
  ({
208
209
  id: n,
209
210
  data: r,
@@ -221,12 +222,12 @@ const De = ve(
221
222
  onAnnotationSelect: y,
222
223
  className: G,
223
224
  ...L
224
- }, ce) => {
225
+ }, le) => {
225
226
  var ne;
226
- const { t: w, i18n: q } = ke("ui"), Z = we(), x = _(
227
+ const { t: w, i18n: q } = Ie("ui"), Z = xe(), x = _(
227
228
  () => `sparkline-${Z.replace(/[^a-zA-Z0-9-_]/g, "")}`,
228
229
  [Z]
229
- ), R = k(null), [D, le] = $(0), [ue, pe] = $(oe), m = _(() => He(r), [r]), { direction: F } = Ce(m), J = _(() => {
230
+ ), R = k(null), [D, ue] = E(0), [pe, he] = E(de), m = _(() => Pe(r), [r]), { direction: F } = Ae(m), J = _(() => {
230
231
  const e = s && s.length > 0 ? w("sparkline.annotations", {
231
232
  list: s.map((I) => I.label).join(", ")
232
233
  }) : "", t = (I) => e ? `${I}. ${e}` : I;
@@ -239,7 +240,7 @@ const De = ve(
239
240
  direction: l
240
241
  };
241
242
  return t(a ? w("sparkline.summary", { label: a, ...o }) : w("sparkline.summaryNoLabel", o));
242
- }, [m, s, a, F, q.language, w]), [C, he] = $(
243
+ }, [m, s, a, F, q.language, w]), [C, me] = E(
243
244
  () => {
244
245
  try {
245
246
  return re();
@@ -253,7 +254,7 @@ const De = ve(
253
254
  const t = new MutationObserver(() => {
254
255
  clearTimeout(e), e = setTimeout(() => {
255
256
  try {
256
- he(re());
257
+ me(re());
257
258
  } catch {
258
259
  }
259
260
  }, 50);
@@ -269,15 +270,15 @@ const De = ve(
269
270
  if (!e) return;
270
271
  const t = () => {
271
272
  const l = getComputedStyle(e).getPropertyValue("--min-target-size"), o = Number.parseFloat(l);
272
- Number.isFinite(o) && o > 0 && pe(o);
273
+ Number.isFinite(o) && o > 0 && he(o);
273
274
  };
274
275
  t();
275
276
  const i = new ResizeObserver((l) => {
276
277
  const o = l[0];
277
- o && le(Math.floor(o.contentRect.width)), t();
278
+ o && ue(Math.floor(o.contentRect.width)), t();
278
279
  });
279
280
  return i.observe(e), () => i.disconnect();
280
- }, []), Ne(R), Re(R, b);
281
+ }, []), Re(R), Me(R, b);
281
282
  const M = k(y);
282
283
  H(() => {
283
284
  M.current = y;
@@ -320,8 +321,8 @@ const De = ve(
320
321
  }),
321
322
  [x]
322
323
  );
323
- xe(ce, () => W, [W]), Te(Ae, W, n);
324
- const B = h ?? ((ne = C.colors) == null ? void 0 : ne[0]) ?? "currentColor";
324
+ ke(le, () => W, [W]), Ce(Oe, W, n);
325
+ const $ = h ?? ((ne = C.colors) == null ? void 0 : ne[0]) ?? "currentColor";
325
326
  if (m.length === 0)
326
327
  return /* @__PURE__ */ u(
327
328
  "div",
@@ -330,7 +331,7 @@ const De = ve(
330
331
  role: "img",
331
332
  "aria-label": J,
332
333
  dir: "ltr",
333
- className: ae({
334
+ className: se({
334
335
  size: d !== void 0 ? "auto" : p,
335
336
  className: G
336
337
  }),
@@ -339,13 +340,13 @@ const De = ve(
339
340
  ...L
340
341
  }
341
342
  );
342
- const X = Pe(), S = r.length > m.length, Y = S ? r.flatMap((e, t) => e == null ? [] : [{ x: t, y: e }]) : m, me = S ? r.flatMap((e, t) => e == null ? [] : [t]) : void 0;
343
+ const X = De(), S = r.length > m.length, Y = S ? r.flatMap((e, t) => e == null ? [] : [{ x: t, y: e }]) : m, fe = S ? r.flatMap((e, t) => e == null ? [] : [t]) : void 0;
343
344
  A.current = {
344
345
  labels: v,
345
- slotOf: me,
346
+ slotOf: fe,
346
347
  shown: b && v !== void 0
347
348
  };
348
- const fe = b ? {
349
+ const ge = b ? {
349
350
  enabled: !0,
350
351
  x: v ? {
351
352
  show: !0,
@@ -353,13 +354,20 @@ const De = ve(
353
354
  const { labels: i, slotOf: l } = A.current;
354
355
  if (O.current || !i) return "";
355
356
  const o = (t == null ? void 0 : t.dataPointIndex) ?? -1;
356
- return i[l ? l[o] ?? -1 : o] ?? "";
357
+ return ae(
358
+ i[l ? l[o] ?? -1 : o] ?? ""
359
+ );
357
360
  }
358
361
  } : (
359
362
  // No labels: hide the title rather than show a raw index.
360
363
  { show: !1 }
361
- )
362
- } : { enabled: !1 }, ge = {
364
+ ),
365
+ y: {
366
+ title: {
367
+ formatter: (e) => e ? `${ae(String(e))}: ` : ""
368
+ }
369
+ }
370
+ } : { enabled: !1 }, ye = {
363
371
  ...C,
364
372
  chart: {
365
373
  ...C.chart,
@@ -380,7 +388,7 @@ const De = ve(
380
388
  zoom: { enabled: !1 },
381
389
  parentHeightOffset: 0
382
390
  },
383
- colors: [B],
391
+ colors: [$],
384
392
  stroke: {
385
393
  curve: "smooth",
386
394
  width: g === "bar" ? 0 : 2
@@ -395,7 +403,7 @@ const De = ve(
395
403
  // and the annotation fractions would no longer mean the same thing.
396
404
  ...S ? { type: "numeric", min: 0, max: r.length - 1 } : {}
397
405
  },
398
- tooltip: fe,
406
+ tooltip: ge,
399
407
  markers: f ? {
400
408
  size: [0],
401
409
  discrete: [
@@ -405,8 +413,8 @@ const De = ve(
405
413
  // the parameter was not measured at.
406
414
  seriesIndex: 0,
407
415
  dataPointIndex: Y.length - 1,
408
- fillColor: B,
409
- strokeColor: B,
416
+ fillColor: $,
417
+ strokeColor: $,
410
418
  size: 4
411
419
  }
412
420
  ]
@@ -423,15 +431,15 @@ const De = ve(
423
431
  left: T
424
432
  }
425
433
  }
426
- }, ye = c ?? (D > 0 ? D : "100%"), be = d ?? ze[p ?? "md"], z = s != null && s.length ? s : void 0, ee = D - T * 2, te = y && z && ee > 0 ? _e(z, ee, ue) : void 0;
427
- return /* @__PURE__ */ E(
434
+ }, be = c ?? (D > 0 ? D : "100%"), ve = d ?? _e[p ?? "md"], z = s != null && s.length ? s : void 0, ee = D - T * 2, te = y && z && ee > 0 ? He(z, ee, pe) : void 0;
435
+ return /* @__PURE__ */ B(
428
436
  "div",
429
437
  {
430
438
  ref: R,
431
439
  role: "img",
432
440
  "aria-label": J,
433
441
  dir: "ltr",
434
- className: ae({
442
+ className: se({
435
443
  size: d !== void 0 ? "auto" : p,
436
444
  className: G
437
445
  }),
@@ -440,13 +448,13 @@ const De = ve(
440
448
  ...L,
441
449
  children: [
442
450
  /* @__PURE__ */ u(
443
- Ie,
451
+ Ne,
444
452
  {
445
453
  type: g,
446
454
  series: [{ name: U, data: Y }],
447
- options: ge,
448
- width: ye,
449
- height: be,
455
+ options: ye,
456
+ width: be,
457
+ height: ve,
450
458
  "aria-hidden": "true"
451
459
  }
452
460
  ),
@@ -468,12 +476,12 @@ const De = ve(
468
476
  "data-testid": "sparkline-annotations",
469
477
  className: "ds:size-full",
470
478
  children: z.map((e) => {
471
- const t = de(e.position);
479
+ const t = ce(e.position);
472
480
  return (
473
481
  /* A nested viewport placed at a percentage of the plot: the
474
482
  one positioning rule that needs no measurement, so a column
475
483
  of sparklines shares an x whatever their widths. */
476
- /* @__PURE__ */ E(
484
+ /* @__PURE__ */ B(
477
485
  "svg",
478
486
  {
479
487
  x: `${t * 100}%`,
@@ -483,7 +491,7 @@ const De = ve(
483
491
  overflow: "visible",
484
492
  "data-annotation-id": e.id,
485
493
  "data-annotation-position": t,
486
- className: se({ tone: e.tone }),
494
+ className: ie({ tone: e.tone }),
487
495
  children: [
488
496
  /* @__PURE__ */ u(
489
497
  "line",
@@ -498,11 +506,11 @@ const De = ve(
498
506
  /* @__PURE__ */ u(
499
507
  "path",
500
508
  {
501
- d: Me(
509
+ d: Te(
502
510
  e.shape ?? "diamond",
503
511
  0,
504
- ie,
505
- ie
512
+ oe,
513
+ oe
506
514
  ),
507
515
  className: "ds:[fill:var(--annotation-color)]"
508
516
  }
@@ -522,7 +530,7 @@ const De = ve(
522
530
  /* @__PURE__ */ u(
523
531
  "div",
524
532
  {
525
- className: Oe({
533
+ className: Se({
526
534
  size: d !== void 0 ? "auto" : p
527
535
  }),
528
536
  children: /* @__PURE__ */ u(
@@ -532,12 +540,12 @@ const De = ve(
532
540
  focusable: "false",
533
541
  "data-testid": "sparkline-annotation-hits",
534
542
  className: "ds:size-full",
535
- children: te.map(({ annotation: e, x: t, width: i }) => /* @__PURE__ */ E(
543
+ children: te.map(({ annotation: e, x: t, width: i }) => /* @__PURE__ */ B(
536
544
  "g",
537
545
  {
538
546
  "data-annotation-hit-id": e.id,
539
547
  onClick: () => y(e.id),
540
- className: `ds:group ds:pointer-events-auto ds:cursor-pointer ${se(
548
+ className: `ds:group ds:pointer-events-auto ds:cursor-pointer ${ie(
541
549
  { tone: e.tone }
542
550
  )}`,
543
551
  children: [
@@ -567,7 +575,7 @@ const De = ve(
567
575
  {
568
576
  "aria-hidden": "true",
569
577
  className: "ds:pointer-events-none ds:absolute ds:end-0 ds:top-0 ds:text-[length:var(--font-size-xs)] ds:leading-none",
570
- children: Se[F]
578
+ children: ze[F]
571
579
  }
572
580
  )
573
581
  ]
@@ -575,10 +583,10 @@ const De = ve(
575
583
  );
576
584
  }
577
585
  );
578
- De.displayName = "Sparkline";
586
+ Fe.displayName = "Sparkline";
579
587
  export {
580
- De as S,
581
- Ae as s,
582
- Ce as u
588
+ Fe as S,
589
+ Oe as s,
590
+ Ae as u
583
591
  };
584
- //# sourceMappingURL=sparkline-pkGPCXbl.js.map
592
+ //# sourceMappingURL=sparkline-SnniCoCl.js.map
@@ -0,0 +1,8 @@
1
+ import { a as o } from "./date-picker-variants-DN37Oj5-.js";
2
+ function n(a, s, r) {
3
+ return o(a, -s, r);
4
+ }
5
+ export {
6
+ n as s
7
+ };
8
+ //# sourceMappingURL=subDays-xH7cpN6B.js.map
@@ -7,7 +7,7 @@ import { B as Me } from "./button-D-MQxsA_.js";
7
7
  import { I as We } from "./icon-button-C_1TgRiK.js";
8
8
  import { C as Qe } from "./combobox-U5yfO6o0.js";
9
9
  import { D as ce } from "./dialog-D6fkpRc4.js";
10
- import { D as Bt } from "./date-picker-BSZuKo13.js";
10
+ import { D as Bt } from "./date-picker-KcoNNsM0.js";
11
11
  import { F as H } from "./form-field-Ani72sVY.js";
12
12
  import { I as Ft } from "./icon-button-group-NIHji7_y.js";
13
13
  import { P as Pt } from "./panel-header-BJkaUwnl.js";
@@ -1239,4 +1239,4 @@ export {
1239
1239
  vo as T,
1240
1240
  lo as t
1241
1241
  };
1242
- //# sourceMappingURL=task-editor-DoiOzNiC.js.map
1242
+ //# sourceMappingURL=task-editor-CifOznfq.js.map
@@ -3,7 +3,7 @@ import { forwardRef as R, useRef as j } from "react";
3
3
  import { c as g } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as L } from "react-i18next";
5
5
  import { B as f } from "./badge-BUk4RjTS.js";
6
- import { M as u } from "./money-CeClE1nH.js";
6
+ import { M as u } from "./money-Tsczpjfz.js";
7
7
  import { C as z, S as h } from "./skeleton-B1KTdJ4N.js";
8
8
  import { T as S } from "./tag-DOZGz0fT.js";
9
9
  const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
@@ -157,4 +157,4 @@ E.displayName = "TreatmentReceipt";
157
157
  export {
158
158
  E as T
159
159
  };
160
- //# sourceMappingURL=treatment-receipt-BdJ36vNP.js.map
160
+ //# sourceMappingURL=treatment-receipt-Cpm8tqQN.js.map
@@ -13,15 +13,15 @@ import { I as Lt } from "./icon-button-C_1TgRiK.js";
13
13
  import { B as tn } from "./button-group-DCOJhvm3.js";
14
14
  import { D as Oe } from "./dropdown-menu-D1we7oAY.js";
15
15
  import { E as zt } from "./editable-description-ChGNdYY8.js";
16
- import { N as Xe } from "./note-timeline-CwxPQ2Ak.js";
16
+ import { N as Xe } from "./note-timeline-DDqNU46n.js";
17
17
  import { P as Ot } from "./panel-header-BJkaUwnl.js";
18
18
  import { P as Ge } from "./panel-subview-yP4qIbKS.js";
19
- import { P as _t } from "./patient-summary-card-cmqjIXMk.js";
19
+ import { P as _t } from "./patient-summary-card-CuDLo8MP.js";
20
20
  import { S as ne } from "./section-card-D5nWiTcK.js";
21
21
  import { C as nn, S as ue } from "./skeleton-B1KTdJ4N.js";
22
22
  import { T as an } from "./text-area-COMVJ1yE.js";
23
23
  import { T as sn } from "./tooltip-uEBdD1-5.js";
24
- import { T as Bt } from "./treatment-receipt-BdJ36vNP.js";
24
+ import { T as Bt } from "./treatment-receipt-Cpm8tqQN.js";
25
25
  import { a as Nt } from "./whatsapp-button-DV9JFmtq.js";
26
26
  import { a as Ft, W as on } from "./workflow-status-Dc_CyEz5.js";
27
27
  import { u as ot, a as At, i as rn } from "./appointment-workflow-status-DMjuIK90.js";
@@ -53,7 +53,7 @@ import { P as vn } from "./phone-FceYcIFQ.js";
53
53
  import { M as yn } from "./mail-BqXVF2zH.js";
54
54
  import { M as bn } from "./map-pin-BaY37-Km.js";
55
55
  import { C as kn } from "./calendar-days-BGWklvE-.js";
56
- import { H as wn } from "./patient-field-row-C8ymfffP.js";
56
+ import { H as wn } from "./patient-field-row-CBXhlfGD.js";
57
57
  import { A as It } from "./armchair-BaLDW6Hz.js";
58
58
  import { B as xn } from "./building-2-D33bLCWL.js";
59
59
  import { N as Nn } from "./notebook-pen-CO7HoM-W.js";
@@ -2195,4 +2195,4 @@ export {
2195
2195
  Kn as s,
2196
2196
  _s as u
2197
2197
  };
2198
- //# sourceMappingURL=use-appointment-details-read-D6Gb_OuN.js.map
2198
+ //# sourceMappingURL=use-appointment-details-read-B-FEWbQM.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.64.0",
3
+ "packageVersion": "1.65.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -0,0 +1,7 @@
1
+ /**
2
+ * HTML-escape raw text before it goes where markup is parsed: element
3
+ * content or a double-quoted attribute. Not `'`: never use the result in a
4
+ * single-quoted attribute.
5
+ */
6
+ export declare function escapeHtml(input: string): string;
7
+ //# sourceMappingURL=escape-html.d.ts.map
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * A BCP 47 tag that `Intl` accepts for a UI language. Hosts may report
3
- * `it_IT`, which `Intl` rejects with a RangeError; an unusable tag falls
4
- * back to English rather than breaking the render.
3
+ * `it_IT` or `it_IT.UTF-8`, which `Intl` rejects with a RangeError; such a
4
+ * tag is read as its BCP 47 form. One that is still unusable falls back to
5
+ * `fallback` (the active UI language, say), then English, rather than
6
+ * breaking the render.
5
7
  */
6
- export declare function canonicalLocale(language: string): string;
8
+ export declare function canonicalLocale(language: string, fallback?: string): string;
7
9
  /**
8
10
  * The tag to hand `Intl.NumberFormat` for a UI language. It is the
9
11
  * language itself unless the engine has no number data for it and the kit
@@ -0,0 +1,19 @@
1
+ /** The name whole, then its two-line splits: at a space, or between CJK words. */
2
+ export declare function splits(name: string, locale: string): string[][];
3
+ /**
4
+ * A radialBar's centre labels sit in the ring's hole. ApexCharts draws the
5
+ * series name on one line at a fixed size, so a long name runs across the
6
+ * ring, or out of the drawing. This fits the centre the way a donut or gauge
7
+ * centre label is fitted: the value is the primary figure and always shows,
8
+ * at its own size unless the hole is too small for it alone, and never below
9
+ * the label role; the name fits the chord of the hole at each of its lines,
10
+ * first on one line, then on two, then smaller, down to the label role, and
11
+ * is hidden when it still cannot fit. The hole is measured from what
12
+ * ApexCharts drew, on every redraw and hover, before the page paints, and
13
+ * again once a web font loads or a theme around the chart changes. The name
14
+ * stays the chart's to announce: the summary table carries it.
15
+ */
16
+ export declare function useApexRadialCentre(root: HTMLElement | null, enabled: boolean,
17
+ /** The chart's locale, for where a name may break. */
18
+ locale: string): void;
19
+ //# sourceMappingURL=use-apex-radial-centre.d.ts.map
@@ -1,4 +1,4 @@
1
- import { A as e, a as n, p, u as s } from "../../_chunks/use-appointment-details-read-D6Gb_OuN.js";
1
+ import { A as e, a as n, p, u as s } from "../../_chunks/use-appointment-details-read-B-FEWbQM.js";
2
2
  export {
3
3
  e as AppointmentDetailsPanel,
4
4
  n as appointmentDetailsPanelAgent,
@@ -1,4 +1,4 @@
1
- import { A as i, a as t } from "../../_chunks/appointment-timeline-DaHKV81s.js";
1
+ import { A as i, a as t } from "../../_chunks/appointment-timeline-CCqjORFb.js";
2
2
  export {
3
3
  i as AppointmentTimeline,
4
4
  t as appointmentTimelineAgent
@@ -1,4 +1,4 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-CGhOtxad.js";
1
+ import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-DkjatiXc.js";
2
2
  export {
3
3
  A as Booking,
4
4
  R as CONFIRMATION_CHANNEL_ORDER,
@@ -1,4 +1,4 @@
1
- import { C as r, c as l, r as n } from "../../_chunks/calendar-DCr65Kt1.js";
1
+ import { C as r, c as l, r as n } from "../../_chunks/calendar-BhN-jisv.js";
2
2
  export {
3
3
  r as Calendar,
4
4
  l as calendarAgent,
@@ -108,10 +108,13 @@ export interface ChartProps extends VariantProps<typeof chartVariants> {
108
108
  /** Locale override — defaults to the active i18next language. */
109
109
  locale?: string;
110
110
  /**
111
- * radialBar only. Formats the value printed in the ring centre. Use when the
111
+ * radialBar only. Formats a ring's value: in the centre, in the summary
112
+ * table and, with several rings, in each ring's legend item. Use when the
112
113
  * gauge represents a non-percentage figure: pass the arc fill (0–100) as the
113
- * single `series` value and return the real figure here (e.g. `(_, ) => '22.4'`).
114
- * Ignored for every other chart type. Defaults to ApexCharts' `${value}%`.
114
+ * `series` value and return the real figure here (e.g. `() => '22.4'` for a
115
+ * single ring). It is called with each ring's own value, so with several
116
+ * rings it must use that value. Ignored for every other chart type.
117
+ * Defaults to a percent in the chart's locale.
115
118
  */
116
119
  radialValueFormatter?: (value: number) => string;
117
120
  /**
@@ -120,8 +123,8 @@ export interface ChartProps extends VariantProps<typeof chartVariants> {
120
123
  * screen-reader summary table. Use it to append a unit or currency symbol,
121
124
  * e.g. `(v) => new Intl.NumberFormat(locale, { style: 'currency', currency:
122
125
  * 'EUR' }).format(v)`. Defaults to `Intl.NumberFormat(locale)` (grouped
123
- * number, no unit). Does not apply to a `radialBar` ring centre — use
124
- * `radialValueFormatter` for that.
126
+ * number, no unit). Does not apply to a `radialBar`: its centre, legend
127
+ * and summary table use `radialValueFormatter`.
125
128
  */
126
129
  valueFormatter?: (value: number) => string;
127
130
  /**
@@ -1,4 +1,4 @@
1
- import { C as t, c as s, a as c } from "../../_chunks/chart-CzTF8yhH.js";
1
+ import { C as t, c as s, a as c } from "../../_chunks/chart-CIzXxNeM.js";
2
2
  export {
3
3
  t as Chart,
4
4
  s as chartAgent,
@@ -1,4 +1,4 @@
1
- import { C as e, c as i } from "../../_chunks/clinical-note-card-D2bbWksq.js";
1
+ import { C as e, c as i } from "../../_chunks/clinical-note-card-BnFTIs6x.js";
2
2
  export {
3
3
  e as ClinicalNoteCard,
4
4
  i as clinicalNoteCardAgent
@@ -1,4 +1,4 @@
1
- import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-B4sjoIqf.js";
1
+ import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-C4-OCshj.js";
2
2
  export {
3
3
  _ as CONTACT_PROFILE_CARD_ROW_ICONS,
4
4
  O as CONTACT_PROFILE_CARD_ROW_KEYS,
@@ -1,4 +1,4 @@
1
- import { C as e, L as l, p as r } from "../../_chunks/cycle-calculator-D-rwX9Pj.js";
1
+ import { C as e, L as l, p as r } from "../../_chunks/cycle-calculator-D2Y4LvgC.js";
2
2
  export {
3
3
  e as CycleCalculator,
4
4
  l as LUTEAL_PHASE_DAYS,
@@ -1,6 +1,6 @@
1
- import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-C6ft3fSd.js";
1
+ import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-COoCQ4n_.js";
2
2
  import { B as g, C as D, a as b, E as x, b as c, R as p, T as u, c as m, r as E, u as f } from "../../_chunks/editable-currency-cell-renderer-1ijmzNWh.js";
3
- import { D as h, a as A, b as w, I as y, L as I, N as L, c as N, S as P, d as W, e as B, T as U, f as _, g as k, U as v } from "../../_chunks/link-cell-renderer-dtEYlxi2.js";
3
+ import { D as h, a as A, b as w, I as y, L as I, N as L, c as N, S as P, d as W, e as B, T as U, f as _, g as k, U as v } from "../../_chunks/link-cell-renderer-CtTsvfPY.js";
4
4
  import { A as X, a as j } from "../../_chunks/actions-cell-renderer-BXCpK2_0.js";
5
5
  export {
6
6
  X as ActionsCellRenderer,
@@ -1,4 +1,4 @@
1
- import { D as r, d as t } from "../../_chunks/date-picker-BSZuKo13.js";
1
+ import { D as r, d as t } from "../../_chunks/date-picker-KcoNNsM0.js";
2
2
  export {
3
3
  r as DatePicker,
4
4
  t as datePickerAgent
@@ -1,4 +1,4 @@
1
- import { D as r, d as t } from "../../_chunks/date-range-picker-CFk-5O3R.js";
1
+ import { D as r, d as t } from "../../_chunks/date-range-picker-CjcjUJLW.js";
2
2
  export {
3
3
  r as DateRangePicker,
4
4
  t as dateRangePickerAgent
@@ -1,4 +1,4 @@
1
- import { D as i, d as r } from "../../_chunks/date-time-picker-CjxTkblD.js";
1
+ import { D as i, d as r } from "../../_chunks/date-time-picker-BVQNZ4yC.js";
2
2
  export {
3
3
  i as DateTimePicker,
4
4
  r as dateTimePickerAgent
@@ -1,5 +1,5 @@
1
- import { D as e } from "../../_chunks/due-date-calculator-DTfxFJCM.js";
2
- import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-DuaAQj1m.js";
1
+ import { D as e } from "../../_chunks/due-date-calculator-41uZDkVR.js";
2
+ import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-DW_qkGo1.js";
3
3
  export {
4
4
  r as CRL_DATING_MAX_MM,
5
5
  o as CRL_DATING_MIN_MM,
@@ -1,4 +1,4 @@
1
- import { F as r, f } from "../../_chunks/file-manager-w1UEprw8.js";
1
+ import { F as r, f } from "../../_chunks/file-manager-RiV7-OEE.js";
2
2
  export {
3
3
  r as FileManager,
4
4
  f as fileManagerAgent