@mieweb/ui 0.6.1 → 0.7.0-dev.179

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 (450) hide show
  1. package/README.md +90 -53
  2. package/dist/CsvBlock-2A5VEDD3.cjs +15 -0
  3. package/dist/CsvBlock-2A5VEDD3.cjs.map +1 -0
  4. package/dist/CsvBlock-D6PWAJ5X.js +6 -0
  5. package/dist/CsvBlock-D6PWAJ5X.js.map +1 -0
  6. package/dist/HtmlPreviewBlock-PEHTJ6C3.js +6 -0
  7. package/dist/HtmlPreviewBlock-PEHTJ6C3.js.map +1 -0
  8. package/dist/HtmlPreviewBlock-SYXCV5RH.cjs +15 -0
  9. package/dist/HtmlPreviewBlock-SYXCV5RH.cjs.map +1 -0
  10. package/dist/MedicationEditor-Bp4NLy7y.d.cts +352 -0
  11. package/dist/MedicationEditor-Bp4NLy7y.d.ts +352 -0
  12. package/dist/MermaidBlock-7NK3AVK2.js +6 -0
  13. package/dist/MermaidBlock-7NK3AVK2.js.map +1 -0
  14. package/dist/MermaidBlock-AFXNP5NK.cjs +15 -0
  15. package/dist/MermaidBlock-AFXNP5NK.cjs.map +1 -0
  16. package/dist/SurveyBlock-6KRNKFH5.cjs +15 -0
  17. package/dist/SurveyBlock-6KRNKFH5.cjs.map +1 -0
  18. package/dist/SurveyBlock-NNDGXGG4.js +6 -0
  19. package/dist/SurveyBlock-NNDGXGG4.js.map +1 -0
  20. package/dist/ag-grid.cjs +6 -6
  21. package/dist/ag-grid.cjs.map +1 -1
  22. package/dist/ag-grid.js +2 -2
  23. package/dist/ag-grid.js.map +1 -1
  24. package/dist/brands/index.cjs +17 -17
  25. package/dist/brands/index.js +4 -4
  26. package/dist/chunk-372IIHUA.cjs +2017 -0
  27. package/dist/chunk-372IIHUA.cjs.map +1 -0
  28. package/dist/{chunk-2DS3RJ2D.js → chunk-3TERETXH.js} +112 -3
  29. package/dist/chunk-3TERETXH.js.map +1 -0
  30. package/dist/chunk-44CK4CT2.cjs +336 -0
  31. package/dist/chunk-44CK4CT2.cjs.map +1 -0
  32. package/dist/{chunk-FSBFQBNE.cjs → chunk-4GXECTPS.cjs} +2 -2
  33. package/dist/{chunk-FSBFQBNE.cjs.map → chunk-4GXECTPS.cjs.map} +1 -1
  34. package/dist/chunk-4LVPQ44A.js +228 -0
  35. package/dist/chunk-4LVPQ44A.js.map +1 -0
  36. package/dist/{chunk-6555OYRU.js → chunk-5BQE6BEL.js} +2 -2
  37. package/dist/{chunk-6555OYRU.js.map → chunk-5BQE6BEL.js.map} +1 -1
  38. package/dist/chunk-62ZOA6PX.js +31 -0
  39. package/dist/chunk-62ZOA6PX.js.map +1 -0
  40. package/dist/chunk-63KVQHGQ.cjs +1802 -0
  41. package/dist/chunk-63KVQHGQ.cjs.map +1 -0
  42. package/dist/chunk-6AHYYWVB.js +78 -0
  43. package/dist/chunk-6AHYYWVB.js.map +1 -0
  44. package/dist/chunk-6I7IDZ4A.js +51 -0
  45. package/dist/chunk-6I7IDZ4A.js.map +1 -0
  46. package/dist/chunk-6ZYE6JUK.cjs +80 -0
  47. package/dist/chunk-6ZYE6JUK.cjs.map +1 -0
  48. package/dist/chunk-7QXG5BBB.cjs +164 -0
  49. package/dist/chunk-7QXG5BBB.cjs.map +1 -0
  50. package/dist/chunk-7WMSUXOQ.js +182 -0
  51. package/dist/chunk-7WMSUXOQ.js.map +1 -0
  52. package/dist/chunk-7XUN3OQT.js +3 -0
  53. package/dist/{chunk-V2DF2GUE.js.map → chunk-7XUN3OQT.js.map} +1 -1
  54. package/dist/chunk-7ZVTLTJF.js +109 -0
  55. package/dist/chunk-7ZVTLTJF.js.map +1 -0
  56. package/dist/chunk-AES2BKEW.cjs +229 -0
  57. package/dist/chunk-AES2BKEW.cjs.map +1 -0
  58. package/dist/chunk-AFKKJEV5.cjs +72 -0
  59. package/dist/chunk-AFKKJEV5.cjs.map +1 -0
  60. package/dist/chunk-AT732HC6.cjs +4 -0
  61. package/dist/{chunk-74K3RRU7.cjs.map → chunk-AT732HC6.cjs.map} +1 -1
  62. package/dist/chunk-BB4WQ4LV.cjs +137 -0
  63. package/dist/chunk-BB4WQ4LV.cjs.map +1 -0
  64. package/dist/chunk-BIT27PPD.js +49 -0
  65. package/dist/chunk-BIT27PPD.js.map +1 -0
  66. package/dist/chunk-BLPCYP4D.cjs +537 -0
  67. package/dist/chunk-BLPCYP4D.cjs.map +1 -0
  68. package/dist/chunk-BT3ZQJGT.cjs +130 -0
  69. package/dist/chunk-BT3ZQJGT.cjs.map +1 -0
  70. package/dist/chunk-BX6BTDTR.js +34 -0
  71. package/dist/chunk-BX6BTDTR.js.map +1 -0
  72. package/dist/chunk-C2544GKZ.js +313 -0
  73. package/dist/chunk-C2544GKZ.js.map +1 -0
  74. package/dist/chunk-C7RVKV25.cjs +25 -0
  75. package/dist/chunk-C7RVKV25.cjs.map +1 -0
  76. package/dist/chunk-CKD554XR.cjs +100 -0
  77. package/dist/chunk-CKD554XR.cjs.map +1 -0
  78. package/dist/chunk-CVC4NWFA.cjs +154 -0
  79. package/dist/chunk-CVC4NWFA.cjs.map +1 -0
  80. package/dist/{chunk-K3IVCUPP.js → chunk-CYMZ2QS5.js} +2 -2
  81. package/dist/{chunk-K3IVCUPP.js.map → chunk-CYMZ2QS5.js.map} +1 -1
  82. package/dist/{chunk-FRT6RQND.cjs → chunk-DAPZPT5N.cjs} +92 -56
  83. package/dist/chunk-DAPZPT5N.cjs.map +1 -0
  84. package/dist/chunk-DHKYGVP7.js +3 -0
  85. package/dist/{chunk-LEMY57MI.js.map → chunk-DHKYGVP7.js.map} +1 -1
  86. package/dist/chunk-DLNJLCNO.cjs +101 -0
  87. package/dist/chunk-DLNJLCNO.cjs.map +1 -0
  88. package/dist/chunk-DUPR6FEL.js +43 -0
  89. package/dist/chunk-DUPR6FEL.js.map +1 -0
  90. package/dist/{chunk-4FALCEJI.cjs → chunk-EL2RSQTJ.cjs} +2 -2
  91. package/dist/{chunk-4FALCEJI.cjs.map → chunk-EL2RSQTJ.cjs.map} +1 -1
  92. package/dist/chunk-ERLPVXOV.js +22 -0
  93. package/dist/chunk-ERLPVXOV.js.map +1 -0
  94. package/dist/chunk-FIWKHLWY.js +197 -0
  95. package/dist/chunk-FIWKHLWY.js.map +1 -0
  96. package/dist/chunk-FJH7P5WG.js +513 -0
  97. package/dist/chunk-FJH7P5WG.js.map +1 -0
  98. package/dist/chunk-FSGEDDF2.cjs +33 -0
  99. package/dist/chunk-FSGEDDF2.cjs.map +1 -0
  100. package/dist/chunk-GLXTVCHN.cjs +4 -0
  101. package/dist/{chunk-4ZU53GNR.cjs.map → chunk-GLXTVCHN.cjs.map} +1 -1
  102. package/dist/chunk-HRS6W74P.js +1568 -0
  103. package/dist/chunk-HRS6W74P.js.map +1 -0
  104. package/dist/chunk-I2W24RHW.js +196 -0
  105. package/dist/chunk-I2W24RHW.js.map +1 -0
  106. package/dist/chunk-I6CY5C6A.js +12 -0
  107. package/dist/chunk-I6CY5C6A.js.map +1 -0
  108. package/dist/chunk-IQ4KQJAO.js +3 -0
  109. package/dist/chunk-IQ4KQJAO.js.map +1 -0
  110. package/dist/chunk-IWDQPSJN.cjs +1452 -0
  111. package/dist/chunk-IWDQPSJN.cjs.map +1 -0
  112. package/dist/chunk-J7KWQJOB.js +14 -0
  113. package/dist/chunk-J7KWQJOB.js.map +1 -0
  114. package/dist/{chunk-R25H4N4Z.js → chunk-J7Z7467B.js} +92 -56
  115. package/dist/chunk-J7Z7467B.js.map +1 -0
  116. package/dist/{chunk-NINI4WVS.cjs → chunk-JC6Y3LGF.cjs} +297 -84
  117. package/dist/chunk-JC6Y3LGF.cjs.map +1 -0
  118. package/dist/chunk-JCNPVK74.cjs +347 -0
  119. package/dist/chunk-JCNPVK74.cjs.map +1 -0
  120. package/dist/chunk-JFLC7SHM.cjs +35 -0
  121. package/dist/chunk-JFLC7SHM.cjs.map +1 -0
  122. package/dist/chunk-JHYFHEHS.js +1967 -0
  123. package/dist/chunk-JHYFHEHS.js.map +1 -0
  124. package/dist/{chunk-IBZXDX4L.cjs → chunk-JQEY53SH.cjs} +112 -3
  125. package/dist/chunk-JQEY53SH.cjs.map +1 -0
  126. package/dist/chunk-JTBQNOSL.cjs +1605 -0
  127. package/dist/chunk-JTBQNOSL.cjs.map +1 -0
  128. package/dist/chunk-JYZW2PZS.cjs +166 -0
  129. package/dist/chunk-JYZW2PZS.cjs.map +1 -0
  130. package/dist/chunk-KBEKQMVY.cjs +198 -0
  131. package/dist/chunk-KBEKQMVY.cjs.map +1 -0
  132. package/dist/chunk-KJ5BSGEO.cjs +258 -0
  133. package/dist/chunk-KJ5BSGEO.cjs.map +1 -0
  134. package/dist/{chunk-DNPRRYPQ.js → chunk-KL2S36FM.js} +2 -2
  135. package/dist/chunk-KL2S36FM.js.map +1 -0
  136. package/dist/chunk-LIH3IZYK.js +689 -0
  137. package/dist/chunk-LIH3IZYK.js.map +1 -0
  138. package/dist/chunk-MAMY5HTT.cjs +1177 -0
  139. package/dist/chunk-MAMY5HTT.cjs.map +1 -0
  140. package/dist/{chunk-WFS6R2F5.js → chunk-MKWGKASO.js} +114 -101
  141. package/dist/chunk-MKWGKASO.js.map +1 -0
  142. package/dist/{chunk-CV4CVGLO.cjs → chunk-MZPF2QGM.cjs} +95 -74
  143. package/dist/chunk-MZPF2QGM.cjs.map +1 -0
  144. package/dist/chunk-NQME7MCK.js +1416 -0
  145. package/dist/chunk-NQME7MCK.js.map +1 -0
  146. package/dist/chunk-NTYGCBCL.js +543 -0
  147. package/dist/chunk-NTYGCBCL.js.map +1 -0
  148. package/dist/chunk-OF7NTZ2I.js +3 -0
  149. package/dist/chunk-OF7NTZ2I.js.map +1 -0
  150. package/dist/chunk-OXYFTCRW.cjs +57 -0
  151. package/dist/chunk-OXYFTCRW.cjs.map +1 -0
  152. package/dist/chunk-QA6ZDHFP.js +117 -0
  153. package/dist/chunk-QA6ZDHFP.js.map +1 -0
  154. package/dist/chunk-RHNPILZQ.cjs +4 -0
  155. package/dist/chunk-RHNPILZQ.cjs.map +1 -0
  156. package/dist/chunk-RHYIFIT5.js +98 -0
  157. package/dist/chunk-RHYIFIT5.js.map +1 -0
  158. package/dist/chunk-RI56YPED.cjs +201 -0
  159. package/dist/chunk-RI56YPED.cjs.map +1 -0
  160. package/dist/chunk-RISZWWEQ.js +3 -0
  161. package/dist/chunk-RISZWWEQ.js.map +1 -0
  162. package/dist/chunk-S6Z3KDEM.js +140 -0
  163. package/dist/chunk-S6Z3KDEM.js.map +1 -0
  164. package/dist/chunk-S7JQ3FV5.cjs +16 -0
  165. package/dist/chunk-S7JQ3FV5.cjs.map +1 -0
  166. package/dist/{chunk-OXGUG57G.cjs → chunk-SNEQXSC5.cjs} +2 -2
  167. package/dist/{chunk-OXGUG57G.cjs.map → chunk-SNEQXSC5.cjs.map} +1 -1
  168. package/dist/chunk-SQHMGT4W.js +164 -0
  169. package/dist/chunk-SQHMGT4W.js.map +1 -0
  170. package/dist/{chunk-JHPFOG2N.cjs → chunk-ST2RE5UB.cjs} +30 -18
  171. package/dist/chunk-ST2RE5UB.cjs.map +1 -0
  172. package/dist/{chunk-QVJBUWJQ.js → chunk-STPK44AU.js} +46 -12
  173. package/dist/chunk-STPK44AU.js.map +1 -0
  174. package/dist/chunk-T3C4RNJ4.js +106 -0
  175. package/dist/chunk-T3C4RNJ4.js.map +1 -0
  176. package/dist/chunk-T3RWXOCM.js +148 -0
  177. package/dist/chunk-T3RWXOCM.js.map +1 -0
  178. package/dist/{chunk-DCER2QQB.js → chunk-T42BCIUA.js} +2 -2
  179. package/dist/{chunk-DCER2QQB.js.map → chunk-T42BCIUA.js.map} +1 -1
  180. package/dist/{chunk-OYKS2JBB.cjs → chunk-TN33E2VN.cjs} +2 -2
  181. package/dist/chunk-TN33E2VN.cjs.map +1 -0
  182. package/dist/{chunk-K7IGBNZA.cjs → chunk-TR2OJKQ4.cjs} +46 -12
  183. package/dist/chunk-TR2OJKQ4.cjs.map +1 -0
  184. package/dist/chunk-UFYXU7KV.js +135 -0
  185. package/dist/chunk-UFYXU7KV.js.map +1 -0
  186. package/dist/chunk-UM6NA7HL.js +1145 -0
  187. package/dist/chunk-UM6NA7HL.js.map +1 -0
  188. package/dist/chunk-UO3KEUYK.cjs +220 -0
  189. package/dist/chunk-UO3KEUYK.cjs.map +1 -0
  190. package/dist/chunk-UOOH356R.cjs +66 -0
  191. package/dist/chunk-UOOH356R.cjs.map +1 -0
  192. package/dist/{chunk-4ZU53GNR.cjs → chunk-UTYUT5YY.cjs} +62 -2
  193. package/dist/chunk-UTYUT5YY.cjs.map +1 -0
  194. package/dist/chunk-UVSODK6V.cjs +53 -0
  195. package/dist/chunk-UVSODK6V.cjs.map +1 -0
  196. package/dist/chunk-V25Z5GR6.cjs +184 -0
  197. package/dist/chunk-V25Z5GR6.cjs.map +1 -0
  198. package/dist/chunk-VBWRH4UW.cjs +4 -0
  199. package/dist/chunk-VBWRH4UW.cjs.map +1 -0
  200. package/dist/chunk-VJOVJTFP.cjs +370 -0
  201. package/dist/chunk-VJOVJTFP.cjs.map +1 -0
  202. package/dist/{chunk-7BARESXI.cjs → chunk-VPNURIAY.cjs} +114 -101
  203. package/dist/chunk-VPNURIAY.cjs.map +1 -0
  204. package/dist/{chunk-I56VBDSC.js → chunk-XDFDVF2O.js} +30 -18
  205. package/dist/chunk-XDFDVF2O.js.map +1 -0
  206. package/dist/chunk-XL7TTKHP.js +327 -0
  207. package/dist/chunk-XL7TTKHP.js.map +1 -0
  208. package/dist/chunk-Y2S6QMKU.js +78 -0
  209. package/dist/chunk-Y2S6QMKU.js.map +1 -0
  210. package/dist/chunk-Y4ESBDQ5.cjs +552 -0
  211. package/dist/chunk-Y4ESBDQ5.cjs.map +1 -0
  212. package/dist/chunk-Y5KEFV5O.js +192 -0
  213. package/dist/chunk-Y5KEFV5O.js.map +1 -0
  214. package/dist/chunk-YBLIDESO.js +365 -0
  215. package/dist/chunk-YBLIDESO.js.map +1 -0
  216. package/dist/chunk-YVLP3ATI.js +1776 -0
  217. package/dist/chunk-YVLP3ATI.js.map +1 -0
  218. package/dist/chunk-YVPC65ZJ.cjs +134 -0
  219. package/dist/chunk-YVPC65ZJ.cjs.map +1 -0
  220. package/dist/{chunk-MPOWJVV4.js → chunk-YZT62IMX.js} +95 -74
  221. package/dist/chunk-YZT62IMX.js.map +1 -0
  222. package/dist/chunk-ZAIEQWRA.js +207 -0
  223. package/dist/chunk-ZAIEQWRA.js.map +1 -0
  224. package/dist/chunk-ZDEYV373.cjs +139 -0
  225. package/dist/chunk-ZDEYV373.cjs.map +1 -0
  226. package/dist/{chunk-Q7NBJFEB.js → chunk-ZGSC2CB2.js} +2 -2
  227. package/dist/{chunk-Q7NBJFEB.js.map → chunk-ZGSC2CB2.js.map} +1 -1
  228. package/dist/{chunk-3M4P2KMG.cjs → chunk-ZHBANUBI.cjs} +2 -2
  229. package/dist/{chunk-3M4P2KMG.cjs.map → chunk-ZHBANUBI.cjs.map} +1 -1
  230. package/dist/components/AlertDialog/index.cjs +18 -0
  231. package/dist/components/AlertDialog/index.cjs.map +1 -0
  232. package/dist/components/AlertDialog/index.d.cts +56 -0
  233. package/dist/components/AlertDialog/index.d.ts +56 -0
  234. package/dist/components/AlertDialog/index.js +9 -0
  235. package/dist/components/AlertDialog/index.js.map +1 -0
  236. package/dist/components/AudioRecorder/index.d.cts +1 -1
  237. package/dist/components/AudioRecorder/index.d.ts +1 -1
  238. package/dist/components/Autocomplete/index.cjs +16 -0
  239. package/dist/components/Autocomplete/index.cjs.map +1 -0
  240. package/dist/components/Autocomplete/index.d.cts +77 -0
  241. package/dist/components/Autocomplete/index.d.ts +77 -0
  242. package/dist/components/Autocomplete/index.js +7 -0
  243. package/dist/components/Autocomplete/index.js.map +1 -0
  244. package/dist/components/Badge/index.cjs +4 -3
  245. package/dist/components/Badge/index.js +2 -1
  246. package/dist/components/Card/index.cjs +16 -15
  247. package/dist/components/Card/index.js +2 -1
  248. package/dist/components/Collapsible/index.cjs +21 -0
  249. package/dist/components/Collapsible/index.cjs.map +1 -0
  250. package/dist/components/Collapsible/index.d.cts +33 -0
  251. package/dist/components/Collapsible/index.d.ts +33 -0
  252. package/dist/components/Collapsible/index.js +4 -0
  253. package/dist/components/Collapsible/index.js.map +1 -0
  254. package/dist/components/CountryCodeDropdown/index.cjs +6 -5
  255. package/dist/components/CountryCodeDropdown/index.js +3 -2
  256. package/dist/components/DateInput/index.cjs +2 -2
  257. package/dist/components/DateInput/index.d.cts +8 -2
  258. package/dist/components/DateInput/index.d.ts +8 -2
  259. package/dist/components/DateInput/index.js +1 -1
  260. package/dist/components/Dropdown/index.cjs +9 -8
  261. package/dist/components/Dropdown/index.d.cts +2 -1
  262. package/dist/components/Dropdown/index.d.ts +2 -1
  263. package/dist/components/Dropdown/index.js +3 -2
  264. package/dist/components/FloatingWindow/index.cjs +18 -0
  265. package/dist/components/FloatingWindow/index.cjs.map +1 -0
  266. package/dist/components/FloatingWindow/index.d.cts +64 -0
  267. package/dist/components/FloatingWindow/index.d.ts +64 -0
  268. package/dist/components/FloatingWindow/index.js +5 -0
  269. package/dist/components/FloatingWindow/index.js.map +1 -0
  270. package/dist/components/Label/index.cjs +17 -0
  271. package/dist/components/Label/index.cjs.map +1 -0
  272. package/dist/components/Label/index.d.cts +23 -0
  273. package/dist/components/Label/index.d.ts +23 -0
  274. package/dist/components/Label/index.js +4 -0
  275. package/dist/components/Label/index.js.map +1 -0
  276. package/dist/components/Markdown/index.cjs +51 -0
  277. package/dist/components/Markdown/index.cjs.map +1 -0
  278. package/dist/components/Markdown/index.css +331 -0
  279. package/dist/components/Markdown/index.css.map +1 -0
  280. package/dist/components/Markdown/index.d.cts +82 -0
  281. package/dist/components/Markdown/index.d.ts +82 -0
  282. package/dist/components/Markdown/index.js +10 -0
  283. package/dist/components/Markdown/index.js.map +1 -0
  284. package/dist/components/Markdown/styles.css +354 -0
  285. package/dist/components/MediaEditor/index.cjs +44 -0
  286. package/dist/components/MediaEditor/index.cjs.map +1 -0
  287. package/dist/components/MediaEditor/index.d.cts +151 -0
  288. package/dist/components/MediaEditor/index.d.ts +151 -0
  289. package/dist/components/MediaEditor/index.js +19 -0
  290. package/dist/components/MediaEditor/index.js.map +1 -0
  291. package/dist/components/MediaPlayer/index.cjs +24 -0
  292. package/dist/components/MediaPlayer/index.cjs.map +1 -0
  293. package/dist/components/MediaPlayer/index.d.cts +71 -0
  294. package/dist/components/MediaPlayer/index.d.ts +71 -0
  295. package/dist/components/MediaPlayer/index.js +7 -0
  296. package/dist/components/MediaPlayer/index.js.map +1 -0
  297. package/dist/components/RecordButton/index.cjs +4 -4
  298. package/dist/components/RecordButton/index.js +1 -1
  299. package/dist/components/RichTextEditor/index.cjs +33 -0
  300. package/dist/components/RichTextEditor/index.cjs.map +1 -0
  301. package/dist/components/RichTextEditor/index.d.cts +62 -0
  302. package/dist/components/RichTextEditor/index.d.ts +62 -0
  303. package/dist/components/RichTextEditor/index.js +12 -0
  304. package/dist/components/RichTextEditor/index.js.map +1 -0
  305. package/dist/components/ScrollArea/index.cjs +17 -0
  306. package/dist/components/ScrollArea/index.cjs.map +1 -0
  307. package/dist/components/ScrollArea/index.d.cts +22 -0
  308. package/dist/components/ScrollArea/index.d.ts +22 -0
  309. package/dist/components/ScrollArea/index.js +4 -0
  310. package/dist/components/ScrollArea/index.js.map +1 -0
  311. package/dist/components/Select/index.cjs +5 -3
  312. package/dist/components/Select/index.js +3 -1
  313. package/dist/components/Separator/index.cjs +17 -0
  314. package/dist/components/Separator/index.cjs.map +1 -0
  315. package/dist/components/Separator/index.d.cts +27 -0
  316. package/dist/components/Separator/index.d.ts +27 -0
  317. package/dist/components/Separator/index.js +4 -0
  318. package/dist/components/Separator/index.js.map +1 -0
  319. package/dist/components/Sheet/index.cjs +48 -0
  320. package/dist/components/Sheet/index.cjs.map +1 -0
  321. package/dist/components/Sheet/index.d.cts +62 -0
  322. package/dist/components/Sheet/index.d.ts +62 -0
  323. package/dist/components/Sheet/index.js +7 -0
  324. package/dist/components/Sheet/index.js.map +1 -0
  325. package/dist/components/SuperChat/index.cjs +1373 -0
  326. package/dist/components/SuperChat/index.cjs.map +1 -0
  327. package/dist/components/SuperChat/index.d.cts +189 -0
  328. package/dist/components/SuperChat/index.d.ts +189 -0
  329. package/dist/components/SuperChat/index.js +1336 -0
  330. package/dist/components/SuperChat/index.js.map +1 -0
  331. package/dist/components/SuperChat/plugins/index.cjs +1292 -0
  332. package/dist/components/SuperChat/plugins/index.cjs.map +1 -0
  333. package/dist/components/SuperChat/plugins/index.d.cts +233 -0
  334. package/dist/components/SuperChat/plugins/index.d.ts +233 -0
  335. package/dist/components/SuperChat/plugins/index.js +1252 -0
  336. package/dist/components/SuperChat/plugins/index.js.map +1 -0
  337. package/dist/components/Table/index.cjs +9 -9
  338. package/dist/components/Table/index.d.cts +4 -0
  339. package/dist/components/Table/index.d.ts +4 -0
  340. package/dist/components/Table/index.js +1 -1
  341. package/dist/components/ThemeProvider/index.cjs +7 -7
  342. package/dist/components/ThemeProvider/index.js +1 -1
  343. package/dist/components/Toggle/index.cjs +17 -0
  344. package/dist/components/Toggle/index.cjs.map +1 -0
  345. package/dist/components/Toggle/index.d.cts +28 -0
  346. package/dist/components/Toggle/index.d.ts +28 -0
  347. package/dist/components/Toggle/index.js +4 -0
  348. package/dist/components/Toggle/index.js.map +1 -0
  349. package/dist/components/TranscriptView/index.cjs +21 -0
  350. package/dist/components/TranscriptView/index.cjs.map +1 -0
  351. package/dist/components/TranscriptView/index.d.cts +55 -0
  352. package/dist/components/TranscriptView/index.d.ts +55 -0
  353. package/dist/components/TranscriptView/index.js +4 -0
  354. package/dist/components/TranscriptView/index.js.map +1 -0
  355. package/dist/datavis.cjs +268 -227
  356. package/dist/datavis.cjs.map +1 -1
  357. package/dist/datavis.d.cts +83 -9
  358. package/dist/datavis.d.ts +83 -9
  359. package/dist/datavis.js +235 -229
  360. package/dist/datavis.js.map +1 -1
  361. package/dist/esheet.cjs +184 -0
  362. package/dist/esheet.cjs.map +1 -1
  363. package/dist/esheet.d.cts +117 -0
  364. package/dist/esheet.d.ts +117 -0
  365. package/dist/esheet.js +163 -0
  366. package/dist/esheet.js.map +1 -1
  367. package/dist/hey-buddy-CLUVAY2X.cjs +1133 -0
  368. package/dist/hey-buddy-CLUVAY2X.cjs.map +1 -0
  369. package/dist/hey-buddy-NMSWZ4TN.js +1131 -0
  370. package/dist/hey-buddy-NMSWZ4TN.js.map +1 -0
  371. package/dist/hooks/index.cjs +76 -16
  372. package/dist/hooks/index.d.cts +151 -2
  373. package/dist/hooks/index.d.ts +151 -2
  374. package/dist/hooks/index.js +6 -2
  375. package/dist/html-MdxqSzjD.d.cts +13 -0
  376. package/dist/html-MdxqSzjD.d.ts +13 -0
  377. package/dist/index.cjs +10394 -6565
  378. package/dist/index.cjs.map +1 -1
  379. package/dist/index.css +331 -0
  380. package/dist/index.css.map +1 -0
  381. package/dist/index.d.cts +2022 -249
  382. package/dist/index.d.ts +2022 -249
  383. package/dist/index.js +9223 -5969
  384. package/dist/index.js.map +1 -1
  385. package/dist/kerebron.cjs +119 -0
  386. package/dist/kerebron.cjs.map +1 -0
  387. package/dist/kerebron.css +11 -0
  388. package/dist/kerebron.d.cts +23 -0
  389. package/dist/kerebron.d.ts +23 -0
  390. package/dist/kerebron.js +116 -0
  391. package/dist/kerebron.js.map +1 -0
  392. package/dist/nitroTableGrid-3J2GY6CK.cjs +47 -0
  393. package/dist/nitroTableGrid-3J2GY6CK.cjs.map +1 -0
  394. package/dist/nitroTableGrid-SIMT7635.js +25 -0
  395. package/dist/nitroTableGrid-SIMT7635.js.map +1 -0
  396. package/dist/orderRows-BUJYgSc7.d.cts +221 -0
  397. package/dist/orderRows-BUJYgSc7.d.ts +221 -0
  398. package/dist/speaker-verify-5GTWAN5Y.cjs +357 -0
  399. package/dist/speaker-verify-5GTWAN5Y.cjs.map +1 -0
  400. package/dist/speaker-verify-R67P433H.js +355 -0
  401. package/dist/speaker-verify-R67P433H.js.map +1 -0
  402. package/dist/styles/init.css +5 -0
  403. package/dist/styles.css +1 -1
  404. package/dist/tailwind-preset.cjs +4 -4
  405. package/dist/tailwind-preset.js +1 -1
  406. package/dist/transcript-oaWqY3yr.d.cts +81 -0
  407. package/dist/transcript-oaWqY3yr.d.ts +81 -0
  408. package/dist/types-BYnLjEFg.d.cts +248 -0
  409. package/dist/types-BYnLjEFg.d.ts +248 -0
  410. package/dist/types-CBh8Zlje.d.cts +240 -0
  411. package/dist/types-CyCwYBlr.d.ts +240 -0
  412. package/dist/useAnchoredPosition-nXdSFKHf.d.cts +65 -0
  413. package/dist/useAnchoredPosition-nXdSFKHf.d.ts +65 -0
  414. package/dist/useTranscriptEdits-BUylQFg0.d.cts +168 -0
  415. package/dist/useTranscriptEdits-CWYnjbGP.d.ts +168 -0
  416. package/dist/utils/index.cjs +27 -18
  417. package/dist/utils/index.d.cts +1 -0
  418. package/dist/utils/index.d.ts +1 -0
  419. package/dist/utils/index.js +3 -2
  420. package/package.json +180 -55
  421. package/dist/chunk-2DS3RJ2D.js.map +0 -1
  422. package/dist/chunk-74K3RRU7.cjs +0 -4
  423. package/dist/chunk-7BARESXI.cjs.map +0 -1
  424. package/dist/chunk-CV4CVGLO.cjs.map +0 -1
  425. package/dist/chunk-DNPRRYPQ.js.map +0 -1
  426. package/dist/chunk-FRT6RQND.cjs.map +0 -1
  427. package/dist/chunk-HYEJLKXI.js +0 -476
  428. package/dist/chunk-HYEJLKXI.js.map +0 -1
  429. package/dist/chunk-I56VBDSC.js.map +0 -1
  430. package/dist/chunk-IBZXDX4L.cjs.map +0 -1
  431. package/dist/chunk-IKMR2ADM.cjs +0 -25
  432. package/dist/chunk-IKMR2ADM.cjs.map +0 -1
  433. package/dist/chunk-JHPFOG2N.cjs.map +0 -1
  434. package/dist/chunk-K7IGBNZA.cjs.map +0 -1
  435. package/dist/chunk-LEMY57MI.js +0 -3
  436. package/dist/chunk-MPOWJVV4.js.map +0 -1
  437. package/dist/chunk-NINI4WVS.cjs.map +0 -1
  438. package/dist/chunk-OKBR6PX4.js +0 -23
  439. package/dist/chunk-OKBR6PX4.js.map +0 -1
  440. package/dist/chunk-OYKS2JBB.cjs.map +0 -1
  441. package/dist/chunk-QVJBUWJQ.js.map +0 -1
  442. package/dist/chunk-R25H4N4Z.js.map +0 -1
  443. package/dist/chunk-V2DF2GUE.js +0 -3
  444. package/dist/chunk-WFS6R2F5.js.map +0 -1
  445. package/dist/ozwell.cjs +0 -385
  446. package/dist/ozwell.cjs.map +0 -1
  447. package/dist/ozwell.d.cts +0 -15
  448. package/dist/ozwell.d.ts +0 -15
  449. package/dist/ozwell.js +0 -360
  450. package/dist/ozwell.js.map +0 -1
package/README.md CHANGED
@@ -54,15 +54,7 @@ Heavy or specialized dependencies are kept in separate entry points so they don'
54
54
  | Entry point | Install | Import path |
55
55
  | ------------------------ | ---------------------------------------------------- | ------------------------ |
56
56
  | **AG Grid** | `npm install ag-grid-community ag-grid-react` | `@mieweb/ui/ag-grid` |
57
- | **DataVis** | `npm install datavis-ace` | `@mieweb/ui/datavis` |
58
- | **Ozwell AI Widget** | `npm install @ozwell/react` | `@mieweb/ui/ozwell` |
59
-
60
- ```tsx
61
- // Example: Ozwell widget
62
- import { OzwellWidget } from '@mieweb/ui/ozwell';
63
-
64
- <OzwellWidget apiKey="agnt_key-your-key" />
65
- ```
57
+ | **DataVis** | `npm install @mieweb/datavis datavis-ace` | `@mieweb/ui/datavis` |
66
58
 
67
59
  ## Quick Start
68
60
 
@@ -121,35 +113,73 @@ import { Button } from '@mieweb/ui';
121
113
 
122
114
  ### Getting Started
123
115
 
124
- 1. **Clone the repository:**
116
+ 1. **Clone the repository (including submodules):**
125
117
 
126
118
  ```bash
127
- git clone https://github.com/mieweb/ui.git
119
+ git clone --recurse-submodules https://github.com/mieweb/ui.git
128
120
  cd ui
129
121
  ```
130
122
 
123
+ > `--recurse-submodules` is strongly recommended for first clone so the `packages/esheet` and `packages/ychart` submodules are populated immediately. Without them, the eSheet and YChart stories will not work. DataVis NITRO is not a submodule — it ships as the published `@mieweb/datavis` npm package.
124
+
125
+ If you already cloned without submodules, run:
126
+
127
+ ```bash
128
+ git submodule update --init --recursive
129
+ ```
130
+
131
131
  2. **Install dependencies:**
132
132
 
133
133
  ```bash
134
134
  npm install
135
135
  ```
136
136
 
137
- 3. **Start development mode:**
137
+ Use one package manager consistently per clone. The commands below use npm.
138
+
139
+ 3. **eSheet packages build automatically.** A `prestorybook` hook runs `npm run build:esheet` before Storybook starts, so the `@esheet/*` packages are compiled on first run with no manual step. It's a near-instant no-op on later runs once the artifacts exist.
140
+
141
+ If `packages/esheet` is updated later (submodule update, branch switch, or pull) and you need to force a fresh rebuild, remove the built artifacts and run the build again:
142
+
143
+ ```bash
144
+ rm -f packages/esheet/packages/core/dist/index.d.ts packages/esheet/packages/renderer/src/index.output.css
145
+ npm run build:esheet
146
+ ```
147
+
148
+ 4. **Start Storybook:**
149
+
150
+ ```bash
151
+ npm run storybook
152
+ ```
153
+
154
+ This starts the Storybook development server at [http://localhost:6006](http://localhost:6006) with all components, including eSheet, DataVis NITRO, and YChart.
155
+
156
+ ### How the Sub-Packages Are Wired
157
+
158
+ Storybook integrates three sibling MIE projects, each sourced differently:
159
+
160
+ - **DataVis NITRO** — npm package `@mieweb/datavis`. No build step; consumed as a published package (no submodule needed).
161
+ - **eSheet** — git submodule `packages/esheet`. Built automatically by the `prestorybook` hook; rebuilds only when its artifacts are missing.
162
+ - **YChart** — git submodule `packages/ychart`. No build step; the story imports it directly from source via a relative dynamic import, and Storybook's Vite config adds a `virtual:git-info` plugin, a `__YCHART_VERSION__` define, and dependency pre-bundling (`optimizeDeps`).
163
+
164
+ ### Library Development (watch mode)
165
+
166
+ To rebuild the library on file changes (for consumers that link this repo locally):
138
167
 
139
168
  ```bash
140
169
  npm run dev
141
170
  ```
142
171
 
143
- This will watch for changes and rebuild the library automatically.
172
+ This watches for source changes and rebuilds automatically. It does **not** start Storybook.
144
173
 
145
174
  ### Available Scripts
146
175
 
147
- | Script | Description |
148
- | ------------------------- | ----------------------------------- |
149
- | `npm run dev` | Start development mode with watch |
150
- | `npm run build` | Build the library for production |
151
- | `npm run storybook` | Start Storybook development server |
152
- | `npm run build-storybook` | Build Storybook for static hosting |
176
+ | Script | Description |
177
+ | ------------------------- | --------------------------------------------------------- |
178
+ | `npm run dev` | Watch & rebuild the library (for local consumers, not Storybook) |
179
+ | `npm run build:esheet` | Build eSheet submodule packages (auto-run by `prestorybook`/`prebuild`; skips when already built) |
180
+ | `npm run build` | Build the library for production |
181
+ | `npm run storybook` | Start Storybook development server |
182
+ | `npm run build-storybook` | Build Storybook for static hosting |
153
183
  | `npm run typecheck` | Run TypeScript type checking |
154
184
  | `npm run lint` | Run ESLint |
155
185
  | `npm run lint:fix` | Run ESLint with auto-fix |
@@ -216,6 +246,26 @@ npm run build-storybook
216
246
 
217
247
  The output will be in the `storybook-static` directory.
218
248
 
249
+ ### Configuring the Ozwell API (AI stories)
250
+
251
+ The AI stories (AIChat, Hands-Free Chat, and the DataVis NITRO **Ozwell Assistant**
252
+ story) call the real Ozwell backend when a key is configured and fall back to a
253
+ canned reply when it isn't. Set the key and endpoint from the browser console:
254
+
255
+ ```js
256
+ // Recommended — survives reloads and is shared with the story iframe:
257
+ localStorage.setItem(
258
+ 'ozwellConfig',
259
+ JSON.stringify({ apiKey: 'YOUR_KEY', baseURL: 'https://your-ozwell-host' })
260
+ );
261
+ ```
262
+
263
+ `baseURL` is optional (defaults to `https://api.ozwell.ai`); other optional keys are
264
+ `model`, `system`, and `temperature`. Never commit a key — see
265
+ [src/components/AI/OZWELL-BACKEND.md](src/components/AI/OZWELL-BACKEND.md) for full
266
+ details, including why `window.__ozwell` is unreliable inside Storybook iframes and
267
+ how to proxy the key for public deploys.
268
+
219
269
  ## Using in Other Projects
220
270
 
221
271
  ### Method 1: NPM Package (Recommended)
@@ -701,40 +751,27 @@ We follow [Semantic Versioning](https://semver.org/):
701
751
 
702
752
  ## Contributing
703
753
 
704
- We welcome contributions! Here's how to get started:
705
-
706
- ### Development Workflow
707
-
708
- 1. **Fork and clone the repository**
709
- 2. **Install dependencies:** `npm install`
710
- 3. **Create a branch:** `git checkout -b feature/your-feature`
711
- 4. **Start Storybook:** `npm run storybook`
712
- 5. **Make your changes**
713
- 6. **Run checks:**
714
- ```bash
715
- npm run typecheck # TypeScript
716
- npm run lint # ESLint
717
- npm run format # Prettier
718
- npm run test # Tests
719
- ```
720
- 7. **Commit your changes** following [Conventional Commits](https://www.conventionalcommits.org/)
721
- 8. **Push and create a Pull Request**
722
-
723
- ### Adding a New Component
724
-
725
- 1. Create a new directory in `src/components/YourComponent/`
726
- 2. Add the component file: `YourComponent.tsx`
727
- 3. Add the index export: `index.ts`
728
- 4. Add Storybook stories: `YourComponent.stories.tsx`
729
- 5. Export from `src/components/index.ts`
730
- 6. Add to the README components list
731
-
732
- ### Adding a New Brand
733
-
734
- 1. Create `src/brands/your-brand.ts` with the `BrandConfig`
735
- 2. Create `src/brands/your-brand.css` with CSS variables
736
- 3. Export from `src/brands/index.ts`
737
- 4. Add to the README brands table
754
+ We welcome contributions! This README and the [Storybook](https://ui.mieweb.org)
755
+ are the **consumer** docs (how to *use* the library). If you want to *build or
756
+ change* the library itself, the **provider / maintainer** guide is
757
+ **[CONTRIBUTING.md](CONTRIBUTING.md)** — it covers repo layout, the component
758
+ anatomy and conventions, the autodocs story pattern, exports & tree-shaking,
759
+ build, testing (unit + visual baselines), submodules, brands, and the release
760
+ process.
761
+
762
+ Quick start for contributors:
763
+
764
+ ```bash
765
+ git clone --recurse-submodules https://github.com/mieweb/ui.git
766
+ cd ui && pnpm install
767
+ pnpm storybook # http://localhost:6006
768
+ # before opening a PR:
769
+ pnpm typecheck && pnpm lint && pnpm format && pnpm test
770
+ ```
771
+
772
+ Non-trivial modules also carry a `MAINTAINERS.md` next to the code with internals,
773
+ invariants, and gotchas for that module — see the table in
774
+ [CONTRIBUTING.md](CONTRIBUTING.md#per-component-maintainer-notes).
738
775
 
739
776
  ## License
740
777
 
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunkV25Z5GR6_cjs = require('./chunk-V25Z5GR6.cjs');
4
+ require('./chunk-CKD554XR.cjs');
5
+ require('./chunk-A2QVQF54.cjs');
6
+ require('./chunk-OR5DRJCW.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "CsvBlock", {
11
+ enumerable: true,
12
+ get: function () { return chunkV25Z5GR6_cjs.CsvBlock; }
13
+ });
14
+ //# sourceMappingURL=CsvBlock-2A5VEDD3.cjs.map
15
+ //# sourceMappingURL=CsvBlock-2A5VEDD3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"CsvBlock-2A5VEDD3.cjs"}
@@ -0,0 +1,6 @@
1
+ export { CsvBlock } from './chunk-7WMSUXOQ.js';
2
+ import './chunk-RHYIFIT5.js';
3
+ import './chunk-ZVSW2KS6.js';
4
+ import './chunk-F3SOEIN2.js';
5
+ //# sourceMappingURL=CsvBlock-D6PWAJ5X.js.map
6
+ //# sourceMappingURL=CsvBlock-D6PWAJ5X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"CsvBlock-D6PWAJ5X.js"}
@@ -0,0 +1,6 @@
1
+ export { HtmlPreviewBlock } from './chunk-UFYXU7KV.js';
2
+ import './chunk-RHYIFIT5.js';
3
+ import './chunk-ZVSW2KS6.js';
4
+ import './chunk-F3SOEIN2.js';
5
+ //# sourceMappingURL=HtmlPreviewBlock-PEHTJ6C3.js.map
6
+ //# sourceMappingURL=HtmlPreviewBlock-PEHTJ6C3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-PEHTJ6C3.js"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunkBB4WQ4LV_cjs = require('./chunk-BB4WQ4LV.cjs');
4
+ require('./chunk-CKD554XR.cjs');
5
+ require('./chunk-A2QVQF54.cjs');
6
+ require('./chunk-OR5DRJCW.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "HtmlPreviewBlock", {
11
+ enumerable: true,
12
+ get: function () { return chunkBB4WQ4LV_cjs.HtmlPreviewBlock; }
13
+ });
14
+ //# sourceMappingURL=HtmlPreviewBlock-SYXCV5RH.cjs.map
15
+ //# sourceMappingURL=HtmlPreviewBlock-SYXCV5RH.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-SYXCV5RH.cjs"}
@@ -0,0 +1,352 @@
1
+ import * as React from 'react';
2
+
3
+ /** Allergy category (FHIR AllergyIntolerance.category). */
4
+ type AllergyType = 'drug' | 'food' | 'environmental' | 'other';
5
+ /**
6
+ * Mechanism distinction (FHIR AllergyIntolerance.type): a true
7
+ * immune-mediated allergy vs a non-immune intolerance (e.g. GI upset).
8
+ * The distinction matters clinically — an intolerance mislabeled as an
9
+ * allergy causes unnecessary avoidance of first-line drugs.
10
+ */
11
+ type AllergyKind = 'allergy' | 'intolerance';
12
+ /** Reaction severity (FHIR reaction.severity). */
13
+ type AllergySeverity = 'mild' | 'moderate' | 'severe';
14
+ /** Coding-system reference for an allergen (RxNorm / FDB / SNOMED …). */
15
+ interface AllergyCode {
16
+ system: string;
17
+ code: string;
18
+ display?: string;
19
+ }
20
+ /**
21
+ * A single allergy / intolerance.
22
+ *
23
+ * Loosely follows FHIR AllergyIntolerance: allergen (+ optional code),
24
+ * category, reaction, severity, onset, and clinical status.
25
+ */
26
+ interface Allergy {
27
+ /** Stable unique id */
28
+ id: string;
29
+ /** Allergen display name, e.g. "penicillin" */
30
+ allergen: string;
31
+ /** Category — groups the list */
32
+ type?: AllergyType;
33
+ /** Allergy vs intolerance (FHIR AllergyIntolerance.type; default 'allergy') */
34
+ kind?: AllergyKind;
35
+ /** Reaction description, e.g. "hives" */
36
+ reaction?: string;
37
+ /** Reaction severity — drives the badge color */
38
+ severity?: AllergySeverity;
39
+ /** Onset date (display string) */
40
+ onsetDate?: string;
41
+ /** Free-text note */
42
+ note?: string;
43
+ /** Inactive/resolved entries render struck through */
44
+ inactive?: boolean;
45
+ /** Code reference (RxNorm/FDB for drugs, SNOMED otherwise) */
46
+ code?: AllergyCode;
47
+ }
48
+ /** Row actions revealed on hover. */
49
+ type AllergyAction = 'correct' | 'note' | 'remove';
50
+ interface AllergyListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'title'> {
51
+ /** Allergies to display (controlled) */
52
+ allergies: Allergy[];
53
+ /**
54
+ * No-known-allergies flag (NKA/NKDA). An empty list is ambiguous —
55
+ * "not asked" vs "asked, none" — so this is explicit tri-state:
56
+ * undefined = not recorded, true = no known allergies.
57
+ * Ignored when `allergies` is non-empty.
58
+ */
59
+ noKnownAllergies?: boolean;
60
+ /** Called when the no-known-allergies affordance is toggled */
61
+ onNoKnownAllergiesChange?: (value: boolean) => void;
62
+ /** Header title (pass null to hide) */
63
+ title?: string | null;
64
+ /** Row actions to show (default: all) */
65
+ actions?: AllergyAction[];
66
+ /** Called when a row action is clicked */
67
+ onAction?: (allergy: Allergy, action: AllergyAction) => void;
68
+ /**
69
+ * Called with the full new id order after a drag/keyboard reorder.
70
+ * Omit to disable reordering. Drops are restricted to the same
71
+ * category group.
72
+ */
73
+ onReorder?: (allergyIds: string[]) => void;
74
+ /** Custom add UI (e.g. an inline CodeLookup search) */
75
+ addSearch?: React.ReactNode;
76
+ /** Called when the "Add allergy" button is clicked (omit to hide) */
77
+ onAdd?: () => void;
78
+ /** Hide all action affordances (display only) */
79
+ readOnly?: boolean;
80
+ /** Additional CSS classes */
81
+ className?: string;
82
+ /** Test ID for testing */
83
+ 'data-testid'?: string;
84
+ }
85
+ declare const ALLERGY_TYPE_LABELS: Record<AllergyType, string>;
86
+ /**
87
+ * Allergy / intolerance list — presentational layer.
88
+ *
89
+ * Controlled: allergies come in via props; every interaction is reported
90
+ * through callbacks. Entries group by category (Drug → Food →
91
+ * Environmental → Other); severity renders as a colored badge; hover (or
92
+ * keyboard-focus) a row for Correct / Notes / Remove.
93
+ *
94
+ * The empty state is explicit tri-state via `noKnownAllergies` (NKA):
95
+ * an empty list shows "Allergy status not recorded" until the No Known
96
+ * Allergies affordance is confirmed — an empty list must never silently
97
+ * read as "no allergies".
98
+ *
99
+ * Pair with `AllergyManager` for the batteries-included experience.
100
+ */
101
+ declare const AllergyList: React.ForwardRefExoticComponent<AllergyListProps & React.RefAttributes<HTMLDivElement>>;
102
+
103
+ /** Reconciliation status of a medication. */
104
+ type MedicationStatus = 'unreconciled' | 'taking' | 'taking-noncompliant' | 'not-taking' | 'unknown';
105
+ /** Coding-system reference for a medication (RxNorm / FDB / NDC …). */
106
+ interface MedicationCode {
107
+ /** Coding system, e.g. 'RxNORM', 'FDB', 'NDC' */
108
+ system: string;
109
+ /** Code within the system */
110
+ code: string;
111
+ /** Human-readable label the code was selected under */
112
+ display?: string;
113
+ }
114
+ /**
115
+ * A single medication in the presenting-medications list.
116
+ *
117
+ * Prescription-detail fields follow the NCPDP SCRIPT NewRx
118
+ * `MedicationPrescribed` composite — see the README for the field mapping.
119
+ * All are optional: a bare `{ id, name, status }` renders fine.
120
+ */
121
+ interface Medication {
122
+ /** Stable unique id */
123
+ id: string;
124
+ /** Display name, e.g. "lisinopril 10 mg tablet" (NCPDP DrugDescription) */
125
+ name: string;
126
+ /** Patient-friendly instructions (NCPDP Sig / Directions) */
127
+ sig?: string;
128
+ /** Current reconciliation status */
129
+ status: MedicationStatus;
130
+ /** Whether the medication's end date has passed */
131
+ expired?: boolean;
132
+ /** Discontinued date (display string) — shown as "Discontinued on: date" */
133
+ discontinuedDate?: string;
134
+ /** Free-text note attached to the medication */
135
+ note?: string;
136
+ /** Follow-up task attached to the medication */
137
+ task?: string;
138
+ /** Code reference (RxNorm / FDB / NDC) */
139
+ code?: MedicationCode;
140
+ /** Strength, e.g. "10 mg" (Strength + StrengthUnitOfMeasure) */
141
+ strength?: string;
142
+ /** Dose form, e.g. "tablet" (DrugCoded/FormCode) */
143
+ doseForm?: string;
144
+ /** Quantity dispensed (Quantity/Value) */
145
+ quantity?: string;
146
+ /** Quantity unit of measure (Quantity/QuantityUnitOfMeasure) */
147
+ quantityUnit?: string;
148
+ /** Days supply (DaysSupply) */
149
+ daysSupply?: string;
150
+ /** Route of administration, e.g. "oral" */
151
+ route?: string;
152
+ /** Administration frequency, e.g. "Twice daily" */
153
+ frequency?: string;
154
+ /** As-needed flag (PRN) */
155
+ prn?: boolean;
156
+ /** Number of refills (NumberOfRefills) */
157
+ refills?: string;
158
+ /** Substitution / DAW: '0' permitted, '1' dispense as written */
159
+ substitution?: '0' | '1';
160
+ /** Start / written date (ISO yyyy-mm-dd) */
161
+ startDate?: string;
162
+ /** End date (ISO yyyy-mm-dd) */
163
+ endDate?: string;
164
+ /** Indication / diagnosis the medication treats */
165
+ indication?: string;
166
+ /** Note to pharmacy (Note) */
167
+ pharmacyNotes?: string;
168
+ }
169
+ /** Non-status row actions revealed on hover. */
170
+ type MedicationAction = 'open' | 'correct' | 'refill' | 'add-task' | 'note' | 'remove' | 'move-up' | 'move-down';
171
+ interface MedicationListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'title'> {
172
+ /** Medications to display (controlled — grouping is derived from status) */
173
+ medications: Medication[];
174
+ /** Header title (pass null to hide) */
175
+ title?: string | null;
176
+ /** Called when a status button is clicked on a row */
177
+ onStatusChange?: (medication: Medication, status: MedicationStatus) => void;
178
+ /** Called when a non-status row action is clicked */
179
+ onAction?: (medication: Medication, action: MedicationAction) => void;
180
+ /**
181
+ * Called with the full ordered list of medication ids after a drag —
182
+ * enables drag & drop reordering within a status group. The list renders in
183
+ * props order; persist the ids and feed them back in.
184
+ */
185
+ onReorder?: (medicationIds: string[]) => void;
186
+ /** Which non-status actions to show on each row (default: all) */
187
+ actions?: MedicationAction[];
188
+ /** Common medication names for the quick-add list (omit to hide) */
189
+ quickAddOptions?: string[];
190
+ /** Called when a quick-add option is clicked */
191
+ onQuickAdd?: (name: string) => void;
192
+ /** Called when "Other…" is clicked in the quick-add list */
193
+ onAddOther?: () => void;
194
+ /** Hide all action buttons (display only) */
195
+ readOnly?: boolean;
196
+ /** Message shown when the Unreconciled group is empty */
197
+ reconciledMessage?: string;
198
+ /** Message shown when the medication list has no entries at all */
199
+ emptyMessage?: string;
200
+ /**
201
+ * Custom add UI (e.g. an inline CodeLookup search) rendered in the
202
+ * add-medication section, before any quick-add pills. Use for
203
+ * patient-facing entry where suggested medications would be leading.
204
+ */
205
+ addSearch?: React.ReactNode;
206
+ /** Additional CSS classes */
207
+ className?: string;
208
+ /** Test ID for testing */
209
+ 'data-testid'?: string;
210
+ }
211
+ declare const MEDICATION_STATUS_LABELS: Record<MedicationStatus, string>;
212
+ /**
213
+ * Presenting-medications list with medication reconciliation.
214
+ *
215
+ * Controlled component: medications (with their statuses) come in via props;
216
+ * every user interaction is reported through callbacks. Rows are grouped by
217
+ * reconciliation status; hovering (or keyboard-focusing) a row reveals the
218
+ * status buttons and other row actions.
219
+ *
220
+ * @example
221
+ * ```tsx
222
+ * <MedicationList
223
+ * medications={meds}
224
+ * onStatusChange={(med, status) =>
225
+ * setMeds((prev) =>
226
+ * prev.map((m) => (m.id === med.id ? { ...m, status } : m))
227
+ * )
228
+ * }
229
+ * onAction={(med, action) => handleAction(med, action)}
230
+ * />
231
+ * ```
232
+ */
233
+ declare const MedicationList: React.ForwardRefExoticComponent<MedicationListProps & React.RefAttributes<HTMLDivElement>>;
234
+
235
+ /**
236
+ * MedicationEditor — prescription editor modal for a `Medication`.
237
+ *
238
+ * Captures the NCPDP SCRIPT NewRx `MedicationPrescribed` field set and codes
239
+ * the drug via `CodeLookup` (RxNorm / FDB, offline). Used by
240
+ * `MedicationReconciliation` for both **Correct** (edit) and **Add
241
+ * Medication**, and usable directly:
242
+ *
243
+ * ```tsx
244
+ * <MedicationEditor
245
+ * open={editing !== null}
246
+ * medication={editing ?? undefined}
247
+ * codeLookup={{ indexUrl: '/codify' }}
248
+ * onClose={() => setEditing(null)}
249
+ * onSave={(med) => upsert(med)}
250
+ * />
251
+ * ```
252
+ *
253
+ * NCPDP mapping (NewRx / MedicationPrescribed):
254
+ *
255
+ * | Editor field | NCPDP element |
256
+ * |----------------|----------------------------------------|
257
+ * | Medication | DrugDescription |
258
+ * | Code | DrugCoded (ProductCode / DrugDBCode) |
259
+ * | Strength | Strength + StrengthUnitOfMeasure |
260
+ * | Dose form | DrugCoded/FormCode |
261
+ * | Quantity | Quantity/Value |
262
+ * | Quantity unit | Quantity/QuantityUnitOfMeasure |
263
+ * | Days supply | DaysSupply |
264
+ * | Directions | Sig/SigText |
265
+ * | Refills | NumberOfRefills |
266
+ * | Substitution | Substitutions (0 permitted / 1 DAW) |
267
+ * | Start date | WrittenDate / EffectiveDate |
268
+ * | Indication | Diagnosis/Primary |
269
+ * | Pharmacy notes | Note |
270
+ */
271
+
272
+ /** Minimal shape of a CodeLookup selection the editor consumes. */
273
+ interface MedicationLookupResult {
274
+ label: string;
275
+ codetype: string;
276
+ fullcode: string;
277
+ }
278
+ /**
279
+ * Structural subset of `CodeLookupProps` the editor uses. `CodeLookup`
280
+ * satisfies this — it is injected (not imported) because its Web Worker
281
+ * keeps it out of the library build (see CodeLookup/index.ts).
282
+ */
283
+ interface MedicationLookupProps {
284
+ indexUrl: string;
285
+ locale?: string;
286
+ domains?: 'med'[];
287
+ bare?: boolean;
288
+ clearOnSelect?: boolean;
289
+ placeholder?: string;
290
+ initialQuery?: string;
291
+ initialSearch?: boolean;
292
+ onSelect?: (result: MedicationLookupResult) => void;
293
+ onFreeText?: (text: string) => void;
294
+ }
295
+ /** CodeLookup wiring for the editor (component injected by the consumer). */
296
+ interface CodeLookupConfig {
297
+ /** The CodeLookup component: `import { CodeLookup } from '…/CodeLookup'` */
298
+ component: React.ComponentType<MedicationLookupProps>;
299
+ /** Base URL of the codify index, e.g. '/codify' */
300
+ indexUrl: string;
301
+ /** Shard locale (default 'en') */
302
+ locale?: string;
303
+ }
304
+ interface MedicationEditorProps {
305
+ /** Whether the editor is open */
306
+ open: boolean;
307
+ /** Medication being edited — omit for "add" mode */
308
+ medication?: Medication;
309
+ /**
310
+ * Codify shard location for RxNorm/FDB coding. Defaults to the ambient
311
+ * `CodeLookupProvider`; pass `false` to force a plain name input.
312
+ */
313
+ codeLookup?: CodeLookupConfig | false;
314
+ /** Called when the editor is dismissed without saving */
315
+ onClose: () => void;
316
+ /** Called with the complete medication on save */
317
+ onSave: (medication: Medication) => void;
318
+ }
319
+ /**
320
+ * Parse strength + dose form out of a coded drug label,
321
+ * e.g. "lisinopril 20 mg tablet" → { strength: '20 mg', doseForm: 'tablet' }.
322
+ */
323
+ declare function parseMedicationLabel(label: string): {
324
+ strength?: string;
325
+ doseForm?: string;
326
+ };
327
+ /**
328
+ * Derive route / frequency / PRN from free-text sig,
329
+ * e.g. "1 tablet by mouth daily as needed" →
330
+ * { route: 'oral', frequency: 'Once daily', prn: true }.
331
+ */
332
+ declare function parseSig(sig: string): {
333
+ route?: string;
334
+ frequency?: string;
335
+ prn: boolean;
336
+ };
337
+ /**
338
+ * Derive the label-parsed Medication fields — strength, dose form, and the
339
+ * form-implied quantity unit — from a drug display label,
340
+ * e.g. "lisinopril 10 mg tablet" → { strength: '10 mg', doseForm: 'tablet',
341
+ * quantityUnit: 'tablet' }.
342
+ */
343
+ declare function labelToMedicationFields(label: string): Partial<Medication>;
344
+ /**
345
+ * Derive Medication fields from a CodeLookup pick: name, code reference,
346
+ * and — parsed from the label — strength, dose form, and quantity unit.
347
+ * Used by the editor and by inline add-search flows.
348
+ */
349
+ declare function lookupToMedicationFields(result: MedicationLookupResult): Partial<Medication>;
350
+ declare function MedicationEditor({ open, medication, codeLookup, onClose, onSave, }: MedicationEditorProps): React.JSX.Element | null;
351
+
352
+ export { type Allergy as A, type CodeLookupConfig as C, type Medication as M, type MedicationAction as a, ALLERGY_TYPE_LABELS as b, type AllergyAction as c, type AllergyCode as d, type AllergyKind as e, AllergyList as f, type AllergyListProps as g, type AllergySeverity as h, type AllergyType as i, MEDICATION_STATUS_LABELS as j, type MedicationCode as k, MedicationEditor as l, type MedicationEditorProps as m, MedicationList as n, type MedicationListProps as o, type MedicationLookupProps as p, type MedicationLookupResult as q, type MedicationStatus as r, labelToMedicationFields as s, lookupToMedicationFields as t, parseMedicationLabel as u, parseSig as v };