@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
package/dist/motion.cjs
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkBN75TLUN_cjs = require('./chunk-BN75TLUN.cjs');
|
|
4
|
+
require('./chunk-S5RVSXDV.cjs');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var react = require('motion/react');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
+
|
|
29
|
+
function Presence({
|
|
30
|
+
children,
|
|
31
|
+
initial = true,
|
|
32
|
+
onExitComplete
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.AnimatePresence, { initial, onExitComplete, children });
|
|
35
|
+
}
|
|
36
|
+
function MotionProvider({
|
|
37
|
+
children,
|
|
38
|
+
disabled = false,
|
|
39
|
+
reducedMotion = "user"
|
|
40
|
+
}) {
|
|
41
|
+
const runtime = React__namespace.useMemo(
|
|
42
|
+
() => ({
|
|
43
|
+
enabled: !disabled,
|
|
44
|
+
Div: react.m.div,
|
|
45
|
+
Nav: react.m.nav,
|
|
46
|
+
Span: react.m.span,
|
|
47
|
+
Presence,
|
|
48
|
+
...chunkBN75TLUN_cjs.createPresetPropBuilders()
|
|
49
|
+
}),
|
|
50
|
+
[disabled]
|
|
51
|
+
);
|
|
52
|
+
return (
|
|
53
|
+
// `domAnimation` covers transforms, opacity and exit animations — the whole
|
|
54
|
+
// preset vocabulary — at roughly a fifth of the full bundle.
|
|
55
|
+
//
|
|
56
|
+
// Deliberately not `strict`: this provider is documented to wrap the whole
|
|
57
|
+
// app, and `strict` throws on any `motion.*` component anywhere beneath it.
|
|
58
|
+
// That would make an application's own unrelated animations fail the moment
|
|
59
|
+
// it opts in — a root-level provider has no business imposing that.
|
|
60
|
+
//
|
|
61
|
+
// A disabled provider still supplies the runtime (with `enabled: false`)
|
|
62
|
+
// rather than `null`, so consumers can distinguish "disabled" from "never
|
|
63
|
+
// opted in" — see the `enabled` contract in `runtime.ts`.
|
|
64
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.LazyMotion, { features: react.domAnimation, children: /* @__PURE__ */ jsxRuntime.jsx(react.MotionConfig, { reducedMotion, children: /* @__PURE__ */ jsxRuntime.jsx(chunkBN75TLUN_cjs.MotionRuntimeContext.Provider, { value: runtime, children }) }) })
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
MotionProvider.displayName = "MotionProvider";
|
|
68
|
+
|
|
69
|
+
Object.defineProperty(exports, "Animated", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return chunkBN75TLUN_cjs.Animated; }
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(exports, "AnimatedPresence", {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () { return chunkBN75TLUN_cjs.AnimatedPresence; }
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, "motionPresets", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () { return chunkBN75TLUN_cjs.motionPresets; }
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(exports, "useMotionRuntime", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function () { return chunkBN75TLUN_cjs.useMotionRuntime; }
|
|
84
|
+
});
|
|
85
|
+
exports.MotionProvider = MotionProvider;
|
|
86
|
+
//# sourceMappingURL=motion.cjs.map
|
|
87
|
+
//# sourceMappingURL=motion.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/motion/MotionProvider.tsx"],"names":["jsx","AnimatePresence","React","m","createPresetPropBuilders","LazyMotion","domAnimation","MotionConfig","MotionRuntimeContext"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,SAAS,QAAA,CAAS;AAAA,EAChB,QAAA;AAAA,EACA,OAAA,GAAU,IAAA;AAAA,EACV;AACF,CAAA,EAA2C;AACzC,EAAA,uBACEA,cAAA,CAACC,qBAAA,EAAA,EAAgB,OAAA,EAAkB,cAAA,EAChC,QAAA,EACH,CAAA;AAEJ;AA8BO,SAAS,cAAA,CAAe;AAAA,EAC7B,QAAA;AAAA,EACA,QAAA,GAAW,KAAA;AAAA,EACX,aAAA,GAAgB;AAClB,CAAA,EAA2C;AACzC,EAAA,MAAM,OAAA,GAAgBC,gBAAA,CAAA,OAAA;AAAA,IACpB,OAAO;AAAA,MACL,SAAS,CAAC,QAAA;AAAA,MACV,KAAKC,OAAA,CAAE,GAAA;AAAA,MACP,KAAKA,OAAA,CAAE,GAAA;AAAA,MACP,MAAMA,OAAA,CAAE,IAAA;AAAA,MACR,QAAA;AAAA,MACA,GAAGC,0CAAA;AAAyB,KAC9B,CAAA;AAAA,IACA,CAAC,QAAQ;AAAA,GACX;AAEA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAYEJ,cAAA,CAACK,gBAAA,EAAA,EAAW,QAAA,EAAUC,kBAAA,EACpB,yCAACC,kBAAA,EAAA,EAAa,aAAA,EACZ,QAAA,kBAAAP,cAAA,CAACQ,sCAAA,CAAqB,UAArB,EAA8B,KAAA,EAAO,OAAA,EACnC,QAAA,EACH,GACF,CAAA,EACF;AAAA;AAEJ;AAEA,cAAA,CAAe,WAAA,GAAc,gBAAA","file":"motion.cjs","sourcesContent":["/**\n * `<MotionProvider>` — the opt-in switch.\n *\n * This is the **only** file in the package that imports `motion`, and it is\n * reachable solely through the `@mieweb/ui/motion` entry point. An app that\n * never imports that entry never pulls the library into its bundle, which is\n * what makes this additive for existing consumers.\n *\n * ```tsx\n * import { MotionProvider } from '@mieweb/ui/motion';\n *\n * <MotionProvider>\n * <App />\n * </MotionProvider>\n * ```\n *\n * Components opted into motion upgrade automatically underneath it. Everything\n * else is untouched.\n */\n\nimport * as React from 'react';\nimport {\n AnimatePresence,\n LazyMotion,\n MotionConfig,\n domAnimation,\n m,\n} from 'motion/react';\nimport {\n MotionRuntimeContext,\n createPresetPropBuilders,\n type MotionPresenceProps,\n type MotionRuntime,\n} from './runtime';\n\n// =============================================================================\n// Presence adapter\n// =============================================================================\n\n/**\n * Narrows `AnimatePresence` to the surface `MotionRuntime` promises, so the\n * component-facing contract does not grow every time the library's API does.\n */\nfunction Presence({\n children,\n initial = true,\n onExitComplete,\n}: MotionPresenceProps): React.JSX.Element {\n return (\n <AnimatePresence initial={initial} onExitComplete={onExitComplete}>\n {children}\n </AnimatePresence>\n );\n}\n\n// =============================================================================\n// Provider\n// =============================================================================\n\nexport interface MotionProviderProps {\n children: React.ReactNode;\n /**\n * Stop animations running, putting every component on its CSS path.\n *\n * Intended for test runs: real spring animations make screenshot and\n * interaction assertions timing-dependent, and this keeps a suite\n * deterministic without having to unmount the provider.\n *\n * Flipping it at runtime swaps `Animated` elements between motion components\n * and plain tags, which remounts them and resets their local state — set it\n * once per suite rather than toggling it mid-interaction.\n */\n disabled?: boolean;\n /**\n * How to honor the OS \"reduce motion\" setting.\n *\n * Defaults to `'user'`, which drops transform and layout animations while\n * keeping opacity — the accessible default, and the reason motion should be\n * configured once at the root rather than per component.\n */\n reducedMotion?: 'user' | 'always' | 'never';\n}\n\nexport function MotionProvider({\n children,\n disabled = false,\n reducedMotion = 'user',\n}: MotionProviderProps): React.JSX.Element {\n const runtime = React.useMemo<MotionRuntime>(\n () => ({\n enabled: !disabled,\n Div: m.div,\n Nav: m.nav,\n Span: m.span,\n Presence,\n ...createPresetPropBuilders(),\n }),\n [disabled]\n );\n\n return (\n // `domAnimation` covers transforms, opacity and exit animations — the whole\n // preset vocabulary — at roughly a fifth of the full bundle.\n //\n // Deliberately not `strict`: this provider is documented to wrap the whole\n // app, and `strict` throws on any `motion.*` component anywhere beneath it.\n // That would make an application's own unrelated animations fail the moment\n // it opts in — a root-level provider has no business imposing that.\n //\n // A disabled provider still supplies the runtime (with `enabled: false`)\n // rather than `null`, so consumers can distinguish \"disabled\" from \"never\n // opted in\" — see the `enabled` contract in `runtime.ts`.\n <LazyMotion features={domAnimation}>\n <MotionConfig reducedMotion={reducedMotion}>\n <MotionRuntimeContext.Provider value={runtime}>\n {children}\n </MotionRuntimeContext.Provider>\n </MotionConfig>\n </LazyMotion>\n );\n}\n\nMotionProvider.displayName = 'MotionProvider';\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { A as Animated, a as AnimatedPresence, b as AnimatedProps, M as MotionPreset, c as MotionRuntime, m as motionPresets, u as useMotionRuntime } from './Animated-Cs-naa2g.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<MotionProvider>` — the opt-in switch.
|
|
6
|
+
*
|
|
7
|
+
* This is the **only** file in the package that imports `motion`, and it is
|
|
8
|
+
* reachable solely through the `@mieweb/ui/motion` entry point. An app that
|
|
9
|
+
* never imports that entry never pulls the library into its bundle, which is
|
|
10
|
+
* what makes this additive for existing consumers.
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { MotionProvider } from '@mieweb/ui/motion';
|
|
14
|
+
*
|
|
15
|
+
* <MotionProvider>
|
|
16
|
+
* <App />
|
|
17
|
+
* </MotionProvider>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Components opted into motion upgrade automatically underneath it. Everything
|
|
21
|
+
* else is untouched.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
interface MotionProviderProps {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Stop animations running, putting every component on its CSS path.
|
|
28
|
+
*
|
|
29
|
+
* Intended for test runs: real spring animations make screenshot and
|
|
30
|
+
* interaction assertions timing-dependent, and this keeps a suite
|
|
31
|
+
* deterministic without having to unmount the provider.
|
|
32
|
+
*
|
|
33
|
+
* Flipping it at runtime swaps `Animated` elements between motion components
|
|
34
|
+
* and plain tags, which remounts them and resets their local state — set it
|
|
35
|
+
* once per suite rather than toggling it mid-interaction.
|
|
36
|
+
*/
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* How to honor the OS "reduce motion" setting.
|
|
40
|
+
*
|
|
41
|
+
* Defaults to `'user'`, which drops transform and layout animations while
|
|
42
|
+
* keeping opacity — the accessible default, and the reason motion should be
|
|
43
|
+
* configured once at the root rather than per component.
|
|
44
|
+
*/
|
|
45
|
+
reducedMotion?: 'user' | 'always' | 'never';
|
|
46
|
+
}
|
|
47
|
+
declare function MotionProvider({ children, disabled, reducedMotion, }: MotionProviderProps): React.JSX.Element;
|
|
48
|
+
declare namespace MotionProvider {
|
|
49
|
+
var displayName: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { MotionProvider, type MotionProviderProps };
|
package/dist/motion.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { A as Animated, a as AnimatedPresence, b as AnimatedProps, M as MotionPreset, c as MotionRuntime, m as motionPresets, u as useMotionRuntime } from './Animated-Cs-naa2g.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<MotionProvider>` — the opt-in switch.
|
|
6
|
+
*
|
|
7
|
+
* This is the **only** file in the package that imports `motion`, and it is
|
|
8
|
+
* reachable solely through the `@mieweb/ui/motion` entry point. An app that
|
|
9
|
+
* never imports that entry never pulls the library into its bundle, which is
|
|
10
|
+
* what makes this additive for existing consumers.
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { MotionProvider } from '@mieweb/ui/motion';
|
|
14
|
+
*
|
|
15
|
+
* <MotionProvider>
|
|
16
|
+
* <App />
|
|
17
|
+
* </MotionProvider>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Components opted into motion upgrade automatically underneath it. Everything
|
|
21
|
+
* else is untouched.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
interface MotionProviderProps {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Stop animations running, putting every component on its CSS path.
|
|
28
|
+
*
|
|
29
|
+
* Intended for test runs: real spring animations make screenshot and
|
|
30
|
+
* interaction assertions timing-dependent, and this keeps a suite
|
|
31
|
+
* deterministic without having to unmount the provider.
|
|
32
|
+
*
|
|
33
|
+
* Flipping it at runtime swaps `Animated` elements between motion components
|
|
34
|
+
* and plain tags, which remounts them and resets their local state — set it
|
|
35
|
+
* once per suite rather than toggling it mid-interaction.
|
|
36
|
+
*/
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* How to honor the OS "reduce motion" setting.
|
|
40
|
+
*
|
|
41
|
+
* Defaults to `'user'`, which drops transform and layout animations while
|
|
42
|
+
* keeping opacity — the accessible default, and the reason motion should be
|
|
43
|
+
* configured once at the root rather than per component.
|
|
44
|
+
*/
|
|
45
|
+
reducedMotion?: 'user' | 'always' | 'never';
|
|
46
|
+
}
|
|
47
|
+
declare function MotionProvider({ children, disabled, reducedMotion, }: MotionProviderProps): React.JSX.Element;
|
|
48
|
+
declare namespace MotionProvider {
|
|
49
|
+
var displayName: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { MotionProvider, type MotionProviderProps };
|
package/dist/motion.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createPresetPropBuilders, MotionRuntimeContext } from './chunk-WYMO3IIK.js';
|
|
2
|
+
export { Animated, AnimatedPresence, motionPresets, useMotionRuntime } from './chunk-WYMO3IIK.js';
|
|
3
|
+
import './chunk-TQONQSJO.js';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { m, LazyMotion, domAnimation, MotionConfig, AnimatePresence } from 'motion/react';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function Presence({
|
|
9
|
+
children,
|
|
10
|
+
initial = true,
|
|
11
|
+
onExitComplete
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { initial, onExitComplete, children });
|
|
14
|
+
}
|
|
15
|
+
function MotionProvider({
|
|
16
|
+
children,
|
|
17
|
+
disabled = false,
|
|
18
|
+
reducedMotion = "user"
|
|
19
|
+
}) {
|
|
20
|
+
const runtime = React.useMemo(
|
|
21
|
+
() => ({
|
|
22
|
+
enabled: !disabled,
|
|
23
|
+
Div: m.div,
|
|
24
|
+
Nav: m.nav,
|
|
25
|
+
Span: m.span,
|
|
26
|
+
Presence,
|
|
27
|
+
...createPresetPropBuilders()
|
|
28
|
+
}),
|
|
29
|
+
[disabled]
|
|
30
|
+
);
|
|
31
|
+
return (
|
|
32
|
+
// `domAnimation` covers transforms, opacity and exit animations — the whole
|
|
33
|
+
// preset vocabulary — at roughly a fifth of the full bundle.
|
|
34
|
+
//
|
|
35
|
+
// Deliberately not `strict`: this provider is documented to wrap the whole
|
|
36
|
+
// app, and `strict` throws on any `motion.*` component anywhere beneath it.
|
|
37
|
+
// That would make an application's own unrelated animations fail the moment
|
|
38
|
+
// it opts in — a root-level provider has no business imposing that.
|
|
39
|
+
//
|
|
40
|
+
// A disabled provider still supplies the runtime (with `enabled: false`)
|
|
41
|
+
// rather than `null`, so consumers can distinguish "disabled" from "never
|
|
42
|
+
// opted in" — see the `enabled` contract in `runtime.ts`.
|
|
43
|
+
/* @__PURE__ */ jsx(LazyMotion, { features: domAnimation, children: /* @__PURE__ */ jsx(MotionConfig, { reducedMotion, children: /* @__PURE__ */ jsx(MotionRuntimeContext.Provider, { value: runtime, children }) }) })
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
MotionProvider.displayName = "MotionProvider";
|
|
47
|
+
|
|
48
|
+
export { MotionProvider };
|
|
49
|
+
//# sourceMappingURL=motion.js.map
|
|
50
|
+
//# sourceMappingURL=motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/motion/MotionProvider.tsx"],"names":[],"mappings":";;;;;;;AA2CA,SAAS,QAAA,CAAS;AAAA,EAChB,QAAA;AAAA,EACA,OAAA,GAAU,IAAA;AAAA,EACV;AACF,CAAA,EAA2C;AACzC,EAAA,uBACE,GAAA,CAAC,eAAA,EAAA,EAAgB,OAAA,EAAkB,cAAA,EAChC,QAAA,EACH,CAAA;AAEJ;AA8BO,SAAS,cAAA,CAAe;AAAA,EAC7B,QAAA;AAAA,EACA,QAAA,GAAW,KAAA;AAAA,EACX,aAAA,GAAgB;AAClB,CAAA,EAA2C;AACzC,EAAA,MAAM,OAAA,GAAgB,KAAA,CAAA,OAAA;AAAA,IACpB,OAAO;AAAA,MACL,SAAS,CAAC,QAAA;AAAA,MACV,KAAK,CAAA,CAAE,GAAA;AAAA,MACP,KAAK,CAAA,CAAE,GAAA;AAAA,MACP,MAAM,CAAA,CAAE,IAAA;AAAA,MACR,QAAA;AAAA,MACA,GAAG,wBAAA;AAAyB,KAC9B,CAAA;AAAA,IACA,CAAC,QAAQ;AAAA,GACX;AAEA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAYE,GAAA,CAAC,UAAA,EAAA,EAAW,QAAA,EAAU,YAAA,EACpB,8BAAC,YAAA,EAAA,EAAa,aAAA,EACZ,QAAA,kBAAA,GAAA,CAAC,oBAAA,CAAqB,UAArB,EAA8B,KAAA,EAAO,OAAA,EACnC,QAAA,EACH,GACF,CAAA,EACF;AAAA;AAEJ;AAEA,cAAA,CAAe,WAAA,GAAc,gBAAA","file":"motion.js","sourcesContent":["/**\n * `<MotionProvider>` — the opt-in switch.\n *\n * This is the **only** file in the package that imports `motion`, and it is\n * reachable solely through the `@mieweb/ui/motion` entry point. An app that\n * never imports that entry never pulls the library into its bundle, which is\n * what makes this additive for existing consumers.\n *\n * ```tsx\n * import { MotionProvider } from '@mieweb/ui/motion';\n *\n * <MotionProvider>\n * <App />\n * </MotionProvider>\n * ```\n *\n * Components opted into motion upgrade automatically underneath it. Everything\n * else is untouched.\n */\n\nimport * as React from 'react';\nimport {\n AnimatePresence,\n LazyMotion,\n MotionConfig,\n domAnimation,\n m,\n} from 'motion/react';\nimport {\n MotionRuntimeContext,\n createPresetPropBuilders,\n type MotionPresenceProps,\n type MotionRuntime,\n} from './runtime';\n\n// =============================================================================\n// Presence adapter\n// =============================================================================\n\n/**\n * Narrows `AnimatePresence` to the surface `MotionRuntime` promises, so the\n * component-facing contract does not grow every time the library's API does.\n */\nfunction Presence({\n children,\n initial = true,\n onExitComplete,\n}: MotionPresenceProps): React.JSX.Element {\n return (\n <AnimatePresence initial={initial} onExitComplete={onExitComplete}>\n {children}\n </AnimatePresence>\n );\n}\n\n// =============================================================================\n// Provider\n// =============================================================================\n\nexport interface MotionProviderProps {\n children: React.ReactNode;\n /**\n * Stop animations running, putting every component on its CSS path.\n *\n * Intended for test runs: real spring animations make screenshot and\n * interaction assertions timing-dependent, and this keeps a suite\n * deterministic without having to unmount the provider.\n *\n * Flipping it at runtime swaps `Animated` elements between motion components\n * and plain tags, which remounts them and resets their local state — set it\n * once per suite rather than toggling it mid-interaction.\n */\n disabled?: boolean;\n /**\n * How to honor the OS \"reduce motion\" setting.\n *\n * Defaults to `'user'`, which drops transform and layout animations while\n * keeping opacity — the accessible default, and the reason motion should be\n * configured once at the root rather than per component.\n */\n reducedMotion?: 'user' | 'always' | 'never';\n}\n\nexport function MotionProvider({\n children,\n disabled = false,\n reducedMotion = 'user',\n}: MotionProviderProps): React.JSX.Element {\n const runtime = React.useMemo<MotionRuntime>(\n () => ({\n enabled: !disabled,\n Div: m.div,\n Nav: m.nav,\n Span: m.span,\n Presence,\n ...createPresetPropBuilders(),\n }),\n [disabled]\n );\n\n return (\n // `domAnimation` covers transforms, opacity and exit animations — the whole\n // preset vocabulary — at roughly a fifth of the full bundle.\n //\n // Deliberately not `strict`: this provider is documented to wrap the whole\n // app, and `strict` throws on any `motion.*` component anywhere beneath it.\n // That would make an application's own unrelated animations fail the moment\n // it opts in — a root-level provider has no business imposing that.\n //\n // A disabled provider still supplies the runtime (with `enabled: false`)\n // rather than `null`, so consumers can distinguish \"disabled\" from \"never\n // opted in\" — see the `enabled` contract in `runtime.ts`.\n <LazyMotion features={domAnimation}>\n <MotionConfig reducedMotion={reducedMotion}>\n <MotionRuntimeContext.Provider value={runtime}>\n {children}\n </MotionRuntimeContext.Provider>\n </MotionConfig>\n </LazyMotion>\n );\n}\n\nMotionProvider.displayName = 'MotionProvider';\n"]}
|
package/dist/styles/init.css
CHANGED
|
@@ -174,6 +174,31 @@
|
|
|
174
174
|
/* ── Typography ────────────────────────────────────────────────────── */
|
|
175
175
|
--font-sans: var(--mieweb-font-sans, ui-sans-serif);
|
|
176
176
|
--font-mono: var(--mieweb-font-mono, ui-monospace);
|
|
177
|
+
|
|
178
|
+
/* ── Animations (Toast slide-in; mirrored via rtl: variant) ────────── */
|
|
179
|
+
--animate-slide-in-right: slide-in-right 300ms ease-out;
|
|
180
|
+
--animate-slide-in-left: slide-in-left 300ms ease-out;
|
|
181
|
+
|
|
182
|
+
@keyframes slide-in-right {
|
|
183
|
+
0% {
|
|
184
|
+
transform: translateX(100%);
|
|
185
|
+
opacity: 0;
|
|
186
|
+
}
|
|
187
|
+
100% {
|
|
188
|
+
transform: translateX(0);
|
|
189
|
+
opacity: 1;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
@keyframes slide-in-left {
|
|
193
|
+
0% {
|
|
194
|
+
transform: translateX(-100%);
|
|
195
|
+
opacity: 0;
|
|
196
|
+
}
|
|
197
|
+
100% {
|
|
198
|
+
transform: translateX(0);
|
|
199
|
+
opacity: 1;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
177
202
|
}
|
|
178
203
|
|
|
179
204
|
/* ── BlueHive Brand Tokens (Default) ─────────────────────────────────── */
|