@alfadocs/ui-kit 0.47.0 → 0.49.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 (280) hide show
  1. package/dist/_chunks/{address-autocomplete-CSjMrBvu.js → address-autocomplete-CT-9AOli.js} +2 -2
  2. package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
  3. package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
  4. package/dist/_chunks/ai-consent-banner-F2md5JD3.js +169 -0
  5. package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +280 -0
  6. package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
  7. package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
  8. package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
  9. package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
  10. package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
  11. package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
  12. package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
  13. package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
  14. package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
  15. package/dist/_chunks/{booking-DlDVuWMd.js → booking-DljH0JkS.js} +294 -306
  16. package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
  17. package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
  18. package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
  19. package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
  20. package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
  21. package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
  22. package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
  23. package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
  24. package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
  25. package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
  26. package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
  27. package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
  28. package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
  29. package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
  30. package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
  31. package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
  32. package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
  33. package/dist/_chunks/due-date-calculator-tDqZXPWO.js +256 -0
  34. package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
  35. package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
  36. package/dist/_chunks/entity-card-COhmqHly.js +69 -0
  37. package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
  38. package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
  39. package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
  40. package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
  41. package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js +311 -0
  42. package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
  43. package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
  44. package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
  45. package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
  46. package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
  47. package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
  48. package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
  49. package/dist/_chunks/languages-DsVf_WzT.js +19 -0
  50. package/dist/_chunks/layers-pzGcbLPj.js +34 -0
  51. package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
  52. package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
  53. package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
  54. package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
  55. package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
  56. package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
  57. package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
  58. package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
  59. package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
  60. package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
  61. package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-q1D3Uion.js} +4 -4
  62. package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
  63. package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
  64. package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
  65. package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-Cq1y8JFD.js} +4 -3
  66. package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
  67. package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
  68. package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
  69. package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
  70. package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
  71. package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
  72. package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
  73. package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
  74. package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-CZkAf28g.js} +2 -2
  75. package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
  76. package/dist/_chunks/subDays-Bs00akhK.js +8 -0
  77. package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
  78. package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
  79. package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
  80. package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
  81. package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
  82. package/dist/_chunks/video-BAeICxCT.js +21 -0
  83. package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
  84. package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-DzX_LI4y.js} +139 -157
  85. package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
  86. package/dist/agent-catalog.json +367 -1
  87. package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
  88. package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
  89. package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
  90. package/dist/components/_shared/entity-card/index.d.ts +3 -0
  91. package/dist/components/_shared/index.d.ts +5 -0
  92. package/dist/components/_shared/is-safe-url.d.ts +13 -0
  93. package/dist/components/_shared/obstetrics.d.ts +138 -0
  94. package/dist/components/address-autocomplete/index.js +1 -1
  95. package/dist/components/agenda-card/agenda-card.d.ts +1 -2
  96. package/dist/components/agenda-card/index.d.ts +2 -1
  97. package/dist/components/agenda-card/index.js +6 -5
  98. package/dist/components/agenda-tray/index.js +1 -1
  99. package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
  100. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
  101. package/dist/components/ai-consent-banner/index.d.ts +4 -0
  102. package/dist/components/ai-consent-banner/index.js +6 -0
  103. package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
  104. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
  105. package/dist/components/ai-tools-rail/index.d.ts +4 -0
  106. package/dist/components/ai-tools-rail/index.js +6 -0
  107. package/dist/components/alert/alert.d.ts +2 -2
  108. package/dist/components/alert/index.js +1 -1
  109. package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
  110. package/dist/components/anamnesis-card/index.d.ts +3 -0
  111. package/dist/components/anamnesis-card/index.js +5 -0
  112. package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
  113. package/dist/components/appointment-card/appointment-card.d.ts +93 -0
  114. package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
  115. package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
  116. package/dist/components/appointment-card/index.d.ts +8 -0
  117. package/dist/components/appointment-card/index.js +10 -0
  118. package/dist/components/audio-recorder/index.js +1 -1
  119. package/dist/components/badge/badge.d.ts +1 -1
  120. package/dist/components/bishop-score/bishop-score.d.ts +27 -0
  121. package/dist/components/bishop-score/bishop.d.ts +30 -0
  122. package/dist/components/bishop-score/index.d.ts +4 -0
  123. package/dist/components/bishop-score/index.js +10 -0
  124. package/dist/components/bmi-calculator/index.js +1 -1
  125. package/dist/components/booking/index.js +1 -1
  126. package/dist/components/calculator-dialog/index.js +1 -1
  127. package/dist/components/calendar/index.js +1 -1
  128. package/dist/components/card/card.d.ts +1 -1
  129. package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
  130. package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
  131. package/dist/components/care-plan-card/index.d.ts +4 -0
  132. package/dist/components/care-plan-card/index.js +6 -0
  133. package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
  134. package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
  135. package/dist/components/care-plan-entry-card/index.d.ts +4 -0
  136. package/dist/components/care-plan-entry-card/index.js +6 -0
  137. package/dist/components/chat-message/chat-message.d.ts +7 -0
  138. package/dist/components/chat-message/index.js +1 -1
  139. package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
  140. package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
  141. package/dist/components/clinical-note-card/index.d.ts +4 -0
  142. package/dist/components/clinical-note-card/index.js +6 -0
  143. package/dist/components/contact-profile-card/index.js +1 -1
  144. package/dist/components/cycle-calculator/cycle.d.ts +5 -0
  145. package/dist/components/cycle-calculator/index.js +1 -1
  146. package/dist/components/data-table/index.js +1 -1
  147. package/dist/components/date-picker/index.js +1 -1
  148. package/dist/components/date-range-picker/index.js +1 -1
  149. package/dist/components/date-time-picker/index.js +1 -1
  150. package/dist/components/dialog/dialog.d.ts +7 -0
  151. package/dist/components/dialog/index.js +1 -1
  152. package/dist/components/document-scanner/index.js +1 -1
  153. package/dist/components/due-date-calculator/due-date-calculator.d.ts +13 -1
  154. package/dist/components/due-date-calculator/gestation.d.ts +1 -59
  155. package/dist/components/due-date-calculator/index.d.ts +1 -1
  156. package/dist/components/due-date-calculator/index.js +16 -10
  157. package/dist/components/fetal-weight/efw.d.ts +25 -0
  158. package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
  159. package/dist/components/fetal-weight/index.d.ts +4 -0
  160. package/dist/components/fetal-weight/index.js +6 -0
  161. package/dist/components/freemium-paywall/index.js +1 -1
  162. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +25 -1
  163. package/dist/components/gestational-age-calculator/index.js +1 -1
  164. package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
  165. package/dist/components/hcg-doubling/hcg.d.ts +33 -0
  166. package/dist/components/hcg-doubling/index.d.ts +4 -0
  167. package/dist/components/hcg-doubling/index.js +7 -0
  168. package/dist/components/index.d.ts +14 -0
  169. package/dist/components/message-card/index.js +5 -4
  170. package/dist/components/message-card/message-card.d.ts +1 -2
  171. package/dist/components/message-tray/index.js +1 -1
  172. package/dist/components/operator-hero/index.js +1 -1
  173. package/dist/components/operator-hero/operator-hero.d.ts +9 -0
  174. package/dist/components/patient-search/index.js +1 -1
  175. package/dist/components/patient-summary-card/index.d.ts +4 -0
  176. package/dist/components/patient-summary-card/index.js +6 -0
  177. package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
  178. package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
  179. package/dist/components/payment-card/index.d.ts +7 -0
  180. package/dist/components/payment-card/index.js +8 -0
  181. package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
  182. package/dist/components/payment-card/payment-card.d.ts +71 -0
  183. package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
  184. package/dist/components/payment-card/payment-request-card.d.ts +43 -0
  185. package/dist/components/payment-form/index.js +1 -1
  186. package/dist/components/pdf-viewer/index.js +1 -1
  187. package/dist/components/periodontal-chart-card/index.d.ts +4 -0
  188. package/dist/components/periodontal-chart-card/index.js +7 -0
  189. package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
  190. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
  191. package/dist/components/practice-results/index.js +1 -1
  192. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  193. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +7 -0
  194. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
  195. package/dist/components/product-hub-tray/index.d.ts +8 -0
  196. package/dist/components/product-hub-tray/index.js +10 -0
  197. package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
  198. package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
  199. package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
  200. package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
  201. package/dist/components/public-header/public-header.d.ts +1 -1
  202. package/dist/components/sidebar/index.d.ts +2 -2
  203. package/dist/components/sidebar/index.js +12 -11
  204. package/dist/components/sidebar/sidebar.d.ts +14 -1
  205. package/dist/components/sign-document/index.js +1 -1
  206. package/dist/components/stat/stat.d.ts +1 -1
  207. package/dist/components/transaction-chip/index.js +1 -1
  208. package/dist/components/unit-converter/index.js +1 -1
  209. package/dist/components/warning-stack/index.js +1 -1
  210. package/dist/components/workflow/index.js +1 -1
  211. package/dist/i18n/locales/ar.d.ts +561 -1
  212. package/dist/i18n/locales/ar.js +560 -2
  213. package/dist/i18n/locales/de.d.ts +561 -1
  214. package/dist/i18n/locales/de.js +560 -2
  215. package/dist/i18n/locales/el.d.ts +561 -1
  216. package/dist/i18n/locales/el.js +560 -2
  217. package/dist/i18n/locales/en.d.ts +561 -1
  218. package/dist/i18n/locales/en.js +560 -2
  219. package/dist/i18n/locales/es.d.ts +561 -1
  220. package/dist/i18n/locales/es.js +560 -2
  221. package/dist/i18n/locales/fr.d.ts +561 -1
  222. package/dist/i18n/locales/fr.js +560 -2
  223. package/dist/i18n/locales/hi.d.ts +561 -1
  224. package/dist/i18n/locales/hi.js +560 -2
  225. package/dist/i18n/locales/it.d.ts +561 -1
  226. package/dist/i18n/locales/it.js +560 -2
  227. package/dist/i18n/locales/ja.d.ts +561 -1
  228. package/dist/i18n/locales/ja.js +560 -2
  229. package/dist/i18n/locales/nl.d.ts +561 -1
  230. package/dist/i18n/locales/nl.js +560 -2
  231. package/dist/i18n/locales/pl.d.ts +561 -1
  232. package/dist/i18n/locales/pl.js +560 -2
  233. package/dist/i18n/locales/pt.d.ts +561 -1
  234. package/dist/i18n/locales/pt.js +560 -2
  235. package/dist/i18n/locales/ro.d.ts +561 -1
  236. package/dist/i18n/locales/ro.js +560 -2
  237. package/dist/i18n/locales/ru.d.ts +561 -1
  238. package/dist/i18n/locales/ru.js +560 -2
  239. package/dist/i18n/locales/sq.d.ts +561 -1
  240. package/dist/i18n/locales/sq.js +560 -2
  241. package/dist/i18n/locales/sv.d.ts +561 -1
  242. package/dist/i18n/locales/sv.js +560 -2
  243. package/dist/i18n/locales/tr.d.ts +561 -1
  244. package/dist/i18n/locales/tr.js +560 -2
  245. package/dist/i18n/locales/zh.d.ts +561 -1
  246. package/dist/i18n/locales/zh.js +560 -2
  247. package/dist/index.js +663 -600
  248. package/dist/locales/ar.json +562 -2
  249. package/dist/locales/de.json +562 -2
  250. package/dist/locales/el.json +562 -2
  251. package/dist/locales/en.json +562 -2
  252. package/dist/locales/es.json +562 -2
  253. package/dist/locales/fr.json +562 -2
  254. package/dist/locales/hi.json +562 -2
  255. package/dist/locales/it.json +562 -2
  256. package/dist/locales/ja.json +562 -2
  257. package/dist/locales/nl.json +562 -2
  258. package/dist/locales/pl.json +562 -2
  259. package/dist/locales/pt.json +562 -2
  260. package/dist/locales/ro.json +562 -2
  261. package/dist/locales/ru.json +562 -2
  262. package/dist/locales/sq.json +562 -2
  263. package/dist/locales/sv.json +562 -2
  264. package/dist/locales/tr.json +562 -2
  265. package/dist/locales/zh.json +562 -2
  266. package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
  267. package/dist/patterns/alia-assistant/index.js +1 -1
  268. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  269. package/dist/patterns/patient-shell/index.js +1 -1
  270. package/dist/tokens.css +1 -1
  271. package/package.json +58 -1
  272. package/dist/_chunks/cycle-calculator-KxA8dqDf.js +0 -211
  273. package/dist/_chunks/due-date-calculator-mFxpHLml.js +0 -216
  274. package/dist/_chunks/gestation-mWF4AXea.js +0 -50
  275. package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js +0 -203
  276. package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
  277. package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js +0 -246
  278. package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
  279. package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
  280. package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
@@ -2,7 +2,7 @@ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as ce, useId as le, useMemo as G, useRef as L, useState as x, useEffect as _, useCallback as l, useImperativeHandle as ue } from "react";
3
3
  import { c as i } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as me } from "react-i18next";
5
- import { P as ge } from "./pdf-viewer-CWEXTlwq.js";
5
+ import { P as ge } from "./pdf-viewer-q1D3Uion.js";
6
6
  import { S as pe } from "./signature-capture-CpMBhqQ9.js";
7
7
  import { u as fe } from "./registry-nPAVE19X.js";
8
8
  import { C as J } from "./circle-check-9AeSgJD_.js";
@@ -341,4 +341,4 @@ export {
341
341
  je as S,
342
342
  ve as s
343
343
  };
344
- //# sourceMappingURL=sign-document-BCyLpFHJ.js.map
344
+ //# sourceMappingURL=sign-document-CZkAf28g.js.map
@@ -1,4 +1,4 @@
1
- import { q as s, r, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
1
+ import { q as s, r, v as i, w as m } from "./date-picker-variants-CXEAx3O_.js";
2
2
  const d = {
3
3
  lessThanXSeconds: {
4
4
  one: "më pak se një sekondë",
@@ -352,4 +352,4 @@ const d = {
352
352
  export {
353
353
  T as sq
354
354
  };
355
- //# sourceMappingURL=sq-_hRPaeUy.js.map
355
+ //# sourceMappingURL=sq-DHlCYN67.js.map
@@ -0,0 +1,8 @@
1
+ import { a as o } from "./date-picker-variants-CXEAx3O_.js";
2
+ function n(a, s, r) {
3
+ return o(a, -s, r);
4
+ }
5
+ export {
6
+ n as s
7
+ };
8
+ //# sourceMappingURL=subDays-Bs00akhK.js.map
@@ -1,4 +1,4 @@
1
- import { q as d, r, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
1
+ import { q as d, r, v as i, w as m } from "./date-picker-variants-CXEAx3O_.js";
2
2
  const s = {
3
3
  lessThanXSeconds: {
4
4
  one: "mindre än en sekund",
@@ -373,4 +373,4 @@ const s = {
373
373
  export {
374
374
  q as sv
375
375
  };
376
- //# sourceMappingURL=sv-g009fSpe.js.map
376
+ //# sourceMappingURL=sv-O0QaQs_s.js.map
@@ -1,4 +1,4 @@
1
- import { q as o, r as n, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
1
+ import { q as o, r as n, v as i, w as m } from "./date-picker-variants-CXEAx3O_.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-OKUOuhMW.js.map
378
+ //# sourceMappingURL=tr-BmNDRuio.js.map
@@ -4,7 +4,7 @@ import { c } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as C } from "react-i18next";
5
5
  import { C as I } from "./check-DPdL_Sm7.js";
6
6
  import { C as k } from "./calendar-clock-CYkcqdwl.js";
7
- import { F as _ } from "./file-text-DSNuv2B8.js";
7
+ import { F as A } from "./file-text-DSNuv2B8.js";
8
8
  import { c as l } from "./createLucideIcon-CrFbzy84.js";
9
9
  /**
10
10
  * @license lucide-react v1.8.0 - ISC
@@ -12,10 +12,10 @@ import { c as l } from "./createLucideIcon-CrFbzy84.js";
12
12
  * This source code is licensed under the ISC license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
14
  */
15
- const A = [
15
+ const _ = [
16
16
  ["path", { d: "M17 7 7 17", key: "15tmo1" }],
17
17
  ["path", { d: "M17 17H7V7", key: "1org7z" }]
18
- ], E = l("arrow-down-left", A);
18
+ ], E = l("arrow-down-left", _);
19
19
  /**
20
20
  * @license lucide-react v1.8.0 - ISC
21
21
  *
@@ -34,7 +34,7 @@ const L = [
34
34
  }, F = {
35
35
  debt: E,
36
36
  credit: R,
37
- "to-invoice": _,
37
+ "to-invoice": A,
38
38
  "to-deliver": k,
39
39
  settled: I
40
40
  }, M = {
@@ -178,6 +178,8 @@ const L = [
178
178
  );
179
179
  G.displayName = "TransactionChip";
180
180
  export {
181
- G as T
181
+ E as A,
182
+ G as T,
183
+ R as a
182
184
  };
183
- //# sourceMappingURL=transaction-chip-B8ujzowA.js.map
185
+ //# sourceMappingURL=transaction-chip-BZCa6XDn.js.map
@@ -5,7 +5,7 @@ import { useTranslation as j } from "react-i18next";
5
5
  import { F as v } from "./form-field-BOm9hK35.js";
6
6
  import { N as B } from "./number-input-Dj5L3pXK.js";
7
7
  import { S as C } from "./select-hsCaJSX3.js";
8
- import { I as L } from "./insert-result-C5ABnzDl.js";
8
+ import { I as L } from "./insert-result-DNdi_JYW.js";
9
9
  const _ = {
10
10
  // weight → base kg
11
11
  kg: { id: "kg", category: "weight", factor: 1, offset: 0 },
@@ -193,4 +193,4 @@ export {
193
193
  P as b,
194
194
  K as c
195
195
  };
196
- //# sourceMappingURL=unit-converter-u3CwNDpP.js.map
196
+ //# sourceMappingURL=unit-converter-jWp3Z85y.js.map
@@ -0,0 +1,24 @@
1
+ import { c as e } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const c = [
9
+ ["path", { d: "M10 15H6a4 4 0 0 0-4 4v2", key: "1nfge6" }],
10
+ ["path", { d: "m14.305 16.53.923-.382", key: "1itpsq" }],
11
+ ["path", { d: "m15.228 13.852-.923-.383", key: "eplpkm" }],
12
+ ["path", { d: "m16.852 12.228-.383-.923", key: "13v3q0" }],
13
+ ["path", { d: "m16.852 17.772-.383.924", key: "1i8mnm" }],
14
+ ["path", { d: "m19.148 12.228.383-.923", key: "1q8j1v" }],
15
+ ["path", { d: "m19.53 18.696-.382-.924", key: "vk1qj3" }],
16
+ ["path", { d: "m20.772 13.852.924-.383", key: "n880s0" }],
17
+ ["path", { d: "m20.772 16.148.924.383", key: "1g6xey" }],
18
+ ["circle", { cx: "18", cy: "15", r: "3", key: "gjjjvw" }],
19
+ ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
20
+ ], k = e("user-cog", c);
21
+ export {
22
+ k as U
23
+ };
24
+ //# sourceMappingURL=user-cog-BS_qc8nA.js.map
@@ -0,0 +1,21 @@
1
+ import { c as e } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const o = [
9
+ [
10
+ "path",
11
+ {
12
+ d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
13
+ key: "ftymec"
14
+ }
15
+ ],
16
+ ["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
17
+ ], c = e("video", o);
18
+ export {
19
+ c as V
20
+ };
21
+ //# sourceMappingURL=video-BAeICxCT.js.map
@@ -0,0 +1,220 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as U, useId as M, useState as T, useEffect as b, useMemo as G, useRef as p, useCallback as S } from "react";
3
+ import { c as V } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as X } from "react-i18next";
5
+ import { A as v } from "./alert-CUTxnym2.js";
6
+ import { B as Y } from "./button-DD_0Xdmr.js";
7
+ import { C as Z } from "./chevron-down-BX_NP2Yh.js";
8
+ const O = V(
9
+ [
10
+ "ds:flex ds:flex-col",
11
+ "ds:rounded-[var(--radius-lg)]",
12
+ "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
13
+ "ds:shadow-[var(--shadow-card)]",
14
+ "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
15
+ "ds:p-[var(--spacing-md)]"
16
+ ].join(" "),
17
+ {
18
+ variants: {
19
+ size: {
20
+ sm: "ds:gap-[var(--spacing-sm)]",
21
+ md: "ds:gap-[var(--spacing-md)]"
22
+ },
23
+ // `stretch: true` fills the parent layout cell — mirrors the `stretch`
24
+ // prop on `Card` so a WarningStack rendered next to a Card in a grid
25
+ // row ends up at matching height.
26
+ stretch: {
27
+ true: "ds:h-full ds:self-stretch",
28
+ false: ""
29
+ }
30
+ },
31
+ defaultVariants: {
32
+ size: "md",
33
+ stretch: !1
34
+ }
35
+ }
36
+ ), $ = V(
37
+ [
38
+ "ds:grid ds:grid-cols-1",
39
+ "ds:@3xl/warning-stack:grid-cols-2",
40
+ "ds:@3xl/warning-stack:[&>li:nth-child(odd):last-child]:col-span-full"
41
+ ].join(" "),
42
+ {
43
+ variants: {
44
+ size: {
45
+ sm: "ds:gap-[var(--spacing-sm)]",
46
+ md: "ds:gap-[var(--spacing-md)]"
47
+ }
48
+ },
49
+ defaultVariants: { size: "md" }
50
+ }
51
+ ), D = [
52
+ "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:self-start"
53
+ ].join(" "), nn = U(
54
+ ({
55
+ items: u,
56
+ title: k,
57
+ description: N,
58
+ maxVisible: o,
59
+ defaultCollapsed: _ = !0,
60
+ onDismiss: f,
61
+ size: w = "md",
62
+ stretch: C = !1,
63
+ ariaLabel: q,
64
+ emptyState: y,
65
+ className: I,
66
+ ...j
67
+ }, l) => {
68
+ const { t: i } = X(), g = M(), z = M(), [R, A] = T(
69
+ () => /* @__PURE__ */ new Set()
70
+ );
71
+ b(() => {
72
+ A((n) => {
73
+ if (n.size === 0) return n;
74
+ const s = new Set(u.map((a) => a.id)), r = new Set([...n].filter((a) => s.has(a)));
75
+ return r.size === n.size ? n : r;
76
+ });
77
+ }, [u]);
78
+ const t = G(
79
+ () => u.filter((n) => !R.has(n.id)),
80
+ [u, R]
81
+ ), h = o !== void 0 && t.length > o, [c, F] = T(_), x = p(null), L = p(t.length);
82
+ b(() => {
83
+ if (!x.current) return;
84
+ const n = L.current, s = t.length;
85
+ n !== s && (x.current.textContent = i("warningStack.countChanged", {
86
+ count: s,
87
+ defaultValue: "{{count}} warnings to review"
88
+ })), L.current = s;
89
+ }, [t.length, i]);
90
+ const H = G(() => !h || !c ? t : t.slice(0, o), [t, h, c, o]), J = h ? t.length - (o ?? 0) : 0, B = p(null), W = S(
91
+ (n) => {
92
+ B.current = n, typeof l == "function" ? l(n) : l && (l.current = n);
93
+ },
94
+ [l]
95
+ ), m = p(null);
96
+ b(() => {
97
+ if (m.current === null) return;
98
+ const n = m.current;
99
+ m.current = null;
100
+ const s = B.current;
101
+ if (!s) return;
102
+ const r = Array.from(
103
+ s.querySelectorAll("[data-alert-dismiss]")
104
+ ), a = r[Math.min(n, r.length - 1)];
105
+ a ? a.focus() : s.focus();
106
+ });
107
+ const K = S(
108
+ (n, s) => (r) => {
109
+ r || (m.current = s, A((a) => new Set(a).add(n.id)), f == null || f(n));
110
+ },
111
+ [f]
112
+ ), P = S(() => F((n) => !n), []), Q = q ?? i("warningStack.regionLabel", "Warnings"), E = k ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
113
+ /* @__PURE__ */ e(
114
+ "h2",
115
+ {
116
+ id: g,
117
+ className: "ds:text-start type-title-section ds:text-[var(--foreground)]",
118
+ children: k
119
+ }
120
+ ),
121
+ N ? /* @__PURE__ */ e("p", { className: "ds:text-start type-body-sm ds:text-[var(--muted-foreground)]", children: N }) : null
122
+ ] }) : /* @__PURE__ */ e("h2", { id: g, className: "ds:sr-only", children: Q });
123
+ return t.length === 0 ? y ? /* @__PURE__ */ d(
124
+ "section",
125
+ {
126
+ ref: W,
127
+ "aria-labelledby": g,
128
+ "data-component": "warning-stack",
129
+ tabIndex: -1,
130
+ className: [O({ size: w, stretch: C }), I].filter(Boolean).join(" "),
131
+ ...j,
132
+ children: [
133
+ E,
134
+ y
135
+ ]
136
+ }
137
+ ) : null : /* @__PURE__ */ d(
138
+ "section",
139
+ {
140
+ ref: W,
141
+ "aria-labelledby": g,
142
+ "data-component": "warning-stack",
143
+ tabIndex: -1,
144
+ className: [O({ size: w, stretch: C }), I].filter(Boolean).join(" "),
145
+ ...j,
146
+ children: [
147
+ E,
148
+ /* @__PURE__ */ e(
149
+ "div",
150
+ {
151
+ ref: x,
152
+ "aria-live": "polite",
153
+ "aria-atomic": "true",
154
+ className: "ds:sr-only"
155
+ }
156
+ ),
157
+ /* @__PURE__ */ e("div", { className: "ds:@container/warning-stack", children: /* @__PURE__ */ e(
158
+ "ul",
159
+ {
160
+ id: z,
161
+ className: $({ size: w }),
162
+ "aria-label": i("warningStack.listLabel", "Notices"),
163
+ children: H.map((n, s) => {
164
+ const r = n.variant ?? "warning";
165
+ return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
166
+ v,
167
+ {
168
+ variant: r,
169
+ dismissible: n.dismissible,
170
+ icon: n.icon,
171
+ onOpenChange: K(n, s),
172
+ className: "ds:h-full",
173
+ children: [
174
+ /* @__PURE__ */ e(v.Title, { as: "h3", children: n.title }),
175
+ n.description ? /* @__PURE__ */ e(v.Description, { children: n.description }) : null,
176
+ n.actions ? /* @__PURE__ */ e(v.Action, { children: n.actions }) : null
177
+ ]
178
+ }
179
+ ) }, n.id);
180
+ })
181
+ }
182
+ ) }),
183
+ h ? /* @__PURE__ */ d(
184
+ Y,
185
+ {
186
+ type: "button",
187
+ intent: "link",
188
+ size: "sm",
189
+ "aria-expanded": !c,
190
+ "aria-controls": z,
191
+ onClick: P,
192
+ className: D,
193
+ children: [
194
+ /* @__PURE__ */ e(
195
+ Z,
196
+ {
197
+ "aria-hidden": "true",
198
+ className: [
199
+ "ds:size-4 ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
200
+ c ? "" : "ds:rotate-180"
201
+ ].join(" ")
202
+ }
203
+ ),
204
+ c ? i("warningStack.showMore", {
205
+ count: J,
206
+ defaultValue: "Show {{count}} more warnings"
207
+ }) : i("warningStack.showLess", "Show less")
208
+ ]
209
+ }
210
+ ) : null
211
+ ]
212
+ }
213
+ );
214
+ }
215
+ );
216
+ nn.displayName = "WarningStack";
217
+ export {
218
+ nn as W
219
+ };
220
+ //# sourceMappingURL=warning-stack-CXfoAT-_.js.map