@alfadocs/ui-kit 1.134.0 → 1.136.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 (205) hide show
  1. package/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
  2. package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
  3. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
  4. package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
  5. package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
  6. package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  8. package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
  9. package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
  10. package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
  11. package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
  12. package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
  13. package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
  14. package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
  15. package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
  16. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  17. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
  18. package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
  19. package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
  20. package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
  21. package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
  22. package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
  23. package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
  24. package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
  25. package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
  26. package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
  27. package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
  28. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  29. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  30. package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
  34. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  35. package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
  36. package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
  37. package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
  38. package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
  39. package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
  40. package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
  41. package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
  42. package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
  43. package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
  44. package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
  45. package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
  46. package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
  47. package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
  48. package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
  49. package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
  50. package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
  51. package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
  52. package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
  53. package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
  54. package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
  55. package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
  56. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  57. package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
  58. package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
  59. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
  60. package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
  61. package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
  62. package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
  63. package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
  64. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  65. package/dist/agent-catalog.json +528 -2
  66. package/dist/agent-i18n/en.json +51 -1
  67. package/dist/browser-support.js +1 -1
  68. package/dist/components/_shared/sms-segments.d.ts +43 -0
  69. package/dist/components/ai-prompt-input/index.js +1 -1
  70. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  71. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
  72. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  73. package/dist/components/ai-summary-panel/index.js +6 -0
  74. package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
  75. package/dist/components/appointment-card/index.js +2 -2
  76. package/dist/components/appointment-details-panel/index.js +1 -1
  77. package/dist/components/appointment-peek/index.js +1 -1
  78. package/dist/components/appointment-timeline/index.js +1 -1
  79. package/dist/components/audio-recorder/index.js +1 -1
  80. package/dist/components/bill-line-table/index.js +1 -1
  81. package/dist/components/bill-table/index.js +1 -1
  82. package/dist/components/bishop-score/index.js +1 -1
  83. package/dist/components/booking/index.js +1 -1
  84. package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
  85. package/dist/components/call-status-chip/index.d.ts +3 -0
  86. package/dist/components/call-status-chip/index.js +5 -0
  87. package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
  88. package/dist/components/calls-panel/calls-panel.d.ts +153 -0
  89. package/dist/components/calls-panel/index.d.ts +4 -0
  90. package/dist/components/calls-panel/index.js +6 -0
  91. package/dist/components/chat-container/chat-container.d.ts +7 -0
  92. package/dist/components/chat-container/index.js +1 -1
  93. package/dist/components/chat-input/chat-input.d.ts +20 -0
  94. package/dist/components/chat-input/index.js +1 -1
  95. package/dist/components/chat-message/index.js +1 -1
  96. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  97. package/dist/components/communications-panel/communications-panel.d.ts +148 -0
  98. package/dist/components/communications-panel/index.d.ts +6 -0
  99. package/dist/components/communications-panel/index.js +7 -0
  100. package/dist/components/data-grid/index.js +2 -2
  101. package/dist/components/data-table/index.js +2 -2
  102. package/dist/components/document-preview/index.js +1 -1
  103. package/dist/components/entity-summary/entity-summary.d.ts +37 -1
  104. package/dist/components/entity-summary/index.js +1 -1
  105. package/dist/components/file-manager/index.js +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/heatmap/index.js +1 -1
  108. package/dist/components/index.d.ts +4 -0
  109. package/dist/components/invoice-upload-list/index.js +1 -1
  110. package/dist/components/muscle-scheme/index.js +1 -1
  111. package/dist/components/notes-panel/index.js +1 -1
  112. package/dist/components/optical-prescription/index.js +1 -1
  113. package/dist/components/patient-details/index.js +1 -1
  114. package/dist/components/patient-summary-card/index.js +1 -1
  115. package/dist/components/patient-table/index.js +1 -1
  116. package/dist/components/pregnancy-dating/index.js +1 -1
  117. package/dist/components/rich-text-editor/index.js +1 -1
  118. package/dist/components/select/index.js +1 -1
  119. package/dist/components/select/select.d.ts +8 -0
  120. package/dist/components/session-countdown/index.js +1 -1
  121. package/dist/components/skeleton-scheme/index.js +1 -1
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/task-editor/index.js +1 -1
  124. package/dist/components/tasks-panel/index.js +1 -1
  125. package/dist/components/unit-converter/index.js +1 -1
  126. package/dist/components/voice-control-panel/index.js +1 -1
  127. package/dist/components/workflow-status/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/host-compat.css +13 -4
  130. package/dist/i18n/locales/ar.d.ts +162 -0
  131. package/dist/i18n/locales/ar.js +163 -0
  132. package/dist/i18n/locales/de.d.ts +162 -0
  133. package/dist/i18n/locales/de.js +163 -0
  134. package/dist/i18n/locales/el.d.ts +162 -0
  135. package/dist/i18n/locales/el.js +163 -0
  136. package/dist/i18n/locales/en.d.ts +162 -0
  137. package/dist/i18n/locales/en.js +163 -0
  138. package/dist/i18n/locales/es.d.ts +162 -0
  139. package/dist/i18n/locales/es.js +163 -0
  140. package/dist/i18n/locales/fr.d.ts +162 -0
  141. package/dist/i18n/locales/fr.js +163 -0
  142. package/dist/i18n/locales/hi.d.ts +162 -0
  143. package/dist/i18n/locales/hi.js +163 -0
  144. package/dist/i18n/locales/it.d.ts +162 -0
  145. package/dist/i18n/locales/it.js +163 -0
  146. package/dist/i18n/locales/ja.d.ts +162 -0
  147. package/dist/i18n/locales/ja.js +163 -0
  148. package/dist/i18n/locales/nl.d.ts +162 -0
  149. package/dist/i18n/locales/nl.js +163 -0
  150. package/dist/i18n/locales/pl.d.ts +162 -0
  151. package/dist/i18n/locales/pl.js +163 -0
  152. package/dist/i18n/locales/pt.d.ts +162 -0
  153. package/dist/i18n/locales/pt.js +163 -0
  154. package/dist/i18n/locales/ro.d.ts +162 -0
  155. package/dist/i18n/locales/ro.js +163 -0
  156. package/dist/i18n/locales/ru.d.ts +162 -0
  157. package/dist/i18n/locales/ru.js +163 -0
  158. package/dist/i18n/locales/sq.d.ts +162 -0
  159. package/dist/i18n/locales/sq.js +163 -0
  160. package/dist/i18n/locales/sv.d.ts +162 -0
  161. package/dist/i18n/locales/sv.js +163 -0
  162. package/dist/i18n/locales/tr.d.ts +162 -0
  163. package/dist/i18n/locales/tr.js +163 -0
  164. package/dist/i18n/locales/zh.d.ts +162 -0
  165. package/dist/i18n/locales/zh.js +163 -0
  166. package/dist/index.js +905 -893
  167. package/dist/locales/ar.json +162 -0
  168. package/dist/locales/de.json +162 -0
  169. package/dist/locales/el.json +162 -0
  170. package/dist/locales/en.json +162 -0
  171. package/dist/locales/es.json +162 -0
  172. package/dist/locales/fr.json +162 -0
  173. package/dist/locales/hi.json +162 -0
  174. package/dist/locales/it.json +162 -0
  175. package/dist/locales/ja.json +162 -0
  176. package/dist/locales/nl.json +162 -0
  177. package/dist/locales/pl.json +162 -0
  178. package/dist/locales/pt.json +162 -0
  179. package/dist/locales/ro.json +162 -0
  180. package/dist/locales/ru.json +162 -0
  181. package/dist/locales/sq.json +162 -0
  182. package/dist/locales/sv.json +162 -0
  183. package/dist/locales/tr.json +162 -0
  184. package/dist/locales/zh.json +162 -0
  185. package/dist/patterns/alia-assistant/index.js +1 -1
  186. package/dist/patterns/anamnesis/index.js +1 -1
  187. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  188. package/dist/patterns/calendar/index.js +1 -1
  189. package/dist/patterns/patient-account-settings/index.js +1 -1
  190. package/dist/patterns/patient-check-in/index.js +1 -1
  191. package/dist/patterns/patient-portal/index.js +2 -2
  192. package/dist/patterns/patient-sign-in/index.js +2 -2
  193. package/dist/patterns/registration-form/index.js +1 -1
  194. package/dist/patterns/signature-request/index.js +1 -1
  195. package/dist/patterns/signing/index.d.ts +1 -0
  196. package/dist/patterns/signing/index.js +1 -1
  197. package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
  198. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  199. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  200. package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
  201. package/dist/tokens.css +1 -1
  202. package/package.json +17 -1
  203. package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
  204. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  205. package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
@@ -0,0 +1,153 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ /** A purpose or an outcome the host offers. Platform: a call code and its label. */
3
+ export interface CallOption {
4
+ /** Platform code, for example `no_answer` or `appointment_missed`. */
5
+ id: string;
6
+ /** Translated by the host. */
7
+ label: string;
8
+ /**
9
+ * How the outcome reads at a glance, as a colour on its icon and label:
10
+ * `positive` green, `caution` amber, `negative` red, `neutral` grey. The
11
+ * icon and the words always stay, so colour never carries the meaning
12
+ * alone. Absent, the five platform outcome ids take their own tone
13
+ * (`connected` positive; `no_answer`, `busy`, `left_voicemail` caution;
14
+ * `wrong_number` negative) and any other id is neutral. Only outcomes use
15
+ * it: purposes stay neutral.
16
+ */
17
+ tone?: 'positive' | 'caution' | 'negative' | 'neutral';
18
+ }
19
+ /** One logged call. Platform: the call stream row of a patient. */
20
+ export interface CallEntry {
21
+ id: string;
22
+ /**
23
+ * ISO-8601 instant the call took place: platform `date`, the date staff
24
+ * entered. NOT `createdAt`, which is when the row was saved.
25
+ */
26
+ dateIso: string;
27
+ /** A `CallOption.id` of the purposes. Platform `purposeCode`. */
28
+ purposeId?: string | null;
29
+ /** A `CallOption.id` of the outcomes. Platform `outcomeCode`. */
30
+ outcomeId?: string | null;
31
+ /** Free text. Platform `content`. Empty when staff wrote nothing. */
32
+ description?: string | null;
33
+ /** ISO-8601 instant the row was saved: platform `createdAt`. Optional. */
34
+ createdAtIso?: string;
35
+ /** Who started the call. Shown as a small icon and a plain label. */
36
+ direction?: 'outgoing' | 'incoming';
37
+ /** An incoming call nobody answered. Read as "Missed call". Ignored for an outgoing call. */
38
+ missed?: boolean;
39
+ /** How long the call lasted, in whole seconds. Hidden when absent or negative. */
40
+ durationSeconds?: number;
41
+ /** The patient's number the call used. Withheld under privacy. */
42
+ phoneNumber?: string;
43
+ /**
44
+ * Where the row came from. `integration` adds "Logged automatically";
45
+ * `name` is the app, for example a phone system. `manual` shows nothing.
46
+ */
47
+ source?: {
48
+ kind: 'manual' | 'integration';
49
+ name?: string;
50
+ };
51
+ /** Display name of the staff member who took or made the call. Withheld under privacy. */
52
+ handledBy?: string;
53
+ /** Link to the recording in the other software. Only http and https open. Withheld under privacy. */
54
+ recordingHref?: string;
55
+ /** Link to the transcript in the other software. Only http and https open. Withheld under privacy. */
56
+ transcriptHref?: string;
57
+ }
58
+ /** What the form emits. Platform: POST `calls` (`date`, `purpose`, `outcome`, `description`). */
59
+ export interface CallsPanelCreateRequest {
60
+ /** ISO-8601 instant, as the date and time picker holds it. Always set. */
61
+ dateIso: string;
62
+ purposeId: string | null;
63
+ outcomeId: string | null;
64
+ /** Trimmed. May be empty: the platform lets a call be logged without one. */
65
+ description: string;
66
+ }
67
+ /** A write the host refused, as `onWriteError` hears it. */
68
+ export interface CallsPanelWriteFailure {
69
+ kind: 'create' | 'update' | 'delete';
70
+ /** The call written to. Absent for `create`. */
71
+ id?: string;
72
+ /** What the handler rejected or threw with. */
73
+ error: unknown;
74
+ /** Whether the panel told the reader. An agent write is not shown. */
75
+ shown: boolean;
76
+ }
77
+ /**
78
+ * Curated agent handle. Structural state only: a count and flags, never a
79
+ * description, purpose or date. The writes reject, without calling the host,
80
+ * on a read-only panel, under privacy, or without a host handler.
81
+ */
82
+ export interface CallsPanelHandle {
83
+ getState: () => {
84
+ callCount: number;
85
+ /** Calls logged by other software. A count only. Zero under privacy. */
86
+ automaticCount: number;
87
+ /** Incoming calls nobody answered. A count only. Zero under privacy. */
88
+ missedCount: number;
89
+ status: 'ready' | 'loading' | 'error';
90
+ formOpen: boolean;
91
+ privacy: boolean;
92
+ };
93
+ openForm: () => Promise<void>;
94
+ closeForm: () => Promise<void>;
95
+ logCall: (request: {
96
+ dateIso: string;
97
+ purposeId?: string | null;
98
+ outcomeId?: string | null;
99
+ description?: string;
100
+ }) => Promise<void>;
101
+ updateCall: (id: string, patch: {
102
+ description: string;
103
+ }) => Promise<void>;
104
+ deleteCall: (id: string) => Promise<void>;
105
+ }
106
+ export interface CallsPanelProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children'> {
107
+ /** Stable instance id, emitted as `data-component-id`. */
108
+ id?: string;
109
+ /** Panel title. Defaults to the localised "Calls". */
110
+ title?: string;
111
+ 'aria-label'?: string;
112
+ /** "Now" as an ISO-8601 instant. The form opens on it; dates drop this year. */
113
+ nowIso?: string;
114
+ /** BCP-47 locale for dates. Defaults to the active language. */
115
+ locale?: string;
116
+ /** The logged calls, in any order. The panel shows them newest first. */
117
+ calls: CallEntry[];
118
+ /** The host's read. `'loading'` and `'error'` replace the list. */
119
+ status?: 'ready' | 'loading' | 'error';
120
+ /** Retry a failed read. Renders the retry button in the error face. */
121
+ onRetry?: () => void;
122
+ /** The purposes to choose from. Omit or leave empty to hide the field. */
123
+ purposes?: CallOption[];
124
+ /** The outcomes to choose from. Omit or leave empty to hide the field. */
125
+ outcomes?: CallOption[];
126
+ /** Privacy mode: descriptions and the form are withheld, not mounted. */
127
+ privacy?: boolean;
128
+ /** Hide the write controls. Platform: no `practice_patient_edit` permission. */
129
+ readOnly?: boolean;
130
+ /**
131
+ * Log a call. Return a promise to keep the form until the host has saved
132
+ * it: a rejection keeps every field and shows the error. Without it the
133
+ * "Log a call" button is not shown.
134
+ */
135
+ onCreate?: (request: CallsPanelCreateRequest) => void | Promise<void>;
136
+ /**
137
+ * Replace the description of a call. The platform lets only the
138
+ * description change. A rejection keeps the text and shows the error.
139
+ * Without it the edit button is not shown.
140
+ */
141
+ onUpdate?: (id: string, patch: {
142
+ description: string;
143
+ }) => void | Promise<void>;
144
+ /**
145
+ * Delete a call, after the panel's own confirm dialog. A rejection keeps
146
+ * the dialog open with the error. Without it the delete button is not shown.
147
+ */
148
+ onDelete?: (id: string) => void | Promise<void>;
149
+ /** A write the host refused. Toast it when `shown` is false. */
150
+ onWriteError?: (failure: CallsPanelWriteFailure) => void;
151
+ }
152
+ export declare const CallsPanel: import("react").ForwardRefExoticComponent<CallsPanelProps & import("react").RefAttributes<HTMLElement>>;
153
+ //# sourceMappingURL=calls-panel.d.ts.map
@@ -0,0 +1,4 @@
1
+ export { CallsPanel } from './calls-panel';
2
+ export type { CallsPanelProps, CallsPanelHandle, CallsPanelCreateRequest, CallsPanelWriteFailure, CallEntry, CallOption, } from './calls-panel';
3
+ export { callsPanelAgent } from './calls-panel.agent';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { C as e, c as s } from "../../_chunks/calls-panel-BIfatK90.js";
2
+ export {
3
+ e as CallsPanel,
4
+ s as callsPanelAgent
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -46,6 +46,13 @@ export interface ChatContainerProps extends Omit<HTMLAttributes<HTMLDivElement>,
46
46
  * just adds visual noise. Turn on for fullscreen chat surfaces.
47
47
  */
48
48
  showScrollToLatest?: boolean;
49
+ /**
50
+ * Accessible name of the scrolling `role="log"` region. Defaults to the
51
+ * kit's "Chat transcript". Set it where the log has a more exact name,
52
+ * such as "Messages with the patient". (A plain `aria-label` lands on the
53
+ * root, not on the log.)
54
+ */
55
+ logLabel?: string;
49
56
  }
50
57
  export declare const ChatContainer: import("react").ForwardRefExoticComponent<ChatContainerProps & import("react").RefAttributes<HTMLDivElement>>;
51
58
  export {};
@@ -1,4 +1,4 @@
1
- import { C as n, c as e } from "../../_chunks/chat-container-B83b4hut.js";
1
+ import { C as n, c as e } from "../../_chunks/chat-container-CoOT7dzB.js";
2
2
  export {
3
3
  n as ChatContainer,
4
4
  e as chatContainerAgent
@@ -31,10 +31,30 @@ export interface ChatInputProps extends NativeTextareaProps, VariantProps<typeof
31
31
  accept?: string;
32
32
  /** Controls whether the textarea is disabled and submit is blocked. */
33
33
  disabled?: boolean;
34
+ /** Disables only the Send button (the textarea stays editable), and blocks
35
+ * submit. Use it when the host owns a rule such as an over-long draft. */
36
+ submitDisabled?: boolean;
34
37
  /** Optional slot placed between the textarea and the send button. */
35
38
  toolbar?: ReactNode;
36
39
  /** Visible label above the textarea. When omitted, a visually-hidden label is used. */
37
40
  label?: string;
41
+ /** Keep `label` as the accessible name but hide it visually, for a compact
42
+ * composer. Default false. */
43
+ hideLabel?: boolean;
44
+ /** Accessible name of the send button. Default: the translated "Send". Set it
45
+ * when the button does something other than send, so the name stays honest. */
46
+ sendLabel?: string;
47
+ /** Icon of the send button. Default: the paper-plane. */
48
+ sendIcon?: ReactNode;
49
+ /** Let an empty draft submit: the send button stays enabled and `onSubmit`
50
+ * receives the empty text. Default false. */
51
+ allowEmptySubmit?: boolean;
52
+ /** Whether Ctrl or Cmd+Enter submits. Default true. Set it false when the
53
+ * host does not want that shortcut: the key does nothing here, the send
54
+ * button stops advertising it (`aria-keyshortcuts`) and the screen-reader
55
+ * hint that names it is left out. The send button and `submitOnEnter` are
56
+ * not affected. */
57
+ submitShortcut?: boolean;
38
58
  }
39
59
  export declare const ChatInput: import("react").ForwardRefExoticComponent<ChatInputProps & import("react").RefAttributes<HTMLDivElement>>;
40
60
  export {};
@@ -1,4 +1,4 @@
1
- import { C as n, c as p } from "../../_chunks/chat-input-DwQ4_WXK.js";
1
+ import { C as n, c as p } from "../../_chunks/chat-input-BmvnuZqj.js";
2
2
  export {
3
3
  n as ChatInput,
4
4
  p as chatInputAgent
@@ -1,4 +1,4 @@
1
- import { C as s } from "../../_chunks/chat-message-CfIyXrxA.js";
1
+ import { C as s } from "../../_chunks/chat-message-B4TMeZ2m.js";
2
2
  export {
3
3
  s as ChatMessage
4
4
  };
@@ -0,0 +1,4 @@
1
+ import type { AgentAdapter } from '../../agent/types';
2
+ import type { CommunicationsPanelHandle } from './communications-panel';
3
+ export declare const communicationsPanelAgent: AgentAdapter<CommunicationsPanelHandle>;
4
+ //# sourceMappingURL=communications-panel.agent.d.ts.map
@@ -0,0 +1,148 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ /** A channel a message travelled by. Platform: the logged message type. */
3
+ export type CommsChannel = 'app' | 'sms' | 'email' | 'whatsapp';
4
+ /** The channels the composer can send by. WhatsApp is a hand-off. */
5
+ export type CommsSendChannel = 'app' | 'sms' | 'email';
6
+ /** Delivery state of an SMS the practice sent. */
7
+ export type CommsSmsStatus = 'sending' | 'awaiting' | 'delivered' | 'not-delivered' | 'out-of-credit';
8
+ /** What caused a message the practice did not type by hand. */
9
+ export type CommsProvenanceKind = 'campaign' | 'workflow' | 'document-share';
10
+ /** One message in the thread. */
11
+ export interface CommsMessage {
12
+ id: string;
13
+ /** `out`: the practice wrote it. `in`: the patient wrote it. */
14
+ direction: 'out' | 'in';
15
+ channel: CommsChannel;
16
+ /** ISO-8601 instant the message was logged. */
17
+ createdAtIso: string;
18
+ /** Plain text. The only body an SMS shows, and the fallback for the rest. */
19
+ body: string;
20
+ /**
21
+ * HTML body (App, email, WhatsApp rows only). Sanitised by `SafeHtml`
22
+ * with the `email` profile. An SMS row ignores it.
23
+ */
24
+ bodyHtml?: string;
25
+ /** Where an outgoing message went (a number or an address). */
26
+ recipient?: string;
27
+ /** Not seen yet. The panel marks it with a "New" badge on this view. */
28
+ isNew?: boolean;
29
+ /** Delivery state. Shown for outgoing SMS only. */
30
+ smsStatus?: CommsSmsStatus;
31
+ /** A campaign, workflow or shared document sent this message. */
32
+ provenance?: {
33
+ kind: CommsProvenanceKind;
34
+ id?: string;
35
+ name?: string;
36
+ };
37
+ /**
38
+ * A shared document, shown as a document card at the top of the bubble.
39
+ * `sizeBytes` and `typeLabel` feed its meta line ("PDF · 248 KB"); the type
40
+ * defaults to the file extension, upper-cased.
41
+ */
42
+ attachment?: {
43
+ id: string;
44
+ name: string;
45
+ sizeBytes?: number;
46
+ typeLabel?: string;
47
+ };
48
+ }
49
+ /** Whether the practice can use one channel for this patient. */
50
+ export interface CommsChannelState {
51
+ available: boolean;
52
+ /** Where a message goes: the mobile number or the address. */
53
+ recipient?: string;
54
+ }
55
+ /** The practice's WhatsApp set-up for this patient. */
56
+ export type CommsWhatsAppState = 'off' | 'no-phone' | 'no-sms-phone' | 'ready';
57
+ export interface CommsSendRequest {
58
+ channel: CommsSendChannel;
59
+ body: string;
60
+ }
61
+ /** A write the host refused, as `onWriteError` hears it. */
62
+ export interface CommunicationsPanelWriteFailure {
63
+ /** `send` is the composer; `mark-seen` is the unread flag. */
64
+ kind: 'send' | 'mark-seen';
65
+ /** The channel written to. Absent for `mark-seen`. */
66
+ id?: string;
67
+ /** What the handler rejected or threw with. */
68
+ error: unknown;
69
+ /** Whether the panel told the reader. A failed `mark-seen` is silent. */
70
+ shown: boolean;
71
+ }
72
+ /**
73
+ * Curated agent handle. Structural state only: counts and flags, never a
74
+ * message body or recipient. The writes reject, without calling the host,
75
+ * on a read-only panel or under privacy.
76
+ */
77
+ export interface CommunicationsPanelHandle {
78
+ getState: () => {
79
+ channel: CommsSendChannel | null;
80
+ messageCount: number;
81
+ unreadCount: number;
82
+ status: 'ready' | 'loading' | 'error';
83
+ limitReached: boolean;
84
+ privacy: boolean;
85
+ };
86
+ selectChannel: (channel: CommsSendChannel) => Promise<void>;
87
+ markSeen: () => Promise<void>;
88
+ sendMessage: (request: CommsSendRequest) => Promise<void>;
89
+ }
90
+ export interface CommunicationsPanelProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children'> {
91
+ /** Stable instance id, emitted as `data-component-id`. */
92
+ id?: string;
93
+ /** Panel title. Defaults to the localised "Communications". */
94
+ title?: string;
95
+ 'aria-label'?: string;
96
+ /** "Now" as an ISO-8601 instant. Day separators drop the year this year. */
97
+ nowIso?: string;
98
+ /** BCP-47 locale for dates. Defaults to the active language. */
99
+ locale?: string;
100
+ /** The thread, in any order. The panel shows it oldest first. */
101
+ messages: CommsMessage[];
102
+ /** The host's read. `'loading'` and `'error'` replace the thread. */
103
+ status?: 'ready' | 'loading' | 'error';
104
+ /** Retry a failed read. Renders the retry button in the error face. */
105
+ onRetry?: () => void;
106
+ /** Which channels the practice can use for this patient. */
107
+ channels: Record<CommsSendChannel, CommsChannelState>;
108
+ /** The channel the composer opens on, when it is available. */
109
+ defaultChannel?: CommsSendChannel;
110
+ /** The practice sender name, added to the end of every SMS. */
111
+ senderName: string;
112
+ /** The staff user sent too many SMS or emails in 24 hours. App stays. */
113
+ limitReached?: boolean;
114
+ /** WhatsApp set-up. Omit to leave the WhatsApp action out. */
115
+ whatsApp?: CommsWhatsAppState;
116
+ /** Privacy mode: the thread and composer are withheld, not mounted. */
117
+ privacy?: boolean;
118
+ /** Hide the composer and the enable prompts. The handle writes reject. */
119
+ readOnly?: boolean;
120
+ /**
121
+ * Send a message. Return a promise to keep the draft until the host has
122
+ * sent it: a rejection keeps the text and shows the error. A rejection
123
+ * with `status: 429` also marks the limit as reached.
124
+ */
125
+ onSend?: (request: CommsSendRequest) => void | Promise<void>;
126
+ /** The reader saw these unread messages. The host clears its unread flag. */
127
+ onMessagesSeen?: (ids: string[]) => void | Promise<void>;
128
+ /** A write the host refused. Toast it when `shown` is false. */
129
+ onWriteError?: (failure: CommunicationsPanelWriteFailure) => void;
130
+ /** Open the host's way to enable a channel (patient edit, invitation). */
131
+ onEnableChannel?: (channel: CommsSendChannel) => void;
132
+ /**
133
+ * Open the host's WhatsApp message picker. Gets the text typed in the
134
+ * composer, or `undefined` when it is empty. Nothing is written to the
135
+ * thread. Once it has returned (or its promise resolved) the composer is
136
+ * cleared, so the same text cannot go out again by SMS. A rejection keeps
137
+ * the draft. Without it, a `ready` WhatsApp is not offered in the picker.
138
+ */
139
+ onOpenWhatsApp?: (draft?: string) => void | Promise<void>;
140
+ /** Open the host's WhatsApp purchase flow. */
141
+ onBuyWhatsApp?: () => void;
142
+ /** Open the campaign, workflow or document behind a message. */
143
+ onOpenProvenance?: (kind: CommsProvenanceKind, id?: string) => void;
144
+ /** Open a shared document. */
145
+ onOpenAttachment?: (id: string) => void;
146
+ }
147
+ export declare const CommunicationsPanel: import("react").ForwardRefExoticComponent<CommunicationsPanelProps & import("react").RefAttributes<HTMLElement>>;
148
+ //# sourceMappingURL=communications-panel.d.ts.map
@@ -0,0 +1,6 @@
1
+ export { CommunicationsPanel } from './communications-panel';
2
+ export type { CommunicationsPanelProps, CommunicationsPanelHandle, CommunicationsPanelWriteFailure, CommsChannel, CommsSendChannel, CommsSendRequest, CommsSmsStatus, CommsProvenanceKind, CommsMessage, CommsChannelState, CommsWhatsAppState, } from './communications-panel';
3
+ export { communicationsPanelAgent } from './communications-panel.agent';
4
+ export { smsMessageInfo } from '../_shared/sms-segments';
5
+ export type { SmsMessageInfo } from '../_shared/sms-segments';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { C as n, c as o, s as e } from "../../_chunks/communications-panel-SQ-55e3V.js";
2
+ export {
3
+ n as CommunicationsPanel,
4
+ o as communicationsPanelAgent,
5
+ e as smsMessageInfo
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { D as _, a as D, b as r, c as E, d as I, e as T, f as G } from "../../_chunks/data-grid-B2oaI7Lt.js";
2
- import { D as s, a as R } from "../../_chunks/toolbar-CfdoJzMV.js";
1
+ import { D as _, a as D, b as r, c as E, d as I, e as T, f as G } from "../../_chunks/data-grid-CxKz8flO.js";
2
+ import { D as s, a as R } from "../../_chunks/toolbar-DjG-cpD_.js";
3
3
  export {
4
4
  _ as DATA_GRID_DEFAULT_PAGE_SIZE,
5
5
  D as DATA_GRID_MAX_SORT_LEVELS,
@@ -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-FTV3uRjX.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-_tgj0C_T.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 f, r as m, u as E, w as h } from "../../_chunks/editable-currency-cell-renderer-CZMQ5xRT.js";
3
- import { D as S, a as A, b as I, I as y, L, N, c as P, S as W, d as B, e as U, T as _, f as k, g as v, U as H } from "../../_chunks/link-cell-renderer-D3JLPURZ.js";
3
+ import { D as S, a as A, b as I, I as y, L, N, c as P, S as W, d as B, e as U, T as _, f as k, g as v, U as H } from "../../_chunks/link-cell-renderer-Xx5T8u5Q.js";
4
4
  import { A as X, a as j } from "../../_chunks/actions-cell-renderer-C-l_ppP6.js";
5
5
  export {
6
6
  X as ActionsCellRenderer,
@@ -1,4 +1,4 @@
1
- import { D as r, d as t } from "../../_chunks/document-preview-DLVIrOYV.js";
1
+ import { D as r, d as t } from "../../_chunks/document-preview-DWlejd8A.js";
2
2
  export {
3
3
  r as DocumentPreview,
4
4
  t as documentPreviewAgent
@@ -24,6 +24,31 @@ export interface EntitySummarySection {
24
24
  tone?: 'default' | 'attention';
25
25
  /** Bullet items — `ReactNode` so consumers compose inline entity links. */
26
26
  items: ReactNode[];
27
+ /**
28
+ * Shown in place of the list when `items` is empty. Omit it and an empty
29
+ * section draws an empty list, as before.
30
+ */
31
+ emptyLabel?: ReactNode;
32
+ /**
33
+ * A control for this section alone, drawn at the end of its heading row
34
+ * (a "Regenerate" icon button, say). On an `attention` section it sits
35
+ * under the items, in the alert's action row. Omit it and nothing is drawn.
36
+ */
37
+ actions?: ReactNode;
38
+ /**
39
+ * Replaces the items list, and `emptyLabel`, when set: a skeleton while the
40
+ * section is being made, or a short error. Omit it for the list, as before.
41
+ */
42
+ body?: ReactNode;
43
+ /** Drawn under the body: a quiet line such as "out of date". */
44
+ footer?: ReactNode;
45
+ /**
46
+ * The section is being made or remade. Sets `aria-busy` on its card. Giving
47
+ * any value, `false` included, also marks the card with
48
+ * `data-entity-summary-section="<id>"`, so a host can move focus to its
49
+ * heading. Omit it and the markup is exactly as before.
50
+ */
51
+ busy?: boolean;
27
52
  }
28
53
  /**
29
54
  * Curated agent handle for EntitySummary. Exposes structural state only —
@@ -81,10 +106,21 @@ export interface EntitySummaryProps extends Omit<HTMLAttributes<HTMLElement>, 't
81
106
  * (passing it while docked would render a duplicate close control).
82
107
  */
83
108
  onClose?: () => void;
84
- /** Footer disclaimer. Defaults to the BETA clinical-judgement note. */
109
+ /**
110
+ * Footer disclaimer. Defaults to the BETA clinical-judgement note. Pass
111
+ * `false` to draw none, when the host shows its own.
112
+ */
85
113
  disclaimer?: ReactNode;
86
114
  /** BCP-47 locale for the generated-at timestamp. */
87
115
  locale?: string;
116
+ /**
117
+ * Render the panel's own sticky header (title, regenerate, close).
118
+ * Default `true`. Pass `false` when the host draws one header for several
119
+ * faces, as `AiSummaryPanel` does. The regenerate and close affordances
120
+ * are not drawn, so the host owns them, and the section is a region only
121
+ * if you pass `aria-label`: the host's own region names the summary.
122
+ */
123
+ showHeader?: boolean;
88
124
  /** Accessible name for the panel region (defaults to `title`). */
89
125
  'aria-label'?: string;
90
126
  }
@@ -1,4 +1,4 @@
1
- import { E as t } from "../../_chunks/entity-summary-KHM0PnSI.js";
1
+ import { E as t } from "../../_chunks/entity-summary-CPUHzyil.js";
2
2
  export {
3
3
  t as EntitySummary
4
4
  };
@@ -1,4 +1,4 @@
1
- import { F as r, f } from "../../_chunks/file-manager-Bzr5NK1t.js";
1
+ import { F as r, f } from "../../_chunks/file-manager-CEi4z2i0.js";
2
2
  export {
3
3
  r as FileManager,
4
4
  f as fileManagerAgent
@@ -1,4 +1,4 @@
1
- import { G as t } from "../../_chunks/gestational-age-calculator-mB6brTlp.js";
1
+ import { G as t } from "../../_chunks/gestational-age-calculator-CHbpC4vL.js";
2
2
  export {
3
3
  t as GestationalAgeCalculator
4
4
  };
@@ -1,4 +1,4 @@
1
- import { H as t, a as p, b as m, h as o } from "../../_chunks/heatmap-C5gJin_F.js";
1
+ import { H as t, a as p, b as m, h as o } from "../../_chunks/heatmap-_546qI2V.js";
2
2
  export {
3
3
  t as Heatmap,
4
4
  p as HeatmapLegend,
@@ -161,6 +161,9 @@ export * from './notification-card';
161
161
  export * from './notification-tray';
162
162
  export * from './notice-group';
163
163
  export * from './notes-panel';
164
+ export * from './communications-panel';
165
+ export * from './call-status-chip';
166
+ export * from './calls-panel';
164
167
  export * from './popover';
165
168
  export * from './radiograph-panel';
166
169
  export * from './pregnancy-weight-gain';
@@ -196,6 +199,7 @@ export * from './chat-container';
196
199
  export * from './chat-input';
197
200
  export * from './chat-message';
198
201
  export * from './entity-summary';
202
+ export * from './ai-summary-panel';
199
203
  export * from './freemium-paywall';
200
204
  export * from './streaming-text';
201
205
  export * from './suggestion-chip';
@@ -1,4 +1,4 @@
1
- import { I as O, a, b as L, c as N, d as s, i as S } from "../../_chunks/invoice-upload-list-B5aMffTy.js";
1
+ import { I as O, a, b as L, c as N, d as s, i as S } from "../../_chunks/invoice-upload-list-CQI9MUl6.js";
2
2
  export {
3
3
  O as INVOICE_DOCUMENT_KINDS,
4
4
  a as INVOICE_SUPPLIER_KINDS,
@@ -1,4 +1,4 @@
1
- import { D as a, F as i, a as g, M as r, b as o, e as t, f as n, c as u, g as c, d as m, m as E, r as F, u as M, v as I } from "../../_chunks/muscle-scheme-BGJD62op.js";
1
+ import { D as a, F as i, a as g, M as r, b as o, e as t, f as n, c as u, g as c, d as m, m as E, r as F, u as M, v as I } from "../../_chunks/muscle-scheme-D_rSyGDj.js";
2
2
  export {
3
3
  a as DEFAULT_MUSCLE_VIEW,
4
4
  i as FINDING_MARKER,
@@ -1,4 +1,4 @@
1
- import { N as a } from "../../_chunks/notes-panel-BAyPOr8N.js";
1
+ import { N as a } from "../../_chunks/notes-panel-BvjAo4RQ.js";
2
2
  export {
3
3
  a as NotesPanel
4
4
  };
@@ -1,4 +1,4 @@
1
- import { A as S, a as r, b as A, c as e, d as I, e as _, C as t, f as E, g as o, D as M, h as i, E as P, L as N, O as R, P as m, i as D, j as n, k as f, l, R as X, S as C, m as d, n as p, o as T, p as c, q as L, r as O, s as Y, t as g, u as x, v as B, w as u, x as w, y, z as H, B as b, F as h } from "../../_chunks/optical-prescription-Da_r8pMr.js";
1
+ import { A as S, a as r, b as A, c as e, d as I, e as _, C as t, f as E, g as o, D as M, h as i, E as P, L as N, O as R, P as m, i as D, j as n, k as f, l, R as X, S as C, m as d, n as p, o as T, p as c, q as L, r as O, s as Y, t as g, u as x, v as B, w as u, x as w, y, z as H, B as b, F as h } from "../../_chunks/optical-prescription-DaSbsh4p.js";
2
2
  export {
3
3
  S as ADD_MAX,
4
4
  r as ADD_MIN,
@@ -1,4 +1,4 @@
1
- import { P as e, p as i } from "../../_chunks/patient-details-DBtEITfE.js";
1
+ import { P as e, p as i } from "../../_chunks/patient-details-9eh9cNy7.js";
2
2
  export {
3
3
  e as PatientDetails,
4
4
  i as patientDetailsAgent
@@ -1,4 +1,4 @@
1
- import { P as t, p as m } from "../../_chunks/patient-summary-card-Bl2NknPe.js";
1
+ import { P as t, p as m } from "../../_chunks/patient-summary-card-K9zaMl1O.js";
2
2
  export {
3
3
  t as PatientSummaryCard,
4
4
  m as patientSummaryCardAgent
@@ -1,4 +1,4 @@
1
- import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-DTiMdnCZ.js";
1
+ import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-BSB02Bwo.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
@@ -1,4 +1,4 @@
1
- import { P as r } from "../../_chunks/pregnancy-dating-BNI32qNw.js";
1
+ import { P as r } from "../../_chunks/pregnancy-dating-lJbzai73.js";
2
2
  export {
3
3
  r as PregnancyDating
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-DjHL1b3E.js";
2
- import { k as s } from "../../_chunks/kit-extensions-DUaIYyMD.js";
2
+ import { k as s } from "../../_chunks/kit-extensions-BNBf4m8O.js";
3
3
  export {
4
4
  i as RichTextEditor,
5
5
  s as kitEditorExtensions,
@@ -1,4 +1,4 @@
1
- import { S as a, a as l, b as S, c, d as s, e as o, f as r, g as p, h as g, i, j as m } from "../../_chunks/select-uESzXTX6.js";
1
+ import { S as a, a as l, b as S, c, d as s, e as o, f as r, g as p, h as g, i, j as m } from "../../_chunks/select-CIXKyUMw.js";
2
2
  export {
3
3
  a as Select,
4
4
  l as SelectContent,
@@ -15,6 +15,7 @@ import { type OptionDescriptionTone } from '../_shared/option-row';
15
15
  declare const selectTriggerVariants: (props?: ({
16
16
  size?: "sm" | "md" | "lg" | null | undefined;
17
17
  tone?: "default" | "error" | null | undefined;
18
+ appearance?: "outlined" | "plain" | null | undefined;
18
19
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
19
20
  declare const selectContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
20
21
  declare const selectItemVariants: (props?: ({
@@ -29,6 +30,7 @@ type SelectTriggerProps = ComponentPropsWithoutRef<typeof RadixSelect.Trigger> &
29
30
  declare const SelectTrigger: import("react").ForwardRefExoticComponent<Omit<RadixSelect.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
30
31
  size?: "sm" | "md" | "lg" | null | undefined;
31
32
  tone?: "default" | "error" | null | undefined;
33
+ appearance?: "outlined" | "plain" | null | undefined;
32
34
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<HTMLButtonElement>>;
33
35
  declare const SelectValue: import("react").ForwardRefExoticComponent<Omit<RadixSelect.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
34
36
  type SelectContentProps = ComponentPropsWithoutRef<typeof RadixSelect.Content> & {
@@ -153,6 +155,12 @@ export interface SelectProps<T extends string = string> extends Omit<AriaAttribu
153
155
  id?: string;
154
156
  size?: 'sm' | 'md' | 'lg';
155
157
  tone?: 'default' | 'error';
158
+ /**
159
+ * `plain` drops the trigger's edge, fill and shadow, for a Select inside
160
+ * another bordered box such as a composer toolbar. Hover and keyboard focus
161
+ * stay visible. Default `outlined`, unchanged.
162
+ */
163
+ appearance?: 'outlined' | 'plain';
156
164
  'aria-label'?: string;
157
165
  /**
158
166
  * Extra ids describing the trigger, e.g. a visually hidden reason why an