@alfadocs/ui-kit 1.3.7 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.3.7",
3
+ "packageVersion": "1.3.8",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
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-S0cCfFg9.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-v2h_WUXg.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-CrRj64Nz.js";
@@ -0,0 +1,29 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { TFunction } from 'i18next';
3
+ import { type IntakeAnswerMap } from './anamnesis-intake';
4
+ import type { PracticeAnamnesisConfig } from './anamnesis-config';
5
+ import type { AnamnesisRecord } from './anamnesis-types';
6
+ export interface AnamnesisQuestionnaireProps {
7
+ record: AnamnesisRecord;
8
+ t: TFunction;
9
+ /** The practice's configured vocabulary. Omitted = the kit-seeded default. */
10
+ config?: PracticeAnamnesisConfig;
11
+ /** The questionnaire was submitted — receives the full answer map. The
12
+ * surface keeps its own working copy either way; this is the seam a
13
+ * platform host persists through. */
14
+ onSubmit?: (answers: IntakeAnswerMap) => void;
15
+ /** Open the section containing this field key and focus it on mount. */
16
+ jumpToField?: string;
17
+ /** Host status chips (signature / expiry / save feedback) above the tabs. */
18
+ statusSlot?: ReactNode;
19
+ /** Mount on this tab instead of the questionnaire. Demo/story hook only —
20
+ * Chromatic skips play functions, so a click-selected tab is never
21
+ * snapshotted. */
22
+ defaultTab?: AnamnesisQuestionnaireTab;
23
+ }
24
+ export type AnamnesisQuestionnaireTab = 'questionnaire' | 'trend';
25
+ export declare function AnamnesisQuestionnaire({ record, t, config, onSubmit, jumpToField, statusSlot, defaultTab, }: AnamnesisQuestionnaireProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare namespace AnamnesisQuestionnaire {
27
+ var displayName: string;
28
+ }
29
+ //# sourceMappingURL=anamnesis-questionnaire.d.ts.map
@@ -1,5 +1,9 @@
1
1
  /** The three host contexts the one pattern renders in. */
2
- export type AnamnesisMode = 'intake' | 'compile' | 'readOnly';
2
+ /** `questionnaire` is the contained platform surface: ONE questionnaire for
3
+ * clinician and patient alike, plus the trend over its numeric answers. It
4
+ * deliberately carries none of `compile`'s bespoke measurement blocks — a
5
+ * practice that needs the two roles asked different things makes two forms. */
6
+ export type AnamnesisMode = 'intake' | 'compile' | 'questionnaire' | 'readOnly';
3
7
  /** Recorded biological sex — gates the menstrual-cycle / pregnancy fields. */
4
8
  export type PatientSex = 'female' | 'male' | 'unspecified';
5
9
  /** Who authored a value. Patient-submitted values render a "from patient"
@@ -5,6 +5,7 @@ import { type AnamnesisCompileView } from './anamnesis-compile';
5
5
  import type { DisclosureAudience } from './anamnesis-disclosure';
6
6
  import { type IntakeAnswerMap } from './anamnesis-intake';
7
7
  import type { MissingAnswer } from './anamnesis-digest';
8
+ import type { AnamnesisQuestionnaireTab } from './anamnesis-questionnaire';
8
9
  import type { AnamnesisMode, AnamnesisRecord, OpenAnamnesisNote, PractitionerOption } from './anamnesis-types';
9
10
  export interface AnamnesisProps {
10
11
  /** Which host context to render. */
@@ -49,6 +50,9 @@ export interface AnamnesisProps {
49
50
  /** Compile mode only: every edit to the working record — the visit-data
50
51
  * persistence seam (hosts debounce + diff). See `AnamnesisCompileProps`. */
51
52
  onRecordChange?: (record: AnamnesisRecord) => void;
53
+ /** Questionnaire mode only: mount on this tab instead of the questionnaire.
54
+ * Demo/story hook only — Chromatic skips play functions. */
55
+ defaultQuestionnaireTab?: AnamnesisQuestionnaireTab;
52
56
  /** Compile mode only: the practice's operators, offered in the visit's
53
57
  * Practitioner select. Omitted or empty keeps the free-text input. */
54
58
  practitioners?: PractitionerOption[];
@@ -65,5 +69,5 @@ export interface AnamnesisProps {
65
69
  defaultShareOpen?: boolean;
66
70
  defaultExportAudience?: DisclosureAudience;
67
71
  }
68
- export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, onRecordChange, practitioners, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
72
+ export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, onRecordChange, defaultQuestionnaireTab, practitioners, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
69
73
  //# sourceMappingURL=anamnesis.d.ts.map
@@ -1,5 +1,6 @@
1
1
  export { Anamnesis, type AnamnesisProps } from './anamnesis';
2
2
  export type { IntakeAnswerMap } from './anamnesis-intake';
3
+ export type { AnamnesisQuestionnaireTab } from './anamnesis-questionnaire';
3
4
  export type { MissingAnswer } from './anamnesis-digest';
4
5
  export { AnamnesisConfigEditor, keyFromLabel, seededConfigDraft, type AnamnesisConfigEditorProps, } from './anamnesis-config-editor';
5
6
  export { LOCKED_PARAMETER_KEYS, SEEDED_ANAMNESIS_CONFIG, TARGETABLE_PARAMETER_KEYS, allParametersIncludingArchived, allPathologiesIncludingArchived, allSectionsIncludingArchived, assignablePathologyCodes, configuredParameters, configuredPathologies, configuredSections, isParameterLocked, isParameterTargetable, resolveConfig, type PracticeAnamnesisConfig, } from './anamnesis-config';
@@ -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-S0cCfFg9.js";
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-v2h_WUXg.js";
2
2
  export {
3
3
  e as Anamnesis,
4
4
  i as AnamnesisConfigEditor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",