@alfadocs/ui-kit 1.50.0 → 1.51.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 (323) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DMittsR3.js → actions-cell-renderer-DBI33cMp.js} +4 -4
  2. package/dist/_chunks/{agenda-tray-BhZASyJm.js → agenda-tray-CGhEEnFE.js} +3 -3
  3. package/dist/_chunks/{ai-credits-notice-C-kz_RrY.js → ai-credits-notice-C9K_ley1.js} +3 -3
  4. package/dist/_chunks/{ai-permission-notice-BRZeS3mT.js → ai-permission-notice-DMG1o4Qa.js} +2 -2
  5. package/dist/_chunks/{ai-prompt-input-CxvnXsAs.js → ai-prompt-input-ucwO-z8g.js} +2 -2
  6. package/dist/_chunks/{alia-sidebar-Dx-oeOV2.js → alia-sidebar-K3gaNH94.js} +7 -7
  7. package/dist/_chunks/{anamnesis-card-D8Si-2GV.js → anamnesis-card-CPjry4ur.js} +2 -2
  8. package/dist/_chunks/{anamnesis-summary-rows-CZirLRuv.js → anamnesis-summary-rows-D9LZZHLw.js} +9 -9
  9. package/dist/_chunks/{appointment-card-BgLpE6T5.js → appointment-card-DETaIfBb.js} +2 -2
  10. package/dist/_chunks/{appointment-peek-Dk11UOVW.js → appointment-peek-B79v56Zc.js} +4 -4
  11. package/dist/_chunks/{appointment-timeline-wQ-PdkFV.js → appointment-timeline-tyJJPgVU.js} +5 -5
  12. package/dist/_chunks/{appointment-tray-D7Gt6m8x.js → appointment-tray-Dq4zto_L.js} +4 -4
  13. package/dist/_chunks/{audio-recorder-DZBtAvLH.js → audio-recorder-Ddlp5rVg.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-klaxFNL_.js → balance-badge-cell-BCEsdEOe.js} +4 -4
  15. package/dist/_chunks/{bishop-score-BMLRvXYF.js → bishop-score-1NAiZh0K.js} +2 -2
  16. package/dist/_chunks/{bmi-calculator-DUhRyyrA.js → bmi-calculator-ZzzPZhhI.js} +2 -2
  17. package/dist/_chunks/{booking-Cdzd8kyY.js → booking-DmyX24Ls.js} +5 -5
  18. package/dist/_chunks/{button-18oBsI3n.js → button-CYPx2xFq.js} +38 -36
  19. package/dist/_chunks/{button-group-BSDqso_C.js → button-group-t9RrsCS6.js} +3 -3
  20. package/dist/_chunks/{calendar-zpE9qTM4.js → calendar-aqzmITxw.js} +543 -508
  21. package/dist/_chunks/{calendar-event-card-DplPh1wv.js → calendar-event-card-DyFSIehr.js} +148 -145
  22. package/dist/_chunks/calendar-workspace-BqoPkCUp.js +10597 -0
  23. package/dist/_chunks/{care-plan-card-ciBaaguw.js → care-plan-card-amX33mMF.js} +2 -2
  24. package/dist/_chunks/{care-plan-entry-card-D7A0whiZ.js → care-plan-entry-card-DNkEucjN.js} +2 -2
  25. package/dist/_chunks/{care-plan-header-DKV1gLqv.js → care-plan-header-CJi853Rf.js} +2 -2
  26. package/dist/_chunks/{carousel.agent-DqDGR2yH.js → carousel.agent-2EhJsAtl.js} +2 -2
  27. package/dist/_chunks/{chart-VjuXDXOZ.js → chart-B2HnwMP5.js} +3 -3
  28. package/dist/_chunks/{chat-input-BVho_SqP.js → chat-input-CHUsUFOD.js} +2 -2
  29. package/dist/_chunks/{chat-message-B4ihjNy3.js → chat-message-DTcRGhNo.js} +3 -3
  30. package/dist/_chunks/{code-block-C_eNHWaa.js → code-block-BrwcZNPq.js} +2 -2
  31. package/dist/_chunks/{connection-status-Cfux3TvH.js → connection-status-DMheLE65.js} +3 -3
  32. package/dist/_chunks/{contact-profile-card-Dj4NgBL-.js → contact-profile-card-zQLGGFKG.js} +2 -2
  33. package/dist/_chunks/{control-room-rail-DAO0qfOI.js → control-room-rail-5iuM3jcm.js} +3 -3
  34. package/dist/_chunks/{copy-field-Cm4y5Bff.js → copy-field-C-KvrgOG.js} +2 -2
  35. package/dist/_chunks/{cycle-calculator-B9lBRNiZ.js → cycle-calculator-DQMCeEzn.js} +2 -2
  36. package/dist/_chunks/{dashboard-grid-uX7x1ePj.js → dashboard-grid-H7uph3HO.js} +2 -2
  37. package/dist/_chunks/{data-table-CrI3_bjH.js → data-table-C4yPR89K.js} +7 -7
  38. package/dist/_chunks/{data-table-tabs-CzYYKp2_.js → data-table-tabs-Dd_O1nPY.js} +3 -3
  39. package/dist/_chunks/{description-list-1A2DEbE6.js → description-list-DOPu69Jg.js} +2 -2
  40. package/dist/_chunks/{document-preview-Od2Hz4z5.js → document-preview-Dzh1YAz8.js} +3 -3
  41. package/dist/_chunks/{document-scanner-p0aGlzCy.js → document-scanner-BSVwMR4V.js} +2 -2
  42. package/dist/_chunks/dropdown-menu-DIzxr_lp.js +594 -0
  43. package/dist/_chunks/{due-date-calculator-BVqJaxzd.js → due-date-calculator-DUjw4w5O.js} +2 -2
  44. package/dist/_chunks/{editable-currency-cell-renderer-D_G2Ap61.js → editable-currency-cell-renderer-Cch3RIJL.js} +3 -3
  45. package/dist/_chunks/{editable-description-B4NVdjvd.js → editable-description-CRQib91p.js} +3 -3
  46. package/dist/_chunks/{editor-overlay-BDiBvQmL.js → editor-overlay-DsA7vR5C.js} +2 -2
  47. package/dist/_chunks/{empty-state-DTBZ1ENT.js → empty-state-Ck1wVWdN.js} +2 -2
  48. package/dist/_chunks/{entity-summary-CFJfBdVP.js → entity-summary-Cvs21xPr.js} +3 -3
  49. package/dist/_chunks/{error-boundary-BxTqEXqj.js → error-boundary-C_HAzVLO.js} +2 -2
  50. package/dist/_chunks/{face-scheme-fku-RShg.js → face-scheme-DVZZTuXT.js} +5 -5
  51. package/dist/_chunks/{fetal-weight-B69yOS9W.js → fetal-weight-B-lO-948.js} +2 -2
  52. package/dist/_chunks/{field-array-lIXrFWS0.js → field-array-B3IDOct8.js} +3 -3
  53. package/dist/_chunks/{file-manager-C6QQPQV5.js → file-manager-COUb-w8j.js} +7 -7
  54. package/dist/_chunks/{finished-terminal-B2oqXO0Y.js → finished-terminal-BrAWwfOw.js} +2 -2
  55. package/dist/_chunks/{fiscal-code-input-BEF8eKIG.js → fiscal-code-input-CwUwhUZy.js} +2 -2
  56. package/dist/_chunks/{freemium-paywall-B6JITu4l.js → freemium-paywall-DiPJrL18.js} +2 -2
  57. package/dist/_chunks/{gestational-age-calculator-DsGN6_HS.js → gestational-age-calculator-BVPtrWKf.js} +2 -2
  58. package/dist/_chunks/{hcg-doubling-D2SH-e7t.js → hcg-doubling-CPktiA3H.js} +2 -2
  59. package/dist/_chunks/{header-CCjp5GvE.js → header-C8NbLgVq.js} +2 -2
  60. package/dist/_chunks/header-settings-D0M3WNTS.js +305 -0
  61. package/dist/_chunks/{help-me-write-templates-DQtT1qs_.js → help-me-write-templates-CYAKuXZ3.js} +5 -5
  62. package/dist/_chunks/{hover-card-BplP5SzQ.js → hover-card-BM0vNmq4.js} +2 -2
  63. package/dist/_chunks/{icon-button-CY7GU_Se.js → icon-button-JAXAkqWC.js} +2 -2
  64. package/dist/_chunks/{icon-button-group-B_426QN_.js → icon-button-group-ud2BLmxe.js} +3 -3
  65. package/dist/_chunks/{icon-picker-ZLebyB0U.js → icon-picker-B1PwkUHy.js} +3 -3
  66. package/dist/_chunks/{image-cropper-_HiNN79d.js → image-cropper-DM6hpXUw.js} +2 -2
  67. package/dist/_chunks/{info-tip-laBxZhKu.js → info-tip-CywkQ1NX.js} +2 -2
  68. package/dist/_chunks/{insert-result-CSuPQyKL.js → insert-result-Fu9AHxR6.js} +2 -2
  69. package/dist/_chunks/{key-value-pair-Dcdl3Gni.js → key-value-pair-BL1J3_Km.js} +2 -2
  70. package/dist/_chunks/{kit-extensions-BTJSnM_H.js → kit-extensions-B9Qn6VIc.js} +6 -6
  71. package/dist/_chunks/{link-cell-renderer-CkNbUsBM.js → link-cell-renderer-BcW3F1j9.js} +2 -2
  72. package/dist/_chunks/{locale-picker-DGkQmhV9.js → locale-picker-Z42P8T-i.js} +218 -213
  73. package/dist/_chunks/{map-view-Bb7ClKSF.js → map-view-DxYPJjM9.js} +2 -2
  74. package/dist/_chunks/{marketplace-app-shell-1uKqs4gD.js → marketplace-app-shell-rTTvWRrE.js} +6 -6
  75. package/dist/_chunks/{message-card-C2zsvyj0.js → message-card-CUBPPn4Z.js} +3 -3
  76. package/dist/_chunks/{message-tray-CMlmxdH2.js → message-tray-uy3DAIbn.js} +4 -4
  77. package/dist/_chunks/{muscle-scheme-Co0NIgbU.js → muscle-scheme-CH-vQ7Ch.js} +2 -2
  78. package/dist/_chunks/{notes-panel-xxpFt-I1.js → notes-panel-Dka4Z2M7.js} +4 -4
  79. package/dist/_chunks/{notification-card-DDzBCi8l.js → notification-card-Hy8w3UWx.js} +3 -3
  80. package/dist/_chunks/{notification-tray-PnH2PBlZ.js → notification-tray-VuV3XXB8.js} +4 -4
  81. package/dist/_chunks/{optical-prescription-DUufWXfZ.js → optical-prescription-C2n6d0HO.js} +2 -2
  82. package/dist/_chunks/{panel-subview-CzHutkA8.js → panel-subview-DAY-ToM3.js} +2 -2
  83. package/dist/_chunks/{patient-details-tTlvrJSU.js → patient-details-D9sAM3qh.js} +3 -3
  84. package/dist/_chunks/{patient-field-row-DElFbpKc.js → patient-field-row-CT04C_lZ.js} +277 -257
  85. package/dist/_chunks/{patient-search-DgXdGkhK.js → patient-search-DkIukAMQ.js} +3 -3
  86. package/dist/_chunks/{patient-summary-card-DQ__6DR-.js → patient-summary-card-DI0BH-Fe.js} +5 -5
  87. package/dist/_chunks/{payment-automation-upsell-ugi4np1l.js → payment-automation-upsell-vQBIyUky.js} +2 -2
  88. package/dist/_chunks/{payment-request-card-DMJB57Tv.js → payment-request-card-BSaJzhxz.js} +3 -3
  89. package/dist/_chunks/{periodontal-chart-DbGzKDj7.js → periodontal-chart-BcTcOc79.js} +2 -2
  90. package/dist/_chunks/{periodontal-chart-card-DvHyP47v.js → periodontal-chart-card-NS_nToBf.js} +2 -2
  91. package/dist/_chunks/{popover-Dvb40vPH.js → popover-SASSeAdY.js} +2 -2
  92. package/dist/_chunks/{practice-results-EKRiqWtQ.js → practice-results-C3ifcObw.js} +6 -6
  93. package/dist/_chunks/{pregnancy-dating-lfjjZVZH.js → pregnancy-dating-CpJ3iYvD.js} +2 -2
  94. package/dist/_chunks/{pregnancy-weight-gain-WpNt-S0q.js → pregnancy-weight-gain-kDOhA2vZ.js} +2 -2
  95. package/dist/_chunks/{privacy-lock-D6gq0GDg.js → privacy-lock-CEyvNpC8.js} +3 -3
  96. package/dist/_chunks/{privacy-mask-BC5lw2zB.js → privacy-mask-TzMlEu3Q.js} +2 -2
  97. package/dist/_chunks/{product-hub-panel-CKeSCSeE.js → product-hub-panel-b70i9Hi1.js} +3 -3
  98. package/dist/_chunks/{public-header.agent-B9wDmUeB.js → public-header.agent-D0ApOrmx.js} +3 -3
  99. package/dist/_chunks/{radiograph-panel.agent-TmyIvTOa.js → radiograph-panel.agent-jhwaIW8U.js} +4 -4
  100. package/dist/_chunks/resource-chip-DQeCJzJf.js +143 -0
  101. package/dist/_chunks/{reviews-panel-BdwFp_0c.js → reviews-panel-B5QC4FIp.js} +4 -4
  102. package/dist/_chunks/{rich-text-editor-y6ML0KeV.js → rich-text-editor-DoBXdwmx.js} +930 -943
  103. package/dist/_chunks/{session-countdown-ACJyTXH2.js → session-countdown-26XB5u38.js} +2 -2
  104. package/dist/_chunks/{sheet-D0Lh0KR2.js → sheet-CwhNzxbr.js} +2 -2
  105. package/dist/_chunks/{sign-in-with-alfadocs-button-CDyJAIzW.js → sign-in-with-alfadocs-button-jxbze77L.js} +2 -2
  106. package/dist/_chunks/{signature-request-BUGeG8oD.js → signature-request-BorHf3CY.js} +4 -4
  107. package/dist/_chunks/{slot-grid-4fWH3Euk.js → slot-grid-xgf2UKLS.js} +4 -4
  108. package/dist/_chunks/{streaming-text-eRiizArc.js → streaming-text-Cos2fVTw.js} +2 -2
  109. package/dist/_chunks/{tab-bar-BHFf6knq.js → tab-bar-BrkMUW0c.js} +2 -2
  110. package/dist/_chunks/tabs-tK22Mz7r.js +413 -0
  111. package/dist/_chunks/{task-card-jaOhnj_q.js → task-card-CLpHmqEY.js} +2 -2
  112. package/dist/_chunks/{task-editor-DlvTwAfv.js → task-editor-B4UGsU7l.js} +6 -6
  113. package/dist/_chunks/{task-tray-HHyxi9ga.js → task-tray-dsmYgjVb.js} +4 -4
  114. package/dist/_chunks/{tasks-panel-DbSjq_mz.js → tasks-panel-CwwVw491.js} +6 -6
  115. package/dist/_chunks/{theme-toggle-LUBxlNDm.js → theme-toggle-jyoyhbJL.js} +4 -4
  116. package/dist/_chunks/{toast-CT8hjr9r.js → toast-FijDyPnv.js} +2 -2
  117. package/dist/_chunks/{token-insert-menu-klwbxVKh.js → token-insert-menu-Cjf99IdN.js} +3 -3
  118. package/dist/_chunks/{tool-rail-DEeX4PdN.js → tool-rail-DphMl1hX.js} +2 -2
  119. package/dist/_chunks/{tooth-scheme-BkjhkI8g.js → tooth-scheme-BaCJnyg9.js} +663 -718
  120. package/dist/_chunks/{unit-converter-Dp_KDxE6.js → unit-converter-CGpOgarU.js} +2 -2
  121. package/dist/_chunks/{use-appointment-details-read-5-hV-2xA.js → use-appointment-details-read-uEnJLVfA.js} +14 -14
  122. package/dist/_chunks/{warning-stack-CEgYkI1z.js → warning-stack-7Hffm7K1.js} +3 -3
  123. package/dist/_chunks/{workflow-map-qGkQTNvS.js → workflow-map-Jfe9L9Wt.js} +6 -6
  124. package/dist/_chunks/{workflow-status-ClHfz4Kr.js → workflow-status-jHfsIDzi.js} +2 -2
  125. package/dist/agent-catalog.json +103 -38
  126. package/dist/agent-i18n/en.json +7 -4
  127. package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
  128. package/dist/components/agenda-tray/index.js +1 -1
  129. package/dist/components/ai-credits-notice/index.js +1 -1
  130. package/dist/components/ai-permission-notice/index.js +1 -1
  131. package/dist/components/ai-prompt-input/index.js +1 -1
  132. package/dist/components/anamnesis-card/index.js +1 -1
  133. package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts +1 -1
  134. package/dist/components/appointment-card/index.js +2 -2
  135. package/dist/components/appointment-details-panel/index.js +1 -1
  136. package/dist/components/appointment-peek/index.js +1 -1
  137. package/dist/components/appointment-timeline/index.js +1 -1
  138. package/dist/components/audio-recorder/index.js +1 -1
  139. package/dist/components/bishop-score/index.js +1 -1
  140. package/dist/components/bmi-calculator/index.js +1 -1
  141. package/dist/components/booking/index.js +1 -1
  142. package/dist/components/button/button.d.ts +11 -0
  143. package/dist/components/button/icon-button.d.ts +4 -0
  144. package/dist/components/button/index.js +2 -2
  145. package/dist/components/button-group/index.js +1 -1
  146. package/dist/components/calendar/calendar.d.ts +11 -3
  147. package/dist/components/calendar/index.js +1 -1
  148. package/dist/components/calendar-event-card/calendar-event-card.d.ts +6 -0
  149. package/dist/components/calendar-event-card/index.js +1 -1
  150. package/dist/components/care-plan-card/index.js +1 -1
  151. package/dist/components/care-plan-entry-card/index.js +1 -1
  152. package/dist/components/care-plan-header/index.js +1 -1
  153. package/dist/components/carousel/index.js +1 -1
  154. package/dist/components/chart/chart.d.ts +1 -1
  155. package/dist/components/chart/index.js +1 -1
  156. package/dist/components/chat-input/index.js +1 -1
  157. package/dist/components/chat-message/index.js +1 -1
  158. package/dist/components/connection-status/index.js +1 -1
  159. package/dist/components/contact-profile-card/index.js +1 -1
  160. package/dist/components/control-room-rail/index.js +1 -1
  161. package/dist/components/copy-field/index.js +1 -1
  162. package/dist/components/cycle-calculator/index.js +1 -1
  163. package/dist/components/dashboard-grid/index.js +1 -1
  164. package/dist/components/data-table/index.js +4 -4
  165. package/dist/components/data-table-tabs/index.js +1 -1
  166. package/dist/components/description-list/index.js +1 -1
  167. package/dist/components/document-preview/index.js +1 -1
  168. package/dist/components/document-scanner/index.js +1 -1
  169. package/dist/components/dropdown-menu/dropdown-menu.d.ts +52 -2
  170. package/dist/components/dropdown-menu/index.d.ts +1 -1
  171. package/dist/components/dropdown-menu/index.js +1 -1
  172. package/dist/components/due-date-calculator/index.js +1 -1
  173. package/dist/components/editable-description/index.js +1 -1
  174. package/dist/components/editor-overlay/index.js +1 -1
  175. package/dist/components/empty-state/index.js +1 -1
  176. package/dist/components/entity-summary/index.js +1 -1
  177. package/dist/components/error-boundary/index.js +1 -1
  178. package/dist/components/face-scheme/index.js +1 -1
  179. package/dist/components/fetal-weight/index.js +1 -1
  180. package/dist/components/field-array/index.js +1 -1
  181. package/dist/components/file-manager/index.js +1 -1
  182. package/dist/components/finished-terminal/index.js +1 -1
  183. package/dist/components/fiscal-code-input/index.js +1 -1
  184. package/dist/components/freemium-paywall/index.js +1 -1
  185. package/dist/components/gestational-age-calculator/index.js +1 -1
  186. package/dist/components/hcg-doubling/index.js +1 -1
  187. package/dist/components/header/index.js +1 -1
  188. package/dist/components/header-settings/header-settings.d.ts +3 -3
  189. package/dist/components/header-settings/index.js +1 -1
  190. package/dist/components/hover-card/index.js +1 -1
  191. package/dist/components/icon-button/index.js +1 -1
  192. package/dist/components/icon-button-group/index.js +1 -1
  193. package/dist/components/icon-picker/index.js +1 -1
  194. package/dist/components/image-cropper/index.js +1 -1
  195. package/dist/components/info-tip/index.js +1 -1
  196. package/dist/components/key-value-pair/index.js +1 -1
  197. package/dist/components/locale-picker/index.js +1 -1
  198. package/dist/components/locale-picker/locale-picker.d.ts +7 -0
  199. package/dist/components/map-view/index.js +1 -1
  200. package/dist/components/message-card/index.js +1 -1
  201. package/dist/components/message-tray/index.js +1 -1
  202. package/dist/components/muscle-scheme/index.js +1 -1
  203. package/dist/components/notes-panel/index.js +1 -1
  204. package/dist/components/notification-card/index.js +1 -1
  205. package/dist/components/notification-tray/index.js +1 -1
  206. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  207. package/dist/components/optical-prescription/index.js +1 -1
  208. package/dist/components/panel-subview/index.js +1 -1
  209. package/dist/components/patient-details/index.js +1 -1
  210. package/dist/components/patient-details/patient-details.d.ts +1 -1
  211. package/dist/components/patient-search/index.js +1 -1
  212. package/dist/components/patient-summary-card/index.js +1 -1
  213. package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
  214. package/dist/components/patient-table/index.js +1 -1
  215. package/dist/components/payment-card/index.js +1 -1
  216. package/dist/components/periodontal-chart/index.js +1 -1
  217. package/dist/components/periodontal-chart-card/index.js +1 -1
  218. package/dist/components/popover/index.js +1 -1
  219. package/dist/components/practice-results/index.js +1 -1
  220. package/dist/components/pregnancy-dating/index.js +1 -1
  221. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  222. package/dist/components/privacy-lock/index.js +1 -1
  223. package/dist/components/product-hub-tray/index.js +1 -1
  224. package/dist/components/public-header/index.js +1 -1
  225. package/dist/components/radiograph-panel/index.js +1 -1
  226. package/dist/components/resource-chip/index.d.ts +1 -1
  227. package/dist/components/resource-chip/index.js +3 -2
  228. package/dist/components/resource-chip/resource-chip.d.ts +20 -0
  229. package/dist/components/reviews-panel/index.js +1 -1
  230. package/dist/components/rich-text-editor/index.js +2 -2
  231. package/dist/components/session-countdown/index.js +1 -1
  232. package/dist/components/sheet/index.js +1 -1
  233. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  234. package/dist/components/skeleton-scheme/index.js +1 -1
  235. package/dist/components/slot-grid/index.js +1 -1
  236. package/dist/components/streaming-text/index.js +1 -1
  237. package/dist/components/tab-bar/index.js +1 -1
  238. package/dist/components/tabs/index.js +1 -1
  239. package/dist/components/task-card/index.js +1 -1
  240. package/dist/components/task-editor/index.js +1 -1
  241. package/dist/components/task-tray/index.js +1 -1
  242. package/dist/components/tasks-panel/index.js +1 -1
  243. package/dist/components/theme-toggle/index.js +1 -1
  244. package/dist/components/toast/index.js +1 -1
  245. package/dist/components/token-insert-menu/index.js +1 -1
  246. package/dist/components/tool-rail/index.js +1 -1
  247. package/dist/components/tooth-scheme/index.js +1 -1
  248. package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -2
  249. package/dist/components/unit-converter/index.js +1 -1
  250. package/dist/components/warning-stack/index.js +1 -1
  251. package/dist/components/workflow/index.js +1 -1
  252. package/dist/components/workflow/workflow-card.d.ts +1 -1
  253. package/dist/components/workflow-status/index.js +1 -1
  254. package/dist/i18n/locales/ar.d.ts +5 -0
  255. package/dist/i18n/locales/ar.js +5 -0
  256. package/dist/i18n/locales/de.d.ts +5 -0
  257. package/dist/i18n/locales/de.js +5 -0
  258. package/dist/i18n/locales/el.d.ts +5 -0
  259. package/dist/i18n/locales/el.js +5 -0
  260. package/dist/i18n/locales/en.d.ts +5 -0
  261. package/dist/i18n/locales/en.js +5 -0
  262. package/dist/i18n/locales/es.d.ts +5 -0
  263. package/dist/i18n/locales/es.js +5 -0
  264. package/dist/i18n/locales/fr.d.ts +5 -0
  265. package/dist/i18n/locales/fr.js +5 -0
  266. package/dist/i18n/locales/hi.d.ts +5 -0
  267. package/dist/i18n/locales/hi.js +5 -0
  268. package/dist/i18n/locales/it.d.ts +5 -0
  269. package/dist/i18n/locales/it.js +5 -0
  270. package/dist/i18n/locales/ja.d.ts +5 -0
  271. package/dist/i18n/locales/ja.js +5 -0
  272. package/dist/i18n/locales/nl.d.ts +5 -0
  273. package/dist/i18n/locales/nl.js +5 -0
  274. package/dist/i18n/locales/pl.d.ts +5 -0
  275. package/dist/i18n/locales/pl.js +5 -0
  276. package/dist/i18n/locales/pt.d.ts +5 -0
  277. package/dist/i18n/locales/pt.js +5 -0
  278. package/dist/i18n/locales/ro.d.ts +5 -0
  279. package/dist/i18n/locales/ro.js +5 -0
  280. package/dist/i18n/locales/ru.d.ts +5 -0
  281. package/dist/i18n/locales/ru.js +5 -0
  282. package/dist/i18n/locales/sq.d.ts +5 -0
  283. package/dist/i18n/locales/sq.js +5 -0
  284. package/dist/i18n/locales/sv.d.ts +5 -0
  285. package/dist/i18n/locales/sv.js +5 -0
  286. package/dist/i18n/locales/tr.d.ts +5 -0
  287. package/dist/i18n/locales/tr.js +5 -0
  288. package/dist/i18n/locales/zh.d.ts +5 -0
  289. package/dist/i18n/locales/zh.js +5 -0
  290. package/dist/index.js +478 -477
  291. package/dist/locales/ar.json +5 -0
  292. package/dist/locales/de.json +5 -0
  293. package/dist/locales/el.json +5 -0
  294. package/dist/locales/en.json +5 -0
  295. package/dist/locales/es.json +5 -0
  296. package/dist/locales/fr.json +5 -0
  297. package/dist/locales/hi.json +5 -0
  298. package/dist/locales/it.json +5 -0
  299. package/dist/locales/ja.json +5 -0
  300. package/dist/locales/nl.json +5 -0
  301. package/dist/locales/pl.json +5 -0
  302. package/dist/locales/pt.json +5 -0
  303. package/dist/locales/ro.json +5 -0
  304. package/dist/locales/ru.json +5 -0
  305. package/dist/locales/sq.json +5 -0
  306. package/dist/locales/sv.json +5 -0
  307. package/dist/locales/tr.json +5 -0
  308. package/dist/locales/zh.json +5 -0
  309. package/dist/patterns/alia-assistant/index.js +1 -1
  310. package/dist/patterns/anamnesis/index.js +1 -1
  311. package/dist/patterns/calendar/calendar.surface.d.ts +4 -1
  312. package/dist/patterns/calendar/index.js +1 -1
  313. package/dist/patterns/help-me-write-templates/index.js +1 -1
  314. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  315. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  316. package/dist/patterns/signature-request/index.js +1 -1
  317. package/dist/tokens.css +2 -1
  318. package/package.json +1 -1
  319. package/dist/_chunks/calendar-workspace-CWRH4x15.js +0 -10577
  320. package/dist/_chunks/dropdown-menu-C8PaW3lR.js +0 -369
  321. package/dist/_chunks/header-settings-ZXa6hXuu.js +0 -335
  322. package/dist/_chunks/resource-chip-DYTG0IQQ.js +0 -83
  323. package/dist/_chunks/tabs-CFsuMQ5H.js +0 -409
@@ -1,27 +1,27 @@
1
- import { useMemo as _, useCallback as k, useState as z, cloneElement as W, useId as Y } from "react";
1
+ import { useMemo as _, useCallback as C, useState as z, cloneElement as W, useId as Y } from "react";
2
2
  import { u as Z } from "./use-controllable-state-BiY4xTzM.js";
3
3
  import { jsxs as V, jsx as t, Fragment as q } from "react/jsx-runtime";
4
4
  import { useTranslation as A } from "react-i18next";
5
- import { B as ee } from "./button-18oBsI3n.js";
6
- import { I } from "./icon-button-CY7GU_Se.js";
7
- import { C as j } from "./checkbox-CZkipDn7.js";
8
- import { P as O } from "./popover-Dvb40vPH.js";
5
+ import { B as ee } from "./button-CYPx2xFq.js";
6
+ import { I } from "./icon-button-JAXAkqWC.js";
7
+ import { C as U } from "./checkbox-CZkipDn7.js";
8
+ import { P as O } from "./popover-SASSeAdY.js";
9
9
  import { S as te } from "./separator-CYU_bGFn.js";
10
10
  import { S as ae } from "./settings-d25ju_6L.js";
11
- import { G as ne } from "./grip-vertical-onSb1JXO.js";
12
- import { D as $ } from "./description-list-1A2DEbE6.js";
13
- import { B as R } from "./badge-BAkd6_Pj.js";
14
- import { L as se } from "./link-CPb_pZPr.js";
15
- import { T as re } from "./transaction-chip-CwgcJiqF.js";
11
+ import { G as se } from "./grip-vertical-onSb1JXO.js";
12
+ import { D as $ } from "./description-list-DOPu69Jg.js";
13
+ import { B as j } from "./badge-BAkd6_Pj.js";
14
+ import { L as re } from "./link-CPb_pZPr.js";
15
+ import { T as ne } from "./transaction-chip-CwgcJiqF.js";
16
16
  import { H as ie } from "./hash-CSQ9SChR.js";
17
17
  import { C as oe } from "./calendar-days-BGWklvE-.js";
18
- import { c as U } from "./createLucideIcon-DhHxpK9K.js";
18
+ import { c as R } from "./createLucideIcon-DhHxpK9K.js";
19
19
  import { U as le } from "./user-B12p7bVF.js";
20
20
  import { C as ce } from "./city-input-BGYc4lRV.js";
21
21
  import { C as de } from "./country-select-C5jZjO8O.js";
22
22
  import { D as ue } from "./date-picker-6tFnKFty.js";
23
23
  import { E as me } from "./email-input-Dpe63k0K.js";
24
- import { F as pe } from "./fiscal-code-input-BEF8eKIG.js";
24
+ import { F as pe } from "./fiscal-code-input-CwUwhUZy.js";
25
25
  import { N as fe } from "./number-input-Cgu2TtA8.js";
26
26
  import { P as ge } from "./phone-input-sQj-zi59.js";
27
27
  import { P as he } from "./postal-code-input-BznBxVxf.js";
@@ -29,19 +29,19 @@ import { P as ye } from "./province-select-BiszMRRY.js";
29
29
  import { S as be } from "./select-upNAltly.js";
30
30
  import { S as ve } from "./switch-OILsBLWo.js";
31
31
  import { T as xe } from "./text-area-Bt3p7Pt0.js";
32
- import { T as Ce } from "./text-input-CUvCb6ST.js";
32
+ import { T as ke } from "./text-input-CUvCb6ST.js";
33
33
  import { C as K } from "./check-DrFSN__t.js";
34
- import { X as ke } from "./x-B5YnXwCz.js";
34
+ import { X as Ce } from "./x-B5YnXwCz.js";
35
35
  import { P as Ve } from "./pencil-B1sKKyuT.js";
36
36
  import { L as Ne } from "./lock-ClAFG1gy.js";
37
- import { C as De } from "./copy-vRpqqHtY.js";
37
+ import { C as we } from "./copy-vRpqqHtY.js";
38
38
  /**
39
39
  * @license lucide-react v1.22.0 - ISC
40
40
  *
41
41
  * This source code is licensed under the ISC license.
42
42
  * See the LICENSE file in the root directory of this source tree.
43
43
  */
44
- const we = [
44
+ const De = [
45
45
  ["path", { d: "M5 22h14", key: "ehvnwv" }],
46
46
  ["path", { d: "M5 2h14", key: "pdyrp9" }],
47
47
  [
@@ -55,7 +55,7 @@ const we = [
55
55
  "path",
56
56
  { d: "M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2", key: "1vvvr6" }
57
57
  ]
58
- ], Se = U("hourglass", we);
58
+ ], Se = R("hourglass", De);
59
59
  /**
60
60
  * @license lucide-react v1.22.0 - ISC
61
61
  *
@@ -66,7 +66,7 @@ const Te = [
66
66
  ["path", { d: "M16 3h5v5", key: "1806ms" }],
67
67
  ["path", { d: "m21 3-6.75 6.75", key: "pv0uzu" }],
68
68
  ["circle", { cx: "10", cy: "14", r: "6", key: "1qwbdc" }]
69
- ], ze = U("mars", Te);
69
+ ], ze = R("mars", Te);
70
70
  /**
71
71
  * @license lucide-react v1.22.0 - ISC
72
72
  *
@@ -77,49 +77,49 @@ const Pe = [
77
77
  ["path", { d: "M12 15v7", key: "t2xh3l" }],
78
78
  ["path", { d: "M9 19h6", key: "456am0" }],
79
79
  ["circle", { cx: "12", cy: "9", r: "6", key: "1nw4tq" }]
80
- ], Ae = U("venus", Pe);
80
+ ], Ae = R("venus", Pe);
81
81
  function X(e) {
82
- return e.flatMap((n) => n.fields.map((a) => a.id));
82
+ return e.flatMap((s) => s.fields.map((a) => a.id));
83
83
  }
84
- function Nt(e, n) {
85
- const a = n ?? X(e), s = new Map(a.map((r, h) => [r, h]));
86
- return e.map((r) => ({
87
- section: r,
88
- fields: r.fields.filter((h) => s.has(h.id)).sort(
89
- (h, l) => s.get(h.id) - s.get(l.id)
84
+ function Nt(e, s) {
85
+ const a = s ?? X(e), r = new Map(a.map((n, h) => [n, h]));
86
+ return e.map((n) => ({
87
+ section: n,
88
+ fields: n.fields.filter((h) => r.has(h.id)).sort(
89
+ (h, l) => r.get(h.id) - r.get(l.id)
90
90
  )
91
91
  }));
92
92
  }
93
- function Dt(e, { value: n, defaultValue: a, onChange: s } = {}) {
94
- const r = _(
93
+ function wt(e, { value: s, defaultValue: a, onChange: r } = {}) {
94
+ const n = _(
95
95
  () => X(e),
96
96
  [e]
97
97
  ), [h, l] = Z({
98
- value: n,
99
- defaultValue: a ?? r,
100
- onChange: s
101
- }), c = h ?? a ?? r, m = _(() => {
98
+ value: s,
99
+ defaultValue: a ?? n,
100
+ onChange: r
101
+ }), c = h ?? a ?? n, m = _(() => {
102
102
  const g = /* @__PURE__ */ new Map();
103
103
  for (const y of e)
104
104
  for (const x of y.fields)
105
105
  g.set(x.id, { field: x, sectionId: y.id });
106
106
  return g;
107
- }, [e]), d = k(
107
+ }, [e]), d = C(
108
108
  (g) => {
109
109
  l(g.filter((y) => m.has(y)));
110
110
  },
111
111
  [l, m]
112
- ), i = k(
112
+ ), i = C(
113
113
  (g) => {
114
114
  d(
115
115
  c.includes(g) ? c.filter((y) => y !== g) : [...c, g]
116
116
  );
117
117
  },
118
118
  [c, d]
119
- ), E = k(
119
+ ), E = C(
120
120
  (g, y) => {
121
- var D;
122
- const x = ((D = e.find((p) => p.id === g)) == null ? void 0 : D.fields.map((p) => p.id)) ?? [], P = new Set(x);
121
+ var w;
122
+ const x = ((w = e.find((p) => p.id === g)) == null ? void 0 : w.fields.map((p) => p.id)) ?? [], P = new Set(x);
123
123
  if (y) {
124
124
  const p = x.filter((u) => !c.includes(u));
125
125
  d([...c, ...p]);
@@ -127,57 +127,57 @@ function Dt(e, { value: n, defaultValue: a, onChange: s } = {}) {
127
127
  d(c.filter((p) => !P.has(p)));
128
128
  },
129
129
  [e, c, d]
130
- ), N = k(
130
+ ), N = C(
131
131
  (g, y) => {
132
132
  var M, o, F;
133
133
  if (g === y) return;
134
134
  const x = (M = m.get(g)) == null ? void 0 : M.sectionId, P = (o = m.get(y)) == null ? void 0 : o.sectionId;
135
135
  if (!x || x !== P) return;
136
- const D = new Set(
136
+ const w = new Set(
137
137
  ((F = e.find((b) => b.id === x)) == null ? void 0 : F.fields.map((b) => b.id)) ?? []
138
- ), p = c.filter((b) => D.has(b)), u = p.indexOf(g), v = p.indexOf(y);
138
+ ), p = c.filter((b) => w.has(b)), u = p.indexOf(g), v = p.indexOf(y);
139
139
  if (u < 0 || v < 0) return;
140
140
  const [S] = p.splice(u, 1);
141
141
  p.splice(v, 0, S);
142
- let C = 0;
142
+ let k = 0;
143
143
  const H = c.map(
144
- (b) => D.has(b) ? p[C++] : b
144
+ (b) => w.has(b) ? p[k++] : b
145
145
  );
146
146
  d(H);
147
147
  },
148
148
  [m, e, c, d]
149
- ), w = k(() => {
150
- d(a ?? r);
151
- }, [a, r, d]);
149
+ ), D = C(() => {
150
+ d(a ?? n);
151
+ }, [a, n, d]);
152
152
  return {
153
153
  visible: c,
154
- catalogueIds: r,
154
+ catalogueIds: n,
155
155
  fieldById: m,
156
156
  setOrder: d,
157
157
  toggleField: i,
158
158
  toggleSection: E,
159
159
  moveFieldOnto: N,
160
- reset: w
160
+ reset: D
161
161
  };
162
162
  }
163
- function wt({
163
+ function Dt({
164
164
  sections: e,
165
- visible: n,
165
+ visible: s,
166
166
  onToggleField: a,
167
- onToggleSection: s,
168
- onMoveFieldOnto: r,
167
+ onToggleSection: r,
168
+ onMoveFieldOnto: n,
169
169
  onReset: h,
170
170
  label: l
171
171
  }) {
172
- const { t: c } = A(), m = _(() => new Set(n), [n]), [d, i] = z(null), [E, N] = z(null), [w, g] = z(""), { sectionOfField: y, labelOfField: x } = _(() => {
172
+ const { t: c } = A(), m = _(() => new Set(s), [s]), [d, i] = z(null), [E, N] = z(null), [D, g] = z(""), { sectionOfField: y, labelOfField: x } = _(() => {
173
173
  const u = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
174
174
  for (const S of e)
175
- for (const C of S.fields)
176
- u.set(C.id, S.id), v.set(C.id, C.label);
175
+ for (const k of S.fields)
176
+ u.set(k.id, S.id), v.set(k.id, k.label);
177
177
  return { sectionOfField: u, labelOfField: v };
178
- }, [e]), P = d ? y.get(d) : void 0, D = k(() => {
178
+ }, [e]), P = d ? y.get(d) : void 0, w = C(() => {
179
179
  i(null), N(null);
180
- }, []), p = k(
180
+ }, []), p = C(
181
181
  (u, v, S) => {
182
182
  g(
183
183
  c("fieldPicker.moved", {
@@ -201,131 +201,151 @@ function wt({
201
201
  className: "ds:shrink-0"
202
202
  }
203
203
  ) }),
204
- /* @__PURE__ */ V(O.Content, { align: "end", size: "sm", children: [
205
- /* @__PURE__ */ t(O.Heading, { children: c("fieldPicker.title", { defaultValue: "Customize fields" }) }),
206
- /* @__PURE__ */ V("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:mt-[var(--spacing-xs)]", children: [
207
- e.map((u) => {
208
- const v = u.fields.map((o) => o.id), S = v.filter(
209
- (o) => m.has(o)
210
- ).length, C = n.filter(
211
- (o) => v.includes(o)
212
- ), H = S === 0 ? !1 : S === v.length ? !0 : "indeterminate", M = !!u.heading;
213
- return /* @__PURE__ */ V(
204
+ /* @__PURE__ */ V(
205
+ O.Content,
206
+ {
207
+ align: "end",
208
+ size: "sm",
209
+ className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
210
+ children: [
211
+ /* @__PURE__ */ t(O.Heading, { children: c("fieldPicker.title", { defaultValue: "Customize fields" }) }),
212
+ /* @__PURE__ */ t(
214
213
  "div",
215
214
  {
216
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
217
- children: [
218
- M ? /* @__PURE__ */ t(
219
- j,
220
- {
221
- size: "sm",
222
- label: u.heading,
223
- checked: H,
224
- onCheckedChange: (o) => s(u.id, o === !0)
225
- }
226
- ) : null,
227
- /* @__PURE__ */ t(
228
- "ul",
215
+ "data-component-part": "field-list",
216
+ className: [
217
+ "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-sm)] ds:overflow-y-auto",
218
+ "ds:-mx-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] ds:px-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
219
+ "ds:py-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
220
+ "ds:mt-[calc(var(--spacing-xs)-var(--focus-ring-width)-var(--focus-ring-offset))]"
221
+ ].join(" "),
222
+ children: e.map((u) => {
223
+ const v = u.fields.map((o) => o.id), S = v.filter(
224
+ (o) => m.has(o)
225
+ ).length, k = s.filter(
226
+ (o) => v.includes(o)
227
+ ), H = S === 0 ? !1 : S === v.length ? !0 : "indeterminate", M = !!u.heading;
228
+ return /* @__PURE__ */ V(
229
+ "div",
229
230
  {
230
- className: [
231
- "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)]",
232
- M ? "ds:ps-[var(--spacing-md)]" : "ds:ps-0"
233
- ].join(" "),
234
- children: u.fields.map((o) => {
235
- const F = m.has(o.id), b = C.indexOf(o.id), T = C.length, J = d === o.id, Q = E === o.id && d !== null && d !== o.id && P === u.id;
236
- return /* @__PURE__ */ V(
237
- "li",
231
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
232
+ children: [
233
+ M ? /* @__PURE__ */ t(
234
+ U,
235
+ {
236
+ size: "sm",
237
+ label: u.heading,
238
+ checked: H,
239
+ onCheckedChange: (o) => r(u.id, o === !0)
240
+ }
241
+ ) : null,
242
+ /* @__PURE__ */ t(
243
+ "ul",
238
244
  {
239
- ...F ? {
240
- draggable: !0,
241
- onDragStart: (f) => {
242
- i(o.id), f.dataTransfer.effectAllowed = "move", f.dataTransfer.setData("text/plain", o.id);
243
- },
244
- onDragOver: (f) => {
245
- d === null || P !== u.id || (f.preventDefault(), f.dataTransfer.dropEffect = "move", N(o.id));
246
- },
247
- onDragLeave: () => N(
248
- (f) => f === o.id ? null : f
249
- ),
250
- onDrop: (f) => {
251
- f.preventDefault();
252
- const L = f.dataTransfer.getData("text/plain");
253
- L && L !== o.id && y.get(L) === u.id && (r(L, o.id), p(L, b, T)), D();
254
- },
255
- onDragEnd: D
256
- } : {},
257
245
  className: [
258
- "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)] ds:transition-colors ds:motion-reduce:transition-none",
259
- J ? "ds:opacity-50" : "",
260
- Q ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
261
- ].filter(Boolean).join(" "),
262
- children: [
263
- /* @__PURE__ */ t(
264
- j,
265
- {
266
- size: "sm",
267
- label: o.label,
268
- checked: F,
269
- onCheckedChange: () => a(o.id)
270
- }
271
- ),
272
- F ? /* @__PURE__ */ t(
273
- I,
246
+ "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)]",
247
+ M ? "ds:ps-[var(--spacing-md)]" : "ds:ps-0"
248
+ ].join(" "),
249
+ children: u.fields.map((o) => {
250
+ const F = m.has(o.id), b = k.indexOf(o.id), T = k.length, J = d === o.id, Q = E === o.id && d !== null && d !== o.id && P === u.id;
251
+ return /* @__PURE__ */ V(
252
+ "li",
274
253
  {
275
- size: "sm",
276
- intent: "ghost",
277
- icon: /* @__PURE__ */ t(ne, { "aria-hidden": "true" }),
278
- "aria-label": c("fieldPicker.reorder", {
279
- field: o.label,
280
- defaultValue: "Reorder {{field}}. Press Alt + Up or Alt + Down to move."
281
- }),
282
- "aria-keyshortcuts": "Alt+ArrowUp Alt+ArrowDown Alt+Home Alt+End",
283
- className: "ds:shrink-0 ds:cursor-grab ds:active:cursor-grabbing",
284
- onKeyDown: (f) => {
285
- if (f.altKey) {
286
- if (f.key === "ArrowUp") {
287
- if (b <= 0) return;
288
- f.preventDefault(), r(
289
- o.id,
290
- C[b - 1]
291
- ), p(o.id, b - 1, T);
292
- } else if (f.key === "ArrowDown") {
293
- if (b >= T - 1) return;
294
- f.preventDefault(), r(
295
- o.id,
296
- C[b + 1]
297
- ), p(o.id, b + 1, T);
298
- } else if (f.key === "Home") {
299
- if (b <= 0) return;
300
- f.preventDefault(), r(o.id, C[0]), p(o.id, 0, T);
301
- } else if (f.key === "End") {
302
- if (b >= T - 1) return;
303
- f.preventDefault(), r(
304
- o.id,
305
- C[T - 1]
306
- ), p(o.id, T - 1, T);
254
+ ...F ? {
255
+ draggable: !0,
256
+ onDragStart: (f) => {
257
+ i(o.id), f.dataTransfer.effectAllowed = "move", f.dataTransfer.setData("text/plain", o.id);
258
+ },
259
+ onDragOver: (f) => {
260
+ d === null || P !== u.id || (f.preventDefault(), f.dataTransfer.dropEffect = "move", N(o.id));
261
+ },
262
+ onDragLeave: () => N(
263
+ (f) => f === o.id ? null : f
264
+ ),
265
+ onDrop: (f) => {
266
+ f.preventDefault();
267
+ const L = f.dataTransfer.getData("text/plain");
268
+ L && L !== o.id && y.get(L) === u.id && (n(L, o.id), p(L, b, T)), w();
269
+ },
270
+ onDragEnd: w
271
+ } : {},
272
+ className: [
273
+ "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)] ds:transition-colors ds:motion-reduce:transition-none",
274
+ J ? "ds:opacity-50" : "",
275
+ Q ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
276
+ ].filter(Boolean).join(" "),
277
+ children: [
278
+ /* @__PURE__ */ t(
279
+ U,
280
+ {
281
+ size: "sm",
282
+ label: o.label,
283
+ checked: F,
284
+ onCheckedChange: () => a(o.id)
307
285
  }
308
- }
309
- }
310
- }
311
- ) : null
312
- ]
313
- },
314
- o.id
315
- );
316
- })
317
- }
318
- )
319
- ]
320
- },
321
- u.id
322
- );
323
- }),
324
- /* @__PURE__ */ t(te, { orientation: "horizontal" }),
325
- /* @__PURE__ */ t(ee, { type: "button", size: "sm", intent: "ghost", onClick: h, children: c("fieldPicker.reset", { defaultValue: "Reset to defaults" }) })
326
- ] }),
327
- /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: w })
328
- ] })
286
+ ),
287
+ F ? /* @__PURE__ */ t(
288
+ I,
289
+ {
290
+ size: "sm",
291
+ intent: "ghost",
292
+ icon: /* @__PURE__ */ t(se, { "aria-hidden": "true" }),
293
+ "aria-label": c("fieldPicker.reorder", {
294
+ field: o.label,
295
+ defaultValue: "Reorder {{field}}. Press Alt + Up or Alt + Down to move."
296
+ }),
297
+ "aria-keyshortcuts": "Alt+ArrowUp Alt+ArrowDown Alt+Home Alt+End",
298
+ className: "ds:shrink-0 ds:cursor-grab ds:active:cursor-grabbing",
299
+ onKeyDown: (f) => {
300
+ if (f.altKey) {
301
+ if (f.key === "ArrowUp") {
302
+ if (b <= 0) return;
303
+ f.preventDefault(), n(
304
+ o.id,
305
+ k[b - 1]
306
+ ), p(o.id, b - 1, T);
307
+ } else if (f.key === "ArrowDown") {
308
+ if (b >= T - 1) return;
309
+ f.preventDefault(), n(
310
+ o.id,
311
+ k[b + 1]
312
+ ), p(o.id, b + 1, T);
313
+ } else if (f.key === "Home") {
314
+ if (b <= 0) return;
315
+ f.preventDefault(), n(o.id, k[0]), p(o.id, 0, T);
316
+ } else if (f.key === "End") {
317
+ if (b >= T - 1) return;
318
+ f.preventDefault(), n(
319
+ o.id,
320
+ k[T - 1]
321
+ ), p(o.id, T - 1, T);
322
+ }
323
+ }
324
+ }
325
+ }
326
+ ) : null
327
+ ]
328
+ },
329
+ o.id
330
+ );
331
+ })
332
+ }
333
+ )
334
+ ]
335
+ },
336
+ u.id
337
+ );
338
+ })
339
+ }
340
+ ),
341
+ /* @__PURE__ */ V("div", { className: "ds:flex ds:shrink-0 ds:flex-col ds:gap-[var(--spacing-sm)] ds:pt-[calc(var(--spacing-sm)-var(--focus-ring-width)-var(--focus-ring-offset))]", children: [
342
+ /* @__PURE__ */ t(te, { orientation: "horizontal" }),
343
+ /* @__PURE__ */ t(ee, { type: "button", size: "sm", intent: "ghost", onClick: h, children: c("fieldPicker.reset", { defaultValue: "Reset to defaults" }) })
344
+ ] }),
345
+ /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: D })
346
+ ]
347
+ }
348
+ )
329
349
  ] });
330
350
  }
331
351
  const G = "ds:text-[color:var(--foreground)]", Ee = {
@@ -335,14 +355,14 @@ const G = "ds:text-[color:var(--foreground)]", Ee = {
335
355
  };
336
356
  function B({
337
357
  icon: e,
338
- mono: n,
358
+ mono: s,
339
359
  children: a
340
360
  }) {
341
361
  return /* @__PURE__ */ t(
342
- R,
362
+ j,
343
363
  {
344
364
  variant: "neutral",
345
- className: n ? "ds:font-mono" : void 0,
365
+ className: s ? "ds:font-mono" : void 0,
346
366
  leading: e ? W(e, {
347
367
  className: G
348
368
  }) : void 0,
@@ -351,25 +371,25 @@ function B({
351
371
  );
352
372
  }
353
373
  function Fe({ code: e }) {
354
- const { t: n } = A(), a = e.toLowerCase(), s = n(`patientField.sex.${a}`, {
374
+ const { t: s } = A(), a = e.toLowerCase(), r = s(`patientField.sex.${a}`, {
355
375
  defaultValue: Ee[a] ?? e
356
376
  });
357
- return a === "f" ? /* @__PURE__ */ t(R, { variant: "accentSoft", leading: /* @__PURE__ */ t(Ae, {}), children: s }) : a === "m" ? /* @__PURE__ */ t(R, { variant: "info", leading: /* @__PURE__ */ t(ze, {}), children: s }) : /* @__PURE__ */ t(B, { icon: /* @__PURE__ */ t(le, {}), children: s });
377
+ return a === "f" ? /* @__PURE__ */ t(j, { variant: "accentSoft", leading: /* @__PURE__ */ t(Ae, {}), children: r }) : a === "m" ? /* @__PURE__ */ t(j, { variant: "info", leading: /* @__PURE__ */ t(ze, {}), children: r }) : /* @__PURE__ */ t(B, { icon: /* @__PURE__ */ t(le, {}), children: r });
358
378
  }
359
379
  function Ie({ years: e }) {
360
- const { t: n } = A();
361
- return /* @__PURE__ */ t(B, { icon: /* @__PURE__ */ t(Se, {}), children: n("patientField.age", {
380
+ const { t: s } = A();
381
+ return /* @__PURE__ */ t(B, { icon: /* @__PURE__ */ t(Se, {}), children: s("patientField.age", {
362
382
  count: e,
363
383
  defaultValue: "{{count}} years old"
364
384
  }) });
365
385
  }
366
386
  function Me({ field: e }) {
367
- const { i18n: n } = A();
387
+ const { i18n: s } = A();
368
388
  if (e.kind === "email" || e.kind === "phone") {
369
389
  const a = typeof e.value == "string" ? e.value : e.copyText ?? (typeof e.editValue == "string" ? e.editValue : "");
370
390
  if (a) {
371
- const s = e.kind === "email" ? `mailto:${a.trim()}` : `tel:${a.replace(/[^+\d]/g, "")}`;
372
- return /* @__PURE__ */ t(se, { href: s, dir: "ltr", children: a });
391
+ const r = e.kind === "email" ? `mailto:${a.trim()}` : `tel:${a.replace(/[^+\d]/g, "")}`;
392
+ return /* @__PURE__ */ t(re, { href: r, dir: "ltr", children: a });
373
393
  }
374
394
  }
375
395
  if (e.value != null)
@@ -384,12 +404,12 @@ function Me({ field: e }) {
384
404
  return Number.isFinite(a) ? /* @__PURE__ */ t(Ie, { years: a }) : null;
385
405
  }
386
406
  case "dob": {
387
- const a = e.editValue, s = a instanceof Date ? a : new Date(String(a ?? "")), r = Number.isNaN(s.getTime()) ? String(a ?? "") : new Intl.DateTimeFormat(n.language, {
407
+ const a = e.editValue, r = a instanceof Date ? a : new Date(String(a ?? "")), n = Number.isNaN(r.getTime()) ? String(a ?? "") : new Intl.DateTimeFormat(s.language, {
388
408
  day: "numeric",
389
409
  month: "short",
390
410
  year: "numeric"
391
- }).format(s);
392
- return r ? /* @__PURE__ */ t(B, { icon: /* @__PURE__ */ t(oe, {}), children: r }) : null;
411
+ }).format(r);
412
+ return n ? /* @__PURE__ */ t(B, { icon: /* @__PURE__ */ t(oe, {}), children: n }) : null;
393
413
  }
394
414
  case "fiscalCode": {
395
415
  const a = e.copyText ?? (typeof e.editValue == "string" ? e.editValue : "");
@@ -398,7 +418,7 @@ function Me({ field: e }) {
398
418
  case "discount": {
399
419
  const a = typeof e.editValue == "number" ? e.editValue : Number(e.editValue);
400
420
  return Number.isFinite(a) ? /* @__PURE__ */ t(
401
- re,
421
+ ne,
402
422
  {
403
423
  state: "discount",
404
424
  amount: Math.abs(a),
@@ -414,13 +434,13 @@ function Me({ field: e }) {
414
434
  function Le({
415
435
  field: e
416
436
  }) {
417
- const { t: n } = A();
437
+ const { t: s } = A();
418
438
  return /* @__PURE__ */ V("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
419
439
  e.label,
420
440
  e.sensitive ? /* @__PURE__ */ t(
421
441
  Ne,
422
442
  {
423
- "aria-label": n("patientDetails.sensitive", {
443
+ "aria-label": s("patientDetails.sensitive", {
424
444
  defaultValue: "Sensitive"
425
445
  }),
426
446
  className: "ds:size-3 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
@@ -430,27 +450,27 @@ function Le({
430
450
  }
431
451
  function Oe({
432
452
  field: e,
433
- editable: n,
453
+ editable: s,
434
454
  onFieldSave: a,
435
- validate: s,
436
- locale: r
455
+ validate: r,
456
+ locale: n
437
457
  }) {
438
- const { t: h } = A(), l = Y(), c = n && !!e.editable && !!a, [m, d] = z(!1), [i, E] = z(e.editValue), [N, w] = z(null), [g, y] = z(!1), x = k(() => {
439
- E(e.editValue), w(null), d(!0);
440
- }, [e.editValue]), P = k(() => {
441
- d(!1), w(null);
442
- }, []), D = k(async () => {
458
+ const { t: h } = A(), l = Y(), c = s && !!e.editable && !!a, [m, d] = z(!1), [i, E] = z(e.editValue), [N, D] = z(null), [g, y] = z(!1), x = C(() => {
459
+ E(e.editValue), D(null), d(!0);
460
+ }, [e.editValue]), P = C(() => {
461
+ d(!1), D(null);
462
+ }, []), w = C(async () => {
443
463
  if (!a) return;
444
- const u = (s == null ? void 0 : s(e.id, i)) ?? null;
464
+ const u = (r == null ? void 0 : r(e.id, i)) ?? null;
445
465
  if (u) {
446
- w(u);
466
+ D(u);
447
467
  return;
448
468
  }
449
- y(!0), w(null);
469
+ y(!0), D(null);
450
470
  try {
451
471
  await a(e.id, i), d(!1);
452
472
  } catch (v) {
453
- w(
473
+ D(
454
474
  v instanceof Error && v.message ? v.message : h("patientDetails.edit.saveFailed", {
455
475
  defaultValue: "Could not save. Try again."
456
476
  })
@@ -458,7 +478,7 @@ function Oe({
458
478
  } finally {
459
479
  y(!1);
460
480
  }
461
- }, [a, s, e.id, i, h]), p = typeof e.value == "string" ? e.value : e.copyText ?? (typeof e.editValue == "string" ? e.editValue : void 0);
481
+ }, [a, r, e.id, i, h]), p = typeof e.value == "string" ? e.value : e.copyText ?? (typeof e.editValue == "string" ? e.editValue : void 0);
462
482
  return m ? /* @__PURE__ */ V("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
463
483
  /* @__PURE__ */ V("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
464
484
  /* @__PURE__ */ t(
@@ -469,7 +489,7 @@ function Oe({
469
489
  onChange: E,
470
490
  invalid: !!N,
471
491
  errorId: N ? l : void 0,
472
- locale: r,
492
+ locale: n,
473
493
  disabled: g
474
494
  }
475
495
  ),
@@ -481,7 +501,7 @@ function Oe({
481
501
  icon: /* @__PURE__ */ t(K, { "aria-hidden": "true" }),
482
502
  "aria-label": h("patientDetails.edit.save", { defaultValue: "Save" }),
483
503
  loading: g,
484
- onClick: D
504
+ onClick: w
485
505
  }
486
506
  ),
487
507
  /* @__PURE__ */ t(
@@ -489,7 +509,7 @@ function Oe({
489
509
  {
490
510
  size: "sm",
491
511
  intent: "ghost",
492
- icon: /* @__PURE__ */ t(ke, { "aria-hidden": "true" }),
512
+ icon: /* @__PURE__ */ t(Ce, { "aria-hidden": "true" }),
493
513
  "aria-label": h("patientDetails.edit.cancel", {
494
514
  defaultValue: "Cancel"
495
515
  }),
@@ -535,13 +555,13 @@ function Oe({
535
555
  }
536
556
  function St({
537
557
  field: e,
538
- icon: n,
558
+ icon: s,
539
559
  ...a
540
560
  }) {
541
561
  return /* @__PURE__ */ V(
542
562
  $.Row,
543
563
  {
544
- icon: n ?? null,
564
+ icon: s ?? null,
545
565
  "data-field-id": e.id,
546
566
  className: "ds:group",
547
567
  children: [
@@ -553,26 +573,26 @@ function St({
553
573
  }
554
574
  function _e({
555
575
  field: e,
556
- value: n,
576
+ value: s,
557
577
  onChange: a,
558
- invalid: s,
559
- errorId: r,
578
+ invalid: r,
579
+ errorId: n,
560
580
  locale: h,
561
581
  disabled: l
562
582
  }) {
563
- const { t: c } = A(), m = s ? "error" : "default";
583
+ const { t: c } = A(), m = r ? "error" : "default";
564
584
  switch (e.editType ?? "text") {
565
585
  case "textarea":
566
586
  return /* @__PURE__ */ t(
567
587
  xe,
568
588
  {
569
589
  size: "sm",
570
- value: typeof n == "string" ? n : "",
590
+ value: typeof s == "string" ? s : "",
571
591
  onChange: (i) => a(i.target.value),
572
592
  tone: m,
573
593
  "aria-label": e.label,
574
- "aria-invalid": s || void 0,
575
- "aria-describedby": r,
594
+ "aria-invalid": r || void 0,
595
+ "aria-describedby": n,
576
596
  disabled: l,
577
597
  className: "ds:flex-1"
578
598
  }
@@ -583,13 +603,13 @@ function _e({
583
603
  {
584
604
  size: "sm",
585
605
  options: e.options ?? [],
586
- value: typeof n == "string" ? n : "",
606
+ value: typeof s == "string" ? s : "",
587
607
  onValueChange: (i) => a(i),
588
608
  tone: m,
589
609
  disabled: l,
590
610
  "aria-label": e.label,
591
- "aria-invalid": s || void 0,
592
- "aria-describedby": r
611
+ "aria-invalid": r || void 0,
612
+ "aria-describedby": n
593
613
  }
594
614
  );
595
615
  case "boolean":
@@ -597,7 +617,7 @@ function _e({
597
617
  ve,
598
618
  {
599
619
  label: e.label,
600
- checked: n === !0,
620
+ checked: s === !0,
601
621
  onCheckedChange: (i) => a(i),
602
622
  disabled: l
603
623
  }
@@ -607,7 +627,7 @@ function _e({
607
627
  ue,
608
628
  {
609
629
  size: "sm",
610
- value: n instanceof Date ? n : void 0,
630
+ value: s instanceof Date ? s : void 0,
611
631
  onChange: (i) => a(i ?? null),
612
632
  disabled: l,
613
633
  "aria-label": e.label
@@ -618,7 +638,7 @@ function _e({
618
638
  fe,
619
639
  {
620
640
  size: "sm",
621
- value: typeof n == "number" ? n : null,
641
+ value: typeof s == "number" ? s : null,
622
642
  onChange: (i) => a(i),
623
643
  mode: e.currency ? "currency" : "decimal",
624
644
  currency: e.currency,
@@ -626,8 +646,8 @@ function _e({
626
646
  tone: m,
627
647
  disabled: l,
628
648
  "aria-label": e.label,
629
- "aria-invalid": s || void 0,
630
- "aria-describedby": r
649
+ "aria-invalid": r || void 0,
650
+ "aria-describedby": n
631
651
  }
632
652
  );
633
653
  case "email":
@@ -635,11 +655,11 @@ function _e({
635
655
  me,
636
656
  {
637
657
  size: "sm",
638
- value: typeof n == "string" ? n : "",
658
+ value: typeof s == "string" ? s : "",
639
659
  onChange: (i) => a(i.target.value),
640
660
  "aria-label": e.label,
641
- "aria-invalid": s || void 0,
642
- "aria-describedby": r,
661
+ "aria-invalid": r || void 0,
662
+ "aria-describedby": n,
643
663
  disabled: l,
644
664
  className: "ds:flex-1"
645
665
  }
@@ -649,12 +669,12 @@ function _e({
649
669
  ge,
650
670
  {
651
671
  size: "sm",
652
- value: typeof n == "string" ? n : "",
672
+ value: typeof s == "string" ? s : "",
653
673
  onChange: (i) => a(i),
654
674
  tone: m,
655
675
  "aria-label": e.label,
656
- "aria-invalid": s || void 0,
657
- "aria-describedby": r,
676
+ "aria-invalid": r || void 0,
677
+ "aria-describedby": n,
658
678
  disabled: l,
659
679
  className: "ds:flex-1"
660
680
  }
@@ -664,12 +684,12 @@ function _e({
664
684
  pe,
665
685
  {
666
686
  size: "sm",
667
- value: typeof n == "string" ? n : "",
687
+ value: typeof s == "string" ? s : "",
668
688
  onChange: (i) => a(i),
669
689
  tone: m,
670
690
  "aria-label": e.label,
671
- "aria-invalid": s || void 0,
672
- "aria-describedby": r,
691
+ "aria-invalid": r || void 0,
692
+ "aria-describedby": n,
673
693
  disabled: l,
674
694
  className: "ds:flex-1"
675
695
  }
@@ -684,13 +704,13 @@ function _e({
684
704
  {
685
705
  size: "sm",
686
706
  country: "it",
687
- value: typeof n == "string" ? n : "",
707
+ value: typeof s == "string" ? s : "",
688
708
  onValueChange: (i) => a(i),
689
709
  tone: m,
690
710
  disabled: l,
691
711
  "aria-label": e.label,
692
- "aria-invalid": s || void 0,
693
- "aria-describedby": r,
712
+ "aria-invalid": r || void 0,
713
+ "aria-describedby": n,
694
714
  className: "ds:flex-1"
695
715
  }
696
716
  );
@@ -699,13 +719,13 @@ function _e({
699
719
  de,
700
720
  {
701
721
  size: "sm",
702
- value: typeof n == "string" ? n : "",
722
+ value: typeof s == "string" ? s : "",
703
723
  onValueChange: (i) => a(i),
704
724
  tone: m,
705
725
  disabled: l,
706
726
  "aria-label": e.label,
707
- "aria-invalid": s || void 0,
708
- "aria-describedby": r,
727
+ "aria-invalid": r || void 0,
728
+ "aria-describedby": n,
709
729
  className: "ds:flex-1"
710
730
  }
711
731
  );
@@ -715,11 +735,11 @@ function _e({
715
735
  {
716
736
  size: "sm",
717
737
  country: "it",
718
- value: typeof n == "string" ? n : "",
738
+ value: typeof s == "string" ? s : "",
719
739
  onValueChange: (i) => a(i),
720
740
  "aria-label": e.label,
721
- "aria-invalid": s || void 0,
722
- "aria-describedby": r,
741
+ "aria-invalid": r || void 0,
742
+ "aria-describedby": n,
723
743
  disabled: l,
724
744
  className: "ds:flex-1"
725
745
  }
@@ -729,28 +749,28 @@ function _e({
729
749
  ce,
730
750
  {
731
751
  size: "sm",
732
- value: typeof n == "string" ? n : "",
752
+ value: typeof s == "string" ? s : "",
733
753
  onValueChange: (i) => a(i),
734
754
  tone: m,
735
755
  disabled: l,
736
756
  "aria-label": e.label,
737
- "aria-invalid": s || void 0,
738
- "aria-describedby": r,
757
+ "aria-invalid": r || void 0,
758
+ "aria-describedby": n,
739
759
  className: "ds:flex-1"
740
760
  }
741
761
  );
742
762
  case "text":
743
763
  default:
744
764
  return /* @__PURE__ */ t(
745
- Ce,
765
+ ke,
746
766
  {
747
767
  size: "sm",
748
- value: typeof n == "string" ? n : "",
768
+ value: typeof s == "string" ? s : "",
749
769
  onChange: (i) => a(i.target.value),
750
770
  tone: m,
751
771
  "aria-label": e.label,
752
- "aria-invalid": s || void 0,
753
- "aria-describedby": r,
772
+ "aria-invalid": r || void 0,
773
+ "aria-describedby": n,
754
774
  disabled: l,
755
775
  clearable: !0,
756
776
  placeholder: c("patientDetails.edit.placeholder", {
@@ -763,12 +783,12 @@ function _e({
763
783
  }
764
784
  function Be({
765
785
  text: e,
766
- label: n
786
+ label: s
767
787
  }) {
768
- const { t: a } = A(), [s, r] = z(!1), [h, l] = z(""), c = k(async () => {
788
+ const { t: a } = A(), [r, n] = z(!1), [h, l] = z(""), c = C(async () => {
769
789
  try {
770
- await navigator.clipboard.writeText(e), r(!0), l(a("keyValuePair.copied", { defaultValue: "Copied" })), setTimeout(() => {
771
- r(!1), l("");
790
+ await navigator.clipboard.writeText(e), n(!0), l(a("keyValuePair.copied", { defaultValue: "Copied" })), setTimeout(() => {
791
+ n(!1), l("");
772
792
  }, 2e3);
773
793
  } catch {
774
794
  l(
@@ -782,9 +802,9 @@ function Be({
782
802
  {
783
803
  size: "sm",
784
804
  intent: "ghost",
785
- icon: s ? /* @__PURE__ */ t(K, { "aria-hidden": "true" }) : /* @__PURE__ */ t(De, { "aria-hidden": "true" }),
805
+ icon: r ? /* @__PURE__ */ t(K, { "aria-hidden": "true" }) : /* @__PURE__ */ t(we, { "aria-hidden": "true" }),
786
806
  "aria-label": a("keyValuePair.copy", {
787
- label: n,
807
+ label: s,
788
808
  defaultValue: "Copy {{label}}"
789
809
  }),
790
810
  onClick: c
@@ -795,7 +815,7 @@ function Be({
795
815
  }
796
816
  export {
797
817
  Ie as A,
798
- wt as F,
818
+ Dt as F,
799
819
  Se as H,
800
820
  B as N,
801
821
  St as P,
@@ -803,6 +823,6 @@ export {
803
823
  Oe as a,
804
824
  Le as b,
805
825
  Nt as r,
806
- Dt as u
826
+ wt as u
807
827
  };
808
- //# sourceMappingURL=patient-field-row-DElFbpKc.js.map
828
+ //# sourceMappingURL=patient-field-row-CT04C_lZ.js.map