@mieweb/ui 0.8.0 → 0.9.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.
- package/README.md +162 -739
- package/agent/mieweb-ui.instructions.md +34 -16
- package/dist/Animated-Cs-naa2g.d.cts +175 -0
- package/dist/Animated-Cs-naa2g.d.ts +175 -0
- package/dist/CsvBlock-D7Z6ZCRP.js +6 -0
- package/dist/{CsvBlock-PUSTBQ5B.js.map → CsvBlock-D7Z6ZCRP.js.map} +1 -1
- package/dist/CsvBlock-QXXZ7ZUM.cjs +15 -0
- package/dist/{CsvBlock-OTFG3PYZ.cjs.map → CsvBlock-QXXZ7ZUM.cjs.map} +1 -1
- package/dist/HtmlPreviewBlock-AADG7MVB.cjs +15 -0
- package/dist/{HtmlPreviewBlock-QHLSIMWJ.cjs.map → HtmlPreviewBlock-AADG7MVB.cjs.map} +1 -1
- package/dist/HtmlPreviewBlock-F5VDM2EN.js +6 -0
- package/dist/{HtmlPreviewBlock-YF2YVKKX.js.map → HtmlPreviewBlock-F5VDM2EN.js.map} +1 -1
- package/dist/MermaidBlock-6PLITRBZ.js +6 -0
- package/dist/{MermaidBlock-H3TWNC4D.js.map → MermaidBlock-6PLITRBZ.js.map} +1 -1
- package/dist/MermaidBlock-TQ2O5CLV.cjs +15 -0
- package/dist/{MermaidBlock-ZLLBO3VY.cjs.map → MermaidBlock-TQ2O5CLV.cjs.map} +1 -1
- package/dist/SurveyBlock-OYL3VNU5.cjs +15 -0
- package/dist/{SurveyBlock-M2ZRTGVJ.cjs.map → SurveyBlock-OYL3VNU5.cjs.map} +1 -1
- package/dist/SurveyBlock-W5PSQ62F.js +6 -0
- package/dist/{SurveyBlock-JLHS3YQD.js.map → SurveyBlock-W5PSQ62F.js.map} +1 -1
- package/dist/ag-grid.cjs +5 -5
- package/dist/ag-grid.js +1 -1
- package/dist/brands/index.cjs +7 -7
- package/dist/brands/index.js +2 -2
- package/dist/{chunk-RZJXCI53.js → chunk-22CYDCXA.js} +3 -3
- package/dist/{chunk-RZJXCI53.js.map → chunk-22CYDCXA.js.map} +1 -1
- package/dist/{chunk-OTQ72WX3.js → chunk-2BPIVWAK.js} +3 -3
- package/dist/{chunk-OTQ72WX3.js.map → chunk-2BPIVWAK.js.map} +1 -1
- package/dist/{chunk-6EWJGRC3.js → chunk-3JWAABYI.js} +6 -6
- package/dist/chunk-3JWAABYI.js.map +1 -0
- package/dist/{chunk-5JZIDILK.cjs → chunk-3LHICE4I.cjs} +6 -6
- package/dist/chunk-3LHICE4I.cjs.map +1 -0
- package/dist/{chunk-JHZW3Y62.js → chunk-3RB35GYK.js} +5 -5
- package/dist/chunk-3RB35GYK.js.map +1 -0
- package/dist/{chunk-BOW7ZGI2.cjs → chunk-4SM3I7WE.cjs} +170 -10
- package/dist/chunk-4SM3I7WE.cjs.map +1 -0
- package/dist/{chunk-26DPQUSB.cjs → chunk-5BVFVXHN.cjs} +224 -157
- package/dist/chunk-5BVFVXHN.cjs.map +1 -0
- package/dist/{chunk-QHTDWIED.js → chunk-5H7SAEQO.js} +5 -5
- package/dist/{chunk-QHTDWIED.js.map → chunk-5H7SAEQO.js.map} +1 -1
- package/dist/{chunk-EMMYFHOT.js → chunk-5WOB4UBD.js} +3 -3
- package/dist/{chunk-EMMYFHOT.js.map → chunk-5WOB4UBD.js.map} +1 -1
- package/dist/{chunk-4CUFXCC5.cjs → chunk-5Z6UPVGC.cjs} +6 -6
- package/dist/{chunk-4CUFXCC5.cjs.map → chunk-5Z6UPVGC.cjs.map} +1 -1
- package/dist/{chunk-YIXTGWT4.cjs → chunk-6QKMMKRY.cjs} +5 -5
- package/dist/{chunk-YIXTGWT4.cjs.map → chunk-6QKMMKRY.cjs.map} +1 -1
- package/dist/{chunk-F57VRLKP.js → chunk-6SAYPXHX.js} +4 -4
- package/dist/{chunk-F57VRLKP.js.map → chunk-6SAYPXHX.js.map} +1 -1
- package/dist/{chunk-SK7H3Z67.cjs → chunk-6XDPJWSC.cjs} +99 -83
- package/dist/chunk-6XDPJWSC.cjs.map +1 -0
- package/dist/{chunk-4AE2L6AO.cjs → chunk-7FTBPLA6.cjs} +8 -8
- package/dist/chunk-7FTBPLA6.cjs.map +1 -0
- package/dist/{chunk-KVE7PQ5P.cjs → chunk-7KN6J7XV.cjs} +20 -20
- package/dist/{chunk-KVE7PQ5P.cjs.map → chunk-7KN6J7XV.cjs.map} +1 -1
- package/dist/{chunk-K4S4FAYX.cjs → chunk-AHINB2TP.cjs} +11 -11
- package/dist/{chunk-K4S4FAYX.cjs.map → chunk-AHINB2TP.cjs.map} +1 -1
- package/dist/{chunk-MYFZYUPR.cjs → chunk-AOHJILLU.cjs} +38 -3
- package/dist/chunk-AOHJILLU.cjs.map +1 -0
- package/dist/chunk-BKSPDTX4.js +3 -0
- package/dist/{chunk-3PXOIAF6.js.map → chunk-BKSPDTX4.js.map} +1 -1
- package/dist/chunk-BN75TLUN.cjs +163 -0
- package/dist/chunk-BN75TLUN.cjs.map +1 -0
- package/dist/{chunk-WWJIW2IH.cjs → chunk-BVMABVC4.cjs} +3 -3
- package/dist/{chunk-WWJIW2IH.cjs.map → chunk-BVMABVC4.cjs.map} +1 -1
- package/dist/{chunk-H7QSGFMZ.cjs → chunk-BZAGP5W6.cjs} +17 -10
- package/dist/chunk-BZAGP5W6.cjs.map +1 -0
- package/dist/{chunk-RS5VA6QU.cjs → chunk-C3DUS2VE.cjs} +3 -3
- package/dist/{chunk-RS5VA6QU.cjs.map → chunk-C3DUS2VE.cjs.map} +1 -1
- package/dist/{chunk-NLBT5O2X.js → chunk-CK3KLRNF.js} +3 -3
- package/dist/{chunk-NLBT5O2X.js.map → chunk-CK3KLRNF.js.map} +1 -1
- package/dist/{chunk-L6D4CKLV.cjs → chunk-CXDMZT45.cjs} +135 -4
- package/dist/chunk-CXDMZT45.cjs.map +1 -0
- package/dist/{chunk-TXRQQMG5.js → chunk-CYMZ2QS5.js} +2 -2
- package/dist/{chunk-TXRQQMG5.js.map → chunk-CYMZ2QS5.js.map} +1 -1
- package/dist/{chunk-DX64KLSN.js → chunk-D25WH7MH.js} +7 -7
- package/dist/{chunk-DX64KLSN.js.map → chunk-D25WH7MH.js.map} +1 -1
- package/dist/{chunk-XBKOZRDO.js → chunk-DFYMIRMW.js} +4 -4
- package/dist/{chunk-XBKOZRDO.js.map → chunk-DFYMIRMW.js.map} +1 -1
- package/dist/{chunk-AESFOMSH.js → chunk-DGRXAIWK.js} +135 -4
- package/dist/chunk-DGRXAIWK.js.map +1 -0
- package/dist/{chunk-UZ5NGGMI.js → chunk-EG7XFZ3W.js} +4 -4
- package/dist/{chunk-UZ5NGGMI.js.map → chunk-EG7XFZ3W.js.map} +1 -1
- package/dist/{chunk-RYQ3S3KO.cjs → chunk-FQBTGS3E.cjs} +23 -20
- package/dist/chunk-FQBTGS3E.cjs.map +1 -0
- package/dist/{chunk-LQHI44OZ.cjs → chunk-FUFBRKOG.cjs} +59 -59
- package/dist/{chunk-LQHI44OZ.cjs.map → chunk-FUFBRKOG.cjs.map} +1 -1
- package/dist/{chunk-DG7KE4YJ.cjs → chunk-FYAKUU2A.cjs} +38 -21
- package/dist/chunk-FYAKUU2A.cjs.map +1 -0
- package/dist/{chunk-7L7OPISJ.cjs → chunk-H4AVMUOC.cjs} +12 -6
- package/dist/chunk-H4AVMUOC.cjs.map +1 -0
- package/dist/{chunk-I2ECTLON.cjs → chunk-HXSA6QC5.cjs} +3 -3
- package/dist/{chunk-I2ECTLON.cjs.map → chunk-HXSA6QC5.cjs.map} +1 -1
- package/dist/{chunk-DCBMTFLE.js → chunk-HZ4MBUC3.js} +3 -3
- package/dist/{chunk-DCBMTFLE.js.map → chunk-HZ4MBUC3.js.map} +1 -1
- package/dist/{chunk-X5ZPYYMS.js → chunk-I3DQXUSC.js} +3 -3
- package/dist/{chunk-X5ZPYYMS.js.map → chunk-I3DQXUSC.js.map} +1 -1
- package/dist/{chunk-FN6VHMLM.cjs → chunk-IB54SKWB.cjs} +8 -8
- package/dist/{chunk-FN6VHMLM.cjs.map → chunk-IB54SKWB.cjs.map} +1 -1
- package/dist/{chunk-JP5SGIXA.cjs → chunk-IFDC4TXM.cjs} +4 -4
- package/dist/{chunk-JP5SGIXA.cjs.map → chunk-IFDC4TXM.cjs.map} +1 -1
- package/dist/{chunk-RDGRKYQ5.cjs → chunk-IINZWUGK.cjs} +58 -6
- package/dist/chunk-IINZWUGK.cjs.map +1 -0
- package/dist/{chunk-U3JU6BI5.cjs → chunk-JEIW7BSV.cjs} +3 -3
- package/dist/{chunk-U3JU6BI5.cjs.map → chunk-JEIW7BSV.cjs.map} +1 -1
- package/dist/{chunk-D2GID3YK.js → chunk-KREUYVMZ.js} +58 -6
- package/dist/chunk-KREUYVMZ.js.map +1 -0
- package/dist/{chunk-Y6YSJPVC.js → chunk-KRU6IGV7.js} +11 -3
- package/dist/chunk-KRU6IGV7.js.map +1 -0
- package/dist/{chunk-LZU7YBXG.js → chunk-KU3XRHWA.js} +169 -10
- package/dist/chunk-KU3XRHWA.js.map +1 -0
- package/dist/{chunk-P2VTQ5AR.cjs → chunk-L52N6BEN.cjs} +39 -23
- package/dist/chunk-L52N6BEN.cjs.map +1 -0
- package/dist/{chunk-XWYKLEKG.js → chunk-L5W7TJQ5.js} +11 -5
- package/dist/chunk-L5W7TJQ5.js.map +1 -0
- package/dist/{chunk-PAM5UUBL.cjs → chunk-L7L5S2HO.cjs} +18 -2
- package/dist/{chunk-PAM5UUBL.cjs.map → chunk-L7L5S2HO.cjs.map} +1 -1
- package/dist/{chunk-SEPYBAML.js → chunk-LAEIVOIY.js} +38 -21
- package/dist/chunk-LAEIVOIY.js.map +1 -0
- package/dist/{chunk-Z5KFXHDP.cjs → chunk-MM7QKUE3.cjs} +5 -5
- package/dist/{chunk-Z5KFXHDP.cjs.map → chunk-MM7QKUE3.cjs.map} +1 -1
- package/dist/{chunk-FJ7YPVKV.js → chunk-MUIDWFYJ.js} +3 -3
- package/dist/{chunk-FJ7YPVKV.js.map → chunk-MUIDWFYJ.js.map} +1 -1
- package/dist/{chunk-FDV7EQWH.js → chunk-MXQ7J4BB.js} +21 -18
- package/dist/chunk-MXQ7J4BB.js.map +1 -0
- package/dist/{chunk-YMHOF6WA.cjs → chunk-MYAU2ZUC.cjs} +3 -3
- package/dist/{chunk-YMHOF6WA.cjs.map → chunk-MYAU2ZUC.cjs.map} +1 -1
- package/dist/{chunk-5J5PEUUA.js → chunk-NHN6A3ZO.js} +6 -6
- package/dist/{chunk-5J5PEUUA.js.map → chunk-NHN6A3ZO.js.map} +1 -1
- package/dist/{chunk-EPQPUFS6.cjs → chunk-NYJIXR4Y.cjs} +6 -6
- package/dist/chunk-NYJIXR4Y.cjs.map +1 -0
- package/dist/{chunk-EKRT7K2K.js → chunk-O6GJ4IYS.js} +222 -157
- package/dist/chunk-O6GJ4IYS.js.map +1 -0
- package/dist/{chunk-WIYQI35R.cjs → chunk-O7XHHTTP.cjs} +8 -8
- package/dist/{chunk-WIYQI35R.cjs.map → chunk-O7XHHTTP.cjs.map} +1 -1
- package/dist/{chunk-IILJGFI5.js → chunk-OAZUDUGX.js} +8 -6
- package/dist/chunk-OAZUDUGX.js.map +1 -0
- package/dist/{chunk-JHGMZX4I.cjs → chunk-OCV33S5Q.cjs} +6 -6
- package/dist/{chunk-JHGMZX4I.cjs.map → chunk-OCV33S5Q.cjs.map} +1 -1
- package/dist/{chunk-IYXCFIMP.js → chunk-ODYQYLO2.js} +33 -17
- package/dist/chunk-ODYQYLO2.js.map +1 -0
- package/dist/{chunk-FPVRQCCL.js → chunk-OHDIJOGG.js} +4 -4
- package/dist/{chunk-FPVRQCCL.js.map → chunk-OHDIJOGG.js.map} +1 -1
- package/dist/{chunk-GQVL2JKQ.cjs → chunk-OHKO5THF.cjs} +3 -3
- package/dist/{chunk-GQVL2JKQ.cjs.map → chunk-OHKO5THF.cjs.map} +1 -1
- package/dist/{chunk-LMBXJZLG.js → chunk-ON4JULCA.js} +3 -3
- package/dist/{chunk-LMBXJZLG.js.map → chunk-ON4JULCA.js.map} +1 -1
- package/dist/{chunk-A5YOIJKL.js → chunk-ONNY7UO4.js} +15 -15
- package/dist/{chunk-A5YOIJKL.js.map → chunk-ONNY7UO4.js.map} +1 -1
- package/dist/{chunk-DWCYEPTT.js → chunk-OSPTA4UR.js} +4 -4
- package/dist/{chunk-DWCYEPTT.js.map → chunk-OSPTA4UR.js.map} +1 -1
- package/dist/{chunk-FDUA6OGN.js → chunk-PFKRHNYV.js} +8 -8
- package/dist/chunk-PFKRHNYV.js.map +1 -0
- package/dist/{chunk-XMECP2MD.js → chunk-PHK4XBO5.js} +4 -4
- package/dist/{chunk-XMECP2MD.js.map → chunk-PHK4XBO5.js.map} +1 -1
- package/dist/{chunk-ZZJ4ZVYR.cjs → chunk-PJ6CC53R.cjs} +3 -3
- package/dist/{chunk-ZZJ4ZVYR.cjs.map → chunk-PJ6CC53R.cjs.map} +1 -1
- package/dist/{chunk-N3Y43KOB.js → chunk-PYHFVYVZ.js} +12 -5
- package/dist/chunk-PYHFVYVZ.js.map +1 -0
- package/dist/{chunk-XMCIXHGH.js → chunk-Q7G56ZIO.js} +39 -23
- package/dist/chunk-Q7G56ZIO.js.map +1 -0
- package/dist/{chunk-4PIW3Y5M.js → chunk-QAKASRE6.js} +34 -26
- package/dist/chunk-QAKASRE6.js.map +1 -0
- package/dist/{chunk-QGZC43L7.js → chunk-QAQOCS2J.js} +5 -5
- package/dist/{chunk-QGZC43L7.js.map → chunk-QAQOCS2J.js.map} +1 -1
- package/dist/{chunk-YVIH26FG.cjs → chunk-QKAYRHWP.cjs} +12 -12
- package/dist/{chunk-YVIH26FG.cjs.map → chunk-QKAYRHWP.cjs.map} +1 -1
- package/dist/{chunk-P3JEMF6E.cjs → chunk-RSCA5AZW.cjs} +4 -4
- package/dist/{chunk-P3JEMF6E.cjs.map → chunk-RSCA5AZW.cjs.map} +1 -1
- package/dist/{chunk-5Y5FSR4N.js → chunk-SCXELRRZ.js} +3 -3
- package/dist/{chunk-5Y5FSR4N.js.map → chunk-SCXELRRZ.js.map} +1 -1
- package/dist/{chunk-JWTCEWQ4.cjs → chunk-SNEQXSC5.cjs} +2 -2
- package/dist/{chunk-JWTCEWQ4.cjs.map → chunk-SNEQXSC5.cjs.map} +1 -1
- package/dist/{chunk-U5TTXN45.cjs → chunk-SRA2L3SQ.cjs} +9 -7
- package/dist/chunk-SRA2L3SQ.cjs.map +1 -0
- package/dist/{chunk-5U6GETAW.js → chunk-TQDZLRIE.js} +3 -3
- package/dist/chunk-TQDZLRIE.js.map +1 -0
- package/dist/{chunk-HK3AMH3Q.cjs → chunk-VROIMIHB.cjs} +11 -3
- package/dist/chunk-VROIMIHB.cjs.map +1 -0
- package/dist/{chunk-3SHLOF4V.cjs → chunk-VTR2KGLY.cjs} +9 -9
- package/dist/{chunk-3SHLOF4V.cjs.map → chunk-VTR2KGLY.cjs.map} +1 -1
- package/dist/{chunk-XO3WLK65.js → chunk-VVDE4CHU.js} +3 -3
- package/dist/{chunk-XO3WLK65.js.map → chunk-VVDE4CHU.js.map} +1 -1
- package/dist/{chunk-XS35KPBZ.cjs → chunk-WIAQQNFU.cjs} +4 -4
- package/dist/{chunk-XS35KPBZ.cjs.map → chunk-WIAQQNFU.cjs.map} +1 -1
- package/dist/{chunk-BOOJDRJO.js → chunk-WSNMQQ4P.js} +38 -3
- package/dist/chunk-WSNMQQ4P.js.map +1 -0
- package/dist/chunk-WYMO3IIK.js +136 -0
- package/dist/chunk-WYMO3IIK.js.map +1 -0
- package/dist/{chunk-SPWVKDGC.cjs → chunk-X5QRRMGB.cjs} +35 -27
- package/dist/chunk-X5QRRMGB.cjs.map +1 -0
- package/dist/{chunk-SH6B4MG5.js → chunk-XBXDUAIM.js} +4 -4
- package/dist/{chunk-SH6B4MG5.js.map → chunk-XBXDUAIM.js.map} +1 -1
- package/dist/{chunk-56QJHQ5C.cjs → chunk-XEEVDZDK.cjs} +5 -5
- package/dist/{chunk-56QJHQ5C.cjs.map → chunk-XEEVDZDK.cjs.map} +1 -1
- package/dist/{chunk-GXODR6V4.js → chunk-XOIIUO6O.js} +3 -3
- package/dist/{chunk-GXODR6V4.js.map → chunk-XOIIUO6O.js.map} +1 -1
- package/dist/{chunk-ELYGV32O.cjs → chunk-XTHMC76F.cjs} +5 -5
- package/dist/{chunk-ELYGV32O.cjs.map → chunk-XTHMC76F.cjs.map} +1 -1
- package/dist/{chunk-FF235PKY.cjs → chunk-XWZEECEX.cjs} +3 -3
- package/dist/chunk-XWZEECEX.cjs.map +1 -0
- package/dist/{chunk-TVLZZI5Q.cjs → chunk-YJP6DUFO.cjs} +9 -9
- package/dist/{chunk-TVLZZI5Q.cjs.map → chunk-YJP6DUFO.cjs.map} +1 -1
- package/dist/{chunk-EHQ77LL5.js → chunk-ZB54MTMQ.js} +3 -3
- package/dist/{chunk-EHQ77LL5.js.map → chunk-ZB54MTMQ.js.map} +1 -1
- package/dist/components/Accordion/index.cjs +2 -2
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/Alert/index.cjs +5 -5
- package/dist/components/Alert/index.d.cts +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/AlertDialog/index.cjs +6 -5
- package/dist/components/AlertDialog/index.js +5 -4
- package/dist/components/AudioPlayer/index.cjs +6 -6
- package/dist/components/AudioPlayer/index.js +1 -1
- package/dist/components/Autocomplete/index.cjs +4 -4
- package/dist/components/Autocomplete/index.js +3 -3
- package/dist/components/Avatar/index.cjs +5 -5
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/index.d.cts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Breadcrumb/index.cjs +3 -3
- package/dist/components/Breadcrumb/index.js +1 -1
- package/dist/components/Button/index.cjs +3 -3
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Card/index.d.cts +2 -2
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/CountryCodeDropdown/index.cjs +6 -6
- package/dist/components/CountryCodeDropdown/index.d.cts +11 -1
- package/dist/components/CountryCodeDropdown/index.d.ts +11 -1
- package/dist/components/CountryCodeDropdown/index.js +3 -3
- package/dist/components/CustomizableDashboard/index.cjs +11 -11
- package/dist/components/CustomizableDashboard/index.js +4 -4
- package/dist/components/DateInput/index.cjs +4 -4
- package/dist/components/DateInput/index.js +3 -3
- package/dist/components/Dropdown/index.cjs +13 -9
- package/dist/components/Dropdown/index.d.cts +38 -2
- package/dist/components/Dropdown/index.d.ts +38 -2
- package/dist/components/Dropdown/index.js +3 -3
- package/dist/components/FloatingWindow/index.cjs +4 -4
- package/dist/components/FloatingWindow/index.js +2 -2
- package/dist/components/GlossaryTooltip/index.cjs +4 -4
- package/dist/components/GlossaryTooltip/index.js +3 -3
- package/dist/components/KeyboardShortcutsOverlay/index.cjs +6 -5
- package/dist/components/KeyboardShortcutsOverlay/index.js +4 -3
- package/dist/components/Markdown/index.cjs +19 -19
- package/dist/components/Markdown/index.js +7 -7
- package/dist/components/MediaEditor/index.cjs +15 -14
- package/dist/components/MediaEditor/index.js +10 -9
- package/dist/components/MediaPlayer/index.cjs +6 -6
- package/dist/components/MediaPlayer/index.js +3 -3
- package/dist/components/Modal/index.cjs +11 -10
- package/dist/components/Modal/index.d.cts +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.js +3 -2
- package/dist/components/Pagination/index.cjs +4 -4
- package/dist/components/Pagination/index.d.cts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/PhoneInput/index.cjs +4 -4
- package/dist/components/PhoneInput/index.js +2 -2
- package/dist/components/Progress/index.d.cts +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/QuickAction/index.cjs +6 -6
- package/dist/components/QuickAction/index.js +1 -1
- package/dist/components/RecordButton/index.d.cts +1 -1
- package/dist/components/RecordButton/index.d.ts +1 -1
- package/dist/components/RichTextEditor/index.cjs +9 -9
- package/dist/components/RichTextEditor/index.js +6 -6
- package/dist/components/SectionSpyNav/index.cjs +4 -4
- package/dist/components/SectionSpyNav/index.js +3 -3
- package/dist/components/Select/index.cjs +5 -5
- package/dist/components/Select/index.js +3 -3
- package/dist/components/Sheet/index.cjs +11 -11
- package/dist/components/Sheet/index.js +2 -2
- package/dist/components/Slider/index.cjs +5 -5
- package/dist/components/Slider/index.d.cts +2 -2
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/SourceTip/index.cjs +4 -4
- package/dist/components/SourceTip/index.js +3 -3
- package/dist/components/SuperChat/index.cjs +264 -106
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.d.cts +13 -5
- package/dist/components/SuperChat/index.d.ts +13 -5
- package/dist/components/SuperChat/index.js +255 -97
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.cjs +7 -7
- package/dist/components/SuperChat/plugins/index.cjs.map +1 -1
- package/dist/components/SuperChat/plugins/index.d.cts +2 -2
- package/dist/components/SuperChat/plugins/index.d.ts +2 -2
- package/dist/components/SuperChat/plugins/index.js +6 -6
- package/dist/components/SuperChat/plugins/index.js.map +1 -1
- package/dist/components/Text/index.d.cts +1 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/ThemeProvider/index.cjs +9 -9
- package/dist/components/ThemeProvider/index.d.cts +1 -1
- package/dist/components/ThemeProvider/index.d.ts +1 -1
- package/dist/components/ThemeProvider/index.js +3 -3
- package/dist/components/Toggle/index.d.cts +1 -1
- package/dist/components/Toggle/index.d.ts +1 -1
- package/dist/components/Tooltip/index.cjs +3 -3
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/TranscriptView/index.cjs +3 -3
- package/dist/components/TranscriptView/index.js +1 -1
- package/dist/datavis.cjs +2 -2
- package/dist/datavis.js +1 -1
- package/dist/esheet.cjs +15 -14
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.js +12 -11
- package/dist/esheet.js.map +1 -1
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +2399 -1640
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +278 -43
- package/dist/index.d.ts +278 -43
- package/dist/index.js +1296 -574
- package/dist/index.js.map +1 -1
- package/dist/motion.cjs +87 -0
- package/dist/motion.cjs.map +1 -0
- package/dist/motion.d.cts +52 -0
- package/dist/motion.d.ts +52 -0
- package/dist/motion.js +50 -0
- package/dist/motion.js.map +1 -0
- package/dist/styles/init.css +25 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/{types-BoTeTPdH.d.ts → types-9vK_YdEb.d.ts} +12 -1
- package/dist/{types-DyIB9HYT.d.cts → types-DZDroUW8.d.cts} +12 -1
- package/dist/{useAnchoredPosition-C7PNglzD.d.ts → useAnchoredPosition-CKwLSQW8.d.cts} +10 -3
- package/dist/{useAnchoredPosition-C7PNglzD.d.cts → useAnchoredPosition-CKwLSQW8.d.ts} +10 -3
- package/package.json +21 -2
- package/dist/CsvBlock-OTFG3PYZ.cjs +0 -15
- package/dist/CsvBlock-PUSTBQ5B.js +0 -6
- package/dist/HtmlPreviewBlock-QHLSIMWJ.cjs +0 -15
- package/dist/HtmlPreviewBlock-YF2YVKKX.js +0 -6
- package/dist/MermaidBlock-H3TWNC4D.js +0 -6
- package/dist/MermaidBlock-ZLLBO3VY.cjs +0 -15
- package/dist/SurveyBlock-JLHS3YQD.js +0 -6
- package/dist/SurveyBlock-M2ZRTGVJ.cjs +0 -15
- package/dist/chunk-26DPQUSB.cjs.map +0 -1
- package/dist/chunk-3PXOIAF6.js +0 -3
- package/dist/chunk-4AE2L6AO.cjs.map +0 -1
- package/dist/chunk-4PIW3Y5M.js.map +0 -1
- package/dist/chunk-5JZIDILK.cjs.map +0 -1
- package/dist/chunk-5U6GETAW.js.map +0 -1
- package/dist/chunk-6EWJGRC3.js.map +0 -1
- package/dist/chunk-7L7OPISJ.cjs.map +0 -1
- package/dist/chunk-AESFOMSH.js.map +0 -1
- package/dist/chunk-BOOJDRJO.js.map +0 -1
- package/dist/chunk-BOW7ZGI2.cjs.map +0 -1
- package/dist/chunk-D2GID3YK.js.map +0 -1
- package/dist/chunk-DG7KE4YJ.cjs.map +0 -1
- package/dist/chunk-EKRT7K2K.js.map +0 -1
- package/dist/chunk-EPQPUFS6.cjs.map +0 -1
- package/dist/chunk-FDUA6OGN.js.map +0 -1
- package/dist/chunk-FDV7EQWH.js.map +0 -1
- package/dist/chunk-FF235PKY.cjs.map +0 -1
- package/dist/chunk-H7QSGFMZ.cjs.map +0 -1
- package/dist/chunk-HK3AMH3Q.cjs.map +0 -1
- package/dist/chunk-IILJGFI5.js.map +0 -1
- package/dist/chunk-IYXCFIMP.js.map +0 -1
- package/dist/chunk-JHZW3Y62.js.map +0 -1
- package/dist/chunk-L6D4CKLV.cjs.map +0 -1
- package/dist/chunk-LZU7YBXG.js.map +0 -1
- package/dist/chunk-MYFZYUPR.cjs.map +0 -1
- package/dist/chunk-N3Y43KOB.js.map +0 -1
- package/dist/chunk-P2VTQ5AR.cjs.map +0 -1
- package/dist/chunk-RDGRKYQ5.cjs.map +0 -1
- package/dist/chunk-RYQ3S3KO.cjs.map +0 -1
- package/dist/chunk-SEPYBAML.js.map +0 -1
- package/dist/chunk-SK7H3Z67.cjs.map +0 -1
- package/dist/chunk-SPWVKDGC.cjs.map +0 -1
- package/dist/chunk-U5TTXN45.cjs.map +0 -1
- package/dist/chunk-XMCIXHGH.js.map +0 -1
- package/dist/chunk-XWYKLEKG.js.map +0 -1
- 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
|
-
- **
|
|
16
|
-
-
|
|
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.
|
|
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
|
-
|
|
|
53
|
-
|
|
|
54
|
-
| Actions
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
| Overlays
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
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
|
|
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
|
-
|
|
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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"CsvBlock-
|
|
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-
|
|
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-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-AADG7MVB.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"HtmlPreviewBlock-F5VDM2EN.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"MermaidBlock-
|
|
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-
|
|
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-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"SurveyBlock-OYL3VNU5.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"SurveyBlock-
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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