@alfadocs/ui-kit 0.73.0 → 0.77.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 (199) hide show
  1. package/dist/_chunks/actions-cell-renderer-DLrcSTK_.js +1546 -0
  2. package/dist/_chunks/{address-fields-COyjgqxA.js → address-fields-7k59FnJ6.js} +2 -2
  3. package/dist/_chunks/{ai-prompt-input-DFm58UjY.js → ai-prompt-input-DziJCGLe.js} +2 -2
  4. package/dist/_chunks/{audio-recorder-CjAY0GAc.js → audio-recorder-Cc3KuL9y.js} +2 -2
  5. package/dist/_chunks/{bishop-score-Bs6t6Zv1.js → bishop-score-DDW5-gb9.js} +2 -2
  6. package/dist/_chunks/{booking-CWnZhZ5g.js → booking-CLmeXtGv.js} +3 -3
  7. package/dist/_chunks/{care-plan-card-CfIP3Vc1.js → care-plan-card-BrwhyIJI.js} +2 -2
  8. package/dist/_chunks/{care-plan-entry-card-CRbS-G00.js → care-plan-entry-card-DWEdCQM3.js} +2 -2
  9. package/dist/_chunks/{country-select-DYHDLEjG.js → country-select-BN9nedAp.js} +2 -2
  10. package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
  11. package/dist/_chunks/document-preview-CvHnHf6T.js +243 -0
  12. package/dist/_chunks/{document-scanner-BE6Jz4Ob.js → document-scanner-B6h1Ir56.js} +2 -2
  13. package/dist/_chunks/{field-value-DCXJXKab.js → field-value-DHG6gEKS.js} +2 -2
  14. package/dist/_chunks/file-Cwe9VC1A.js +40 -0
  15. package/dist/_chunks/file-manager-DfTG7bxx.js +1771 -0
  16. package/dist/_chunks/{file-upload-B2SXhRiN.js → file-upload-DENvuhfs.js} +98 -129
  17. package/dist/_chunks/flag-Cnmivlrl.js +641 -0
  18. package/dist/_chunks/{gestational-age-calculator-C9Dfis4I.js → gestational-age-calculator-BpYw-WF-.js} +2 -2
  19. package/dist/_chunks/{header-settings-CRQDCYgr.js → header-settings-DMfdx0Vq.js} +2 -2
  20. package/dist/_chunks/{icon-picker-BePK27S-.js → icon-picker-CM9ubkew.js} +2 -2
  21. package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
  22. package/dist/_chunks/{locale-picker-Cbfqc0_N.js → locale-picker-EyvPrwDc.js} +3 -3
  23. package/dist/_chunks/{marketplace-app-shell-Dm6S-hun.js → marketplace-app-shell-Bxq1PYAj.js} +3 -3
  24. package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
  25. package/dist/_chunks/{notes-panel-B_8-Mebz.js → notes-panel-Cvdp818a.js} +2 -2
  26. package/dist/_chunks/{optical-prescription-BQ75_kf6.js → optical-prescription-BEjYQjiO.js} +2 -2
  27. package/dist/_chunks/{patient-details-JkOI3Ijd.js → patient-details-zy76MRh7.js} +5 -5
  28. package/dist/_chunks/{patient-summary-card-CQOLMH3E.js → patient-summary-card-D6kgdTNn.js} +2 -2
  29. package/dist/_chunks/{patient-table-B_mOe-ZT.js → patient-table-DweKjiXg.js} +122 -118
  30. package/dist/_chunks/periodontal-chart-CYBhr9vc.js +1305 -0
  31. package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
  32. package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
  33. package/dist/_chunks/{phone-input-dtnrvnZf.js → phone-input-D00ZBAm-.js} +2 -2
  34. package/dist/_chunks/{popover-DGTKfLWh.js → popover-Cc0a69sw.js} +31 -28
  35. package/dist/_chunks/{pregnancy-dating-IsDVfqJX.js → pregnancy-dating-msMl_6wz.js} +2 -2
  36. package/dist/_chunks/{radiograph-panel.agent-e488ooH8.js → radiograph-panel.agent-CxF9pVxd.js} +2 -2
  37. package/dist/_chunks/{rich-text-editor-CgA2bYwi.js → rich-text-editor-CCWjNkbx.js} +186 -177
  38. package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
  39. package/dist/_chunks/{sidebar-CtU35PIX.js → sidebar-C0PbwJBc.js} +357 -320
  40. package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
  41. package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
  42. package/dist/_chunks/{tasks-panel-LCK5ZXvU.js → tasks-panel-CjGAhIN8.js} +2 -2
  43. package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
  44. package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
  45. package/dist/_chunks/{unit-converter-3uL_tMCm.js → unit-converter-CSLWFDQh.js} +2 -2
  46. package/dist/agent-catalog.json +1430 -213
  47. package/dist/agent-i18n/en.json +86 -5
  48. package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
  49. package/dist/components/address-fields/index.js +1 -1
  50. package/dist/components/ai-prompt-input/index.js +1 -1
  51. package/dist/components/anamnesis-card/anamnesis-card.d.ts +1 -1
  52. package/dist/components/appointment-card/appointment-card.d.ts +1 -1
  53. package/dist/components/audio-recorder/index.js +1 -1
  54. package/dist/components/bishop-score/index.js +1 -1
  55. package/dist/components/booking/index.js +1 -1
  56. package/dist/components/card/card.d.ts +1 -1
  57. package/dist/components/care-plan-card/index.js +1 -1
  58. package/dist/components/care-plan-entry-card/index.js +1 -1
  59. package/dist/components/clinical-note-card/clinical-note-card.d.ts +1 -1
  60. package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
  61. package/dist/components/country-select/index.js +1 -1
  62. package/dist/components/data-table/index.js +35 -34
  63. package/dist/components/data-table/toolbar.d.ts +1 -1
  64. package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
  65. package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
  66. package/dist/components/data-table-tabs/index.d.ts +5 -0
  67. package/dist/components/data-table-tabs/index.js +8 -0
  68. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
  69. package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
  70. package/dist/components/document-preview/document-preview.d.ts +64 -0
  71. package/dist/components/document-preview/index.d.ts +4 -0
  72. package/dist/components/document-preview/index.js +6 -0
  73. package/dist/components/document-scanner/index.js +1 -1
  74. package/dist/components/file-manager/dialogs.d.ts +48 -0
  75. package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
  76. package/dist/components/file-manager/file-manager.d.ts +82 -0
  77. package/dist/components/file-manager/folder-tree.d.ts +12 -0
  78. package/dist/components/file-manager/index.d.ts +5 -0
  79. package/dist/components/file-manager/index.js +6 -0
  80. package/dist/components/file-manager/list-view.d.ts +49 -0
  81. package/dist/components/file-manager/toolbar.d.ts +15 -0
  82. package/dist/components/file-manager/types.d.ts +167 -0
  83. package/dist/components/file-manager/utils.d.ts +34 -0
  84. package/dist/components/file-upload/index.js +1 -1
  85. package/dist/components/flag/index.js +1 -1
  86. package/dist/components/gestational-age-calculator/index.js +1 -1
  87. package/dist/components/header-settings/index.js +1 -1
  88. package/dist/components/icon-picker/index.js +1 -1
  89. package/dist/components/index.d.ts +7 -0
  90. package/dist/components/locale-picker/index.js +1 -1
  91. package/dist/components/message-card/message-card.d.ts +1 -1
  92. package/dist/components/muscle-scheme/index.js +1 -1
  93. package/dist/components/notes-panel/index.js +1 -1
  94. package/dist/components/notification-card/notification-card.d.ts +1 -1
  95. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  96. package/dist/components/optical-prescription/index.js +1 -1
  97. package/dist/components/patient-details/index.js +1 -1
  98. package/dist/components/patient-summary-card/index.js +1 -1
  99. package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
  100. package/dist/components/patient-table/index.js +1 -1
  101. package/dist/components/payment-card/payment-card.d.ts +1 -1
  102. package/dist/components/payment-card/payment-request-card.d.ts +1 -1
  103. package/dist/components/periodontal-chart/index.d.ts +6 -0
  104. package/dist/components/periodontal-chart/index.js +23 -0
  105. package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +164 -0
  106. package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
  107. package/dist/components/periodontal-chart/periodontal-chart.d.ts +71 -0
  108. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
  109. package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
  110. package/dist/components/periodontal-diagnosis/index.js +13 -0
  111. package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
  112. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
  113. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
  114. package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
  115. package/dist/components/periodontal-risk-chart/index.js +9 -0
  116. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
  117. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
  118. package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
  119. package/dist/components/phone-input/index.js +1 -1
  120. package/dist/components/popover/index.js +1 -1
  121. package/dist/components/popover/popover.d.ts +1 -0
  122. package/dist/components/pregnancy-dating/index.js +1 -1
  123. package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
  124. package/dist/components/radiograph-panel/index.js +1 -1
  125. package/dist/components/rich-text-editor/index.js +1 -1
  126. package/dist/components/select/index.js +1 -1
  127. package/dist/components/sidebar/index.js +1 -1
  128. package/dist/components/sidebar/sidebar.d.ts +9 -0
  129. package/dist/components/skeleton-scheme/index.js +5 -13
  130. package/dist/components/stat/stat.d.ts +1 -1
  131. package/dist/components/tabs/index.js +1 -1
  132. package/dist/components/tasks-panel/index.js +1 -1
  133. package/dist/components/tooth-scheme/index.js +29 -28
  134. package/dist/components/unit-converter/index.js +1 -1
  135. package/dist/i18n/locales/ar.d.ts +321 -0
  136. package/dist/i18n/locales/ar.js +321 -0
  137. package/dist/i18n/locales/de.d.ts +321 -0
  138. package/dist/i18n/locales/de.js +321 -0
  139. package/dist/i18n/locales/el.d.ts +321 -0
  140. package/dist/i18n/locales/el.js +321 -0
  141. package/dist/i18n/locales/en.d.ts +321 -0
  142. package/dist/i18n/locales/en.js +321 -0
  143. package/dist/i18n/locales/es.d.ts +321 -0
  144. package/dist/i18n/locales/es.js +321 -0
  145. package/dist/i18n/locales/fr.d.ts +321 -0
  146. package/dist/i18n/locales/fr.js +321 -0
  147. package/dist/i18n/locales/hi.d.ts +321 -0
  148. package/dist/i18n/locales/hi.js +321 -0
  149. package/dist/i18n/locales/it.d.ts +321 -0
  150. package/dist/i18n/locales/it.js +321 -0
  151. package/dist/i18n/locales/ja.d.ts +321 -0
  152. package/dist/i18n/locales/ja.js +321 -0
  153. package/dist/i18n/locales/nl.d.ts +321 -0
  154. package/dist/i18n/locales/nl.js +321 -0
  155. package/dist/i18n/locales/pl.d.ts +321 -0
  156. package/dist/i18n/locales/pl.js +321 -0
  157. package/dist/i18n/locales/pt.d.ts +321 -0
  158. package/dist/i18n/locales/pt.js +321 -0
  159. package/dist/i18n/locales/ro.d.ts +321 -0
  160. package/dist/i18n/locales/ro.js +321 -0
  161. package/dist/i18n/locales/ru.d.ts +321 -0
  162. package/dist/i18n/locales/ru.js +321 -0
  163. package/dist/i18n/locales/sq.d.ts +321 -0
  164. package/dist/i18n/locales/sq.js +321 -0
  165. package/dist/i18n/locales/sv.d.ts +321 -0
  166. package/dist/i18n/locales/sv.js +321 -0
  167. package/dist/i18n/locales/tr.d.ts +321 -0
  168. package/dist/i18n/locales/tr.js +321 -0
  169. package/dist/i18n/locales/zh.d.ts +321 -0
  170. package/dist/i18n/locales/zh.js +321 -0
  171. package/dist/index.js +834 -783
  172. package/dist/locales/ar.json +321 -0
  173. package/dist/locales/de.json +321 -0
  174. package/dist/locales/el.json +321 -0
  175. package/dist/locales/en.json +321 -0
  176. package/dist/locales/es.json +321 -0
  177. package/dist/locales/fr.json +321 -0
  178. package/dist/locales/hi.json +321 -0
  179. package/dist/locales/it.json +321 -0
  180. package/dist/locales/ja.json +321 -0
  181. package/dist/locales/nl.json +321 -0
  182. package/dist/locales/pl.json +321 -0
  183. package/dist/locales/pt.json +321 -0
  184. package/dist/locales/ro.json +321 -0
  185. package/dist/locales/ru.json +321 -0
  186. package/dist/locales/sq.json +321 -0
  187. package/dist/locales/sv.json +321 -0
  188. package/dist/locales/tr.json +321 -0
  189. package/dist/locales/zh.json +321 -0
  190. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  191. package/dist/patterns/signature-request/index.d.ts +3 -0
  192. package/dist/patterns/signature-request/index.js +5 -0
  193. package/dist/patterns/signature-request/signature-request.d.ts +81 -0
  194. package/dist/tokens.css +1 -1
  195. package/package.json +29 -1
  196. package/dist/_chunks/columns-2-8lq4-b8e.js +0 -15
  197. package/dist/_chunks/flag-DZ6V7-hU.js +0 -637
  198. package/dist/_chunks/link-cell-renderer-CLI7sBkX.js +0 -2210
  199. package/dist/_chunks/tooth-scheme-CX49GycY.js +0 -2133
@@ -1,4 +1,4 @@
1
- import { C as l, M as o } from "../../_chunks/marketplace-app-shell-Dm6S-hun.js";
1
+ import { C as l, M as o } from "../../_chunks/marketplace-app-shell-Bxq1PYAj.js";
2
2
  export {
3
3
  l as ConnectWithAlfadocs,
4
4
  o as MarketplaceAppShell
@@ -0,0 +1,3 @@
1
+ export { SignatureRequestModal } from './signature-request';
2
+ export type { SignatureRequestModalProps, SignatureRequestSubmission, SignerRequest, SignerOption, SignatureChannel, } from './signature-request';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { S as o } from "../../_chunks/signature-request-C-mskXwi.js";
2
+ export {
3
+ o as SignatureRequestModal
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,81 @@
1
+ /**
2
+ * SignatureRequestModal — the practice-side "Documenti firmati" modal that
3
+ * dispatches a document-signature request: assign the operator who must
4
+ * counter-sign (or leave the request unassigned), build the patient-side
5
+ * signer roster (up to `maxSigners`, each with their own delivery channel
6
+ * and, for on-device signing, an OTP waiver), and send.
7
+ *
8
+ * Runtime pattern: real consuming apps mount this in production (surfaced via
9
+ * `src/patterns/index.ts` and the `./patterns/signature-request` subpath).
10
+ * The component owns the form state — re-seeded from the `initial*` props
11
+ * every time `open` flips back to `true` — while the host owns `open`, the
12
+ * option lists, and what happens on submit. Multiple on-device signers sign
13
+ * sequentially in roster order — the execution side is the Signing pattern's
14
+ * multi-signer flow; this modal only encodes the intents.
15
+ */
16
+ import { type ComponentPropsWithoutRef } from 'react';
17
+ /** Delivery channel for one signer's signature request. */
18
+ export type SignatureChannel = 'sms' | 'email' | 'whatsapp' | 'on-device';
19
+ /** One selectable person/role for the operator or signer selects. */
20
+ export interface SignerOption {
21
+ value: string;
22
+ label: string;
23
+ }
24
+ /** One patient-side signer row in the submission. */
25
+ export interface SignerRequest {
26
+ signerId: string;
27
+ channel: SignatureChannel;
28
+ /** Only meaningful when `channel` is `'on-device'`. */
29
+ skipOtp?: boolean;
30
+ }
31
+ /** Payload handed to `onRequestSignature`. */
32
+ export interface SignatureRequestSubmission {
33
+ /** `null` when the counter-signing operator is left unassigned. */
34
+ operatorId: string | null;
35
+ /** 1..N signers; on-device signers sign sequentially in this order. */
36
+ signers: SignerRequest[];
37
+ }
38
+ export interface SignatureRequestModalProps {
39
+ /** Controlled open state. Reopening re-seeds the form from `initial*`. */
40
+ open: boolean;
41
+ /**
42
+ * Fires when the dialog requests a state change (<kbd>Esc</kbd> or the
43
+ * footer Close button). `false` is the dismiss signal — hosts typically
44
+ * persist a "dismissed this session" flag there.
45
+ */
46
+ onOpenChange: (open: boolean) => void;
47
+ /** Operators offered as the counter-signing signer. */
48
+ operators: SignerOption[];
49
+ /** Patient-side people/roles offered in each signer row. */
50
+ signerOptions: SignerOption[];
51
+ /** Enables the "Assign to me" shortcut targeting this operator. */
52
+ currentOperatorId?: string;
53
+ /** Offer an "Assign later" option in the operator select. Default `true`. */
54
+ allowAssignLater?: boolean;
55
+ /**
56
+ * Preselected operator; `null` preselects "Assign later" (honoured only
57
+ * while `allowAssignLater` — otherwise the first operator is seeded).
58
+ */
59
+ initialOperatorId?: string | null;
60
+ /** Seed the signer roster. Defaults to the first option, on-device. */
61
+ initialSigners?: SignerRequest[];
62
+ /** Cap on roster size. Default `2`. */
63
+ maxSigners?: number;
64
+ /** Disables all inputs and shows the primary action as loading. */
65
+ busy?: boolean;
66
+ /** Consumer-translated error shown above the footer (e.g. server failure). */
67
+ error?: string;
68
+ /** Override the dialog title. Defaults to the `ui.*` string. */
69
+ title?: string;
70
+ /** Override the dialog description. Defaults to the `ui.*` string. */
71
+ description?: string;
72
+ /** Receives the completed submission. The host closes via `onOpenChange`. */
73
+ onRequestSignature: (submission: SignatureRequestSubmission) => void;
74
+ /**
75
+ * Extra attributes for the portaled dialog surface (e.g. `dir`/`lang`
76
+ * when the host pins a locale below `<html>`, or a test id).
77
+ */
78
+ contentProps?: ComponentPropsWithoutRef<'div'>;
79
+ }
80
+ export declare const SignatureRequestModal: import("react").ForwardRefExoticComponent<SignatureRequestModalProps & import("react").RefAttributes<HTMLDivElement>>;
81
+ //# sourceMappingURL=signature-request.d.ts.map