@alfadocs/ui-kit-debug 1.90.2 → 1.91.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 (272) hide show
  1. package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
  2. package/dist/_chunks/{agenda-card-BDuvreCe.js.map → agenda-card-BhY342MA.js.map} +1 -1
  3. package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
  4. package/dist/_chunks/{agenda-tray-D-jvptdo.js.map → agenda-tray-BmxBGEci.js.map} +1 -1
  5. package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
  6. package/dist/_chunks/{alia-sidebar-CsTRAxC8.js.map → alia-sidebar-ovRX_oti.js.map} +1 -1
  7. package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
  8. package/dist/_chunks/{appointment-card-5JMWi9_f.js.map → appointment-card-Bstc1p7a.js.map} +1 -1
  9. package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
  10. package/dist/_chunks/{appointment-peek-39BwVMUf.js.map → appointment-peek-C0kKqnFk.js.map} +1 -1
  11. package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
  12. package/dist/_chunks/{appointment-timeline-1-Za2miy.js.map → appointment-timeline-rbt9AwHO.js.map} +1 -1
  13. package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
  14. package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js.map → appointment-tray-6zd8RLIL.js.map} +1 -1
  15. package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
  16. package/dist/_chunks/avatar-a6042Ox2.js.map +1 -0
  17. package/dist/_chunks/{balance-badge-cell-D9VhFp0L.js → balance-badge-cell-BtJvre1-.js} +2 -2
  18. package/dist/_chunks/{balance-badge-cell-D9VhFp0L.js.map → balance-badge-cell-BtJvre1-.js.map} +1 -1
  19. package/dist/_chunks/booking-opt_h7Uc.js +4590 -0
  20. package/dist/_chunks/booking-opt_h7Uc.js.map +1 -0
  21. package/dist/_chunks/{calendar-ClB-jWH1.js → calendar-CmiMS4FJ.js} +2 -2
  22. package/dist/_chunks/{calendar-ClB-jWH1.js.map → calendar-CmiMS4FJ.js.map} +1 -1
  23. package/dist/_chunks/{calendar-appointment-editor-dialog-CiAGAX2t.js → calendar-appointment-editor-dialog-sJKLoVJ2.js} +7 -7
  24. package/dist/_chunks/{calendar-appointment-editor-dialog-CiAGAX2t.js.map → calendar-appointment-editor-dialog-sJKLoVJ2.js.map} +1 -1
  25. package/dist/_chunks/{care-plan-card-BYCPNDvA.js → care-plan-card-DD9rEWYN.js} +2 -2
  26. package/dist/_chunks/{care-plan-card-BYCPNDvA.js.map → care-plan-card-DD9rEWYN.js.map} +1 -1
  27. package/dist/_chunks/{care-plan-header-BzsAg6oY.js → care-plan-header-CXUJQt8Q.js} +2 -2
  28. package/dist/_chunks/{care-plan-header-BzsAg6oY.js.map → care-plan-header-CXUJQt8Q.js.map} +1 -1
  29. package/dist/_chunks/{chat-message-CmFJdEre.js → chat-message-LRO_6Ee3.js} +2 -2
  30. package/dist/_chunks/{chat-message-CmFJdEre.js.map → chat-message-LRO_6Ee3.js.map} +1 -1
  31. package/dist/_chunks/{clinical-note-card-Caidqcwa.js → clinical-note-card-Cut2lNmu.js} +3 -3
  32. package/dist/_chunks/{clinical-note-card-Caidqcwa.js.map → clinical-note-card-Cut2lNmu.js.map} +1 -1
  33. package/dist/_chunks/{contact-card-Czu60UvU.js → contact-card-ClvEDM9e.js} +2 -2
  34. package/dist/_chunks/{contact-card-Czu60UvU.js.map → contact-card-ClvEDM9e.js.map} +1 -1
  35. package/dist/_chunks/{contact-profile-card-Da1vmJQI.js → contact-profile-card-CX45mZA3.js} +106 -95
  36. package/dist/_chunks/contact-profile-card-CX45mZA3.js.map +1 -0
  37. package/dist/_chunks/{dependent-selector-C4kOgO8b.js → dependent-selector-CyNi7M_f.js} +2 -2
  38. package/dist/_chunks/{dependent-selector-C4kOgO8b.js.map → dependent-selector-CyNi7M_f.js.map} +1 -1
  39. package/dist/_chunks/{entity-summary-BLxzSSXK.js → entity-summary-B_bOloqP.js} +3 -3
  40. package/dist/_chunks/{entity-summary-BLxzSSXK.js.map → entity-summary-B_bOloqP.js.map} +1 -1
  41. package/dist/_chunks/error-page-B0fGNTRB.js +419 -0
  42. package/dist/_chunks/error-page-B0fGNTRB.js.map +1 -0
  43. package/dist/_chunks/{languages-CZqBaPwI.js → languages-CGLX6Qpe.js} +3 -15
  44. package/dist/_chunks/languages-CGLX6Qpe.js.map +1 -0
  45. package/dist/_chunks/link-DtCfnLnF.js +332 -0
  46. package/dist/_chunks/link-DtCfnLnF.js.map +1 -0
  47. package/dist/_chunks/{link-cell-renderer-CnCgudvq.js → link-cell-renderer-BS3V4LA6.js} +2 -2
  48. package/dist/_chunks/{link-cell-renderer-CnCgudvq.js.map → link-cell-renderer-BS3V4LA6.js.map} +1 -1
  49. package/dist/_chunks/{marketplace-app-shell-CmZx0Oam.js → marketplace-app-shell-CJQtx3sv.js} +2 -2
  50. package/dist/_chunks/{marketplace-app-shell-CmZx0Oam.js.map → marketplace-app-shell-CJQtx3sv.js.map} +1 -1
  51. package/dist/_chunks/{message-card-CvCnCssc.js → message-card-B6SduXJv.js} +2 -2
  52. package/dist/_chunks/{message-card-CvCnCssc.js.map → message-card-B6SduXJv.js.map} +1 -1
  53. package/dist/_chunks/{message-tray-IJYvy6Cf.js → message-tray-Cllf-v0G.js} +2 -2
  54. package/dist/_chunks/{message-tray-IJYvy6Cf.js.map → message-tray-Cllf-v0G.js.map} +1 -1
  55. package/dist/_chunks/{nav-grid-Oc4aCPrg.js → nav-grid-D2xVcHTO.js} +2 -2
  56. package/dist/_chunks/{nav-grid-Oc4aCPrg.js.map → nav-grid-D2xVcHTO.js.map} +1 -1
  57. package/dist/_chunks/{note-attachment-DIlIQ7JF.js → note-attachment-cnj2JRrg.js} +2 -2
  58. package/dist/_chunks/{note-attachment-DIlIQ7JF.js.map → note-attachment-cnj2JRrg.js.map} +1 -1
  59. package/dist/_chunks/{note-timeline-KzL52MmB.js → note-timeline-BrjHBQfx.js} +2 -2
  60. package/dist/_chunks/{note-timeline-KzL52MmB.js.map → note-timeline-BrjHBQfx.js.map} +1 -1
  61. package/dist/_chunks/{notes-panel-Dywo6R55.js → notes-panel-ib7I3aNf.js} +2 -2
  62. package/dist/_chunks/{notes-panel-Dywo6R55.js.map → notes-panel-ib7I3aNf.js.map} +1 -1
  63. package/dist/_chunks/{operator-hero-6aAIQaFZ.js → operator-hero-C_5B-8Qp.js} +43 -41
  64. package/dist/_chunks/operator-hero-C_5B-8Qp.js.map +1 -0
  65. package/dist/_chunks/{patient-details-BUr7Oemx.js → patient-details-BjcUpD9S.js} +3 -3
  66. package/dist/_chunks/{patient-details-BUr7Oemx.js.map → patient-details-BjcUpD9S.js.map} +1 -1
  67. package/dist/_chunks/{patient-field-row-bJk8Q_qr.js → patient-field-row-B0tdiaWi.js} +2 -2
  68. package/dist/_chunks/{patient-field-row-bJk8Q_qr.js.map → patient-field-row-B0tdiaWi.js.map} +1 -1
  69. package/dist/_chunks/{patient-summary-card-CCQZ8X37.js → patient-summary-card-Cvv6_Ugk.js} +4 -4
  70. package/dist/_chunks/{patient-summary-card-CCQZ8X37.js.map → patient-summary-card-Cvv6_Ugk.js.map} +1 -1
  71. package/dist/_chunks/{payment-request-card-MndSlVoK.js → payment-request-card-BfGauFY0.js} +2 -2
  72. package/dist/_chunks/{payment-request-card-MndSlVoK.js.map → payment-request-card-BfGauFY0.js.map} +1 -1
  73. package/dist/_chunks/{practice-profile-hero-qfrsFQI_.js → practice-profile-hero-ClzE-4CB.js} +76 -73
  74. package/dist/_chunks/practice-profile-hero-ClzE-4CB.js.map +1 -0
  75. package/dist/_chunks/{practice-results-DQuOfqej.js → practice-results-CQ_KvEXK.js} +517 -514
  76. package/dist/_chunks/practice-results-CQ_KvEXK.js.map +1 -0
  77. package/dist/_chunks/{product-hub-panel-Blag8t8f.js → product-hub-panel-bHi7lkVD.js} +2 -2
  78. package/dist/_chunks/{product-hub-panel-Blag8t8f.js.map → product-hub-panel-bHi7lkVD.js.map} +1 -1
  79. package/dist/_chunks/public-footer-IoRWoAMz.js +596 -0
  80. package/dist/_chunks/public-footer-IoRWoAMz.js.map +1 -0
  81. package/dist/_chunks/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
  82. package/dist/_chunks/{signature-request-DjY-X62H.js.map → signature-request-DvhyrRpn.js.map} +1 -1
  83. package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
  84. package/dist/_chunks/{signed-out-frame-G-3ATOdu.js.map → signed-out-frame-CgRXOUzi.js.map} +1 -1
  85. package/dist/_chunks/{slot-grid-DrwynKeN.js → slot-grid-B-IAFX3C.js} +180 -169
  86. package/dist/_chunks/slot-grid-B-IAFX3C.js.map +1 -0
  87. package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
  88. package/dist/_chunks/{timeline-wUuTDFY_.js.map → timeline-BcYHdP56.js.map} +1 -1
  89. package/dist/_chunks/{use-appointment-details-read-BytPq3Ux.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
  90. package/dist/_chunks/{use-appointment-details-read-BytPq3Ux.js.map → use-appointment-details-read-D8vDg0sg.js.map} +1 -1
  91. package/dist/agent-catalog.json +2 -2
  92. package/dist/components/_shared/social-brand-icons.d.ts +29 -0
  93. package/dist/components/_shared/social-brand-icons.d.ts.map +1 -0
  94. package/dist/components/agenda-card/index.js +1 -1
  95. package/dist/components/agenda-tray/index.js +1 -1
  96. package/dist/components/appointment-card/index.js +2 -2
  97. package/dist/components/appointment-details-panel/index.js +1 -1
  98. package/dist/components/appointment-peek/index.js +1 -1
  99. package/dist/components/appointment-timeline/index.js +1 -1
  100. package/dist/components/avatar/avatar.d.ts +14 -0
  101. package/dist/components/avatar/avatar.d.ts.map +1 -1
  102. package/dist/components/avatar/index.js +1 -1
  103. package/dist/components/booking/booking-types.d.ts +26 -0
  104. package/dist/components/booking/booking-types.d.ts.map +1 -1
  105. package/dist/components/booking/booking.d.ts.map +1 -1
  106. package/dist/components/booking/details-form.d.ts.map +1 -1
  107. package/dist/components/booking/index.js +1 -1
  108. package/dist/components/booking/slot-load-state.d.ts +11 -0
  109. package/dist/components/booking/slot-load-state.d.ts.map +1 -0
  110. package/dist/components/calendar/index.js +1 -1
  111. package/dist/components/care-plan-card/index.js +1 -1
  112. package/dist/components/care-plan-header/index.js +1 -1
  113. package/dist/components/chat-message/index.js +1 -1
  114. package/dist/components/clinical-note-card/index.js +1 -1
  115. package/dist/components/contact-card/index.js +1 -1
  116. package/dist/components/contact-profile-card/index.js +1 -1
  117. package/dist/components/data-table/index.js +1 -1
  118. package/dist/components/dependent-selector/index.js +1 -1
  119. package/dist/components/entity-summary/index.js +1 -1
  120. package/dist/components/link/index.js +1 -1
  121. package/dist/components/link/link.d.ts +10 -1
  122. package/dist/components/link/link.d.ts.map +1 -1
  123. package/dist/components/link/social-url.d.ts +71 -0
  124. package/dist/components/link/social-url.d.ts.map +1 -0
  125. package/dist/components/message-card/index.js +1 -1
  126. package/dist/components/message-tray/index.js +1 -1
  127. package/dist/components/nav-grid/index.js +1 -1
  128. package/dist/components/note-timeline/index.js +1 -1
  129. package/dist/components/notes-panel/index.js +1 -1
  130. package/dist/components/operator-hero/index.js +1 -1
  131. package/dist/components/operator-hero/operator-hero.d.ts +6 -0
  132. package/dist/components/operator-hero/operator-hero.d.ts.map +1 -1
  133. package/dist/components/patient-details/index.js +1 -1
  134. package/dist/components/patient-summary-card/index.js +1 -1
  135. package/dist/components/patient-table/index.js +1 -1
  136. package/dist/components/payment-card/index.js +1 -1
  137. package/dist/components/practice-profile-hero/index.js +1 -1
  138. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
  139. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts.map +1 -1
  140. package/dist/components/practice-results/index.js +1 -1
  141. package/dist/components/practice-results/practice-results.d.ts +8 -2
  142. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  143. package/dist/components/product-hub-tray/index.js +1 -1
  144. package/dist/components/public-footer/index.js +1 -1
  145. package/dist/components/public-footer/public-footer.d.ts +13 -1
  146. package/dist/components/public-footer/public-footer.d.ts.map +1 -1
  147. package/dist/components/public-footer/socials.d.ts +6 -5
  148. package/dist/components/public-footer/socials.d.ts.map +1 -1
  149. package/dist/components/slot-grid/index.js +1 -1
  150. package/dist/components/slot-grid/slot-grid.d.ts +2 -0
  151. package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
  152. package/dist/components/timeline/index.js +1 -1
  153. package/dist/i18n/config.d.ts.map +1 -1
  154. package/dist/i18n/config.js +224 -96
  155. package/dist/i18n/config.js.map +1 -1
  156. package/dist/i18n/locales/ar.d.ts +3 -0
  157. package/dist/i18n/locales/ar.d.ts.map +1 -1
  158. package/dist/i18n/locales/ar.js +4 -1
  159. package/dist/i18n/locales/ar.js.map +1 -1
  160. package/dist/i18n/locales/de.d.ts +3 -0
  161. package/dist/i18n/locales/de.d.ts.map +1 -1
  162. package/dist/i18n/locales/de.js +4 -1
  163. package/dist/i18n/locales/de.js.map +1 -1
  164. package/dist/i18n/locales/el.d.ts +3 -0
  165. package/dist/i18n/locales/el.d.ts.map +1 -1
  166. package/dist/i18n/locales/el.js +4 -1
  167. package/dist/i18n/locales/el.js.map +1 -1
  168. package/dist/i18n/locales/en.d.ts +3 -0
  169. package/dist/i18n/locales/en.d.ts.map +1 -1
  170. package/dist/i18n/locales/en.js +3 -0
  171. package/dist/i18n/locales/en.js.map +1 -1
  172. package/dist/i18n/locales/es.d.ts +3 -0
  173. package/dist/i18n/locales/es.d.ts.map +1 -1
  174. package/dist/i18n/locales/es.js +4 -1
  175. package/dist/i18n/locales/es.js.map +1 -1
  176. package/dist/i18n/locales/fr.d.ts +3 -0
  177. package/dist/i18n/locales/fr.d.ts.map +1 -1
  178. package/dist/i18n/locales/fr.js +4 -1
  179. package/dist/i18n/locales/fr.js.map +1 -1
  180. package/dist/i18n/locales/hi.d.ts +3 -0
  181. package/dist/i18n/locales/hi.d.ts.map +1 -1
  182. package/dist/i18n/locales/hi.js +4 -1
  183. package/dist/i18n/locales/hi.js.map +1 -1
  184. package/dist/i18n/locales/it.d.ts +3 -0
  185. package/dist/i18n/locales/it.d.ts.map +1 -1
  186. package/dist/i18n/locales/it.js +4 -1
  187. package/dist/i18n/locales/it.js.map +1 -1
  188. package/dist/i18n/locales/ja.d.ts +3 -0
  189. package/dist/i18n/locales/ja.d.ts.map +1 -1
  190. package/dist/i18n/locales/ja.js +4 -1
  191. package/dist/i18n/locales/ja.js.map +1 -1
  192. package/dist/i18n/locales/nl.d.ts +3 -0
  193. package/dist/i18n/locales/nl.d.ts.map +1 -1
  194. package/dist/i18n/locales/nl.js +4 -1
  195. package/dist/i18n/locales/nl.js.map +1 -1
  196. package/dist/i18n/locales/pl.d.ts +3 -0
  197. package/dist/i18n/locales/pl.d.ts.map +1 -1
  198. package/dist/i18n/locales/pl.js +4 -1
  199. package/dist/i18n/locales/pl.js.map +1 -1
  200. package/dist/i18n/locales/pt.d.ts +3 -0
  201. package/dist/i18n/locales/pt.d.ts.map +1 -1
  202. package/dist/i18n/locales/pt.js +4 -1
  203. package/dist/i18n/locales/pt.js.map +1 -1
  204. package/dist/i18n/locales/ro.d.ts +3 -0
  205. package/dist/i18n/locales/ro.d.ts.map +1 -1
  206. package/dist/i18n/locales/ro.js +4 -1
  207. package/dist/i18n/locales/ro.js.map +1 -1
  208. package/dist/i18n/locales/ru.d.ts +3 -0
  209. package/dist/i18n/locales/ru.d.ts.map +1 -1
  210. package/dist/i18n/locales/ru.js +4 -1
  211. package/dist/i18n/locales/ru.js.map +1 -1
  212. package/dist/i18n/locales/sq.d.ts +3 -0
  213. package/dist/i18n/locales/sq.d.ts.map +1 -1
  214. package/dist/i18n/locales/sq.js +4 -1
  215. package/dist/i18n/locales/sq.js.map +1 -1
  216. package/dist/i18n/locales/sv.d.ts +3 -0
  217. package/dist/i18n/locales/sv.d.ts.map +1 -1
  218. package/dist/i18n/locales/sv.js +4 -1
  219. package/dist/i18n/locales/sv.js.map +1 -1
  220. package/dist/i18n/locales/tr.d.ts +3 -0
  221. package/dist/i18n/locales/tr.d.ts.map +1 -1
  222. package/dist/i18n/locales/tr.js +4 -1
  223. package/dist/i18n/locales/tr.js.map +1 -1
  224. package/dist/i18n/locales/zh.d.ts +3 -0
  225. package/dist/i18n/locales/zh.d.ts.map +1 -1
  226. package/dist/i18n/locales/zh.js +4 -1
  227. package/dist/i18n/locales/zh.js.map +1 -1
  228. package/dist/index.js +42 -42
  229. package/dist/locales/ar.json +4 -1
  230. package/dist/locales/de.json +4 -1
  231. package/dist/locales/el.json +4 -1
  232. package/dist/locales/en.json +3 -0
  233. package/dist/locales/es.json +4 -1
  234. package/dist/locales/fr.json +4 -1
  235. package/dist/locales/hi.json +4 -1
  236. package/dist/locales/it.json +4 -1
  237. package/dist/locales/ja.json +4 -1
  238. package/dist/locales/nl.json +4 -1
  239. package/dist/locales/pl.json +4 -1
  240. package/dist/locales/pt.json +4 -1
  241. package/dist/locales/ro.json +4 -1
  242. package/dist/locales/ru.json +4 -1
  243. package/dist/locales/sq.json +4 -1
  244. package/dist/locales/sv.json +4 -1
  245. package/dist/locales/tr.json +4 -1
  246. package/dist/locales/zh.json +4 -1
  247. package/dist/patterns/alia-assistant/index.js +1 -1
  248. package/dist/patterns/calendar/index.js +1 -1
  249. package/dist/patterns/error-page/error-page-english.d.ts +71 -0
  250. package/dist/patterns/error-page/error-page-english.d.ts.map +1 -0
  251. package/dist/patterns/error-page/error-page.d.ts.map +1 -1
  252. package/dist/patterns/error-page/index.js +1 -1
  253. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  254. package/dist/patterns/signature-request/index.js +1 -1
  255. package/dist/patterns/signed-out-frame/index.js +1 -1
  256. package/dist/tokens.css +1 -1
  257. package/package.json +1 -1
  258. package/dist/_chunks/avatar-BPiPL7ND.js.map +0 -1
  259. package/dist/_chunks/booking-CcE_oviI.js +0 -4373
  260. package/dist/_chunks/booking-CcE_oviI.js.map +0 -1
  261. package/dist/_chunks/contact-profile-card-Da1vmJQI.js.map +0 -1
  262. package/dist/_chunks/error-page-Bhai-spN.js +0 -344
  263. package/dist/_chunks/error-page-Bhai-spN.js.map +0 -1
  264. package/dist/_chunks/languages-CZqBaPwI.js.map +0 -1
  265. package/dist/_chunks/link-N5_YpLtm.js +0 -138
  266. package/dist/_chunks/link-N5_YpLtm.js.map +0 -1
  267. package/dist/_chunks/operator-hero-6aAIQaFZ.js.map +0 -1
  268. package/dist/_chunks/practice-profile-hero-qfrsFQI_.js.map +0 -1
  269. package/dist/_chunks/practice-results-DQuOfqej.js.map +0 -1
  270. package/dist/_chunks/public-footer-CXOrdAaS.js +0 -568
  271. package/dist/_chunks/public-footer-CXOrdAaS.js.map +0 -1
  272. package/dist/_chunks/slot-grid-DrwynKeN.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { jsx as r, jsxs as k } from "react/jsx-runtime";
2
- import { forwardRef as me, useId as he, useState as ye, useCallback as K, useRef as ge, useEffect as ve, useMemo as be } from "react";
3
- import { c as y } from "./index-D2ZczOXr.js";
4
- import { useTranslation as we } from "react-i18next";
5
- import { B as F } from "./button-DohK_Ak_.js";
6
- import { I as q } from "./icon-button-S8_weU3g.js";
7
- import { E as xe } from "./empty-state-DwJ5YNzz.js";
8
- import { S as W } from "./skeleton-tTWJpvAq.js";
9
- import { u as Se } from "./registry-DvAUVLHh.js";
10
- import { d as ke, f as De } from "./format--x5jypvH.js";
11
- import { p as Ie } from "./parseISO-DZZ5a-zK.js";
12
- const Ge = {
1
+ import { jsx as r, jsxs as v, Fragment as he } from "react/jsx-runtime";
2
+ import { forwardRef as ye, useId as ge, useState as ve, useCallback as M, useRef as be, useEffect as we, useMemo as xe } from "react";
3
+ import { c as g } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Se } from "react-i18next";
5
+ import { B as q } from "./button-DohK_Ak_.js";
6
+ import { I as W } from "./icon-button-S8_weU3g.js";
7
+ import { E as ke } from "./empty-state-DwJ5YNzz.js";
8
+ import { S as X } from "./skeleton-tTWJpvAq.js";
9
+ import { u as De } from "./registry-DvAUVLHh.js";
10
+ import { d as Ie, f as Ge } from "./format--x5jypvH.js";
11
+ import { p as Ne } from "./parseISO-DZZ5a-zK.js";
12
+ const Ke = {
13
13
  id: "slot-grid",
14
14
  // pick → `select_slot` + the `selectedSlotId` state slot.
15
15
  // range_navigate → `next_days` / `previous_days` + `hasNext` / `hasPrevious`.
@@ -185,7 +185,7 @@ const Ge = {
185
185
  description: "Per-slot button identifier sourced from each `SlotGridSlot.id` — an availability id, never a patient id. DOM-driving agents activate a slot via native click on the matching button."
186
186
  }
187
187
  }
188
- }, Ne = y(
188
+ }, Me = g(
189
189
  [
190
190
  "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
191
191
  "ds:text-[var(--foreground)]",
@@ -201,9 +201,9 @@ const Ge = {
201
201
  },
202
202
  defaultVariants: { size: "md" }
203
203
  }
204
- ), Ke = y(
204
+ ), ze = g(
205
205
  "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:w-full"
206
- ), Me = 12, ze = y(
206
+ ), Ce = 12, Re = g(
207
207
  "ds:grid ds:gap-[var(--spacing-sm)] ds:w-full ds:auto-rows-min ds:items-start",
208
208
  {
209
209
  variants: {
@@ -225,10 +225,10 @@ const Ge = {
225
225
  defaultVariants: { cols: 1 }
226
226
  }
227
227
  );
228
- function Ce(e) {
229
- return Math.max(1, Math.min(e, Me));
228
+ function Le(e) {
229
+ return Math.max(1, Math.min(e, Ce));
230
230
  }
231
- const X = y(
231
+ const J = g(
232
232
  [
233
233
  "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
234
234
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
@@ -237,7 +237,7 @@ const X = y(
237
237
  "ds:bg-[var(--card)]",
238
238
  "ds:min-w-0"
239
239
  ].join(" ")
240
- ), Re = y(
240
+ ), Be = g(
241
241
  [
242
242
  "ds:font-[var(--font-weight-semibold)]",
243
243
  "ds:text-[var(--foreground)]",
@@ -254,9 +254,9 @@ const X = y(
254
254
  },
255
255
  defaultVariants: { size: "md" }
256
256
  }
257
- ), J = y(
257
+ ), Q = g(
258
258
  "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full ds:m-0 ds:p-0 ds:list-none"
259
- ), Le = y(
259
+ ), Ee = g(
260
260
  [
261
261
  "ds:inline-flex ds:items-center ds:justify-center",
262
262
  "ds:w-full",
@@ -290,30 +290,30 @@ const X = y(
290
290
  }
291
291
  );
292
292
  function h(e) {
293
- return e instanceof Date ? e : Ie(e);
293
+ return e instanceof Date ? e : Ne(e);
294
294
  }
295
- function M(e, a) {
295
+ function z(e, a) {
296
296
  return `${h(e.date).toISOString()}-${a}`;
297
297
  }
298
- function D(e) {
299
- return De(h(e.date), "yyyy-MM-dd");
298
+ function k(e) {
299
+ return Ge(h(e.date), "yyyy-MM-dd");
300
300
  }
301
- function Qe(e, a) {
302
- return ke(h(e), h(a));
301
+ function Ye(e, a) {
302
+ return Ie(h(e), h(a));
303
303
  }
304
- function Ue(e) {
304
+ function Ze(e) {
305
305
  for (const a of e) {
306
- const i = a.slots.find((l) => l.available !== !1);
307
- if (i) return { day: a, slot: i };
306
+ const o = a.slots.find((i) => i.available !== !1);
307
+ if (o) return { day: a, slot: o };
308
308
  }
309
309
  }
310
- function Q(e, a, i) {
310
+ function U(e, a, o) {
311
311
  try {
312
312
  return new Intl.DateTimeFormat(a, {
313
313
  weekday: "short",
314
314
  month: "short",
315
315
  day: "numeric",
316
- timeZone: i
316
+ timeZone: o
317
317
  }).format(e);
318
318
  } catch {
319
319
  return new Intl.DateTimeFormat("en", {
@@ -323,35 +323,35 @@ function Q(e, a, i) {
323
323
  }).format(e);
324
324
  }
325
325
  }
326
- function U(e, a, i) {
326
+ function Y(e, a, o) {
327
327
  if (e.label !== void 0) return e.label;
328
- const l = h(e.start);
328
+ const i = h(e.start);
329
329
  try {
330
330
  const c = new Intl.DateTimeFormat(a, {
331
331
  hour: "numeric",
332
332
  minute: "2-digit",
333
- timeZone: i
333
+ timeZone: o
334
334
  });
335
335
  if (e.end) {
336
- const g = h(e.end);
336
+ const y = h(e.end);
337
337
  if (typeof c.formatRange == "function")
338
338
  try {
339
- return c.formatRange(l, g);
339
+ return c.formatRange(i, y);
340
340
  } catch {
341
341
  }
342
- return `${c.format(l)} – ${c.format(g)}`;
342
+ return `${c.format(i)} – ${c.format(y)}`;
343
343
  }
344
- return c.format(l);
344
+ return c.format(i);
345
345
  } catch {
346
- return l.toISOString();
346
+ return i.toISOString();
347
347
  }
348
348
  }
349
- function Be(e, a, i, l, c) {
349
+ function Ve(e, a, o, i, c) {
350
350
  if (e.ariaLabel !== void 0) return e.ariaLabel;
351
- const g = U(e, i, l), v = a.label !== void 0 ? a.label : Q(h(a.date), i, l);
352
- return c({ time: g, day: v });
351
+ const y = Y(e, o, i), D = a.label !== void 0 ? a.label : U(h(a.date), o, i);
352
+ return c({ time: y, day: D });
353
353
  }
354
- function Ee() {
354
+ function je() {
355
355
  return /* @__PURE__ */ r(
356
356
  "svg",
357
357
  {
@@ -367,7 +367,7 @@ function Ee() {
367
367
  }
368
368
  );
369
369
  }
370
- function Ve() {
370
+ function Te() {
371
371
  return /* @__PURE__ */ r(
372
372
  "svg",
373
373
  {
@@ -383,189 +383,200 @@ function Ve() {
383
383
  }
384
384
  );
385
385
  }
386
- const je = me(
386
+ const Pe = ye(
387
387
  ({
388
388
  days: e,
389
389
  state: a = "default",
390
+ emptyDescription: o,
390
391
  size: i = "md",
391
- selectedSlotId: l,
392
- maxInitialSlotsPerDay: c = 6,
393
- locale: g,
394
- timeZone: v,
395
- hasPrevious: z = !1,
396
- hasNext: C = !1,
397
- showNextAvailable: Y = !1,
398
- ariaLabel: Z,
392
+ selectedSlotId: c,
393
+ maxInitialSlotsPerDay: y = 6,
394
+ locale: D,
395
+ timeZone: I,
396
+ hasPrevious: C = !1,
397
+ hasNext: R = !1,
398
+ showNextAvailable: Z = !1,
399
+ ariaLabel: ee,
399
400
  onSlotSelect: b,
400
- onPreviousDays: R,
401
- onNextDays: L,
401
+ onPreviousDays: L,
402
+ onNextDays: B,
402
403
  onShowMore: w,
403
- onJumpToNextAvailable: ee,
404
- className: te,
405
- id: I,
406
- ...se
407
- }, ae) => {
408
- const { t: p, i18n: re } = we("ui"), G = g ?? re.language ?? "en", ie = he(), [B, ne] = ye({}), E = a === "loading", V = a === "disabled", f = E || V, oe = a === "empty" || e.length === 0 || e.every((t) => t.slots.length === 0), de = Z ?? p("slotGrid.ariaLabel"), x = K(
404
+ onJumpToNextAvailable: te,
405
+ className: se,
406
+ id: G,
407
+ ...ae
408
+ }, re) => {
409
+ const { t: p, i18n: ie } = Se("ui"), N = D ?? ie.language ?? "en", ne = ge(), [E, oe] = ve({}), V = a === "loading", j = a === "disabled", m = V || j, de = a === "empty" || e.length === 0 || e.every((t) => t.slots.length === 0), le = ee ?? p("slotGrid.ariaLabel"), x = M(
409
410
  (t, s) => {
410
- f || t.available !== !1 && (b == null || b(t, s));
411
+ m || t.available !== !1 && (b == null || b(t, s));
411
412
  },
412
- [f, b]
413
- ), j = K(
413
+ [m, b]
414
+ ), T = M(
414
415
  (t, s) => {
415
- ne((n) => ({ ...n, [s]: !0 })), w == null || w(t);
416
+ oe((n) => ({ ...n, [s]: !0 })), w == null || w(t);
416
417
  },
417
418
  [w]
418
- ), le = K(
419
+ ), ce = M(
419
420
  (t, s, n) => {
420
421
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), x(s, n));
421
422
  },
422
423
  [x]
423
- ), T = {
424
+ ), P = {
424
425
  days: e,
425
- selectedSlotId: l,
426
- hasPrevious: z,
427
- hasNext: C,
426
+ selectedSlotId: c,
427
+ hasPrevious: C,
428
+ hasNext: R,
428
429
  state: a,
429
- expanded: B,
430
- isInteractionSuppressed: f,
431
- onPreviousDays: R,
432
- onNextDays: L,
430
+ expanded: E,
431
+ isInteractionSuppressed: m,
432
+ onPreviousDays: L,
433
+ onNextDays: B,
433
434
  handleSlotClick: x,
434
- handleShowMore: j
435
- }, o = ge(T);
436
- ve(() => {
437
- o.current = T;
435
+ handleShowMore: T
436
+ }, d = be(P);
437
+ we(() => {
438
+ d.current = P;
438
439
  });
439
- const ce = be(
440
+ const ue = xe(
440
441
  () => ({
441
- getStatus: () => o.current.state,
442
- getSelectedSlotId: () => o.current.selectedSlotId ?? null,
443
- getVisibleDays: () => o.current.days.map(D),
442
+ getStatus: () => d.current.state,
443
+ getSelectedSlotId: () => d.current.selectedSlotId ?? null,
444
+ getVisibleDays: () => d.current.days.map(k),
444
445
  getSlotsByDay: () => {
445
446
  const t = {};
446
- for (const s of o.current.days) {
447
- const n = D(s), d = s.slots.filter((u) => u.available !== !1).map((u) => u.id);
448
- t[n] = t[n] ? [...t[n], ...d] : d;
447
+ for (const s of d.current.days) {
448
+ const n = k(s), l = s.slots.filter((u) => u.available !== !1).map((u) => u.id);
449
+ t[n] = t[n] ? [...t[n], ...l] : l;
449
450
  }
450
451
  return t;
451
452
  },
452
- getExpandedDays: () => o.current.days.filter(
453
- (t, s) => o.current.expanded[M(t, s)] === !0
454
- ).map(D),
455
- getHasPrevious: () => o.current.hasPrevious,
456
- getHasNext: () => o.current.hasNext,
453
+ getExpandedDays: () => d.current.days.filter(
454
+ (t, s) => d.current.expanded[z(t, s)] === !0
455
+ ).map(k),
456
+ getHasPrevious: () => d.current.hasPrevious,
457
+ getHasNext: () => d.current.hasNext,
457
458
  selectSlot: (t) => {
458
- const s = o.current;
459
+ const s = d.current;
459
460
  if (s.isInteractionSuppressed) return !1;
460
461
  for (const n of s.days) {
461
- const d = n.slots.find((u) => u.id === t);
462
- if (d)
463
- return d.available === !1 ? !1 : (s.handleSlotClick(d, n), !0);
462
+ const l = n.slots.find((u) => u.id === t);
463
+ if (l)
464
+ return l.available === !1 ? !1 : (s.handleSlotClick(l, n), !0);
464
465
  }
465
466
  return !1;
466
467
  },
467
468
  nextDays: () => {
468
- const t = o.current;
469
+ const t = d.current;
469
470
  return !t.hasNext || t.isInteractionSuppressed || !t.onNextDays ? !1 : (t.onNextDays(), !0);
470
471
  },
471
472
  previousDays: () => {
472
- const t = o.current;
473
+ const t = d.current;
473
474
  return !t.hasPrevious || t.isInteractionSuppressed || !t.onPreviousDays ? !1 : (t.onPreviousDays(), !0);
474
475
  },
475
476
  showMoreDay: (t) => {
476
- const s = o.current;
477
+ const s = d.current;
477
478
  if (s.isInteractionSuppressed) return !1;
478
479
  const n = s.days.findIndex(
479
- (u) => D(u) === t
480
+ (u) => k(u) === t
480
481
  );
481
482
  if (n < 0) return !1;
482
- const d = s.days[n];
483
- return s.handleShowMore(d, M(d, n)), !0;
483
+ const l = s.days[n];
484
+ return s.handleShowMore(l, z(l, n)), !0;
484
485
  }
485
486
  }),
486
487
  []
487
488
  );
488
- Se(Ge, ce, I);
489
- const P = Ce(e.length || 1), _ = ze({ cols: P });
489
+ De(Ke, ue, G);
490
+ const _ = Le(e.length || 1), A = Re({ cols: _ });
490
491
  let S;
491
- return E ? S = /* @__PURE__ */ r(
492
+ return V ? S = /* @__PURE__ */ r(
492
493
  "div",
493
494
  {
494
- className: _,
495
+ className: A,
495
496
  "data-state": "loading",
496
497
  role: "status",
497
498
  "aria-live": "polite",
498
499
  "aria-label": p("common.loading"),
499
- children: Array.from({ length: P }, (t, s) => /* @__PURE__ */ k("div", { className: X(), children: [
500
- /* @__PURE__ */ r(W, { variant: "text", size: i, width: "60%" }),
501
- /* @__PURE__ */ r("div", { className: J(), children: Array.from(
502
- { length: Math.min(c, 4) },
503
- (n, d) => /* @__PURE__ */ r(
504
- W,
500
+ children: Array.from({ length: _ }, (t, s) => /* @__PURE__ */ v("div", { className: J(), children: [
501
+ /* @__PURE__ */ r(X, { variant: "text", size: i, width: "60%" }),
502
+ /* @__PURE__ */ r("div", { className: Q(), children: Array.from(
503
+ { length: Math.min(y, 4) },
504
+ (n, l) => /* @__PURE__ */ r(
505
+ X,
505
506
  {
506
507
  variant: "rounded",
507
508
  size: i,
508
509
  height: "40px"
509
510
  },
510
- `loading-slot-${s}-${d}`
511
+ `loading-slot-${s}-${l}`
511
512
  )
512
513
  ) })
513
514
  ] }, `loading-col-${s}`))
514
515
  }
515
- ) : oe ? S = /* @__PURE__ */ r("div", { "data-state": "empty", children: /* @__PURE__ */ r(xe, { variant: "no-results", title: p("slotGrid.noSlots") }) }) : S = /* @__PURE__ */ r(
516
+ ) : de ? S = /* @__PURE__ */ r("div", { "data-state": "empty", children: /* @__PURE__ */ r(
517
+ ke,
518
+ {
519
+ variant: "no-results",
520
+ title: p("slotGrid.noSlots"),
521
+ description: o
522
+ }
523
+ ) }) : S = /* @__PURE__ */ r(
516
524
  "div",
517
525
  {
518
- className: _,
519
- "data-state": V ? "disabled" : "default",
526
+ className: A,
527
+ "data-state": j ? "disabled" : "default",
520
528
  children: e.map((t, s) => {
521
- const n = M(t, s), d = t.label ?? Q(h(t.date), G, v), u = `${ie}-day-${s}-header`, A = B[n] ?? !1 ? t.slots : t.slots.slice(0, c), $ = t.slots.length - A.length, H = t.slots.length === 0;
529
+ const n = z(t, s), l = t.label ?? U(h(t.date), N, I), u = `${ne}-day-${s}-header`, $ = E[n] ?? !1 ? t.slots : t.slots.slice(0, y), H = t.slots.length - $.length, O = t.slots.length === 0;
522
530
  return (
523
531
  // Use a plain <div role="group"> rather than <section> — a
524
532
  // <section> with aria-labelledby is a landmark, and nesting many
525
533
  // landmarks inside the outer slot-grid landmark fails axe's
526
534
  // landmark-unique rule.
527
- /* @__PURE__ */ k(
535
+ /* @__PURE__ */ v(
528
536
  "div",
529
537
  {
530
538
  role: "group",
531
- className: X(),
539
+ className: J(),
532
540
  "aria-labelledby": u,
533
- "data-empty": H || void 0,
541
+ "data-empty": O || void 0,
534
542
  children: [
535
- /* @__PURE__ */ r("h3", { id: u, className: Re({ size: i }), children: d }),
536
- H ? /* @__PURE__ */ r("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: p("slotGrid.noSlots") }) : null,
537
- /* @__PURE__ */ r("ul", { className: J(), children: A.map((m) => {
538
- const ue = Be(
539
- m,
543
+ /* @__PURE__ */ r("h3", { id: u, className: Be({ size: i }), children: l }),
544
+ O ? /* @__PURE__ */ v(he, { children: [
545
+ /* @__PURE__ */ r("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: p("slotGrid.noSlots") }),
546
+ o ? /* @__PURE__ */ r("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: o }) : null
547
+ ] }) : null,
548
+ /* @__PURE__ */ r("ul", { className: Q(), children: $.map((f) => {
549
+ const pe = Ve(
550
+ f,
540
551
  t,
541
- G,
542
- v,
543
- ({ time: N, day: fe }) => p("slotGrid.slotLabel", { time: N, day: fe })
544
- ), pe = l === m.id, O = m.available === !1 || f;
552
+ N,
553
+ I,
554
+ ({ time: K, day: fe }) => p("slotGrid.slotLabel", { time: K, day: fe })
555
+ ), me = c === f.id, F = f.available === !1 || m;
545
556
  return /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
546
557
  "button",
547
558
  {
548
559
  type: "button",
549
- className: Le({ size: i }),
550
- "aria-label": ue,
551
- "aria-pressed": pe,
552
- disabled: O,
553
- "aria-disabled": O || void 0,
554
- "data-slot-id": m.id,
555
- onClick: () => x(m, t),
556
- onKeyDown: (N) => le(N, m, t),
557
- children: U(m, G, v)
560
+ className: Ee({ size: i }),
561
+ "aria-label": pe,
562
+ "aria-pressed": me,
563
+ disabled: F,
564
+ "aria-disabled": F || void 0,
565
+ "data-slot-id": f.id,
566
+ onClick: () => x(f, t),
567
+ onKeyDown: (K) => ce(K, f, t),
568
+ children: Y(f, N, I)
558
569
  }
559
- ) }, m.id);
570
+ ) }, f.id);
560
571
  }) }),
561
- $ > 0 ? /* @__PURE__ */ r(
562
- F,
572
+ H > 0 ? /* @__PURE__ */ r(
573
+ q,
563
574
  {
564
575
  intent: "ghost",
565
576
  size: i === "lg" ? "md" : "sm",
566
- onClick: () => j(t, n),
567
- disabled: f,
568
- children: p("slotGrid.showMore", { count: $ })
577
+ onClick: () => T(t, n),
578
+ disabled: m,
579
+ children: p("slotGrid.showMore", { count: H })
569
580
  }
570
581
  ) : null
571
582
  ]
@@ -575,54 +586,54 @@ const je = me(
575
586
  );
576
587
  })
577
588
  }
578
- ), /* @__PURE__ */ k(
589
+ ), /* @__PURE__ */ v(
579
590
  "div",
580
591
  {
581
- ref: ae,
582
- id: I,
592
+ ref: re,
593
+ id: G,
583
594
  role: "region",
584
- "aria-label": de,
585
- className: Ne({ size: i, className: te }),
595
+ "aria-label": le,
596
+ className: Me({ size: i, className: se }),
586
597
  "data-component": "slot-grid",
587
- "data-component-id": I,
598
+ "data-component-id": G,
588
599
  "data-state": a,
589
- ...se,
600
+ ...ae,
590
601
  children: [
591
- /* @__PURE__ */ k("div", { className: Ke(), children: [
602
+ /* @__PURE__ */ v("div", { className: ze(), children: [
592
603
  /* @__PURE__ */ r(
593
- q,
604
+ W,
594
605
  {
595
- icon: /* @__PURE__ */ r(Ee, {}),
606
+ icon: /* @__PURE__ */ r(je, {}),
596
607
  "aria-label": p("slotGrid.previousDays"),
597
608
  className: "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)] ds:sm:min-h-[var(--min-target-size)]",
598
609
  size: i === "lg" ? "md" : "sm",
599
610
  intent: "ghost",
600
611
  flipIconInRtl: !0,
601
- disabled: !z || f,
602
- onClick: R
612
+ disabled: !C || m,
613
+ onClick: L
603
614
  }
604
615
  ),
605
- Y ? /* @__PURE__ */ r(
606
- F,
616
+ Z ? /* @__PURE__ */ r(
617
+ q,
607
618
  {
608
619
  intent: "secondary",
609
620
  size: i === "lg" ? "md" : "sm",
610
- disabled: f,
611
- onClick: ee,
621
+ disabled: m,
622
+ onClick: te,
612
623
  children: p("slotGrid.nextAvailable")
613
624
  }
614
625
  ) : /* @__PURE__ */ r("span", { "aria-hidden": "true" }),
615
626
  /* @__PURE__ */ r(
616
- q,
627
+ W,
617
628
  {
618
- icon: /* @__PURE__ */ r(Ve, {}),
629
+ icon: /* @__PURE__ */ r(Te, {}),
619
630
  "aria-label": p("slotGrid.nextDays"),
620
631
  className: "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)] ds:sm:min-h-[var(--min-target-size)]",
621
632
  size: i === "lg" ? "md" : "sm",
622
633
  intent: "ghost",
623
634
  flipIconInRtl: !0,
624
- disabled: !C || f,
625
- onClick: L
635
+ disabled: !R || m,
636
+ onClick: B
626
637
  }
627
638
  )
628
639
  ] }),
@@ -632,11 +643,11 @@ const je = me(
632
643
  );
633
644
  }
634
645
  );
635
- je.displayName = "SlotGrid";
646
+ Pe.displayName = "SlotGrid";
636
647
  export {
637
- je as S,
638
- Ue as f,
639
- Qe as i,
640
- Ge as s
648
+ Pe as S,
649
+ Ze as f,
650
+ Ye as i,
651
+ Ke as s
641
652
  };
642
- //# sourceMappingURL=slot-grid-DrwynKeN.js.map
653
+ //# sourceMappingURL=slot-grid-B-IAFX3C.js.map