@alfadocs/ui-kit 1.57.0 → 1.59.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 (378) hide show
  1. package/dist/_chunks/{actions-cell-renderer-Dj1ZkvJj.js → actions-cell-renderer-KoO3EYrZ.js} +4 -4
  2. package/dist/_chunks/{address-fields-BfjxS05Z.js → address-fields-CJtu7LQU.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-ZKhDxlfw.js → agenda-tray-D3GH9t3T.js} +3 -3
  4. package/dist/_chunks/{ai-credits-notice-ktklr8fy.js → ai-credits-notice-DAxBt_wr.js} +11 -11
  5. package/dist/_chunks/{ai-permission-notice-DyuEGwAt.js → ai-permission-notice-htJegWcH.js} +2 -2
  6. package/dist/_chunks/{ai-prompt-input-Beh-O_rJ.js → ai-prompt-input-DRNqTCSK.js} +3 -3
  7. package/dist/_chunks/{alia-sidebar-BBKBJCv6.js → alia-sidebar-bMVUsMmJ.js} +8 -8
  8. package/dist/_chunks/{anamnesis-card-BSlAhaoG.js → anamnesis-card-Bh7Tg6i-.js} +3 -3
  9. package/dist/_chunks/{anamnesis-summary-card-2YfIYY2j.js → anamnesis-summary-card-cCj7LPh3.js} +2 -2
  10. package/dist/_chunks/{anamnesis-summary-rows-CCQ62mMN.js → anamnesis-summary-rows-D9cFUeXk.js} +14 -14
  11. package/dist/_chunks/{antenatal-schedule-timeline-Kf2Yg8uo.js → antenatal-schedule-timeline-CfNFrej5.js} +2 -2
  12. package/dist/_chunks/{app-frame-B-0O9CrU.js → app-frame-CqmDh2v5.js} +2 -2
  13. package/dist/_chunks/{appointment-card-Dh3fAcyf.js → appointment-card-BXQUZlAJ.js} +2 -2
  14. package/dist/_chunks/{appointment-peek-WvNbE4JG.js → appointment-peek-drkQF54M.js} +4 -4
  15. package/dist/_chunks/{appointment-timeline-Z0494xO-.js → appointment-timeline-C3mTzaUm.js} +5 -5
  16. package/dist/_chunks/{appointment-tray-CyI_p3zU.js → appointment-tray-CUBBT4mL.js} +4 -4
  17. package/dist/_chunks/{audio-recorder-DWKKjGPt.js → audio-recorder-B1TpJoMu.js} +4 -4
  18. package/dist/_chunks/{balance-badge-cell-CII3SDmR.js → balance-badge-cell-BC92nTi9.js} +5 -5
  19. package/dist/_chunks/{bishop-score-BxA20j9T.js → bishop-score-BOjlxLzL.js} +4 -4
  20. package/dist/_chunks/{bmi-calculator-C0UTxB7R.js → bmi-calculator-JNiTHdYJ.js} +3 -3
  21. package/dist/_chunks/{booking-81WnKDsH.js → booking-BdWwr_NM.js} +8 -8
  22. package/dist/_chunks/{button-Bn16lcFM.js → button-CnUVJg1Y.js} +71 -61
  23. package/dist/_chunks/{button-group-CWlwR-A5.js → button-group-DLqAoowT.js} +73 -73
  24. package/dist/_chunks/{calculator-dialog-CzQv03p0.js → calculator-dialog-BUfaWqvu.js} +2 -2
  25. package/dist/_chunks/{calendar-6-24PQ1u.js → calendar-KihOHLCs.js} +2 -2
  26. package/dist/_chunks/{calendar-workspace-D5-k_9zE.js → calendar-workspace-DD378Xg8.js} +30 -30
  27. package/dist/_chunks/{card-DMO2nkt4.js → card-BA4Ig_kn.js} +9 -8
  28. package/dist/_chunks/{care-plan-card-DxrRLRdW.js → care-plan-card-Cd1En8-p.js} +2 -2
  29. package/dist/_chunks/{care-plan-entry-card-0rpR-4Te.js → care-plan-entry-card-FIYdF44t.js} +2 -2
  30. package/dist/_chunks/{care-plan-header-BMwZIgHJ.js → care-plan-header-DgPAJWS4.js} +2 -2
  31. package/dist/_chunks/{carousel.agent-D3xthzTf.js → carousel.agent-C7MXzwUi.js} +2 -2
  32. package/dist/_chunks/{chart-DQ5GxqgT.js → chart-0jK6B2ry.js} +407 -393
  33. package/dist/_chunks/{chat-input-PtrSu1ZC.js → chat-input-1c4k4-uk.js} +2 -2
  34. package/dist/_chunks/{chat-message-CmGUcajG.js → chat-message-Bv9eW1NW.js} +3 -3
  35. package/dist/_chunks/{city-input-BC_nYINn.js → city-input-3J3bz9EO.js} +2 -2
  36. package/dist/_chunks/{clinical-note-card-hx939bvw.js → clinical-note-card-L6FVM9Gx.js} +2 -2
  37. package/dist/_chunks/{code-block-BQgK70mO.js → code-block-DWVvOrUF.js} +2 -2
  38. package/dist/_chunks/{connection-status-ncTjUPt6.js → connection-status-D-Zeqpr3.js} +4 -4
  39. package/dist/_chunks/{contact-card-fHBMwEsx.js → contact-card-C8rEsC4Q.js} +2 -2
  40. package/dist/_chunks/{contact-profile-card-CMyBYgRR.js → contact-profile-card-DJe2ld0g.js} +3 -3
  41. package/dist/_chunks/{control-room-rail-Tx2jW250.js → control-room-rail-DgS2snUz.js} +3 -3
  42. package/dist/_chunks/{copy-field-CvTIuA_p.js → copy-field-CY1f0k7O.js} +2 -2
  43. package/dist/_chunks/{cycle-calculator-Cww9DzIa.js → cycle-calculator-sOOESGEG.js} +3 -3
  44. package/dist/_chunks/dashboard-grid-SAGjktTs.js +933 -0
  45. package/dist/_chunks/{data-table-fAMTeAjM.js → data-table-DjDuXaQB.js} +11 -11
  46. package/dist/_chunks/{data-table-tabs-CHYAAeHy.js → data-table-tabs-BsCll8sH.js} +3 -3
  47. package/dist/_chunks/{description-list-DkLeHiew.js → description-list-ZWlFfbOy.js} +2 -2
  48. package/dist/_chunks/{dev-bypass-button-BhGn6evf.js → dev-bypass-button-m-eXU2PU.js} +2 -2
  49. package/dist/_chunks/{dialog-Dn-iQ0Jp.js → dialog-D6fkpRc4.js} +72 -61
  50. package/dist/_chunks/{document-preview-CHGGG0l_.js → document-preview-E6od-Yy0.js} +4 -4
  51. package/dist/_chunks/{document-scanner-CQS9kv84.js → document-scanner-DDOMMswN.js} +2 -2
  52. package/dist/_chunks/{dropdown-menu-BQSNVp4x.js → dropdown-menu-D1we7oAY.js} +134 -133
  53. package/dist/_chunks/{due-date-calculator-D_qFUiHp.js → due-date-calculator-rtMADvJ8.js} +4 -4
  54. package/dist/_chunks/{editable-currency-cell-renderer-CmYcMuwi.js → editable-currency-cell-renderer-DTtF6IIr.js} +3 -3
  55. package/dist/_chunks/{editable-description-DuJlvltc.js → editable-description-CriawIum.js} +3 -3
  56. package/dist/_chunks/{editor-overlay-NMxzcO6J.js → editor-overlay-CbFUYsVk.js} +2 -2
  57. package/dist/_chunks/{empty-state-gNG3qYCX.js → empty-state-BN_R5AzQ.js} +61 -59
  58. package/dist/_chunks/{entity-summary-CWcCSThK.js → entity-summary-CoCUJe3N.js} +4 -4
  59. package/dist/_chunks/{error-boundary-ChowhO6w.js → error-boundary-BlwcM1KR.js} +2 -2
  60. package/dist/_chunks/{error-page-CpuYbpOB.js → error-page-B0ER6tPK.js} +2 -2
  61. package/dist/_chunks/{face-scheme-BicuUA2K.js → face-scheme-BunF1rjI.js} +7 -7
  62. package/dist/_chunks/{fetal-weight-BWaqqjea.js → fetal-weight-67yvef3S.js} +3 -3
  63. package/dist/_chunks/{field-array-BO-kaKFK.js → field-array-BVitwPIt.js} +3 -3
  64. package/dist/_chunks/{file-manager-CFsL1KVt.js → file-manager-YXtUu76I.js} +9 -9
  65. package/dist/_chunks/{finished-terminal-CPSDrIMB.js → finished-terminal-DdLHDe_5.js} +3 -3
  66. package/dist/_chunks/{fiscal-code-input-DesSQ6Fh.js → fiscal-code-input-Dsa1M6VK.js} +2 -2
  67. package/dist/_chunks/{forgot-password-form-DEx-M_QR.js → forgot-password-form-C2ibWCZT.js} +4 -4
  68. package/dist/_chunks/{freemium-paywall-DIKuhX8b.js → freemium-paywall-C8CXWbhO.js} +27 -27
  69. package/dist/_chunks/{gestational-age-calculator-CZi43xKG.js → gestational-age-calculator-DT8XDFVK.js} +5 -5
  70. package/dist/_chunks/{hcg-doubling-Ccvh7OaU.js → hcg-doubling-BxggoYNV.js} +3 -3
  71. package/dist/_chunks/{header-B9552pLh.js → header-C0XQZtu6.js} +2 -2
  72. package/dist/_chunks/{header-settings-BMcCx2LC.js → header-settings-BJ6M2p9Q.js} +4 -4
  73. package/dist/_chunks/{heatmap-BEeOThkW.js → heatmap-COoukTUe.js} +6 -6
  74. package/dist/_chunks/{help-me-write-templates-BUoYGo6f.js → help-me-write-templates-DpcMweG1.js} +7 -7
  75. package/dist/_chunks/{hover-card-U_ZYoh1n.js → hover-card-s2qD4RAz.js} +2 -2
  76. package/dist/_chunks/{icon-button-COX76Jdj.js → icon-button-CsOGhuRB.js} +2 -2
  77. package/dist/_chunks/{icon-button-group-C5hhI-R5.js → icon-button-group-Cap4-Idv.js} +3 -3
  78. package/dist/_chunks/{icon-picker-C86lQTIA.js → icon-picker-BbO2FB4y.js} +4 -4
  79. package/dist/_chunks/{image-cropper-D0kkQ4lG.js → image-cropper-DXqCUezS.js} +2 -2
  80. package/dist/_chunks/{info-tip-CJpNpzZe.js → info-tip-CJqR9fhi.js} +2 -2
  81. package/dist/_chunks/{insert-result-C1C2OCc3.js → insert-result-BUEtHFMg.js} +2 -2
  82. package/dist/_chunks/{key-value-pair-BNNITp6S.js → key-value-pair-BN5lWXcB.js} +2 -2
  83. package/dist/_chunks/{kit-extensions-DYVxWcqv.js → kit-extensions-BVtvnev_.js} +6 -6
  84. package/dist/_chunks/{link-cell-renderer-CxW_oLa5.js → link-cell-renderer-BZmRw_Yi.js} +6 -6
  85. package/dist/_chunks/{list-RRN2TJ_7.js → list-CNnn7DOD.js} +75 -73
  86. package/dist/_chunks/{locale-picker-BGfrZyTw.js → locale-picker-DVWHnuDN.js} +3 -3
  87. package/dist/_chunks/{login-dev-card-DmZ1B0lB.js → login-dev-card-DQioAtdz.js} +4 -4
  88. package/dist/_chunks/{map-view-CO2v0hfp.js → map-view-9Ro_P8O8.js} +2 -2
  89. package/dist/_chunks/marketplace-app-shell-DnuHxuoE.js +613 -0
  90. package/dist/_chunks/{message-card-DVo8-dOm.js → message-card-BNoaKInS.js} +3 -3
  91. package/dist/_chunks/{message-tray-QKQutwxj.js → message-tray-D4R0boMJ.js} +5 -5
  92. package/dist/_chunks/{muscle-scheme-BDgIaGeW.js → muscle-scheme-YoN3rYXV.js} +2 -2
  93. package/dist/_chunks/navigation-dismiss-B1mcW1CT.js +9 -0
  94. package/dist/_chunks/{notes-panel-Cm4pttpl.js → notes-panel-0Wots8rp.js} +7 -7
  95. package/dist/_chunks/{notification-card-BGCIL6Mu.js → notification-card-DRLmYlL8.js} +3 -3
  96. package/dist/_chunks/{notification-tray-C5VtbGjd.js → notification-tray-qrSc9Fcs.js} +5 -5
  97. package/dist/_chunks/{operator-hero-Dyd2IGbR.js → operator-hero-C_Khr5IU.js} +2 -2
  98. package/dist/_chunks/{optical-prescription-Do6e3wfs.js → optical-prescription-B0ap3kGl.js} +3 -3
  99. package/dist/_chunks/{pagination-BR1_GfD_.js → pagination-DvKGrsXu.js} +146 -142
  100. package/dist/_chunks/{panel-subview-BT-Apwgb.js → panel-subview-Bs0WhwR9.js} +62 -48
  101. package/dist/_chunks/{patient-details-99kEdtc5.js → patient-details-C6buDwuI.js} +4 -4
  102. package/dist/_chunks/{patient-field-row-DkxY13T6.js → patient-field-row-CKb4FIaM.js} +9 -9
  103. package/dist/_chunks/{patient-search-D5xlXmd2.js → patient-search-Cgv8Pjsc.js} +4 -4
  104. package/dist/_chunks/{patient-summary-card-opdyfeW2.js → patient-summary-card-DWx0emu2.js} +6 -6
  105. package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js → payment-automation-upsell-BAJwtVCs.js} +4 -4
  106. package/dist/_chunks/{payment-request-card-DAniJNLX.js → payment-request-card-BNiZqIzT.js} +4 -4
  107. package/dist/_chunks/{periodontal-chart-DD5C0M3l.js → periodontal-chart-DMWiP5Ti.js} +2 -2
  108. package/dist/_chunks/{periodontal-chart-card-CxdXvsPU.js → periodontal-chart-card-D2ZFjN7G.js} +3 -3
  109. package/dist/_chunks/{periodontal-diagnosis-D-PJv7KS.js → periodontal-diagnosis-6wybid_W.js} +2 -2
  110. package/dist/_chunks/{periodontal-risk-chart-D3DjIymT.js → periodontal-risk-chart-CgLwBj5c.js} +2 -2
  111. package/dist/_chunks/{popover-BG75rYjN.js → popover-CltTC2Rg.js} +2 -2
  112. package/dist/_chunks/popup-region-qz_5_A0V.js +79 -0
  113. package/dist/_chunks/{practice-profile-hero-C8RPACCi.js → practice-profile-hero-DPbvYfCs.js} +2 -2
  114. package/dist/_chunks/{practice-results-CfRkjzsI.js → practice-results-PINvX-1g.js} +6 -6
  115. package/dist/_chunks/{pregnancy-dating-BFzv9g1N.js → pregnancy-dating-BNSWXA0p.js} +5 -5
  116. package/dist/_chunks/{pregnancy-weight-gain-CUUrBTBo.js → pregnancy-weight-gain-CI7R6sA6.js} +3 -3
  117. package/dist/_chunks/{privacy-lock-WkUgwIj_.js → privacy-lock-CqLxFiLE.js} +3 -3
  118. package/dist/_chunks/{privacy-mask-ChIjELJC.js → privacy-mask-CUnJv35j.js} +3 -3
  119. package/dist/_chunks/{product-hub-panel-DlVRK7Ue.js → product-hub-panel-MbiHZwjC.js} +4 -4
  120. package/dist/_chunks/{public-header.agent-BctevbuY.js → public-header.agent-1MZVDYY1.js} +3 -3
  121. package/dist/_chunks/{radiograph-panel.agent-DyqbTECc.js → radiograph-panel.agent-CpKvvZIU.js} +6 -6
  122. package/dist/_chunks/{registration-form-BlTzYywa.js → registration-form-JYravsvu.js} +7 -7
  123. package/dist/_chunks/{reviews-panel-CDcK6W3b.js → reviews-panel-B1Xirvh4.js} +5 -5
  124. package/dist/_chunks/{rich-text-editor-DTnNZ4Ff.js → rich-text-editor-CZXnqI3-.js} +11 -11
  125. package/dist/_chunks/{scroll-area-ZtFCv9K7.js → scroll-area-CY5SLYNw.js} +104 -74
  126. package/dist/_chunks/{search-bar-DQJS0wJN.js → search-bar-mA4bPe3t.js} +294 -255
  127. package/dist/_chunks/{section-card-ChJdOlBU.js → section-card-D5nWiTcK.js} +2 -2
  128. package/dist/_chunks/{select-Ce5RMk93.js → select-k4gBdS8N.js} +249 -224
  129. package/dist/_chunks/{session-countdown-CBINYw8H.js → session-countdown-DAyI9Wye.js} +2 -2
  130. package/dist/_chunks/{sheet-8qsiMoUI.js → sheet-D_bERXP2.js} +8 -8
  131. package/dist/_chunks/sidebar-D_S2-SXH.js +2165 -0
  132. package/dist/_chunks/{sign-in-with-alfadocs-button-D91_x8DX.js → sign-in-with-alfadocs-button-WfdfqQ8O.js} +2 -2
  133. package/dist/_chunks/{signature-request-DRuYAG5I.js → signature-request-BZIs36nH.js} +7 -7
  134. package/dist/_chunks/{signed-out-frame-AhMsNW1r.js → signed-out-frame-BR5sJSNX.js} +4 -4
  135. package/dist/_chunks/{slot-grid-sVZriOiQ.js → slot-grid-JU--9C6W.js} +4 -4
  136. package/dist/_chunks/{state-backed-text-input-DECQy5aA.js → state-backed-text-input-Cgh4ms3p.js} +2 -2
  137. package/dist/_chunks/{streaming-text-BKZmbW1Q.js → streaming-text-COuXesoR.js} +2 -2
  138. package/dist/_chunks/{tab-bar-Bm-rJB7Y.js → tab-bar-5GppbMGc.js} +2 -2
  139. package/dist/_chunks/{tabs-I2wf_nC7.js → tabs-2x3L13jn.js} +3 -3
  140. package/dist/_chunks/{task-card-BMXMh3uE.js → task-card-D9ngXO7p.js} +2 -2
  141. package/dist/_chunks/{task-editor-NkcopDna.js → task-editor-B7xb-mMs.js} +11 -10
  142. package/dist/_chunks/{task-tray-DsBO-AaP.js → task-tray-BAW_wbTO.js} +4 -4
  143. package/dist/_chunks/{tasks-panel-CdgZQQgG.js → tasks-panel-DQvN3TiB.js} +7 -7
  144. package/dist/_chunks/{theme-toggle-PpFcFoYK.js → theme-toggle-CfjLDUfK.js} +4 -4
  145. package/dist/_chunks/{timeline-DG8wAlAx.js → timeline-DEIuHrWz.js} +2 -2
  146. package/dist/_chunks/{toast-CPqguP7G.js → toast-2y0czYHr.js} +2 -2
  147. package/dist/_chunks/{token-insert-menu-B-pWFDKX.js → token-insert-menu-BzNAHiND.js} +3 -3
  148. package/dist/_chunks/{tool-rail-Bwyuw_Ot.js → tool-rail-DQ5qTv4l.js} +115 -114
  149. package/dist/_chunks/{tooth-scheme-BAO_voUO.js → tooth-scheme-CLyS9UUW.js} +3 -3
  150. package/dist/_chunks/{unit-converter-DS4UB_59.js → unit-converter-W62N99Mw.js} +3 -3
  151. package/dist/_chunks/{use-appointment-details-read-CfFQNOF_.js → use-appointment-details-read-Ba1DBPr7.js} +18 -18
  152. package/dist/_chunks/use-state-backed-input-DhRQo6gM.js +57 -0
  153. package/dist/_chunks/{voice-control-panel-BKbgb7FM.js → voice-control-panel-p7WMTj4D.js} +6 -6
  154. package/dist/_chunks/{warning-stack-ubD0IZCy.js → warning-stack-DGPuJNVD.js} +3 -3
  155. package/dist/_chunks/{widget-picker-rBA7MR5P.js → widget-picker-CkhoG4Rj.js} +80 -57
  156. package/dist/_chunks/{workflow-map-Demlpy39.js → workflow-map-DFuVff8U.js} +7 -7
  157. package/dist/_chunks/{workflow-status-BT27_fQp.js → workflow-status-Dc_CyEz5.js} +2 -2
  158. package/dist/agent-catalog.json +2 -2
  159. package/dist/agent-i18n/en.json +1 -1
  160. package/dist/components/_shared/navigation-dismiss.d.ts +8 -0
  161. package/dist/components/_shared/popup-region.d.ts +28 -0
  162. package/dist/components/_shared/use-state-backed-input.d.ts +3 -2
  163. package/dist/components/address-fields/index.js +1 -1
  164. package/dist/components/agenda-tray/index.js +1 -1
  165. package/dist/components/ai-credits-notice/index.js +1 -1
  166. package/dist/components/ai-permission-notice/index.js +1 -1
  167. package/dist/components/ai-prompt-input/index.js +1 -1
  168. package/dist/components/anamnesis-card/index.js +1 -1
  169. package/dist/components/anamnesis-summary-card/index.js +1 -1
  170. package/dist/components/app-frame/index.js +1 -1
  171. package/dist/components/appointment-card/index.js +2 -2
  172. package/dist/components/appointment-details-panel/index.js +1 -1
  173. package/dist/components/appointment-peek/index.js +1 -1
  174. package/dist/components/appointment-timeline/index.js +1 -1
  175. package/dist/components/audio-recorder/index.js +1 -1
  176. package/dist/components/bishop-score/index.js +1 -1
  177. package/dist/components/bmi-calculator/index.js +1 -1
  178. package/dist/components/booking/index.js +1 -1
  179. package/dist/components/button/index.js +2 -2
  180. package/dist/components/button-group/index.js +1 -1
  181. package/dist/components/calculator-dialog/index.js +1 -1
  182. package/dist/components/calendar/index.js +1 -1
  183. package/dist/components/card/index.js +1 -1
  184. package/dist/components/care-plan-card/index.js +1 -1
  185. package/dist/components/care-plan-entry-card/index.js +1 -1
  186. package/dist/components/care-plan-header/index.js +1 -1
  187. package/dist/components/carousel/index.js +1 -1
  188. package/dist/components/chart/index.js +1 -1
  189. package/dist/components/chat-input/index.js +1 -1
  190. package/dist/components/chat-message/index.js +1 -1
  191. package/dist/components/city-input/index.js +1 -1
  192. package/dist/components/clinical-note-card/index.js +1 -1
  193. package/dist/components/connection-status/index.js +1 -1
  194. package/dist/components/contact-card/index.js +1 -1
  195. package/dist/components/contact-profile-card/index.js +1 -1
  196. package/dist/components/control-room-rail/index.js +1 -1
  197. package/dist/components/copy-field/index.js +1 -1
  198. package/dist/components/cycle-calculator/index.js +1 -1
  199. package/dist/components/dashboard-grid/dashboard-grid.d.ts +33 -8
  200. package/dist/components/dashboard-grid/index.js +1 -1
  201. package/dist/components/data-table/index.js +4 -4
  202. package/dist/components/data-table-tabs/index.js +1 -1
  203. package/dist/components/description-list/index.js +1 -1
  204. package/dist/components/dev-bypass-button/index.js +1 -1
  205. package/dist/components/dialog/index.js +1 -1
  206. package/dist/components/document-preview/index.js +1 -1
  207. package/dist/components/document-scanner/index.js +1 -1
  208. package/dist/components/dropdown-menu/index.js +1 -1
  209. package/dist/components/due-date-calculator/index.js +2 -2
  210. package/dist/components/editable-description/index.js +1 -1
  211. package/dist/components/editor-overlay/index.js +1 -1
  212. package/dist/components/empty-state/empty-state.d.ts +8 -0
  213. package/dist/components/empty-state/index.d.ts +1 -1
  214. package/dist/components/empty-state/index.js +1 -1
  215. package/dist/components/entity-summary/index.js +1 -1
  216. package/dist/components/error-boundary/index.js +1 -1
  217. package/dist/components/face-scheme/index.js +1 -1
  218. package/dist/components/fetal-weight/index.js +1 -1
  219. package/dist/components/field-array/index.js +1 -1
  220. package/dist/components/file-manager/index.js +1 -1
  221. package/dist/components/finished-terminal/index.js +1 -1
  222. package/dist/components/fiscal-code-input/index.js +1 -1
  223. package/dist/components/freemium-paywall/index.js +1 -1
  224. package/dist/components/gestational-age-calculator/index.js +1 -1
  225. package/dist/components/hcg-doubling/index.js +1 -1
  226. package/dist/components/header/index.js +1 -1
  227. package/dist/components/header-settings/index.js +1 -1
  228. package/dist/components/heatmap/index.js +1 -1
  229. package/dist/components/hover-card/index.js +1 -1
  230. package/dist/components/icon-button/index.js +1 -1
  231. package/dist/components/icon-button-group/index.js +1 -1
  232. package/dist/components/icon-picker/index.js +1 -1
  233. package/dist/components/image-cropper/index.js +1 -1
  234. package/dist/components/info-tip/index.js +1 -1
  235. package/dist/components/key-value-pair/index.js +1 -1
  236. package/dist/components/list/index.js +1 -1
  237. package/dist/components/locale-picker/index.js +1 -1
  238. package/dist/components/map-view/index.js +1 -1
  239. package/dist/components/message-card/index.js +1 -1
  240. package/dist/components/message-tray/index.js +1 -1
  241. package/dist/components/muscle-scheme/index.js +1 -1
  242. package/dist/components/notes-panel/index.js +1 -1
  243. package/dist/components/notification-card/index.js +1 -1
  244. package/dist/components/notification-tray/index.js +1 -1
  245. package/dist/components/operator-hero/index.js +1 -1
  246. package/dist/components/optical-prescription/index.js +1 -1
  247. package/dist/components/pagination/index.js +1 -1
  248. package/dist/components/panel-subview/index.js +1 -1
  249. package/dist/components/patient-details/index.js +1 -1
  250. package/dist/components/patient-search/index.js +1 -1
  251. package/dist/components/patient-summary-card/index.js +1 -1
  252. package/dist/components/patient-table/index.js +1 -1
  253. package/dist/components/payment-card/index.js +1 -1
  254. package/dist/components/periodontal-chart/index.js +1 -1
  255. package/dist/components/periodontal-chart-card/index.js +1 -1
  256. package/dist/components/periodontal-diagnosis/index.js +1 -1
  257. package/dist/components/periodontal-risk-chart/index.js +1 -1
  258. package/dist/components/popover/index.js +1 -1
  259. package/dist/components/practice-profile-hero/index.js +1 -1
  260. package/dist/components/practice-results/index.js +1 -1
  261. package/dist/components/pregnancy-dating/index.js +1 -1
  262. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  263. package/dist/components/privacy-lock/index.js +1 -1
  264. package/dist/components/product-hub-tray/index.js +1 -1
  265. package/dist/components/public-header/index.js +1 -1
  266. package/dist/components/radiograph-panel/index.js +1 -1
  267. package/dist/components/reviews-panel/index.js +1 -1
  268. package/dist/components/rich-text-editor/index.js +2 -2
  269. package/dist/components/scroll-area/index.js +1 -1
  270. package/dist/components/scroll-area/scroll-area.d.ts +6 -5
  271. package/dist/components/search-bar/index.js +1 -1
  272. package/dist/components/search-bar/search-bar.d.ts +1 -1
  273. package/dist/components/section-card/index.js +1 -1
  274. package/dist/components/select/index.js +1 -1
  275. package/dist/components/select/select.d.ts +1 -1
  276. package/dist/components/session-countdown/index.js +1 -1
  277. package/dist/components/sheet/index.js +1 -1
  278. package/dist/components/sidebar/index.d.ts +1 -1
  279. package/dist/components/sidebar/index.js +1 -1
  280. package/dist/components/sidebar/sidebar-move.d.ts +88 -0
  281. package/dist/components/sidebar/sidebar.d.ts +40 -1
  282. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  283. package/dist/components/skeleton-scheme/index.js +1 -1
  284. package/dist/components/slot-grid/index.js +1 -1
  285. package/dist/components/streaming-text/index.js +1 -1
  286. package/dist/components/tab-bar/index.js +1 -1
  287. package/dist/components/tabs/index.js +1 -1
  288. package/dist/components/task-card/index.js +1 -1
  289. package/dist/components/task-editor/index.js +1 -1
  290. package/dist/components/task-tray/index.js +1 -1
  291. package/dist/components/tasks-panel/index.js +1 -1
  292. package/dist/components/theme-toggle/index.js +1 -1
  293. package/dist/components/timeline/index.js +1 -1
  294. package/dist/components/toast/index.js +1 -1
  295. package/dist/components/token-insert-menu/index.js +1 -1
  296. package/dist/components/tool-rail/index.js +1 -1
  297. package/dist/components/tooth-scheme/index.js +1 -1
  298. package/dist/components/unit-converter/index.js +1 -1
  299. package/dist/components/voice-control-panel/index.js +1 -1
  300. package/dist/components/warning-stack/index.js +1 -1
  301. package/dist/components/widget-picker/index.js +1 -1
  302. package/dist/components/workflow/index.js +1 -1
  303. package/dist/components/workflow-status/index.js +1 -1
  304. package/dist/host-compat.css +2 -1
  305. package/dist/i18n/locales/ar.d.ts +15 -0
  306. package/dist/i18n/locales/ar.js +16 -1
  307. package/dist/i18n/locales/de.d.ts +15 -0
  308. package/dist/i18n/locales/de.js +16 -1
  309. package/dist/i18n/locales/el.d.ts +15 -0
  310. package/dist/i18n/locales/el.js +16 -1
  311. package/dist/i18n/locales/en.d.ts +15 -0
  312. package/dist/i18n/locales/en.js +16 -1
  313. package/dist/i18n/locales/es.d.ts +15 -0
  314. package/dist/i18n/locales/es.js +16 -1
  315. package/dist/i18n/locales/fr.d.ts +15 -0
  316. package/dist/i18n/locales/fr.js +16 -1
  317. package/dist/i18n/locales/hi.d.ts +15 -0
  318. package/dist/i18n/locales/hi.js +16 -1
  319. package/dist/i18n/locales/it.d.ts +15 -0
  320. package/dist/i18n/locales/it.js +16 -1
  321. package/dist/i18n/locales/ja.d.ts +15 -0
  322. package/dist/i18n/locales/ja.js +16 -1
  323. package/dist/i18n/locales/nl.d.ts +15 -0
  324. package/dist/i18n/locales/nl.js +16 -1
  325. package/dist/i18n/locales/pl.d.ts +15 -0
  326. package/dist/i18n/locales/pl.js +16 -1
  327. package/dist/i18n/locales/pt.d.ts +15 -0
  328. package/dist/i18n/locales/pt.js +16 -1
  329. package/dist/i18n/locales/ro.d.ts +15 -0
  330. package/dist/i18n/locales/ro.js +16 -1
  331. package/dist/i18n/locales/ru.d.ts +15 -0
  332. package/dist/i18n/locales/ru.js +16 -1
  333. package/dist/i18n/locales/sq.d.ts +15 -0
  334. package/dist/i18n/locales/sq.js +16 -1
  335. package/dist/i18n/locales/sv.d.ts +15 -0
  336. package/dist/i18n/locales/sv.js +16 -1
  337. package/dist/i18n/locales/tr.d.ts +15 -0
  338. package/dist/i18n/locales/tr.js +16 -1
  339. package/dist/i18n/locales/zh.d.ts +15 -0
  340. package/dist/i18n/locales/zh.js +16 -1
  341. package/dist/index.js +147 -147
  342. package/dist/locales/ar.json +16 -1
  343. package/dist/locales/de.json +16 -1
  344. package/dist/locales/el.json +16 -1
  345. package/dist/locales/en.json +16 -1
  346. package/dist/locales/es.json +16 -1
  347. package/dist/locales/fr.json +16 -1
  348. package/dist/locales/hi.json +16 -1
  349. package/dist/locales/it.json +16 -1
  350. package/dist/locales/ja.json +16 -1
  351. package/dist/locales/nl.json +16 -1
  352. package/dist/locales/pl.json +16 -1
  353. package/dist/locales/pt.json +16 -1
  354. package/dist/locales/ro.json +16 -1
  355. package/dist/locales/ru.json +16 -1
  356. package/dist/locales/sq.json +16 -1
  357. package/dist/locales/sv.json +16 -1
  358. package/dist/locales/tr.json +16 -1
  359. package/dist/locales/zh.json +16 -1
  360. package/dist/patterns/alia-assistant/index.js +1 -1
  361. package/dist/patterns/anamnesis/index.js +1 -1
  362. package/dist/patterns/calendar/index.js +1 -1
  363. package/dist/patterns/error-page/index.js +1 -1
  364. package/dist/patterns/forgot-password-form/index.js +1 -1
  365. package/dist/patterns/help-me-write-templates/index.js +1 -1
  366. package/dist/patterns/login-form/index.js +1 -1
  367. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  368. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +34 -9
  369. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  370. package/dist/patterns/registration-form/index.js +1 -1
  371. package/dist/patterns/signature-request/index.js +1 -1
  372. package/dist/patterns/signed-out-frame/index.js +1 -1
  373. package/dist/tokens.css +6 -3
  374. package/package.json +1 -1
  375. package/dist/_chunks/dashboard-grid-DfEY2qci.js +0 -844
  376. package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js +0 -555
  377. package/dist/_chunks/sidebar-DLsG2AIk.js +0 -1349
  378. package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +0 -59
@@ -1,15 +1,17 @@
1
- import { jsx as t, jsxs as D, Fragment as ne } from "react/jsx-runtime";
2
- import { forwardRef as oe, useState as Q, useEffect as U, useRef as B, useMemo as $, useImperativeHandle as W, useId as ie, useCallback as K } from "react";
3
- import { c as A } from "./index-D2ZczOXr.js";
4
- import { useTranslation as J } from "react-i18next";
5
- import * as _ from "@radix-ui/react-popover";
6
- import { S as de } from "./search-input-BAlDd05M.js";
7
- import { b as ce } from "./menu-row-BAr8bx1I.js";
8
- import { u as X } from "./registry-DvAUVLHh.js";
9
- import { n as G } from "./normalize-diacritics-BNGbFNlJ.js";
10
- import { S as le } from "./search-QbWPlY5f.js";
11
- import { u as ue } from "./use-debounced-callback-BisrB-Fq.js";
12
- const Y = {
1
+ import { jsx as s, jsxs as _, Fragment as fe } from "react/jsx-runtime";
2
+ import { forwardRef as he, useState as A, useEffect as te, useRef as R, useMemo as W, useImperativeHandle as se, useId as me, useCallback as B } from "react";
3
+ import { c as H } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as ae } from "react-i18next";
5
+ import * as V from "@radix-ui/react-popover";
6
+ import { S as ve } from "./search-input-BAlDd05M.js";
7
+ import { b as ge } from "./menu-row-BAr8bx1I.js";
8
+ import { u as ye } from "./navigation-dismiss-B1mcW1CT.js";
9
+ import { u as ne } from "./registry-DvAUVLHh.js";
10
+ import { u as ee } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
11
+ import { n as re } from "./normalize-diacritics-BNGbFNlJ.js";
12
+ import { S as be } from "./search-QbWPlY5f.js";
13
+ import { u as xe } from "./use-debounced-callback-BisrB-Fq.js";
14
+ const oe = {
13
15
  id: "search-bar",
14
16
  // The query is a transient filter (set_query/clear), not inline content
15
17
  // editing — `filter` covers it. `submit` opens the palette / commits a hit.
@@ -43,8 +45,8 @@ const Y = {
43
45
  idempotent: !0,
44
46
  descriptionKey: "ui.agent.searchBar.actions.setQuery",
45
47
  description: "Replace the current query (inline mode only). No-op in launcher mode.",
46
- invoke: (r, s) => {
47
- r.setQuery(s.query);
48
+ invoke: (r, t) => {
49
+ r.setQuery(t.query);
48
50
  }
49
51
  },
50
52
  clear: {
@@ -92,8 +94,8 @@ const Y = {
92
94
  idempotent: !0,
93
95
  descriptionKey: "ui.agent.searchBar.actions.applySavedSearch",
94
96
  description: "Apply a saved-search by id. The host wires the actual query lookup; the adapter routes the id to its onApplySavedSearch handler. No-op when no handler is wired.",
95
- invoke: (r, s) => {
96
- r.applySavedSearch(s.id);
97
+ invoke: (r, t) => {
98
+ r.applySavedSearch(t.id);
97
99
  }
98
100
  }
99
101
  },
@@ -110,12 +112,12 @@ const Y = {
110
112
  }
111
113
  }
112
114
  };
113
- function pe() {
115
+ function ke() {
114
116
  if (typeof navigator > "u") return !1;
115
- const r = navigator.userAgentData, s = (r == null ? void 0 : r.platform) ?? navigator.platform ?? "";
116
- return /mac/i.test(s);
117
+ const r = navigator.userAgentData, t = (r == null ? void 0 : r.platform) ?? navigator.platform ?? "";
118
+ return /mac/i.test(t);
117
119
  }
118
- const he = A(
120
+ const Se = H(
119
121
  [
120
122
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
121
123
  "ds:rounded-[var(--radius-md)]",
@@ -155,7 +157,7 @@ const he = A(
155
157
  density: "default"
156
158
  }
157
159
  }
158
- ), fe = A(
160
+ ), we = H(
159
161
  ["ds:inline-flex ds:flex-col", "ds:w-full"].join(" "),
160
162
  {
161
163
  variants: {
@@ -174,7 +176,7 @@ const he = A(
174
176
  density: "default"
175
177
  }
176
178
  }
177
- ), Z = A(
179
+ ), ie = H(
178
180
  [
179
181
  "ds:hidden ds:md:inline-flex ds:items-center ds:gap-[calc(var(--spacing-xs)/2)]",
180
182
  "ds:ms-auto",
@@ -188,7 +190,7 @@ const he = A(
188
190
  "ds:text-[length:var(--font-size-xs)] ds:text-[color:var(--foreground)]",
189
191
  "ds:font-[family-name:var(--font-mono)]"
190
192
  ].join(" ")
191
- ), me = A(
193
+ ), Ne = H(
192
194
  [
193
195
  "ds:z-[var(--z-dropdown)]",
194
196
  "ds:rounded-[var(--radius-md)]",
@@ -203,97 +205,97 @@ const he = A(
203
205
  "ds:motion-reduce:animate-none"
204
206
  ].join(" ")
205
207
  );
206
- function Ke(r, s) {
207
- const o = G(r.trim());
208
- return o === "" ? s : s.map((i) => ({
209
- ...i,
210
- items: i.items.filter(
211
- (m) => G(m.label).includes(o)
208
+ function Oe(r, t) {
209
+ const i = re(r.trim());
210
+ return i === "" ? t : t.map((d) => ({
211
+ ...d,
212
+ items: d.items.filter(
213
+ (m) => re(m.label).includes(i)
212
214
  )
213
- })).filter((i) => i.items.length > 0);
215
+ })).filter((d) => d.items.length > 0);
214
216
  }
215
- const ve = oe(
216
- (r, s) => {
217
+ const Re = he(
218
+ (r, t) => {
217
219
  const {
218
- mode: o = "launcher",
219
- size: i = "md",
220
+ mode: i = "launcher",
221
+ size: d = "md",
220
222
  density: m = "default",
221
- topLevel: l = !1,
222
- placeholder: a,
223
- shortcutHint: y = !0,
224
- className: b,
225
- onOpenCommandPalette: n,
226
- id: u,
227
- onApplySavedSearch: p,
228
- value: R,
229
- defaultValue: N,
230
- onQueryChange: d,
223
+ topLevel: u = !1,
224
+ placeholder: n,
225
+ shortcutHint: b = !0,
226
+ className: x,
227
+ onOpenCommandPalette: o,
228
+ id: p,
229
+ onApplySavedSearch: f,
230
+ value: a,
231
+ defaultValue: C,
232
+ onQueryChange: v,
231
233
  results: c,
232
- onSelect: v,
233
- debounceMs: x,
234
- ...C
235
- } = r, { t: h } = J("ui"), [H, M] = Q(!1);
236
- U(() => {
237
- M(pe());
234
+ onSelect: g,
235
+ debounceMs: k,
236
+ ...I
237
+ } = r, { t: y } = ae("ui"), [j, D] = A(!1);
238
+ te(() => {
239
+ D(ke());
238
240
  }, []);
239
- const I = H ? "⌘K" : "Ctrl+K", S = "Meta+K Control+K", k = l ? { role: "search" } : { role: void 0 };
240
- if (o === "launcher") {
241
- const z = a ?? h("search.placeholder", "Search…");
242
- return /* @__PURE__ */ t(
243
- ge,
241
+ const M = j ? "⌘K" : "Ctrl+K", S = "Meta+K Control+K", w = u ? { role: "search" } : { role: void 0 };
242
+ if (i === "launcher") {
243
+ const q = n ?? y("search.placeholder", "Search…");
244
+ return /* @__PURE__ */ s(
245
+ Ce,
244
246
  {
245
- forwardedRef: s,
246
- id: u,
247
- landmarkProps: k,
248
- className: b,
249
- onOpenCommandPalette: n,
250
- onApplySavedSearch: p,
251
- resolvedPlaceholder: z,
252
- openLabel: h("search.open", "Open search"),
247
+ forwardedRef: t,
248
+ id: p,
249
+ landmarkProps: w,
250
+ className: x,
251
+ onOpenCommandPalette: o,
252
+ onApplySavedSearch: f,
253
+ resolvedPlaceholder: q,
254
+ openLabel: y("search.open", "Open search"),
253
255
  ariaKeyshortcuts: S,
254
- launcherClass: he({ size: i, density: m }),
255
- shortcutHint: y,
256
- shortcutLabel: I,
257
- rest: C
256
+ launcherClass: Se({ size: d, density: m }),
257
+ shortcutHint: b,
258
+ shortcutLabel: M,
259
+ rest: I
258
260
  }
259
261
  );
260
262
  }
261
- return /* @__PURE__ */ t(
262
- ye,
263
+ return /* @__PURE__ */ s(
264
+ ze,
263
265
  {
264
- forwardedRef: s,
265
- size: i,
266
+ forwardedRef: t,
267
+ size: d,
266
268
  density: m,
267
- landmarkProps: k,
268
- placeholder: a,
269
- shortcutHint: y,
270
- shortcutLabel: I,
269
+ landmarkProps: w,
270
+ placeholder: n,
271
+ shortcutHint: b,
272
+ shortcutLabel: M,
271
273
  ariaKeyshortcuts: S,
272
- className: b,
273
- id: u,
274
- onApplySavedSearch: p,
274
+ className: x,
275
+ id: p,
276
+ onApplySavedSearch: f,
275
277
  ...r
276
278
  }
277
279
  );
278
280
  }
279
281
  );
280
- ve.displayName = "SearchBar";
281
- function ge(r) {
282
+ Re.displayName = "SearchBar";
283
+ function Ce(r) {
282
284
  const {
283
- forwardedRef: s,
284
- id: o,
285
- landmarkProps: i,
285
+ forwardedRef: t,
286
+ id: i,
287
+ landmarkProps: d,
286
288
  className: m,
287
- onOpenCommandPalette: l,
288
- onApplySavedSearch: a,
289
- resolvedPlaceholder: y,
290
- openLabel: b,
291
- ariaKeyshortcuts: n,
292
- launcherClass: u,
293
- shortcutHint: p,
294
- shortcutLabel: R,
295
- rest: N
296
- } = r, d = B(null), c = B(null), v = $(
289
+ onOpenCommandPalette: u,
290
+ onApplySavedSearch: n,
291
+ resolvedPlaceholder: b,
292
+ openLabel: x,
293
+ ariaKeyshortcuts: o,
294
+ launcherClass: p,
295
+ shortcutHint: f,
296
+ shortcutLabel: a,
297
+ rest: C
298
+ } = r, v = R(null), c = R(null), g = W(
297
299
  () => ({
298
300
  getQuery: () => "",
299
301
  // Launcher mode is stateless \u2014 it delegates to CommandPalette.
@@ -301,240 +303,277 @@ function ge(r) {
301
303
  },
302
304
  clear: () => {
303
305
  },
304
- submit: () => l == null ? void 0 : l(),
306
+ submit: () => u == null ? void 0 : u(),
305
307
  focus: () => {
306
- var x;
307
- return (x = d.current) == null ? void 0 : x.focus();
308
+ var k;
309
+ return (k = v.current) == null ? void 0 : k.focus();
308
310
  },
309
- applySavedSearch: (x) => a == null ? void 0 : a(x)
311
+ applySavedSearch: (k) => n == null ? void 0 : n(k)
310
312
  }),
311
- [l, a]
313
+ [u, n]
312
314
  );
313
- return W(
314
- s,
315
+ return se(
316
+ t,
315
317
  () => c.current,
316
318
  []
317
- ), X(Y, v, o), /* @__PURE__ */ t(
319
+ ), ne(oe, g, i), /* @__PURE__ */ s(
318
320
  "div",
319
321
  {
320
322
  ref: c,
321
- ...i,
323
+ ...d,
322
324
  "data-component": "search-bar",
323
- "data-component-id": o,
324
- id: o,
325
+ "data-component-id": i,
326
+ id: i,
325
327
  className: m,
326
- children: /* @__PURE__ */ D(
328
+ children: /* @__PURE__ */ _(
327
329
  "button",
328
330
  {
329
- ref: d,
331
+ ref: v,
330
332
  type: "button",
331
- onClick: l,
333
+ onClick: u,
332
334
  "aria-haspopup": "dialog",
333
- "aria-label": b,
334
- "aria-keyshortcuts": n,
335
- className: u,
336
- ...N,
335
+ "aria-label": x,
336
+ "aria-keyshortcuts": o,
337
+ className: p,
338
+ ...C,
337
339
  children: [
338
- /* @__PURE__ */ t(
339
- le,
340
+ /* @__PURE__ */ s(
341
+ be,
340
342
  {
341
343
  "aria-hidden": !0,
342
344
  className: "ds:size-4 ds:shrink-0",
343
345
  focusable: "false"
344
346
  }
345
347
  ),
346
- /* @__PURE__ */ t("span", { "aria-hidden": "true", className: "ds:truncate ds:text-start", children: y }),
347
- p ? /* @__PURE__ */ t("kbd", { className: Z(), children: R }) : null
348
+ /* @__PURE__ */ s("span", { "aria-hidden": "true", className: "ds:truncate ds:text-start", children: b }),
349
+ f ? /* @__PURE__ */ s("kbd", { className: ie(), children: a }) : null
348
350
  ]
349
351
  }
350
352
  )
351
353
  }
352
354
  );
353
355
  }
354
- function ye(r) {
356
+ const Ie = 100;
357
+ function ze(r) {
355
358
  const {
356
- forwardedRef: s,
357
- size: o,
358
- density: i,
359
+ forwardedRef: t,
360
+ size: i,
361
+ density: d,
359
362
  landmarkProps: m,
360
- placeholder: l,
361
- shortcutHint: a,
362
- shortcutLabel: y,
363
- ariaKeyshortcuts: b,
364
- className: n,
365
- id: u,
366
- onApplySavedSearch: p,
367
- value: R,
368
- defaultValue: N,
369
- onQueryChange: d,
363
+ placeholder: u,
364
+ shortcutHint: n,
365
+ shortcutLabel: b,
366
+ ariaKeyshortcuts: x,
367
+ className: o,
368
+ id: p,
369
+ onApplySavedSearch: f,
370
+ value: a,
371
+ defaultValue: C,
372
+ onQueryChange: v,
370
373
  results: c,
371
- onSelect: v,
372
- debounceMs: x = 150
373
- } = r, { t: C } = J("ui"), h = R !== void 0, [H, M] = Q(N ?? ""), I = h ? R ?? "" : H, [S, k] = Q(!1), [w, z] = Q(0), L = B(null), P = ie(), O = ue((e) => {
374
- d == null || d(e);
375
- }, x), V = B(!1), j = K((e) => {
376
- const g = L.current;
377
- if (!(!g || typeof g.setQuery != "function")) {
378
- V.current = !0;
374
+ onSelect: g,
375
+ debounceMs: k = 150
376
+ } = r, { t: I } = ae("ui"), y = a !== void 0, [j, D] = A(
377
+ a ?? C ?? ""
378
+ ), M = j, [S, w] = A(!1), [N, q] = A(0), O = R(null), E = me(), L = ye(), z = R([]), J = R(y);
379
+ J.current = y;
380
+ const T = B(
381
+ (e) => {
382
+ J.current && (z.current = [
383
+ ...z.current.slice(1 - Ie),
384
+ e
385
+ ]), v == null || v(e);
386
+ },
387
+ [v]
388
+ ), P = xe(T, k), $ = R(!1), K = B((e) => {
389
+ const l = O.current;
390
+ if (!(!l || typeof l.setQuery != "function")) {
391
+ $.current = !0;
379
392
  try {
380
- g.setQuery(e);
393
+ l.setQuery(e);
381
394
  } finally {
382
- V.current = !1;
395
+ $.current = !1;
383
396
  }
384
397
  }
385
- }, []), f = $(() => c ? c.flatMap((e) => e.items) : [], [c]);
386
- U(() => {
387
- w > f.length - 1 && z(0);
388
- }, [f.length, w]);
389
- const ee = K(
398
+ }, []);
399
+ ee(() => {
400
+ y && a !== "" && K(a);
401
+ }, []);
402
+ const X = R(a), G = R(!1);
403
+ ee(() => {
404
+ const e = a !== X.current;
405
+ X.current = a;
406
+ const l = G.current;
407
+ if (G.current = !1, a === void 0) {
408
+ z.current = [];
409
+ return;
410
+ }
411
+ if (e) {
412
+ const Z = z.current.indexOf(a);
413
+ if (Z >= 0 && (z.current = z.current.slice(Z + 1), !l))
414
+ return;
415
+ }
416
+ a === j || !e && !l || (z.current = [], P.cancel(), D(a), K(a));
417
+ });
418
+ const h = W(() => c ? c.flatMap((e) => e.items) : [], [c]);
419
+ te(() => {
420
+ N > h.length - 1 && q(0);
421
+ }, [h.length, N]);
422
+ const de = B(
390
423
  (e) => {
391
- V.current || (h || M(e), O(e), k(e.trim().length > 0));
424
+ $.current || (D(e), P(e), w(e.trim().length > 0));
392
425
  },
393
- [O, h]
394
- ), q = K(
426
+ [P]
427
+ ), Q = B(
395
428
  (e) => {
396
- v == null || v(e), k(!1), h || (M(""), j(""));
429
+ P.flush(), G.current = y, g == null || g(e), w(!1), y || (D(""), K("")), L == null || L();
397
430
  },
398
- [v, h, j]
399
- ), re = K(
431
+ [
432
+ P,
433
+ g,
434
+ y,
435
+ K,
436
+ L
437
+ ]
438
+ ), ce = B(
400
439
  (e) => {
401
440
  if (!(e.nativeEvent.isComposing || e.keyCode === 229)) {
402
- if (!S && e.key === "ArrowDown" && f.length > 0) {
403
- e.preventDefault(), k(!0);
441
+ if (!S && e.key === "ArrowDown" && h.length > 0) {
442
+ e.preventDefault(), w(!0);
404
443
  return;
405
444
  }
406
445
  if (S)
407
446
  if (e.key === "ArrowDown")
408
- e.preventDefault(), z((g) => (g + 1) % Math.max(f.length, 1));
447
+ e.preventDefault(), q((l) => (l + 1) % Math.max(h.length, 1));
409
448
  else if (e.key === "ArrowUp")
410
- e.preventDefault(), z(
411
- (g) => (g - 1 + Math.max(f.length, 1)) % Math.max(f.length, 1)
449
+ e.preventDefault(), q(
450
+ (l) => (l - 1 + Math.max(h.length, 1)) % Math.max(h.length, 1)
412
451
  );
413
452
  else if (e.key === "Enter") {
414
- const g = f[w];
415
- g && (e.preventDefault(), q(g));
416
- } else e.key === "Escape" && (e.preventDefault(), k(!1));
453
+ const l = h[N];
454
+ l && (e.preventDefault(), Q(l));
455
+ } else e.key === "Escape" && (e.preventDefault(), w(!1));
417
456
  }
418
457
  },
419
- [S, f, w, q]
420
- ), se = l ?? C("search.placeholder", "Search…"), E = f.length > 0, te = S && E ? `${P}-option-${w}` : void 0, T = K(
458
+ [S, h, N, Q]
459
+ ), le = u ?? I("search.placeholder", "Search…"), F = h.length > 0, ue = S && F ? `${E}-option-${N}` : void 0, U = B(
421
460
  (e) => {
422
- h || (M(e), j(e)), d == null || d(e), k(e.trim().length > 0);
461
+ D(e), K(e), P.cancel(), T(e), w(e.trim().length > 0);
423
462
  },
424
- [h, d, j]
425
- ), F = B(null);
426
- W(
427
- s,
428
- () => F.current,
463
+ [P, T, K]
464
+ ), Y = R(null);
465
+ se(
466
+ t,
467
+ () => Y.current,
429
468
  []
430
469
  );
431
- const ae = $(
470
+ const pe = W(
432
471
  () => ({
433
- getQuery: () => I,
434
- setQuery: T,
472
+ getQuery: () => M,
473
+ setQuery: U,
435
474
  clear: () => {
436
- T("");
475
+ U("");
437
476
  },
438
477
  submit: () => {
439
- const e = f[w];
440
- e && q(e);
478
+ const e = h[N];
479
+ e && Q(e);
441
480
  },
442
481
  focus: () => {
443
482
  var e;
444
- return (e = L.current) == null ? void 0 : e.focus();
483
+ return (e = O.current) == null ? void 0 : e.focus();
445
484
  },
446
- applySavedSearch: (e) => p == null ? void 0 : p(e)
485
+ applySavedSearch: (e) => f == null ? void 0 : f(e)
447
486
  }),
448
487
  [
449
- I,
450
- T,
451
- f,
452
- w,
453
- q,
454
- p
488
+ M,
489
+ U,
490
+ h,
491
+ N,
492
+ Q,
493
+ f
455
494
  ]
456
495
  );
457
- return X(Y, ae, u), /* @__PURE__ */ t(_.Root, { open: S && E, onOpenChange: k, children: /* @__PURE__ */ D(
496
+ return ne(oe, pe, p), /* @__PURE__ */ s(V.Root, { open: S && F, onOpenChange: w, children: /* @__PURE__ */ _(
458
497
  "div",
459
498
  {
460
- ref: F,
499
+ ref: Y,
461
500
  ...m,
462
- id: u,
501
+ id: p,
463
502
  "data-component": "search-bar",
464
- "data-component-id": u,
465
- className: [fe({ size: o, density: i }), n].filter(Boolean).join(" "),
503
+ "data-component-id": p,
504
+ className: [we({ size: i, density: d }), o].filter(Boolean).join(" "),
466
505
  children: [
467
- /* @__PURE__ */ t(_.Anchor, { asChild: !0, children: /* @__PURE__ */ D(
506
+ /* @__PURE__ */ s(V.Anchor, { asChild: !0, children: /* @__PURE__ */ _(
468
507
  "div",
469
508
  {
470
509
  className: "ds:relative ds:flex ds:items-center",
471
- onKeyDown: re,
510
+ onKeyDown: ce,
472
511
  children: [
473
- /* @__PURE__ */ t(
474
- de,
512
+ /* @__PURE__ */ s(
513
+ ve,
475
514
  {
476
- ref: L,
477
- size: o,
478
- ...h ? { value: I } : { defaultValue: N },
479
- onInput: ee,
480
- placeholder: se,
481
- "aria-label": C("search.label", "Search"),
482
- "aria-keyshortcuts": b,
515
+ ref: O,
516
+ size: i,
517
+ ...y ? {} : { defaultValue: C },
518
+ onInput: de,
519
+ placeholder: le,
520
+ "aria-label": I("search.label", "Search"),
521
+ "aria-keyshortcuts": x,
483
522
  role: "combobox",
484
- "aria-expanded": S && E,
485
- "aria-controls": P,
486
- "aria-activedescendant": te
523
+ "aria-expanded": S && F,
524
+ "aria-controls": E,
525
+ "aria-activedescendant": ue
487
526
  }
488
527
  ),
489
- a ? /* @__PURE__ */ t(
528
+ n ? /* @__PURE__ */ s(
490
529
  "kbd",
491
530
  {
492
531
  className: [
493
- Z(),
532
+ ie(),
494
533
  "ds:absolute ds:end-[var(--spacing-sm)] ds:top-1/2 ds:-translate-y-1/2",
495
534
  "ds:pointer-events-none"
496
535
  ].join(" "),
497
- children: y
536
+ children: b
498
537
  }
499
538
  ) : null
500
539
  ]
501
540
  }
502
541
  ) }),
503
- /* @__PURE__ */ t(_.Portal, { children: /* @__PURE__ */ t(
504
- _.Content,
542
+ /* @__PURE__ */ s(V.Portal, { children: /* @__PURE__ */ s(
543
+ V.Content,
505
544
  {
506
545
  side: "bottom",
507
546
  align: "start",
508
547
  sideOffset: 4,
509
- "aria-label": C("search.resultsLabel", "Search results"),
548
+ "aria-label": I("search.resultsLabel", "Search results"),
510
549
  onOpenAutoFocus: (e) => e.preventDefault(),
511
550
  className: [
512
- me(),
551
+ Ne(),
513
552
  "ds:w-[var(--radix-popover-trigger-width)]"
514
553
  ].join(" "),
515
- children: /* @__PURE__ */ t(
554
+ children: /* @__PURE__ */ s(
516
555
  "div",
517
556
  {
518
- id: P,
557
+ id: E,
519
558
  role: "listbox",
520
- "aria-label": C("search.resultsLabel", "Search results"),
559
+ "aria-label": I("search.resultsLabel", "Search results"),
521
560
  className: "ds:flex ds:flex-col ds:gap-[calc(var(--spacing-xs)/2)]",
522
- children: c && c.length > 0 ? be(
561
+ children: c && c.length > 0 ? Pe(
523
562
  c,
524
- w,
525
- P,
526
- q,
527
- z
528
- ) : /* @__PURE__ */ t(
563
+ N,
564
+ E,
565
+ Q,
566
+ q
567
+ ) : /* @__PURE__ */ s(
529
568
  "div",
530
569
  {
531
570
  role: "presentation",
532
571
  className: "ds:p-[var(--spacing-sm)] type-body-sm ds:text-[color:var(--foreground)]",
533
- children: C(
572
+ children: I(
534
573
  "search.noResults",
535
574
  "No results for “{{query}}”",
536
575
  {
537
- query: I
576
+ query: M
538
577
  }
539
578
  )
540
579
  }
@@ -547,29 +586,29 @@ function ye(r) {
547
586
  }
548
587
  ) });
549
588
  }
550
- function be(r, s, o, i, m) {
551
- let l = 0;
552
- return r.map((a, y) => {
553
- const b = a.heading ? `${o}-group-${y}-heading` : void 0;
554
- return /* @__PURE__ */ D(
589
+ function Pe(r, t, i, d, m) {
590
+ let u = 0;
591
+ return r.map((n, b) => {
592
+ const x = n.heading ? `${i}-group-${b}-heading` : void 0;
593
+ return /* @__PURE__ */ _(
555
594
  "div",
556
595
  {
557
- role: a.heading ? "group" : "presentation",
558
- "aria-labelledby": b,
596
+ role: n.heading ? "group" : "presentation",
597
+ "aria-labelledby": x,
559
598
  children: [
560
- a.heading ? /* @__PURE__ */ t(
599
+ n.heading ? /* @__PURE__ */ s(
561
600
  "div",
562
601
  {
563
- id: b,
602
+ id: x,
564
603
  "aria-hidden": "true",
565
604
  className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)] type-eyebrow ds:text-[color:var(--foreground)]",
566
- children: a.heading
605
+ children: n.heading
567
606
  }
568
607
  ) : null,
569
- a.items.map((n) => {
570
- const u = l;
571
- l += 1;
572
- const p = u === s, R = `${o}-option-${u}`, N = xe(n.href), d = [
608
+ n.items.map((o) => {
609
+ const p = u;
610
+ u += 1;
611
+ const f = p === t, a = `${i}-option-${p}`, C = De(o.href), v = [
573
612
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
574
613
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
575
614
  "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
@@ -577,48 +616,48 @@ function be(r, s, o, i, m) {
577
616
  "ds:cursor-pointer",
578
617
  "ds:no-underline ds:text-[color:var(--foreground)]",
579
618
  "ds:min-h-[var(--min-target-size)]",
580
- ce.active
581
- ].join(" "), c = /* @__PURE__ */ D(ne, { children: [
582
- n.icon ? /* @__PURE__ */ t(
619
+ ge.active
620
+ ].join(" "), c = /* @__PURE__ */ _(fe, { children: [
621
+ o.icon ? /* @__PURE__ */ s(
583
622
  "span",
584
623
  {
585
624
  "aria-hidden": "true",
586
625
  className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
587
- children: n.icon
626
+ children: o.icon
588
627
  }
589
628
  ) : null,
590
- /* @__PURE__ */ t("span", { className: "ds:flex-1 ds:text-[length:var(--font-size-sm)]", children: n.label }),
591
- n.meta ? /* @__PURE__ */ t("span", { className: "ds:ms-auto type-meta ds:text-[color:var(--foreground)]", children: n.meta }) : null
592
- ] }), v = {
593
- id: R,
629
+ /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-[length:var(--font-size-sm)]", children: o.label }),
630
+ o.meta ? /* @__PURE__ */ s("span", { className: "ds:ms-auto type-meta ds:text-[color:var(--foreground)]", children: o.meta }) : null
631
+ ] }), g = {
632
+ id: a,
594
633
  role: "option",
595
- "aria-selected": p,
596
- "data-active": p || void 0,
634
+ "aria-selected": f,
635
+ "data-active": f || void 0,
597
636
  // onMouseDown rather than onClick so we trigger before the
598
637
  // input loses focus to the pointer-down on the popover.
599
- onMouseDown: (x) => {
600
- x.preventDefault(), i(n);
638
+ onMouseDown: (k) => {
639
+ k.preventDefault(), d(o);
601
640
  },
602
- onMouseEnter: () => m(u),
603
- className: d
641
+ onMouseEnter: () => m(p),
642
+ className: v
604
643
  };
605
- return N ? /* @__PURE__ */ t("a", { href: N, ...v, children: c }, n.id) : /* @__PURE__ */ t("div", { ...v, children: c }, n.id);
644
+ return C ? /* @__PURE__ */ s("a", { href: C, ...g, children: c }, o.id) : /* @__PURE__ */ s("div", { ...g, children: c }, o.id);
606
645
  })
607
646
  ]
608
647
  },
609
- `g-${y}`
648
+ `g-${b}`
610
649
  );
611
650
  });
612
651
  }
613
- function xe(r) {
652
+ function De(r) {
614
653
  if (!r) return;
615
- const s = r.trim();
616
- if (s !== "" && (/^(https?:|mailto:|tel:)/i.test(s) || /^(\/|\.\/|\.\.\/)/.test(s)))
617
- return s;
654
+ const t = r.trim();
655
+ if (t !== "" && (/^(https?:|mailto:|tel:)/i.test(t) || /^(\/|\.\/|\.\.\/)/.test(t)))
656
+ return t;
618
657
  }
619
658
  export {
620
- ve as S,
621
- Ke as f,
622
- Y as s
659
+ Re as S,
660
+ Oe as f,
661
+ oe as s
623
662
  };
624
- //# sourceMappingURL=search-bar-DQJS0wJN.js.map
663
+ //# sourceMappingURL=search-bar-mA4bPe3t.js.map