@alfadocs/ui-kit-debug 1.65.0 → 1.67.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 (264) hide show
  1. package/dist/_chunks/ai-credits-exhausted-notice-DfAgfZDF.js +287 -0
  2. package/dist/_chunks/ai-credits-exhausted-notice-DfAgfZDF.js.map +1 -0
  3. package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
  4. package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js.map +1 -0
  5. package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
  6. package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js.map +1 -0
  7. package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-qsdm4Sx4.js} +2 -2
  8. package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js.map → ai-permission-notice-qsdm4Sx4.js.map} +1 -1
  9. package/dist/_chunks/{alert-DdDpOi-P.js → alert-DjsJMGRE.js} +3 -2
  10. package/dist/_chunks/{alert-DdDpOi-P.js.map → alert-DjsJMGRE.js.map} +1 -1
  11. package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-BQ_EokKz.js} +2 -2
  12. package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js.map → anamnesis-summary-rows-BQ_EokKz.js.map} +1 -1
  13. package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-B11RR-rC.js} +2 -2
  14. package/dist/_chunks/{audio-recorder-DR-u1qbl.js.map → audio-recorder-B11RR-rC.js.map} +1 -1
  15. package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-DwUTH6YN.js} +2 -2
  16. package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js.map → auth-form-parts-DwUTH6YN.js.map} +1 -1
  17. package/dist/_chunks/{booking-DkjatiXc.js → booking-tTVxKPQY.js} +2 -2
  18. package/dist/_chunks/{booking-DkjatiXc.js.map → booking-tTVxKPQY.js.map} +1 -1
  19. package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-MRrzcxAy.js} +6 -6
  20. package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js.map → calendar-workspace-MRrzcxAy.js.map} +1 -1
  21. package/dist/_chunks/chart-CwmyCuWe.js +1340 -0
  22. package/dist/_chunks/chart-CwmyCuWe.js.map +1 -0
  23. package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-VyQOjFVL.js} +2 -2
  24. package/dist/_chunks/{document-preview-B1dQm292.js.map → document-preview-VyQOjFVL.js.map} +1 -1
  25. package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-CXH_GYh4.js} +2 -2
  26. package/dist/_chunks/{document-scanner-CVPVLK7z.js.map → document-scanner-CXH_GYh4.js.map} +1 -1
  27. package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-Bj-Wxq7Y.js} +2 -2
  28. package/dist/_chunks/{entity-summary-BQ9_KA8S.js.map → entity-summary-Bj-Wxq7Y.js.map} +1 -1
  29. package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-PUE5Zxp9.js} +2 -2
  30. package/dist/_chunks/{error-summary-DrUfuKu1.js.map → error-summary-PUE5Zxp9.js.map} +1 -1
  31. package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-CPOfRE0C.js} +4 -4
  32. package/dist/_chunks/{forgot-password-form-CgZkEvZy.js.map → forgot-password-form-CPOfRE0C.js.map} +1 -1
  33. package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-6DO7noHX.js} +2 -2
  34. package/dist/_chunks/{freemium-paywall-DKJHRFpp.js.map → freemium-paywall-6DO7noHX.js.map} +1 -1
  35. package/dist/_chunks/heatmap-C1TeC7wT.js +3650 -0
  36. package/dist/_chunks/heatmap-C1TeC7wT.js.map +1 -0
  37. package/dist/_chunks/help-me-write-templates-Bw3Q58x-.js +687 -0
  38. package/dist/_chunks/help-me-write-templates-Bw3Q58x-.js.map +1 -0
  39. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  40. package/dist/_chunks/hourglass-BEAzW1wE.js.map +1 -0
  41. package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-A-CL3mjt.js} +3 -3
  42. package/dist/_chunks/{login-dev-card-PnADNcI9.js.map → login-dev-card-A-CL3mjt.js.map} +1 -1
  43. package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-DtSX8sYb.js} +2 -2
  44. package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js.map → marketplace-app-shell-DtSX8sYb.js.map} +1 -1
  45. package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-IdsmqRFC.js} +3 -3
  46. package/dist/_chunks/{notes-panel-uEGIL7mi.js.map → notes-panel-IdsmqRFC.js.map} +1 -1
  47. package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C-EWQTms.js} +2 -2
  48. package/dist/_chunks/{patient-details-4P1vA9Ls.js.map → patient-details-C-EWQTms.js.map} +1 -1
  49. package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-lY-Tb5Mo.js} +155 -176
  50. package/dist/_chunks/patient-field-row-lY-Tb5Mo.js.map +1 -0
  51. package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-DpAKidZ5.js} +2 -2
  52. package/dist/_chunks/{patient-search-DOnDUVsl.js.map → patient-search-DpAKidZ5.js.map} +1 -1
  53. package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-Bpto_VCD.js} +2 -2
  54. package/dist/_chunks/{patient-summary-card-CuDLo8MP.js.map → patient-summary-card-Bpto_VCD.js.map} +1 -1
  55. package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-BQ307qEX.js} +2 -2
  56. package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js.map → payment-automation-upsell-BQ307qEX.js.map} +1 -1
  57. package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-XKtinW8r.js} +2 -2
  58. package/dist/_chunks/{payment-form-C3dGY7v4.js.map → payment-form-XKtinW8r.js.map} +1 -1
  59. package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-BvoVMjH4.js} +2 -2
  60. package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js.map → pdf-viewer-BvoVMjH4.js.map} +1 -1
  61. package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BrUDDMXC.js} +2 -2
  62. package/dist/_chunks/{practice-results-8h2Utpt3.js.map → practice-results-BrUDDMXC.js.map} +1 -1
  63. package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-BxwqUZzk.js} +3 -3
  64. package/dist/_chunks/{registration-form-BQyT_kBX.js.map → registration-form-BxwqUZzk.js.map} +1 -1
  65. package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-aCIoptbg.js} +1653 -1743
  66. package/dist/_chunks/{rich-text-editor-M2gT_E7f.js.map → rich-text-editor-aCIoptbg.js.map} +1 -1
  67. package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-D1P1nUQA.js} +2 -2
  68. package/dist/_chunks/{sign-document-CY7xTXbm.js.map → sign-document-D1P1nUQA.js.map} +1 -1
  69. package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-3u6TvRt2.js} +2 -2
  70. package/dist/_chunks/{signature-request-BMCHy2ZO.js.map → signature-request-3u6TvRt2.js.map} +1 -1
  71. package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-Bb5MMcid.js} +2 -2
  72. package/dist/_chunks/{task-editor-CifOznfq.js.map → task-editor-Bb5MMcid.js.map} +1 -1
  73. package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-BOb57Ysw.js} +2 -2
  74. package/dist/_chunks/{tasks-panel-8nLwBw6P.js.map → tasks-panel-BOb57Ysw.js.map} +1 -1
  75. package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CVSPoP5j.js} +4 -4
  76. package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js.map → use-appointment-details-read-CVSPoP5j.js.map} +1 -1
  77. package/dist/_chunks/voice-control-panel-BJIEbDq6.js +1148 -0
  78. package/dist/_chunks/voice-control-panel-BJIEbDq6.js.map +1 -0
  79. package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BdY-0bd3.js} +2 -2
  80. package/dist/_chunks/{warning-stack-HYWAytZV.js.map → warning-stack-BdY-0bd3.js.map} +1 -1
  81. package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-CYbRD9ek.js} +2 -2
  82. package/dist/_chunks/{workflow-map-C2B2qIr1.js.map → workflow-map-CYbRD9ek.js.map} +1 -1
  83. package/dist/agent-catalog.json +50 -3
  84. package/dist/agent-i18n/en.json +7 -4
  85. package/dist/components/_shared/use-apex-radial-centre.d.ts +7 -4
  86. package/dist/components/_shared/use-apex-radial-centre.d.ts.map +1 -1
  87. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
  88. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts.map +1 -0
  89. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
  90. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts.map +1 -0
  91. package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
  92. package/dist/components/ai-credits-notice/ai-credits-notice.d.ts.map +1 -1
  93. package/dist/components/ai-credits-notice/index.d.ts +3 -0
  94. package/dist/components/ai-credits-notice/index.d.ts.map +1 -1
  95. package/dist/components/ai-credits-notice/index.js +10 -4
  96. package/dist/components/ai-credits-notice/index.js.map +1 -1
  97. package/dist/components/ai-permission-notice/index.js +1 -1
  98. package/dist/components/alert/index.js +1 -1
  99. package/dist/components/appointment-details-panel/index.js +1 -1
  100. package/dist/components/audio-recorder/index.js +1 -1
  101. package/dist/components/booking/index.js +1 -1
  102. package/dist/components/chart/index.js +1 -1
  103. package/dist/components/document-preview/index.js +1 -1
  104. package/dist/components/document-scanner/index.js +1 -1
  105. package/dist/components/entity-summary/index.js +1 -1
  106. package/dist/components/error-summary/index.js +1 -1
  107. package/dist/components/freemium-paywall/index.js +1 -1
  108. package/dist/components/heatmap/heatmap-context.d.ts +3 -0
  109. package/dist/components/heatmap/heatmap-context.d.ts.map +1 -1
  110. package/dist/components/heatmap/heatmap-disclosure.d.ts +67 -0
  111. package/dist/components/heatmap/heatmap-disclosure.d.ts.map +1 -0
  112. package/dist/components/heatmap/heatmap-format.d.ts.map +1 -1
  113. package/dist/components/heatmap/heatmap-grid.d.ts +1 -1
  114. package/dist/components/heatmap/heatmap-grid.d.ts.map +1 -1
  115. package/dist/components/heatmap/heatmap-legend.d.ts +5 -2
  116. package/dist/components/heatmap/heatmap-legend.d.ts.map +1 -1
  117. package/dist/components/heatmap/heatmap-model.d.ts +107 -15
  118. package/dist/components/heatmap/heatmap-model.d.ts.map +1 -1
  119. package/dist/components/heatmap/heatmap-table-view.d.ts +3 -2
  120. package/dist/components/heatmap/heatmap-table-view.d.ts.map +1 -1
  121. package/dist/components/heatmap/heatmap.d.ts +33 -7
  122. package/dist/components/heatmap/heatmap.d.ts.map +1 -1
  123. package/dist/components/heatmap/index.d.ts +1 -1
  124. package/dist/components/heatmap/index.d.ts.map +1 -1
  125. package/dist/components/heatmap/index.js +1 -1
  126. package/dist/components/notes-panel/index.js +1 -1
  127. package/dist/components/patient-details/index.js +1 -1
  128. package/dist/components/patient-search/index.js +1 -1
  129. package/dist/components/patient-summary-card/index.js +1 -1
  130. package/dist/components/payment-form/index.js +1 -1
  131. package/dist/components/pdf-viewer/index.js +1 -1
  132. package/dist/components/practice-results/index.js +1 -1
  133. package/dist/components/rich-text-editor/index.js +1 -1
  134. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  135. package/dist/components/sign-document/index.js +1 -1
  136. package/dist/components/task-editor/index.js +1 -1
  137. package/dist/components/tasks-panel/index.js +1 -1
  138. package/dist/components/voice-control-panel/index.d.ts +2 -1
  139. package/dist/components/voice-control-panel/index.d.ts.map +1 -1
  140. package/dist/components/voice-control-panel/index.js +1 -1
  141. package/dist/components/voice-control-panel/voice-control-panel.agent.d.ts.map +1 -1
  142. package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
  143. package/dist/components/voice-control-panel/voice-control-panel.d.ts.map +1 -1
  144. package/dist/components/warning-stack/index.js +1 -1
  145. package/dist/components/workflow/index.js +1 -1
  146. package/dist/i18n/locales/ar.d.ts +29 -12
  147. package/dist/i18n/locales/ar.d.ts.map +1 -1
  148. package/dist/i18n/locales/ar.js +29 -12
  149. package/dist/i18n/locales/ar.js.map +1 -1
  150. package/dist/i18n/locales/de.d.ts +29 -12
  151. package/dist/i18n/locales/de.d.ts.map +1 -1
  152. package/dist/i18n/locales/de.js +29 -12
  153. package/dist/i18n/locales/de.js.map +1 -1
  154. package/dist/i18n/locales/el.d.ts +29 -12
  155. package/dist/i18n/locales/el.d.ts.map +1 -1
  156. package/dist/i18n/locales/el.js +29 -12
  157. package/dist/i18n/locales/el.js.map +1 -1
  158. package/dist/i18n/locales/en.d.ts +29 -12
  159. package/dist/i18n/locales/en.d.ts.map +1 -1
  160. package/dist/i18n/locales/en.js +29 -12
  161. package/dist/i18n/locales/en.js.map +1 -1
  162. package/dist/i18n/locales/es.d.ts +29 -12
  163. package/dist/i18n/locales/es.d.ts.map +1 -1
  164. package/dist/i18n/locales/es.js +29 -12
  165. package/dist/i18n/locales/es.js.map +1 -1
  166. package/dist/i18n/locales/fr.d.ts +29 -12
  167. package/dist/i18n/locales/fr.d.ts.map +1 -1
  168. package/dist/i18n/locales/fr.js +29 -12
  169. package/dist/i18n/locales/fr.js.map +1 -1
  170. package/dist/i18n/locales/hi.d.ts +29 -12
  171. package/dist/i18n/locales/hi.d.ts.map +1 -1
  172. package/dist/i18n/locales/hi.js +29 -12
  173. package/dist/i18n/locales/hi.js.map +1 -1
  174. package/dist/i18n/locales/it.d.ts +29 -12
  175. package/dist/i18n/locales/it.d.ts.map +1 -1
  176. package/dist/i18n/locales/it.js +29 -12
  177. package/dist/i18n/locales/it.js.map +1 -1
  178. package/dist/i18n/locales/ja.d.ts +29 -12
  179. package/dist/i18n/locales/ja.d.ts.map +1 -1
  180. package/dist/i18n/locales/ja.js +29 -12
  181. package/dist/i18n/locales/ja.js.map +1 -1
  182. package/dist/i18n/locales/nl.d.ts +29 -12
  183. package/dist/i18n/locales/nl.d.ts.map +1 -1
  184. package/dist/i18n/locales/nl.js +29 -12
  185. package/dist/i18n/locales/nl.js.map +1 -1
  186. package/dist/i18n/locales/pl.d.ts +29 -12
  187. package/dist/i18n/locales/pl.d.ts.map +1 -1
  188. package/dist/i18n/locales/pl.js +29 -12
  189. package/dist/i18n/locales/pl.js.map +1 -1
  190. package/dist/i18n/locales/pt.d.ts +29 -12
  191. package/dist/i18n/locales/pt.d.ts.map +1 -1
  192. package/dist/i18n/locales/pt.js +29 -12
  193. package/dist/i18n/locales/pt.js.map +1 -1
  194. package/dist/i18n/locales/ro.d.ts +29 -12
  195. package/dist/i18n/locales/ro.d.ts.map +1 -1
  196. package/dist/i18n/locales/ro.js +29 -12
  197. package/dist/i18n/locales/ro.js.map +1 -1
  198. package/dist/i18n/locales/ru.d.ts +29 -12
  199. package/dist/i18n/locales/ru.d.ts.map +1 -1
  200. package/dist/i18n/locales/ru.js +29 -12
  201. package/dist/i18n/locales/ru.js.map +1 -1
  202. package/dist/i18n/locales/sq.d.ts +29 -12
  203. package/dist/i18n/locales/sq.d.ts.map +1 -1
  204. package/dist/i18n/locales/sq.js +29 -12
  205. package/dist/i18n/locales/sq.js.map +1 -1
  206. package/dist/i18n/locales/sv.d.ts +29 -12
  207. package/dist/i18n/locales/sv.d.ts.map +1 -1
  208. package/dist/i18n/locales/sv.js +29 -12
  209. package/dist/i18n/locales/sv.js.map +1 -1
  210. package/dist/i18n/locales/tr.d.ts +29 -12
  211. package/dist/i18n/locales/tr.d.ts.map +1 -1
  212. package/dist/i18n/locales/tr.js +29 -12
  213. package/dist/i18n/locales/tr.js.map +1 -1
  214. package/dist/i18n/locales/zh.d.ts +29 -12
  215. package/dist/i18n/locales/zh.d.ts.map +1 -1
  216. package/dist/i18n/locales/zh.js +29 -12
  217. package/dist/i18n/locales/zh.js.map +1 -1
  218. package/dist/index.js +814 -809
  219. package/dist/index.js.map +1 -1
  220. package/dist/locales/ar.json +29 -12
  221. package/dist/locales/de.json +29 -12
  222. package/dist/locales/el.json +29 -12
  223. package/dist/locales/en.json +29 -12
  224. package/dist/locales/es.json +29 -12
  225. package/dist/locales/fr.json +29 -12
  226. package/dist/locales/hi.json +29 -12
  227. package/dist/locales/it.json +29 -12
  228. package/dist/locales/ja.json +29 -12
  229. package/dist/locales/nl.json +29 -12
  230. package/dist/locales/pl.json +29 -12
  231. package/dist/locales/pt.json +29 -12
  232. package/dist/locales/ro.json +29 -12
  233. package/dist/locales/ru.json +29 -12
  234. package/dist/locales/sq.json +29 -12
  235. package/dist/locales/sv.json +29 -12
  236. package/dist/locales/tr.json +29 -12
  237. package/dist/locales/zh.json +29 -12
  238. package/dist/patterns/anamnesis/index.js +1 -1
  239. package/dist/patterns/calendar/index.js +1 -1
  240. package/dist/patterns/forgot-password-form/index.js +1 -1
  241. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
  242. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts.map +1 -1
  243. package/dist/patterns/help-me-write-templates/index.js +8 -7
  244. package/dist/patterns/help-me-write-templates/index.js.map +1 -1
  245. package/dist/patterns/login-form/index.js +1 -1
  246. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  247. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  248. package/dist/patterns/registration-form/index.js +1 -1
  249. package/dist/patterns/signature-request/index.js +1 -1
  250. package/dist/tokens.css +1 -1
  251. package/package.json +1 -1
  252. package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
  253. package/dist/_chunks/ai-credits-notice-pK9BOmEz.js.map +0 -1
  254. package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
  255. package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js.map +0 -1
  256. package/dist/_chunks/chart-CIzXxNeM.js +0 -1322
  257. package/dist/_chunks/chart-CIzXxNeM.js.map +0 -1
  258. package/dist/_chunks/heatmap-BxRHM8Et.js +0 -2865
  259. package/dist/_chunks/heatmap-BxRHM8Et.js.map +0 -1
  260. package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
  261. package/dist/_chunks/help-me-write-templates-DFmqnsAa.js.map +0 -1
  262. package/dist/_chunks/patient-field-row-CBXhlfGD.js.map +0 -1
  263. package/dist/_chunks/voice-control-panel-C0BfY23Y.js +0 -1009
  264. package/dist/_chunks/voice-control-panel-C0BfY23Y.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit-debug",
3
- "version": "1.65.0",
3
+ "version": "1.67.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe. (debug build — identical runtime to @alfadocs/ui-kit, ships source maps for symbolication).",
6
6
  "license": "BUSL-1.1",
@@ -1,90 +0,0 @@
1
- import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import { c as x } from "./index-D2ZczOXr.js";
4
- import { useTranslation as v } from "react-i18next";
5
- import { B as l } from "./button-D-MQxsA_.js";
6
- import { P as w } from "./progress-D_g_Sl2g.js";
7
- import { H as o } from "./hover-card-CTNhQXWS.js";
8
- const y = x("ds:flex ds:flex-col ds:items-start", {
9
- variants: {
10
- mode: {
11
- included: "",
12
- bundles: ""
13
- }
14
- },
15
- defaultVariants: {
16
- mode: "included"
17
- }
18
- }), k = f((i, m) => {
19
- const { t: e, i18n: u } = v("ui"), { allowance: s, className: C, mode: t, ...N } = i, {
20
- onLearnMore: D,
21
- onDismiss: B,
22
- onViewBundles: L,
23
- onSeeCosts: M,
24
- ...h
25
- } = N, a = !!(s && s.limit > 0), r = a && (s != null && s.resetsOn) ? new Intl.DateTimeFormat(u.language, {
26
- day: "numeric",
27
- month: "long"
28
- }).format(s.resetsOn) : void 0, c = a ? e("aiCreditsNotice.included.allowance", {
29
- remaining: s.remaining,
30
- limit: s.limit
31
- }) : void 0, b = t === "included" ? e("aiCreditsNotice.included.heading") : a ? e("aiCreditsNotice.bundles.headingWithAllowance", {
32
- remaining: s.remaining,
33
- limit: s.limit
34
- }) : e("aiCreditsNotice.bundles.eyebrow"), g = t === "included" ? e("aiCreditsNotice.included.body") : a ? e("aiCreditsNotice.bundles.body", { limit: s.limit }) : e("aiCreditsNotice.bundles.bodyGeneric");
35
- return /* @__PURE__ */ d(
36
- "div",
37
- {
38
- ...h,
39
- ref: m,
40
- "data-component": "ai-credits-notice",
41
- "data-mode": t,
42
- className: y({ mode: t, className: C }),
43
- children: [
44
- /* @__PURE__ */ n(o.Eyebrow, { children: e(t === "included" ? "aiCreditsNotice.included.eyebrow" : "aiCreditsNotice.bundles.eyebrow") }),
45
- /* @__PURE__ */ n(o.Heading, { children: b }),
46
- /* @__PURE__ */ d(o.Body, { children: [
47
- /* @__PURE__ */ n("p", { className: "ds:m-0", children: g }),
48
- t === "included" && a ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[margin-block-start:var(--spacing-sm)]", children: [
49
- /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ n("span", { className: "type-label", children: c }) }),
50
- /* @__PURE__ */ n(
51
- w,
52
- {
53
- value: Math.max(0, s.limit - s.remaining),
54
- max: s.limit,
55
- size: "sm",
56
- ariaLabel: e("aiCreditsNotice.included.eyebrow"),
57
- ariaValueText: c
58
- }
59
- ),
60
- r ? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: e("aiCreditsNotice.included.resetsOn", { date: r }) }) : null
61
- ] }) : null
62
- ] }),
63
- t === "included" ? i.onLearnMore || i.onDismiss ? /* @__PURE__ */ d(o.Footer, { children: [
64
- i.onDismiss ? /* @__PURE__ */ n(
65
- l,
66
- {
67
- intent: "link",
68
- size: "sm",
69
- onClick: i.onDismiss,
70
- className: "ds:me-auto",
71
- children: e("aiCreditsNotice.dismiss")
72
- }
73
- ) : null,
74
- i.onLearnMore ? /* @__PURE__ */ n(l, { intent: "link", size: "sm", onClick: i.onLearnMore, children: e("aiCreditsNotice.included.learnMore") }) : null
75
- ] }) : null : /* @__PURE__ */ d(o.Footer, { children: [
76
- i.onSeeCosts || i.onDismiss ? /* @__PURE__ */ d("div", { className: "ds:me-auto ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
77
- i.onSeeCosts ? /* @__PURE__ */ n(l, { intent: "link", size: "sm", onClick: i.onSeeCosts, children: e("aiCreditsNotice.bundles.seeCosts") }) : null,
78
- i.onDismiss ? /* @__PURE__ */ n(l, { intent: "link", size: "sm", onClick: i.onDismiss, children: e("aiCreditsNotice.dismiss") }) : null
79
- ] }) : null,
80
- /* @__PURE__ */ n(l, { intent: "tonal", size: "sm", onClick: i.onViewBundles, children: e("aiCreditsNotice.bundles.viewBundles") })
81
- ] })
82
- ]
83
- }
84
- );
85
- });
86
- k.displayName = "AiCreditsNotice";
87
- export {
88
- k as A
89
- };
90
- //# sourceMappingURL=ai-credits-notice-pK9BOmEz.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-credits-notice-pK9BOmEz.js","sources":["../../src/components/ai-credits-notice/ai-credits-notice.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { Button } from '../button';\nimport { Progress } from '../progress';\nimport { HoverCard } from '../hover-card';\n\n/* -------------------------------------------------------------------- */\n/* AiCreditsNotice */\n/* */\n/* The body of the hover card every AI action trigger in the kit shows: */\n/* AI features cost nothing extra today ('included'), or — once paid */\n/* credit bundles ship with a free tier underneath — a nudge toward */\n/* them ('bundles'). The host decides which by passing `mode`; nothing */\n/* here reaches a backend or owns the upsell page itself — `onViewBundles` */\n/* is a seam, not a router. */\n/* */\n/* Renders INSIDE a `HoverCard.Content` (it uses `HoverCard.Eyebrow` / */\n/* `.Heading` / `.Body` / `.Footer`, the same composition `AppointmentPeek` */\n/* uses) — it never renders its own `HoverCard.Root`/`Trigger`. Callers */\n/* wrap it: `<HoverCard><HoverCard.Trigger asChild>{button}</HoverCard.Trigger>` */\n/* `<HoverCard.Content side=\"bottom\" align=\"start\" size=\"sm\"><AiCreditsNotice … /></HoverCard.Content></HoverCard>`. */\n/* -------------------------------------------------------------------- */\n\nconst rootVariants = cva('ds:flex ds:flex-col ds:items-start', {\n variants: {\n mode: {\n included: '',\n bundles: '',\n },\n },\n defaultVariants: {\n mode: 'included',\n },\n});\n\n/** The practice's current AI allowance, when the host tracks one. */\nexport interface AiCreditsNoticeAllowance {\n /** AI actions left in the current period. */\n remaining: number;\n /** The monthly cap. */\n limit: number;\n /** When the allowance next resets. Omit if unknown. */\n resetsOn?: Date;\n}\n\ninterface AiCreditsNoticeSharedProps {\n /**\n * The practice's current AI allowance. In `included` mode it renders as an\n * optional usage line + meter; in `bundles` mode it drives the heading\n * (\"{{remaining}} of {{limit}} credits\") and the free-tier line in the\n * body. Omit either mode's allowance to fall back to a generic line.\n */\n allowance?: AiCreditsNoticeAllowance;\n className?: string;\n}\n\nexport interface AiCreditsNoticeIncludedProps extends AiCreditsNoticeSharedProps {\n mode: 'included';\n /** Shows a quiet \"Learn more\" link — wire it once the credits upsell page ships. */\n onLearnMore?: () => void;\n /**\n * Shows a quiet \"Don't show again\" link. The host decides what \"again\"\n * means — typically stop rendering `aiCreditsNotice` on the editor for the\n * rest of this mount, and persist the choice if it should survive a\n * reload (see the component's docs for a `usePersistentState` example).\n * Use a storage key scoped to the mode: switching from `included` to\n * `bundles` is a different message and should show once more.\n */\n onDismiss?: () => void;\n}\n\nexport interface AiCreditsNoticeBundlesProps extends AiCreditsNoticeSharedProps {\n mode: 'bundles';\n /** Opens the host's AI-credits bundle picker. The kit never builds that page itself. */\n onViewBundles: () => void;\n /** Shows a quiet \"What each action costs\" link. */\n onSeeCosts?: () => void;\n /** Shows a quiet \"Don't show again\" link. See the `included` prop of the\n * same name — the same mode-scoped-key guidance applies here too. */\n onDismiss?: () => void;\n}\n\nexport type AiCreditsNoticeProps =\n | AiCreditsNoticeIncludedProps\n | AiCreditsNoticeBundlesProps;\n\n/* Every callback either mode can carry, all optional at once. The footer\n reads them from `props`; this shape exists only so the component can\n destructure them OUT of the `rest` it spreads onto the root `<div>`.\n React resolves any `on[A-Z]…` prop as a DOM event, so leaving them in\n `rest` logged \"Unknown event handler property: onLearnMore\" (and one per\n sibling) on every render — and the editor renders this card on every AI\n trigger, so the warnings repeated on every hover (caught in review on\n #180). A cast, not four narrowed reads: `props` is a discriminated union\n and TypeScript refuses `onViewBundles` off the `included` arm. */\ntype AiCreditsNoticeCallbacks = Partial<\n Pick<AiCreditsNoticeIncludedProps, 'onLearnMore' | 'onDismiss'> &\n Pick<AiCreditsNoticeBundlesProps, 'onViewBundles' | 'onSeeCosts'>\n>;\n\nexport const AiCreditsNotice = forwardRef<\n HTMLDivElement,\n AiCreditsNoticeProps & Omit<HTMLAttributes<HTMLDivElement>, 'className'>\n>((props, ref) => {\n const { t, i18n } = useTranslation('ui');\n // Two steps, not one. The first reads straight off `props` so that\n // `mode === 'included'` below still narrows `props` itself (TypeScript's\n // aliased-discriminant narrowing) — destructuring off a cast breaks that\n // link and the footer's `props.onLearnMore` stops compiling. The second\n // strips the callbacks out of what is left, so `rest` reaches the DOM node\n // carrying only real HTML attributes. See `AiCreditsNoticeCallbacks`.\n const { allowance, className, mode, ...restWithCallbacks } = props;\n const {\n onLearnMore: _onLearnMore,\n onDismiss: _onDismiss,\n onViewBundles: _onViewBundles,\n onSeeCosts: _onSeeCosts,\n ...rest\n } = restWithCallbacks as typeof restWithCallbacks & AiCreditsNoticeCallbacks;\n\n // A `limit` of 0 (a host still loading, or a plan with no allowance at\n // all) would divide by zero in the Progress meter — treat it the same as\n // no allowance rather than rendering a broken 0/0 meter.\n const hasUsableAllowance = Boolean(allowance && allowance.limit > 0);\n\n const resetsOnText =\n hasUsableAllowance && allowance?.resetsOn\n ? new Intl.DateTimeFormat(i18n.language, {\n day: 'numeric',\n month: 'long',\n }).format(allowance.resetsOn)\n : undefined;\n\n const allowanceLine = hasUsableAllowance\n ? t('aiCreditsNotice.included.allowance', {\n remaining: allowance!.remaining,\n limit: allowance!.limit,\n })\n : undefined;\n\n // `hasUsableAllowance`, not a bare `allowance` check: a host still loading\n // sends `{ remaining: 0, limit: 0 }`, which read literally becomes \"0 of 0\n // credits\" and \"the free tier includes 0 actions a month\" — two sentences\n // that are wrong rather than merely vague. `included` already treated a\n // zero limit as no allowance; `bundles` now agrees and falls back to the\n // generic lines (caught in review on #180).\n const heading =\n mode === 'included'\n ? t('aiCreditsNotice.included.heading')\n : hasUsableAllowance\n ? t('aiCreditsNotice.bundles.headingWithAllowance', {\n remaining: allowance!.remaining,\n limit: allowance!.limit,\n })\n : t('aiCreditsNotice.bundles.eyebrow');\n\n const body =\n mode === 'included'\n ? t('aiCreditsNotice.included.body')\n : hasUsableAllowance\n ? t('aiCreditsNotice.bundles.body', { limit: allowance!.limit })\n : t('aiCreditsNotice.bundles.bodyGeneric');\n\n return (\n <div\n {...rest}\n ref={ref}\n // AFTER `rest`, not before: these are the required agent-readiness DOM\n // hooks (see 26-agent-readiness.mdx §A3) and must always win over\n // anything a caller passes through the HTMLAttributes spread — a\n // caller-supplied `data-component` must never be able to replace the\n // component's own marker.\n data-component=\"ai-credits-notice\"\n data-mode={mode}\n className={rootVariants({ mode, className })}\n >\n <HoverCard.Eyebrow>\n {mode === 'included'\n ? t('aiCreditsNotice.included.eyebrow')\n : t('aiCreditsNotice.bundles.eyebrow')}\n </HoverCard.Eyebrow>\n <HoverCard.Heading>{heading}</HoverCard.Heading>\n <HoverCard.Body>\n <p className=\"ds:m-0\">{body}</p>\n {mode === 'included' && hasUsableAllowance ? (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[margin-block-start:var(--spacing-sm)]\">\n <div className=\"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]\">\n <span className=\"type-label\">{allowanceLine}</span>\n </div>\n <Progress\n value={Math.max(0, allowance!.limit - allowance!.remaining)}\n max={allowance!.limit}\n size=\"sm\"\n ariaLabel={t('aiCreditsNotice.included.eyebrow')}\n ariaValueText={allowanceLine}\n />\n {resetsOnText ? (\n <p className=\"ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]\">\n {t('aiCreditsNotice.included.resetsOn', { date: resetsOnText })}\n </p>\n ) : null}\n </div>\n ) : null}\n </HoverCard.Body>\n {mode === 'included' ? (\n props.onLearnMore || props.onDismiss ? (\n <HoverCard.Footer>\n {props.onDismiss ? (\n <Button\n intent=\"link\"\n size=\"sm\"\n onClick={props.onDismiss}\n className=\"ds:me-auto\"\n >\n {t('aiCreditsNotice.dismiss')}\n </Button>\n ) : null}\n {props.onLearnMore ? (\n <Button intent=\"link\" size=\"sm\" onClick={props.onLearnMore}>\n {t('aiCreditsNotice.included.learnMore')}\n </Button>\n ) : null}\n </HoverCard.Footer>\n ) : null\n ) : (\n <HoverCard.Footer>\n {props.onSeeCosts || props.onDismiss ? (\n <div className=\"ds:me-auto ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]\">\n {props.onSeeCosts ? (\n <Button intent=\"link\" size=\"sm\" onClick={props.onSeeCosts}>\n {t('aiCreditsNotice.bundles.seeCosts')}\n </Button>\n ) : null}\n {props.onDismiss ? (\n <Button intent=\"link\" size=\"sm\" onClick={props.onDismiss}>\n {t('aiCreditsNotice.dismiss')}\n </Button>\n ) : null}\n </div>\n ) : null}\n <Button intent=\"tonal\" size=\"sm\" onClick={props.onViewBundles}>\n {t('aiCreditsNotice.bundles.viewBundles')}\n </Button>\n </HoverCard.Footer>\n )}\n </div>\n );\n});\nAiCreditsNotice.displayName = 'AiCreditsNotice';\n"],"names":["rootVariants","cva","AiCreditsNotice","forwardRef","props","ref","t","i18n","useTranslation","allowance","className","mode","restWithCallbacks","_onLearnMore","_onDismiss","_onViewBundles","_onSeeCosts","rest","hasUsableAllowance","resetsOnText","allowanceLine","heading","body","jsxs","jsx","HoverCard","Progress","Button"],"mappings":"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"}
@@ -1,17 +0,0 @@
1
- const i = {
2
- id: "ai-credits-notice",
3
- capabilities: [],
4
- state: {},
5
- actions: {},
6
- domHooks: {
7
- root: {
8
- attr: "data-component",
9
- value: "ai-credits-notice",
10
- description: 'Marks the element as a kit AiCreditsNotice card body. Carries a sibling `data-mode="included|bundles"` attribute for which notice is showing.'
11
- }
12
- }
13
- };
14
- export {
15
- i as a
16
- };
17
- //# sourceMappingURL=ai-credits-notice.agent-C9L7orrP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-credits-notice.agent-C9L7orrP.js","sources":["../../src/components/ai-credits-notice/ai-credits-notice.agent.ts"],"sourcesContent":["/* -------------------------------------------------------------------- */\n/* Agent adapter — AiCreditsNotice. */\n/* */\n/* Pure presentation: the body of a hover card explaining whether AI is */\n/* free today ('included') or metered ('bundles'). Its actions */\n/* (`onLearnMore` / `onViewBundles` / `onSeeCosts`) are host-supplied */\n/* seams with no return value, so the kit exposes only the DOM hooks a */\n/* future runtime would click through — no imperative handle to register. */\n/* -------------------------------------------------------------------- */\n\nimport type { AgentAdapter } from '../../agent/types';\n\nexport const aiCreditsNoticeAgent: AgentAdapter = {\n id: 'ai-credits-notice',\n capabilities: [],\n state: {},\n actions: {},\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'ai-credits-notice',\n description:\n 'Marks the element as a kit AiCreditsNotice card body. Carries a ' +\n 'sibling `data-mode=\"included|bundles\"` attribute for which notice is showing.',\n },\n },\n};\n"],"names":["aiCreditsNoticeAgent"],"mappings":"AAYO,MAAMA,IAAqC;AAAA,EAChD,IAAI;AAAA,EACJ,cAAc,CAAA;AAAA,EACd,OAAO,CAAA;AAAA,EACP,SAAS,CAAA;AAAA,EACT,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aACE;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}