@alfadocs/ui-kit 1.33.0 → 1.35.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 (126) hide show
  1. package/dist/_chunks/appointment-card-Bh_CIlc6.js +431 -0
  2. package/dist/_chunks/appointment-timeline-De-Wqdkw.js +449 -0
  3. package/dist/_chunks/{appointment-tray-DCk8gHod.js → appointment-tray-4I9wTAi4.js} +2 -2
  4. package/dist/_chunks/{calendar-workspace-BX-zDyVR.js → calendar-workspace-UywR5gUl.js} +7 -7
  5. package/dist/_chunks/{care-plan-card-CZW476Kg.js → care-plan-card-DHVhBcvs.js} +3 -3
  6. package/dist/_chunks/{care-plan-entry-card-BMUYagEw.js → care-plan-entry-card-Dx6IdTcR.js} +2 -2
  7. package/dist/_chunks/{care-plan-header-B5CBE0zu.js → care-plan-header-UTX5ZD74.js} +2 -2
  8. package/dist/_chunks/{clinical-note-card-D2WTV2CO.js → clinical-note-card-CTRzmqvv.js} +83 -81
  9. package/dist/_chunks/{contact-profile-card-BZqi8Hck.js → contact-profile-card-DSI9uumA.js} +17 -16
  10. package/dist/_chunks/{control-room-rail-iO_BCaq1.js → control-room-rail-5MbhjsxN.js} +2 -2
  11. package/dist/_chunks/{entity-card-DmrgYSEX.js → entity-card-9_62gY7l.js} +4 -4
  12. package/dist/_chunks/format-price-BkMEbeW3.js +47 -0
  13. package/dist/_chunks/{format-price-DNqXPa_q.js → languages-CZqBaPwI.js} +8 -38
  14. package/dist/_chunks/money.agent-Dw55UxUA.js +116 -0
  15. package/dist/_chunks/notes-panel-BjLt-kiP.js +469 -0
  16. package/dist/_chunks/{operator-hero-D7-iiFQ9.js → operator-hero-aG_qyn6g.js} +2 -2
  17. package/dist/_chunks/{payment-request-card-lmKLwsDs.js → payment-request-card-DvEsWEkC.js} +2 -2
  18. package/dist/_chunks/{practice-results-DjEzPgAK.js → practice-results-kayDEorM.js} +15 -14
  19. package/dist/_chunks/{rich-text-editor-CQ7yZdG3.js → rich-text-editor-CCI-Y3DN.js} +3 -5
  20. package/dist/_chunks/{task-card-BUgK6yZT.js → task-card-BalrLkSz.js} +41 -40
  21. package/dist/_chunks/{task-tray-CYG6rj2s.js → task-tray-COo-RlDv.js} +2 -2
  22. package/dist/_chunks/tasks-panel-DLKpSNoE.js +844 -0
  23. package/dist/_chunks/tool-rail-ONaV-Nzz.js +588 -0
  24. package/dist/_chunks/use-check-animation--I3cS00X.js +28 -0
  25. package/dist/_chunks/use-list-reflow-Cw43nxw5.js +100 -0
  26. package/dist/agent-catalog.json +15 -1
  27. package/dist/components/_shared/format-price.d.ts +15 -0
  28. package/dist/components/appointment-card/appointment-card.d.ts +36 -1
  29. package/dist/components/appointment-card/index.js +2 -2
  30. package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
  31. package/dist/components/appointment-timeline/index.js +1 -1
  32. package/dist/components/care-plan-card/index.js +1 -1
  33. package/dist/components/care-plan-entry-card/index.js +1 -1
  34. package/dist/components/care-plan-header/index.js +1 -1
  35. package/dist/components/clinical-note-card/clinical-note-card.d.ts +8 -1
  36. package/dist/components/clinical-note-card/index.js +1 -1
  37. package/dist/components/command-palette/command-palette.d.ts +7 -7
  38. package/dist/components/contact-profile-card/index.js +1 -1
  39. package/dist/components/control-room-rail/index.js +1 -1
  40. package/dist/components/index.d.ts +1 -0
  41. package/dist/components/money/index.d.ts +4 -0
  42. package/dist/components/money/index.js +6 -0
  43. package/dist/components/money/money.agent.d.ts +3 -0
  44. package/dist/components/money/money.d.ts +38 -0
  45. package/dist/components/notes-panel/index.js +1 -1
  46. package/dist/components/notes-panel/notes-panel.d.ts +16 -1
  47. package/dist/components/operator-hero/index.js +1 -1
  48. package/dist/components/payment-card/index.js +1 -1
  49. package/dist/components/practice-results/index.js +1 -1
  50. package/dist/components/rich-text-editor/index.js +1 -1
  51. package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
  52. package/dist/components/task-card/index.js +1 -1
  53. package/dist/components/task-card/task-card.d.ts +11 -3
  54. package/dist/components/task-tray/index.js +1 -1
  55. package/dist/components/tasks-panel/index.js +1 -1
  56. package/dist/components/tasks-panel/tasks-panel.d.ts +1 -1
  57. package/dist/components/tool-rail/index.js +1 -1
  58. package/dist/hooks/index.d.ts +3 -0
  59. package/dist/hooks/index.js +43 -37
  60. package/dist/hooks/use-check-animation.d.ts +53 -0
  61. package/dist/hooks/use-exit-transition.d.ts +48 -0
  62. package/dist/hooks/use-list-reflow.d.ts +47 -0
  63. package/dist/host-compat.css +8 -2
  64. package/dist/i18n/locales/ar.d.ts +10 -0
  65. package/dist/i18n/locales/ar.js +12 -2
  66. package/dist/i18n/locales/de.d.ts +10 -0
  67. package/dist/i18n/locales/de.js +12 -2
  68. package/dist/i18n/locales/el.d.ts +10 -0
  69. package/dist/i18n/locales/el.js +12 -2
  70. package/dist/i18n/locales/en.d.ts +10 -0
  71. package/dist/i18n/locales/en.js +12 -2
  72. package/dist/i18n/locales/es.d.ts +10 -0
  73. package/dist/i18n/locales/es.js +12 -2
  74. package/dist/i18n/locales/fr.d.ts +10 -0
  75. package/dist/i18n/locales/fr.js +12 -2
  76. package/dist/i18n/locales/hi.d.ts +10 -0
  77. package/dist/i18n/locales/hi.js +12 -2
  78. package/dist/i18n/locales/it.d.ts +13 -3
  79. package/dist/i18n/locales/it.js +14 -4
  80. package/dist/i18n/locales/ja.d.ts +10 -0
  81. package/dist/i18n/locales/ja.js +12 -2
  82. package/dist/i18n/locales/nl.d.ts +10 -0
  83. package/dist/i18n/locales/nl.js +12 -2
  84. package/dist/i18n/locales/pl.d.ts +10 -0
  85. package/dist/i18n/locales/pl.js +12 -2
  86. package/dist/i18n/locales/pt.d.ts +10 -0
  87. package/dist/i18n/locales/pt.js +12 -2
  88. package/dist/i18n/locales/ro.d.ts +10 -0
  89. package/dist/i18n/locales/ro.js +12 -2
  90. package/dist/i18n/locales/ru.d.ts +10 -0
  91. package/dist/i18n/locales/ru.js +12 -2
  92. package/dist/i18n/locales/sq.d.ts +10 -0
  93. package/dist/i18n/locales/sq.js +12 -2
  94. package/dist/i18n/locales/sv.d.ts +10 -0
  95. package/dist/i18n/locales/sv.js +12 -2
  96. package/dist/i18n/locales/tr.d.ts +10 -0
  97. package/dist/i18n/locales/tr.js +12 -2
  98. package/dist/i18n/locales/zh.d.ts +10 -0
  99. package/dist/i18n/locales/zh.js +12 -2
  100. package/dist/index.js +919 -916
  101. package/dist/locales/ar.json +12 -2
  102. package/dist/locales/de.json +12 -2
  103. package/dist/locales/el.json +12 -2
  104. package/dist/locales/en.json +12 -2
  105. package/dist/locales/es.json +12 -2
  106. package/dist/locales/fr.json +12 -2
  107. package/dist/locales/hi.json +12 -2
  108. package/dist/locales/it.json +14 -4
  109. package/dist/locales/ja.json +12 -2
  110. package/dist/locales/nl.json +12 -2
  111. package/dist/locales/pl.json +12 -2
  112. package/dist/locales/pt.json +12 -2
  113. package/dist/locales/ro.json +12 -2
  114. package/dist/locales/ru.json +12 -2
  115. package/dist/locales/sq.json +12 -2
  116. package/dist/locales/sv.json +12 -2
  117. package/dist/locales/tr.json +12 -2
  118. package/dist/locales/zh.json +12 -2
  119. package/dist/patterns/calendar/index.js +1 -1
  120. package/dist/tokens.css +2 -1
  121. package/package.json +5 -1
  122. package/dist/_chunks/appointment-card-D-oj_ugh.js +0 -296
  123. package/dist/_chunks/appointment-timeline-CymGHyIP.js +0 -403
  124. package/dist/_chunks/notes-panel-C4G-mhZ9.js +0 -380
  125. package/dist/_chunks/tasks-panel-DQuaVvl5.js +0 -757
  126. package/dist/_chunks/tool-rail-8Scslq3X.js +0 -524
@@ -0,0 +1,100 @@
1
+ import { useState as h, useRef as R, useEffect as L, useCallback as g } from "react";
2
+ import { u as x } from "./use-prefers-reduced-motion-BMwIQRjB.js";
3
+ import { u as E } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
4
+ function T({
5
+ durationMs: p = 200,
6
+ delayMs: y = 0,
7
+ reduceMotion: v
8
+ } = {}) {
9
+ const w = x(), u = v ?? w, r = u ? 0 : y, s = u ? 0 : p, a = r + s, [f, c] = h(
10
+ () => /* @__PURE__ */ new Set()
11
+ ), t = R(/* @__PURE__ */ new Map());
12
+ L(
13
+ () => () => {
14
+ t.current.forEach((e) => window.clearTimeout(e)), t.current.clear();
15
+ },
16
+ []
17
+ );
18
+ const i = g(
19
+ (e, n) => {
20
+ if (a === 0) {
21
+ n();
22
+ return;
23
+ }
24
+ if (t.current.has(e)) return;
25
+ const d = () => {
26
+ c((o) => {
27
+ const l = new Set(o);
28
+ return l.add(e), l;
29
+ });
30
+ const m = window.setTimeout(() => {
31
+ t.current.delete(e), c((o) => {
32
+ if (!o.has(e)) return o;
33
+ const l = new Set(o);
34
+ return l.delete(e), l;
35
+ }), n();
36
+ }, s);
37
+ t.current.set(e, m);
38
+ };
39
+ if (r === 0) {
40
+ d();
41
+ return;
42
+ }
43
+ t.current.set(e, window.setTimeout(d, r));
44
+ },
45
+ [a, r, s]
46
+ );
47
+ return { isLeaving: g((e) => f.has(e), [f]), leave: i, durationMs: a };
48
+ }
49
+ const b = [
50
+ "ds:[transform:translateY(var(--reflow-dy,0px))]",
51
+ "ds:transition-transform ds:duration-[var(--animation-duration)]",
52
+ "ds:ease-[var(--ease-out)]",
53
+ "ds:data-[reflow-snap]:transition-none",
54
+ "ds:motion-reduce:transition-none"
55
+ ].join(" ");
56
+ function C({
57
+ key: p,
58
+ durationMs: y = 200,
59
+ reduceMotion: v
60
+ }) {
61
+ const w = R(null), u = R(null), r = x(), s = v ?? r;
62
+ return E(() => {
63
+ const a = w.current;
64
+ if (!a) return;
65
+ const f = Array.from(
66
+ a.querySelectorAll("[data-reflow-id]")
67
+ ), c = /* @__PURE__ */ new Map();
68
+ for (const e of f) {
69
+ const n = e.dataset.reflowId;
70
+ n && c.set(n, e.getBoundingClientRect().top);
71
+ }
72
+ const t = u.current;
73
+ if (u.current = c, !t || s) return;
74
+ const i = [];
75
+ for (const e of f) {
76
+ const n = e.dataset.reflowId;
77
+ if (!n) continue;
78
+ const d = t.get(n), m = c.get(n);
79
+ if (d === void 0 || m === void 0) continue;
80
+ const o = d - m;
81
+ Math.abs(o) < 1 || (e.dataset.reflowSnap = "", e.style.setProperty("--reflow-dy", `${o}px`), i.push(e));
82
+ }
83
+ if (i.length === 0) return;
84
+ const S = window.requestAnimationFrame(() => {
85
+ for (const e of i)
86
+ delete e.dataset.reflowSnap, e.style.setProperty("--reflow-dy", "0px");
87
+ });
88
+ return () => {
89
+ window.cancelAnimationFrame(S);
90
+ for (const e of i)
91
+ delete e.dataset.reflowSnap, e.style.removeProperty("--reflow-dy");
92
+ };
93
+ }, [p, s, y]), { containerRef: w };
94
+ }
95
+ export {
96
+ b as R,
97
+ C as a,
98
+ T as u
99
+ };
100
+ //# sourceMappingURL=use-list-reflow-Cw43nxw5.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.33.0",
3
+ "packageVersion": "1.35.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -7074,6 +7074,20 @@
7074
7074
  }
7075
7075
  }
7076
7076
  },
7077
+ {
7078
+ "kind": "component",
7079
+ "id": "money",
7080
+ "capabilities": [],
7081
+ "state": [],
7082
+ "actions": [],
7083
+ "domHooks": {
7084
+ "root": {
7085
+ "attr": "data-component",
7086
+ "value": "money",
7087
+ "description": "Marks the element as a kit Money amount."
7088
+ }
7089
+ }
7090
+ },
7077
7091
  {
7078
7092
  "kind": "component",
7079
7093
  "id": "multi-select",
@@ -18,4 +18,19 @@
18
18
  * behaviour differs.
19
19
  */
20
20
  export declare function formatPrice(minorUnits: number, currency: string, locale: string): string;
21
+ /**
22
+ * The same amount as {@link formatPrice}, but broken into its typed parts so
23
+ * a renderer can treat the fraction differently from the rest.
24
+ *
25
+ * Splitting a formatted price with a regex is not safe across locales: in
26
+ * `it-IT` the group separator is `.` and the decimal is `,`, so `1.000 €`
27
+ * would read as a fraction of `000` and a "drop the zero fraction" rule
28
+ * would render it as `1 €`. `Intl.NumberFormat.formatToParts` labels each
29
+ * piece, so the fraction is whatever the locale says it is, wherever it
30
+ * sits relative to the currency symbol.
31
+ *
32
+ * Returns `null` when the locale or currency is rejected — callers fall
33
+ * back to {@link formatPrice}, which keeps the zero-decimal rule.
34
+ */
35
+ export declare function formatPriceParts(minorUnits: number, currency: string, locale: string, options?: Pick<Intl.NumberFormatOptions, 'signDisplay'>): Intl.NumberFormatPart[] | null;
21
36
  //# sourceMappingURL=format-price.d.ts.map
@@ -13,12 +13,15 @@ export interface AppointmentOperator {
13
13
  /** Numeric palette colour id, resolved to a kit token for the colour dot. */
14
14
  colorId?: number | string;
15
15
  }
16
- /** Patient summary — identity only, drives the avatar. */
16
+ /** Patient summary — identity + optional age driver. */
17
17
  export interface AppointmentPatient {
18
18
  /** Patient display name. */
19
19
  name: string;
20
20
  /** Optional avatar image URL. */
21
21
  avatarUrl?: string;
22
+ /** ISO-8601 date of birth — when present, the card renders the age as a
23
+ * suffix on the name (e.g. "Carol Danvers · 45"). */
24
+ dobIso?: string;
22
25
  }
23
26
  /** One treatment line within the appointment. */
24
27
  export interface AppointmentTreatment {
@@ -38,6 +41,22 @@ export interface AppointmentBookingReason {
38
41
  /** Localised specialty label. */
39
42
  specialty?: string;
40
43
  }
44
+ /** Money summary for the appointment. */
45
+ export interface AppointmentMoney {
46
+ /** Total billable amount in cents. When present, rendered as a
47
+ * TransactionChip. */
48
+ billableAmountCents?: number;
49
+ /** Outstanding unpaid amount in cents. When > 0, rendered as a warning
50
+ * TransactionChip so the front desk can flag it at a glance. */
51
+ unpaidAmountCents?: number;
52
+ }
53
+ /** Signing status for documents attached to the appointment. */
54
+ export interface AppointmentSigning {
55
+ /** How many documents require a signature. */
56
+ required: number;
57
+ /** How many have been completed so far. */
58
+ toComplete: number;
59
+ }
41
60
  /** Boolean appointment flags surfaced as chips / indicators. */
42
61
  export interface AppointmentFlags {
43
62
  bookedOnline?: boolean;
@@ -80,6 +99,15 @@ export interface AppointmentItem {
80
99
  bookingReason?: AppointmentBookingReason;
81
100
  /** Boolean flags. */
82
101
  flags?: AppointmentFlags;
102
+ /** Money summary — billable + unpaid amounts. */
103
+ money?: AppointmentMoney;
104
+ /** Whether this appointment is part of a recurring series. */
105
+ recurring?: boolean;
106
+ /** Signing status for attached documents. */
107
+ signing?: AppointmentSigning;
108
+ /** A note left by the patient at booking time. When present, a small
109
+ * message icon signals it. */
110
+ bookingNote?: string;
83
111
  /** Optional deep link — when present (and safe) the row renders as an anchor. */
84
112
  url?: string;
85
113
  }
@@ -87,6 +115,7 @@ declare const appointmentCardVariants: (props?: ({
87
115
  size?: "sm" | "md" | null | undefined;
88
116
  interactive?: boolean | null | undefined;
89
117
  surface?: "elevated" | "flat" | null | undefined;
118
+ selected?: boolean | null | undefined;
90
119
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
91
120
  export interface AppointmentCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'title'>, VariantProps<typeof appointmentCardVariants> {
92
121
  /** The appointment to render. */
@@ -112,6 +141,12 @@ export interface AppointmentCardProps extends Omit<HTMLAttributes<HTMLDivElement
112
141
  showPatient?: boolean;
113
142
  /** Fires when the row is activated. */
114
143
  onActivate?: (item: AppointmentItem) => void;
144
+ /**
145
+ * Mark this row as the active/selected appointment — an info-tinted
146
+ * inline-start bar plus a soft wash, so the eye keeps its place in the
147
+ * list after a click. Renders `aria-current="true"` for assistive tech.
148
+ */
149
+ selected?: boolean;
115
150
  }
116
151
  export declare const AppointmentCard: import("react").ForwardRefExoticComponent<AppointmentCardProps & import("react").RefAttributes<HTMLDivElement>>;
117
152
  //# sourceMappingURL=appointment-card.d.ts.map
@@ -1,5 +1,5 @@
1
- import { A as p } from "../../_chunks/appointment-card-D-oj_ugh.js";
2
- import { A as e, a as o, b as r } from "../../_chunks/appointment-tray-DCk8gHod.js";
1
+ import { A as p } from "../../_chunks/appointment-card-Bh_CIlc6.js";
2
+ import { A as e, a as o, b as r } from "../../_chunks/appointment-tray-4I9wTAi4.js";
3
3
  import { i } from "../../_chunks/is-safe-url-DkETxeHz.js";
4
4
  export {
5
5
  p as AppointmentCard,
@@ -39,6 +39,12 @@ export interface AppointmentTimelineProps extends Omit<HTMLAttributes<HTMLElemen
39
39
  showPatient?: boolean;
40
40
  /** Fires when a row is activated. */
41
41
  onOpenAppointment?: (item: AppointmentItem) => void;
42
+ /**
43
+ * The id of the currently selected appointment. The matching card
44
+ * renders with `selected` (info-tinted accent + `aria-current`) so the
45
+ * eye keeps its place in the list after a click.
46
+ */
47
+ selectedId?: string;
42
48
  /** Load earlier (past) appointments — fired when the top edge is reached. */
43
49
  onLoadEarlier?: () => void;
44
50
  /** Load later (future) appointments — fired when the bottom edge is reached. */
@@ -1,4 +1,4 @@
1
- import { A as i, a as t } from "../../_chunks/appointment-timeline-CymGHyIP.js";
1
+ import { A as i, a as t } from "../../_chunks/appointment-timeline-De-Wqdkw.js";
2
2
  export {
3
3
  i as AppointmentTimeline,
4
4
  t as appointmentTimelineAgent
@@ -1,4 +1,4 @@
1
- import { C as e, c as C } from "../../_chunks/care-plan-card-CZW476Kg.js";
1
+ import { C as e, c as C } from "../../_chunks/care-plan-card-DHVhBcvs.js";
2
2
  export {
3
3
  e as CarePlanCard,
4
4
  C as carePlanCardAgent
@@ -1,4 +1,4 @@
1
- import { C as n, c as e } from "../../_chunks/care-plan-entry-card-BMUYagEw.js";
1
+ import { C as n, c as e } from "../../_chunks/care-plan-entry-card-Dx6IdTcR.js";
2
2
  export {
3
3
  n as CarePlanEntryCard,
4
4
  e as carePlanEntryCardAgent
@@ -1,4 +1,4 @@
1
- import { C as r, c as n } from "../../_chunks/care-plan-header-B5CBE0zu.js";
1
+ import { C as r, c as n } from "../../_chunks/care-plan-header-UTX5ZD74.js";
2
2
  export {
3
3
  r as CarePlanHeader,
4
4
  n as carePlanHeaderAgent
@@ -1,4 +1,4 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  /** Author identity — drives the avatar + visible byline. */
4
4
  export interface ClinicalNoteAuthor {
@@ -105,6 +105,13 @@ export interface ClinicalNoteCardProps extends Omit<HTMLAttributes<HTMLDivElemen
105
105
  * the note can be (un)pinned in place — the pin glyph fills and tints to the
106
106
  * accent when pinned (no button fill). Omit for a static, display-only card.
107
107
  */
108
+ /**
109
+ * Host-owned actions for this note (edit, delete, share …), rendered
110
+ * beside the pin and flag. They belong in the same cluster: a reader
111
+ * looking for what they can do to a note should find every affordance
112
+ * in one place, not some in the card and the rest below it.
113
+ */
114
+ headerActions?: ReactNode;
108
115
  onTogglePin?: () => void;
109
116
  /** As `onTogglePin`, for the flagged state (warning-tinted when flagged). */
110
117
  onToggleFlag?: () => void;
@@ -1,4 +1,4 @@
1
- import { C as e, c as i } from "../../_chunks/clinical-note-card-D2WTV2CO.js";
1
+ import { C as e, c as i } from "../../_chunks/clinical-note-card-CTRzmqvv.js";
2
2
  export {
3
3
  e as ClinicalNoteCard,
4
4
  i as clinicalNoteCardAgent
@@ -29,7 +29,7 @@ declare const CommandPalette: import("react").ForwardRefExoticComponent<Omit<{
29
29
  ref?: React.Ref<HTMLDivElement>;
30
30
  } & {
31
31
  asChild?: boolean;
32
- }, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
32
+ }, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
33
33
  label?: string;
34
34
  shouldFilter?: boolean;
35
35
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -45,7 +45,7 @@ declare const CommandInput: import("react").ForwardRefExoticComponent<Omit<Omit<
45
45
  ref?: React.Ref<HTMLInputElement>;
46
46
  } & {
47
47
  asChild?: boolean;
48
- }, "asChild" | "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
48
+ }, "key" | "asChild" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
49
49
  value?: string;
50
50
  onValueChange?: (search: string) => void;
51
51
  } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -55,7 +55,7 @@ declare const CommandList: import("react").ForwardRefExoticComponent<Omit<{
55
55
  ref?: React.Ref<HTMLDivElement>;
56
56
  } & {
57
57
  asChild?: boolean;
58
- }, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
58
+ }, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
59
59
  label?: string;
60
60
  } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
61
61
  declare const CommandEmpty: import("react").ForwardRefExoticComponent<Omit<{
@@ -64,14 +64,14 @@ declare const CommandEmpty: import("react").ForwardRefExoticComponent<Omit<{
64
64
  ref?: React.Ref<HTMLDivElement>;
65
65
  } & {
66
66
  asChild?: boolean;
67
- }, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
67
+ }, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
68
68
  declare const CommandGroup: import("react").ForwardRefExoticComponent<Omit<{
69
69
  children?: React.ReactNode;
70
70
  } & Omit<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
71
71
  ref?: React.Ref<HTMLDivElement>;
72
72
  } & {
73
73
  asChild?: boolean;
74
- }, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
74
+ }, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
75
75
  heading?: React.ReactNode;
76
76
  value?: string;
77
77
  forceMount?: boolean;
@@ -83,7 +83,7 @@ declare const CommandItem: import("react").ForwardRefExoticComponent<Omit<{
83
83
  ref?: React.Ref<HTMLDivElement>;
84
84
  } & {
85
85
  asChild?: boolean;
86
- }, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
86
+ }, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
87
87
  disabled?: boolean;
88
88
  onSelect?: (value: string) => void;
89
89
  value?: string;
@@ -94,7 +94,7 @@ declare const CommandSeparator: import("react").ForwardRefExoticComponent<Omit<P
94
94
  ref?: React.Ref<HTMLDivElement>;
95
95
  } & {
96
96
  asChild?: boolean;
97
- }, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
97
+ }, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
98
98
  alwaysRender?: boolean;
99
99
  } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
100
100
  export type CommandShortcutProps = ComponentPropsWithoutRef<'kbd'>;
@@ -1,4 +1,4 @@
1
- import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-BZqi8Hck.js";
1
+ import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-DSI9uumA.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 r, a as l, c as a, u as t, b as e, d as n } from "../../_chunks/control-room-rail-iO_BCaq1.js";
1
+ import { C as r, a as l, c as a, u as t, b as e, d as n } from "../../_chunks/control-room-rail-5MbhjsxN.js";
2
2
  export {
3
3
  r as ControlRoomProvider,
4
4
  l as ControlRoomRail,
@@ -40,6 +40,7 @@ export * from './position-grid';
40
40
  export * from './token-insert-menu';
41
41
  export * from './file-upload';
42
42
  export * from './form-field';
43
+ export * from './money';
43
44
  export * from './multi-select';
44
45
  export * from './number-input';
45
46
  export * from './otp-input';
@@ -0,0 +1,4 @@
1
+ export { Money } from './money';
2
+ export type { MoneyProps, MoneyDecimals } from './money';
3
+ export { moneyAgent } from './money.agent';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { M as m, m as n } from "../../_chunks/money.agent-Dw55UxUA.js";
2
+ export {
3
+ m as Money,
4
+ n as moneyAgent
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ import type { AgentAdapter } from '../../agent/types';
2
+ export declare const moneyAgent: AgentAdapter;
3
+ //# sourceMappingURL=money.agent.d.ts.map
@@ -0,0 +1,38 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const moneyVariants: (props?: ({
4
+ size?: "sm" | "md" | "lg" | null | undefined;
5
+ tone?: "default" | "muted" | "positive" | "negative" | null | undefined;
6
+ strikethrough?: boolean | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export type MoneyDecimals = 'full' | 'muted' | 'hideWhenZero';
9
+ export interface MoneyProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'>, Omit<VariantProps<typeof moneyVariants>, 'tone'> {
10
+ /**
11
+ * Amount in the SMALLEST currency unit (cents), the kit's price
12
+ * convention — never a pre-formatted string. Zero-decimal currencies
13
+ * (JPY, KRW …) take the major amount, as `formatPrice` expects.
14
+ */
15
+ value: number;
16
+ /** ISO-4217 code. Defaults to EUR, the practice currency. */
17
+ currency?: string;
18
+ /** BCP 47 locale. Defaults to the active i18n language. */
19
+ locale?: string;
20
+ /**
21
+ * Colour. `auto` follows the sign — a negative amount reads destructive,
22
+ * everything else inherits the default. Explicit tones always win.
23
+ */
24
+ tone?: 'default' | 'muted' | 'positive' | 'negative' | 'auto';
25
+ /**
26
+ * What to do with the fraction:
27
+ * `full` (default) leaves it alone;
28
+ * `muted` de-emphasises it so the whole units read first;
29
+ * `hideWhenZero` drops it ONLY when it is all zeros, so a price is
30
+ * never rounded away in the display.
31
+ */
32
+ decimals?: MoneyDecimals;
33
+ /** Force a leading `+` on positive amounts (a credit, a movement). */
34
+ signDisplay?: 'auto' | 'always';
35
+ }
36
+ export declare const Money: import("react").ForwardRefExoticComponent<MoneyProps & import("react").RefAttributes<HTMLSpanElement>>;
37
+ export {};
38
+ //# sourceMappingURL=money.d.ts.map
@@ -1,4 +1,4 @@
1
- import { N as a } from "../../_chunks/notes-panel-C4G-mhZ9.js";
1
+ import { N as a } from "../../_chunks/notes-panel-BjLt-kiP.js";
2
2
  export {
3
3
  a as NotesPanel
4
4
  };
@@ -142,11 +142,26 @@ export interface NotesPanelProps extends Omit<HTMLAttributes<HTMLElement>, 'titl
142
142
  /** Toggle a note's flagged state — renders an inline flag button per note. */
143
143
  onToggleFlag?: (id: string) => void;
144
144
  /**
145
- * Host-owned actions rendered under each note (edit, delete, share…),
145
+ * Host-owned actions for each note (edit, delete, share…), rendered by
146
+ * the note card beside its pin and flag,
146
147
  * aligned to the inline end. The host supplies labelled controls and owns
147
148
  * what they do — the panel stays a timeline and never edits a note itself.
148
149
  */
149
150
  noteActions?: (note: NotesPanelNote) => ReactNode;
151
+ /**
152
+ * Request the host to delete a note. When provided, the panel holds the
153
+ * row on screen long enough to fade it out before calling this, so the
154
+ * removal reads as a removal rather than a vanish. Omit to let the host
155
+ * own the timing entirely (the reflow animation still closes the gap).
156
+ */
157
+ onDeleteNote?: (id: string) => void;
158
+ /**
159
+ * Show a confirmation dialog before calling `onDeleteNote`. When `true`
160
+ * (the default when `onDeleteNote` is provided), the built-in delete
161
+ * button opens an alert dialog first; the exit fade only starts after
162
+ * the user confirms. Pass `false` to delete immediately on click.
163
+ */
164
+ confirmDelete?: boolean;
150
165
  /** Panel heading. Defaults to the localised "Notes". */
151
166
  title?: string;
152
167
  /** Composer placeholder. */
@@ -1,4 +1,4 @@
1
- import { O as e, o as a } from "../../_chunks/operator-hero-D7-iiFQ9.js";
1
+ import { O as e, o as a } from "../../_chunks/operator-hero-aG_qyn6g.js";
2
2
  export {
3
3
  e as OperatorHero,
4
4
  a as operatorHeroAgent
@@ -1,4 +1,4 @@
1
- import { P as t, a as n, p as r, b as s } from "../../_chunks/payment-request-card-lmKLwsDs.js";
1
+ import { P as t, a as n, p as r, b as s } from "../../_chunks/payment-request-card-DvEsWEkC.js";
2
2
  export {
3
3
  t as PaymentCard,
4
4
  n as PaymentRequestCard,
@@ -1,4 +1,4 @@
1
- import { P as t, p as a } from "../../_chunks/practice-results-DjEzPgAK.js";
1
+ import { P as t, p as a } from "../../_chunks/practice-results-kayDEorM.js";
2
2
  export {
3
3
  t as PracticeResults,
4
4
  a as practiceResultsAgent
@@ -1,4 +1,4 @@
1
- import { R as a, r as e, w as i } from "../../_chunks/rich-text-editor-CQ7yZdG3.js";
1
+ import { R as a, r as e, w as i } from "../../_chunks/rich-text-editor-CCI-Y3DN.js";
2
2
  export {
3
3
  a as RichTextEditor,
4
4
  e as richTextEditorAgent,
@@ -23,7 +23,7 @@ export interface RichTextEditorProps {
23
23
  /** Accessible name for the editing region. */
24
24
  ariaLabel?: string;
25
25
  /** Size variant for the minimum block-size of the editing region. */
26
- minHeight?: 'sm' | 'md' | 'lg';
26
+ minHeight?: 'sm' | 'md' | 'lg' | 'fill';
27
27
  /** Show a right-aligned editor-extensions affordance (visual placeholder). */
28
28
  showExtensions?: boolean;
29
29
  /** Extra class names on the wrapper. */
@@ -1,4 +1,4 @@
1
- import { T as s, i as t } from "../../_chunks/task-card-BUgK6yZT.js";
1
+ import { T as s, i as t } from "../../_chunks/task-card-BalrLkSz.js";
2
2
  import { t as o } from "../../_chunks/task-card.agent-CF2N_uu4.js";
3
3
  export {
4
4
  s as TaskCard,
@@ -46,11 +46,19 @@ export interface TaskCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onC
46
46
  /** Fires when the row is activated (click / Enter / Space). */
47
47
  onActivate?: (item: TaskItem) => void;
48
48
  /**
49
- * Trailing per-row action toolbar (icon buttons: mark done, schedule,
50
- * edit, …). Rendered above the stretched-link overlay so the controls
51
- * stay clickable inside an interactive row.
49
+ * Trailing per-row action toolbar (icon buttons: schedule, edit, …).
50
+ * Rendered above the stretched-link overlay so the controls stay
51
+ * clickable inside an interactive row.
52
52
  */
53
53
  actions?: ReactNode;
54
+ /**
55
+ * Replaces the leading status glyph. Pass a control (the done checkbox)
56
+ * when the row can be completed in place: the glyph alone only reports
57
+ * status, and rendering both a glyph and a matching toggle elsewhere in
58
+ * the row shows the same mark twice, of which only one does anything.
59
+ * Rendered above the stretched-link overlay so it stays clickable.
60
+ */
61
+ leading?: ReactNode;
54
62
  }
55
63
  declare const taskCardVariants: (props?: ({
56
64
  size?: "sm" | "md" | "xs" | null | undefined;
@@ -1,4 +1,4 @@
1
- import { T as s, t } from "../../_chunks/task-tray-CYG6rj2s.js";
1
+ import { T as s, t } from "../../_chunks/task-tray-COo-RlDv.js";
2
2
  export {
3
3
  s as TaskTray,
4
4
  t as taskTrayAgent
@@ -1,4 +1,4 @@
1
- import { T as e, t } from "../../_chunks/tasks-panel-DQuaVvl5.js";
1
+ import { T as e, t } from "../../_chunks/tasks-panel-DLKpSNoE.js";
2
2
  export {
3
3
  e as TasksPanel,
4
4
  t as tasksPanelAgent
@@ -69,7 +69,7 @@ export interface TasksPanelProps extends Omit<HTMLAttributes<HTMLElement>, 'onCl
69
69
  nowIso?: string;
70
70
  /** Panel heading. Defaults to the localised "Tasks". */
71
71
  title?: string;
72
- /** Visual density forwarded to each TaskCard. Defaults to `xs` — the compact rail row. */
72
+ /** Visual density forwarded to each TaskCard. Defaults to `sm`, matching the note and appointment rows. */
73
73
  size?: 'xs' | 'sm' | 'md';
74
74
  /** Fires when a row is activated. */
75
75
  onOpenTask?: (item: TasksPanelItem) => void;
@@ -1,4 +1,4 @@
1
- import { T as l, t } from "../../_chunks/tool-rail-8Scslq3X.js";
1
+ import { T as l, t } from "../../_chunks/tool-rail-ONaV-Nzz.js";
2
2
  export {
3
3
  l as ToolRail,
4
4
  t as toolRailAgent
@@ -24,4 +24,7 @@ export { useEdgeResize, type UseEdgeResizeOptions, type UseEdgeResizeReturn, typ
24
24
  export { useSigningSession, type SigningField, type SigningFieldBase, type UseSigningSessionReturn, } from './use-signing-session';
25
25
  export { useZoomDrilldown, ZOOM_DRILLDOWN_TRANSITION_CLASS, type UseZoomDrilldownOptions, type UseZoomDrilldownReturn, } from './use-zoom-drilldown';
26
26
  export { useCountdown, type UseCountdownOptions, type UseCountdownReturn, } from './use-countdown';
27
+ export { useCheckAnimation, type UseCheckAnimationOptions, type UseCheckAnimationReturn, } from './use-check-animation';
28
+ export { useExitTransition, type UseExitTransitionOptions, type UseExitTransitionReturn, } from './use-exit-transition';
29
+ export { useListReflow, REFLOW_ROW_CLASS, type UseListReflowOptions, type UseListReflowReturn, } from './use-list-reflow';
27
30
  //# sourceMappingURL=index.d.ts.map