@alfadocs/ui-kit 1.104.0 → 1.105.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 (198) hide show
  1. package/dist/_chunks/{ai-credits-exhausted-notice-CwZnSACy.js → ai-credits-exhausted-notice-Lws3113e.js} +2 -2
  2. package/dist/_chunks/{ai-permission-notice-VNh3W57L.js → ai-permission-notice-BkgcGmu8.js} +2 -2
  3. package/dist/_chunks/{alert-9kEwDza3.js → alert-C4WKViaS.js} +59 -50
  4. package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js → anamnesis-summary-rows-QhbDdY7b.js} +4 -4
  5. package/dist/_chunks/{audio-recorder-BOm2FgEu.js → audio-recorder-BlDozxdU.js} +2 -2
  6. package/dist/_chunks/{auth-form-parts-B3GWChvG.js → auth-form-parts-DVHfqnp6.js} +2 -2
  7. package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js → balance-badge-cell-wJ6cTD_h.js} +3 -3
  8. package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js → calendar-appointment-editor-dialog-D8DblVjW.js} +8 -8
  9. package/dist/_chunks/{care-plan-card-YWKV8Kjq.js → care-plan-card-DMjlYlFc.js} +2 -2
  10. package/dist/_chunks/{care-plan-entry-card-CApivtMW.js → care-plan-entry-card-3hguBW45.js} +2 -2
  11. package/dist/_chunks/{contact-profile-card-uExd3pKC.js → contact-profile-card-CAL66GaH.js} +120 -111
  12. package/dist/_chunks/{data-table-C5uN4ato.js → data-table-zXBxFYpJ.js} +761 -715
  13. package/dist/_chunks/{date-range-picker-B_j4VQlV.js → date-range-picker-DCADIR8o.js} +2 -2
  14. package/dist/_chunks/{date-time-picker-cwsWiB4q.js → date-time-picker-CT2bC7-A.js} +2 -2
  15. package/dist/_chunks/{document-preview-U8H6tnDJ.js → document-preview-BalyZqnn.js} +2 -2
  16. package/dist/_chunks/{document-scanner-Bf3VUp00.js → document-scanner-5p-Uu8dy.js} +2 -2
  17. package/dist/_chunks/{entity-summary-BKfR4Vws.js → entity-summary-BbqqYqF1.js} +2 -2
  18. package/dist/_chunks/{error-summary-mGxIyDAY.js → error-summary-DxNhwf_G.js} +2 -2
  19. package/dist/_chunks/{face-scheme-DdVLQ5dP.js → face-scheme-e2M2HJGz.js} +2 -2
  20. package/dist/_chunks/{file-manager-CnGBVX_q.js → file-manager-BDKe59sg.js} +2 -2
  21. package/dist/_chunks/{forgot-password-form-CeTb5p-x.js → forgot-password-form-vfCO2-Tt.js} +4 -4
  22. package/dist/_chunks/{freemium-paywall-CM0zQSDE.js → freemium-paywall-BDeq9QWR.js} +2 -2
  23. package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js → gestational-age-calculator-AnaH00nk.js} +2 -2
  24. package/dist/_chunks/{hcg-doubling-BJFR3onB.js → hcg-doubling-DdyUt4gz.js} +2 -2
  25. package/dist/_chunks/{heatmap-Cz0Krieg.js → heatmap-D4qqpCEj.js} +1550 -1547
  26. package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js → help-me-write-templates-YmceSxf5.js} +3 -3
  27. package/dist/_chunks/info-tip-C-MPkShR.js +266 -0
  28. package/dist/_chunks/{kit-extensions-C4o_tFN4.js → kit-extensions-BOnTM4Yf.js} +3 -3
  29. package/dist/_chunks/{link-cell-renderer-BRek9kz7.js → link-cell-renderer-C8vfCOEp.js} +2 -2
  30. package/dist/_chunks/{login-dev-card-D5BV5j1i.js → login-dev-card-Cz1Clugq.js} +3 -3
  31. package/dist/_chunks/{marketplace-app-shell-BsctSegT.js → marketplace-app-shell-C-4QF6mp.js} +2 -2
  32. package/dist/_chunks/{notes-panel-BjTpaz8d.js → notes-panel-SlzUL8in.js} +4 -4
  33. package/dist/_chunks/{notice-group-DkYzKyAZ.js → notice-group-B-trhof8.js} +3 -3
  34. package/dist/_chunks/{patient-details-BXM3dRKb.js → patient-details-wMgTFtpp.js} +2 -2
  35. package/dist/_chunks/{patient-field-row--dCDO5oB.js → patient-field-row-Bhm2Ig1P.js} +2 -2
  36. package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js → patient-summary-card-DMdPPG3n.js} +2 -2
  37. package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js → payment-automation-upsell-u5EuFyCY.js} +2 -2
  38. package/dist/_chunks/{payment-form-PBuh8PIa.js → payment-form-C-s1x-bU.js} +2 -2
  39. package/dist/_chunks/{pdf-viewer-DlceXkfW.js → pdf-viewer-BnBKdx0y.js} +2 -2
  40. package/dist/_chunks/{practice-profile-hero-BAvGdQmt.js → practice-profile-hero-Bb4YyxHA.js} +31 -29
  41. package/dist/_chunks/{practice-results-ChBP9x2r.js → practice-results-BXz01sti.js} +485 -445
  42. package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js → pregnancy-dating-D6dLkMpl.js} +2 -2
  43. package/dist/_chunks/{progress-notice-DiHWZ8Ms.js → progress-notice-F7ao70ZP.js} +2 -2
  44. package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js → radiograph-panel.agent-0ngF2sGS.js} +2 -2
  45. package/dist/_chunks/{registration-form-JzzTomhd.js → registration-form-CEJRUS9G.js} +3 -3
  46. package/dist/_chunks/{reserved.agent-BxD0gnbt.js → reserved.agent-C-C9cvO5.js} +2 -2
  47. package/dist/_chunks/{reset-password-form-DDdGEoIL.js → reset-password-form-B0acanDD.js} +4 -4
  48. package/dist/_chunks/{rich-text-editor-F04przIt.js → rich-text-editor-C3nANKZt.js} +2 -2
  49. package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js → send-registration-link-form-Nn0jf65G.js} +3 -3
  50. package/dist/_chunks/{sign-document-B5qZhthO.js → sign-document-CQZVzfpk.js} +2 -2
  51. package/dist/_chunks/{signature-request-DB6kePIm.js → signature-request-DtLph5Z4.js} +3 -3
  52. package/dist/_chunks/{switch-D--x7n6h.js → switch-DO6uC4HJ.js} +40 -36
  53. package/dist/_chunks/{task-editor-BiPGFXtB.js → task-editor-CmXcj6cC.js} +4 -4
  54. package/dist/_chunks/{tasks-panel-iVeuu9a8.js → tasks-panel-CFo5uIHx.js} +3 -3
  55. package/dist/_chunks/{theme-toggle-jZRbAidE.js → theme-toggle-Czq3K9jB.js} +2 -2
  56. package/dist/_chunks/{time-picker-DSt-ns5F.js → time-picker-DDr5vhwQ.js} +344 -332
  57. package/dist/_chunks/{tooth-scheme-Bd7xECuj.js → tooth-scheme-C-ALCHaV.js} +2 -2
  58. package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js → use-appointment-details-read-VI26Z-pc.js} +3 -3
  59. package/dist/_chunks/{voice-control-panel-BGJjUwnY.js → voice-control-panel-B0TUZAiP.js} +3 -3
  60. package/dist/_chunks/{warning-stack-3S7e2q07.js → warning-stack-Dx7cpj10.js} +2 -2
  61. package/dist/_chunks/week-availability-CsTiwtYj.js +318 -0
  62. package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js +252 -0
  63. package/dist/_chunks/{workflow-map-B1jf6QaB.js → workflow-map-DWk-rZse.js} +2 -2
  64. package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js → workflow-webhook-action-DILFqAVd.js} +2 -2
  65. package/dist/ag-grid.css +5 -1
  66. package/dist/agent-catalog.json +1 -1
  67. package/dist/components/ai-credits-notice/index.js +1 -1
  68. package/dist/components/ai-permission-notice/index.js +1 -1
  69. package/dist/components/alert/index.js +1 -1
  70. package/dist/components/appointment-details-panel/index.js +1 -1
  71. package/dist/components/audio-recorder/index.js +1 -1
  72. package/dist/components/booking/index.js +1 -1
  73. package/dist/components/care-plan-card/index.js +1 -1
  74. package/dist/components/care-plan-entry-card/index.js +1 -1
  75. package/dist/components/contact-profile-card/contact-profile-card.d.ts +8 -0
  76. package/dist/components/contact-profile-card/index.js +1 -1
  77. package/dist/components/data-table/data-table.d.ts +6 -0
  78. package/dist/components/data-table/header-min-width.d.ts +21 -0
  79. package/dist/components/data-table/index.js +2 -2
  80. package/dist/components/date-range-picker/index.js +1 -1
  81. package/dist/components/date-time-picker/index.js +1 -1
  82. package/dist/components/document-preview/index.js +1 -1
  83. package/dist/components/document-scanner/index.js +1 -1
  84. package/dist/components/entity-summary/index.js +1 -1
  85. package/dist/components/error-summary/index.js +1 -1
  86. package/dist/components/face-scheme/index.js +1 -1
  87. package/dist/components/file-manager/index.js +1 -1
  88. package/dist/components/freemium-paywall/index.js +1 -1
  89. package/dist/components/gestational-age-calculator/index.js +1 -1
  90. package/dist/components/hcg-doubling/index.js +1 -1
  91. package/dist/components/heatmap/heatmap.d.ts +5 -0
  92. package/dist/components/heatmap/index.js +1 -1
  93. package/dist/components/index.d.ts +2 -0
  94. package/dist/components/info-tip/index.js +1 -1
  95. package/dist/components/info-tip/info-tip.d.ts +10 -0
  96. package/dist/components/notes-panel/index.js +1 -1
  97. package/dist/components/notice-group/index.js +1 -1
  98. package/dist/components/patient-details/index.js +1 -1
  99. package/dist/components/patient-summary-card/index.js +1 -1
  100. package/dist/components/patient-table/index.js +1 -1
  101. package/dist/components/payment-form/index.js +1 -1
  102. package/dist/components/pdf-viewer/index.js +1 -1
  103. package/dist/components/practice-profile-hero/index.js +1 -1
  104. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +7 -0
  105. package/dist/components/practice-results/index.js +1 -1
  106. package/dist/components/practice-results/practice-results.d.ts +13 -0
  107. package/dist/components/pregnancy-dating/index.js +1 -1
  108. package/dist/components/progress-notice/index.js +1 -1
  109. package/dist/components/radiograph-panel/index.js +1 -1
  110. package/dist/components/rich-text-editor/index.js +2 -2
  111. package/dist/components/sign-document/index.js +1 -1
  112. package/dist/components/switch/index.js +1 -1
  113. package/dist/components/switch/switch.d.ts +2 -0
  114. package/dist/components/task-editor/index.js +1 -1
  115. package/dist/components/tasks-panel/index.js +1 -1
  116. package/dist/components/theme-toggle/index.js +1 -1
  117. package/dist/components/time-picker/index.js +1 -1
  118. package/dist/components/tooth-scheme/index.js +1 -1
  119. package/dist/components/voice-control-panel/index.js +1 -1
  120. package/dist/components/warning-stack/index.js +1 -1
  121. package/dist/components/week-availability/index.d.ts +3 -0
  122. package/dist/components/week-availability/index.js +10 -0
  123. package/dist/components/week-availability/week-availability.d.ts +68 -0
  124. package/dist/components/weekly-hours-editor/index.d.ts +3 -0
  125. package/dist/components/weekly-hours-editor/index.js +9 -0
  126. package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts +42 -0
  127. package/dist/components/workflow/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/i18n/locales/ar.d.ts +34 -0
  130. package/dist/i18n/locales/ar.js +34 -0
  131. package/dist/i18n/locales/de.d.ts +34 -0
  132. package/dist/i18n/locales/de.js +34 -0
  133. package/dist/i18n/locales/el.d.ts +34 -0
  134. package/dist/i18n/locales/el.js +34 -0
  135. package/dist/i18n/locales/en.d.ts +34 -0
  136. package/dist/i18n/locales/en.js +34 -0
  137. package/dist/i18n/locales/es.d.ts +34 -0
  138. package/dist/i18n/locales/es.js +34 -0
  139. package/dist/i18n/locales/fr.d.ts +34 -0
  140. package/dist/i18n/locales/fr.js +34 -0
  141. package/dist/i18n/locales/hi.d.ts +34 -0
  142. package/dist/i18n/locales/hi.js +34 -0
  143. package/dist/i18n/locales/it.d.ts +34 -0
  144. package/dist/i18n/locales/it.js +34 -0
  145. package/dist/i18n/locales/ja.d.ts +34 -0
  146. package/dist/i18n/locales/ja.js +34 -0
  147. package/dist/i18n/locales/nl.d.ts +34 -0
  148. package/dist/i18n/locales/nl.js +34 -0
  149. package/dist/i18n/locales/pl.d.ts +34 -0
  150. package/dist/i18n/locales/pl.js +34 -0
  151. package/dist/i18n/locales/pt.d.ts +34 -0
  152. package/dist/i18n/locales/pt.js +34 -0
  153. package/dist/i18n/locales/ro.d.ts +34 -0
  154. package/dist/i18n/locales/ro.js +34 -0
  155. package/dist/i18n/locales/ru.d.ts +34 -0
  156. package/dist/i18n/locales/ru.js +34 -0
  157. package/dist/i18n/locales/sq.d.ts +34 -0
  158. package/dist/i18n/locales/sq.js +34 -0
  159. package/dist/i18n/locales/sv.d.ts +34 -0
  160. package/dist/i18n/locales/sv.js +34 -0
  161. package/dist/i18n/locales/tr.d.ts +34 -0
  162. package/dist/i18n/locales/tr.js +34 -0
  163. package/dist/i18n/locales/zh.d.ts +34 -0
  164. package/dist/i18n/locales/zh.js +34 -0
  165. package/dist/index.js +879 -866
  166. package/dist/locales/ar.json +34 -0
  167. package/dist/locales/de.json +34 -0
  168. package/dist/locales/el.json +34 -0
  169. package/dist/locales/en.json +34 -0
  170. package/dist/locales/es.json +34 -0
  171. package/dist/locales/fr.json +34 -0
  172. package/dist/locales/hi.json +34 -0
  173. package/dist/locales/it.json +34 -0
  174. package/dist/locales/ja.json +34 -0
  175. package/dist/locales/nl.json +34 -0
  176. package/dist/locales/pl.json +34 -0
  177. package/dist/locales/pt.json +34 -0
  178. package/dist/locales/ro.json +34 -0
  179. package/dist/locales/ru.json +34 -0
  180. package/dist/locales/sq.json +34 -0
  181. package/dist/locales/sv.json +34 -0
  182. package/dist/locales/tr.json +34 -0
  183. package/dist/locales/zh.json +34 -0
  184. package/dist/patterns/anamnesis/index.js +1 -1
  185. package/dist/patterns/calendar/index.js +1 -1
  186. package/dist/patterns/forgot-password-form/index.js +1 -1
  187. package/dist/patterns/help-me-write-templates/index.js +2 -2
  188. package/dist/patterns/login-form/index.js +1 -1
  189. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  190. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  191. package/dist/patterns/registration-form/index.js +1 -1
  192. package/dist/patterns/reset-password-form/index.js +1 -1
  193. package/dist/patterns/send-registration-link-form/index.js +1 -1
  194. package/dist/patterns/signature-request/index.js +1 -1
  195. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  196. package/dist/tokens.css +3 -1
  197. package/package.json +9 -1
  198. package/dist/_chunks/info-tip-1Xsq9GLi.js +0 -230
@@ -0,0 +1,42 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { TimeValue } from '../_shared/time';
3
+ /** One open period, in minutes from midnight (9:00 is 540). */
4
+ export interface HoursRange {
5
+ from: number;
6
+ to: number;
7
+ }
8
+ /**
9
+ * Hours by weekday. Keys are ISO weekdays 1 to 7 with 1 = Monday and 7 = Sunday. A day
10
+ * with no ranges, or no key, is closed.
11
+ */
12
+ export type WeeklyHours = Partial<Record<number, readonly HoursRange[]>>;
13
+ export type HoursIssue = 'order' | 'overlap';
14
+ export interface WeeklyHoursEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
15
+ value: WeeklyHours;
16
+ onChange: (next: WeeklyHours) => void;
17
+ /** Most ranges per day. Default 2 (a lunch break). */
18
+ maxRanges?: number;
19
+ /** Minutes between choices in the time lists. Default 15. */
20
+ minuteStep?: 1 | 5 | 10 | 15 | 30;
21
+ /** Weekdays to edit (1 Monday to 7 Sunday), in this order. Default all seven. */
22
+ weekdays?: readonly number[];
23
+ /** 12-hour clocks. Default: the language decides. */
24
+ hour12?: boolean;
25
+ disabled?: boolean;
26
+ /** Called whenever the value turns valid or invalid. */
27
+ onValidityChange?: (valid: boolean) => void;
28
+ /** Overrides the active language for weekday names. */
29
+ locale?: string;
30
+ /** Accessible name for the editor. */
31
+ 'aria-label'?: string;
32
+ }
33
+ export declare const WEEKLY_HOURS_DEFAULT_RANGE: HoursRange;
34
+ /** The problem with one day's ranges, per range index. */
35
+ export declare function validateDay(ranges: readonly HoursRange[]): Map<number, HoursIssue>;
36
+ export declare function isWeeklyHoursValid(value: WeeklyHours, weekdays?: readonly number[]): boolean;
37
+ /** The range "+ slot" adds: after the last one, or the default for an empty day. */
38
+ export declare function nextRange(ranges: readonly HoursRange[]): HoursRange | null;
39
+ export declare function toTimeValue(minutes: number): TimeValue;
40
+ export declare const fromTimeValue: (t: TimeValue) => number;
41
+ export declare const WeeklyHoursEditor: import("react").ForwardRefExoticComponent<WeeklyHoursEditorProps & import("react").RefAttributes<HTMLDivElement>>;
42
+ //# sourceMappingURL=weekly-hours-editor.d.ts.map
@@ -1,4 +1,4 @@
1
- import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-B1jf6QaB.js";
1
+ import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-DWk-rZse.js";
2
2
  export {
3
3
  r as CORE_PATIENT_FIELDS,
4
4
  e as WorkflowCard,