@mieweb/ui 0.8.0 → 0.9.0-dev.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 (380) hide show
  1. package/README.md +162 -739
  2. package/agent/mieweb-ui.instructions.md +34 -16
  3. package/dist/Animated-Cs-naa2g.d.cts +175 -0
  4. package/dist/Animated-Cs-naa2g.d.ts +175 -0
  5. package/dist/CsvBlock-D7Z6ZCRP.js +6 -0
  6. package/dist/{CsvBlock-PUSTBQ5B.js.map → CsvBlock-D7Z6ZCRP.js.map} +1 -1
  7. package/dist/CsvBlock-QXXZ7ZUM.cjs +15 -0
  8. package/dist/{CsvBlock-OTFG3PYZ.cjs.map → CsvBlock-QXXZ7ZUM.cjs.map} +1 -1
  9. package/dist/HtmlPreviewBlock-AADG7MVB.cjs +15 -0
  10. package/dist/{HtmlPreviewBlock-QHLSIMWJ.cjs.map → HtmlPreviewBlock-AADG7MVB.cjs.map} +1 -1
  11. package/dist/HtmlPreviewBlock-F5VDM2EN.js +6 -0
  12. package/dist/{HtmlPreviewBlock-YF2YVKKX.js.map → HtmlPreviewBlock-F5VDM2EN.js.map} +1 -1
  13. package/dist/MermaidBlock-6PLITRBZ.js +6 -0
  14. package/dist/{MermaidBlock-H3TWNC4D.js.map → MermaidBlock-6PLITRBZ.js.map} +1 -1
  15. package/dist/MermaidBlock-TQ2O5CLV.cjs +15 -0
  16. package/dist/{MermaidBlock-ZLLBO3VY.cjs.map → MermaidBlock-TQ2O5CLV.cjs.map} +1 -1
  17. package/dist/SurveyBlock-OYL3VNU5.cjs +15 -0
  18. package/dist/{SurveyBlock-M2ZRTGVJ.cjs.map → SurveyBlock-OYL3VNU5.cjs.map} +1 -1
  19. package/dist/SurveyBlock-W5PSQ62F.js +6 -0
  20. package/dist/{SurveyBlock-JLHS3YQD.js.map → SurveyBlock-W5PSQ62F.js.map} +1 -1
  21. package/dist/ag-grid.cjs +5 -5
  22. package/dist/ag-grid.js +1 -1
  23. package/dist/brands/index.cjs +7 -7
  24. package/dist/brands/index.js +2 -2
  25. package/dist/{chunk-RZJXCI53.js → chunk-22CYDCXA.js} +3 -3
  26. package/dist/{chunk-RZJXCI53.js.map → chunk-22CYDCXA.js.map} +1 -1
  27. package/dist/{chunk-OTQ72WX3.js → chunk-2BPIVWAK.js} +3 -3
  28. package/dist/{chunk-OTQ72WX3.js.map → chunk-2BPIVWAK.js.map} +1 -1
  29. package/dist/{chunk-6EWJGRC3.js → chunk-3JWAABYI.js} +6 -6
  30. package/dist/chunk-3JWAABYI.js.map +1 -0
  31. package/dist/{chunk-5JZIDILK.cjs → chunk-3LHICE4I.cjs} +6 -6
  32. package/dist/chunk-3LHICE4I.cjs.map +1 -0
  33. package/dist/{chunk-JHZW3Y62.js → chunk-3RB35GYK.js} +5 -5
  34. package/dist/chunk-3RB35GYK.js.map +1 -0
  35. package/dist/{chunk-BOW7ZGI2.cjs → chunk-4SM3I7WE.cjs} +170 -10
  36. package/dist/chunk-4SM3I7WE.cjs.map +1 -0
  37. package/dist/{chunk-26DPQUSB.cjs → chunk-5BVFVXHN.cjs} +224 -157
  38. package/dist/chunk-5BVFVXHN.cjs.map +1 -0
  39. package/dist/{chunk-QHTDWIED.js → chunk-5H7SAEQO.js} +5 -5
  40. package/dist/{chunk-QHTDWIED.js.map → chunk-5H7SAEQO.js.map} +1 -1
  41. package/dist/{chunk-EMMYFHOT.js → chunk-5WOB4UBD.js} +3 -3
  42. package/dist/{chunk-EMMYFHOT.js.map → chunk-5WOB4UBD.js.map} +1 -1
  43. package/dist/{chunk-4CUFXCC5.cjs → chunk-5Z6UPVGC.cjs} +6 -6
  44. package/dist/{chunk-4CUFXCC5.cjs.map → chunk-5Z6UPVGC.cjs.map} +1 -1
  45. package/dist/{chunk-YIXTGWT4.cjs → chunk-6QKMMKRY.cjs} +5 -5
  46. package/dist/{chunk-YIXTGWT4.cjs.map → chunk-6QKMMKRY.cjs.map} +1 -1
  47. package/dist/{chunk-F57VRLKP.js → chunk-6SAYPXHX.js} +4 -4
  48. package/dist/{chunk-F57VRLKP.js.map → chunk-6SAYPXHX.js.map} +1 -1
  49. package/dist/{chunk-SK7H3Z67.cjs → chunk-6XDPJWSC.cjs} +99 -83
  50. package/dist/chunk-6XDPJWSC.cjs.map +1 -0
  51. package/dist/{chunk-4AE2L6AO.cjs → chunk-7FTBPLA6.cjs} +8 -8
  52. package/dist/chunk-7FTBPLA6.cjs.map +1 -0
  53. package/dist/{chunk-KVE7PQ5P.cjs → chunk-7KN6J7XV.cjs} +20 -20
  54. package/dist/{chunk-KVE7PQ5P.cjs.map → chunk-7KN6J7XV.cjs.map} +1 -1
  55. package/dist/{chunk-K4S4FAYX.cjs → chunk-AHINB2TP.cjs} +11 -11
  56. package/dist/{chunk-K4S4FAYX.cjs.map → chunk-AHINB2TP.cjs.map} +1 -1
  57. package/dist/{chunk-MYFZYUPR.cjs → chunk-AOHJILLU.cjs} +38 -3
  58. package/dist/chunk-AOHJILLU.cjs.map +1 -0
  59. package/dist/chunk-BKSPDTX4.js +3 -0
  60. package/dist/{chunk-3PXOIAF6.js.map → chunk-BKSPDTX4.js.map} +1 -1
  61. package/dist/chunk-BN75TLUN.cjs +163 -0
  62. package/dist/chunk-BN75TLUN.cjs.map +1 -0
  63. package/dist/{chunk-WWJIW2IH.cjs → chunk-BVMABVC4.cjs} +3 -3
  64. package/dist/{chunk-WWJIW2IH.cjs.map → chunk-BVMABVC4.cjs.map} +1 -1
  65. package/dist/{chunk-H7QSGFMZ.cjs → chunk-BZAGP5W6.cjs} +17 -10
  66. package/dist/chunk-BZAGP5W6.cjs.map +1 -0
  67. package/dist/{chunk-RS5VA6QU.cjs → chunk-C3DUS2VE.cjs} +3 -3
  68. package/dist/{chunk-RS5VA6QU.cjs.map → chunk-C3DUS2VE.cjs.map} +1 -1
  69. package/dist/{chunk-NLBT5O2X.js → chunk-CK3KLRNF.js} +3 -3
  70. package/dist/{chunk-NLBT5O2X.js.map → chunk-CK3KLRNF.js.map} +1 -1
  71. package/dist/{chunk-L6D4CKLV.cjs → chunk-CXDMZT45.cjs} +135 -4
  72. package/dist/chunk-CXDMZT45.cjs.map +1 -0
  73. package/dist/{chunk-TXRQQMG5.js → chunk-CYMZ2QS5.js} +2 -2
  74. package/dist/{chunk-TXRQQMG5.js.map → chunk-CYMZ2QS5.js.map} +1 -1
  75. package/dist/{chunk-DX64KLSN.js → chunk-D25WH7MH.js} +7 -7
  76. package/dist/{chunk-DX64KLSN.js.map → chunk-D25WH7MH.js.map} +1 -1
  77. package/dist/{chunk-XBKOZRDO.js → chunk-DFYMIRMW.js} +4 -4
  78. package/dist/{chunk-XBKOZRDO.js.map → chunk-DFYMIRMW.js.map} +1 -1
  79. package/dist/{chunk-AESFOMSH.js → chunk-DGRXAIWK.js} +135 -4
  80. package/dist/chunk-DGRXAIWK.js.map +1 -0
  81. package/dist/{chunk-UZ5NGGMI.js → chunk-EG7XFZ3W.js} +4 -4
  82. package/dist/{chunk-UZ5NGGMI.js.map → chunk-EG7XFZ3W.js.map} +1 -1
  83. package/dist/{chunk-RYQ3S3KO.cjs → chunk-FQBTGS3E.cjs} +23 -20
  84. package/dist/chunk-FQBTGS3E.cjs.map +1 -0
  85. package/dist/{chunk-LQHI44OZ.cjs → chunk-FUFBRKOG.cjs} +59 -59
  86. package/dist/{chunk-LQHI44OZ.cjs.map → chunk-FUFBRKOG.cjs.map} +1 -1
  87. package/dist/{chunk-DG7KE4YJ.cjs → chunk-FYAKUU2A.cjs} +38 -21
  88. package/dist/chunk-FYAKUU2A.cjs.map +1 -0
  89. package/dist/{chunk-7L7OPISJ.cjs → chunk-H4AVMUOC.cjs} +12 -6
  90. package/dist/chunk-H4AVMUOC.cjs.map +1 -0
  91. package/dist/{chunk-I2ECTLON.cjs → chunk-HXSA6QC5.cjs} +3 -3
  92. package/dist/{chunk-I2ECTLON.cjs.map → chunk-HXSA6QC5.cjs.map} +1 -1
  93. package/dist/{chunk-DCBMTFLE.js → chunk-HZ4MBUC3.js} +3 -3
  94. package/dist/{chunk-DCBMTFLE.js.map → chunk-HZ4MBUC3.js.map} +1 -1
  95. package/dist/{chunk-X5ZPYYMS.js → chunk-I3DQXUSC.js} +3 -3
  96. package/dist/{chunk-X5ZPYYMS.js.map → chunk-I3DQXUSC.js.map} +1 -1
  97. package/dist/{chunk-FN6VHMLM.cjs → chunk-IB54SKWB.cjs} +8 -8
  98. package/dist/{chunk-FN6VHMLM.cjs.map → chunk-IB54SKWB.cjs.map} +1 -1
  99. package/dist/{chunk-JP5SGIXA.cjs → chunk-IFDC4TXM.cjs} +4 -4
  100. package/dist/{chunk-JP5SGIXA.cjs.map → chunk-IFDC4TXM.cjs.map} +1 -1
  101. package/dist/{chunk-RDGRKYQ5.cjs → chunk-IINZWUGK.cjs} +58 -6
  102. package/dist/chunk-IINZWUGK.cjs.map +1 -0
  103. package/dist/{chunk-U3JU6BI5.cjs → chunk-JEIW7BSV.cjs} +3 -3
  104. package/dist/{chunk-U3JU6BI5.cjs.map → chunk-JEIW7BSV.cjs.map} +1 -1
  105. package/dist/{chunk-D2GID3YK.js → chunk-KREUYVMZ.js} +58 -6
  106. package/dist/chunk-KREUYVMZ.js.map +1 -0
  107. package/dist/{chunk-Y6YSJPVC.js → chunk-KRU6IGV7.js} +11 -3
  108. package/dist/chunk-KRU6IGV7.js.map +1 -0
  109. package/dist/{chunk-LZU7YBXG.js → chunk-KU3XRHWA.js} +169 -10
  110. package/dist/chunk-KU3XRHWA.js.map +1 -0
  111. package/dist/{chunk-P2VTQ5AR.cjs → chunk-L52N6BEN.cjs} +39 -23
  112. package/dist/chunk-L52N6BEN.cjs.map +1 -0
  113. package/dist/{chunk-XWYKLEKG.js → chunk-L5W7TJQ5.js} +11 -5
  114. package/dist/chunk-L5W7TJQ5.js.map +1 -0
  115. package/dist/{chunk-PAM5UUBL.cjs → chunk-L7L5S2HO.cjs} +18 -2
  116. package/dist/{chunk-PAM5UUBL.cjs.map → chunk-L7L5S2HO.cjs.map} +1 -1
  117. package/dist/{chunk-SEPYBAML.js → chunk-LAEIVOIY.js} +38 -21
  118. package/dist/chunk-LAEIVOIY.js.map +1 -0
  119. package/dist/{chunk-Z5KFXHDP.cjs → chunk-MM7QKUE3.cjs} +5 -5
  120. package/dist/{chunk-Z5KFXHDP.cjs.map → chunk-MM7QKUE3.cjs.map} +1 -1
  121. package/dist/{chunk-FJ7YPVKV.js → chunk-MUIDWFYJ.js} +3 -3
  122. package/dist/{chunk-FJ7YPVKV.js.map → chunk-MUIDWFYJ.js.map} +1 -1
  123. package/dist/{chunk-FDV7EQWH.js → chunk-MXQ7J4BB.js} +21 -18
  124. package/dist/chunk-MXQ7J4BB.js.map +1 -0
  125. package/dist/{chunk-YMHOF6WA.cjs → chunk-MYAU2ZUC.cjs} +3 -3
  126. package/dist/{chunk-YMHOF6WA.cjs.map → chunk-MYAU2ZUC.cjs.map} +1 -1
  127. package/dist/{chunk-5J5PEUUA.js → chunk-NHN6A3ZO.js} +6 -6
  128. package/dist/{chunk-5J5PEUUA.js.map → chunk-NHN6A3ZO.js.map} +1 -1
  129. package/dist/{chunk-EPQPUFS6.cjs → chunk-NYJIXR4Y.cjs} +6 -6
  130. package/dist/chunk-NYJIXR4Y.cjs.map +1 -0
  131. package/dist/{chunk-EKRT7K2K.js → chunk-O6GJ4IYS.js} +222 -157
  132. package/dist/chunk-O6GJ4IYS.js.map +1 -0
  133. package/dist/{chunk-WIYQI35R.cjs → chunk-O7XHHTTP.cjs} +8 -8
  134. package/dist/{chunk-WIYQI35R.cjs.map → chunk-O7XHHTTP.cjs.map} +1 -1
  135. package/dist/{chunk-IILJGFI5.js → chunk-OAZUDUGX.js} +8 -6
  136. package/dist/chunk-OAZUDUGX.js.map +1 -0
  137. package/dist/{chunk-JHGMZX4I.cjs → chunk-OCV33S5Q.cjs} +6 -6
  138. package/dist/{chunk-JHGMZX4I.cjs.map → chunk-OCV33S5Q.cjs.map} +1 -1
  139. package/dist/{chunk-IYXCFIMP.js → chunk-ODYQYLO2.js} +33 -17
  140. package/dist/chunk-ODYQYLO2.js.map +1 -0
  141. package/dist/{chunk-FPVRQCCL.js → chunk-OHDIJOGG.js} +4 -4
  142. package/dist/{chunk-FPVRQCCL.js.map → chunk-OHDIJOGG.js.map} +1 -1
  143. package/dist/{chunk-GQVL2JKQ.cjs → chunk-OHKO5THF.cjs} +3 -3
  144. package/dist/{chunk-GQVL2JKQ.cjs.map → chunk-OHKO5THF.cjs.map} +1 -1
  145. package/dist/{chunk-LMBXJZLG.js → chunk-ON4JULCA.js} +3 -3
  146. package/dist/{chunk-LMBXJZLG.js.map → chunk-ON4JULCA.js.map} +1 -1
  147. package/dist/{chunk-A5YOIJKL.js → chunk-ONNY7UO4.js} +15 -15
  148. package/dist/{chunk-A5YOIJKL.js.map → chunk-ONNY7UO4.js.map} +1 -1
  149. package/dist/{chunk-DWCYEPTT.js → chunk-OSPTA4UR.js} +4 -4
  150. package/dist/{chunk-DWCYEPTT.js.map → chunk-OSPTA4UR.js.map} +1 -1
  151. package/dist/{chunk-FDUA6OGN.js → chunk-PFKRHNYV.js} +8 -8
  152. package/dist/chunk-PFKRHNYV.js.map +1 -0
  153. package/dist/{chunk-XMECP2MD.js → chunk-PHK4XBO5.js} +4 -4
  154. package/dist/{chunk-XMECP2MD.js.map → chunk-PHK4XBO5.js.map} +1 -1
  155. package/dist/{chunk-ZZJ4ZVYR.cjs → chunk-PJ6CC53R.cjs} +3 -3
  156. package/dist/{chunk-ZZJ4ZVYR.cjs.map → chunk-PJ6CC53R.cjs.map} +1 -1
  157. package/dist/{chunk-N3Y43KOB.js → chunk-PYHFVYVZ.js} +12 -5
  158. package/dist/chunk-PYHFVYVZ.js.map +1 -0
  159. package/dist/{chunk-XMCIXHGH.js → chunk-Q7G56ZIO.js} +39 -23
  160. package/dist/chunk-Q7G56ZIO.js.map +1 -0
  161. package/dist/{chunk-4PIW3Y5M.js → chunk-QAKASRE6.js} +34 -26
  162. package/dist/chunk-QAKASRE6.js.map +1 -0
  163. package/dist/{chunk-QGZC43L7.js → chunk-QAQOCS2J.js} +5 -5
  164. package/dist/{chunk-QGZC43L7.js.map → chunk-QAQOCS2J.js.map} +1 -1
  165. package/dist/{chunk-YVIH26FG.cjs → chunk-QKAYRHWP.cjs} +12 -12
  166. package/dist/{chunk-YVIH26FG.cjs.map → chunk-QKAYRHWP.cjs.map} +1 -1
  167. package/dist/{chunk-P3JEMF6E.cjs → chunk-RSCA5AZW.cjs} +4 -4
  168. package/dist/{chunk-P3JEMF6E.cjs.map → chunk-RSCA5AZW.cjs.map} +1 -1
  169. package/dist/{chunk-5Y5FSR4N.js → chunk-SCXELRRZ.js} +3 -3
  170. package/dist/{chunk-5Y5FSR4N.js.map → chunk-SCXELRRZ.js.map} +1 -1
  171. package/dist/{chunk-JWTCEWQ4.cjs → chunk-SNEQXSC5.cjs} +2 -2
  172. package/dist/{chunk-JWTCEWQ4.cjs.map → chunk-SNEQXSC5.cjs.map} +1 -1
  173. package/dist/{chunk-U5TTXN45.cjs → chunk-SRA2L3SQ.cjs} +9 -7
  174. package/dist/chunk-SRA2L3SQ.cjs.map +1 -0
  175. package/dist/{chunk-5U6GETAW.js → chunk-TQDZLRIE.js} +3 -3
  176. package/dist/chunk-TQDZLRIE.js.map +1 -0
  177. package/dist/{chunk-HK3AMH3Q.cjs → chunk-VROIMIHB.cjs} +11 -3
  178. package/dist/chunk-VROIMIHB.cjs.map +1 -0
  179. package/dist/{chunk-3SHLOF4V.cjs → chunk-VTR2KGLY.cjs} +9 -9
  180. package/dist/{chunk-3SHLOF4V.cjs.map → chunk-VTR2KGLY.cjs.map} +1 -1
  181. package/dist/{chunk-XO3WLK65.js → chunk-VVDE4CHU.js} +3 -3
  182. package/dist/{chunk-XO3WLK65.js.map → chunk-VVDE4CHU.js.map} +1 -1
  183. package/dist/{chunk-XS35KPBZ.cjs → chunk-WIAQQNFU.cjs} +4 -4
  184. package/dist/{chunk-XS35KPBZ.cjs.map → chunk-WIAQQNFU.cjs.map} +1 -1
  185. package/dist/{chunk-BOOJDRJO.js → chunk-WSNMQQ4P.js} +38 -3
  186. package/dist/chunk-WSNMQQ4P.js.map +1 -0
  187. package/dist/chunk-WYMO3IIK.js +136 -0
  188. package/dist/chunk-WYMO3IIK.js.map +1 -0
  189. package/dist/{chunk-SPWVKDGC.cjs → chunk-X5QRRMGB.cjs} +35 -27
  190. package/dist/chunk-X5QRRMGB.cjs.map +1 -0
  191. package/dist/{chunk-SH6B4MG5.js → chunk-XBXDUAIM.js} +4 -4
  192. package/dist/{chunk-SH6B4MG5.js.map → chunk-XBXDUAIM.js.map} +1 -1
  193. package/dist/{chunk-56QJHQ5C.cjs → chunk-XEEVDZDK.cjs} +5 -5
  194. package/dist/{chunk-56QJHQ5C.cjs.map → chunk-XEEVDZDK.cjs.map} +1 -1
  195. package/dist/{chunk-GXODR6V4.js → chunk-XOIIUO6O.js} +3 -3
  196. package/dist/{chunk-GXODR6V4.js.map → chunk-XOIIUO6O.js.map} +1 -1
  197. package/dist/{chunk-ELYGV32O.cjs → chunk-XTHMC76F.cjs} +5 -5
  198. package/dist/{chunk-ELYGV32O.cjs.map → chunk-XTHMC76F.cjs.map} +1 -1
  199. package/dist/{chunk-FF235PKY.cjs → chunk-XWZEECEX.cjs} +3 -3
  200. package/dist/chunk-XWZEECEX.cjs.map +1 -0
  201. package/dist/{chunk-TVLZZI5Q.cjs → chunk-YJP6DUFO.cjs} +9 -9
  202. package/dist/{chunk-TVLZZI5Q.cjs.map → chunk-YJP6DUFO.cjs.map} +1 -1
  203. package/dist/{chunk-EHQ77LL5.js → chunk-ZB54MTMQ.js} +3 -3
  204. package/dist/{chunk-EHQ77LL5.js.map → chunk-ZB54MTMQ.js.map} +1 -1
  205. package/dist/components/Accordion/index.cjs +2 -2
  206. package/dist/components/Accordion/index.js +1 -1
  207. package/dist/components/Alert/index.cjs +5 -5
  208. package/dist/components/Alert/index.d.cts +1 -1
  209. package/dist/components/Alert/index.d.ts +1 -1
  210. package/dist/components/Alert/index.js +1 -1
  211. package/dist/components/AlertDialog/index.cjs +6 -5
  212. package/dist/components/AlertDialog/index.js +5 -4
  213. package/dist/components/AudioPlayer/index.cjs +6 -6
  214. package/dist/components/AudioPlayer/index.js +1 -1
  215. package/dist/components/Autocomplete/index.cjs +4 -4
  216. package/dist/components/Autocomplete/index.js +3 -3
  217. package/dist/components/Avatar/index.cjs +5 -5
  218. package/dist/components/Avatar/index.js +1 -1
  219. package/dist/components/Badge/index.d.cts +1 -1
  220. package/dist/components/Badge/index.d.ts +1 -1
  221. package/dist/components/Breadcrumb/index.cjs +3 -3
  222. package/dist/components/Breadcrumb/index.js +1 -1
  223. package/dist/components/Button/index.cjs +3 -3
  224. package/dist/components/Button/index.js +1 -1
  225. package/dist/components/Card/index.d.cts +2 -2
  226. package/dist/components/Card/index.d.ts +2 -2
  227. package/dist/components/CountryCodeDropdown/index.cjs +6 -6
  228. package/dist/components/CountryCodeDropdown/index.d.cts +11 -1
  229. package/dist/components/CountryCodeDropdown/index.d.ts +11 -1
  230. package/dist/components/CountryCodeDropdown/index.js +3 -3
  231. package/dist/components/CustomizableDashboard/index.cjs +11 -11
  232. package/dist/components/CustomizableDashboard/index.js +4 -4
  233. package/dist/components/DateInput/index.cjs +4 -4
  234. package/dist/components/DateInput/index.js +3 -3
  235. package/dist/components/Dropdown/index.cjs +13 -9
  236. package/dist/components/Dropdown/index.d.cts +38 -2
  237. package/dist/components/Dropdown/index.d.ts +38 -2
  238. package/dist/components/Dropdown/index.js +3 -3
  239. package/dist/components/FloatingWindow/index.cjs +4 -4
  240. package/dist/components/FloatingWindow/index.js +2 -2
  241. package/dist/components/GlossaryTooltip/index.cjs +4 -4
  242. package/dist/components/GlossaryTooltip/index.js +3 -3
  243. package/dist/components/KeyboardShortcutsOverlay/index.cjs +6 -5
  244. package/dist/components/KeyboardShortcutsOverlay/index.js +4 -3
  245. package/dist/components/Markdown/index.cjs +19 -19
  246. package/dist/components/Markdown/index.js +7 -7
  247. package/dist/components/MediaEditor/index.cjs +15 -14
  248. package/dist/components/MediaEditor/index.js +10 -9
  249. package/dist/components/MediaPlayer/index.cjs +6 -6
  250. package/dist/components/MediaPlayer/index.js +3 -3
  251. package/dist/components/Modal/index.cjs +11 -10
  252. package/dist/components/Modal/index.d.cts +1 -1
  253. package/dist/components/Modal/index.d.ts +1 -1
  254. package/dist/components/Modal/index.js +3 -2
  255. package/dist/components/Pagination/index.cjs +4 -4
  256. package/dist/components/Pagination/index.d.cts +1 -1
  257. package/dist/components/Pagination/index.d.ts +1 -1
  258. package/dist/components/Pagination/index.js +1 -1
  259. package/dist/components/PhoneInput/index.cjs +4 -4
  260. package/dist/components/PhoneInput/index.js +2 -2
  261. package/dist/components/Progress/index.d.cts +1 -1
  262. package/dist/components/Progress/index.d.ts +1 -1
  263. package/dist/components/QuickAction/index.cjs +6 -6
  264. package/dist/components/QuickAction/index.js +1 -1
  265. package/dist/components/RecordButton/index.d.cts +1 -1
  266. package/dist/components/RecordButton/index.d.ts +1 -1
  267. package/dist/components/RichTextEditor/index.cjs +9 -9
  268. package/dist/components/RichTextEditor/index.js +6 -6
  269. package/dist/components/SectionSpyNav/index.cjs +4 -4
  270. package/dist/components/SectionSpyNav/index.js +3 -3
  271. package/dist/components/Select/index.cjs +5 -5
  272. package/dist/components/Select/index.js +3 -3
  273. package/dist/components/Sheet/index.cjs +11 -11
  274. package/dist/components/Sheet/index.js +2 -2
  275. package/dist/components/Slider/index.cjs +5 -5
  276. package/dist/components/Slider/index.d.cts +2 -2
  277. package/dist/components/Slider/index.d.ts +2 -2
  278. package/dist/components/Slider/index.js +1 -1
  279. package/dist/components/SourceTip/index.cjs +4 -4
  280. package/dist/components/SourceTip/index.js +3 -3
  281. package/dist/components/SuperChat/index.cjs +264 -106
  282. package/dist/components/SuperChat/index.cjs.map +1 -1
  283. package/dist/components/SuperChat/index.d.cts +13 -5
  284. package/dist/components/SuperChat/index.d.ts +13 -5
  285. package/dist/components/SuperChat/index.js +255 -97
  286. package/dist/components/SuperChat/index.js.map +1 -1
  287. package/dist/components/SuperChat/plugins/index.cjs +7 -7
  288. package/dist/components/SuperChat/plugins/index.cjs.map +1 -1
  289. package/dist/components/SuperChat/plugins/index.d.cts +2 -2
  290. package/dist/components/SuperChat/plugins/index.d.ts +2 -2
  291. package/dist/components/SuperChat/plugins/index.js +6 -6
  292. package/dist/components/SuperChat/plugins/index.js.map +1 -1
  293. package/dist/components/Text/index.d.cts +1 -1
  294. package/dist/components/Text/index.d.ts +1 -1
  295. package/dist/components/ThemeProvider/index.cjs +9 -9
  296. package/dist/components/ThemeProvider/index.d.cts +1 -1
  297. package/dist/components/ThemeProvider/index.d.ts +1 -1
  298. package/dist/components/ThemeProvider/index.js +3 -3
  299. package/dist/components/Toggle/index.d.cts +1 -1
  300. package/dist/components/Toggle/index.d.ts +1 -1
  301. package/dist/components/Tooltip/index.cjs +3 -3
  302. package/dist/components/Tooltip/index.js +2 -2
  303. package/dist/components/TranscriptView/index.cjs +3 -3
  304. package/dist/components/TranscriptView/index.js +1 -1
  305. package/dist/datavis.cjs +2 -2
  306. package/dist/datavis.js +1 -1
  307. package/dist/esheet.cjs +15 -14
  308. package/dist/esheet.cjs.map +1 -1
  309. package/dist/esheet.js +12 -11
  310. package/dist/esheet.js.map +1 -1
  311. package/dist/hooks/index.cjs +3 -3
  312. package/dist/hooks/index.d.cts +1 -1
  313. package/dist/hooks/index.d.ts +1 -1
  314. package/dist/hooks/index.js +2 -2
  315. package/dist/index.cjs +2399 -1640
  316. package/dist/index.cjs.map +1 -1
  317. package/dist/index.d.cts +278 -43
  318. package/dist/index.d.ts +278 -43
  319. package/dist/index.js +1296 -574
  320. package/dist/index.js.map +1 -1
  321. package/dist/motion.cjs +87 -0
  322. package/dist/motion.cjs.map +1 -0
  323. package/dist/motion.d.cts +52 -0
  324. package/dist/motion.d.ts +52 -0
  325. package/dist/motion.js +50 -0
  326. package/dist/motion.js.map +1 -0
  327. package/dist/styles/init.css +25 -0
  328. package/dist/styles.css +1 -1
  329. package/dist/tailwind-preset.cjs +4 -4
  330. package/dist/tailwind-preset.js +1 -1
  331. package/dist/{types-BoTeTPdH.d.ts → types-9vK_YdEb.d.ts} +12 -1
  332. package/dist/{types-DyIB9HYT.d.cts → types-DZDroUW8.d.cts} +12 -1
  333. package/dist/{useAnchoredPosition-C7PNglzD.d.ts → useAnchoredPosition-CKwLSQW8.d.cts} +10 -3
  334. package/dist/{useAnchoredPosition-C7PNglzD.d.cts → useAnchoredPosition-CKwLSQW8.d.ts} +10 -3
  335. package/package.json +21 -2
  336. package/dist/CsvBlock-OTFG3PYZ.cjs +0 -15
  337. package/dist/CsvBlock-PUSTBQ5B.js +0 -6
  338. package/dist/HtmlPreviewBlock-QHLSIMWJ.cjs +0 -15
  339. package/dist/HtmlPreviewBlock-YF2YVKKX.js +0 -6
  340. package/dist/MermaidBlock-H3TWNC4D.js +0 -6
  341. package/dist/MermaidBlock-ZLLBO3VY.cjs +0 -15
  342. package/dist/SurveyBlock-JLHS3YQD.js +0 -6
  343. package/dist/SurveyBlock-M2ZRTGVJ.cjs +0 -15
  344. package/dist/chunk-26DPQUSB.cjs.map +0 -1
  345. package/dist/chunk-3PXOIAF6.js +0 -3
  346. package/dist/chunk-4AE2L6AO.cjs.map +0 -1
  347. package/dist/chunk-4PIW3Y5M.js.map +0 -1
  348. package/dist/chunk-5JZIDILK.cjs.map +0 -1
  349. package/dist/chunk-5U6GETAW.js.map +0 -1
  350. package/dist/chunk-6EWJGRC3.js.map +0 -1
  351. package/dist/chunk-7L7OPISJ.cjs.map +0 -1
  352. package/dist/chunk-AESFOMSH.js.map +0 -1
  353. package/dist/chunk-BOOJDRJO.js.map +0 -1
  354. package/dist/chunk-BOW7ZGI2.cjs.map +0 -1
  355. package/dist/chunk-D2GID3YK.js.map +0 -1
  356. package/dist/chunk-DG7KE4YJ.cjs.map +0 -1
  357. package/dist/chunk-EKRT7K2K.js.map +0 -1
  358. package/dist/chunk-EPQPUFS6.cjs.map +0 -1
  359. package/dist/chunk-FDUA6OGN.js.map +0 -1
  360. package/dist/chunk-FDV7EQWH.js.map +0 -1
  361. package/dist/chunk-FF235PKY.cjs.map +0 -1
  362. package/dist/chunk-H7QSGFMZ.cjs.map +0 -1
  363. package/dist/chunk-HK3AMH3Q.cjs.map +0 -1
  364. package/dist/chunk-IILJGFI5.js.map +0 -1
  365. package/dist/chunk-IYXCFIMP.js.map +0 -1
  366. package/dist/chunk-JHZW3Y62.js.map +0 -1
  367. package/dist/chunk-L6D4CKLV.cjs.map +0 -1
  368. package/dist/chunk-LZU7YBXG.js.map +0 -1
  369. package/dist/chunk-MYFZYUPR.cjs.map +0 -1
  370. package/dist/chunk-N3Y43KOB.js.map +0 -1
  371. package/dist/chunk-P2VTQ5AR.cjs.map +0 -1
  372. package/dist/chunk-RDGRKYQ5.cjs.map +0 -1
  373. package/dist/chunk-RYQ3S3KO.cjs.map +0 -1
  374. package/dist/chunk-SEPYBAML.js.map +0 -1
  375. package/dist/chunk-SK7H3Z67.cjs.map +0 -1
  376. package/dist/chunk-SPWVKDGC.cjs.map +0 -1
  377. package/dist/chunk-U5TTXN45.cjs.map +0 -1
  378. package/dist/chunk-XMCIXHGH.js.map +0 -1
  379. package/dist/chunk-XWYKLEKG.js.map +0 -1
  380. package/dist/chunk-Y6YSJPVC.js.map +0 -1
@@ -10,12 +10,15 @@ This project uses the `@mieweb/ui` component library. Follow these rules for ALL
10
10
 
11
11
  ## Rule 1: Tables start with DataVis NITRO
12
12
 
13
+ > **Tables and data grids start with DataVis NITRO.** Use `Table` only for a few static rows the user will not sort, filter, page or export. Never hand-roll grid features on a plain table; `AGGrid` is deprecated.
14
+
13
15
  When asked to create a table, data grid, or any tabular data view:
14
16
 
15
- - **Always start with `DataVisNitroGrid` from `@mieweb/ui/datavis`.** It is the default for every table — propose it first, every time.
16
- - If the human **explicitly insists** on a plain, simple table after you propose DataVis NITRO, fall back to the `Table` component from `@mieweb/ui` (`Table` + `TableHeader`/`TableBody`/`TableRow`/`TableCell`). Do not choose `Table` on your own.
17
+ - **Propose `DataVisNitroGrid` from `@mieweb/ui/datavis` first, every time.**
18
+ - Use the `Table` component from `@mieweb/ui` (`Table` + `TableHeader`/`TableBody`/`TableRow`/`TableCell`) only when the data meets the criterion above — a few static rows, no sorting, filtering, paging or export — or when the human explicitly asks for a plain table after you have proposed NITRO.
17
19
  - **`AGGrid` is deprecated.** Never import from `@mieweb/ui/ag-grid` in new code.
18
20
  - **Never hand-roll a data grid** from raw `<table>`, `<div>` grids, or a third-party grid library.
21
+ - Full comparison: the [Grids family page](https://ui.mieweb.org/?path=/docs/components-grids-overview--docs).
19
22
 
20
23
  ```tsx
21
24
  import { DataVisNitroSource, DataVisNitroGrid } from '@mieweb/ui/datavis';
@@ -47,19 +50,19 @@ import { Button, ButtonGroup } from '@mieweb/ui';
47
50
 
48
51
  ## Rule 3: Use an existing @mieweb/ui component before writing your own
49
52
 
50
- Before writing any UI element, check whether `@mieweb/ui` already provides it. It ships 126+ components, including:
53
+ Before writing any UI element, check whether `@mieweb/ui` already provides it. The Storybook sidebar is organised as _Tier / Family / Component_ (the live count is in `catalog-manifest.json` next to the published Storybook, or `pnpm catalog:check` in the repo); every family has an **Overview** page with a comparison table — read it before choosing. Families include:
51
54
 
52
- | Category | Components |
53
- | ---------- | ------------------------------------------------------------------------------------------------------------- |
54
- | Actions | `Button`, `ButtonGroup` (see Rule 2), `Dropdown`, `CommandPalette`, `QuickAction` |
55
- | Forms | `Input`, `Textarea`, `Select`, `Checkbox`, `Radio`, `Switch`, `Slider`, `PhoneInput`, `DateInput` |
56
- | Display | `Table` (only if the human insists — see Rule 1), `Badge`, `Avatar`, `Card`, `CountBadge`, `Text`, `Timeline` |
57
- | Feedback | `Alert`, `Toast`, `Spinner`, `Skeleton`, `Progress`, `LoadingPage`, `ErrorPage` |
58
- | Navigation | `Tabs`, `Breadcrumb`, `Pagination`, `Sidebar`, `AppHeader`, `PageHeader`, `StepIndicator` |
59
- | Overlays | `Modal`, `Tooltip`, `DropzoneOverlay` |
60
- | Media | `AudioPlayer`, `AudioRecorder`, `RecordButton`, `DocumentScanner` |
61
- | Messaging | `MessageBubble`, `MessageList`, `MessageComposer` |
62
- | Grids | `DataVisNitroGrid` (default for all tables) — `AGGrid` is **deprecated** |
55
+ | Tier / Family | Components |
56
+ | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
57
+ | Inputs / Actions | `Button`, `ButtonGroup` (see Rule 2), `Toggle`, `CopyButton`, `QuickAction`, `RowActionToolbar` |
58
+ | Inputs / Text, Choice, Date & time | `Input`, `Textarea`, `PhoneInput`, `Select`, `Dropdown`, `Autocomplete`, `Checkbox`, `Radio`, `Switch`, `Slider`, `DateInput`, `DateRangePicker` |
59
+ | Components / Grids | `DataVisNitroGrid` (default for all tables), `Table` (see Rule 1), `Pagination`, `Sparkline` — `AGGrid` is **deprecated** |
60
+ | Components / Data display, Layout | `Badge`, `Avatar`, `CountBadge`, `Timeline`, `Card`, `Accordion`, `AppHeader`, `PageHeader`, `Text` (Foundations) |
61
+ | Components / Feedback, Loading | `Alert`, `Toast`, `AlertDialog`, `NotificationCenter`, `ErrorPage`, `Spinner`, `Skeleton`, `Progress`, `LoadingPage` |
62
+ | Components / Overlays, Navigation | `Modal`, `Sheet`, `Tooltip`, `DockablePanel`, `Sidebar`, `Tabs`, `Breadcrumb`, `StepIndicator`, `CommandPalette` |
63
+ | Modules | Dashboards, Media (`AudioPlayer`, `AudioRecorder`, `DocumentScanner`), Editors (`RichEditor`, `Markdown`), Chat, Voice, Files |
64
+ | Healthcare | `ProblemList`, `MedicationList`, `AllergyList`, `CodeLookup`, `OrderEditor`, `Assessment`, `PatientHeader` |
65
+ | BlueHive (product-specific) | Orders, Employers, Billing, Providers, Services — reuse only if your app shares the BlueHive data model |
63
66
 
64
67
  Raw HTML that duplicates a component is a violation, even if it looks right:
65
68
 
@@ -164,6 +167,21 @@ Tailwind: on Tailwind 4, add an `@source` for `@mieweb/ui` so library classes ar
164
167
 
165
168
  If JSDoc, the console, or the docs mark something deprecated (`AGGrid` today), do not use it in new code and do not suppress the warning. Use the documented replacement.
166
169
 
167
- ## Rule 14: When no component exists
170
+ ## Rule 14: When existing components do not meet the need
171
+
172
+ Before creating or materially extending a reusable component, read the
173
+ [upstream contribution guide](https://github.com/mieweb/ui/blob/main/CONTRIBUTING.md)
174
+ and follow its
175
+ [Developing Components From a Consuming Application](https://github.com/mieweb/ui/blob/main/CONTRIBUTING.md#developing-components-from-a-consuming-application)
176
+ process, including the alternatives audit, contribution-ready implementation,
177
+ submodule workflow, and PR requirements. If the guide is unavailable, report that
178
+ limitation and obtain it before proceeding with the contribution workflow.
179
+
180
+ Present the gap and supporting evidence before implementation. Obtain approval
181
+ before introducing a submodule or changing the consuming project's dependency
182
+ strategy. Keep project-specific behavior local, and do not create a generic
183
+ abstraction solely to make it contributable.
168
184
 
169
- First verify it truly doesn't exist — check https://ui.mieweb.org (Storybook) rather than guessing. Then build it locally, but in `@mieweb/ui` style: Tailwind utility classes with the library's design tokens, ARIA labels on interactive elements, and externalized user-facing text. Prefer composing existing primitives (`Card`, `Text`, `Badge`) over new bespoke markup. If the pattern is generic, propose contributing it upstream to `@mieweb/ui`.
185
+ Follow the repository's permissions and approval requirements for commits,
186
+ pushes, and PR creation. Do not treat these instructions as authorization to
187
+ publish changes.
@@ -0,0 +1,175 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Motion presets — the shared vocabulary of animations.
5
+ *
6
+ * This module is intentionally **free of any `motion` import**. It ships in the
7
+ * main `@mieweb/ui` entry so components can describe *what* they animate
8
+ * without pulling in a runtime to actually do it. The `@mieweb/ui/motion` entry
9
+ * is what turns these descriptions into real animations.
10
+ *
11
+ * Every preset is expressed as an open/closed variant pair so the same
12
+ * definition serves both usages:
13
+ *
14
+ * - **toggle** — the element stays mounted and animates between `open` and
15
+ * `closed` (a drawer sliding in and out).
16
+ * - **presence** — the element mounts and unmounts, entering on `open` and
17
+ * exiting back to `closed` (a modal).
18
+ */
19
+ /** Named animation recipes shared by components. */
20
+ type MotionPreset = 'drawerStart' | 'overlay' | 'modalContent' | 'sidebarLabel';
21
+ /**
22
+ * A variant value. Either a plain target object or a function of the element's
23
+ * `custom` value — the latter lets a single preset adapt to context, e.g. a
24
+ * drawer flipping its off-canvas direction in RTL.
25
+ */
26
+ type MotionVariant = Record<string, unknown> | ((custom: unknown) => Record<string, unknown>);
27
+ interface MotionPresetDefinition {
28
+ variants: {
29
+ open: MotionVariant;
30
+ closed: MotionVariant;
31
+ };
32
+ transition: Record<string, unknown>;
33
+ }
34
+ /**
35
+ * `custom` contract per preset:
36
+ *
37
+ * - `drawerStart` — `boolean`, whether the document direction is RTL.
38
+ * - `overlay`, `modalContent`, `sidebarLabel` — unused.
39
+ */
40
+ declare const motionPresets: Record<MotionPreset, MotionPresetDefinition>;
41
+
42
+ /**
43
+ * Motion runtime — the seam between components and an optional animation library.
44
+ *
45
+ * Components in the main entry never import `motion`. They ask this module for
46
+ * a runtime; if an app has opted in by rendering `<MotionProvider>` from
47
+ * `@mieweb/ui/motion`, they get one and animate. If not, `useMotionRuntime()`
48
+ * returns `null` and they fall back to their existing CSS transitions. That is
49
+ * what keeps `motion` out of the bundle of every app that hasn't asked for it —
50
+ * the opt-in is resolved in the *module graph*, not by a prop.
51
+ *
52
+ * Like `presets`, this module must stay free of any `motion` import.
53
+ */
54
+
55
+ interface MotionPresenceProps {
56
+ children?: React.ReactNode;
57
+ /** Suppress the initial mount animation. */
58
+ initial?: boolean;
59
+ /**
60
+ * Fires once every exiting child has finished and been removed.
61
+ *
62
+ * Needed by anything that guards the DOM while it is open — a focus trap, a
63
+ * scroll lock — because those guards must outlive `open` for as long as the
64
+ * subtree is still on screen. Never fires when no runtime is active, since
65
+ * there is no exit to wait for.
66
+ */
67
+ onExitComplete?: () => void;
68
+ }
69
+ /**
70
+ * The capabilities a motion library must supply. Deliberately small: element
71
+ * factories, a presence wrapper, and prop builders. Components depend on this
72
+ * interface, never on a concrete library, so swapping or dropping the library
73
+ * stays a one-file change.
74
+ */
75
+ interface MotionRuntime {
76
+ /**
77
+ * Whether animations should actually run.
78
+ *
79
+ * A disabled provider still supplies a runtime rather than `null` so that
80
+ * consumers can tell "disabled" apart from "never opted in": `Modal` uses it
81
+ * to decide whether an exit animation will ever report completion, and
82
+ * `AnimatedPresence` keeps its wrapper element stable across the flip.
83
+ * `Animated` itself renders the plain fallback tag whenever this is false —
84
+ * withholding animation props from a mounted motion component corrupts
85
+ * `toggle`-mode elements, so the swap (and the remount it implies) is the
86
+ * correct behaviour. See the render branches in `Animated`.
87
+ */
88
+ enabled: boolean;
89
+ /** Animated `div`. */
90
+ Div: React.ElementType;
91
+ /** Animated `nav`. */
92
+ Nav: React.ElementType;
93
+ /** Animated `span`, for inline content that must not become a block. */
94
+ Span: React.ElementType;
95
+ /** Enables exit animations for conditionally rendered children. */
96
+ Presence: React.ComponentType<MotionPresenceProps>;
97
+ /**
98
+ * Props for an element that stays mounted and animates between states.
99
+ * Skips the initial animation so a closed drawer doesn't slide out on load.
100
+ */
101
+ toggle: (preset: MotionPreset, open: boolean, custom?: unknown) => Record<string, unknown>;
102
+ /** Props for an element that mounts and unmounts inside `Presence`. */
103
+ presence: (preset: MotionPreset, custom?: unknown) => Record<string, unknown>;
104
+ }
105
+ /**
106
+ * The active motion runtime, or `null` when the app has not opted in.
107
+ *
108
+ * Components must treat `null` as the normal case and keep a CSS path that
109
+ * looks good on its own — motion is an enhancement, never a requirement.
110
+ */
111
+ declare function useMotionRuntime(): MotionRuntime | null;
112
+
113
+ /**
114
+ * `Animated` / `AnimatedPresence` — the ergonomic layer components use.
115
+ *
116
+ * These exist so an individual component never has to branch on whether motion
117
+ * is available. It declares the preset it wants and the CSS classes that stand
118
+ * in when motion is absent; this module picks the element to render.
119
+ *
120
+ * Adding motion to a further component should be a matter of swapping its
121
+ * root `<div>` for an `<Animated>` and naming a preset — no new imports, no
122
+ * new dependency, and no behavior change for apps that have not opted in.
123
+ */
124
+
125
+ interface AnimatedProps extends React.HTMLAttributes<HTMLElement> {
126
+ /** Intrinsic element to render. */
127
+ as?: 'div' | 'nav' | 'span';
128
+ /** Which shared animation recipe to use. */
129
+ preset: MotionPreset;
130
+ /**
131
+ * - `toggle` — element stays mounted and animates between open and closed.
132
+ * - `presence` — element mounts and unmounts; wrap it in `<AnimatedPresence>`
133
+ * so the exit animation gets a chance to run.
134
+ */
135
+ mode: 'toggle' | 'presence';
136
+ /** Current state. Only read in `toggle` mode. */
137
+ open?: boolean;
138
+ /** Per-preset context value — see the `custom` contract in `presets.ts`. */
139
+ custom?: unknown;
140
+ /**
141
+ * Classes applied whenever this element is **not** animating — no provider,
142
+ * a disabled provider, or `enabled={false}`. This is where a component's
143
+ * existing CSS transition lives, so the two paths never both try to drive
144
+ * the same property.
145
+ */
146
+ fallbackClassName?: string;
147
+ /**
148
+ * Set `false` to stop this element animating even when a runtime is active.
149
+ *
150
+ * For states where an animated element would be wrong rather than merely
151
+ * unnecessary. Motion writes a `transform` to hold an element at its resting
152
+ * position, and a transformed ancestor becomes the containing block for any
153
+ * `position: fixed` descendant — so an element that is only sometimes
154
+ * animated should opt out the rest of the time.
155
+ *
156
+ * Flipping this (or the provider's `disabled`) swaps the element back to a
157
+ * plain tag, which **remounts** it — deliberately. See the note on the
158
+ * render branches below.
159
+ */
160
+ enabled?: boolean;
161
+ }
162
+ declare const Animated: React.ForwardRefExoticComponent<AnimatedProps & React.RefAttributes<HTMLElement>>;
163
+ /**
164
+ * Keeps unmounting children on screen long enough to animate out.
165
+ *
166
+ * Without a runtime this is a pass-through, so children disappear immediately —
167
+ * which is exactly what they do today. Children rendered conditionally inside
168
+ * it need a stable `key`.
169
+ */
170
+ declare function AnimatedPresence({ children, initial, onExitComplete, }: MotionPresenceProps): React.JSX.Element;
171
+ declare namespace AnimatedPresence {
172
+ var displayName: string;
173
+ }
174
+
175
+ export { Animated as A, type MotionPreset as M, AnimatedPresence as a, type AnimatedProps as b, type MotionRuntime as c, type MotionPresenceProps as d, type MotionPresetDefinition as e, type MotionVariant as f, motionPresets as m, useMotionRuntime as u };
@@ -0,0 +1,175 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Motion presets — the shared vocabulary of animations.
5
+ *
6
+ * This module is intentionally **free of any `motion` import**. It ships in the
7
+ * main `@mieweb/ui` entry so components can describe *what* they animate
8
+ * without pulling in a runtime to actually do it. The `@mieweb/ui/motion` entry
9
+ * is what turns these descriptions into real animations.
10
+ *
11
+ * Every preset is expressed as an open/closed variant pair so the same
12
+ * definition serves both usages:
13
+ *
14
+ * - **toggle** — the element stays mounted and animates between `open` and
15
+ * `closed` (a drawer sliding in and out).
16
+ * - **presence** — the element mounts and unmounts, entering on `open` and
17
+ * exiting back to `closed` (a modal).
18
+ */
19
+ /** Named animation recipes shared by components. */
20
+ type MotionPreset = 'drawerStart' | 'overlay' | 'modalContent' | 'sidebarLabel';
21
+ /**
22
+ * A variant value. Either a plain target object or a function of the element's
23
+ * `custom` value — the latter lets a single preset adapt to context, e.g. a
24
+ * drawer flipping its off-canvas direction in RTL.
25
+ */
26
+ type MotionVariant = Record<string, unknown> | ((custom: unknown) => Record<string, unknown>);
27
+ interface MotionPresetDefinition {
28
+ variants: {
29
+ open: MotionVariant;
30
+ closed: MotionVariant;
31
+ };
32
+ transition: Record<string, unknown>;
33
+ }
34
+ /**
35
+ * `custom` contract per preset:
36
+ *
37
+ * - `drawerStart` — `boolean`, whether the document direction is RTL.
38
+ * - `overlay`, `modalContent`, `sidebarLabel` — unused.
39
+ */
40
+ declare const motionPresets: Record<MotionPreset, MotionPresetDefinition>;
41
+
42
+ /**
43
+ * Motion runtime — the seam between components and an optional animation library.
44
+ *
45
+ * Components in the main entry never import `motion`. They ask this module for
46
+ * a runtime; if an app has opted in by rendering `<MotionProvider>` from
47
+ * `@mieweb/ui/motion`, they get one and animate. If not, `useMotionRuntime()`
48
+ * returns `null` and they fall back to their existing CSS transitions. That is
49
+ * what keeps `motion` out of the bundle of every app that hasn't asked for it —
50
+ * the opt-in is resolved in the *module graph*, not by a prop.
51
+ *
52
+ * Like `presets`, this module must stay free of any `motion` import.
53
+ */
54
+
55
+ interface MotionPresenceProps {
56
+ children?: React.ReactNode;
57
+ /** Suppress the initial mount animation. */
58
+ initial?: boolean;
59
+ /**
60
+ * Fires once every exiting child has finished and been removed.
61
+ *
62
+ * Needed by anything that guards the DOM while it is open — a focus trap, a
63
+ * scroll lock — because those guards must outlive `open` for as long as the
64
+ * subtree is still on screen. Never fires when no runtime is active, since
65
+ * there is no exit to wait for.
66
+ */
67
+ onExitComplete?: () => void;
68
+ }
69
+ /**
70
+ * The capabilities a motion library must supply. Deliberately small: element
71
+ * factories, a presence wrapper, and prop builders. Components depend on this
72
+ * interface, never on a concrete library, so swapping or dropping the library
73
+ * stays a one-file change.
74
+ */
75
+ interface MotionRuntime {
76
+ /**
77
+ * Whether animations should actually run.
78
+ *
79
+ * A disabled provider still supplies a runtime rather than `null` so that
80
+ * consumers can tell "disabled" apart from "never opted in": `Modal` uses it
81
+ * to decide whether an exit animation will ever report completion, and
82
+ * `AnimatedPresence` keeps its wrapper element stable across the flip.
83
+ * `Animated` itself renders the plain fallback tag whenever this is false —
84
+ * withholding animation props from a mounted motion component corrupts
85
+ * `toggle`-mode elements, so the swap (and the remount it implies) is the
86
+ * correct behaviour. See the render branches in `Animated`.
87
+ */
88
+ enabled: boolean;
89
+ /** Animated `div`. */
90
+ Div: React.ElementType;
91
+ /** Animated `nav`. */
92
+ Nav: React.ElementType;
93
+ /** Animated `span`, for inline content that must not become a block. */
94
+ Span: React.ElementType;
95
+ /** Enables exit animations for conditionally rendered children. */
96
+ Presence: React.ComponentType<MotionPresenceProps>;
97
+ /**
98
+ * Props for an element that stays mounted and animates between states.
99
+ * Skips the initial animation so a closed drawer doesn't slide out on load.
100
+ */
101
+ toggle: (preset: MotionPreset, open: boolean, custom?: unknown) => Record<string, unknown>;
102
+ /** Props for an element that mounts and unmounts inside `Presence`. */
103
+ presence: (preset: MotionPreset, custom?: unknown) => Record<string, unknown>;
104
+ }
105
+ /**
106
+ * The active motion runtime, or `null` when the app has not opted in.
107
+ *
108
+ * Components must treat `null` as the normal case and keep a CSS path that
109
+ * looks good on its own — motion is an enhancement, never a requirement.
110
+ */
111
+ declare function useMotionRuntime(): MotionRuntime | null;
112
+
113
+ /**
114
+ * `Animated` / `AnimatedPresence` — the ergonomic layer components use.
115
+ *
116
+ * These exist so an individual component never has to branch on whether motion
117
+ * is available. It declares the preset it wants and the CSS classes that stand
118
+ * in when motion is absent; this module picks the element to render.
119
+ *
120
+ * Adding motion to a further component should be a matter of swapping its
121
+ * root `<div>` for an `<Animated>` and naming a preset — no new imports, no
122
+ * new dependency, and no behavior change for apps that have not opted in.
123
+ */
124
+
125
+ interface AnimatedProps extends React.HTMLAttributes<HTMLElement> {
126
+ /** Intrinsic element to render. */
127
+ as?: 'div' | 'nav' | 'span';
128
+ /** Which shared animation recipe to use. */
129
+ preset: MotionPreset;
130
+ /**
131
+ * - `toggle` — element stays mounted and animates between open and closed.
132
+ * - `presence` — element mounts and unmounts; wrap it in `<AnimatedPresence>`
133
+ * so the exit animation gets a chance to run.
134
+ */
135
+ mode: 'toggle' | 'presence';
136
+ /** Current state. Only read in `toggle` mode. */
137
+ open?: boolean;
138
+ /** Per-preset context value — see the `custom` contract in `presets.ts`. */
139
+ custom?: unknown;
140
+ /**
141
+ * Classes applied whenever this element is **not** animating — no provider,
142
+ * a disabled provider, or `enabled={false}`. This is where a component's
143
+ * existing CSS transition lives, so the two paths never both try to drive
144
+ * the same property.
145
+ */
146
+ fallbackClassName?: string;
147
+ /**
148
+ * Set `false` to stop this element animating even when a runtime is active.
149
+ *
150
+ * For states where an animated element would be wrong rather than merely
151
+ * unnecessary. Motion writes a `transform` to hold an element at its resting
152
+ * position, and a transformed ancestor becomes the containing block for any
153
+ * `position: fixed` descendant — so an element that is only sometimes
154
+ * animated should opt out the rest of the time.
155
+ *
156
+ * Flipping this (or the provider's `disabled`) swaps the element back to a
157
+ * plain tag, which **remounts** it — deliberately. See the note on the
158
+ * render branches below.
159
+ */
160
+ enabled?: boolean;
161
+ }
162
+ declare const Animated: React.ForwardRefExoticComponent<AnimatedProps & React.RefAttributes<HTMLElement>>;
163
+ /**
164
+ * Keeps unmounting children on screen long enough to animate out.
165
+ *
166
+ * Without a runtime this is a pass-through, so children disappear immediately —
167
+ * which is exactly what they do today. Children rendered conditionally inside
168
+ * it need a stable `key`.
169
+ */
170
+ declare function AnimatedPresence({ children, initial, onExitComplete, }: MotionPresenceProps): React.JSX.Element;
171
+ declare namespace AnimatedPresence {
172
+ var displayName: string;
173
+ }
174
+
175
+ export { Animated as A, type MotionPreset as M, AnimatedPresence as a, type AnimatedProps as b, type MotionRuntime as c, type MotionPresenceProps as d, type MotionPresetDefinition as e, type MotionVariant as f, motionPresets as m, useMotionRuntime as u };
@@ -0,0 +1,6 @@
1
+ export { CsvBlock } from './chunk-NHN6A3ZO.js';
2
+ import './chunk-CK3KLRNF.js';
3
+ import './chunk-KREUYVMZ.js';
4
+ import './chunk-TQONQSJO.js';
5
+ //# sourceMappingURL=CsvBlock-D7Z6ZCRP.js.map
6
+ //# sourceMappingURL=CsvBlock-D7Z6ZCRP.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"CsvBlock-PUSTBQ5B.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"CsvBlock-D7Z6ZCRP.js"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunkAHINB2TP_cjs = require('./chunk-AHINB2TP.cjs');
4
+ require('./chunk-6QKMMKRY.cjs');
5
+ require('./chunk-IINZWUGK.cjs');
6
+ require('./chunk-S5RVSXDV.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "CsvBlock", {
11
+ enumerable: true,
12
+ get: function () { return chunkAHINB2TP_cjs.CsvBlock; }
13
+ });
14
+ //# sourceMappingURL=CsvBlock-QXXZ7ZUM.cjs.map
15
+ //# sourceMappingURL=CsvBlock-QXXZ7ZUM.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"CsvBlock-OTFG3PYZ.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"CsvBlock-QXXZ7ZUM.cjs"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunkIB54SKWB_cjs = require('./chunk-IB54SKWB.cjs');
4
+ require('./chunk-6QKMMKRY.cjs');
5
+ require('./chunk-IINZWUGK.cjs');
6
+ require('./chunk-S5RVSXDV.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "HtmlPreviewBlock", {
11
+ enumerable: true,
12
+ get: function () { return chunkIB54SKWB_cjs.HtmlPreviewBlock; }
13
+ });
14
+ //# sourceMappingURL=HtmlPreviewBlock-AADG7MVB.cjs.map
15
+ //# sourceMappingURL=HtmlPreviewBlock-AADG7MVB.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-QHLSIMWJ.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-AADG7MVB.cjs"}
@@ -0,0 +1,6 @@
1
+ export { HtmlPreviewBlock } from './chunk-EG7XFZ3W.js';
2
+ import './chunk-CK3KLRNF.js';
3
+ import './chunk-KREUYVMZ.js';
4
+ import './chunk-TQONQSJO.js';
5
+ //# sourceMappingURL=HtmlPreviewBlock-F5VDM2EN.js.map
6
+ //# sourceMappingURL=HtmlPreviewBlock-F5VDM2EN.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-YF2YVKKX.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-F5VDM2EN.js"}
@@ -0,0 +1,6 @@
1
+ export { MermaidBlock } from './chunk-ZB54MTMQ.js';
2
+ import './chunk-CK3KLRNF.js';
3
+ import './chunk-KREUYVMZ.js';
4
+ import './chunk-TQONQSJO.js';
5
+ //# sourceMappingURL=MermaidBlock-6PLITRBZ.js.map
6
+ //# sourceMappingURL=MermaidBlock-6PLITRBZ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"MermaidBlock-H3TWNC4D.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"MermaidBlock-6PLITRBZ.js"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunkRSCA5AZW_cjs = require('./chunk-RSCA5AZW.cjs');
4
+ require('./chunk-6QKMMKRY.cjs');
5
+ require('./chunk-IINZWUGK.cjs');
6
+ require('./chunk-S5RVSXDV.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "MermaidBlock", {
11
+ enumerable: true,
12
+ get: function () { return chunkRSCA5AZW_cjs.MermaidBlock; }
13
+ });
14
+ //# sourceMappingURL=MermaidBlock-TQ2O5CLV.cjs.map
15
+ //# sourceMappingURL=MermaidBlock-TQ2O5CLV.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"MermaidBlock-ZLLBO3VY.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"MermaidBlock-TQ2O5CLV.cjs"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunk5Z6UPVGC_cjs = require('./chunk-5Z6UPVGC.cjs');
4
+ require('./chunk-6QKMMKRY.cjs');
5
+ require('./chunk-IINZWUGK.cjs');
6
+ require('./chunk-S5RVSXDV.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "SurveyBlock", {
11
+ enumerable: true,
12
+ get: function () { return chunk5Z6UPVGC_cjs.SurveyBlock; }
13
+ });
14
+ //# sourceMappingURL=SurveyBlock-OYL3VNU5.cjs.map
15
+ //# sourceMappingURL=SurveyBlock-OYL3VNU5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"SurveyBlock-M2ZRTGVJ.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"SurveyBlock-OYL3VNU5.cjs"}
@@ -0,0 +1,6 @@
1
+ export { SurveyBlock } from './chunk-OSPTA4UR.js';
2
+ import './chunk-CK3KLRNF.js';
3
+ import './chunk-KREUYVMZ.js';
4
+ import './chunk-TQONQSJO.js';
5
+ //# sourceMappingURL=SurveyBlock-W5PSQ62F.js.map
6
+ //# sourceMappingURL=SurveyBlock-W5PSQ62F.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"SurveyBlock-JLHS3YQD.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"SurveyBlock-W5PSQ62F.js"}
package/dist/ag-grid.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkPAM5UUBL_cjs = require('./chunk-PAM5UUBL.cjs');
3
+ var chunkL7L5S2HO_cjs = require('./chunk-L7L5S2HO.cjs');
4
4
  var chunkS5RVSXDV_cjs = require('./chunk-S5RVSXDV.cjs');
5
5
  var React = require('react');
6
6
  var agGridReact = require('ag-grid-react');
@@ -435,7 +435,7 @@ function EmailRenderer(props) {
435
435
  className: "text-primary-800 dark:text-primary-400 inline-flex items-center gap-1.5 hover:underline",
436
436
  onClick: (e) => e.stopPropagation(),
437
437
  children: [
438
- /* @__PURE__ */ jsxRuntime.jsx(chunkPAM5UUBL_cjs.Mail, { className: "h-3 w-3 opacity-60" }),
438
+ /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Mail, { className: "h-3 w-3 opacity-60" }),
439
439
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: value })
440
440
  ]
441
441
  }
@@ -452,7 +452,7 @@ function PhoneRenderer(props) {
452
452
  className: "text-foreground hover:text-primary-800 dark:hover:text-primary-400 inline-flex items-center gap-1.5",
453
453
  onClick: (e) => e.stopPropagation(),
454
454
  children: [
455
- /* @__PURE__ */ jsxRuntime.jsx(chunkPAM5UUBL_cjs.Phone, { className: "h-3 w-3 text-green-500 opacity-70" }),
455
+ /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Phone, { className: "h-3 w-3 text-green-500 opacity-70" }),
456
456
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: displayValue })
457
457
  ]
458
458
  }
@@ -472,7 +472,7 @@ function DomainRenderer(props) {
472
472
  className: "text-primary-800 dark:text-primary-400 inline-flex items-center gap-1.5 hover:underline",
473
473
  onClick: (e) => e.stopPropagation(),
474
474
  children: [
475
- /* @__PURE__ */ jsxRuntime.jsx(chunkPAM5UUBL_cjs.Globe, { className: "h-3 w-3 opacity-60" }),
475
+ /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Globe, { className: "h-3 w-3 opacity-60" }),
476
476
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: displayDomain })
477
477
  ]
478
478
  }
@@ -569,7 +569,7 @@ function BooleanRenderer(props) {
569
569
  isTrue ? "bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400" : "bg-gray-200 text-gray-600 dark:bg-gray-700 dark:text-gray-300"
570
570
  ),
571
571
  children: [
572
- isTrue ? /* @__PURE__ */ jsxRuntime.jsx(chunkPAM5UUBL_cjs.CheckCircle, { className: "h-3 w-3" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkPAM5UUBL_cjs.Clock, { className: "h-3 w-3" }),
572
+ isTrue ? /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.CheckCircle, { className: "h-3 w-3" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Clock, { className: "h-3 w-3" }),
573
573
  isTrue ? "Yes" : "No"
574
574
  ]
575
575
  }
package/dist/ag-grid.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Mail, Phone, Globe, CheckCircle, Clock } from './chunk-3PXOIAF6.js';
1
+ import { Mail, Phone, Globe, CheckCircle, Clock } from './chunk-BKSPDTX4.js';
2
2
  import { cn } from './chunk-TQONQSJO.js';
3
3
  import * as React from 'react';
4
4
  import { memo } from 'react';