@alfadocs/ui-kit 0.64.0 → 0.66.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 (259) hide show
  1. package/dist/_chunks/{agenda-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
  2. package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
  3. package/dist/_chunks/{ai-prompt-input-Dx8eXoPm.js → ai-prompt-input-BwEACCPm.js} +2 -2
  4. package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-DAfaW8eA.js} +65 -56
  5. package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
  6. package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
  7. package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
  9. package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
  10. package/dist/_chunks/{audio-recorder-CdXuT9ln.js → audio-recorder-DjXLP4aF.js} +2 -2
  11. package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
  12. package/dist/_chunks/{bishop-score-CzjSx-dm.js → bishop-score-DPN4Ched.js} +2 -2
  13. package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-DuUneHuZ.js} +2 -2
  14. package/dist/_chunks/{booking-ChfvWy3P.js → booking-L8-YP8BJ.js} +148 -148
  15. package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
  16. package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
  17. package/dist/_chunks/{care-plan-card-DhZNoXs4.js → care-plan-card-D42WD4-T.js} +2 -2
  18. package/dist/_chunks/{care-plan-entry-card-DW70yBOD.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
  19. package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
  20. package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
  21. package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
  22. package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
  23. package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
  24. package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
  25. package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-D6LTmtQt.js} +4 -4
  26. package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
  27. package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
  28. package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
  29. package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
  30. package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
  31. package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
  32. package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-CIG194vq.js} +4 -4
  33. package/dist/_chunks/{editable-currency-cell-renderer-BQgaKFCz.js → editable-currency-cell-renderer-f3d0Rhue.js} +535 -535
  34. package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
  35. package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
  36. package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
  37. package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-Xf8-ZoDy.js} +2 -2
  38. package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
  39. package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
  40. package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
  41. package/dist/_chunks/{gestational-age-calculator-D85E8lGN.js → gestational-age-calculator-BGsZaWXW.js} +6 -6
  42. package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-LH5i6oM7.js} +3 -3
  43. package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
  44. package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
  45. package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
  46. package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
  47. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  48. package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-njqBthzT.js} +115 -125
  49. package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
  50. package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
  51. package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
  52. package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
  53. package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
  54. package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-Cou6XnMJ.js} +5 -5
  55. package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
  56. package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
  57. package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
  58. package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
  59. package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
  60. package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
  61. package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
  62. package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-Tgpv0HND.js} +4 -4
  63. package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
  64. package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
  65. package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
  66. package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
  67. package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
  68. package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
  69. package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
  70. package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
  71. package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
  72. package/dist/_chunks/{pregnancy-dating-7NUaAfob.js → pregnancy-dating-f9aJbiAk.js} +6 -6
  73. package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-BMRBeA8V.js} +2 -2
  74. package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
  75. package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
  76. package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
  77. package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
  78. package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
  79. package/dist/_chunks/rich-text-editor-B5XQNxe8.js +1586 -0
  80. package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
  81. package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
  82. package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
  83. package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
  84. package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
  85. package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-BFwbx74W.js} +12 -1
  86. package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
  87. package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
  88. package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
  89. package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
  90. package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
  91. package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
  92. package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
  93. package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
  94. package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
  95. package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
  96. package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
  97. package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
  98. package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
  99. package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
  100. package/dist/_chunks/{tooth-scheme-CiphQaON.js → tooth-scheme-BIx1O2aJ.js} +3 -3
  101. package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
  102. package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
  103. package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
  104. package/dist/_chunks/{unit-converter-BIbXHIQA.js → unit-converter-C1V3ACM9.js} +2 -2
  105. package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
  106. package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-Bt4Of5dT.js} +137 -149
  107. package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
  108. package/dist/agent-catalog.json +32 -1
  109. package/dist/components/agenda-tray/index.js +1 -1
  110. package/dist/components/ai-consent-banner/index.js +1 -1
  111. package/dist/components/ai-prompt-input/index.js +1 -1
  112. package/dist/components/ai-tools-rail/index.js +1 -1
  113. package/dist/components/anamnesis-card/index.js +1 -1
  114. package/dist/components/appointment-card/index.js +1 -1
  115. package/dist/components/audio-recorder/index.js +1 -1
  116. package/dist/components/autocomplete/index.js +1 -1
  117. package/dist/components/bishop-score/index.js +1 -1
  118. package/dist/components/bmi-calculator/index.js +1 -1
  119. package/dist/components/booking/index.js +1 -1
  120. package/dist/components/button/index.js +1 -1
  121. package/dist/components/calendar/index.js +1 -1
  122. package/dist/components/care-plan-card/index.js +1 -1
  123. package/dist/components/care-plan-entry-card/index.js +1 -1
  124. package/dist/components/carousel/index.js +1 -1
  125. package/dist/components/chat-input/index.js +1 -1
  126. package/dist/components/chat-message/index.js +1 -1
  127. package/dist/components/contact-profile-card/index.js +1 -1
  128. package/dist/components/cycle-calculator/index.js +1 -1
  129. package/dist/components/data-table/index.js +1 -1
  130. package/dist/components/date-picker/index.js +1 -1
  131. package/dist/components/date-range-picker/index.js +1 -1
  132. package/dist/components/date-time-picker/index.js +1 -1
  133. package/dist/components/description-list/index.js +1 -1
  134. package/dist/components/due-date-calculator/index.js +2 -2
  135. package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
  136. package/dist/components/editor-overlay/index.d.ts +3 -0
  137. package/dist/components/editor-overlay/index.js +5 -0
  138. package/dist/components/fetal-weight/index.js +1 -1
  139. package/dist/components/fiscal-code-input/index.js +1 -1
  140. package/dist/components/freemium-paywall/index.js +1 -1
  141. package/dist/components/gestational-age-calculator/index.js +1 -1
  142. package/dist/components/hcg-doubling/index.js +1 -1
  143. package/dist/components/header/index.js +1 -1
  144. package/dist/components/header-settings/index.js +1 -1
  145. package/dist/components/icon-button/index.js +1 -1
  146. package/dist/components/index.d.ts +2 -0
  147. package/dist/components/key-value-pair/index.js +1 -1
  148. package/dist/components/locale-picker/index.js +1 -1
  149. package/dist/components/message-card/index.js +1 -1
  150. package/dist/components/message-tray/index.js +1 -1
  151. package/dist/components/multi-select/index.js +1 -1
  152. package/dist/components/notification-card/index.js +1 -1
  153. package/dist/components/notification-tray/index.js +1 -1
  154. package/dist/components/patient-search/index.js +1 -1
  155. package/dist/components/patient-summary-card/index.js +1 -1
  156. package/dist/components/payment-card/index.js +1 -1
  157. package/dist/components/payment-form/index.js +1 -1
  158. package/dist/components/pdf-viewer/index.js +1 -1
  159. package/dist/components/periodontal-chart-card/index.js +1 -1
  160. package/dist/components/phone-input/index.js +1 -1
  161. package/dist/components/phone-input/phone-input.d.ts +9 -0
  162. package/dist/components/popover/index.js +1 -1
  163. package/dist/components/practice-results/index.js +1 -1
  164. package/dist/components/pregnancy-dating/index.js +1 -1
  165. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  166. package/dist/components/privacy-lock/index.js +1 -1
  167. package/dist/components/product-hub-tray/index.js +1 -1
  168. package/dist/components/public-header/index.js +1 -1
  169. package/dist/components/reviews-panel/index.js +1 -1
  170. package/dist/components/rich-text-editor/editor-toolbar.d.ts +26 -0
  171. package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
  172. package/dist/components/rich-text-editor/index.js +1 -1
  173. package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
  174. package/dist/components/search-bar/index.js +1 -1
  175. package/dist/components/search-input/index.js +1 -1
  176. package/dist/components/sheet/index.js +1 -1
  177. package/dist/components/sidebar/index.js +1 -1
  178. package/dist/components/sign-document/index.js +1 -1
  179. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  180. package/dist/components/signature-field/index.js +1 -1
  181. package/dist/components/slot-grid/index.js +1 -1
  182. package/dist/components/smart-date/index.d.ts +3 -0
  183. package/dist/components/smart-date/index.js +5 -0
  184. package/dist/components/smart-date/smart-date.d.ts +32 -0
  185. package/dist/components/social-sign-in-button/index.js +1 -1
  186. package/dist/components/spinner/index.js +1 -1
  187. package/dist/components/streaming-text/index.js +1 -1
  188. package/dist/components/task-tray/index.js +1 -1
  189. package/dist/components/theme-toggle/index.js +1 -1
  190. package/dist/components/toast/index.js +1 -1
  191. package/dist/components/tooth-scheme/index.js +1 -1
  192. package/dist/components/transcript-panel/index.js +1 -1
  193. package/dist/components/unit-converter/index.js +1 -1
  194. package/dist/components/wallet-pay-button/index.js +1 -1
  195. package/dist/components/workflow/index.js +1 -1
  196. package/dist/i18n/locales/ar.d.ts +60 -0
  197. package/dist/i18n/locales/ar.js +61 -1
  198. package/dist/i18n/locales/de.d.ts +60 -0
  199. package/dist/i18n/locales/de.js +61 -1
  200. package/dist/i18n/locales/el.d.ts +60 -0
  201. package/dist/i18n/locales/el.js +61 -1
  202. package/dist/i18n/locales/en.d.ts +60 -0
  203. package/dist/i18n/locales/en.js +65 -1
  204. package/dist/i18n/locales/es.d.ts +60 -0
  205. package/dist/i18n/locales/es.js +61 -1
  206. package/dist/i18n/locales/fr.d.ts +60 -0
  207. package/dist/i18n/locales/fr.js +61 -1
  208. package/dist/i18n/locales/hi.d.ts +60 -0
  209. package/dist/i18n/locales/hi.js +61 -1
  210. package/dist/i18n/locales/it.d.ts +60 -0
  211. package/dist/i18n/locales/it.js +61 -1
  212. package/dist/i18n/locales/ja.d.ts +60 -0
  213. package/dist/i18n/locales/ja.js +61 -1
  214. package/dist/i18n/locales/nl.d.ts +60 -0
  215. package/dist/i18n/locales/nl.js +61 -1
  216. package/dist/i18n/locales/pl.d.ts +60 -0
  217. package/dist/i18n/locales/pl.js +61 -1
  218. package/dist/i18n/locales/pt.d.ts +60 -0
  219. package/dist/i18n/locales/pt.js +61 -1
  220. package/dist/i18n/locales/ro.d.ts +60 -0
  221. package/dist/i18n/locales/ro.js +61 -1
  222. package/dist/i18n/locales/ru.d.ts +60 -0
  223. package/dist/i18n/locales/ru.js +61 -1
  224. package/dist/i18n/locales/sq.d.ts +60 -0
  225. package/dist/i18n/locales/sq.js +61 -1
  226. package/dist/i18n/locales/sv.d.ts +60 -0
  227. package/dist/i18n/locales/sv.js +61 -1
  228. package/dist/i18n/locales/tr.d.ts +60 -0
  229. package/dist/i18n/locales/tr.js +61 -1
  230. package/dist/i18n/locales/zh.d.ts +60 -0
  231. package/dist/i18n/locales/zh.js +61 -1
  232. package/dist/index.js +494 -490
  233. package/dist/locales/ar.json +61 -1
  234. package/dist/locales/de.json +61 -1
  235. package/dist/locales/el.json +61 -1
  236. package/dist/locales/en.json +61 -1
  237. package/dist/locales/es.json +61 -1
  238. package/dist/locales/fr.json +61 -1
  239. package/dist/locales/hi.json +61 -1
  240. package/dist/locales/it.json +61 -1
  241. package/dist/locales/ja.json +61 -1
  242. package/dist/locales/nl.json +61 -1
  243. package/dist/locales/pl.json +61 -1
  244. package/dist/locales/pt.json +61 -1
  245. package/dist/locales/ro.json +61 -1
  246. package/dist/locales/ru.json +61 -1
  247. package/dist/locales/sq.json +61 -1
  248. package/dist/locales/sv.json +61 -1
  249. package/dist/locales/tr.json +61 -1
  250. package/dist/locales/zh.json +61 -1
  251. package/dist/patterns/alia-assistant/index.js +1 -1
  252. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  253. package/dist/patterns/patient-shell/index.js +1 -1
  254. package/dist/tokens.css +36 -22
  255. package/package.json +10 -1
  256. package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
  257. package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
  258. package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
  259. package/dist/_chunks/subDays-Bs00akhK.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "0.64.0",
3
+ "version": "0.66.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",
@@ -251,6 +251,10 @@
251
251
  "types": "./dist/components/due-date-calculator/index.d.ts",
252
252
  "import": "./dist/components/due-date-calculator/index.js"
253
253
  },
254
+ "./editor-overlay": {
255
+ "types": "./dist/components/editor-overlay/index.d.ts",
256
+ "import": "./dist/components/editor-overlay/index.js"
257
+ },
254
258
  "./email-input": {
255
259
  "types": "./dist/components/email-input/index.d.ts",
256
260
  "import": "./dist/components/email-input/index.js"
@@ -511,6 +515,10 @@
511
515
  "types": "./dist/components/slot-grid/index.d.ts",
512
516
  "import": "./dist/components/slot-grid/index.js"
513
517
  },
518
+ "./smart-date": {
519
+ "types": "./dist/components/smart-date/index.d.ts",
520
+ "import": "./dist/components/smart-date/index.js"
521
+ },
514
522
  "./social-sign-in-button": {
515
523
  "types": "./dist/components/social-sign-in-button/index.d.ts",
516
524
  "import": "./dist/components/social-sign-in-button/index.js"
@@ -891,6 +899,7 @@
891
899
  "@vitest/browser-playwright": "^4.1.4",
892
900
  "@vitest/coverage-v8": "^4.1.4",
893
901
  "ag-grid-community": "^35.2.1",
902
+ "ag-grid-enterprise": "^35.2.1",
894
903
  "ag-grid-react": "^35.2.1",
895
904
  "apexcharts": "^5.10.1",
896
905
  "autoprefixer": "^10.5.0",
@@ -1,70 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import { B as p } from "./button-DD_0Xdmr.js";
4
- import { c as b } from "./index-D2ZczOXr.js";
5
- import { T as h } from "./tooltip-DvmfrNvB.js";
6
- const g = b(
7
- [
8
- "ds:p-0",
9
- // Active-state styling when an IconButton participates in an
10
- // IconButtonGroup's `toggle-single` / `toggle-multi` mode. The
11
- // group sets `aria-checked="true"` (radiogroup) or
12
- // `aria-pressed="true"` (toolbar/group) on the selected child;
13
- // without these utility classes the selection wouldn't read at a
14
- // glance — see HeaderSettings' Appearance row + ThemeToggle's
15
- // split variant.
16
- "ds:aria-checked:bg-muted ds:aria-checked:text-foreground",
17
- "ds:aria-checked:border-primary",
18
- "ds:aria-pressed:bg-muted ds:aria-pressed:text-foreground",
19
- "ds:aria-pressed:border-primary"
20
- ].join(" "),
21
- {
22
- variants: {
23
- size: {
24
- sm: "ds:w-8 ds:h-8",
25
- md: "ds:w-10 ds:h-10",
26
- lg: "ds:w-12 ds:h-12"
27
- }
28
- },
29
- defaultVariants: {
30
- size: "md"
31
- }
32
- }
33
- ), x = f(
34
- ({
35
- icon: d,
36
- size: s,
37
- intent: i = "outline",
38
- className: n,
39
- tooltip: r,
40
- flipIconInRtl: o = !1,
41
- ...e
42
- }, c) => {
43
- const m = e["aria-label"] || r, l = s === "sm" ? "ds:size-4" : s === "lg" ? "ds:size-5" : "ds:size-[18px]", u = o ? "ds:rtl:rotate-180" : "", t = /* @__PURE__ */ a(
44
- p,
45
- {
46
- ref: c,
47
- size: s,
48
- intent: i,
49
- className: g({ size: s, className: n }),
50
- "aria-label": m,
51
- "data-component": "icon-button",
52
- ...e,
53
- children: /* @__PURE__ */ a(
54
- "span",
55
- {
56
- "aria-hidden": "true",
57
- className: `ds:inline-flex ds:items-center ds:justify-center ${l} ${u}`.trim(),
58
- children: d
59
- }
60
- )
61
- }
62
- );
63
- return r ? /* @__PURE__ */ a(h, { label: r, children: t }) : t;
64
- }
65
- );
66
- x.displayName = "IconButton";
67
- export {
68
- x as I
69
- };
70
- //# sourceMappingURL=icon-button-CKEOrN37.js.map
@@ -1,525 +0,0 @@
1
- import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as Fe, useContext as Ee, useMemo as h, useState as E, useRef as j, useEffect as ne, useCallback as oe } from "react";
3
- import { u as je } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
4
- import * as D from "@radix-ui/react-popover";
5
- import { R as De, _ as y } from "./index-4xgbg-sn.js";
6
- import { c as G } from "./index-D2ZczOXr.js";
7
- import { useTranslation as Te } from "react-i18next";
8
- import { getCountries as Ae, parsePhoneNumberFromString as T, AsYouType as H, getCountryCallingCode as Be } from "libphonenumber-js/min";
9
- import { u as Le, F as Ke } from "./form-field-context-B3APVHKx.js";
10
- import { c as $e } from "./compose-refs-C0k0tdqF.js";
11
- import { n as _ } from "./normalize-diacritics-BNGbFNlJ.js";
12
- import { a as re } from "./flag-DZ6V7-hU.js";
13
- import { u as Me } from "./registry-nPAVE19X.js";
14
- import { C as qe } from "./chevron-down-BX_NP2Yh.js";
15
- const He = {
16
- id: "phone-input",
17
- capabilities: ["edit_inline"],
18
- state: {
19
- value: {
20
- type: "string",
21
- descriptionKey: "ui.agent.phoneInput.state.value",
22
- description: "Current E.164 phone number, or empty string when not yet valid.",
23
- read: (n) => n.getValue()
24
- },
25
- isEmpty: {
26
- type: "boolean",
27
- descriptionKey: "ui.agent.phoneInput.state.isEmpty",
28
- description: "Whether the input has no value.",
29
- read: (n) => n.getValue() === ""
30
- }
31
- },
32
- actions: {
33
- set_value: {
34
- safety: "write",
35
- argsType: "{ value: string }",
36
- descriptionKey: "ui.agent.phoneInput.actions.setValue",
37
- description: "Replace the phone number (E.164 or national format; parser will infer country).",
38
- invoke: (n, a) => {
39
- n.setValue(a.value);
40
- }
41
- },
42
- clear: {
43
- safety: "destructive",
44
- descriptionKey: "ui.agent.phoneInput.actions.clear",
45
- description: "Empty the input. Loses any typed value.",
46
- invoke: (n) => {
47
- n.clear();
48
- }
49
- },
50
- focus: {
51
- safety: "read",
52
- descriptionKey: "ui.agent.phoneInput.actions.focus",
53
- description: "Move keyboard focus to the phone-number input.",
54
- invoke: (n) => {
55
- n.focus();
56
- }
57
- }
58
- },
59
- domHooks: {
60
- root: {
61
- attr: "data-component",
62
- value: "phone-input",
63
- description: "Marks the PhoneInput wrapper."
64
- },
65
- instanceId: {
66
- attr: "data-component-id",
67
- sourceProp: "id",
68
- description: "Sourced from the id prop."
69
- }
70
- }
71
- }, _e = G(
72
- [
73
- "ds:group ds:relative ds:inline-flex ds:items-stretch ds:w-full",
74
- "ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-input",
75
- "ds:shadow-[var(--shadow-input)]",
76
- "ds:text-foreground",
77
- "ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
78
- "ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
79
- "ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
80
- "ds:forced-colors:focus-within:outline-[CanvasText]",
81
- "ds:has-[:disabled]:cursor-not-allowed ds:has-[:disabled]:opacity-50"
82
- ].join(" "),
83
- {
84
- variants: {
85
- size: {
86
- sm: "ds:h-8 ds:text-[length:var(--font-size-sm)]",
87
- md: "ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
88
- lg: "ds:h-12 ds:text-[length:var(--font-size-lg)]"
89
- },
90
- tone: {
91
- default: "",
92
- error: "ds:border-destructive ds:focus-within:outline-destructive"
93
- }
94
- },
95
- defaultVariants: {
96
- size: "md",
97
- tone: "default"
98
- }
99
- }
100
- ), Ge = G(
101
- [
102
- "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
103
- "ds:bg-transparent ds:text-foreground",
104
- "ds:border-0 ds:border-e ds:border-e-border",
105
- "ds:rounded-s-[var(--radius-sm)]",
106
- "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
107
- "ds:hover:bg-muted",
108
- "ds:focus:outline-none",
109
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
110
- "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
111
- "ds:forced-colors:focus-visible:outline-[CanvasText]",
112
- "ds:disabled:cursor-not-allowed"
113
- ].join(" "),
114
- {
115
- variants: {
116
- size: {
117
- sm: "ds:ps-3 ds:pe-2",
118
- md: "ds:ps-3 ds:pe-2",
119
- lg: "ds:ps-4 ds:pe-3"
120
- }
121
- },
122
- defaultVariants: { size: "md" }
123
- }
124
- ), Oe = G(
125
- [
126
- "ds:flex-1 ds:min-w-0 ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
127
- "ds:border-0 ds:outline-none",
128
- "ds:disabled:cursor-not-allowed",
129
- "ds:read-only:cursor-default"
130
- ].join(" "),
131
- {
132
- variants: {
133
- size: {
134
- sm: "ds:ps-2 ds:pe-3 ds:text-[length:var(--font-size-sm)]",
135
- md: "ds:ps-2 ds:pe-3 ds:text-[length:var(--font-size-base)]",
136
- lg: "ds:ps-3 ds:pe-4 ds:text-[length:var(--font-size-lg)]"
137
- }
138
- },
139
- defaultVariants: { size: "md" }
140
- }
141
- ), Ue = [
142
- "ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-72",
143
- "ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
144
- "ds:shadow-[var(--shadow-lg)]",
145
- "ds:animate-in ds:fade-in ds:zoom-in-95",
146
- "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out",
147
- "ds:data-[state=closed]:zoom-out-95",
148
- "ds:data-[side=bottom]:slide-in-from-top-2",
149
- "ds:data-[side=top]:slide-in-from-bottom-2",
150
- "ds:motion-reduce:animate-none"
151
- ].join(" "), We = [
152
- "ds:w-full ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
153
- "ds:border-0 ds:border-b ds:border-b-border ds:outline-none",
154
- "ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]",
155
- "ds:focus:outline-none"
156
- ].join(" "), Ye = "ds:max-h-72 ds:overflow-y-auto ds:p-[var(--spacing-xs)]", Ze = [
157
- "ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]",
158
- "ds:rounded-[var(--radius-sm)] ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]",
159
- "ds:text-foreground ds:outline-none ds:select-none",
160
- "ds:data-[highlighted]:bg-muted ds:data-[highlighted]:text-foreground",
161
- "ds:data-[highlighted]:border-s-2 ds:data-[highlighted]:border-s-primary",
162
- "ds:aria-selected:bg-muted"
163
- ].join(" "), ae = [
164
- "ds:ps-3 ds:pe-3 ds:py-1.5",
165
- "type-eyebrow ds:text-muted-foreground"
166
- ].join(" "), Je = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", Qe = {
167
- sm: "ds:size-3.5",
168
- md: "ds:size-4",
169
- lg: "ds:size-5"
170
- }, ie = {
171
- sm: "sm",
172
- md: "md",
173
- lg: "lg"
174
- };
175
- function Xe(n, a) {
176
- let d = 0;
177
- for (let o = 0; o < a && o < n.length; o++)
178
- n[o] >= "0" && n[o] <= "9" && d++;
179
- return d;
180
- }
181
- function et(n, a) {
182
- if (a === 0) return 0;
183
- let d = 0;
184
- for (let o = 0; o < n.length; o++)
185
- if (n[o] >= "0" && n[o] <= "9" && (d++, d === a))
186
- return o + 1;
187
- return n.length;
188
- }
189
- function de(n, a, d, o) {
190
- if (n && a.has(n)) return n;
191
- if (d) {
192
- const f = typeof navigator < "u" ? navigator.language : void 0;
193
- if (f) {
194
- const r = f.match(/-([A-Za-z]{2})/);
195
- if (r) {
196
- const u = r[1].toUpperCase();
197
- if (a.has(u)) return u;
198
- }
199
- }
200
- try {
201
- const r = new Intl.Locale(o).region;
202
- if (r && a.has(r.toUpperCase()))
203
- return r.toUpperCase();
204
- } catch {
205
- }
206
- }
207
- return "IT";
208
- }
209
- function tt(n, a) {
210
- let d;
211
- try {
212
- d = new Intl.DisplayNames([n], { type: "region" });
213
- } catch {
214
- d = new Intl.DisplayNames(["en"], { type: "region" });
215
- }
216
- const o = a.map((r) => ({
217
- code: r,
218
- name: d.of(r) ?? r,
219
- dialCode: Be(r)
220
- })), f = new Intl.Collator(n);
221
- return o.sort((r, u) => f.compare(r.name, u.name));
222
- }
223
- const st = Fe(
224
- function({
225
- value: a,
226
- defaultValue: d,
227
- defaultCountry: o,
228
- detectBrowserCountry: f = !1,
229
- onChange: r,
230
- size: u = "md",
231
- tone: le = "default",
232
- disabled: ce,
233
- readOnly: O,
234
- placeholder: ue,
235
- popularCountries: R,
236
- className: pe,
237
- id: A,
238
- name: fe,
239
- required: me,
240
- "aria-label": he
241
- }, ge) {
242
- const { t: C, i18n: z } = Te(), x = Le(), N = Ee(Ke) !== null, g = h(
243
- () => new Set(Ae()),
244
- []
245
- ), B = h(() => {
246
- const e = de(
247
- o,
248
- g,
249
- f,
250
- z.language
251
- ), t = a ?? d;
252
- if (t) {
253
- const s = T(t);
254
- return s != null && s.country ? {
255
- country: s.country,
256
- display: s.formatNational(),
257
- pinned: !0
258
- } : { country: e, display: t, pinned: !1 };
259
- }
260
- return { country: e, display: "", pinned: !1 };
261
- }, []), [l, S] = E(B.country), [U, p] = E(
262
- B.display
263
- ), [L, K] = E(!1), [be, W] = E(""), Y = a !== void 0, $ = j(""), k = j(null), P = j(B.pinned), V = j(null), ve = $e(ge, V);
264
- ne(() => {
265
- if (P.current) return;
266
- const e = de(
267
- o,
268
- g,
269
- f,
270
- z.language
271
- );
272
- S((t) => t === e ? t : e);
273
- }, [
274
- z.language,
275
- o,
276
- g,
277
- f
278
- ]), ne(() => {
279
- if (!Y) return;
280
- const e = a ?? "";
281
- if (e === $.current) return;
282
- if (e === "") {
283
- p("");
284
- return;
285
- }
286
- const t = T(e);
287
- t != null && t.country ? (P.current = !0, S(t.country), p(t.formatNational())) : p(e);
288
- }, [a, Y]), je(() => {
289
- if (k.current == null) return;
290
- const e = k.current;
291
- k.current = null;
292
- const t = V.current;
293
- t && document.activeElement === t && t.setSelectionRange(e, e);
294
- });
295
- const b = oe(
296
- (e, t) => {
297
- const s = T(e, t), c = (s == null ? void 0 : s.number) ?? "";
298
- $.current = c, r == null || r(c, {
299
- country: t,
300
- isValid: (s == null ? void 0 : s.isValid()) ?? !1,
301
- isPossible: (s == null ? void 0 : s.isPossible()) ?? !1,
302
- type: s == null ? void 0 : s.getType()
303
- });
304
- },
305
- [r]
306
- ), ye = A ?? (N ? x.id : void 0), Z = (N ? x.disabled : !1) || !!ce, Ce = (N ? x.required : !1) || !!me, J = N ? x.invalid : !1, xe = J ? "error" : le, we = N && x.describedBy ? x.describedBy : void 0, ze = ue ?? C("inputs.phone.placeholder", "Phone number"), Ne = (e) => {
307
- if (O) return;
308
- const t = e.target, s = t.value, c = t.selectionStart ?? s.length, w = Xe(s, c), q = new H(l).input(s);
309
- k.current = et(q, w), p(q), b(q, l);
310
- }, Q = $, Ie = h(
311
- () => ({
312
- getValue: () => Q.current,
313
- setValue: (e) => {
314
- if (e === "") {
315
- p(""), b("", l);
316
- return;
317
- }
318
- const t = T(e);
319
- if (t != null && t.country)
320
- P.current = !0, S(t.country), p(t.formatNational()), b(t.formatNational(), t.country);
321
- else {
322
- const c = new H(l).input(e);
323
- p(c), b(c, l);
324
- }
325
- },
326
- clear: () => {
327
- p(""), b("", l);
328
- },
329
- focus: () => {
330
- var e;
331
- return (e = V.current) == null ? void 0 : e.focus();
332
- }
333
- }),
334
- [l, b, Q]
335
- );
336
- Me(He, Ie, A);
337
- const Re = (e) => {
338
- if (e === l) {
339
- K(!1);
340
- return;
341
- }
342
- const t = U.replace(/\D/g, ""), s = new H(e), c = t ? s.input(t) : "";
343
- P.current = !0, S(e), p(c), K(!1), W(""), b(c, e), requestAnimationFrame(() => {
344
- var w;
345
- (w = V.current) == null || w.focus();
346
- });
347
- }, v = h(
348
- () => tt(
349
- z.language,
350
- Array.from(g)
351
- ),
352
- [z.language, g]
353
- ), I = h(() => {
354
- if (!R || R.length === 0) return [];
355
- const e = new Map(v.map((t) => [t.code, t]));
356
- return R.filter((t) => g.has(t)).map((t) => e.get(t)).filter((t) => !!t);
357
- }, [R, v, g]), M = h(
358
- () => new Set(I.map((e) => e.code)),
359
- [I]
360
- ), Se = h(
361
- () => M.size > 0 ? v.filter((e) => !M.has(e.code)) : v,
362
- [v, M]
363
- ), F = h(
364
- () => v.find((e) => e.code === l),
365
- [v, l]
366
- ), X = F ? F.dialCode : "", ke = F ? F.name : l, ee = C("inputs.phone.countryPickerLabel", "Country"), Pe = `${ee}: ${ke}, +${X}`, Ve = oe(
367
- (e, t, s) => {
368
- const c = _(e), w = _(t), se = s == null ? void 0 : s.map(_);
369
- return De(
370
- c,
371
- w,
372
- se
373
- );
374
- },
375
- []
376
- ), te = (e) => {
377
- const t = `${e.name}, +${e.dialCode}`;
378
- return /* @__PURE__ */ m(
379
- y.Item,
380
- {
381
- value: e.code,
382
- keywords: [e.name, e.dialCode, `+${e.dialCode}`],
383
- onSelect: () => Re(e.code),
384
- className: Ze,
385
- "aria-label": t,
386
- children: [
387
- /* @__PURE__ */ i(re, { country: e.code, size: ie[u] }),
388
- /* @__PURE__ */ i("span", { className: "ds:flex-1 ds:truncate", children: e.name }),
389
- /* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:text-muted-foreground ds:tabular-nums", children: [
390
- "+",
391
- e.dialCode
392
- ] })
393
- ]
394
- },
395
- e.code
396
- );
397
- };
398
- return /* @__PURE__ */ m(
399
- "div",
400
- {
401
- "data-component": "phone-input",
402
- "data-component-id": A,
403
- "data-slot": "phone-input",
404
- className: _e({
405
- size: u,
406
- tone: xe,
407
- className: pe
408
- }),
409
- children: [
410
- /* @__PURE__ */ m(D.Root, { open: L, onOpenChange: K, children: [
411
- /* @__PURE__ */ i(D.Trigger, { asChild: !0, children: /* @__PURE__ */ m(
412
- "button",
413
- {
414
- type: "button",
415
- disabled: Z,
416
- "aria-haspopup": "listbox",
417
- "aria-expanded": L,
418
- "aria-label": Pe,
419
- className: Ge({ size: u }),
420
- children: [
421
- /* @__PURE__ */ i(re, { country: l, size: ie[u] }),
422
- /* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
423
- "+",
424
- X
425
- ] }),
426
- /* @__PURE__ */ i(
427
- qe,
428
- {
429
- "aria-hidden": "true",
430
- className: [
431
- Qe[u],
432
- "ds:shrink-0 ds:text-muted-foreground",
433
- "ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
434
- L ? "ds:rotate-180" : ""
435
- ].join(" ")
436
- }
437
- )
438
- ]
439
- }
440
- ) }),
441
- /* @__PURE__ */ i(D.Portal, { children: /* @__PURE__ */ i(
442
- D.Content,
443
- {
444
- sideOffset: 6,
445
- align: "start",
446
- className: Ue,
447
- children: /* @__PURE__ */ m(y, { filter: Ve, shouldFilter: !0, loop: !0, label: ee, children: [
448
- /* @__PURE__ */ i(
449
- y.Input,
450
- {
451
- asChild: !0,
452
- value: be,
453
- onValueChange: W,
454
- children: /* @__PURE__ */ i(
455
- "input",
456
- {
457
- "data-phone-country-search": "true",
458
- type: "text",
459
- autoComplete: "off",
460
- autoCorrect: "off",
461
- spellCheck: !1,
462
- placeholder: C(
463
- "inputs.phone.searchCountry",
464
- "Search countries…"
465
- ),
466
- className: We
467
- }
468
- )
469
- }
470
- ),
471
- /* @__PURE__ */ m(y.List, { className: Ye, children: [
472
- /* @__PURE__ */ i(y.Empty, { className: Je, children: C("inputs.phone.noCountryFound", "No country found") }),
473
- I.length > 0 ? /* @__PURE__ */ i(
474
- y.Group,
475
- {
476
- heading: /* @__PURE__ */ i("span", { className: ae, children: C("inputs.phone.popularCountries", "Popular") }),
477
- children: I.map(te)
478
- }
479
- ) : null,
480
- /* @__PURE__ */ i(
481
- y.Group,
482
- {
483
- heading: I.length > 0 ? /* @__PURE__ */ i("span", { className: ae, children: C("inputs.phone.allCountries", "All countries") }) : void 0,
484
- children: Se.map(te)
485
- }
486
- )
487
- ] })
488
- ] })
489
- }
490
- ) })
491
- ] }),
492
- /* @__PURE__ */ i(
493
- "input",
494
- {
495
- ref: ve,
496
- id: ye,
497
- name: fe,
498
- type: "tel",
499
- inputMode: "tel",
500
- autoComplete: "tel-national",
501
- value: U,
502
- placeholder: ze,
503
- disabled: Z,
504
- readOnly: O,
505
- required: Ce,
506
- "aria-label": he,
507
- "aria-describedby": we,
508
- "aria-invalid": J || void 0,
509
- onChange: Ne,
510
- className: Oe({ size: u })
511
- }
512
- )
513
- ]
514
- }
515
- );
516
- }
517
- );
518
- st.displayName = "PhoneInput";
519
- export {
520
- st as P,
521
- Oe as a,
522
- Ge as c,
523
- _e as p
524
- };
525
- //# sourceMappingURL=phone-input-DfZbPPvh.js.map