@alfadocs/ui-kit 0.37.0 → 0.39.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 (263) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
  3. package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
  4. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  5. package/dist/_chunks/{ar-D1RwVZFj.js → ar-Cn_NxqkN.js} +2 -2
  6. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  7. package/dist/_chunks/bmi-calculator-DnEr513I.js +213 -0
  8. package/dist/_chunks/{booking-DqXsd1Mv.js → booking-4mCw3Mpl.js} +5 -5
  9. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  10. package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
  11. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  12. package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
  13. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  14. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  15. package/dist/_chunks/{date-picker-CXFpu-qY.js → date-picker-CvQfs6Xh.js} +2 -2
  16. package/dist/_chunks/{date-range-picker-I-q5rifj.js → date-range-picker-U9fn1g9d.js} +3 -3
  17. package/dist/_chunks/{date-time-picker-CqpGPlcH.js → date-time-picker-Cva0ZCWw.js} +2 -2
  18. package/dist/_chunks/{de-HTQ4b4-J.js → de-BMM2H7Bs.js} +2 -2
  19. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  20. package/dist/_chunks/document-scanner-CqS_klIr.js +703 -0
  21. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  22. package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js → editable-currency-cell-renderer-DgkCIIcO.js} +3 -3
  23. package/dist/_chunks/{el-Dr1pjuDq.js → el-BYPonAaK.js} +2 -2
  24. package/dist/_chunks/{es-CvyTjLS0.js → es-CMkVCQ4F.js} +2 -2
  25. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-BosbPDb1.js} +3 -2
  26. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  27. package/dist/_chunks/{fr-CS7aqaFR.js → fr-BcuWxqft.js} +2 -2
  28. package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
  29. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  30. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  31. package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
  32. package/dist/_chunks/heart-C0faivFf.js +20 -0
  33. package/dist/_chunks/{hi-3uy8KpsH.js → hi-wkq_rQAh.js} +2 -2
  34. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  35. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  36. package/dist/_chunks/{isSameWeek-DRpMibi9.js → isSameWeek-Bim5ftRd.js} +2 -2
  37. package/dist/_chunks/{it-B_RF5VSw.js → it-GiQrQ9p4.js} +3 -3
  38. package/dist/_chunks/{ja-C1mEYy35.js → ja-qfYg3Rua.js} +2 -2
  39. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  40. package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
  41. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
  42. package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
  43. package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
  44. package/dist/_chunks/{nl-Dl7lO2t3.js → nl-xOogO4sZ.js} +2 -2
  45. package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
  46. package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
  47. package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
  48. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-DF81lALv.js} +37 -36
  49. package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
  50. package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
  51. package/dist/_chunks/{pl-Dgsogljx.js → pl-GnOW6eGK.js} +3 -3
  52. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C0d4IL5E.js} +4 -3
  53. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  54. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  55. package/dist/_chunks/{pt-Dm2JF4bc.js → pt-_bV5b5RW.js} +2 -2
  56. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-okt8ZRc5.js} +3 -3
  57. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  58. package/dist/_chunks/{react-day-picker-DYDdR8Vv.js → react-day-picker-CdtIiKjx.js} +24 -24
  59. package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
  60. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  61. package/dist/_chunks/{ro-BXFZ_xIX.js → ro-BEcyh5Nj.js} +2 -2
  62. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  63. package/dist/_chunks/{ru-BPQkNRRV.js → ru-Bi86hqMf.js} +3 -3
  64. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  65. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  66. package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
  67. package/dist/_chunks/sign-document-DId1p-nn.js +315 -0
  68. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  69. package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-BRzCklg4.js} +27 -24
  70. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  71. package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
  72. package/dist/_chunks/{sq-ChTlGFcJ.js → sq-BujHSAWu.js} +2 -2
  73. package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
  74. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  75. package/dist/_chunks/{sv-Do_gs6ir.js → sv-C8AeDrTA.js} +2 -2
  76. package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
  77. package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
  78. package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
  79. package/dist/_chunks/{tr-da_UnkYH.js → tr-CMSs_Vgf.js} +2 -2
  80. package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
  81. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  82. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  83. package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
  84. package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
  85. package/dist/_chunks/{zh-CN-C9qi5oak.js → zh-CN-eXB-PFu4.js} +3 -3
  86. package/dist/agent-catalog.json +241 -1
  87. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  88. package/dist/brand/provider-marks/apple.d.ts +12 -0
  89. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  90. package/dist/brand/provider-marks/google.d.ts +13 -0
  91. package/dist/components/_shared/insert-result.d.ts +47 -0
  92. package/dist/components/accordion/index.js +1 -1
  93. package/dist/components/agenda-tray/index.js +1 -1
  94. package/dist/components/bmi-calculator/bmi-calculator.d.ts +3 -0
  95. package/dist/components/bmi-calculator/index.js +6 -5
  96. package/dist/components/booking/index.js +1 -1
  97. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  98. package/dist/components/calculator-dialog/index.d.ts +3 -0
  99. package/dist/components/calculator-dialog/index.js +5 -0
  100. package/dist/components/chart/chart.d.ts +1 -1
  101. package/dist/components/chart/index.js +1 -1
  102. package/dist/components/chat-message/index.js +1 -1
  103. package/dist/components/collapsible/index.js +1 -1
  104. package/dist/components/contact-profile-card/index.js +1 -1
  105. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  106. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  107. package/dist/components/cycle-calculator/index.d.ts +4 -0
  108. package/dist/components/cycle-calculator/index.js +7 -0
  109. package/dist/components/data-table/index.js +1 -1
  110. package/dist/components/date-picker/index.js +1 -1
  111. package/dist/components/date-range-picker/index.js +1 -1
  112. package/dist/components/date-time-picker/index.js +1 -1
  113. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  114. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  115. package/dist/components/dependent-selector/index.d.ts +4 -0
  116. package/dist/components/dependent-selector/index.js +6 -0
  117. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  118. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  119. package/dist/components/document-scanner/index.d.ts +4 -0
  120. package/dist/components/document-scanner/index.js +6 -0
  121. package/dist/components/due-date-calculator/due-date-calculator.d.ts +3 -0
  122. package/dist/components/due-date-calculator/gestation.d.ts +16 -0
  123. package/dist/components/due-date-calculator/index.d.ts +1 -1
  124. package/dist/components/due-date-calculator/index.js +10 -7
  125. package/dist/components/file-upload/index.js +1 -1
  126. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  127. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  128. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  129. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  130. package/dist/components/fiscal-code-input/index.js +11 -0
  131. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  132. package/dist/components/freemium-paywall/index.js +1 -1
  133. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  134. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  135. package/dist/components/gestational-age-calculator/index.js +5 -0
  136. package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
  137. package/dist/components/header-settings/header-settings.d.ts +36 -0
  138. package/dist/components/header-settings/index.d.ts +2 -0
  139. package/dist/components/header-settings/index.js +2 -241
  140. package/dist/components/index.d.ts +14 -0
  141. package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
  142. package/dist/components/locale-picker/locale-picker.d.ts +80 -0
  143. package/dist/components/logo/index.js +1 -1
  144. package/dist/components/map-view/index.js +1 -1
  145. package/dist/components/message-card/index.js +1 -1
  146. package/dist/components/message-tray/index.js +1 -1
  147. package/dist/components/notification-card/index.js +1 -1
  148. package/dist/components/notification-tray/index.js +1 -1
  149. package/dist/components/otp-input/index.d.ts +1 -1
  150. package/dist/components/otp-input/index.js +1 -1
  151. package/dist/components/otp-input/otp-input.d.ts +1 -1
  152. package/dist/components/payment-form/index.js +1 -1
  153. package/dist/components/pdf-viewer/index.js +1 -1
  154. package/dist/components/practice-results/index.js +1 -1
  155. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  156. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  157. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  158. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  159. package/dist/components/privacy-lock/index.js +1 -1
  160. package/dist/components/public-footer/index.js +1 -1
  161. package/dist/components/qr-code/index.d.ts +5 -0
  162. package/dist/components/qr-code/index.js +8 -0
  163. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  164. package/dist/components/qr-code/qr-code.d.ts +59 -0
  165. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  166. package/dist/components/reviews-panel/index.js +1 -1
  167. package/dist/components/rich-text-editor/index.js +1 -1
  168. package/dist/components/session-countdown/index.d.ts +4 -0
  169. package/dist/components/session-countdown/index.js +6 -0
  170. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  171. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  172. package/dist/components/sidebar/index.js +1 -1
  173. package/dist/components/sign-document/index.d.ts +4 -0
  174. package/dist/components/sign-document/index.js +6 -0
  175. package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
  176. package/dist/components/sign-document/sign-document.d.ts +47 -0
  177. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  178. package/dist/components/signature-capture/index.js +1 -1
  179. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  180. package/dist/components/social-sign-in-button/index.js +5 -0
  181. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  182. package/dist/components/sparkline/index.js +1 -1
  183. package/dist/components/sparkline/sparkline.d.ts +1 -1
  184. package/dist/components/stepper-accordion/index.js +1 -1
  185. package/dist/components/tag/index.js +1 -1
  186. package/dist/components/task-card/index.js +1 -1
  187. package/dist/components/task-tray/index.js +1 -1
  188. package/dist/components/transcript-panel/index.js +1 -1
  189. package/dist/components/unit-converter/index.d.ts +4 -0
  190. package/dist/components/unit-converter/index.js +9 -0
  191. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  192. package/dist/components/unit-converter/units.d.ts +18 -0
  193. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  194. package/dist/components/wallet-pay-button/index.js +5 -0
  195. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  196. package/dist/components/warning-stack/index.js +1 -1
  197. package/dist/components/workflow/index.js +1 -1
  198. package/dist/i18n/locale-meta.d.ts +56 -0
  199. package/dist/i18n/locales/ar.d.ts +274 -0
  200. package/dist/i18n/locales/ar.js +271 -0
  201. package/dist/i18n/locales/de.d.ts +274 -0
  202. package/dist/i18n/locales/de.js +271 -0
  203. package/dist/i18n/locales/el.d.ts +274 -0
  204. package/dist/i18n/locales/el.js +271 -0
  205. package/dist/i18n/locales/en.d.ts +274 -0
  206. package/dist/i18n/locales/en.js +274 -0
  207. package/dist/i18n/locales/es.d.ts +274 -0
  208. package/dist/i18n/locales/es.js +271 -0
  209. package/dist/i18n/locales/fr.d.ts +274 -0
  210. package/dist/i18n/locales/fr.js +271 -0
  211. package/dist/i18n/locales/hi.d.ts +274 -0
  212. package/dist/i18n/locales/hi.js +271 -0
  213. package/dist/i18n/locales/it.d.ts +274 -0
  214. package/dist/i18n/locales/it.js +271 -0
  215. package/dist/i18n/locales/ja.d.ts +274 -0
  216. package/dist/i18n/locales/ja.js +267 -0
  217. package/dist/i18n/locales/nl.d.ts +274 -0
  218. package/dist/i18n/locales/nl.js +271 -0
  219. package/dist/i18n/locales/pl.d.ts +274 -0
  220. package/dist/i18n/locales/pl.js +271 -0
  221. package/dist/i18n/locales/pt.d.ts +274 -0
  222. package/dist/i18n/locales/pt.js +274 -0
  223. package/dist/i18n/locales/ro.d.ts +274 -0
  224. package/dist/i18n/locales/ro.js +271 -0
  225. package/dist/i18n/locales/ru.d.ts +274 -0
  226. package/dist/i18n/locales/ru.js +271 -0
  227. package/dist/i18n/locales/sq.d.ts +274 -0
  228. package/dist/i18n/locales/sq.js +271 -0
  229. package/dist/i18n/locales/sv.d.ts +274 -0
  230. package/dist/i18n/locales/sv.js +271 -0
  231. package/dist/i18n/locales/tr.d.ts +274 -0
  232. package/dist/i18n/locales/tr.js +271 -0
  233. package/dist/i18n/locales/zh.d.ts +274 -0
  234. package/dist/i18n/locales/zh.js +267 -0
  235. package/dist/index.js +590 -535
  236. package/dist/locales/ar.json +274 -0
  237. package/dist/locales/de.json +274 -0
  238. package/dist/locales/el.json +274 -0
  239. package/dist/locales/en.json +274 -0
  240. package/dist/locales/es.json +274 -0
  241. package/dist/locales/fr.json +274 -0
  242. package/dist/locales/hi.json +274 -0
  243. package/dist/locales/it.json +274 -0
  244. package/dist/locales/ja.json +274 -0
  245. package/dist/locales/nl.json +274 -0
  246. package/dist/locales/pl.json +274 -0
  247. package/dist/locales/pt.json +274 -0
  248. package/dist/locales/ro.json +274 -0
  249. package/dist/locales/ru.json +274 -0
  250. package/dist/locales/sq.json +274 -0
  251. package/dist/locales/sv.json +274 -0
  252. package/dist/locales/tr.json +274 -0
  253. package/dist/locales/zh.json +274 -0
  254. package/dist/patterns/alia-assistant/index.js +1 -1
  255. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  256. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
  257. package/dist/patterns/patient-shell/index.js +1 -1
  258. package/dist/tokens.css +1 -1
  259. package/package.json +53 -1
  260. package/dist/_chunks/bmi-calculator-DQD5_nE-.js +0 -214
  261. package/dist/_chunks/due-date-calculator-kf9U_g7O.js +0 -173
  262. package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js +0 -295
  263. package/dist/_chunks/subDays-D-WYRpdW.js +0 -8
@@ -27,7 +27,7 @@ const V = B(
27
27
  },
28
28
  fill: {
29
29
  solid: "",
30
- outline: "ds:border ds:bg-transparent"
30
+ outline: "ds:border ds:border-[color:var(--border)] ds:bg-transparent"
31
31
  },
32
32
  size: {
33
33
  // Symmetric start/end padding — close button uses negative margin to stay flush.
@@ -131,7 +131,7 @@ const V = B(
131
131
  }
132
132
  ), M = q(
133
133
  ({
134
- label: n,
134
+ label: o,
135
135
  variant: g = "neutral",
136
136
  fill: p = "solid",
137
137
  size: a = "md",
@@ -139,20 +139,20 @@ const V = B(
139
139
  onRemove: t,
140
140
  onClick: b,
141
141
  disabled: e = !1,
142
- maxInlineSize: o = "none",
142
+ maxInlineSize: n = "none",
143
143
  className: h
144
144
  }, i) => {
145
145
  const { t: w } = H(), y = F(null), [D, C] = E(!1), [O, R] = E("");
146
146
  G(() => {
147
147
  const s = y.current;
148
- if (!s || o === "none") return;
148
+ if (!s || n === "none") return;
149
149
  const z = () => C(s.scrollWidth > s.clientWidth), j = new ResizeObserver(z);
150
150
  return j.observe(s), z(), () => j.disconnect();
151
- }, [o]);
151
+ }, [n]);
152
152
  const W = (s) => {
153
153
  (s.key === "Backspace" || s.key === "Delete") && t && !e && (s.preventDefault(), x(), setTimeout(t, 100));
154
154
  }, x = () => {
155
- R(w("tag.removed", { label: n }));
155
+ R(w("tag.removed", { label: o }));
156
156
  }, K = () => {
157
157
  !e && t && (x(), setTimeout(t, 100));
158
158
  }, d = !!t, N = !!b && !d, T = V({
@@ -174,22 +174,22 @@ const V = B(
174
174
  "span",
175
175
  {
176
176
  ref: y,
177
- className: o !== "none" ? "ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap" : void 0,
178
- style: o !== "none" ? { maxInlineSize: o } : void 0,
179
- children: n
177
+ className: n !== "none" ? "ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap" : void 0,
178
+ style: n !== "none" ? { maxInlineSize: n } : void 0,
179
+ children: o
180
180
  }
181
181
  ), A = /* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: O }), X = d ? /* @__PURE__ */ r(
182
182
  "button",
183
183
  {
184
184
  type: "button",
185
- "aria-label": w("tag.remove", { label: n }),
185
+ "aria-label": w("tag.remove", { label: o }),
186
186
  onClick: K,
187
187
  disabled: e,
188
188
  tabIndex: -1,
189
189
  className: L({ size: a }),
190
190
  children: /* @__PURE__ */ r(J, { "aria-hidden": "true" })
191
191
  }
192
- ) : null, u = o !== "none" && D;
192
+ ) : null, u = n !== "none" && D;
193
193
  if (N) {
194
194
  const s = /* @__PURE__ */ f(
195
195
  "button",
@@ -206,7 +206,7 @@ const V = B(
206
206
  ]
207
207
  }
208
208
  );
209
- return u ? /* @__PURE__ */ r(v, { label: n, children: s }) : s;
209
+ return u ? /* @__PURE__ */ r(v, { label: o, children: s }) : s;
210
210
  }
211
211
  if (d) {
212
212
  const s = (
@@ -216,7 +216,7 @@ const V = B(
216
216
  {
217
217
  ref: i,
218
218
  role: "group",
219
- "aria-label": n,
219
+ "aria-label": o,
220
220
  tabIndex: e ? -1 : 0,
221
221
  "aria-disabled": e || void 0,
222
222
  onKeyDown: W,
@@ -231,7 +231,7 @@ const V = B(
231
231
  }
232
232
  )
233
233
  );
234
- return u ? /* @__PURE__ */ r(v, { label: n, children: s }) : s;
234
+ return u ? /* @__PURE__ */ r(v, { label: o, children: s }) : s;
235
235
  }
236
236
  const k = /* @__PURE__ */ f(
237
237
  "span",
@@ -245,11 +245,11 @@ const V = B(
245
245
  ]
246
246
  }
247
247
  );
248
- return u ? /* @__PURE__ */ r(v, { label: n, children: k }) : k;
248
+ return u ? /* @__PURE__ */ r(v, { label: o, children: k }) : k;
249
249
  }
250
250
  );
251
251
  M.displayName = "Tag";
252
252
  export {
253
253
  M as T
254
254
  };
255
- //# sourceMappingURL=tag-CyoaEmf_.js.map
255
+ //# sourceMappingURL=tag-CdA0s_VV.js.map
@@ -1,18 +1,19 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import { forwardRef as v } from "react";
3
- import { c as g } from "./index-D2ZczOXr.js";
4
- import { useTranslation as b } from "react-i18next";
3
+ import { c as b } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as g } from "react-i18next";
5
5
  import { C as x } from "./chevron-right-BrpYejk0.js";
6
6
  import { S as y } from "./square-check-big-Jr-0202D.js";
7
7
  import { C } from "./circle-alert-ChA9opNA.js";
8
8
  import { S as N } from "./square-CZoGU14v.js";
9
- const k = g(
9
+ const k = b(
10
10
  [
11
11
  "ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
12
12
  "ds:rounded-[var(--radius-sm)]",
13
13
  "ds:transition-colors",
14
14
  "ds:motion-reduce:transition-none",
15
15
  "ds:text-start ds:group",
16
+ "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
16
17
  "ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
17
18
  ].join(" "),
18
19
  {
@@ -53,7 +54,7 @@ function T({
53
54
  }
54
55
  const w = v(
55
56
  ({ item: s, size: a = "sm", onActivate: r, className: u, ...f }, p) => {
56
- const { t: m } = b(), t = !!r, h = !!s.url && S(s.url), n = m("taskCard.itemLabel", {
57
+ const { t: m } = g(), t = !!r, h = !!s.url && S(s.url), n = m("taskCard.itemLabel", {
57
58
  title: s.title,
58
59
  due: s.dueLabel ?? "",
59
60
  defaultValue: '{{title}}{{due, prepend, " · "}}'
@@ -114,4 +115,4 @@ export {
114
115
  w as T,
115
116
  S as i
116
117
  };
117
- //# sourceMappingURL=task-card-BUVMh6HN.js.map
118
+ //# sourceMappingURL=task-card-CPyQ5AXC.js.map
@@ -1,11 +1,11 @@
1
1
  import { jsx as a, jsxs as p } from "react/jsx-runtime";
2
- import { forwardRef as q, useRef as k, useMemo as z, useImperativeHandle as M } from "react";
3
- import { c as S } from "./index-D2ZczOXr.js";
4
- import { useTranslation as _ } from "react-i18next";
2
+ import { forwardRef as j, useRef as v, useMemo as q, useImperativeHandle as z } from "react";
3
+ import { c as M } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as S } from "react-i18next";
5
5
  import { I as C } from "./icon-button-CKEOrN37.js";
6
6
  import { S as K } from "./skeleton-CZbwyJAA.js";
7
7
  import { E } from "./empty-state-BLy7tigq.js";
8
- import { T as L } from "./task-card-BUVMh6HN.js";
8
+ import { T as L } from "./task-card-CPyQ5AXC.js";
9
9
  import { u as P } from "./registry-nPAVE19X.js";
10
10
  import { c as H } from "./createLucideIcon-CrFbzy84.js";
11
11
  import { P as V } from "./plus-CYKNmfuA.js";
@@ -77,10 +77,11 @@ const B = [
77
77
  description: "Stable task id emitted on each rendered TaskCard inside the tray."
78
78
  }
79
79
  }
80
- }, J = S(
80
+ }, J = M(
81
81
  [
82
82
  "ds:flex ds:flex-col",
83
83
  "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
84
+ "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
84
85
  "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
85
86
  "ds:overflow-hidden"
86
87
  ].join(" "),
@@ -95,80 +96,80 @@ const B = [
95
96
  size: "sm"
96
97
  }
97
98
  }
98
- ), Q = q(
99
+ ), Q = j(
99
100
  ({
100
101
  id: e,
101
102
  items: s,
102
- title: v,
103
+ title: k,
103
104
  size: f = "sm",
104
- onOpenTask: r,
105
+ onOpenTask: i,
105
106
  onToggleDone: n,
106
107
  onDismissTask: c,
107
108
  onAddTask: y,
108
109
  addLabel: x,
109
- loading: u = !1,
110
- emptyTitle: w,
111
- emptyDescription: I,
112
- className: N,
113
- ...T
114
- }, b) => {
115
- const { t: l } = _(), h = v ?? l("taskTray.title", "Tasks"), R = x ?? l("taskTray.add", "Add task"), A = !u && s.length === 0;
110
+ loading: h = !1,
111
+ emptyTitle: b,
112
+ emptyDescription: w,
113
+ className: I,
114
+ ...N
115
+ }, T) => {
116
+ const { t: l } = S(), u = k ?? l("taskTray.title", "Tasks"), R = x ?? l("taskTray.add", "Add task"), A = !h && s.length === 0;
116
117
  let m;
117
- u ? m = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((t) => /* @__PURE__ */ a(K, { variant: "rectangular", height: "2.5rem" }, t)) }) : A ? m = /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
118
+ h ? m = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((t) => /* @__PURE__ */ a(K, { variant: "rectangular", height: "2.5rem" }, t)) }) : A ? m = /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
118
119
  E,
119
120
  {
120
121
  variant: "first-use",
121
122
  size: "sm",
122
- title: w ?? l("taskTray.empty.title", "No tasks yet"),
123
- description: I ?? l("taskTray.empty.description", "New tasks will appear here.")
123
+ title: b ?? l("taskTray.empty.title", "No tasks yet"),
124
+ description: w ?? l("taskTray.empty.description", "New tasks will appear here.")
124
125
  }
125
126
  ) }) : m = /* @__PURE__ */ a("ul", { className: "ds:flex ds:list-none ds:flex-col", children: s.map((t) => /* @__PURE__ */ a(
126
127
  L,
127
128
  {
128
129
  item: t,
129
130
  size: f,
130
- onActivate: r,
131
+ onActivate: i,
131
132
  "data-task-id": t.id
132
133
  },
133
134
  t.id
134
135
  )) });
135
- const d = k(s);
136
+ const d = v(s);
136
137
  d.current = s;
137
- const j = z(
138
+ const _ = q(
138
139
  () => ({
139
140
  getItems: () => d.current.map((t) => ({
140
141
  id: t.id,
141
142
  status: t.status ?? "open"
142
143
  })),
143
144
  selectItem: (t) => {
144
- const i = d.current.find((o) => o.id === t);
145
- i && (r == null || r(i));
145
+ const r = d.current.find((o) => o.id === t);
146
+ r && (i == null || i(r));
146
147
  },
147
148
  toggleDone: (t) => {
148
- const i = d.current.find((o) => o.id === t);
149
- i && (n == null || n(i));
149
+ const r = d.current.find((o) => o.id === t);
150
+ r && (n == null || n(r));
150
151
  },
151
152
  dismiss: (t) => {
152
- const i = d.current.find((o) => o.id === t);
153
- i && (c == null || c(i));
153
+ const r = d.current.find((o) => o.id === t);
154
+ r && (c == null || c(r));
154
155
  }
155
156
  }),
156
- [r, n, c]
157
- ), g = k(null);
158
- return M(b, () => g.current, []), P(G, j, e), /* @__PURE__ */ p(
157
+ [i, n, c]
158
+ ), g = v(null);
159
+ return z(T, () => g.current, []), P(G, _, e), /* @__PURE__ */ p(
159
160
  "section",
160
161
  {
161
162
  ref: g,
162
- "aria-label": h,
163
+ "aria-label": u,
163
164
  "data-component": "task-tray",
164
165
  "data-component-id": e,
165
- className: J({ size: f, className: N }),
166
- ...T,
166
+ className: J({ size: f, className: I }),
167
+ ...N,
167
168
  children: [
168
169
  /* @__PURE__ */ p("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
169
170
  /* @__PURE__ */ p("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
170
171
  /* @__PURE__ */ a(F, { "aria-hidden": "true", className: "ds:size-4" }),
171
- h
172
+ u
172
173
  ] }),
173
174
  y ? /* @__PURE__ */ a(
174
175
  C,
@@ -192,4 +193,4 @@ export {
192
193
  Q as T,
193
194
  G as t
194
195
  };
195
- //# sourceMappingURL=task-tray-DRK0b0Qb.js.map
196
+ //# sourceMappingURL=task-tray-B8jFv5FV.js.map
@@ -1,4 +1,4 @@
1
- import { o, q as n, r as i, v as m } from "./react-day-picker-DYDdR8Vv.js";
1
+ import { o, q as n, r as i, v as m } from "./react-day-picker-CdtIiKjx.js";
2
2
  const d = {
3
3
  lessThanXSeconds: {
4
4
  one: "bir saniyeden az",
@@ -375,4 +375,4 @@ const d = {
375
375
  export {
376
376
  O as tr
377
377
  };
378
- //# sourceMappingURL=tr-da_UnkYH.js.map
378
+ //# sourceMappingURL=tr-CMSs_Vgf.js.map
@@ -1,5 +1,5 @@
1
1
  import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as K, useState as A, useRef as x, useId as _, useMemo as w, useCallback as R, useImperativeHandle as j, Fragment as O } from "react";
2
+ import { forwardRef as K, useState as A, useRef as w, useId as _, useMemo as x, useCallback as R, useImperativeHandle as j, Fragment as O } from "react";
3
3
  import { c as V } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as D } from "react-i18next";
5
5
  import { u as F } from "./registry-nPAVE19X.js";
@@ -54,7 +54,8 @@ const U = {
54
54
  }, G = V(
55
55
  [
56
56
  "ds:flex ds:flex-col ds:w-full ds:min-h-0",
57
- "ds:rounded-[var(--radius-md)] ds:border ds:border-border",
57
+ "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)]",
58
+ "ds:shadow-[var(--shadow-card)] ds:[.theme-accessible_&]:border-2",
58
59
  "ds:bg-background",
59
60
  "ds:focus-within:border-[color:var(--primary)]"
60
61
  ].join(" "),
@@ -120,14 +121,14 @@ const te = K(
120
121
  className: p,
121
122
  ...g
122
123
  }, L) => {
123
- const { t: d, i18n: b } = D(), [m, M] = A(""), h = x(null), T = x(null), P = _(), c = w(() => {
124
+ const { t: d, i18n: b } = D(), [m, M] = A(""), h = w(null), T = w(null), P = _(), c = x(() => {
124
125
  if (!Number.isFinite(n)) return -1;
125
126
  for (let e = 0; e < t.length; e += 1) {
126
127
  const r = t[e];
127
128
  if (r.start <= n && n < r.end) return e;
128
129
  }
129
130
  return -1;
130
- }, [t, n]), k = w(() => {
131
+ }, [t, n]), k = x(() => {
131
132
  if (!m) return 0;
132
133
  let e = 0;
133
134
  const r = m.toLocaleLowerCase();
@@ -245,9 +246,9 @@ const te = K(
245
246
  );
246
247
  },
247
248
  [c, b.language, a, m, d]
248
- ), S = x(null);
249
+ ), S = w(null);
249
250
  j(L, () => S.current, []);
250
- const E = w(
251
+ const E = x(
251
252
  () => ({
252
253
  getSelectedTurn: () => c >= 0 ? String(c) : null,
253
254
  focusTurn: (e) => {
@@ -344,4 +345,4 @@ export {
344
345
  te as T,
345
346
  U as t
346
347
  };
347
- //# sourceMappingURL=transcript-panel-DyhTpAP7.js.map
348
+ //# sourceMappingURL=transcript-panel-CR7VY1uw.js.map
@@ -0,0 +1,168 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as k, useState as g, useMemo as _, useEffect as O } from "react";
3
+ import { c as z } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as j } from "react-i18next";
5
+ import { F as v } from "./form-field-BOm9hK35.js";
6
+ import { N as A } from "./number-input-Dj5L3pXK.js";
7
+ import { S as y } from "./select-hsCaJSX3.js";
8
+ import { I as B } from "./insert-result-yJ0QavoN.js";
9
+ const F = {
10
+ // weight → base kg
11
+ kg: { id: "kg", category: "weight", factor: 1, offset: 0 },
12
+ g: { id: "g", category: "weight", factor: 1e-3, offset: 0 },
13
+ lb: { id: "lb", category: "weight", factor: 0.45359237, offset: 0 },
14
+ oz: { id: "oz", category: "weight", factor: 0.028349523125, offset: 0 },
15
+ // length → base cm
16
+ cm: { id: "cm", category: "length", factor: 1, offset: 0 },
17
+ m: { id: "m", category: "length", factor: 100, offset: 0 },
18
+ in: { id: "in", category: "length", factor: 2.54, offset: 0 },
19
+ ft: { id: "ft", category: "length", factor: 30.48, offset: 0 },
20
+ // temperature → base °C (affine: °C = °F·5/9 − 32·5/9)
21
+ c: { id: "c", category: "temperature", factor: 1, offset: 0 },
22
+ f: { id: "f", category: "temperature", factor: 5 / 9, offset: -160 / 9 },
23
+ // glucose → base mmol/L (1 mg/dL = 1/18.0156 mmol/L)
24
+ mmol_l: { id: "mmol_l", category: "glucose", factor: 1, offset: 0 },
25
+ mg_dl: { id: "mg_dl", category: "glucose", factor: 1 / 18.0156, offset: 0 }
26
+ }, p = {
27
+ weight: ["kg", "g", "lb", "oz"],
28
+ length: ["cm", "m", "in", "ft"],
29
+ temperature: ["c", "f"],
30
+ glucose: ["mmol_l", "mg_dl"]
31
+ }, G = [
32
+ "weight",
33
+ "length",
34
+ "temperature",
35
+ "glucose"
36
+ ];
37
+ function Y(c, o, f) {
38
+ const r = F[o], n = F[f];
39
+ if (!r || !n) throw new Error(`Unknown unit: ${o} → ${f}`);
40
+ if (r.category !== n.category)
41
+ throw new Error(
42
+ `Cannot convert across categories: ${r.category} → ${n.category}`
43
+ );
44
+ return (c * r.factor + r.offset - n.offset) / n.factor;
45
+ }
46
+ const D = z("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
47
+ variants: {
48
+ width: { full: "ds:w-full", auto: "ds:inline-flex" }
49
+ },
50
+ defaultVariants: { width: "full" }
51
+ }), L = k(
52
+ ({
53
+ defaultCategory: c = "weight",
54
+ onResultChange: o,
55
+ onInsert: f,
56
+ id: r,
57
+ width: n,
58
+ className: C
59
+ }, U) => {
60
+ const { t, i18n: b } = j(), [$, E] = g(c), [i, S] = g(null), [m, w] = g(
61
+ p[c][0]
62
+ ), [l, x] = g(
63
+ p[c][1]
64
+ ), T = (s) => {
65
+ const I = s, h = p[I];
66
+ E(I), w(h[0]), x(h[1] ?? h[0]);
67
+ }, a = _(
68
+ () => i === null ? null : Y(i, m, l),
69
+ [i, m, l]
70
+ ), u = _(
71
+ () => new Intl.NumberFormat(b.language, { maximumFractionDigits: 3 }),
72
+ [b.language]
73
+ );
74
+ O(() => {
75
+ o == null || o(a);
76
+ }, [a, o]);
77
+ const V = G.map((s) => ({
78
+ value: s,
79
+ label: t(`unitConverter.category.${s}`)
80
+ })), N = p[$].map((s) => ({
81
+ value: s,
82
+ label: t(`unitConverter.units.${s}`)
83
+ }));
84
+ return /* @__PURE__ */ d(
85
+ "div",
86
+ {
87
+ ref: U,
88
+ "data-component": "unit-converter",
89
+ "data-component-id": r,
90
+ className: D({ width: n, className: C }),
91
+ children: [
92
+ /* @__PURE__ */ e(v, { label: t("unitConverter.categoryLabel"), children: /* @__PURE__ */ e(
93
+ y,
94
+ {
95
+ options: V,
96
+ value: $,
97
+ onValueChange: T
98
+ }
99
+ ) }),
100
+ /* @__PURE__ */ d("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3", children: [
101
+ /* @__PURE__ */ e(v, { label: t("unitConverter.value"), children: /* @__PURE__ */ e(A, { mode: "decimal", value: i, onChange: S }) }),
102
+ /* @__PURE__ */ e(v, { label: t("unitConverter.from"), children: /* @__PURE__ */ e(
103
+ y,
104
+ {
105
+ options: N,
106
+ value: m,
107
+ onValueChange: w
108
+ }
109
+ ) }),
110
+ /* @__PURE__ */ e(v, { label: t("unitConverter.to"), children: /* @__PURE__ */ e(
111
+ y,
112
+ {
113
+ options: N,
114
+ value: l,
115
+ onValueChange: x
116
+ }
117
+ ) })
118
+ ] }),
119
+ /* @__PURE__ */ e("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a !== null ? `${u.format(i ?? 0)} ${t(
120
+ `unitConverter.units.${m}`
121
+ )} = ${u.format(a)} ${t(
122
+ `unitConverter.units.${l}`
123
+ )}` : "" }),
124
+ a !== null ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
125
+ /* @__PURE__ */ e("span", { className: "type-label ds:text-muted-foreground", children: t("unitConverter.result") }),
126
+ /* @__PURE__ */ d("span", { className: "type-metric ds:text-foreground", children: [
127
+ u.format(a),
128
+ " ",
129
+ t(`unitConverter.units.${l}`)
130
+ ] }),
131
+ f ? /* @__PURE__ */ e(
132
+ B,
133
+ {
134
+ onInsert: f,
135
+ card: {
136
+ title: t("insert.title.unitConverter"),
137
+ fields: [
138
+ {
139
+ label: t("unitConverter.from"),
140
+ value: `${u.format(i ?? 0)} ${t(
141
+ `unitConverter.units.${m}`
142
+ )}`
143
+ },
144
+ {
145
+ label: t("unitConverter.to"),
146
+ value: `${u.format(a)} ${t(
147
+ `unitConverter.units.${l}`
148
+ )}`
149
+ }
150
+ ]
151
+ }
152
+ }
153
+ ) : null
154
+ ] }) : /* @__PURE__ */ e("p", { className: "type-body ds:text-muted-foreground", children: t("unitConverter.empty") })
155
+ ]
156
+ }
157
+ );
158
+ }
159
+ );
160
+ L.displayName = "UnitConverter";
161
+ export {
162
+ G as C,
163
+ F as U,
164
+ p as a,
165
+ L as b,
166
+ Y as c
167
+ };
168
+ //# sourceMappingURL=unit-converter-EUwO6QYq.js.map