@alfadocs/ui-kit 1.4.0 → 1.4.2

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.4.0",
3
+ "packageVersion": "1.4.2",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
package/dist/index.js CHANGED
@@ -214,7 +214,7 @@ import { T as yg } from "./_chunks/transaction-chip-DJCstquX.js";
214
214
  import { W as Bg, a as Gg } from "./_chunks/whatsapp-button-BIy6NaJK.js";
215
215
  import { C as Hg, W as wg, a as Vg, b as Wg, c as Ug, i as Kg, l as Yg, m as Xg, r as qg, w as zg, d as jg, e as Qg, f as Jg } from "./_chunks/workflow-map-BVMeVHkV.js";
216
216
  import { A as $g, a as aC, b as eC, c as sC } from "./_chunks/alia-sidebar-DSBZMick.js";
217
- import { A as oC, a as tC, L as nC, P as iC, S as pC, T as mC, b as lC, c as dC, d as AC, e as cC, f as fC, g as gC, h as CC, i as SC, j as xC, k as TC, l as uC, m as PC, n as IC, r as EC, o as bC, s as RC, p as _C } from "./_chunks/anamnesis-i18n-BA631X4t.js";
217
+ import { A as oC, a as tC, L as nC, P as iC, S as pC, T as mC, b as lC, c as dC, d as AC, e as cC, f as fC, g as gC, h as CC, i as SC, j as xC, k as TC, l as uC, m as PC, n as IC, r as EC, o as bC, s as RC, p as _C } from "./_chunks/anamnesis-i18n-CwQX6KXF.js";
218
218
  import { C as hC, M as DC, P as FC } from "./_chunks/marketplace-app-shell-BLRvg-M0.js";
219
219
  import { P as OC } from "./_chunks/payment-automation-upsell-D_x880pr.js";
220
220
  import { S as yC } from "./_chunks/signature-request-CrRj64Nz.js";
@@ -38,6 +38,15 @@ export interface AnamnesisQuestionnaireProps {
38
38
  * is one, else the questionnaire. Demo/story hook too — Chromatic skips
39
39
  * play functions, so a click-selected tab is never snapshotted. */
40
40
  defaultTab?: AnamnesisQuestionnaireTab;
41
+ /** Lock the questionnaire (every control disabled, no footer). A host with
42
+ * nothing to edit — no interview selected yet — must not offer a Submit
43
+ * that would post into the void. */
44
+ readOnly?: boolean;
45
+ /** Render this INSTEAD of the questionnaire in its tab panel — the host's
46
+ * restriction message when the reader may not see the answers. The tab
47
+ * strip stays, so the trend and the host's own tabs remain reachable;
48
+ * unmounting the whole surface for one withheld panel took them with it. */
49
+ questionnaireSlot?: ReactNode;
41
50
  }
42
51
  /** A host-supplied tab that precedes the built-in ones. */
43
52
  export interface AnamnesisLeadingTab {
@@ -48,7 +57,7 @@ export interface AnamnesisLeadingTab {
48
57
  /** The built-in tab values, widened so a host's leading-tab values type
49
58
  * without a cast. */
50
59
  export type AnamnesisQuestionnaireTab = 'questionnaire' | 'trend' | (string & {});
51
- export declare function AnamnesisQuestionnaire({ record, t, config, onSubmit, jumpToField, statusSlot, onTargetChange, hideTargetStrip, leadingTabs, tab: tabProp, onTabChange, defaultTab, }: AnamnesisQuestionnaireProps): import("react/jsx-runtime").JSX.Element;
60
+ export declare function AnamnesisQuestionnaire({ record, t, config, onSubmit, jumpToField, statusSlot, onTargetChange, hideTargetStrip, leadingTabs, readOnly, questionnaireSlot, tab: tabProp, onTabChange, defaultTab, }: AnamnesisQuestionnaireProps): import("react/jsx-runtime").JSX.Element;
52
61
  export declare namespace AnamnesisQuestionnaire {
53
62
  var displayName: string;
54
63
  }
@@ -44,9 +44,13 @@ export interface AnamnesisProps {
44
44
  /** Intake mode only: open the section containing this field key and move
45
45
  * focus to it on mount — the landing half of `onMissingAnswerJump`. */
46
46
  intakeJumpToField?: string;
47
- /** Intake mode only: render the answers without letting them be changed
48
- * and drop the submit footer — a host's read of a past interview. */
47
+ /** Intake and questionnaire modes: render the answers without letting them
48
+ * be changed and drop the submit footer — a host's read of a past
49
+ * interview, or a questionnaire with nothing selected to edit. */
49
50
  readOnly?: boolean;
51
+ /** Questionnaire mode only: render this instead of the questionnaire in its
52
+ * tab panel (a restriction message), keeping the tab strip and the trend. */
53
+ questionnaireSlot?: ReactNode;
50
54
  /** Compile mode only: route the Summary's missing-answer jump to a host
51
55
  * questionnaire surface instead of the internal Compila gaps block. */
52
56
  onMissingAnswerJump?: (missing: MissingAnswer) => void;
@@ -81,5 +85,5 @@ export interface AnamnesisProps {
81
85
  defaultShareOpen?: boolean;
82
86
  defaultExportAudience?: DisclosureAudience;
83
87
  }
84
- export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, readOnly, onMissingAnswerJump, onRecordChange, leadingTabs, questionnaireTab, onQuestionnaireTabChange, defaultQuestionnaireTab, practitioners, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
88
+ export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, readOnly, onMissingAnswerJump, onRecordChange, leadingTabs, questionnaireTab, onQuestionnaireTabChange, questionnaireSlot, defaultQuestionnaireTab, practitioners, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
85
89
  //# 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 h, l as S, m as T, n as u, r as N, o as _, s as C, p as I } from "../../_chunks/anamnesis-i18n-BA631X4t.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 h, l as S, m as T, n as u, r as N, o as _, s as C, p as I } from "../../_chunks/anamnesis-i18n-CwQX6KXF.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.4.0",
3
+ "version": "1.4.2",
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",