@alfadocs/ui-kit 1.3.4 → 1.3.5
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.
- package/dist/_chunks/{anamnesis-i18n-DhehE8th.js → anamnesis-i18n-Bzovcr9e.js} +2372 -2204
- package/dist/agent-catalog.json +1 -1
- package/dist/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-compile.d.ts +6 -1
- package/dist/patterns/anamnesis/anamnesis-reorder.d.ts +42 -0
- package/dist/patterns/anamnesis/anamnesis.d.ts +4 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/package.json +1 -1
package/dist/agent-catalog.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -214,7 +214,7 @@ import { T as Og } from "./_chunks/transaction-chip-DJCstquX.js";
|
|
|
214
214
|
import { W as yg, a as kg } from "./_chunks/whatsapp-button-BIy6NaJK.js";
|
|
215
215
|
import { C as vg, W as Gg, a as Hg, b as wg, c as Vg, i as Ug, l as Wg, m as Kg, r as Yg, w as Xg, d as qg, e as zg, f as jg } from "./_chunks/workflow-map-BVMeVHkV.js";
|
|
216
216
|
import { A as Jg, a as Zg, b as $g, c as aC } from "./_chunks/alia-sidebar-DzNz1gDf.js";
|
|
217
|
-
import { A as rC, a as sC, L as oC, P as tC, S as nC, T as iC, b as pC, c as mC, d as lC, e as dC, f as AC, g as cC, h as fC, i as gC, j as CC, k as SC, l as xC, m as TC, r as uC, n as PC, s as IC, o as EC } from "./_chunks/anamnesis-i18n-
|
|
217
|
+
import { A as rC, a as sC, L as oC, P as tC, S as nC, T as iC, b as pC, c as mC, d as lC, e as dC, f as AC, g as cC, h as fC, i as gC, j as CC, k as SC, l as xC, m as TC, r as uC, n as PC, s as IC, o as EC } from "./_chunks/anamnesis-i18n-Bzovcr9e.js";
|
|
218
218
|
import { C as RC, M as _C, P as NC } from "./_chunks/marketplace-app-shell-DwcFMxzp.js";
|
|
219
219
|
import { P as DC } from "./_chunks/payment-automation-upsell-D_x880pr.js";
|
|
220
220
|
import { S as MC } from "./_chunks/signature-request-DZEFtbER.js";
|
|
@@ -40,6 +40,11 @@ export interface AnamnesisCompileProps {
|
|
|
40
40
|
* data. Fires AFTER the change lands in state, with the full record;
|
|
41
41
|
* hosts debounce and diff. NOT called for the initial mount. */
|
|
42
42
|
onRecordChange?: (record: AnamnesisRecord) => void;
|
|
43
|
+
/** The calendar date (ISO) a NEW follow-up visit is created on. A host
|
|
44
|
+
* passes its "today"; defaults to the latest visit's date so kit demos
|
|
45
|
+
* and tests stay deterministic (the surface deliberately never reads the
|
|
46
|
+
* wall clock). The date field is editable either way. */
|
|
47
|
+
newVisitDateIso?: string;
|
|
43
48
|
/** The host's side panel, forwarded to the Evolution view. Omitted = the
|
|
44
49
|
* evolution surface reads notes in place. */
|
|
45
50
|
onOpenNote?: OpenAnamnesisNote;
|
|
@@ -54,5 +59,5 @@ export interface AnamnesisCompileProps {
|
|
|
54
59
|
/** Mount the export control on this audience. Demo/story hook. */
|
|
55
60
|
defaultExportAudience?: DisclosureAudience;
|
|
56
61
|
}
|
|
57
|
-
export declare function AnamnesisCompile({ record: initial, t, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onMissingAnswerJump, onRecordChange, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisCompileProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function AnamnesisCompile({ record: initial, t, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onMissingAnswerJump, onRecordChange, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisCompileProps): import("react/jsx-runtime").JSX.Element;
|
|
58
63
|
//# sourceMappingURL=anamnesis-compile.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type DragEvent, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
export interface AnamnesisReorderGroupProps {
|
|
4
|
+
/** Number of rows in the group — bounds keyboard moves and gives the
|
|
5
|
+
* announcement its "of {{total}}". */
|
|
6
|
+
count: number;
|
|
7
|
+
/** Move a row from `from` to `to` — both DISPLAY indices of the group. */
|
|
8
|
+
onReorder: (from: number, to: number) => void;
|
|
9
|
+
t: TFunction;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/** One reorderable list. Renders its children untouched plus a visually
|
|
13
|
+
* hidden polite live region the rows announce their moves into. Nesting is
|
|
14
|
+
* fine — a row binds to its NEAREST group, and a drag never crosses groups
|
|
15
|
+
* (each group tracks its own drag source). */
|
|
16
|
+
export declare function AnamnesisReorderGroup({ count, onReorder, t, children, }: AnamnesisReorderGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface AnamnesisReorderRowRender {
|
|
18
|
+
/** Spread onto the element that drags as one unit (the `<li>`, the section
|
|
19
|
+
* header row…). `className` carries the dragging / drop-target affordances —
|
|
20
|
+
* merge it with the row's own classes. */
|
|
21
|
+
rowProps: {
|
|
22
|
+
draggable: true;
|
|
23
|
+
onDragStart: (event: DragEvent<HTMLElement>) => void;
|
|
24
|
+
onDragEnd: () => void;
|
|
25
|
+
onDragOver: (event: DragEvent<HTMLElement>) => void;
|
|
26
|
+
onDragLeave: () => void;
|
|
27
|
+
onDrop: (event: DragEvent<HTMLElement>) => void;
|
|
28
|
+
className: string;
|
|
29
|
+
};
|
|
30
|
+
/** The grip button — mount it INSIDE the row's action group so the drag
|
|
31
|
+
* affordance sits with the row's other controls. */
|
|
32
|
+
handle: ReactElement;
|
|
33
|
+
}
|
|
34
|
+
export interface AnamnesisReorderRowProps {
|
|
35
|
+
/** Zero-based DISPLAY position of this row within its group. */
|
|
36
|
+
index: number;
|
|
37
|
+
/** Accessible name of the row — names the handle and the announcements. */
|
|
38
|
+
label: string;
|
|
39
|
+
children: (row: AnamnesisReorderRowRender) => ReactElement;
|
|
40
|
+
}
|
|
41
|
+
export declare function AnamnesisReorderRow({ index, label, children, }: AnamnesisReorderRowProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
42
|
+
//# sourceMappingURL=anamnesis-reorder.d.ts.map
|
|
@@ -49,6 +49,9 @@ export interface AnamnesisProps {
|
|
|
49
49
|
/** Compile mode only: every edit to the working record — the visit-data
|
|
50
50
|
* persistence seam (hosts debounce + diff). See `AnamnesisCompileProps`. */
|
|
51
51
|
onRecordChange?: (record: AnamnesisRecord) => void;
|
|
52
|
+
/** Compile mode only: the calendar date a NEW follow-up visit is created
|
|
53
|
+
* on. A host passes its "today"; defaults to the latest visit's date. */
|
|
54
|
+
newVisitDateIso?: string;
|
|
52
55
|
/** Compile mode only: mount on this view instead of Summary. Demo/story
|
|
53
56
|
* hook only, for the same Chromatic reason as the flags below. */
|
|
54
57
|
defaultView?: AnamnesisCompileView;
|
|
@@ -59,5 +62,5 @@ export interface AnamnesisProps {
|
|
|
59
62
|
defaultShareOpen?: boolean;
|
|
60
63
|
defaultExportAudience?: DisclosureAudience;
|
|
61
64
|
}
|
|
62
|
-
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, onRecordChange, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, onRecordChange, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
63
66
|
//# sourceMappingURL=anamnesis.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, L as n, P as r, S as o, T as l, b as t, c as d, d as g, e as A, f as E, g as c, h as m, i as P, j as f, k as S, l as T, m as h, r as u, n as N, s as _, o as C } from "../../_chunks/anamnesis-i18n-
|
|
1
|
+
import { A as e, a as i, L as n, P as r, S as o, T as l, b as t, c as d, d as g, e as A, f as E, g as c, h as m, i as P, j as f, k as S, l as T, m as h, r as u, n as N, s as _, o as C } from "../../_chunks/anamnesis-i18n-Bzovcr9e.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Anamnesis,
|
|
4
4
|
i as AnamnesisConfigEditor,
|
package/package.json
CHANGED