@alfadocs/ui-kit 1.47.1 → 1.49.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 (448) hide show
  1. package/dist/_chunks/{actions-cell-renderer-B5m9lwgC.js → actions-cell-renderer-DMittsR3.js} +4 -4
  2. package/dist/_chunks/{address-autocomplete-Bq-1n1UX.js → address-autocomplete-Dp5uMvKP.js} +61 -60
  3. package/dist/_chunks/{address-fields-jFfjxOQR.js → address-fields-QfC-N3pw.js} +5 -5
  4. package/dist/_chunks/{agenda-card-DyQtHb9z.js → agenda-card-CjjxlA9K.js} +3 -3
  5. package/dist/_chunks/{agenda-tray-CBaJASb5.js → agenda-tray-BhZASyJm.js} +4 -4
  6. package/dist/_chunks/{ai-credits-notice-xszqOZTC.js → ai-credits-notice-C-kz_RrY.js} +3 -3
  7. package/dist/_chunks/{ai-permission-notice-D7I2U-cz.js → ai-permission-notice-BRZeS3mT.js} +3 -3
  8. package/dist/_chunks/{ai-prompt-input-DXknpQCB.js → ai-prompt-input-CxvnXsAs.js} +82 -82
  9. package/dist/_chunks/{alia-sidebar-CUqaJNPQ.js → alia-sidebar-Dx-oeOV2.js} +8 -8
  10. package/dist/_chunks/{anamnesis-card-xtEhyojD.js → anamnesis-card-D8Si-2GV.js} +3 -3
  11. package/dist/_chunks/{anamnesis-summary-card-CclBbiXg.js → anamnesis-summary-card-DPyScUMM.js} +2 -2
  12. package/dist/_chunks/{anamnesis-summary-rows-DI-UX5r6.js → anamnesis-summary-rows-CZirLRuv.js} +12 -12
  13. package/dist/_chunks/{antenatal-schedule-timeline-CXk_tzWG.js → antenatal-schedule-timeline-8fm3vPSV.js} +2 -2
  14. package/dist/_chunks/{appointment-card-DluZy8Iv.js → appointment-card-BgLpE6T5.js} +6 -6
  15. package/dist/_chunks/{appointment-peek-BsfCpiJs.js → appointment-peek-BDiCIBb-.js} +6 -6
  16. package/dist/_chunks/{appointment-timeline-Cs5f9viN.js → appointment-timeline-wQ-PdkFV.js} +6 -6
  17. package/dist/_chunks/{appointment-tray-CLrGGnKR.js → appointment-tray-D7Gt6m8x.js} +4 -4
  18. package/dist/_chunks/appointment-workflow-status-CS8ufF1f.js +66 -0
  19. package/dist/_chunks/{audio-recorder-B7dT-Y3v.js → audio-recorder-DZBtAvLH.js} +4 -4
  20. package/dist/_chunks/{autocomplete-MpBhz-fG.js → autocomplete-DSasZUf6.js} +65 -64
  21. package/dist/_chunks/{avatar-CkDeQOSI.js → avatar-BVvjKNTp.js} +2 -2
  22. package/dist/_chunks/{badge-BudgzTe_.js → badge-BAkd6_Pj.js} +24 -17
  23. package/dist/_chunks/{balance-badge-cell-YGrYdrvR.js → balance-badge-cell-klaxFNL_.js} +6 -6
  24. package/dist/_chunks/{bishop-score-Cu70iv9C.js → bishop-score-BMLRvXYF.js} +4 -4
  25. package/dist/_chunks/{bmi-calculator-C9N19aLX.js → bmi-calculator-DUhRyyrA.js} +3 -3
  26. package/dist/_chunks/{booking-C4MwImkS.js → booking-BF9pVa2n.js} +384 -388
  27. package/dist/_chunks/{breadcrumb-agut0PwN.js → breadcrumb-D3boYzD4.js} +50 -49
  28. package/dist/_chunks/{button-CaUe1uyd.js → button-18oBsI3n.js} +54 -50
  29. package/dist/_chunks/button-group-BSDqso_C.js +408 -0
  30. package/dist/_chunks/{calendar-OzSeTb4V.js → calendar-Bt44KMNO.js} +13 -18
  31. package/dist/_chunks/{calendar-event-card-B6N5h1dO.js → calendar-event-card-BUbKBPv_.js} +55 -73
  32. package/dist/_chunks/calendar-workspace-C_eXL1by.js +10464 -0
  33. package/dist/_chunks/{care-plan-card-BOv0NRle.js → care-plan-card-ciBaaguw.js} +4 -4
  34. package/dist/_chunks/{care-plan-entry-card-d-rZD4li.js → care-plan-entry-card-D7A0whiZ.js} +5 -5
  35. package/dist/_chunks/{care-plan-header-CEmBXn6-.js → care-plan-header-DKV1gLqv.js} +4 -4
  36. package/dist/_chunks/{carousel.agent-z1yLBpyC.js → carousel.agent-DqDGR2yH.js} +2 -2
  37. package/dist/_chunks/{chart-D8ucl8hH.js → chart-VjuXDXOZ.js} +3 -3
  38. package/dist/_chunks/{chat-input-Cj7ZYQr5.js → chat-input-BVho_SqP.js} +2 -2
  39. package/dist/_chunks/{chat-message-BMVxiUIX.js → chat-message-B4ihjNy3.js} +4 -4
  40. package/dist/_chunks/{smartphone-DaPcFw-X.js → circle-dashed-CUj6o2cA.js} +3 -14
  41. package/dist/_chunks/{city-input-DaQc-Hbj.js → city-input-BGYc4lRV.js} +2 -2
  42. package/dist/_chunks/{clinical-note-card-DdsGYMmI.js → clinical-note-card-B7s5BtEl.js} +89 -74
  43. package/dist/_chunks/{code-block-BB-viuTn.js → code-block-C_eNHWaa.js} +2 -2
  44. package/dist/_chunks/combobox-B_rLwmSv.js +578 -0
  45. package/dist/_chunks/{command-palette-DQl_SNEv.js → command-palette-DhgGo7GJ.js} +82 -80
  46. package/dist/_chunks/{connection-status-BmA9T0UO.js → connection-status-Cfux3TvH.js} +4 -4
  47. package/dist/_chunks/{contact-profile-card-C0WpwpVV.js → contact-profile-card-Dj4NgBL-.js} +3 -3
  48. package/dist/_chunks/control-room-rail-DAO0qfOI.js +379 -0
  49. package/dist/_chunks/{copy-field-B8XRVmQv.js → copy-field-Cm4y5Bff.js} +2 -2
  50. package/dist/_chunks/{country-select-CfDNFG5c.js → country-select-C5jZjO8O.js} +2 -2
  51. package/dist/_chunks/{cycle-calculator-BH2StWoT.js → cycle-calculator-B9lBRNiZ.js} +3 -3
  52. package/dist/_chunks/{dashboard-grid-BcXWL5S9.js → dashboard-grid-uX7x1ePj.js} +2 -2
  53. package/dist/_chunks/{data-table-DnKOmEVw.js → data-table-CrI3_bjH.js} +416 -415
  54. package/dist/_chunks/{data-table-tabs-B9SXA5VP.js → data-table-tabs-CzYYKp2_.js} +3 -3
  55. package/dist/_chunks/{dependent-selector-BHDP0nBB.js → dependent-selector-58hTg5rB.js} +3 -3
  56. package/dist/_chunks/{description-list-BsJ_6CQE.js → description-list-1A2DEbE6.js} +2 -2
  57. package/dist/_chunks/{document-preview-COV0BC6n.js → document-preview-Od2Hz4z5.js} +13 -12
  58. package/dist/_chunks/{document-scanner-B1abl-A4.js → document-scanner-p0aGlzCy.js} +3 -3
  59. package/dist/_chunks/{dropdown-menu-DU-Hrf33.js → dropdown-menu-C8PaW3lR.js} +110 -96
  60. package/dist/_chunks/{due-date-calculator-Buh_mVHq.js → due-date-calculator-BVqJaxzd.js} +4 -4
  61. package/dist/_chunks/{editable-currency-cell-renderer-OUkUv7U4.js → editable-currency-cell-renderer-D_G2Ap61.js} +4 -4
  62. package/dist/_chunks/{editable-description-ADMVFPUz.js → editable-description-B4NVdjvd.js} +3 -3
  63. package/dist/_chunks/{editor-overlay-DwNKaI22.js → editor-overlay-BDiBvQmL.js} +2 -2
  64. package/dist/_chunks/{empty-state-BUN_UAWf.js → empty-state-DTBZ1ENT.js} +2 -2
  65. package/dist/_chunks/{entity-card-I-Gio5wo.js → entity-card-D1Yrh9wf.js} +2 -1
  66. package/dist/_chunks/{entity-summary-DXejuQ8i.js → entity-summary-CFJfBdVP.js} +4 -4
  67. package/dist/_chunks/{error-boundary-BNT2iQ1w.js → error-boundary-BxTqEXqj.js} +2 -2
  68. package/dist/_chunks/euro-Dsuz4ixO.js +22 -0
  69. package/dist/_chunks/{face-scheme-mIhwrQXt.js → face-scheme-fku-RShg.js} +71 -71
  70. package/dist/_chunks/{fetal-weight-wx4ycKc6.js → fetal-weight-B69yOS9W.js} +3 -3
  71. package/dist/_chunks/{field-array-BW9KeeXG.js → field-array-lIXrFWS0.js} +3 -3
  72. package/dist/_chunks/file-BuG1VMAy.js +21 -0
  73. package/dist/_chunks/{file-Cwe9VC1A.js → file-image-cDgE-BTy.js} +2 -19
  74. package/dist/_chunks/{file-manager-DOcJGIx2.js → file-manager-C6QQPQV5.js} +15 -14
  75. package/dist/_chunks/{file-upload-BDpb08GM.js → file-upload-B242a_Y1.js} +53 -52
  76. package/dist/_chunks/{finished-terminal-DJd7Z_po.js → finished-terminal-B2oqXO0Y.js} +2 -2
  77. package/dist/_chunks/fiscal-code-input-BEF8eKIG.js +572 -0
  78. package/dist/_chunks/{freemium-paywall-BaW5ODc9.js → freemium-paywall-B6JITu4l.js} +2 -2
  79. package/dist/_chunks/{gestational-age-calculator-CwbecTul.js → gestational-age-calculator-DsGN6_HS.js} +5 -5
  80. package/dist/_chunks/handled-rejection-6gqCf5vt.js +13 -0
  81. package/dist/_chunks/{hcg-doubling-BcXriXJe.js → hcg-doubling-D2SH-e7t.js} +3 -3
  82. package/dist/_chunks/{header-3o9o9v_T.js → header-CCjp5GvE.js} +2 -2
  83. package/dist/_chunks/{header-settings-BEfx_-TF.js → header-settings-ZXa6hXuu.js} +5 -5
  84. package/dist/_chunks/{help-me-write-templates-DHIwa4xR.js → help-me-write-templates-DQtT1qs_.js} +5 -5
  85. package/dist/_chunks/history-CK2JaU2g.js +16 -0
  86. package/dist/_chunks/{hover-card-nUae8NPJ.js → hover-card-BplP5SzQ.js} +2 -2
  87. package/dist/_chunks/{icon-button-CehAeZoP.js → icon-button-CY7GU_Se.js} +2 -2
  88. package/dist/_chunks/icon-button-group-B_426QN_.js +431 -0
  89. package/dist/_chunks/{icon-picker-DMEelg9v.js → icon-picker-ZLebyB0U.js} +3 -3
  90. package/dist/_chunks/{image-cropper-BjPjT7wU.js → image-cropper-_HiNN79d.js} +2 -2
  91. package/dist/_chunks/{info-tip-iP2Pm9dh.js → info-tip-laBxZhKu.js} +2 -2
  92. package/dist/_chunks/{insert-result-DPnOBD85.js → insert-result-CSuPQyKL.js} +2 -2
  93. package/dist/_chunks/{key-value-pair-DaQI_LZB.js → key-value-pair-Dcdl3Gni.js} +2 -2
  94. package/dist/_chunks/{kit-extensions-DuoFF1R3.js → kit-extensions-BTJSnM_H.js} +6 -6
  95. package/dist/_chunks/link-cell-renderer-CkNbUsBM.js +867 -0
  96. package/dist/_chunks/{locale-picker-CH3kfrIG.js → locale-picker-DGkQmhV9.js} +170 -180
  97. package/dist/_chunks/{map-view-CHw4RL6w.js → map-view-Bb7ClKSF.js} +2 -2
  98. package/dist/_chunks/{marketplace-app-shell-PB89Dkk_.js → marketplace-app-shell-1uKqs4gD.js} +7 -7
  99. package/dist/_chunks/menu-row-BAr8bx1I.js +95 -0
  100. package/dist/_chunks/{message-card-V3sFPiQI.js → message-card-C2zsvyj0.js} +4 -4
  101. package/dist/_chunks/{message-tray-CrRIHfiQ.js → message-tray-CMlmxdH2.js} +4 -4
  102. package/dist/_chunks/{multi-select-CtPd7g4x.js → multi-select-N4Smh-gj.js} +114 -113
  103. package/dist/_chunks/{muscle-scheme-UVz_x4iE.js → muscle-scheme-Co0NIgbU.js} +3 -3
  104. package/dist/_chunks/{note-attachment-CwDir3kK.js → note-attachment-CGjNTrAC.js} +2 -2
  105. package/dist/_chunks/{note-timeline-Dn_XTo1s.js → note-timeline-CVnKL0p6.js} +2 -2
  106. package/dist/_chunks/notes-panel-xxpFt-I1.js +1111 -0
  107. package/dist/_chunks/{notification-card-B2gLO6dK.js → notification-card-DDzBCi8l.js} +3 -3
  108. package/dist/_chunks/{notification-tray-BOEKegVV.js → notification-tray-PnH2PBlZ.js} +4 -4
  109. package/dist/_chunks/{operator-hero-XIdwDmN2.js → operator-hero-DyrNLoRO.js} +4 -4
  110. package/dist/_chunks/{optical-prescription-LGgmtcST.js → optical-prescription-DUufWXfZ.js} +3 -3
  111. package/dist/_chunks/{pagination-EkD5SiCK.js → pagination-B0N2qGy_.js} +83 -82
  112. package/dist/_chunks/panel-subview-CzHutkA8.js +217 -0
  113. package/dist/_chunks/{patient-details-yrgkSeEY.js → patient-details-tTlvrJSU.js} +4 -4
  114. package/dist/_chunks/{patient-field-row-DCMkFGqI.js → patient-field-row-DElFbpKc.js} +12 -12
  115. package/dist/_chunks/{patient-search-5QcmQKJD.js → patient-search-DgXdGkhK.js} +4 -4
  116. package/dist/_chunks/{patient-summary-card-CmEFflGS.js → patient-summary-card-DQ__6DR-.js} +8 -8
  117. package/dist/_chunks/{payment-automation-upsell-BKmBXU4i.js → payment-automation-upsell-ugi4np1l.js} +3 -3
  118. package/dist/_chunks/{payment-request-card-Cer6XXCn.js → payment-request-card-DMJB57Tv.js} +5 -5
  119. package/dist/_chunks/{periodontal-chart-DJoZS_o7.js → periodontal-chart-DbGzKDj7.js} +2 -2
  120. package/dist/_chunks/{periodontal-chart-card-Nd1ZoYWb.js → periodontal-chart-card-DvHyP47v.js} +3 -3
  121. package/dist/_chunks/{periodontal-diagnosis-C7pfPOct.js → periodontal-diagnosis-B8WqI0eU.js} +2 -2
  122. package/dist/_chunks/{periodontal-risk-chart-B2tNFa15.js → periodontal-risk-chart-DsFRFFSz.js} +2 -2
  123. package/dist/_chunks/{phone-input-IWrGOCwm.js → phone-input-sQj-zi59.js} +85 -86
  124. package/dist/_chunks/{popover-DO-pssF3.js → popover-Dvb40vPH.js} +2 -2
  125. package/dist/_chunks/{practice-profile-hero-DxoLlQr5.js → practice-profile-hero-B-WcJYNH.js} +3 -3
  126. package/dist/_chunks/{practice-results-D11Zpt27.js → practice-results-EKRiqWtQ.js} +8 -8
  127. package/dist/_chunks/{pregnancy-dating-DcyV9ZRD.js → pregnancy-dating-lfjjZVZH.js} +5 -5
  128. package/dist/_chunks/{pregnancy-weight-gain-Bfq4Kwt5.js → pregnancy-weight-gain-WpNt-S0q.js} +3 -3
  129. package/dist/_chunks/{privacy-lock-CbFCAMM3.js → privacy-lock-D6gq0GDg.js} +3 -3
  130. package/dist/_chunks/privacy-mask-BC5lw2zB.js +81 -0
  131. package/dist/_chunks/{product-hub-panel-w40-_-1s.js → product-hub-panel-CKeSCSeE.js} +3 -3
  132. package/dist/_chunks/{province-select-BaUnkg4S.js → province-select-BiszMRRY.js} +2 -2
  133. package/dist/_chunks/{public-header.agent-D-EBVskf.js → public-header.agent-B9wDmUeB.js} +3 -3
  134. package/dist/_chunks/{radiograph-panel.agent-LrILY2lN.js → radiograph-panel.agent-TmyIvTOa.js} +6 -6
  135. package/dist/_chunks/{reviews-panel-2GVuxGeT.js → reviews-panel-BdwFp_0c.js} +4 -4
  136. package/dist/_chunks/{rich-text-editor-BwDV2XkZ.js → rich-text-editor-y6ML0KeV.js} +12 -11
  137. package/dist/_chunks/{search-bar-CCmViqaa.js → search-bar-6bHatpYJ.js} +69 -67
  138. package/dist/_chunks/{select-CLSUnKjF.js → select-upNAltly.js} +89 -88
  139. package/dist/_chunks/{session-countdown-BqppPrw6.js → session-countdown-ACJyTXH2.js} +2 -2
  140. package/dist/_chunks/{sheet-C8WIDFS8.js → sheet-D0Lh0KR2.js} +2 -2
  141. package/dist/_chunks/{sign-in-with-alfadocs-button-DWwBJtyE.js → sign-in-with-alfadocs-button-CDyJAIzW.js} +2 -2
  142. package/dist/_chunks/{signature-request-D_j2aQu1.js → signature-request-BUGeG8oD.js} +7 -7
  143. package/dist/_chunks/{signature-status-chip-D4NsrdeI.js → signature-status-chip-Dz6sS2oA.js} +2 -2
  144. package/dist/_chunks/{slot-grid-B3eOPkKD.js → slot-grid-4fWH3Euk.js} +4 -4
  145. package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
  146. package/dist/_chunks/{streaming-text-CE1u_oGa.js → streaming-text-eRiizArc.js} +2 -2
  147. package/dist/_chunks/{tab-bar-Cw9UK18Z.js → tab-bar-BHFf6knq.js} +9 -9
  148. package/dist/_chunks/{tabs-BnRaLT0y.js → tabs-CFsuMQ5H.js} +82 -81
  149. package/dist/_chunks/{tag-Ci3xJPcH.js → tag-B65tLWvD.js} +24 -21
  150. package/dist/_chunks/{task-card-qTKD1fIT.js → task-card-jaOhnj_q.js} +73 -55
  151. package/dist/_chunks/task-editor-DlvTwAfv.js +1243 -0
  152. package/dist/_chunks/{task-tray-DIwjAIes.js → task-tray-HHyxi9ga.js} +4 -4
  153. package/dist/_chunks/tasks-panel-DbSjq_mz.js +1243 -0
  154. package/dist/_chunks/{theme-toggle-BP0XRGMM.js → theme-toggle-LUBxlNDm.js} +4 -4
  155. package/dist/_chunks/{timeline-61AihzYz.js → timeline-ChY7iZrs.js} +2 -2
  156. package/dist/_chunks/{toast-ZZfhA5u0.js → toast-CT8hjr9r.js} +2 -2
  157. package/dist/_chunks/{token-insert-menu-A9B5AJw6.js → token-insert-menu-klwbxVKh.js} +3 -3
  158. package/dist/_chunks/{tool-rail-CCFqDfAn.js → tool-rail-DEeX4PdN.js} +144 -137
  159. package/dist/_chunks/{tooth-scheme-DPAq0vQK.js → tooth-scheme-BkjhkI8g.js} +4 -4
  160. package/dist/_chunks/{treatment-receipt-DU0OewqH.js → treatment-receipt-C-gWZ6uv.js} +3 -3
  161. package/dist/_chunks/{unit-converter-C-LpGzrN.js → unit-converter-Dp_KDxE6.js} +3 -3
  162. package/dist/_chunks/use-appointment-details-read-5-hV-2xA.js +2045 -0
  163. package/dist/_chunks/use-list-reflow-C7O4Uqnl.js +133 -0
  164. package/dist/_chunks/use-priority-overflow-Cdmb5EiR.js +108 -0
  165. package/dist/_chunks/{variables-menu-vXUaSBj4.js → variables-menu-aJLKJ_cu.js} +127 -136
  166. package/dist/_chunks/{warning-stack-C0glSB7p.js → warning-stack-CEgYkI1z.js} +3 -3
  167. package/dist/_chunks/{widget-picker-B1sj6uyf.js → widget-picker-CilQvcNL.js} +2 -2
  168. package/dist/_chunks/{workflow-map-DhR_h5yw.js → workflow-map-qGkQTNvS.js} +30 -29
  169. package/dist/_chunks/{workflow-status-CuJAOuKL.js → workflow-status-ClHfz4Kr.js} +209 -167
  170. package/dist/agent-catalog.json +371 -26
  171. package/dist/agent-i18n/en.json +41 -9
  172. package/dist/components/_shared/appointment-format.d.ts +52 -0
  173. package/dist/{patterns/calendar/calendar-editor-fields.d.ts → components/_shared/compact-editor-fields.d.ts} +6 -5
  174. package/dist/components/_shared/handled-rejection.d.ts +2 -0
  175. package/dist/components/_shared/menu-row.d.ts +17 -0
  176. package/dist/components/_shared/patient-identity.d.ts +7 -0
  177. package/dist/components/_shared/patient-picker.d.ts +24 -0
  178. package/dist/components/_shared/privacy-mask.d.ts +29 -0
  179. package/dist/components/address-autocomplete/index.js +1 -1
  180. package/dist/components/address-fields/index.js +1 -1
  181. package/dist/components/agenda-card/index.js +1 -1
  182. package/dist/components/agenda-tray/index.js +1 -1
  183. package/dist/components/ai-credits-notice/index.js +1 -1
  184. package/dist/components/ai-permission-notice/index.js +1 -1
  185. package/dist/components/ai-prompt-input/index.js +1 -1
  186. package/dist/components/anamnesis-card/index.js +1 -1
  187. package/dist/components/anamnesis-summary-card/index.js +1 -1
  188. package/dist/components/appointment-card/index.js +2 -2
  189. package/dist/components/appointment-details-panel/appointment-details-panel.agent.d.ts +4 -0
  190. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +134 -0
  191. package/dist/components/appointment-details-panel/appointment-details-panel.focus.d.ts +7 -0
  192. package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +12 -0
  193. package/dist/components/appointment-details-panel/appointment-details-panel.identity.d.ts +41 -0
  194. package/dist/{patterns/calendar/calendar-info-hover.d.ts → components/appointment-details-panel/appointment-details-panel.info-hover.d.ts} +1 -1
  195. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +51 -0
  196. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +326 -0
  197. package/dist/components/appointment-details-panel/index.d.ts +8 -0
  198. package/dist/components/appointment-details-panel/index.js +8 -0
  199. package/dist/components/appointment-details-panel/use-appointment-details-read.d.ts +32 -0
  200. package/dist/components/appointment-peek/index.js +1 -1
  201. package/dist/components/appointment-timeline/index.js +1 -1
  202. package/dist/components/audio-recorder/index.js +1 -1
  203. package/dist/components/autocomplete/index.js +1 -1
  204. package/dist/components/avatar/index.js +1 -1
  205. package/dist/components/badge/index.js +1 -1
  206. package/dist/components/bishop-score/index.js +1 -1
  207. package/dist/components/bmi-calculator/index.js +1 -1
  208. package/dist/components/booking/cascade.d.ts +5 -0
  209. package/dist/components/booking/index.js +1 -1
  210. package/dist/components/breadcrumb/index.js +1 -1
  211. package/dist/components/button/button.d.ts +2 -1
  212. package/dist/components/button/index.js +2 -2
  213. package/dist/components/button-group/button-group.d.ts +19 -2
  214. package/dist/components/button-group/index.js +1 -1
  215. package/dist/components/calendar/calendar.d.ts +5 -1
  216. package/dist/components/calendar/index.js +1 -1
  217. package/dist/components/calendar-event-card/index.js +1 -1
  218. package/dist/components/care-plan-card/index.js +1 -1
  219. package/dist/components/care-plan-entry-card/index.js +1 -1
  220. package/dist/components/care-plan-header/index.js +1 -1
  221. package/dist/components/carousel/index.js +1 -1
  222. package/dist/components/chart/index.js +1 -1
  223. package/dist/components/chat-input/index.js +1 -1
  224. package/dist/components/chat-message/index.js +1 -1
  225. package/dist/components/city-input/index.js +1 -1
  226. package/dist/components/clinical-note-card/clinical-note-card.d.ts +13 -5
  227. package/dist/components/clinical-note-card/index.js +1 -1
  228. package/dist/components/combobox/combobox.d.ts +9 -4
  229. package/dist/components/combobox/index.js +1 -1
  230. package/dist/components/command-palette/index.js +1 -1
  231. package/dist/components/connection-status/index.js +1 -1
  232. package/dist/components/contact-profile-card/index.js +1 -1
  233. package/dist/components/control-room-rail/control-room-rail.d.ts +14 -3
  234. package/dist/components/control-room-rail/index.js +1 -1
  235. package/dist/components/copy-field/index.js +1 -1
  236. package/dist/components/country-select/index.js +1 -1
  237. package/dist/components/cycle-calculator/index.js +1 -1
  238. package/dist/components/dashboard-grid/index.js +1 -1
  239. package/dist/components/data-table/filters/number-filter.d.ts +26 -12
  240. package/dist/components/data-table/index.js +4 -4
  241. package/dist/components/data-table-tabs/index.js +1 -1
  242. package/dist/components/dependent-selector/index.js +1 -1
  243. package/dist/components/description-list/index.js +1 -1
  244. package/dist/components/document-preview/index.js +1 -1
  245. package/dist/components/document-scanner/index.js +1 -1
  246. package/dist/components/dropdown-menu/index.js +1 -1
  247. package/dist/components/due-date-calculator/index.js +2 -2
  248. package/dist/components/editable-description/index.js +1 -1
  249. package/dist/components/editor-overlay/index.js +1 -1
  250. package/dist/components/empty-state/index.js +1 -1
  251. package/dist/components/entity-summary/index.js +1 -1
  252. package/dist/components/error-boundary/index.js +1 -1
  253. package/dist/components/face-scheme/index.js +1 -1
  254. package/dist/components/fetal-weight/index.js +1 -1
  255. package/dist/components/field-array/index.js +1 -1
  256. package/dist/components/file-manager/index.js +1 -1
  257. package/dist/components/file-upload/index.js +1 -1
  258. package/dist/components/finished-terminal/index.js +1 -1
  259. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +7 -0
  260. package/dist/components/fiscal-code-input/index.d.ts +1 -1
  261. package/dist/components/fiscal-code-input/index.js +8 -7
  262. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +19 -4
  263. package/dist/components/freemium-paywall/index.js +1 -1
  264. package/dist/components/gestational-age-calculator/index.js +1 -1
  265. package/dist/components/hcg-doubling/index.js +1 -1
  266. package/dist/components/header/index.js +1 -1
  267. package/dist/components/header-settings/index.js +1 -1
  268. package/dist/components/hover-card/index.js +1 -1
  269. package/dist/components/icon-button/index.js +1 -1
  270. package/dist/components/icon-button-group/index.js +1 -1
  271. package/dist/components/icon-picker/index.js +1 -1
  272. package/dist/components/image-cropper/index.js +1 -1
  273. package/dist/components/index.d.ts +2 -0
  274. package/dist/components/info-tip/index.js +1 -1
  275. package/dist/components/key-value-pair/index.js +1 -1
  276. package/dist/components/locale-picker/index.js +1 -1
  277. package/dist/components/map-view/index.js +1 -1
  278. package/dist/components/message-card/index.js +1 -1
  279. package/dist/components/message-tray/index.js +1 -1
  280. package/dist/components/multi-select/index.js +1 -1
  281. package/dist/components/muscle-scheme/index.js +1 -1
  282. package/dist/components/note-timeline/index.js +1 -1
  283. package/dist/components/notes-panel/index.d.ts +1 -1
  284. package/dist/components/notes-panel/index.js +1 -1
  285. package/dist/components/notes-panel/notes-panel.d.ts +102 -26
  286. package/dist/components/notification-card/index.js +1 -1
  287. package/dist/components/notification-tray/index.js +1 -1
  288. package/dist/components/operator-hero/index.js +1 -1
  289. package/dist/components/optical-prescription/index.js +1 -1
  290. package/dist/components/pagination/index.js +1 -1
  291. package/dist/components/panel-subview/index.js +1 -1
  292. package/dist/components/patient-details/index.js +1 -1
  293. package/dist/components/patient-search/index.js +1 -1
  294. package/dist/components/patient-summary-card/index.js +1 -1
  295. package/dist/components/patient-table/index.js +1 -1
  296. package/dist/components/payment-card/index.js +1 -1
  297. package/dist/components/periodontal-chart/index.js +1 -1
  298. package/dist/components/periodontal-chart-card/index.js +1 -1
  299. package/dist/components/periodontal-diagnosis/index.js +1 -1
  300. package/dist/components/periodontal-risk-chart/index.js +1 -1
  301. package/dist/components/phone-input/index.js +1 -1
  302. package/dist/components/popover/index.js +1 -1
  303. package/dist/components/practice-profile-hero/index.js +1 -1
  304. package/dist/components/practice-results/index.js +1 -1
  305. package/dist/components/pregnancy-dating/index.js +1 -1
  306. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  307. package/dist/components/privacy-lock/index.js +1 -1
  308. package/dist/components/product-hub-tray/index.js +1 -1
  309. package/dist/components/province-select/index.js +1 -1
  310. package/dist/components/public-header/index.js +1 -1
  311. package/dist/components/radiograph-panel/index.js +1 -1
  312. package/dist/components/reviews-panel/index.js +1 -1
  313. package/dist/components/rich-text-editor/index.js +2 -2
  314. package/dist/components/search-bar/index.js +1 -1
  315. package/dist/components/select/index.js +1 -1
  316. package/dist/components/session-countdown/index.js +1 -1
  317. package/dist/components/sheet/index.js +1 -1
  318. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  319. package/dist/components/signature-field/signature-field.d.ts +1 -1
  320. package/dist/components/signature-status-chip/index.js +1 -1
  321. package/dist/components/skeleton-scheme/index.js +17 -17
  322. package/dist/components/slot-grid/index.js +1 -1
  323. package/dist/components/streaming-text/index.js +1 -1
  324. package/dist/components/tab-bar/index.js +1 -1
  325. package/dist/components/tabs/index.js +1 -1
  326. package/dist/components/tag/index.js +1 -1
  327. package/dist/components/task-card/index.js +1 -1
  328. package/dist/components/task-card/task-card.d.ts +7 -0
  329. package/dist/components/task-editor/index.d.ts +4 -0
  330. package/dist/components/task-editor/index.js +6 -0
  331. package/dist/components/task-editor/task-editor.agent.d.ts +4 -0
  332. package/dist/components/task-editor/task-editor.d.ts +240 -0
  333. package/dist/components/task-editor/use-task-editor-form.d.ts +101 -0
  334. package/dist/components/task-tray/index.js +1 -1
  335. package/dist/components/tasks-panel/index.d.ts +1 -1
  336. package/dist/components/tasks-panel/index.js +1 -1
  337. package/dist/components/tasks-panel/tasks-panel.d.ts +84 -12
  338. package/dist/components/theme-toggle/index.js +1 -1
  339. package/dist/components/timeline/index.js +1 -1
  340. package/dist/components/toast/index.js +1 -1
  341. package/dist/components/token-insert-menu/index.js +1 -1
  342. package/dist/components/tool-rail/index.js +1 -1
  343. package/dist/components/tooth-scheme/index.js +1 -1
  344. package/dist/components/treatment-receipt/index.js +1 -1
  345. package/dist/components/unit-converter/index.js +1 -1
  346. package/dist/components/variables-menu/index.js +1 -1
  347. package/dist/components/warning-stack/index.js +1 -1
  348. package/dist/components/widget-picker/index.js +1 -1
  349. package/dist/components/workflow/index.js +1 -1
  350. package/dist/components/workflow-status/appointment-workflow-status.d.ts +55 -0
  351. package/dist/components/workflow-status/index.d.ts +2 -0
  352. package/dist/components/workflow-status/index.js +7 -2
  353. package/dist/components/workflow-status/workflow-status.d.ts +35 -0
  354. package/dist/hooks/index.js +2 -2
  355. package/dist/hooks/use-exit-transition.d.ts +5 -0
  356. package/dist/hooks/use-priority-overflow.d.ts +11 -2
  357. package/dist/host-compat.css +7 -1
  358. package/dist/i18n/locales/ar.d.ts +48 -24
  359. package/dist/i18n/locales/ar.js +52 -28
  360. package/dist/i18n/locales/de.d.ts +48 -24
  361. package/dist/i18n/locales/de.js +52 -28
  362. package/dist/i18n/locales/el.d.ts +48 -24
  363. package/dist/i18n/locales/el.js +52 -28
  364. package/dist/i18n/locales/en.d.ts +34 -10
  365. package/dist/i18n/locales/en.js +39 -14
  366. package/dist/i18n/locales/es.d.ts +48 -24
  367. package/dist/i18n/locales/es.js +52 -28
  368. package/dist/i18n/locales/fr.d.ts +48 -24
  369. package/dist/i18n/locales/fr.js +52 -28
  370. package/dist/i18n/locales/hi.d.ts +48 -24
  371. package/dist/i18n/locales/hi.js +52 -28
  372. package/dist/i18n/locales/it.d.ts +34 -10
  373. package/dist/i18n/locales/it.js +39 -14
  374. package/dist/i18n/locales/ja.d.ts +48 -24
  375. package/dist/i18n/locales/ja.js +52 -28
  376. package/dist/i18n/locales/nl.d.ts +48 -24
  377. package/dist/i18n/locales/nl.js +52 -28
  378. package/dist/i18n/locales/pl.d.ts +48 -24
  379. package/dist/i18n/locales/pl.js +52 -28
  380. package/dist/i18n/locales/pt.d.ts +48 -24
  381. package/dist/i18n/locales/pt.js +52 -28
  382. package/dist/i18n/locales/ro.d.ts +48 -24
  383. package/dist/i18n/locales/ro.js +52 -28
  384. package/dist/i18n/locales/ru.d.ts +48 -24
  385. package/dist/i18n/locales/ru.js +52 -28
  386. package/dist/i18n/locales/sq.d.ts +48 -24
  387. package/dist/i18n/locales/sq.js +52 -28
  388. package/dist/i18n/locales/sv.d.ts +48 -24
  389. package/dist/i18n/locales/sv.js +52 -28
  390. package/dist/i18n/locales/tr.d.ts +48 -24
  391. package/dist/i18n/locales/tr.js +52 -28
  392. package/dist/i18n/locales/zh.d.ts +48 -24
  393. package/dist/i18n/locales/zh.js +52 -28
  394. package/dist/i18n/registerUiBundle.d.ts +5 -9
  395. package/dist/index.js +744 -730
  396. package/dist/locales/ar.json +52 -28
  397. package/dist/locales/de.json +52 -28
  398. package/dist/locales/el.json +52 -28
  399. package/dist/locales/en.json +38 -14
  400. package/dist/locales/es.json +52 -28
  401. package/dist/locales/fr.json +52 -28
  402. package/dist/locales/hi.json +52 -28
  403. package/dist/locales/it.json +38 -14
  404. package/dist/locales/ja.json +52 -28
  405. package/dist/locales/nl.json +52 -28
  406. package/dist/locales/pl.json +52 -28
  407. package/dist/locales/pt.json +52 -28
  408. package/dist/locales/ro.json +52 -28
  409. package/dist/locales/ru.json +52 -28
  410. package/dist/locales/sq.json +52 -28
  411. package/dist/locales/sv.json +52 -28
  412. package/dist/locales/tr.json +52 -28
  413. package/dist/locales/zh.json +52 -28
  414. package/dist/patterns/alia-assistant/index.js +1 -1
  415. package/dist/patterns/anamnesis/index.js +1 -1
  416. package/dist/patterns/calendar/calendar-appointment-details.d.ts +25 -95
  417. package/dist/patterns/calendar/calendar-patient-picker.d.ts +4 -3
  418. package/dist/patterns/calendar/calendar-privacy.d.ts +1 -22
  419. package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -13
  420. package/dist/patterns/calendar/calendar-task-editor.d.ts +9 -13
  421. package/dist/patterns/calendar/calendar-workspace.d.ts +89 -8
  422. package/dist/patterns/calendar/calendar-workspace.model.d.ts +17 -12
  423. package/dist/patterns/calendar/calendar.journey.d.ts +40 -6
  424. package/dist/patterns/calendar/calendar.model.d.ts +10 -17
  425. package/dist/patterns/calendar/calendar.sheets.d.ts +18 -16
  426. package/dist/patterns/calendar/calendar.surface.d.ts +4 -1
  427. package/dist/patterns/calendar/calendar.types.d.ts +24 -100
  428. package/dist/patterns/calendar/index.d.ts +4 -3
  429. package/dist/patterns/calendar/index.js +1 -1
  430. package/dist/patterns/help-me-write-templates/index.js +1 -1
  431. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  432. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  433. package/dist/patterns/signature-request/index.js +1 -1
  434. package/dist/tokens.css +1 -1
  435. package/package.json +33 -16
  436. package/dist/_chunks/button-group-CA1tmu39.js +0 -325
  437. package/dist/_chunks/calendar-workspace-BmscntRR.js +0 -12528
  438. package/dist/_chunks/combobox-DnSdYssy.js +0 -522
  439. package/dist/_chunks/control-room-rail-CdBOXIqX.js +0 -366
  440. package/dist/_chunks/fiscal-code-input-ODQRd_Sw.js +0 -553
  441. package/dist/_chunks/icon-button-group-DZKC6KGf.js +0 -428
  442. package/dist/_chunks/link-cell-renderer-s3oHzOwi.js +0 -778
  443. package/dist/_chunks/notes-panel-CHbDDMx8.js +0 -683
  444. package/dist/_chunks/panel-subview-CYnuX-KR.js +0 -171
  445. package/dist/_chunks/tasks-panel-DncuBPIZ.js +0 -844
  446. package/dist/_chunks/use-list-reflow-Cw43nxw5.js +0 -100
  447. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +0 -101
  448. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +0 -37
@@ -1,15 +1,17 @@
1
- import { jsxs as i, jsx as s, Fragment as se } from "react/jsx-runtime";
2
- import { forwardRef as I, useId as re, useRef as ae, useCallback as te, useMemo as oe, useImperativeHandle as ne } from "react";
3
- import { c as f } from "./index-D2ZczOXr.js";
4
- import { useTranslation as L } from "react-i18next";
5
- import { u as de } from "./registry-DvAUVLHh.js";
6
- import { u as ie } from "./use-controllable-state-BiY4xTzM.js";
7
- import { a as z } from "./input-surface-xyERuLU_.js";
8
- import { D as p } from "./dropdown-menu-DU-Hrf33.js";
9
- import { C as T } from "./circle-alert-rGDZ73Wh.js";
10
- import { L as le } from "./loader-circle-BECIU_8N.js";
11
- import { C as ce } from "./chevron-down-DWE7GSq9.js";
12
- const ue = {
1
+ import { jsxs as c, jsx as r, Fragment as he } from "react/jsx-runtime";
2
+ import { forwardRef as q, useId as be, useRef as z, useState as O, useEffect as ke, useCallback as ye, useMemo as xe, useImperativeHandle as Se } from "react";
3
+ import { c as g } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as G } from "react-i18next";
5
+ import { u as Ve } from "./registry-DvAUVLHh.js";
6
+ import { u as Ce } from "./use-controllable-state-BiY4xTzM.js";
7
+ import { u as Ne } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
+ import { g as ze, h as We } from "./handled-rejection-6gqCf5vt.js";
9
+ import { a as B } from "./input-surface-xyERuLU_.js";
10
+ import { D as p } from "./dropdown-menu-C8PaW3lR.js";
11
+ import { C as U } from "./circle-alert-rGDZ73Wh.js";
12
+ import { L as je } from "./loader-circle-BECIU_8N.js";
13
+ import { C as Te } from "./chevron-down-DWE7GSq9.js";
14
+ const _e = {
13
15
  id: "workflow-status",
14
16
  capabilities: ["select_single", "set_value", "open", "close"],
15
17
  state: {
@@ -17,19 +19,19 @@ const ue = {
17
19
  type: "string",
18
20
  descriptionKey: "ui.agent.workflowStatus.state.value",
19
21
  description: "The current non-sensitive workflow status key.",
20
- read: (r) => r.getValue()
22
+ read: (s) => s.getValue()
21
23
  },
22
24
  isOpen: {
23
25
  type: "boolean",
24
26
  descriptionKey: "ui.agent.workflowStatus.state.isOpen",
25
27
  description: "Whether the permitted workflow status list is open.",
26
- read: (r) => r.getIsOpen()
28
+ read: (s) => s.getIsOpen()
27
29
  },
28
30
  isSaving: {
29
31
  type: "boolean",
30
32
  descriptionKey: "ui.agent.workflowStatus.state.isSaving",
31
33
  description: "Whether the host is saving a workflow status change.",
32
- read: (r) => r.getIsSaving()
34
+ read: (s) => s.getIsSaving()
33
35
  }
34
36
  },
35
37
  actions: {
@@ -47,30 +49,31 @@ const ue = {
47
49
  required: ["value"]
48
50
  },
49
51
  idempotent: !0,
50
- openWorld: !1,
52
+ openWorld: !0,
51
53
  errors: [
52
54
  "The status is not in the host-provided transition list.",
53
55
  "The status is disabled.",
54
- "A status change is already being saved."
56
+ "A status change is already being saved.",
57
+ "The host rejected the change. The previous status stays and the error is shown."
55
58
  ],
56
59
  examples: [{ args: { value: "review" } }],
57
60
  descriptionKey: "ui.agent.workflowStatus.actions.setValue",
58
61
  description: "Request a permitted workflow status through the host-owned change callback.",
59
- invoke: (r, a) => r.setValue(a.value)
62
+ invoke: (s, t) => s.setValue(t.value)
60
63
  },
61
64
  open: {
62
65
  safety: "read",
63
66
  idempotent: !0,
64
67
  descriptionKey: "ui.agent.workflowStatus.actions.open",
65
68
  description: "Open the permitted workflow status list.",
66
- invoke: (r) => r.open()
69
+ invoke: (s) => s.open()
67
70
  },
68
71
  close: {
69
72
  safety: "read",
70
73
  idempotent: !0,
71
74
  descriptionKey: "ui.agent.workflowStatus.actions.close",
72
75
  description: "Close the workflow status list.",
73
- invoke: (r) => r.close()
76
+ invoke: (s) => s.close()
74
77
  }
75
78
  },
76
79
  domHooks: {
@@ -89,7 +92,7 @@ const ue = {
89
92
  description: "Non-sensitive workflow status key for a permitted option."
90
93
  }
91
94
  }
92
- }, O = f(
95
+ }, J = g(
93
96
  "ds:inline-flex ds:max-w-full ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]",
94
97
  {
95
98
  variants: {
@@ -101,7 +104,7 @@ const ue = {
101
104
  },
102
105
  defaultVariants: { size: "md" }
103
106
  }
104
- ), R = f(
107
+ ), Q = g(
105
108
  [
106
109
  "ds:group/workflow-status ds:inline-grid ds:max-w-full ds:w-fit ds:items-center",
107
110
  "ds:overflow-hidden ds:text-start",
@@ -114,9 +117,9 @@ const ue = {
114
117
  {
115
118
  variants: {
116
119
  size: {
117
- sm: `${z.sm} ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-sm)]`,
118
- md: `${z.md} ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-sm)]`,
119
- lg: `${z.lg} ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-md)]`
120
+ sm: `${B.sm} ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-sm)]`,
121
+ md: `${B.md} ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-sm)]`,
122
+ lg: `${B.lg} ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-md)]`
120
123
  },
121
124
  interactive: {
122
125
  true: [
@@ -143,11 +146,15 @@ const ue = {
143
146
  operation: "idle"
144
147
  }
145
148
  }
146
- ), B = f(
149
+ ), X = g(
147
150
  [
148
151
  "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
149
152
  "ds:rounded-[var(--radius-full)] ds:border ds:[&>svg]:block",
150
- "ds:forced-colors:bg-transparent ds:forced-colors:border-[CanvasText]"
153
+ "ds:forced-colors:bg-transparent ds:forced-colors:border-[CanvasText]",
154
+ // On a lit menu row every tone shows as an outline in the row's ink.
155
+ "ds:not-forced-colors:group-data-[highlighted]/menu-row:bg-transparent",
156
+ "ds:not-forced-colors:group-data-[highlighted]/menu-row:text-[color:var(--accent-foreground)]",
157
+ "ds:not-forced-colors:group-data-[highlighted]/menu-row:border-[color:var(--accent-foreground)]"
151
158
  ].join(" "),
152
159
  {
153
160
  variants: {
@@ -173,7 +180,7 @@ const ue = {
173
180
  },
174
181
  defaultVariants: { tone: "neutral", size: "md" }
175
182
  }
176
- ), fe = f(
183
+ ), Ie = g(
177
184
  "ds:flex ds:min-w-0 ds:flex-col ds:justify-center ds:text-start",
178
185
  {
179
186
  variants: {
@@ -185,7 +192,7 @@ const ue = {
185
192
  },
186
193
  defaultVariants: { size: "md" }
187
194
  }
188
- ), pe = f(
195
+ ), Le = g(
189
196
  "ds:block ds:min-w-0 ds:truncate ds:font-[var(--font-weight-semibold)] ds:text-[color:var(--foreground)]",
190
197
  {
191
198
  variants: {
@@ -197,7 +204,7 @@ const ue = {
197
204
  },
198
205
  defaultVariants: { size: "md" }
199
206
  }
200
- ), me = f(
207
+ ), Re = g(
201
208
  [
202
209
  "ds:inline-flex ds:self-stretch ds:items-center ds:justify-center",
203
210
  "ds:gap-[var(--spacing-2xs)] ds:border-s ds:border-border",
@@ -214,7 +221,7 @@ const ue = {
214
221
  },
215
222
  defaultVariants: { size: "md" }
216
223
  }
217
- ), ge = f(
224
+ ), Ee = g(
218
225
  [
219
226
  "ds:flex ds:max-w-full ds:items-start ds:gap-[var(--spacing-xs)]",
220
227
  "type-meta ds:text-[color:var(--error-foreground)]",
@@ -222,47 +229,47 @@ const ue = {
222
229
  "ds:forced-colors:text-[CanvasText]"
223
230
  ].join(" ")
224
231
  );
225
- function A({
226
- option: r,
227
- workflowLabel: a,
228
- size: t = "md",
229
- interactive: n,
230
- operation: l = "idle",
231
- error: c
232
+ function Y({
233
+ option: s,
234
+ workflowLabel: t,
235
+ size: o = "md",
236
+ interactive: i,
237
+ operation: u = "idle",
238
+ error: n
232
239
  }) {
233
- return /* @__PURE__ */ i(se, { children: [
234
- /* @__PURE__ */ s(
240
+ return /* @__PURE__ */ c(he, { children: [
241
+ /* @__PURE__ */ r(
235
242
  "span",
236
243
  {
237
244
  "aria-hidden": "true",
238
245
  "data-workflow-status-icon": "",
239
- "data-tone": r.tone,
240
- className: B({ tone: r.tone, size: t }),
241
- children: r.icon
246
+ "data-tone": s.tone,
247
+ className: X({ tone: s.tone, size: o }),
248
+ children: s.icon
242
249
  }
243
250
  ),
244
- /* @__PURE__ */ i("span", { className: fe({ size: t }), children: [
245
- t !== "sm" ? /* @__PURE__ */ s("span", { className: "type-meta ds:font-[var(--font-weight-medium)] ds:text-[color:var(--muted-foreground)]", children: a }) : null,
246
- /* @__PURE__ */ s(
251
+ /* @__PURE__ */ c("span", { className: Ie({ size: o }), children: [
252
+ o !== "sm" ? /* @__PURE__ */ r("span", { className: "type-meta ds:font-[var(--font-weight-medium)] ds:text-[color:var(--muted-foreground)]", children: t }) : null,
253
+ /* @__PURE__ */ r(
247
254
  "span",
248
255
  {
249
256
  "data-workflow-status-value": "",
250
- title: r.label,
251
- className: pe({ size: t }),
252
- children: r.label
257
+ title: s.label,
258
+ className: Le({ size: o }),
259
+ children: s.label
253
260
  }
254
261
  )
255
262
  ] }),
256
- n ? /* @__PURE__ */ i("span", { className: me({ size: t }), "aria-hidden": "true", children: [
257
- c ? /* @__PURE__ */ s(
258
- T,
263
+ i ? /* @__PURE__ */ c("span", { className: Re({ size: o }), "aria-hidden": "true", children: [
264
+ n ? /* @__PURE__ */ r(
265
+ U,
259
266
  {
260
267
  "data-testid": "workflow-status-error-icon",
261
268
  className: "ds:size-[var(--spacing-md)] ds:shrink-0"
262
269
  }
263
270
  ) : null,
264
- l === "saving" ? /* @__PURE__ */ s(le, { className: "ds:size-[var(--spacing-md)] ds:shrink-0 ds:animate-spin ds:motion-reduce:animate-none" }) : /* @__PURE__ */ s(
265
- ce,
271
+ u === "saving" ? /* @__PURE__ */ r(je, { className: "ds:size-[var(--spacing-md)] ds:shrink-0 ds:animate-spin ds:motion-reduce:animate-none" }) : /* @__PURE__ */ r(
272
+ Te,
266
273
  {
267
274
  "data-testid": "workflow-status-chevron",
268
275
  className: "ds:size-[var(--spacing-md)] ds:shrink-0 ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:group-data-[open]/workflow-status:rotate-180"
@@ -271,25 +278,25 @@ function A({
271
278
  ] }) : null
272
279
  ] });
273
280
  }
274
- const ve = I(function({ value: a, option: t, size: n = "md", workflowLabel: l, id: c, className: o, dir: k }, b) {
275
- const { t: x } = L(), y = l ?? x("workflowStatus.label", "Workflow");
276
- return /* @__PURE__ */ s(
281
+ const Oe = q(function({ value: t, option: o, size: i = "md", workflowLabel: u, id: n, className: v, dir: W }, y) {
282
+ const { t: j } = G(), T = u ?? j("workflowStatus.label", "Workflow");
283
+ return /* @__PURE__ */ r(
277
284
  "div",
278
285
  {
279
- ref: b,
280
- id: c,
281
- dir: k,
286
+ ref: y,
287
+ id: n,
288
+ dir: W,
282
289
  "data-component": "workflow-status",
283
- "data-component-id": c,
284
- "data-state": a,
290
+ "data-component-id": n,
291
+ "data-state": t,
285
292
  "data-variant": "display",
286
- className: O({ size: n, className: o }),
287
- children: /* @__PURE__ */ s("div", { className: R({ size: n, interactive: !1 }), children: /* @__PURE__ */ s(
288
- A,
293
+ className: J({ size: i, className: v }),
294
+ children: /* @__PURE__ */ r("div", { className: Q({ size: i, interactive: !1 }), children: /* @__PURE__ */ r(
295
+ Y,
289
296
  {
290
- option: t,
291
- workflowLabel: y,
292
- size: n,
297
+ option: o,
298
+ workflowLabel: T,
299
+ size: i,
293
300
  interactive: !1,
294
301
  error: !1
295
302
  }
@@ -297,149 +304,181 @@ const ve = I(function({ value: a, option: t, size: n = "md", workflowLabel: l, i
297
304
  }
298
305
  );
299
306
  });
300
- ve.displayName = "WorkflowStatusDisplay";
301
- const we = I(function({
302
- value: a,
303
- options: t,
304
- onValueChange: n,
305
- size: l = "md",
306
- disabled: c = !1,
307
- saving: o = !1,
308
- error: k = !1,
309
- errorMessage: b,
310
- workflowLabel: x,
311
- menuLabel: y,
312
- savingLabel: D,
313
- open: E,
314
- defaultOpen: K = !1,
315
- onOpenChange: $,
316
- id: u,
317
- className: H,
318
- dir: W,
319
- "aria-label": M,
320
- "aria-describedby": q
321
- }, F) {
322
- const { t: m } = L(), G = re(), S = ae(null), C = t.find((e) => e.value === a);
323
- if (!C)
307
+ Oe.displayName = "WorkflowStatusDisplay";
308
+ const Be = q(function({
309
+ value: t,
310
+ options: o,
311
+ onValueChange: i,
312
+ size: u = "md",
313
+ disabled: n = !1,
314
+ saving: v = !1,
315
+ error: W = !1,
316
+ errorMessage: y,
317
+ workflowLabel: j,
318
+ menuLabel: T,
319
+ savingLabel: Z,
320
+ open: ee,
321
+ defaultOpen: se = !1,
322
+ onOpenChange: re,
323
+ id: f,
324
+ className: te,
325
+ dir: D,
326
+ "aria-label": oe,
327
+ "aria-describedby": ae
328
+ }, ne) {
329
+ const { t: w } = G(), ie = be(), x = z(null), _ = z(!1), [de, A] = O(!1), [h, S] = O(null), [le, ce] = O(t);
330
+ le !== t && (ce(t), h && h.from !== t && S(null));
331
+ const I = z(!1);
332
+ ke(() => (I.current = !0, () => {
333
+ I.current = !1;
334
+ }), []);
335
+ const L = o.find((e) => e.value === t);
336
+ if (!L)
324
337
  throw new Error(
325
- `WorkflowStatusControl requires an option matching value "${a}".`
338
+ `WorkflowStatusControl requires an option matching value "${t}".`
326
339
  );
327
- const P = x ?? m("workflowStatus.label", "Workflow"), U = y ?? m("workflowStatus.menuLabel", "Workflow statuses"), J = D ?? m("workflowStatus.saving", "Saving workflow status"), Q = b ?? m(
340
+ const ue = j ?? w("workflowStatus.label", "Workflow"), fe = T ?? w("workflowStatus.menuLabel", "Workflow statuses"), ge = Z ?? w("workflowStatus.saving", "Saving workflow status"), K = w(
328
341
  "workflowStatus.saveFailed",
329
342
  "Could not change workflow status. The previous status is still shown."
330
- ), X = M ?? m("workflowStatus.changeLabel", "Change workflow status: {{status}}", {
331
- status: C.label
332
- }), g = k || !!b, d = c || o, _ = u ? `${u}-error` : G, Y = [q, g ? _ : void 0].filter(Boolean).join(" ") || void 0, j = o ? "saving" : c ? "disabled" : g ? "error" : "idle", [Z, v] = ie({
333
- value: E,
334
- defaultValue: K,
335
- onChange: $
336
- }), h = !!Z && !d, N = te(
343
+ ), me = y ?? (h ? ze(h.reason, K) : K), pe = oe ?? w("workflowStatus.changeLabel", "Change workflow status: {{status}}", {
344
+ status: L.label
345
+ }), b = W || !!y || h !== null, d = v || de, m = n || d, M = f ? `${f}-error` : ie, ve = [ae, b ? M : void 0].filter(Boolean).join(" ") || void 0, $ = d ? "saving" : n ? "disabled" : b ? "error" : "idle", [we, k] = Ce({
346
+ value: ee,
347
+ defaultValue: se,
348
+ onChange: re
349
+ }), V = !!we && !m, C = z(!1);
350
+ Ne(() => {
351
+ if (d || !C.current) return;
352
+ C.current = !1;
353
+ const e = x.current, l = e == null ? void 0 : e.ownerDocument.activeElement;
354
+ e && (!l || l === e.ownerDocument.body) && e.focus();
355
+ });
356
+ const R = ye(
337
357
  (e) => {
338
- if (d || e === a) return;
339
- const w = t.find((ee) => ee.value === e);
340
- if (!(!w || w.disabled))
341
- return n(e);
358
+ if (n || v || _.current || e === t) return;
359
+ const l = o.find((a) => a.value === e);
360
+ if (!l || l.disabled) return;
361
+ S(null);
362
+ const H = t;
363
+ let N;
364
+ try {
365
+ N = i(e);
366
+ } catch (a) {
367
+ return S({ reason: a, from: H }), We(a);
368
+ }
369
+ if (!De(N)) return N;
370
+ _.current = !0, A(!0);
371
+ const P = (a) => {
372
+ _.current = !1, I.current && (A(!1), a && S(a));
373
+ }, F = Promise.resolve(N).then(
374
+ () => P(null),
375
+ (a) => {
376
+ throw P({ reason: a, from: H }), a;
377
+ }
378
+ );
379
+ return F.catch(() => {
380
+ }), F;
342
381
  },
343
- [d, n, t, a]
344
- ), V = oe(
382
+ [n, i, o, v, t]
383
+ ), E = xe(
345
384
  () => ({
346
- getValue: () => a,
347
- getIsOpen: () => h,
348
- getIsSaving: () => o,
349
- setValue: N,
385
+ getValue: () => t,
386
+ getIsOpen: () => V,
387
+ getIsSaving: () => d,
388
+ setValue: R,
350
389
  open: () => {
351
- d || v(!0);
390
+ m || k(!0);
352
391
  },
353
- close: () => v(!1),
392
+ close: () => k(!1),
354
393
  focus: () => {
355
394
  var e;
356
- return (e = S.current) == null ? void 0 : e.focus();
395
+ return (e = x.current) == null ? void 0 : e.focus();
357
396
  }
358
397
  }),
359
- [N, d, h, o, v, a]
398
+ [R, m, V, d, k, t]
360
399
  );
361
- return ne(F, () => V, [V]), de(ue, V, u), /* @__PURE__ */ i(
400
+ return Se(ne, () => E, [E]), Ve(_e, E, f), /* @__PURE__ */ c(
362
401
  "div",
363
402
  {
364
- id: u,
365
- dir: W,
403
+ id: f,
404
+ dir: D,
366
405
  "data-component": "workflow-status",
367
- "data-component-id": u,
368
- "data-state": a,
406
+ "data-component-id": f,
407
+ "data-state": t,
369
408
  "data-variant": "control",
370
- "data-saving": o ? "" : void 0,
371
- "data-error": g ? "" : void 0,
372
- className: O({ size: l, className: H }),
409
+ "data-saving": d ? "" : void 0,
410
+ "data-error": b ? "" : void 0,
411
+ className: J({ size: u, className: te }),
373
412
  children: [
374
- /* @__PURE__ */ i(
413
+ /* @__PURE__ */ c(
375
414
  p.Root,
376
415
  {
377
- dir: W,
378
- open: h,
416
+ dir: D,
417
+ open: V,
379
418
  onOpenChange: (e) => {
380
- e && d || v(e);
419
+ e && m || (e && (C.current = !1), k(e));
381
420
  },
382
421
  children: [
383
- /* @__PURE__ */ s(p.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
422
+ /* @__PURE__ */ r(p.Trigger, { asChild: !0, children: /* @__PURE__ */ r(
384
423
  "button",
385
424
  {
386
- ref: S,
387
- id: u ? `${u}-trigger` : void 0,
425
+ ref: x,
426
+ id: f ? `${f}-trigger` : void 0,
388
427
  type: "button",
389
- disabled: d,
390
- "aria-label": X,
391
- "aria-describedby": Y,
392
- "aria-busy": o,
393
- "data-open": h ? "" : void 0,
394
- className: R({
395
- size: l,
428
+ disabled: m,
429
+ "aria-label": pe,
430
+ "aria-describedby": ve,
431
+ "aria-busy": d,
432
+ "data-open": V ? "" : void 0,
433
+ className: Q({
434
+ size: u,
396
435
  interactive: !0,
397
- operation: j
436
+ operation: $
398
437
  }),
399
- children: /* @__PURE__ */ s(
400
- A,
438
+ children: /* @__PURE__ */ r(
439
+ Y,
401
440
  {
402
- option: C,
403
- workflowLabel: P,
404
- size: l,
441
+ option: L,
442
+ workflowLabel: ue,
443
+ size: u,
405
444
  interactive: !0,
406
- operation: j,
407
- error: g
445
+ operation: $,
446
+ error: b
408
447
  }
409
448
  )
410
449
  }
411
450
  ) }),
412
- /* @__PURE__ */ i(p.Content, { align: "start", children: [
413
- /* @__PURE__ */ s(p.Label, { children: U }),
414
- /* @__PURE__ */ s(
451
+ /* @__PURE__ */ c(p.Content, { align: "start", children: [
452
+ /* @__PURE__ */ r(p.Label, { children: fe }),
453
+ /* @__PURE__ */ r(
415
454
  p.RadioGroup,
416
455
  {
417
- value: a,
456
+ value: t,
418
457
  onValueChange: (e) => {
419
- var w;
420
- v(!1), (w = S.current) == null || w.focus(), N(e);
458
+ var l;
459
+ k(!1), (l = x.current) == null || l.focus(), C.current = !0, R(e);
421
460
  },
422
- children: t.map((e) => /* @__PURE__ */ s(
461
+ children: o.map((e) => /* @__PURE__ */ r(
423
462
  p.RadioItem,
424
463
  {
425
464
  value: e.value,
426
- disabled: d || e.disabled,
465
+ disabled: m || e.disabled,
427
466
  "data-option-id": e.value,
428
- children: /* @__PURE__ */ i("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-sm)]", children: [
429
- /* @__PURE__ */ s(
467
+ children: /* @__PURE__ */ c("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-sm)]", children: [
468
+ /* @__PURE__ */ r(
430
469
  "span",
431
470
  {
432
471
  "aria-hidden": "true",
433
472
  "data-workflow-status-icon": "",
434
473
  "data-tone": e.tone,
435
- className: B({
474
+ className: X({
436
475
  tone: e.tone,
437
476
  size: "menu"
438
477
  }),
439
478
  children: e.icon
440
479
  }
441
480
  ),
442
- /* @__PURE__ */ s("span", { className: "ds:min-w-0 ds:truncate", title: e.label, children: e.label })
481
+ /* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate", title: e.label, children: e.label })
443
482
  ] })
444
483
  },
445
484
  e.value
@@ -450,28 +489,31 @@ const we = I(function({
450
489
  ]
451
490
  }
452
491
  ),
453
- /* @__PURE__ */ s(
492
+ /* @__PURE__ */ r(
454
493
  "span",
455
494
  {
456
495
  role: "status",
457
496
  "aria-live": "polite",
458
497
  "aria-atomic": "true",
459
498
  className: "ds:sr-only",
460
- children: o ? J : ""
499
+ children: d ? ge : ""
461
500
  }
462
501
  ),
463
- g ? /* @__PURE__ */ i("div", { id: _, role: "alert", className: ge(), children: [
464
- /* @__PURE__ */ s(T, { "aria-hidden": "true" }),
465
- /* @__PURE__ */ s("span", { children: Q })
502
+ b ? /* @__PURE__ */ c("div", { id: M, role: "alert", className: Ee(), children: [
503
+ /* @__PURE__ */ r(U, { "aria-hidden": "true" }),
504
+ /* @__PURE__ */ r("span", { children: me })
466
505
  ] }) : null
467
506
  ]
468
507
  }
469
508
  );
470
509
  });
471
- we.displayName = "WorkflowStatusControl";
510
+ Be.displayName = "WorkflowStatusControl";
511
+ function De(s) {
512
+ return typeof s == "object" && s !== null && typeof s.then == "function";
513
+ }
472
514
  export {
473
- we as W,
474
- ve as a,
475
- ue as w
515
+ Be as W,
516
+ Oe as a,
517
+ _e as w
476
518
  };
477
- //# sourceMappingURL=workflow-status-CuJAOuKL.js.map
519
+ //# sourceMappingURL=workflow-status-ClHfz4Kr.js.map