@mieweb/ui 0.10.0-dev.3 → 0.10.0-dev.30
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 +4 -4
- package/agent/mieweb-ui.instructions.md +90 -1
- package/dist/CsvBlock-FX5YNGNE.cjs +17 -0
- package/dist/{CsvBlock-ROJCKJDP.cjs.map → CsvBlock-FX5YNGNE.cjs.map} +1 -1
- package/dist/CsvBlock-VLMG7GUO.js +8 -0
- package/dist/{CsvBlock-UWPMTLE2.js.map → CsvBlock-VLMG7GUO.js.map} +1 -1
- package/dist/HtmlPreviewBlock-5JE7L3GR.js +8 -0
- package/dist/{HtmlPreviewBlock-ME5U3XNS.js.map → HtmlPreviewBlock-5JE7L3GR.js.map} +1 -1
- package/dist/HtmlPreviewBlock-UO37JQ3K.cjs +17 -0
- package/dist/{HtmlPreviewBlock-DWFN6EUB.cjs.map → HtmlPreviewBlock-UO37JQ3K.cjs.map} +1 -1
- package/dist/Input-yN516s5_.d.cts +3 -0
- package/dist/Input-yN516s5_.d.ts +3 -0
- package/dist/MermaidBlock-3XHFBAMV.js +8 -0
- package/dist/{MermaidBlock-2B6CPD6Y.js.map → MermaidBlock-3XHFBAMV.js.map} +1 -1
- package/dist/MermaidBlock-RZ75RPZA.cjs +17 -0
- package/dist/{MermaidBlock-D2UC5M55.cjs.map → MermaidBlock-RZ75RPZA.cjs.map} +1 -1
- package/dist/SurveyBlock-MUVJ3JUI.js +8 -0
- package/dist/{SurveyBlock-4DO62RBT.js.map → SurveyBlock-MUVJ3JUI.js.map} +1 -1
- package/dist/SurveyBlock-VH47YXZC.cjs +17 -0
- package/dist/{SurveyBlock-4CD4AYMJ.cjs.map → SurveyBlock-VH47YXZC.cjs.map} +1 -1
- package/dist/ag-grid.d.cts +142 -1
- package/dist/ag-grid.d.ts +142 -1
- package/dist/brands/bluehive.cjs +3 -3
- package/dist/brands/bluehive.css +3 -0
- package/dist/brands/bluehive.js +1 -1
- package/dist/brands/index.cjs +14 -14
- package/dist/brands/index.js +4 -4
- package/dist/{chunk-JYZW2PZS.cjs → chunk-254QK722.cjs} +7 -7
- package/dist/chunk-254QK722.cjs.map +1 -0
- package/dist/{chunk-VKELAMAZ.js → chunk-2JICT4A2.js} +27 -11
- package/dist/chunk-2JICT4A2.js.map +1 -0
- package/dist/{chunk-VPWJCJCX.cjs → chunk-35Y4ILCU.cjs} +7 -7
- package/dist/{chunk-VPWJCJCX.cjs.map → chunk-35Y4ILCU.cjs.map} +1 -1
- package/dist/{chunk-G3JX3UAU.cjs → chunk-3KPDQG5O.cjs} +5 -5
- package/dist/{chunk-G3JX3UAU.cjs.map → chunk-3KPDQG5O.cjs.map} +1 -1
- package/dist/{chunk-Y5HFM7LO.js → chunk-3RXZWHCU.js} +4 -4
- package/dist/{chunk-Y5HFM7LO.js.map → chunk-3RXZWHCU.js.map} +1 -1
- package/dist/chunk-3YBS4WUQ.js +52 -0
- package/dist/chunk-3YBS4WUQ.js.map +1 -0
- package/dist/{chunk-WNJRS7Y7.cjs → chunk-3ZWCIPFT.cjs} +4 -2
- package/dist/chunk-3ZWCIPFT.cjs.map +1 -0
- package/dist/chunk-4HC2IBOX.js +258 -0
- package/dist/chunk-4HC2IBOX.js.map +1 -0
- package/dist/chunk-4IS3QCOQ.cjs +453 -0
- package/dist/chunk-4IS3QCOQ.cjs.map +1 -0
- package/dist/chunk-4NCDU5IG.cjs +56 -0
- package/dist/chunk-4NCDU5IG.cjs.map +1 -0
- package/dist/{chunk-E4IBHYJ7.cjs → chunk-6N6LIAUJ.cjs} +9 -9
- package/dist/{chunk-E4IBHYJ7.cjs.map → chunk-6N6LIAUJ.cjs.map} +1 -1
- package/dist/{chunk-3M7TAXNR.js → chunk-6ZPTZTKN.js} +3 -3
- package/dist/{chunk-3M7TAXNR.js.map → chunk-6ZPTZTKN.js.map} +1 -1
- package/dist/{chunk-MWVW4APN.cjs → chunk-7UTBDFFL.cjs} +4 -4
- package/dist/{chunk-MWVW4APN.cjs.map → chunk-7UTBDFFL.cjs.map} +1 -1
- package/dist/{chunk-FJ7YPVKV.js → chunk-7X6R3JIA.js} +3 -3
- package/dist/{chunk-FJ7YPVKV.js.map → chunk-7X6R3JIA.js.map} +1 -1
- package/dist/{chunk-GOALNQZ2.js → chunk-7YO7DNUV.js} +4 -83
- package/dist/chunk-7YO7DNUV.js.map +1 -0
- package/dist/{chunk-P2CA3XGI.js → chunk-7ZV67VZE.js} +4 -4
- package/dist/{chunk-P2CA3XGI.js.map → chunk-7ZV67VZE.js.map} +1 -1
- package/dist/chunk-ADW7ZYCY.cjs +2707 -0
- package/dist/chunk-ADW7ZYCY.cjs.map +1 -0
- package/dist/{chunk-2G75X6TS.cjs → chunk-AHHFFXJR.cjs} +3 -3
- package/dist/{chunk-2G75X6TS.cjs.map → chunk-AHHFFXJR.cjs.map} +1 -1
- package/dist/{chunk-VILW53UZ.js → chunk-BIQ7GSO2.js} +3 -3
- package/dist/{chunk-VILW53UZ.js.map → chunk-BIQ7GSO2.js.map} +1 -1
- package/dist/chunk-BM35CACB.js +148 -0
- package/dist/chunk-BM35CACB.js.map +1 -0
- package/dist/chunk-BNH4SXJB.js +874 -0
- package/dist/chunk-BNH4SXJB.js.map +1 -0
- package/dist/{chunk-XEAT7XJG.cjs → chunk-BUT6MF5K.cjs} +29 -13
- package/dist/chunk-BUT6MF5K.cjs.map +1 -0
- package/dist/{chunk-UAMXCMST.cjs → chunk-CFI3TQMA.cjs} +3 -3
- package/dist/{chunk-UAMXCMST.cjs.map → chunk-CFI3TQMA.cjs.map} +1 -1
- package/dist/{chunk-J5CSLNCN.cjs → chunk-COM7RNZU.cjs} +2 -2
- package/dist/{chunk-J5CSLNCN.cjs.map → chunk-COM7RNZU.cjs.map} +1 -1
- package/dist/{chunk-XI34EGK5.cjs → chunk-CPPUT74P.cjs} +9 -9
- package/dist/{chunk-XI34EGK5.cjs.map → chunk-CPPUT74P.cjs.map} +1 -1
- package/dist/{chunk-ACCAXVOG.js → chunk-CRS2CQWM.js} +134 -56
- package/dist/chunk-CRS2CQWM.js.map +1 -0
- package/dist/{chunk-OE5CKRUC.js → chunk-D22GE27K.js} +4 -4
- package/dist/{chunk-OE5CKRUC.js.map → chunk-D22GE27K.js.map} +1 -1
- package/dist/chunk-DXEPYK3I.cjs +92 -0
- package/dist/chunk-DXEPYK3I.cjs.map +1 -0
- package/dist/{chunk-ZGRCSNPK.js → chunk-E2PBPQGS.js} +4 -4
- package/dist/{chunk-ZGRCSNPK.js.map → chunk-E2PBPQGS.js.map} +1 -1
- package/dist/{chunk-5JJ2DAE4.js → chunk-ENMXHZNE.js} +3 -3
- package/dist/{chunk-5JJ2DAE4.js.map → chunk-ENMXHZNE.js.map} +1 -1
- package/dist/{chunk-XCP454Q6.js → chunk-F4N67NAF.js} +12 -3
- package/dist/chunk-F4N67NAF.js.map +1 -0
- package/dist/chunk-FBCDYTWM.js +385 -0
- package/dist/chunk-FBCDYTWM.js.map +1 -0
- package/dist/{chunk-VU6UTJRM.js → chunk-FIKO4WR6.js} +3 -3
- package/dist/{chunk-VU6UTJRM.js.map → chunk-FIKO4WR6.js.map} +1 -1
- package/dist/{chunk-DEDN5HAG.js → chunk-FZURBQJ2.js} +3 -3
- package/dist/{chunk-DEDN5HAG.js.map → chunk-FZURBQJ2.js.map} +1 -1
- package/dist/{chunk-JHULS3EC.js → chunk-GBUVIGD5.js} +89 -3
- package/dist/chunk-GBUVIGD5.js.map +1 -0
- package/dist/chunk-GU5OS7JJ.cjs +281 -0
- package/dist/chunk-GU5OS7JJ.cjs.map +1 -0
- package/dist/{chunk-V7D3YGUV.js → chunk-GVLNXPJX.js} +4 -4
- package/dist/{chunk-V7D3YGUV.js.map → chunk-GVLNXPJX.js.map} +1 -1
- package/dist/chunk-GVM6DTR5.js +90 -0
- package/dist/chunk-GVM6DTR5.js.map +1 -0
- package/dist/{chunk-SQHMGT4W.js → chunk-GW4RFJZ5.js} +7 -7
- package/dist/chunk-GW4RFJZ5.js.map +1 -0
- package/dist/{chunk-3QEVGSFG.cjs → chunk-GYXUS65N.cjs} +5 -5
- package/dist/{chunk-3QEVGSFG.cjs.map → chunk-GYXUS65N.cjs.map} +1 -1
- package/dist/{chunk-WGPLUCBD.js → chunk-H2IAMSHK.js} +3 -3
- package/dist/{chunk-WGPLUCBD.js.map → chunk-H2IAMSHK.js.map} +1 -1
- package/dist/{chunk-JID7AZTO.cjs → chunk-H3ROMJYI.cjs} +4 -4
- package/dist/{chunk-JID7AZTO.cjs.map → chunk-H3ROMJYI.cjs.map} +1 -1
- package/dist/{chunk-GD7EBGC4.cjs → chunk-HC3NAN55.cjs} +19 -19
- package/dist/{chunk-GD7EBGC4.cjs.map → chunk-HC3NAN55.cjs.map} +1 -1
- package/dist/{chunk-7ZXAQTV4.cjs → chunk-HIZWOAWY.cjs} +8 -8
- package/dist/{chunk-7ZXAQTV4.cjs.map → chunk-HIZWOAWY.cjs.map} +1 -1
- package/dist/{chunk-NV2CWBI2.cjs → chunk-IEY3ZJIT.cjs} +12 -3
- package/dist/chunk-IEY3ZJIT.cjs.map +1 -0
- package/dist/chunk-IT775BYG.js +179 -0
- package/dist/chunk-IT775BYG.js.map +1 -0
- package/dist/chunk-IYWG72DM.js +166 -0
- package/dist/chunk-IYWG72DM.js.map +1 -0
- package/dist/{chunk-2YCERQWC.js → chunk-JBIGSP2T.js} +6 -6
- package/dist/{chunk-2YCERQWC.js.map → chunk-JBIGSP2T.js.map} +1 -1
- package/dist/{chunk-IX6KFB3K.cjs → chunk-JELTRRR5.cjs} +9 -9
- package/dist/{chunk-IX6KFB3K.cjs.map → chunk-JELTRRR5.cjs.map} +1 -1
- package/dist/{chunk-YQDA366U.js → chunk-JHG3ELS2.js} +2 -2
- package/dist/{chunk-YQDA366U.js.map → chunk-JHG3ELS2.js.map} +1 -1
- package/dist/{chunk-WWJIW2IH.cjs → chunk-JSXIB6EJ.cjs} +4 -4
- package/dist/{chunk-WWJIW2IH.cjs.map → chunk-JSXIB6EJ.cjs.map} +1 -1
- package/dist/{chunk-WNM7IZJ7.js → chunk-K34DXMLZ.js} +7 -7
- package/dist/{chunk-WNM7IZJ7.js.map → chunk-K34DXMLZ.js.map} +1 -1
- package/dist/{chunk-FXO5ARBB.cjs → chunk-KDW6BD4O.cjs} +4 -4
- package/dist/{chunk-FXO5ARBB.cjs.map → chunk-KDW6BD4O.cjs.map} +1 -1
- package/dist/{chunk-Z5V7SAZ4.js → chunk-KFEN2SRZ.js} +3 -3
- package/dist/{chunk-Z5V7SAZ4.js.map → chunk-KFEN2SRZ.js.map} +1 -1
- package/dist/{chunk-2QKBTPUC.cjs → chunk-KGKBZN3T.cjs} +8 -8
- package/dist/{chunk-2QKBTPUC.cjs.map → chunk-KGKBZN3T.cjs.map} +1 -1
- package/dist/{chunk-UV2FVNWT.cjs → chunk-LFPJ3OUM.cjs} +5 -5
- package/dist/{chunk-UV2FVNWT.cjs.map → chunk-LFPJ3OUM.cjs.map} +1 -1
- package/dist/{chunk-WNAA6CLE.cjs → chunk-LHBWRMNC.cjs} +94 -2
- package/dist/chunk-LHBWRMNC.cjs.map +1 -0
- package/dist/{chunk-JI244Y7C.js → chunk-MLAWXPRY.js} +190 -5
- package/dist/chunk-MLAWXPRY.js.map +1 -0
- package/dist/chunk-N7C4OEP7.cjs +356 -0
- package/dist/chunk-N7C4OEP7.cjs.map +1 -0
- package/dist/{chunk-WNZAYBVB.cjs → chunk-NKV76R65.cjs} +48 -48
- package/dist/{chunk-WNZAYBVB.cjs.map → chunk-NKV76R65.cjs.map} +1 -1
- package/dist/{chunk-PYJDVWXM.js → chunk-NUB5HRKS.js} +3 -3
- package/dist/{chunk-PYJDVWXM.js.map → chunk-NUB5HRKS.js.map} +1 -1
- package/dist/{chunk-LL6IWKI3.js → chunk-OW3SQJ7P.js} +3 -3
- package/dist/{chunk-LL6IWKI3.js.map → chunk-OW3SQJ7P.js.map} +1 -1
- package/dist/{chunk-5GUOOLPR.cjs → chunk-P5CMZZRZ.cjs} +5 -5
- package/dist/{chunk-5GUOOLPR.cjs.map → chunk-P5CMZZRZ.cjs.map} +1 -1
- package/dist/{chunk-3T7QGLNB.js → chunk-PJEL5ZZV.js} +4 -2
- package/dist/chunk-PJEL5ZZV.js.map +1 -0
- package/dist/{chunk-H4ZXMQQW.js → chunk-QOVJ6Z6R.js} +3 -3
- package/dist/{chunk-H4ZXMQQW.js.map → chunk-QOVJ6Z6R.js.map} +1 -1
- package/dist/{chunk-U42F3HLE.cjs → chunk-QURJVPRH.cjs} +190 -5
- package/dist/chunk-QURJVPRH.cjs.map +1 -0
- package/dist/{chunk-X4XPNTCZ.cjs → chunk-R5Z7AOVU.cjs} +136 -58
- package/dist/chunk-R5Z7AOVU.cjs.map +1 -0
- package/dist/{chunk-TMMVIUUN.js → chunk-R6KPWIGO.js} +4 -4
- package/dist/{chunk-TMMVIUUN.js.map → chunk-R6KPWIGO.js.map} +1 -1
- package/dist/{chunk-22CYDCXA.js → chunk-RM2HPQIC.js} +105 -14
- package/dist/chunk-RM2HPQIC.js.map +1 -0
- package/dist/{chunk-ENKFJJZX.js → chunk-SD7ONW6S.js} +6 -6
- package/dist/{chunk-ENKFJJZX.js.map → chunk-SD7ONW6S.js.map} +1 -1
- package/dist/{chunk-RJ6NTJHC.js → chunk-SRMTRD7F.js} +3 -3
- package/dist/{chunk-RJ6NTJHC.js.map → chunk-SRMTRD7F.js.map} +1 -1
- package/dist/chunk-T4JYUICS.js +2657 -0
- package/dist/chunk-T4JYUICS.js.map +1 -0
- package/dist/{chunk-7ZDPD5ZX.cjs → chunk-T4L7Q5FA.cjs} +7 -7
- package/dist/{chunk-7ZDPD5ZX.cjs.map → chunk-T4L7Q5FA.cjs.map} +1 -1
- package/dist/{chunk-NJ6MY6V5.js → chunk-T5BBZQ66.js} +3 -3
- package/dist/{chunk-NJ6MY6V5.js.map → chunk-T5BBZQ66.js.map} +1 -1
- package/dist/{chunk-2IZLKPUW.js → chunk-THLIL6PY.js} +3 -3
- package/dist/{chunk-2IZLKPUW.js.map → chunk-THLIL6PY.js.map} +1 -1
- package/dist/{chunk-SGFYA22I.cjs → chunk-TJCX4OML.cjs} +8 -8
- package/dist/{chunk-SGFYA22I.cjs.map → chunk-TJCX4OML.cjs.map} +1 -1
- package/dist/{chunk-N6IY47YA.cjs → chunk-TTSSUOEV.cjs} +8 -8
- package/dist/{chunk-N6IY47YA.cjs.map → chunk-TTSSUOEV.cjs.map} +1 -1
- package/dist/{chunk-5MCBWTIF.cjs → chunk-TYE5K5WV.cjs} +4 -4
- package/dist/{chunk-5MCBWTIF.cjs.map → chunk-TYE5K5WV.cjs.map} +1 -1
- package/dist/{chunk-VOKVG3ER.js → chunk-UBSH27C2.js} +4 -4
- package/dist/{chunk-VOKVG3ER.js.map → chunk-UBSH27C2.js.map} +1 -1
- package/dist/{chunk-TAXD5ADA.cjs → chunk-UEDTZYGI.cjs} +3 -3
- package/dist/{chunk-TAXD5ADA.cjs.map → chunk-UEDTZYGI.cjs.map} +1 -1
- package/dist/{chunk-UQ3VVR6A.cjs → chunk-UPWIJC6I.cjs} +3 -3
- package/dist/{chunk-UQ3VVR6A.cjs.map → chunk-UPWIJC6I.cjs.map} +1 -1
- package/dist/{chunk-S7WCHDBO.js → chunk-VCI2Y7ST.js} +3 -3
- package/dist/{chunk-S7WCHDBO.js.map → chunk-VCI2Y7ST.js.map} +1 -1
- package/dist/chunk-VINZZQBD.cjs +323 -0
- package/dist/chunk-VINZZQBD.cjs.map +1 -0
- package/dist/{chunk-OD47TTAW.cjs → chunk-VOQJHSXN.cjs} +9 -9
- package/dist/{chunk-OD47TTAW.cjs.map → chunk-VOQJHSXN.cjs.map} +1 -1
- package/dist/chunk-VPTASZ2O.cjs +171 -0
- package/dist/chunk-VPTASZ2O.cjs.map +1 -0
- package/dist/chunk-WXFGHDTV.cjs +896 -0
- package/dist/chunk-WXFGHDTV.cjs.map +1 -0
- package/dist/{chunk-VNYW4C4J.cjs → chunk-X6A27RGO.cjs} +4 -84
- package/dist/chunk-X6A27RGO.cjs.map +1 -0
- package/dist/chunk-XBTKZCZF.js +333 -0
- package/dist/chunk-XBTKZCZF.js.map +1 -0
- package/dist/chunk-XDIMTPZU.cjs +202 -0
- package/dist/chunk-XDIMTPZU.cjs.map +1 -0
- package/dist/chunk-XDU65GLW.js +21 -0
- package/dist/chunk-XDU65GLW.js.map +1 -0
- package/dist/chunk-XI74P5F2.cjs +424 -0
- package/dist/chunk-XI74P5F2.cjs.map +1 -0
- package/dist/{chunk-WIAQQNFU.cjs → chunk-XRVMYT5G.cjs} +106 -13
- package/dist/chunk-XRVMYT5G.cjs.map +1 -0
- package/dist/chunk-XVW5DPPP.js +429 -0
- package/dist/chunk-XVW5DPPP.js.map +1 -0
- package/dist/chunk-Y4E2WRUR.cjs +188 -0
- package/dist/chunk-Y4E2WRUR.cjs.map +1 -0
- package/dist/chunk-Y4QNLW7W.js +300 -0
- package/dist/chunk-Y4QNLW7W.js.map +1 -0
- package/dist/{chunk-6EN3IQQI.cjs → chunk-YRHBSSQ3.cjs} +6 -6
- package/dist/{chunk-6EN3IQQI.cjs.map → chunk-YRHBSSQ3.cjs.map} +1 -1
- package/dist/{chunk-KZFBQ7GY.js → chunk-YU55JD35.js} +3 -3
- package/dist/{chunk-KZFBQ7GY.js.map → chunk-YU55JD35.js.map} +1 -1
- package/dist/chunk-YW2AKBLS.cjs +23 -0
- package/dist/chunk-YW2AKBLS.cjs.map +1 -0
- package/dist/{chunk-ELPW32ZI.cjs → chunk-ZTMYKAVU.cjs} +45 -45
- package/dist/{chunk-ELPW32ZI.cjs.map → chunk-ZTMYKAVU.cjs.map} +1 -1
- package/dist/{chunk-3QGS6CXD.js → chunk-ZYL4SNOR.js} +3 -3
- package/dist/{chunk-3QGS6CXD.js.map → chunk-ZYL4SNOR.js.map} +1 -1
- package/dist/components/Alert/index.d.cts +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AlertDialog/index.cjs +6 -5
- package/dist/components/AlertDialog/index.d.cts +28 -3
- package/dist/components/AlertDialog/index.d.ts +28 -3
- package/dist/components/AlertDialog/index.js +5 -4
- package/dist/components/AudioRecorder/index.d.cts +2 -2
- package/dist/components/AudioRecorder/index.d.ts +2 -2
- package/dist/components/Autocomplete/index.d.cts +8 -2
- package/dist/components/Autocomplete/index.d.ts +8 -2
- package/dist/components/Avatar/index.d.cts +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/index.d.cts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BoardView/index.cjs +24 -0
- package/dist/components/BoardView/index.cjs.map +1 -0
- package/dist/components/BoardView/index.d.cts +41 -0
- package/dist/components/BoardView/index.d.ts +41 -0
- package/dist/components/BoardView/index.js +7 -0
- package/dist/components/BoardView/index.js.map +1 -0
- package/dist/components/Button/index.cjs +4 -3
- package/dist/components/Button/index.d.cts +2 -1
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/index.js +2 -1
- package/dist/components/CalendarView/index.cjs +23 -0
- package/dist/components/CalendarView/index.cjs.map +1 -0
- package/dist/components/CalendarView/index.d.cts +39 -0
- package/dist/components/CalendarView/index.d.ts +39 -0
- package/dist/components/CalendarView/index.js +10 -0
- package/dist/components/CalendarView/index.js.map +1 -0
- package/dist/components/Card/index.d.cts +3 -3
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Collapsible/index.cjs +6 -6
- package/dist/components/Collapsible/index.js +3 -3
- package/dist/components/CountryCodeDropdown/index.cjs +5 -5
- package/dist/components/CountryCodeDropdown/index.js +2 -2
- package/dist/components/CustomizableDashboard/index.cjs +10 -9
- package/dist/components/CustomizableDashboard/index.js +3 -2
- package/dist/components/Dropdown/index.cjs +10 -10
- package/dist/components/Dropdown/index.d.cts +2 -1
- package/dist/components/Dropdown/index.d.ts +2 -1
- package/dist/components/Dropdown/index.js +3 -3
- package/dist/components/FloatingWindow/index.cjs +5 -4
- package/dist/components/FloatingWindow/index.js +3 -2
- package/dist/components/GanttView/index.cjs +20 -0
- package/dist/components/GanttView/index.cjs.map +1 -0
- package/dist/components/GanttView/index.d.cts +36 -0
- package/dist/components/GanttView/index.d.ts +36 -0
- package/dist/components/GanttView/index.js +7 -0
- package/dist/components/GanttView/index.js.map +1 -0
- package/dist/components/GlossaryTooltip/index.cjs +3 -3
- package/dist/components/GlossaryTooltip/index.js +2 -2
- package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
- package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
- package/dist/components/ListView/index.cjs +23 -0
- package/dist/components/ListView/index.cjs.map +1 -0
- package/dist/components/ListView/index.d.cts +124 -0
- package/dist/components/ListView/index.d.ts +124 -0
- package/dist/components/ListView/index.js +10 -0
- package/dist/components/ListView/index.js.map +1 -0
- package/dist/components/Markdown/index.cjs +20 -19
- package/dist/components/Markdown/index.js +8 -7
- package/dist/components/MediaEditor/index.cjs +15 -14
- package/dist/components/MediaEditor/index.d.cts +91 -2
- package/dist/components/MediaEditor/index.d.ts +91 -2
- package/dist/components/MediaEditor/index.js +10 -9
- package/dist/components/MediaFeed/index.cjs +26 -0
- package/dist/components/MediaFeed/index.cjs.map +1 -0
- package/dist/components/MediaFeed/index.d.cts +104 -0
- package/dist/components/MediaFeed/index.d.ts +104 -0
- package/dist/components/MediaFeed/index.js +17 -0
- package/dist/components/MediaFeed/index.js.map +1 -0
- package/dist/components/MediaPlayer/index.cjs +7 -6
- package/dist/components/MediaPlayer/index.d.cts +19 -1
- package/dist/components/MediaPlayer/index.d.ts +19 -1
- package/dist/components/MediaPlayer/index.js +4 -3
- package/dist/components/MegaMenu/index.cjs +6 -5
- package/dist/components/MegaMenu/index.js +3 -2
- package/dist/components/Modal/index.cjs +10 -10
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Pagination/index.d.cts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PhoneInput/index.d.cts +36 -3
- package/dist/components/PhoneInput/index.d.ts +36 -3
- package/dist/components/Progress/index.d.cts +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Q/index.d.cts +2 -2
- package/dist/components/Q/index.d.ts +2 -2
- package/dist/components/QuickAction/index.d.cts +1 -1
- package/dist/components/QuickAction/index.d.ts +1 -1
- package/dist/components/RadialExplorer/index.cjs +5 -4
- package/dist/components/RadialExplorer/index.js +4 -3
- 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 -8
- package/dist/components/RichTextEditor/index.d.cts +7 -2
- package/dist/components/RichTextEditor/index.d.ts +7 -2
- package/dist/components/RichTextEditor/index.js +6 -5
- package/dist/components/ScrollArea/index.d.cts +1 -1
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/SectionSpyNav/index.cjs +4 -3
- package/dist/components/SectionSpyNav/index.js +3 -2
- package/dist/components/Select/index.cjs +4 -4
- package/dist/components/Select/index.d.cts +1 -2
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/Select/index.js +2 -2
- package/dist/components/Skeleton/index.d.cts +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/index.d.cts +2 -2
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/SliderCalculator/index.cjs +4 -4
- package/dist/components/SliderCalculator/index.js +2 -2
- package/dist/components/SourceTip/index.cjs +3 -3
- package/dist/components/SourceTip/index.js +2 -2
- package/dist/components/Spinner/index.d.cts +2 -2
- package/dist/components/Spinner/index.d.ts +2 -2
- package/dist/components/SuperChat/index.cjs +1378 -819
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.d.cts +35 -8
- package/dist/components/SuperChat/index.d.ts +35 -8
- package/dist/components/SuperChat/index.js +1370 -811
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.cjs +6 -6
- package/dist/components/SuperChat/plugins/index.d.cts +2 -3
- package/dist/components/SuperChat/plugins/index.d.ts +2 -3
- package/dist/components/SuperChat/plugins/index.js +5 -5
- package/dist/components/Text/index.d.cts +3 -3
- package/dist/components/Text/index.d.ts +3 -3
- package/dist/components/Textarea/index.d.cts +1 -2
- package/dist/components/Textarea/index.d.ts +1 -2
- package/dist/components/ThemeProvider/index.cjs +9 -9
- package/dist/components/ThemeProvider/index.d.cts +3 -1
- package/dist/components/ThemeProvider/index.d.ts +3 -1
- package/dist/components/ThemeProvider/index.js +3 -3
- package/dist/components/Tooltip/index.cjs +3 -3
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/TranscriptView/index.d.cts +85 -4
- package/dist/components/TranscriptView/index.d.ts +85 -4
- package/dist/components/ViewSet/index.cjs +24 -0
- package/dist/components/ViewSet/index.cjs.map +1 -0
- package/dist/components/ViewSet/index.d.cts +200 -0
- package/dist/components/ViewSet/index.d.ts +200 -0
- package/dist/components/ViewSet/index.js +15 -0
- package/dist/components/ViewSet/index.js.map +1 -0
- package/dist/components/ViewSwitcher/index.cjs +20 -0
- package/dist/components/ViewSwitcher/index.cjs.map +1 -0
- package/dist/components/ViewSwitcher/index.d.cts +4 -0
- package/dist/components/ViewSwitcher/index.d.ts +4 -0
- package/dist/components/ViewSwitcher/index.js +7 -0
- package/dist/components/ViewSwitcher/index.js.map +1 -0
- package/dist/datavis.cjs +3 -2
- package/dist/datavis.cjs.map +1 -1
- package/dist/datavis.d.cts +167 -13
- package/dist/datavis.d.ts +167 -13
- package/dist/datavis.js +2 -1
- package/dist/datavis.js.map +1 -1
- package/dist/deck.cjs +3360 -0
- package/dist/deck.cjs.map +1 -0
- package/dist/deck.d.cts +712 -0
- package/dist/deck.d.ts +712 -0
- package/dist/deck.js +3316 -0
- package/dist/deck.js.map +1 -0
- package/dist/esheet.cjs +14 -13
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.d.cts +183 -1
- package/dist/esheet.d.ts +183 -1
- package/dist/esheet.js +11 -10
- package/dist/esheet.js.map +1 -1
- package/dist/globe.cjs +2 -2
- package/dist/globe.js +1 -1
- package/dist/hooks/index.cjs +60 -27
- package/dist/hooks/index.d.cts +590 -31
- package/dist/hooks/index.d.ts +590 -31
- package/dist/hooks/index.js +6 -5
- package/dist/icons-wBacj6BW.d.cts +142 -0
- package/dist/icons-wBacj6BW.d.ts +142 -0
- package/dist/index-DoYYWsNc.d.cts +127 -0
- package/dist/index-DoYYWsNc.d.ts +127 -0
- package/dist/index.cjs +1420 -1048
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8796 -482
- package/dist/index.d.ts +8796 -482
- package/dist/index.js +368 -232
- package/dist/index.js.map +1 -1
- package/dist/kerebron.cjs +58 -19
- package/dist/kerebron.cjs.map +1 -1
- package/dist/kerebron.css +115 -0
- package/dist/kerebron.d.cts +37 -0
- package/dist/kerebron.d.ts +37 -0
- package/dist/kerebron.js +58 -19
- package/dist/kerebron.js.map +1 -1
- package/dist/maps.cjs +160 -0
- package/dist/maps.cjs.map +1 -0
- package/dist/maps.d.cts +42 -0
- package/dist/maps.d.ts +42 -0
- package/dist/maps.js +138 -0
- package/dist/maps.js.map +1 -0
- package/dist/motion.cjs +7 -7
- package/dist/motion.d.cts +186 -2
- package/dist/motion.d.ts +186 -2
- package/dist/motion.js +2 -2
- package/dist/q.d.cts +25 -3
- package/dist/q.d.ts +25 -3
- package/dist/styles/effects.css +133 -0
- package/dist/styles/init.css +3 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/templates.cjs +156 -0
- package/dist/templates.cjs.map +1 -0
- package/dist/templates.d.cts +734 -0
- package/dist/templates.d.ts +734 -0
- package/dist/templates.js +11 -0
- package/dist/templates.js.map +1 -0
- package/dist/types-Cx1FHLq2.d.cts +548 -0
- package/dist/types-Cx1FHLq2.d.ts +548 -0
- package/dist/types-DsdZvEI1.d.cts +92 -0
- package/dist/types-DsdZvEI1.d.ts +92 -0
- package/dist/utils/index.d.cts +13 -2
- package/dist/utils/index.d.ts +13 -2
- package/package.json +62 -13
- package/dist/Animated-XmH6k8pZ.d.cts +0 -188
- package/dist/Animated-XmH6k8pZ.d.ts +0 -188
- package/dist/CsvBlock-ROJCKJDP.cjs +0 -16
- package/dist/CsvBlock-UWPMTLE2.js +0 -7
- package/dist/HtmlPreviewBlock-DWFN6EUB.cjs +0 -16
- package/dist/HtmlPreviewBlock-ME5U3XNS.js +0 -7
- package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
- package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
- package/dist/MermaidBlock-2B6CPD6Y.js +0 -7
- package/dist/MermaidBlock-D2UC5M55.cjs +0 -16
- package/dist/SurveyBlock-4CD4AYMJ.cjs +0 -16
- package/dist/SurveyBlock-4DO62RBT.js +0 -7
- package/dist/chunk-22CYDCXA.js.map +0 -1
- package/dist/chunk-3T7QGLNB.js.map +0 -1
- package/dist/chunk-6HFFWEM3.cjs +0 -22
- package/dist/chunk-6HFFWEM3.cjs.map +0 -1
- package/dist/chunk-ACCAXVOG.js.map +0 -1
- package/dist/chunk-GOALNQZ2.js.map +0 -1
- package/dist/chunk-HB7C7NB5.js +0 -20
- package/dist/chunk-HB7C7NB5.js.map +0 -1
- package/dist/chunk-JHULS3EC.js.map +0 -1
- package/dist/chunk-JI244Y7C.js.map +0 -1
- package/dist/chunk-JYZW2PZS.cjs.map +0 -1
- package/dist/chunk-NV2CWBI2.cjs.map +0 -1
- package/dist/chunk-SQHMGT4W.js.map +0 -1
- package/dist/chunk-U42F3HLE.cjs.map +0 -1
- package/dist/chunk-VKELAMAZ.js.map +0 -1
- package/dist/chunk-VNYW4C4J.cjs.map +0 -1
- package/dist/chunk-WIAQQNFU.cjs.map +0 -1
- package/dist/chunk-WNAA6CLE.cjs.map +0 -1
- package/dist/chunk-WNJRS7Y7.cjs.map +0 -1
- package/dist/chunk-X4XPNTCZ.cjs.map +0 -1
- package/dist/chunk-XCP454Q6.js.map +0 -1
- package/dist/chunk-XEAT7XJG.cjs.map +0 -1
- package/dist/html-MdxqSzjD.d.cts +0 -13
- package/dist/html-MdxqSzjD.d.ts +0 -13
- package/dist/orderRows-BUJYgSc7.d.cts +0 -221
- package/dist/orderRows-BUJYgSc7.d.ts +0 -221
- package/dist/transcript-Cg7uSW-C.d.cts +0 -84
- package/dist/transcript-Cg7uSW-C.d.ts +0 -84
- package/dist/types-B97JNRNQ.d.cts +0 -251
- package/dist/types-CnPEwzlp.d.cts +0 -254
- package/dist/types-CnPEwzlp.d.ts +0 -254
- package/dist/types-gZXrfLj6.d.ts +0 -251
- package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
- package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
- package/dist/useTheme-B9SWu6ui.d.cts +0 -24
- package/dist/useTheme-B9SWu6ui.d.ts +0 -24
- package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
- package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
package/dist/maps.js
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { cn } from './chunk-TQONQSJO.js';
|
|
2
|
+
import './chunk-PX6F3LHL.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var OSM = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
7
|
+
var OSM_ATTRIBUTION = "© OpenStreetMap contributors";
|
|
8
|
+
var PointMap = React.forwardRef(
|
|
9
|
+
({
|
|
10
|
+
points,
|
|
11
|
+
label,
|
|
12
|
+
center = [39.8, -98.6],
|
|
13
|
+
zoom = 3,
|
|
14
|
+
minZoom = 2,
|
|
15
|
+
maxZoom = 10,
|
|
16
|
+
height = 320,
|
|
17
|
+
tileUrl = OSM,
|
|
18
|
+
attribution = OSM_ATTRIBUTION,
|
|
19
|
+
outlineUrl,
|
|
20
|
+
sizeBy = "value",
|
|
21
|
+
showValues,
|
|
22
|
+
hideList,
|
|
23
|
+
className,
|
|
24
|
+
...rest
|
|
25
|
+
}, ref) => {
|
|
26
|
+
const mapEl = React.useRef(null);
|
|
27
|
+
const [failed, setFailed] = React.useState(false);
|
|
28
|
+
const max = Math.max(1, ...points.map((p) => p.value ?? 0));
|
|
29
|
+
React.useEffect(() => {
|
|
30
|
+
const el = mapEl.current;
|
|
31
|
+
if (!el) return;
|
|
32
|
+
let map;
|
|
33
|
+
let cancelled = false;
|
|
34
|
+
import('leaflet').then(async (mod) => {
|
|
35
|
+
const leaflet = mod.default ?? mod;
|
|
36
|
+
if (cancelled) return;
|
|
37
|
+
const styles = getComputedStyle(el);
|
|
38
|
+
const colour = styles.getPropertyValue("--mieweb-primary-500").trim() || "#27aae1";
|
|
39
|
+
const line = styles.getPropertyValue("--mieweb-border").trim() || "#94a3b8";
|
|
40
|
+
map = leaflet.map(el, {
|
|
41
|
+
center,
|
|
42
|
+
zoom,
|
|
43
|
+
minZoom,
|
|
44
|
+
maxZoom,
|
|
45
|
+
scrollWheelZoom: false
|
|
46
|
+
});
|
|
47
|
+
leaflet.tileLayer(tileUrl, { attribution }).addTo(map);
|
|
48
|
+
if (outlineUrl) {
|
|
49
|
+
const data = await fetch(outlineUrl).then((r) => r.ok ? r.json() : null).catch(() => null);
|
|
50
|
+
if (data && !cancelled && map)
|
|
51
|
+
leaflet.geoJSON(data, {
|
|
52
|
+
style: { color: line, weight: 0.6, fillOpacity: 0 }
|
|
53
|
+
}).addTo(map);
|
|
54
|
+
}
|
|
55
|
+
if (cancelled || !map) return;
|
|
56
|
+
for (const p of points) {
|
|
57
|
+
const radius = sizeBy === "value" && p.value != null ? 6 + p.value / max * 22 : 6;
|
|
58
|
+
const marker = leaflet.circleMarker([p.lat, p.lng], {
|
|
59
|
+
radius,
|
|
60
|
+
color: colour,
|
|
61
|
+
weight: 2,
|
|
62
|
+
fillColor: colour,
|
|
63
|
+
fillOpacity: 0.35
|
|
64
|
+
}).addTo(map);
|
|
65
|
+
const text = [
|
|
66
|
+
p.label,
|
|
67
|
+
p.value != null ? String(p.value) : "",
|
|
68
|
+
p.detail ?? ""
|
|
69
|
+
].filter(Boolean).join(" \xB7 ");
|
|
70
|
+
if (showValues && p.value != null)
|
|
71
|
+
marker.bindTooltip(String(p.value), {
|
|
72
|
+
permanent: true,
|
|
73
|
+
direction: "center",
|
|
74
|
+
className: "mie-map-value"
|
|
75
|
+
});
|
|
76
|
+
else marker.bindTooltip(text);
|
|
77
|
+
}
|
|
78
|
+
}).catch(() => setFailed(true));
|
|
79
|
+
return () => {
|
|
80
|
+
cancelled = true;
|
|
81
|
+
map?.remove();
|
|
82
|
+
};
|
|
83
|
+
}, [points, tileUrl, attribution, outlineUrl, sizeBy, showValues]);
|
|
84
|
+
return /* @__PURE__ */ jsxs(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
ref,
|
|
88
|
+
"data-slot": "point-map",
|
|
89
|
+
className: cn("w-full", className),
|
|
90
|
+
...rest,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
ref: mapEl,
|
|
96
|
+
role: "group",
|
|
97
|
+
"aria-roledescription": "map",
|
|
98
|
+
"aria-label": label,
|
|
99
|
+
className: "bg-muted isolate w-full overflow-hidden rounded-xl",
|
|
100
|
+
style: { height },
|
|
101
|
+
children: failed && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground flex h-full items-center justify-center p-4 text-center text-sm", children: label })
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
!hideList && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap justify-center gap-x-4 gap-y-1 text-xs", children: points.map((p) => /* @__PURE__ */ jsxs(
|
|
105
|
+
"li",
|
|
106
|
+
{
|
|
107
|
+
className: "flex items-center gap-1.5",
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ jsx(
|
|
110
|
+
"span",
|
|
111
|
+
{
|
|
112
|
+
"aria-hidden": "true",
|
|
113
|
+
className: "bg-primary-500 size-2 rounded-full",
|
|
114
|
+
style: {
|
|
115
|
+
opacity: sizeBy === "value" && p.value != null ? 0.4 + p.value / max * 0.6 : 1
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
p.label,
|
|
120
|
+
p.value != null && `: ${p.value}`,
|
|
121
|
+
p.detail && /* @__PURE__ */ jsxs("span", { className: "opacity-70", children: [
|
|
122
|
+
" \xB7 ",
|
|
123
|
+
p.detail
|
|
124
|
+
] })
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
`${p.label}-${p.lat}-${p.lng}`
|
|
128
|
+
)) })
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
PointMap.displayName = "PointMap";
|
|
135
|
+
|
|
136
|
+
export { PointMap };
|
|
137
|
+
//# sourceMappingURL=maps.js.map
|
|
138
|
+
//# sourceMappingURL=maps.js.map
|
package/dist/maps.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/PointMap/PointMap.tsx"],"names":[],"mappings":"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","file":"maps.js","sourcesContent":["import * as React from 'react';\nimport type * as L from 'leaflet';\nimport { cn } from '../../utils/cn';\n\nexport interface MapPoint {\n lat: number;\n lng: number;\n label: string;\n /** Sizes the marker when `sizeBy=\"value\"`, and is shown on it. */\n value?: number;\n /** Extra line in the marker's tooltip and the list, e.g. `Austin, TX \\u00b7 Mar 2026`. */\n detail?: string;\n}\n\nexport interface PointMapProps extends React.HTMLAttributes<HTMLDivElement> {\n points: MapPoint[];\n /** Accessible name of the map; the points are also listed as text beneath it. */\n label: string;\n center?: [number, number];\n zoom?: number;\n minZoom?: number;\n maxZoom?: number;\n /** Map height in px. */\n height?: number;\n /** Raster tile template. Defaults to OpenStreetMap; use a tile service you are licensed for. */\n tileUrl?: string;\n /** Tile attribution, as the tile provider requires. */\n attribution?: string;\n /** GeoJSON URL for region outlines drawn over the tiles, e.g. US states. */\n outlineUrl?: string;\n /** `value` scales markers by `value`; `none` draws equal dots. */\n sizeBy?: 'value' | 'none';\n /** Show each point's value on its marker. */\n showValues?: boolean;\n /** Hide the text list of points under the map. */\n hideList?: boolean;\n}\n\nconst OSM = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';\nconst OSM_ATTRIBUTION = '© OpenStreetMap contributors';\n\n/**\n * Points on a Leaflet map, sized by value, with a text list of the same points\n * for screen readers and print. Needs the optional `leaflet` peer and its CSS\n * (`import 'leaflet/dist/leaflet.css'`). Client-only.\n */\nexport const PointMap = React.forwardRef<HTMLDivElement, PointMapProps>(\n (\n {\n points,\n label,\n center = [39.8, -98.6],\n zoom = 3,\n minZoom = 2,\n maxZoom = 10,\n height = 320,\n tileUrl = OSM,\n attribution = OSM_ATTRIBUTION,\n outlineUrl,\n sizeBy = 'value',\n showValues,\n hideList,\n className,\n ...rest\n },\n ref\n ) => {\n const mapEl = React.useRef<HTMLDivElement>(null);\n const [failed, setFailed] = React.useState(false);\n const max = Math.max(1, ...points.map((p) => p.value ?? 0));\n\n React.useEffect(() => {\n const el = mapEl.current;\n if (!el) return;\n let map: L.Map | undefined;\n let cancelled = false;\n import('leaflet')\n .then(async (mod) => {\n const leaflet =\n (mod as unknown as { default?: typeof L }).default ??\n (mod as typeof L);\n if (cancelled) return;\n const styles = getComputedStyle(el);\n const colour =\n styles.getPropertyValue('--mieweb-primary-500').trim() || '#27aae1';\n const line =\n styles.getPropertyValue('--mieweb-border').trim() || '#94a3b8';\n map = leaflet.map(el, {\n center,\n zoom,\n minZoom,\n maxZoom,\n scrollWheelZoom: false,\n });\n leaflet.tileLayer(tileUrl, { attribution }).addTo(map);\n if (outlineUrl) {\n const data = await fetch(outlineUrl)\n .then((r) => (r.ok ? r.json() : null))\n .catch(() => null);\n if (data && !cancelled && map)\n leaflet\n .geoJSON(data, {\n style: { color: line, weight: 0.6, fillOpacity: 0 },\n })\n .addTo(map);\n }\n if (cancelled || !map) return;\n for (const p of points) {\n const radius =\n sizeBy === 'value' && p.value != null\n ? 6 + (p.value / max) * 22\n : 6;\n const marker = leaflet\n .circleMarker([p.lat, p.lng], {\n radius,\n color: colour,\n weight: 2,\n fillColor: colour,\n fillOpacity: 0.35,\n })\n .addTo(map);\n const text = [\n p.label,\n p.value != null ? String(p.value) : '',\n p.detail ?? '',\n ]\n .filter(Boolean)\n .join(' \\u00b7 ');\n if (showValues && p.value != null)\n marker.bindTooltip(String(p.value), {\n permanent: true,\n direction: 'center',\n className: 'mie-map-value',\n });\n else marker.bindTooltip(text);\n }\n })\n .catch(() => setFailed(true));\n return () => {\n cancelled = true;\n map?.remove();\n };\n // Rebuild when the data changes; the view props only seed the map.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [points, tileUrl, attribution, outlineUrl, sizeBy, showValues]);\n\n return (\n <div\n ref={ref}\n data-slot=\"point-map\"\n className={cn('w-full', className)}\n {...rest}\n >\n <div\n ref={mapEl}\n role=\"group\"\n aria-roledescription=\"map\"\n aria-label={label}\n className=\"bg-muted isolate w-full overflow-hidden rounded-xl\"\n style={{ height }}\n >\n {failed && (\n <p className=\"text-muted-foreground flex h-full items-center justify-center p-4 text-center text-sm\">\n {label}\n </p>\n )}\n </div>\n {!hideList && (\n <ul className=\"mt-3 flex flex-wrap justify-center gap-x-4 gap-y-1 text-xs\">\n {points.map((p) => (\n <li\n key={`${p.label}-${p.lat}-${p.lng}`}\n className=\"flex items-center gap-1.5\"\n >\n <span\n aria-hidden=\"true\"\n className=\"bg-primary-500 size-2 rounded-full\"\n style={{\n opacity:\n sizeBy === 'value' && p.value != null\n ? 0.4 + (p.value / max) * 0.6\n : 1,\n }}\n />\n {p.label}\n {p.value != null && `: ${p.value}`}\n {p.detail && <span className=\"opacity-70\"> · {p.detail}</span>}\n </li>\n ))}\n </ul>\n )}\n </div>\n );\n }\n);\nPointMap.displayName = 'PointMap';\n"]}
|
package/dist/motion.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIEY3ZJIT_cjs = require('./chunk-IEY3ZJIT.cjs');
|
|
4
4
|
require('./chunk-S5RVSXDV.cjs');
|
|
5
5
|
require('./chunk-EUAMEVVI.cjs');
|
|
6
6
|
var React = require('react');
|
|
@@ -46,7 +46,7 @@ function MotionProvider({
|
|
|
46
46
|
Nav: react.m.nav,
|
|
47
47
|
Span: react.m.span,
|
|
48
48
|
Presence,
|
|
49
|
-
...
|
|
49
|
+
...chunkIEY3ZJIT_cjs.createPresetPropBuilders()
|
|
50
50
|
}),
|
|
51
51
|
[disabled]
|
|
52
52
|
);
|
|
@@ -62,26 +62,26 @@ function MotionProvider({
|
|
|
62
62
|
// A disabled provider still supplies the runtime (with `enabled: false`)
|
|
63
63
|
// rather than `null`, so consumers can distinguish "disabled" from "never
|
|
64
64
|
// opted in" — see the `enabled` contract in `runtime.ts`.
|
|
65
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.LazyMotion, { features: react.domAnimation, children: /* @__PURE__ */ jsxRuntime.jsx(react.MotionConfig, { reducedMotion, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
65
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.LazyMotion, { features: react.domAnimation, children: /* @__PURE__ */ jsxRuntime.jsx(react.MotionConfig, { reducedMotion, children: /* @__PURE__ */ jsxRuntime.jsx(chunkIEY3ZJIT_cjs.MotionRuntimeContext.Provider, { value: runtime, children }) }) })
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
MotionProvider.displayName = "MotionProvider";
|
|
69
69
|
|
|
70
70
|
Object.defineProperty(exports, "Animated", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkIEY3ZJIT_cjs.Animated; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "AnimatedPresence", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkIEY3ZJIT_cjs.AnimatedPresence; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "motionPresets", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkIEY3ZJIT_cjs.motionPresets; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "useMotionRuntime", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkIEY3ZJIT_cjs.useMotionRuntime; }
|
|
85
85
|
});
|
|
86
86
|
exports.MotionProvider = MotionProvider;
|
|
87
87
|
//# sourceMappingURL=motion.cjs.map
|
package/dist/motion.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export { A as Animated, a as AnimatedPresence, b as AnimatedProps, M as MotionEdge, c as MotionPreset, d as MotionRuntime, m as motionPresets, u as useMotionRuntime } from './Animated-XmH6k8pZ.cjs';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* `<MotionProvider>` — the opt-in switch.
|
|
@@ -49,4 +48,189 @@ declare namespace MotionProvider {
|
|
|
49
48
|
var displayName: string;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Motion presets — the shared vocabulary of animations.
|
|
53
|
+
*
|
|
54
|
+
* This module is intentionally **free of any `motion` import**. It ships in the
|
|
55
|
+
* main `@mieweb/ui` entry so components can describe *what* they animate
|
|
56
|
+
* without pulling in a runtime to actually do it. The `@mieweb/ui/motion` entry
|
|
57
|
+
* is what turns these descriptions into real animations.
|
|
58
|
+
*
|
|
59
|
+
* Every preset is expressed as an open/closed variant pair so the same
|
|
60
|
+
* definition serves both usages:
|
|
61
|
+
*
|
|
62
|
+
* - **toggle** — the element stays mounted and animates between `open` and
|
|
63
|
+
* `closed` (a drawer sliding in and out).
|
|
64
|
+
* - **presence** — the element mounts and unmounts, entering on `open` and
|
|
65
|
+
* exiting back to `closed` (a modal).
|
|
66
|
+
*/
|
|
67
|
+
/** Named animation recipes shared by components. */
|
|
68
|
+
type MotionPreset = 'drawerStart' | 'overlay' | 'modalContent' | 'sidebarLabel' | 'menu' | 'collapse' | 'toast' | 'fade' | 'pop';
|
|
69
|
+
/**
|
|
70
|
+
* A physical edge, already resolved from any logical (`start`/`end`) position
|
|
71
|
+
* and from writing direction.
|
|
72
|
+
*
|
|
73
|
+
* Presets that move an element along an axis take one of these as `custom`.
|
|
74
|
+
* Resolution is the component's job, not the preset's: only the component knows
|
|
75
|
+
* whether its `end` means right or left, and — for anything anchored — which
|
|
76
|
+
* side it actually landed on after flipping away from a viewport edge.
|
|
77
|
+
*/
|
|
78
|
+
type MotionEdge = 'top' | 'bottom' | 'left' | 'right';
|
|
79
|
+
/**
|
|
80
|
+
* A variant value. Either a plain target object or a function of the element's
|
|
81
|
+
* `custom` value — the latter lets a single preset adapt to context, e.g. a
|
|
82
|
+
* drawer flipping its off-canvas direction in RTL.
|
|
83
|
+
*/
|
|
84
|
+
type MotionVariant = Record<string, unknown> | ((custom: unknown) => Record<string, unknown>);
|
|
85
|
+
interface MotionPresetDefinition {
|
|
86
|
+
variants: {
|
|
87
|
+
open: MotionVariant;
|
|
88
|
+
closed: MotionVariant;
|
|
89
|
+
};
|
|
90
|
+
transition: Record<string, unknown>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* `custom` contract per preset:
|
|
94
|
+
*
|
|
95
|
+
* - `drawerStart` — `boolean`, whether the document direction is RTL.
|
|
96
|
+
* - `menu`, `toast` — a {@link MotionEdge}, already resolved from logical
|
|
97
|
+
* position and writing direction by the component.
|
|
98
|
+
* - `overlay`, `modalContent`, `sidebarLabel`, `collapse`, `fade`, `pop` —
|
|
99
|
+
* unused.
|
|
100
|
+
*/
|
|
101
|
+
declare const motionPresets: Record<MotionPreset, MotionPresetDefinition>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Motion runtime — the seam between components and an optional animation library.
|
|
105
|
+
*
|
|
106
|
+
* Components in the main entry never import `motion`. They ask this module for
|
|
107
|
+
* a runtime; if an app has opted in by rendering `<MotionProvider>` from
|
|
108
|
+
* `@mieweb/ui/motion`, they get one and animate. If not, `useMotionRuntime()`
|
|
109
|
+
* returns `null` and they fall back to their existing CSS transitions. That is
|
|
110
|
+
* what keeps `motion` out of the bundle of every app that hasn't asked for it —
|
|
111
|
+
* the opt-in is resolved in the *module graph*, not by a prop.
|
|
112
|
+
*
|
|
113
|
+
* Like `presets`, this module must stay free of any `motion` import.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
interface MotionPresenceProps {
|
|
117
|
+
children?: React.ReactNode;
|
|
118
|
+
/** Suppress the initial mount animation. */
|
|
119
|
+
initial?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Fires once every exiting child has finished and been removed.
|
|
122
|
+
*
|
|
123
|
+
* Needed by anything that guards the DOM while it is open — a focus trap, a
|
|
124
|
+
* scroll lock — because those guards must outlive `open` for as long as the
|
|
125
|
+
* subtree is still on screen. Never fires when no runtime is active, since
|
|
126
|
+
* there is no exit to wait for.
|
|
127
|
+
*/
|
|
128
|
+
onExitComplete?: () => void;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The capabilities a motion library must supply. Deliberately small: element
|
|
132
|
+
* factories, a presence wrapper, and prop builders. Components depend on this
|
|
133
|
+
* interface, never on a concrete library, so swapping or dropping the library
|
|
134
|
+
* stays a one-file change.
|
|
135
|
+
*/
|
|
136
|
+
interface MotionRuntime {
|
|
137
|
+
/**
|
|
138
|
+
* Whether animations should actually run.
|
|
139
|
+
*
|
|
140
|
+
* A disabled provider still supplies a runtime rather than `null` so that
|
|
141
|
+
* consumers can tell "disabled" apart from "never opted in": `Modal` uses it
|
|
142
|
+
* to decide whether an exit animation will ever report completion, and
|
|
143
|
+
* `AnimatedPresence` keeps its wrapper element stable across the flip.
|
|
144
|
+
* `Animated` itself renders the plain fallback tag whenever this is false —
|
|
145
|
+
* withholding animation props from a mounted motion component corrupts
|
|
146
|
+
* `toggle`-mode elements, so the swap (and the remount it implies) is the
|
|
147
|
+
* correct behaviour. See the render branches in `Animated`.
|
|
148
|
+
*/
|
|
149
|
+
enabled: boolean;
|
|
150
|
+
/** Animated `div`. */
|
|
151
|
+
Div: React.ElementType;
|
|
152
|
+
/** Animated `nav`. */
|
|
153
|
+
Nav: React.ElementType;
|
|
154
|
+
/** Animated `span`, for inline content that must not become a block. */
|
|
155
|
+
Span: React.ElementType;
|
|
156
|
+
/** Enables exit animations for conditionally rendered children. */
|
|
157
|
+
Presence: React.ComponentType<MotionPresenceProps>;
|
|
158
|
+
/**
|
|
159
|
+
* Props for an element that stays mounted and animates between states.
|
|
160
|
+
* Skips the initial animation so a closed drawer doesn't slide out on load.
|
|
161
|
+
*/
|
|
162
|
+
toggle: (preset: MotionPreset, open: boolean, custom?: unknown) => Record<string, unknown>;
|
|
163
|
+
/** Props for an element that mounts and unmounts inside `Presence`. */
|
|
164
|
+
presence: (preset: MotionPreset, custom?: unknown) => Record<string, unknown>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* The active motion runtime, or `null` when the app has not opted in.
|
|
168
|
+
*
|
|
169
|
+
* Components must treat `null` as the normal case and keep a CSS path that
|
|
170
|
+
* looks good on its own — motion is an enhancement, never a requirement.
|
|
171
|
+
*/
|
|
172
|
+
declare function useMotionRuntime(): MotionRuntime | null;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* `Animated` / `AnimatedPresence` — the ergonomic layer components use.
|
|
176
|
+
*
|
|
177
|
+
* These exist so an individual component never has to branch on whether motion
|
|
178
|
+
* is available. It declares the preset it wants and the CSS classes that stand
|
|
179
|
+
* in when motion is absent; this module picks the element to render.
|
|
180
|
+
*
|
|
181
|
+
* Adding motion to a further component should be a matter of swapping its
|
|
182
|
+
* root `<div>` for an `<Animated>` and naming a preset — no new imports, no
|
|
183
|
+
* new dependency, and no behavior change for apps that have not opted in.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
interface AnimatedProps extends React.HTMLAttributes<HTMLElement> {
|
|
187
|
+
/** Intrinsic element to render. */
|
|
188
|
+
as?: 'div' | 'nav' | 'span';
|
|
189
|
+
/** Which shared animation recipe to use. */
|
|
190
|
+
preset: MotionPreset;
|
|
191
|
+
/**
|
|
192
|
+
* - `toggle` — element stays mounted and animates between open and closed.
|
|
193
|
+
* - `presence` — element mounts and unmounts; wrap it in `<AnimatedPresence>`
|
|
194
|
+
* so the exit animation gets a chance to run.
|
|
195
|
+
*/
|
|
196
|
+
mode: 'toggle' | 'presence';
|
|
197
|
+
/** Current state. Only read in `toggle` mode. */
|
|
198
|
+
open?: boolean;
|
|
199
|
+
/** Per-preset context value — see the `custom` contract in `presets.ts`. */
|
|
200
|
+
custom?: unknown;
|
|
201
|
+
/**
|
|
202
|
+
* Classes applied whenever this element is **not** animating — no provider,
|
|
203
|
+
* a disabled provider, or `enabled={false}`. This is where a component's
|
|
204
|
+
* existing CSS transition lives, so the two paths never both try to drive
|
|
205
|
+
* the same property.
|
|
206
|
+
*/
|
|
207
|
+
fallbackClassName?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Set `false` to stop this element animating even when a runtime is active.
|
|
210
|
+
*
|
|
211
|
+
* For states where an animated element would be wrong rather than merely
|
|
212
|
+
* unnecessary. Motion writes a `transform` to hold an element at its resting
|
|
213
|
+
* position, and a transformed ancestor becomes the containing block for any
|
|
214
|
+
* `position: fixed` descendant — so an element that is only sometimes
|
|
215
|
+
* animated should opt out the rest of the time.
|
|
216
|
+
*
|
|
217
|
+
* Flipping this (or the provider's `disabled`) swaps the element back to a
|
|
218
|
+
* plain tag, which **remounts** it — deliberately. See the note on the
|
|
219
|
+
* render branches below.
|
|
220
|
+
*/
|
|
221
|
+
enabled?: boolean;
|
|
222
|
+
}
|
|
223
|
+
declare const Animated: React.ForwardRefExoticComponent<AnimatedProps & React.RefAttributes<HTMLElement>>;
|
|
224
|
+
/**
|
|
225
|
+
* Keeps unmounting children on screen long enough to animate out.
|
|
226
|
+
*
|
|
227
|
+
* Without a runtime this is a pass-through, so children disappear immediately —
|
|
228
|
+
* which is exactly what they do today. Children rendered conditionally inside
|
|
229
|
+
* it need a stable `key`.
|
|
230
|
+
*/
|
|
231
|
+
declare function AnimatedPresence({ children, initial, onExitComplete, }: MotionPresenceProps): React.JSX.Element;
|
|
232
|
+
declare namespace AnimatedPresence {
|
|
233
|
+
var displayName: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export { Animated, AnimatedPresence, type AnimatedProps, type MotionEdge, type MotionPreset, MotionProvider, type MotionProviderProps, type MotionRuntime, motionPresets, useMotionRuntime };
|
package/dist/motion.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export { A as Animated, a as AnimatedPresence, b as AnimatedProps, M as MotionEdge, c as MotionPreset, d as MotionRuntime, m as motionPresets, u as useMotionRuntime } from './Animated-XmH6k8pZ.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* `<MotionProvider>` — the opt-in switch.
|
|
@@ -49,4 +48,189 @@ declare namespace MotionProvider {
|
|
|
49
48
|
var displayName: string;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Motion presets — the shared vocabulary of animations.
|
|
53
|
+
*
|
|
54
|
+
* This module is intentionally **free of any `motion` import**. It ships in the
|
|
55
|
+
* main `@mieweb/ui` entry so components can describe *what* they animate
|
|
56
|
+
* without pulling in a runtime to actually do it. The `@mieweb/ui/motion` entry
|
|
57
|
+
* is what turns these descriptions into real animations.
|
|
58
|
+
*
|
|
59
|
+
* Every preset is expressed as an open/closed variant pair so the same
|
|
60
|
+
* definition serves both usages:
|
|
61
|
+
*
|
|
62
|
+
* - **toggle** — the element stays mounted and animates between `open` and
|
|
63
|
+
* `closed` (a drawer sliding in and out).
|
|
64
|
+
* - **presence** — the element mounts and unmounts, entering on `open` and
|
|
65
|
+
* exiting back to `closed` (a modal).
|
|
66
|
+
*/
|
|
67
|
+
/** Named animation recipes shared by components. */
|
|
68
|
+
type MotionPreset = 'drawerStart' | 'overlay' | 'modalContent' | 'sidebarLabel' | 'menu' | 'collapse' | 'toast' | 'fade' | 'pop';
|
|
69
|
+
/**
|
|
70
|
+
* A physical edge, already resolved from any logical (`start`/`end`) position
|
|
71
|
+
* and from writing direction.
|
|
72
|
+
*
|
|
73
|
+
* Presets that move an element along an axis take one of these as `custom`.
|
|
74
|
+
* Resolution is the component's job, not the preset's: only the component knows
|
|
75
|
+
* whether its `end` means right or left, and — for anything anchored — which
|
|
76
|
+
* side it actually landed on after flipping away from a viewport edge.
|
|
77
|
+
*/
|
|
78
|
+
type MotionEdge = 'top' | 'bottom' | 'left' | 'right';
|
|
79
|
+
/**
|
|
80
|
+
* A variant value. Either a plain target object or a function of the element's
|
|
81
|
+
* `custom` value — the latter lets a single preset adapt to context, e.g. a
|
|
82
|
+
* drawer flipping its off-canvas direction in RTL.
|
|
83
|
+
*/
|
|
84
|
+
type MotionVariant = Record<string, unknown> | ((custom: unknown) => Record<string, unknown>);
|
|
85
|
+
interface MotionPresetDefinition {
|
|
86
|
+
variants: {
|
|
87
|
+
open: MotionVariant;
|
|
88
|
+
closed: MotionVariant;
|
|
89
|
+
};
|
|
90
|
+
transition: Record<string, unknown>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* `custom` contract per preset:
|
|
94
|
+
*
|
|
95
|
+
* - `drawerStart` — `boolean`, whether the document direction is RTL.
|
|
96
|
+
* - `menu`, `toast` — a {@link MotionEdge}, already resolved from logical
|
|
97
|
+
* position and writing direction by the component.
|
|
98
|
+
* - `overlay`, `modalContent`, `sidebarLabel`, `collapse`, `fade`, `pop` —
|
|
99
|
+
* unused.
|
|
100
|
+
*/
|
|
101
|
+
declare const motionPresets: Record<MotionPreset, MotionPresetDefinition>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Motion runtime — the seam between components and an optional animation library.
|
|
105
|
+
*
|
|
106
|
+
* Components in the main entry never import `motion`. They ask this module for
|
|
107
|
+
* a runtime; if an app has opted in by rendering `<MotionProvider>` from
|
|
108
|
+
* `@mieweb/ui/motion`, they get one and animate. If not, `useMotionRuntime()`
|
|
109
|
+
* returns `null` and they fall back to their existing CSS transitions. That is
|
|
110
|
+
* what keeps `motion` out of the bundle of every app that hasn't asked for it —
|
|
111
|
+
* the opt-in is resolved in the *module graph*, not by a prop.
|
|
112
|
+
*
|
|
113
|
+
* Like `presets`, this module must stay free of any `motion` import.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
interface MotionPresenceProps {
|
|
117
|
+
children?: React.ReactNode;
|
|
118
|
+
/** Suppress the initial mount animation. */
|
|
119
|
+
initial?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Fires once every exiting child has finished and been removed.
|
|
122
|
+
*
|
|
123
|
+
* Needed by anything that guards the DOM while it is open — a focus trap, a
|
|
124
|
+
* scroll lock — because those guards must outlive `open` for as long as the
|
|
125
|
+
* subtree is still on screen. Never fires when no runtime is active, since
|
|
126
|
+
* there is no exit to wait for.
|
|
127
|
+
*/
|
|
128
|
+
onExitComplete?: () => void;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The capabilities a motion library must supply. Deliberately small: element
|
|
132
|
+
* factories, a presence wrapper, and prop builders. Components depend on this
|
|
133
|
+
* interface, never on a concrete library, so swapping or dropping the library
|
|
134
|
+
* stays a one-file change.
|
|
135
|
+
*/
|
|
136
|
+
interface MotionRuntime {
|
|
137
|
+
/**
|
|
138
|
+
* Whether animations should actually run.
|
|
139
|
+
*
|
|
140
|
+
* A disabled provider still supplies a runtime rather than `null` so that
|
|
141
|
+
* consumers can tell "disabled" apart from "never opted in": `Modal` uses it
|
|
142
|
+
* to decide whether an exit animation will ever report completion, and
|
|
143
|
+
* `AnimatedPresence` keeps its wrapper element stable across the flip.
|
|
144
|
+
* `Animated` itself renders the plain fallback tag whenever this is false —
|
|
145
|
+
* withholding animation props from a mounted motion component corrupts
|
|
146
|
+
* `toggle`-mode elements, so the swap (and the remount it implies) is the
|
|
147
|
+
* correct behaviour. See the render branches in `Animated`.
|
|
148
|
+
*/
|
|
149
|
+
enabled: boolean;
|
|
150
|
+
/** Animated `div`. */
|
|
151
|
+
Div: React.ElementType;
|
|
152
|
+
/** Animated `nav`. */
|
|
153
|
+
Nav: React.ElementType;
|
|
154
|
+
/** Animated `span`, for inline content that must not become a block. */
|
|
155
|
+
Span: React.ElementType;
|
|
156
|
+
/** Enables exit animations for conditionally rendered children. */
|
|
157
|
+
Presence: React.ComponentType<MotionPresenceProps>;
|
|
158
|
+
/**
|
|
159
|
+
* Props for an element that stays mounted and animates between states.
|
|
160
|
+
* Skips the initial animation so a closed drawer doesn't slide out on load.
|
|
161
|
+
*/
|
|
162
|
+
toggle: (preset: MotionPreset, open: boolean, custom?: unknown) => Record<string, unknown>;
|
|
163
|
+
/** Props for an element that mounts and unmounts inside `Presence`. */
|
|
164
|
+
presence: (preset: MotionPreset, custom?: unknown) => Record<string, unknown>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* The active motion runtime, or `null` when the app has not opted in.
|
|
168
|
+
*
|
|
169
|
+
* Components must treat `null` as the normal case and keep a CSS path that
|
|
170
|
+
* looks good on its own — motion is an enhancement, never a requirement.
|
|
171
|
+
*/
|
|
172
|
+
declare function useMotionRuntime(): MotionRuntime | null;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* `Animated` / `AnimatedPresence` — the ergonomic layer components use.
|
|
176
|
+
*
|
|
177
|
+
* These exist so an individual component never has to branch on whether motion
|
|
178
|
+
* is available. It declares the preset it wants and the CSS classes that stand
|
|
179
|
+
* in when motion is absent; this module picks the element to render.
|
|
180
|
+
*
|
|
181
|
+
* Adding motion to a further component should be a matter of swapping its
|
|
182
|
+
* root `<div>` for an `<Animated>` and naming a preset — no new imports, no
|
|
183
|
+
* new dependency, and no behavior change for apps that have not opted in.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
interface AnimatedProps extends React.HTMLAttributes<HTMLElement> {
|
|
187
|
+
/** Intrinsic element to render. */
|
|
188
|
+
as?: 'div' | 'nav' | 'span';
|
|
189
|
+
/** Which shared animation recipe to use. */
|
|
190
|
+
preset: MotionPreset;
|
|
191
|
+
/**
|
|
192
|
+
* - `toggle` — element stays mounted and animates between open and closed.
|
|
193
|
+
* - `presence` — element mounts and unmounts; wrap it in `<AnimatedPresence>`
|
|
194
|
+
* so the exit animation gets a chance to run.
|
|
195
|
+
*/
|
|
196
|
+
mode: 'toggle' | 'presence';
|
|
197
|
+
/** Current state. Only read in `toggle` mode. */
|
|
198
|
+
open?: boolean;
|
|
199
|
+
/** Per-preset context value — see the `custom` contract in `presets.ts`. */
|
|
200
|
+
custom?: unknown;
|
|
201
|
+
/**
|
|
202
|
+
* Classes applied whenever this element is **not** animating — no provider,
|
|
203
|
+
* a disabled provider, or `enabled={false}`. This is where a component's
|
|
204
|
+
* existing CSS transition lives, so the two paths never both try to drive
|
|
205
|
+
* the same property.
|
|
206
|
+
*/
|
|
207
|
+
fallbackClassName?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Set `false` to stop this element animating even when a runtime is active.
|
|
210
|
+
*
|
|
211
|
+
* For states where an animated element would be wrong rather than merely
|
|
212
|
+
* unnecessary. Motion writes a `transform` to hold an element at its resting
|
|
213
|
+
* position, and a transformed ancestor becomes the containing block for any
|
|
214
|
+
* `position: fixed` descendant — so an element that is only sometimes
|
|
215
|
+
* animated should opt out the rest of the time.
|
|
216
|
+
*
|
|
217
|
+
* Flipping this (or the provider's `disabled`) swaps the element back to a
|
|
218
|
+
* plain tag, which **remounts** it — deliberately. See the note on the
|
|
219
|
+
* render branches below.
|
|
220
|
+
*/
|
|
221
|
+
enabled?: boolean;
|
|
222
|
+
}
|
|
223
|
+
declare const Animated: React.ForwardRefExoticComponent<AnimatedProps & React.RefAttributes<HTMLElement>>;
|
|
224
|
+
/**
|
|
225
|
+
* Keeps unmounting children on screen long enough to animate out.
|
|
226
|
+
*
|
|
227
|
+
* Without a runtime this is a pass-through, so children disappear immediately —
|
|
228
|
+
* which is exactly what they do today. Children rendered conditionally inside
|
|
229
|
+
* it need a stable `key`.
|
|
230
|
+
*/
|
|
231
|
+
declare function AnimatedPresence({ children, initial, onExitComplete, }: MotionPresenceProps): React.JSX.Element;
|
|
232
|
+
declare namespace AnimatedPresence {
|
|
233
|
+
var displayName: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export { Animated, AnimatedPresence, type AnimatedProps, type MotionEdge, type MotionPreset, MotionProvider, type MotionProviderProps, type MotionRuntime, motionPresets, useMotionRuntime };
|
package/dist/motion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createPresetPropBuilders, MotionRuntimeContext } from './chunk-
|
|
2
|
-
export { Animated, AnimatedPresence, motionPresets, useMotionRuntime } from './chunk-
|
|
1
|
+
import { createPresetPropBuilders, MotionRuntimeContext } from './chunk-F4N67NAF.js';
|
|
2
|
+
export { Animated, AnimatedPresence, motionPresets, useMotionRuntime } from './chunk-F4N67NAF.js';
|
|
3
3
|
import './chunk-TQONQSJO.js';
|
|
4
4
|
import './chunk-PX6F3LHL.js';
|
|
5
5
|
import * as React from 'react';
|
package/dist/q.d.cts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { AgentConfigGeneratorProps, QConfig, QSchema } from '@mieweb/q';
|
|
2
4
|
export { AgentConfigGenerator, AgentConfigGeneratorProps, ConfigEditor, ConfigEditorProps, FormBuilder, FormBuilderProps, GENERIC_TOOLS, Header, HeaderProps, QConfig, QDownloadMode, QSchema, TIMEZONES, ToolBuilder, ToolBuilderProps, configToQuestionnaire, configToYaml, copyToClipboard, defaultSchema, deriveDefaultConfig, downloadConfig, questionnaireToConfig, validateConfig, yamlToConfig } from '@mieweb/q';
|
|
3
5
|
export { UniversalAgentConfigGenerator, UniversalAgentConfigGeneratorOptions, brands, generateBrandCSS } from '@mieweb/q/universal';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
interface QProps extends AgentConfigGeneratorProps {
|
|
8
|
+
/** Additional class name for the Q container. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Inline styles for the Q container. */
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Q is the agent config generator form surface.
|
|
15
|
+
*
|
|
16
|
+
* It wraps the published @mieweb/q form generator so it can be consumed through
|
|
17
|
+
* @mieweb/ui/q while keeping Q's heavier dependencies out of the main UI entry.
|
|
18
|
+
*/
|
|
19
|
+
declare function Q({ className, style, ...props }: QProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare const qTwilioAgentSchema: QSchema;
|
|
22
|
+
declare const qAgentSchema: QSchema;
|
|
23
|
+
declare const qLandingPageAgentConfig: QConfig;
|
|
24
|
+
declare function createQAgentConfig(): QConfig;
|
|
25
|
+
declare function createQTwilioAgentConfig(): QConfig;
|
|
26
|
+
|
|
27
|
+
export { Q, type QProps, createQAgentConfig, createQTwilioAgentConfig, qAgentSchema, qLandingPageAgentConfig, qTwilioAgentSchema };
|