@ctzhian/tiptap 2.3.2 → 2.3.3
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/dist/Editor/demo.js +1 -1
- package/dist/component/CustomFloatingMenu/index.js +1 -1
- package/dist/component/Toolbar/EditorInsert/index.js +1 -1
- package/dist/contants/enums.js +8 -8
- package/dist/contants/slash-commands.js +1 -1
- package/dist/extension/node/FileHandler.d.ts +1 -1
- package/dist/extension/node/Table.js +1 -1
- package/dist/index.css +5 -5
- package/dist/themes/componentStyleOverrides.d.ts +0 -283
- package/dist/themes/componentStyleOverrides.js +0 -284
- package/dist/themes/dark.d.ts +2 -6
- package/dist/themes/dark.js +2 -6
- package/dist/themes/index.d.ts +15 -0
- package/dist/themes/light.d.ts +2 -6
- package/dist/themes/light.js +2 -6
- package/dist/themes/palette.d.ts +2 -6
- package/package.json +1 -1
package/dist/Editor/demo.js
CHANGED
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import "../index.css";
|
|
9
9
|
var EDITABLE = true;
|
|
10
10
|
var DEFAULT_CONTENT_TYPE = 'html';
|
|
11
|
-
var DEFAULT_HTML_CONTENT = "<p></p>\n<iframe class=\"iframe-wrapper\" width=\"50%\" height=\"400\" data-type=\"iframe\" data-align=\"right\" src=\"//player.bilibili.com/player.html?isOutside=true&aid=115377065630872&bvid=BV1SQ4izBERf&cid=33090306788&p=1\" frameborder=\"0\" allowfullscreen=\"true\" autoplay=\"0\" loop=\"0\"></iframe>\n<table style=\"min-width: 400px;\"><colgroup><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"></colgroup><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\">\n <table style=\"min-width: 200px;\"><colgroup><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"></colgroup><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td></tr></tbody></table>\n</td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td></tr></tbody></table>\n<table style=\"min-width: 200px;\"><colgroup><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"></colgroup><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td></tr></tbody></table>\n<ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u653E\u5047\u6740\u4EBA\u7684\u65B9\u5F0F\u963F\u51E1\u8FBE</p></li><li><p>\u53D1\u70E7\u5927\u6DA6\u53D1\u770B\u89C1</p><ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u53D1\u5C31\u7B97\u4E86\u5FEB\u9012\u8D39</p><ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u653E\u5047\u554A\u4F46\u662F\u4F60\u770B\u653E\u5047\u554A\u867D\u7136\u653E</p></li></ol></li></ol></li></ol>\n<ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u5BB6\u53F2\u4F60\u7684\u770B\u6CD5</p></li><li><p>\u53D1\u751F\u7684\u6FC0\u70C8\u53CD\u6297\u5565\u7684\u5C31\u53D1\u7684\u662F\u653E\u5047\u4E86</p><ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u70E7\u7684\u798F\u5229\u80AF\u5B9A\u6492\u9152\u75AF\u90A3\u53EF\u662F\u6253\u98DE\u673A\u554A\u662F\u4F60\u7684\u5BA2\u670D\u5C31\u662F\u5927\u6DA6\u53D1</p></li><li><p>\u53D1\u751F\u7684\u6D6A\u8D39\u7A7A\u95F4\u5565\u7684\u5357\u65B9\u5DE8\u517D\u9F99\u7684\u770B\u6CD5\u9759\u5B89\u5BFA\u5E97\u7406\u53D1\u5E08\u89E3\u653E\u4E1C\u8DEF</p><ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u751F\u7684\u53D1\u53D1\u987A\u4E30\u90A3\u53EF\u662F\u6253\u98DE\u673A\u554A\u867D\u7136\u5BA2\u670D</p></li></ul></li></ul></li></ul>\n<ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u5565\u7684</p></div></li><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"true\"><label><input type=\"checkbox\" checked=\"checked\"><span></span></label><div><p>\u53D1\u5565\u5446\u4F60</p><ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u5927\u4E86</p><ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u7684\u65F6\u95F4\u6765\u770B</p></div></li></ul></div></li></ul></div></li></ul>\n<pre data-title=\"\u5B89\u88C5\u76EE\u5F55\"><code>var a = 1;</code></pre>\n<p><img src=\"https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg\" width=\"100\"></p>\n<p><img src=\"https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg\" width=\"100\"></p>\n<h6 id=\"4b8d8c4e-29dc-4674-928b-b9ded0e363ae\" data-toc-id=\"4b8d8c4e-29dc-4674-928b-b9ded0e363ae\"><span data-name=\"watch\" data-type=\"emoji\">\u231A</span> \u8868\u683C\u64CD\u4F5C</h6>\n<table><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u94FE\u63A5</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u590D\u6742\u6587\u672C</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u56FE\u7247</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u9644\u4EF6</p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><a target=\"_blank\" class=\"MuiBox-root css-1ivg9gg\" type=\"icon\" rel=\"noopener noreferrer\" title=\"\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C\" href=\"http://localhost:8000/components/editor\">\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C</a></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><code>\u77E5</code><span style=\"background-color: rgb(255, 204, 188); color: rgb(90, 141, 218);\">\u529B</span><span style=\"color: rgb(90, 141, 218);\">\u4F9B</span><sup>\u5386</sup><sub>\u53F2</sub><u>\u52A8</u><s>\u5927</s><span style=\"background-color: rgb(172, 84, 84);\">\u501F</span><mark>\u7B54</mark></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><img src=\"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg\" width=\"100\"></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA.txt\" data-size=\"18.27 KB\"></span></p></td></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" controls=\"true\" width=\"75%\"></video></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p><audio src=\"http://vjs.zencdn.net/v/oceans.mp4\" controls=\"true\"></audio></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p></td></tr></tbody></table>\n<p><img src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" width=\"100\"></p>\n<h6 id=\"a025f782-910f-4f17-9d0b-8f31f9cde175\" data-toc-id=\"a025f782-910f-4f17-9d0b-8f31f9cde175\"><span data-name=\"page_facing_up\" data-type=\"emoji\">\uD83D\uDCC4</span> \u6587\u672C\u5904\u7406</h6>\n<p>PandaWiki \u662F\u4E00\u6B3E AI \u5927\u6A21<code>\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D</code>\u5EFA\u7CFB\u7EDF\uFF0CF<strong>AQ \u3001 \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI </strong>\u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u501F<span style=\"color: rgb(90, 141, 218);\">\u52A9\u5927\u6A21\u578B\u7684</span><span style=\"background-color: rgb(255, 204, 188); color: rgb(90, 141, 218);\">\u529B\u91CF\u4E3A\u4F60\u63D0</span><span style=\"color: rgb(90, 141, 218);\">\u4F9B AI \u521B</span>\u4F5C\u80FD\u529B\u3002PandaWiki \u662F<u>\u4E00\u6B3E AI \u5927\u6A21\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D\u5EFA\u7CFB\u7EDF\uFF0C\u5E2E</u>\u52A9\u4F60\u5FEB\u901F\u6784\u5EFA\u667A\u80FD\u5316\u7684 <s><u>\u4EA7\u54C1\u6587\u6863\u3001\u6280\u672F</u></s>\u6587\u6863\u3001FAQ \u3001<s> \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684</s>\u529B\u91CF\u7CFB\u7EDF \uFF0C<span style=\"background-color: rgb(172, 84, 84);\">\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE</span>\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u7684\u529B\u91CF\u4E3A<mark>\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001</mark> AI \u641C\u7D22\u3002</p>\n<a target=\"_blank\" type=\"block\" href=\"http://localhost:8000/components/editor\" title=\"\u770B\u98CE\u666F\">\u770B\u98CE\u666F</a>\n<h6>\uD83D\uDCCE \u9644\u4EF6</h6>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA\uFF1F\u8C01\u662F\u6211\u4EEC\u7684\u670B\u53CB\uFF1F\u8FD9\u4E2A\u95EE\u9898\u662F\u9769\u547D\u7684\u9996\u8981\u95EE\u9898\u3002\u4E2D\u56FD\u8FC7\u53BB\u4E00\u5207\u9769\u547D\u6597\u4E89\u6210.txt\" data-size=\"18.27 KB\"></div>\n<p>\u884C\u5185\u9644\u4EF6\uFF1A<span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"font_4856251_qynqqohzdp.js\" data-size=\"412.34 KB\"></span><span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u96F7\u6C60\u9879\u76EE\u8BBE\u8BA1\u65B9\u6848.docx\" data-size=\"635.74 KB\"></span></p>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"b0f4a3e0-639f-4c09-ab33-ea9417939f87.tiff\" data-size=\"3.03 MB\"></div>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u957F\u4EAD\u79D1\u6280\u516C\u53F8\u4ECB\u7ECDPPT-25.07.007_\u526F\u672C.pptx\" data-size=\"40.18 MB\"></div>\n<h6><span data-name=\"loudspeaker\" data-type=\"emoji\">\uD83D\uDCE2</span> \u97F3\u9891</h6>\n<audio src=\"http://vjs.zencdn.net/v/oceans.mp4\" controls=\"true\"></audio>\n<h6 id=\"1739ed5e-f03c-4c2f-b763-37505601c935\" data-toc-id=\"1739ed5e-f03c-4c2f-b763-37505601c935\"><span data-name=\"video_camera\" data-type=\"emoji\">\uD83D\uDCF9</span> \u89C6\u9891</h6>\n<video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" controls=\"true\" width=\"400\" data-align=\"center\"></video>\n<h6 id=\"746ea233-0e30-44a6-849a-090202217299\" data-toc-id=\"746ea233-0e30-44a6-849a-090202217299\">\u26A0\uFE0F \u8B66\u544A\u5757</h6>\n<div data-id=\"alert_5ysakwbhvqv\" data-variant=\"warning\" data-type=\"icon\" data-node=\"alert\"><p>\u6B64\u65F6\u8FD9\u662F\u4E00\u4E2A\u8B66\u544A\u5757\u3002</p></div>\n<h6 id=\"ebb64062-9efb-4de8-887f-7f8b7f9e54ca\" data-toc-id=\"ebb64062-9efb-4de8-887f-7f8b7f9e54ca\"><span data-name=\"bar_chart\" data-type=\"emoji\">\uD83D\uDCCA</span> \u6D41\u7A0B\u56FE\u64CD\u4F5C</h6>\n<div data-type=\"flow\" data-code=\"mindmap\n root((mindmap))\n Origins\n Long history\n ::icon(fa fa-book)\n Popularisation\n British popular psychology author Tony Buzan\n Research\n On effectiveness<br/>and features\n On Automatic creation\n Uses\n Creative techniques\n Strategic planning\n Argument mapping\n Tools\n Pen and paper\n Mermaid\" data-width=\"246px\"></div>\n";
|
|
11
|
+
var DEFAULT_HTML_CONTENT = "<p></p>\n<table style=\"min-width: 400px;\"><colgroup><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"></colgroup><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\">\n <table style=\"min-width: 200px;\"><colgroup><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"></colgroup><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td></tr></tbody></table>\n</td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td></tr></tbody></table>\n<table style=\"min-width: 200px;\"><colgroup><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"></colgroup><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p></p></td></tr></tbody></table>\n<ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u653E\u5047\u6740\u4EBA\u7684\u65B9\u5F0F\u963F\u51E1\u8FBE</p></li><li><p>\u53D1\u70E7\u5927\u6DA6\u53D1\u770B\u89C1</p><ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u53D1\u5C31\u7B97\u4E86\u5FEB\u9012\u8D39</p><ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u653E\u5047\u554A\u4F46\u662F\u4F60\u770B\u653E\u5047\u554A\u867D\u7136\u653E</p></li></ol></li></ol></li></ol>\n<ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u5BB6\u53F2\u4F60\u7684\u770B\u6CD5</p></li><li><p>\u53D1\u751F\u7684\u6FC0\u70C8\u53CD\u6297\u5565\u7684\u5C31\u53D1\u7684\u662F\u653E\u5047\u4E86</p><ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u70E7\u7684\u798F\u5229\u80AF\u5B9A\u6492\u9152\u75AF\u90A3\u53EF\u662F\u6253\u98DE\u673A\u554A\u662F\u4F60\u7684\u5BA2\u670D\u5C31\u662F\u5927\u6DA6\u53D1</p></li><li><p>\u53D1\u751F\u7684\u6D6A\u8D39\u7A7A\u95F4\u5565\u7684\u5357\u65B9\u5DE8\u517D\u9F99\u7684\u770B\u6CD5\u9759\u5B89\u5BFA\u5E97\u7406\u53D1\u5E08\u89E3\u653E\u4E1C\u8DEF</p><ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u751F\u7684\u53D1\u53D1\u987A\u4E30\u90A3\u53EF\u662F\u6253\u98DE\u673A\u554A\u867D\u7136\u5BA2\u670D</p></li></ul></li></ul></li></ul>\n<ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u5565\u7684</p></div></li><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"true\"><label><input type=\"checkbox\" checked=\"checked\"><span></span></label><div><p>\u53D1\u5565\u5446\u4F60</p><ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u5927\u4E86</p><ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u7684\u65F6\u95F4\u6765\u770B</p></div></li></ul></div></li></ul></div></li></ul>\n<pre data-title=\"\u5B89\u88C5\u76EE\u5F55\"><code>var a = 1;</code></pre>\n<p><img src=\"https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg\" width=\"100\"></p>\n<p><img src=\"https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg\" width=\"100\"></p>\n<h6 id=\"4b8d8c4e-29dc-4674-928b-b9ded0e363ae\" data-toc-id=\"4b8d8c4e-29dc-4674-928b-b9ded0e363ae\"><span data-name=\"watch\" data-type=\"emoji\">\u231A</span> \u8868\u683C\u64CD\u4F5C</h6>\n<table><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u94FE\u63A5</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u590D\u6742\u6587\u672C</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u56FE\u7247</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u9644\u4EF6</p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><a target=\"_blank\" class=\"MuiBox-root css-1ivg9gg\" type=\"icon\" rel=\"noopener noreferrer\" title=\"\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C\" href=\"http://localhost:8000/components/editor\">\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C</a></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><code>\u77E5</code><span style=\"background-color: rgb(255, 204, 188); color: rgb(90, 141, 218);\">\u529B</span><span style=\"color: rgb(90, 141, 218);\">\u4F9B</span><sup>\u5386</sup><sub>\u53F2</sub><u>\u52A8</u><s>\u5927</s><span style=\"background-color: rgb(172, 84, 84);\">\u501F</span><mark>\u7B54</mark></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><img src=\"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg\" width=\"100\"></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA.txt\" data-size=\"18.27 KB\"></span></p></td></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" controls=\"true\" width=\"75%\"></video></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p><audio src=\"http://vjs.zencdn.net/v/oceans.mp4\" controls=\"true\"></audio></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p></td></tr></tbody></table>\n<p><img src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" width=\"100\"></p>\n<h6 id=\"a025f782-910f-4f17-9d0b-8f31f9cde175\" data-toc-id=\"a025f782-910f-4f17-9d0b-8f31f9cde175\"><span data-name=\"page_facing_up\" data-type=\"emoji\">\uD83D\uDCC4</span> \u6587\u672C\u5904\u7406</h6>\n<p>PandaWiki \u662F\u4E00\u6B3E AI \u5927\u6A21<code>\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D</code>\u5EFA\u7CFB\u7EDF\uFF0CF<strong>AQ \u3001 \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI </strong>\u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u501F<span style=\"color: rgb(90, 141, 218);\">\u52A9\u5927\u6A21\u578B\u7684</span><span style=\"background-color: rgb(255, 204, 188); color: rgb(90, 141, 218);\">\u529B\u91CF\u4E3A\u4F60\u63D0</span><span style=\"color: rgb(90, 141, 218);\">\u4F9B AI \u521B</span>\u4F5C\u80FD\u529B\u3002PandaWiki \u662F<u>\u4E00\u6B3E AI \u5927\u6A21\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D\u5EFA\u7CFB\u7EDF\uFF0C\u5E2E</u>\u52A9\u4F60\u5FEB\u901F\u6784\u5EFA\u667A\u80FD\u5316\u7684 <s><u>\u4EA7\u54C1\u6587\u6863\u3001\u6280\u672F</u></s>\u6587\u6863\u3001FAQ \u3001<s> \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684</s>\u529B\u91CF\u7CFB\u7EDF \uFF0C<span style=\"background-color: rgb(172, 84, 84);\">\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE</span>\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u7684\u529B\u91CF\u4E3A<mark>\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001</mark> AI \u641C\u7D22\u3002</p>\n<a target=\"_blank\" type=\"block\" href=\"http://localhost:8000/components/editor\" title=\"\u770B\u98CE\u666F\">\u770B\u98CE\u666F</a>\n<h6>\uD83D\uDCCE \u9644\u4EF6</h6>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA\uFF1F\u8C01\u662F\u6211\u4EEC\u7684\u670B\u53CB\uFF1F\u8FD9\u4E2A\u95EE\u9898\u662F\u9769\u547D\u7684\u9996\u8981\u95EE\u9898\u3002\u4E2D\u56FD\u8FC7\u53BB\u4E00\u5207\u9769\u547D\u6597\u4E89\u6210.txt\" data-size=\"18.27 KB\"></div>\n<p>\u884C\u5185\u9644\u4EF6\uFF1A<span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"font_4856251_qynqqohzdp.js\" data-size=\"412.34 KB\"></span><span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u96F7\u6C60\u9879\u76EE\u8BBE\u8BA1\u65B9\u6848.docx\" data-size=\"635.74 KB\"></span></p>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"b0f4a3e0-639f-4c09-ab33-ea9417939f87.tiff\" data-size=\"3.03 MB\"></div>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u957F\u4EAD\u79D1\u6280\u516C\u53F8\u4ECB\u7ECDPPT-25.07.007_\u526F\u672C.pptx\" data-size=\"40.18 MB\"></div>\n<h6><span data-name=\"loudspeaker\" data-type=\"emoji\">\uD83D\uDCE2</span> \u97F3\u9891</h6>\n<audio src=\"http://vjs.zencdn.net/v/oceans.mp4\" controls=\"true\"></audio>\n<h6 id=\"1739ed5e-f03c-4c2f-b763-37505601c935\" data-toc-id=\"1739ed5e-f03c-4c2f-b763-37505601c935\"><span data-name=\"video_camera\" data-type=\"emoji\">\uD83D\uDCF9</span> \u89C6\u9891</h6>\n<video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" controls=\"true\" width=\"400\" data-align=\"center\"></video>\n<h6 id=\"746ea233-0e30-44a6-849a-090202217299\" data-toc-id=\"746ea233-0e30-44a6-849a-090202217299\">\u26A0\uFE0F \u8B66\u544A\u5757</h6>\n<div data-id=\"alert_5ysakwbhvqv\" data-variant=\"warning\" data-type=\"icon\" data-node=\"alert\"><p>\u6B64\u65F6\u8FD9\u662F\u4E00\u4E2A\u8B66\u544A\u5757\u3002</p></div>\n<h6 id=\"ebb64062-9efb-4de8-887f-7f8b7f9e54ca\" data-toc-id=\"ebb64062-9efb-4de8-887f-7f8b7f9e54ca\"><span data-name=\"bar_chart\" data-type=\"emoji\">\uD83D\uDCCA</span> \u6D41\u7A0B\u56FE\u64CD\u4F5C</h6>\n<div data-type=\"flow\" data-code=\"mindmap\n root((mindmap))\n Origins\n Long history\n ::icon(fa fa-book)\n Popularisation\n British popular psychology author Tony Buzan\n Research\n On effectiveness<br/>and features\n On Automatic creation\n Uses\n Creative techniques\n Strategic planning\n Argument mapping\n Tools\n Pen and paper\n Mermaid\" data-width=\"246px\"></div>\n";
|
|
12
12
|
var DEFAULT_MARKDOWN_CONTENT = "###### :page_facing_up: \u6587\u672C\u5904\u7406\n\nPandaWiki \u662F\u4E00\u6B3E AI \u5927\u6A21`\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D`\u5EFA\u7CFB\u7EDF\uFF0CF**AQ \u3001 \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI **\u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI \u521B\u4F5C\u80FD\u529B\u3002PandaWiki \u662F++\u4E00\u6B3E AI \u5927\u6A21\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D\u5EFA\u7CFB\u7EDF\uFF0C\u5E2E++\u52A9\u4F60\u5FEB\u901F\u6784\u5EFA\u667A\u80FD\u5316\u7684 ++~~\u4EA7\u54C1\u6587\u6863\u3001\u6280\u672F~~++\u6587\u6863\u3001FAQ \u3001~~ \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684~~\u529B\u91CF\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u7684\u529B\u91CF\u4E3A==\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001== AI \u641C\u7D22\u3002\n\n###### :video_camera: \u89C6\u9891\n\n<video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" width=\"400\" controls ></video>\n\n###### \u26A0\uFE0F \u8B66\u544A\u5757\n\n:::alert {#alert_5ysakwbhvqv indent=\"0\" variant=\"warning\" type=\"icon\"}\n\n\u6B64\u65F6\u8FD9\u662F\u4E00\u4E2A\u8B66\u544A\u5757\u3002\n\n:::\n\n###### :bar_chart: \u6D41\u7A0B\u56FE\u64CD\u4F5C\n\n```mermaid\nmindmap\n root((mindmap))\n Origins\n Long history\n ::icon(fa fa-book)\n Popularisation\n British popular psychology author Tony Buzan\n Research\n On effectiveness<br/>and features\n On Automatic creation\n Uses\n Creative techniques\n Strategic planning\n Argument mapping\n Tools\n Pen and paper\n Mermaid\n```\n\n###### :watch: \u8868\u683C\u64CD\u4F5C\n\n\n| \u94FE\u63A5 | \u590D\u6742\u6587\u672C | \u56FE\u7247 | \u9644\u4EF6 |\n| ------------------------------------------------------------------------------------------- | --------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| [\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C](http://localhost:8000/components/editor) | `\u77E5`\u529B\u4F9B^\u5386^~\u53F2~++\u52A8++~~\u5927~~\u501F==\u7B54== |  | <a href=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" target=\"_blank\" download=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA.txt\">\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA.txt</a> |\n| <video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" width=\"75%\" controls ></video> | \x1F | | |\n\n\n";
|
|
13
13
|
var Reader = function Reader() {
|
|
14
14
|
// @ts-ignore
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
// <ToolItem
|
|
69
69
|
// icon={<Table2Icon />}
|
|
70
70
|
// size='small'
|
|
71
|
-
// onClick={() => editor.chain().focus().insertTable({ rows: 3, cols: 4, withHeaderRow:
|
|
71
|
+
// onClick={() => editor.chain().focus().insertTable({ rows: 3, cols: 4, withHeaderRow: false }).run()}
|
|
72
72
|
// isActive={editor.isActive('table')}
|
|
73
73
|
// />
|
|
74
74
|
// <ToolItem
|
package/dist/contants/enums.js
CHANGED
|
@@ -144,28 +144,28 @@ export var getThemeTextBgColor = function getThemeTextBgColor(theme) {
|
|
|
144
144
|
value: '#f8f8f7'
|
|
145
145
|
}, {
|
|
146
146
|
label: '棕色背景',
|
|
147
|
-
value: '#
|
|
147
|
+
value: '#f9f2f2'
|
|
148
148
|
}, {
|
|
149
149
|
label: '橙色背景',
|
|
150
|
-
value: '#
|
|
150
|
+
value: '#fef3e6'
|
|
151
151
|
}, {
|
|
152
152
|
label: '黄色背景',
|
|
153
|
-
value: '#
|
|
153
|
+
value: '#fffce8'
|
|
154
154
|
}, {
|
|
155
155
|
label: '绿色背景',
|
|
156
|
-
value: '#
|
|
156
|
+
value: '#edfdf3'
|
|
157
157
|
}, {
|
|
158
158
|
label: '蓝色背景',
|
|
159
|
-
value: '#
|
|
159
|
+
value: '#eef6ff'
|
|
160
160
|
}, {
|
|
161
161
|
label: '紫色背景',
|
|
162
|
-
value: '#
|
|
162
|
+
value: '#f8f0ff'
|
|
163
163
|
}, {
|
|
164
164
|
label: '粉色背景',
|
|
165
|
-
value: '#
|
|
165
|
+
value: '#fff5fa'
|
|
166
166
|
}, {
|
|
167
167
|
label: '红色背景',
|
|
168
|
-
value: '#
|
|
168
|
+
value: '#ffecef'
|
|
169
169
|
}];
|
|
170
170
|
};
|
|
171
171
|
export var IframeTypeEnums = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UploadFunction } from "../../type";
|
|
2
2
|
export declare const FileHandlerExtension: (props: {
|
|
3
3
|
onUpload?: UploadFunction;
|
|
4
|
-
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "
|
|
4
|
+
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "key" | "editor">, any>;
|
package/dist/index.css
CHANGED
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
table-layout: fixed;
|
|
360
360
|
overflow: hidden;
|
|
361
361
|
caption-side: top;
|
|
362
|
-
border-left: 1px dotted var(--mui-palette-
|
|
362
|
+
border-left: 1px dotted var(--mui-palette-table-cell-border);
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
.tiptap.ProseMirror table p {
|
|
@@ -374,8 +374,8 @@
|
|
|
374
374
|
.tiptap.ProseMirror table td,
|
|
375
375
|
.tiptap.ProseMirror table th {
|
|
376
376
|
border: none;
|
|
377
|
-
border-bottom: 1px solid var(--mui-palette-
|
|
378
|
-
border-right: 1px dotted var(--mui-palette-
|
|
377
|
+
border-bottom: 1px solid var(--mui-palette-table-cell-border);
|
|
378
|
+
border-right: 1px dotted var(--mui-palette-table-cell-border);
|
|
379
379
|
box-sizing: border-box;
|
|
380
380
|
padding: 12px 16px;
|
|
381
381
|
position: relative;
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
|
|
387
387
|
.tiptap.ProseMirror table tbody tr:first-child th,
|
|
388
388
|
.tiptap.ProseMirror table tbody tr:first-child td {
|
|
389
|
-
border-top: 1px solid var(--mui-palette-
|
|
389
|
+
border-top: 1px solid var(--mui-palette-table-cell-border);
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
.tiptap.ProseMirror table td>*,
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
text-transform: uppercase;
|
|
400
400
|
letter-spacing: 0.5px;
|
|
401
401
|
text-align: left;
|
|
402
|
-
background-color: var(--mui-palette-background
|
|
402
|
+
background-color: var(--mui-palette-table-head-background);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
.tiptap.ProseMirror[contenteditable="true"] table .selectedCell * {
|
|
@@ -1,32 +1,5 @@
|
|
|
1
1
|
import { type ThemeColor } from './color';
|
|
2
2
|
export default function componentStyleOverrides(color: ThemeColor): {
|
|
3
|
-
MuiTabs: {
|
|
4
|
-
styleOverrides: {
|
|
5
|
-
root: {
|
|
6
|
-
borderRadius: string;
|
|
7
|
-
overflow: string;
|
|
8
|
-
minHeight: string;
|
|
9
|
-
height: string;
|
|
10
|
-
padding: string;
|
|
11
|
-
};
|
|
12
|
-
indicator: {
|
|
13
|
-
borderRadius: string;
|
|
14
|
-
overflow: string;
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
MuiTab: {
|
|
20
|
-
styleOverrides: {
|
|
21
|
-
root: {
|
|
22
|
-
borderRadius: string;
|
|
23
|
-
fontWeight: string;
|
|
24
|
-
fontSize: string;
|
|
25
|
-
lineHeight: string;
|
|
26
|
-
padding: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
3
|
MuiButton: {
|
|
31
4
|
styleOverrides: {
|
|
32
5
|
root: ({ ownerState }: {
|
|
@@ -76,142 +49,6 @@ export default function componentStyleOverrides(color: ThemeColor): {
|
|
|
76
49
|
};
|
|
77
50
|
};
|
|
78
51
|
};
|
|
79
|
-
MuiFormHelperText: {
|
|
80
|
-
styleOverrides: {
|
|
81
|
-
root: {
|
|
82
|
-
color: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
MuiFormControl: {
|
|
87
|
-
styleOverrides: {
|
|
88
|
-
root: {
|
|
89
|
-
'.MuiFormLabel-asterisk': {
|
|
90
|
-
color: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
MuiFormControlLabel: {
|
|
96
|
-
styleOverrides: {
|
|
97
|
-
root: {
|
|
98
|
-
marginLeft: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
MuiTableBody: {
|
|
103
|
-
styleOverrides: {
|
|
104
|
-
root: {
|
|
105
|
-
'.MuiTableRow-root:hover': {
|
|
106
|
-
'.MuiTableCell-root:not(.cx-table-empty-td)': {
|
|
107
|
-
backgroundColor: string;
|
|
108
|
-
overflowX: string;
|
|
109
|
-
'.primary-color': {
|
|
110
|
-
color: string;
|
|
111
|
-
};
|
|
112
|
-
'.no-title-url': {
|
|
113
|
-
color: string;
|
|
114
|
-
};
|
|
115
|
-
'.error-color': {
|
|
116
|
-
opacity: number;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
MuiCheckbox: {
|
|
124
|
-
styleOverrides: {
|
|
125
|
-
root: {
|
|
126
|
-
padding: number;
|
|
127
|
-
svg: {
|
|
128
|
-
fontSize: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
MuiTableCell: {
|
|
134
|
-
styleOverrides: {
|
|
135
|
-
root: {
|
|
136
|
-
background: string;
|
|
137
|
-
lineHeight: number;
|
|
138
|
-
fontSize: string;
|
|
139
|
-
paddingTop: string;
|
|
140
|
-
paddingBottom: string;
|
|
141
|
-
paddingLeft: number;
|
|
142
|
-
'&:first-of-type': {
|
|
143
|
-
paddingLeft: string;
|
|
144
|
-
};
|
|
145
|
-
'&:not(:first-of-type)': {
|
|
146
|
-
paddingLeft: string;
|
|
147
|
-
};
|
|
148
|
-
'.MuiCheckbox-root': {
|
|
149
|
-
color: string;
|
|
150
|
-
svg: {
|
|
151
|
-
fontSize: string;
|
|
152
|
-
};
|
|
153
|
-
'&.Mui-checked': {
|
|
154
|
-
color: string;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
head: {
|
|
159
|
-
backgroundColor: string;
|
|
160
|
-
color: string;
|
|
161
|
-
fontSize: string;
|
|
162
|
-
paddingTop: string;
|
|
163
|
-
paddingBottom: string;
|
|
164
|
-
borderSpacing: string;
|
|
165
|
-
zIndex: number;
|
|
166
|
-
};
|
|
167
|
-
body: {
|
|
168
|
-
borderBottom: string;
|
|
169
|
-
borderColor: string;
|
|
170
|
-
borderSpacing: string;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
MuiPopover: {
|
|
175
|
-
styleOverrides: {
|
|
176
|
-
paper: {
|
|
177
|
-
borderRadius: string;
|
|
178
|
-
boxShadow: string;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
MuiMenu: {
|
|
183
|
-
styleOverrides: {
|
|
184
|
-
paper: {
|
|
185
|
-
padding: string;
|
|
186
|
-
borderRadius: string;
|
|
187
|
-
backgroundColor: string;
|
|
188
|
-
boxShadow: string;
|
|
189
|
-
};
|
|
190
|
-
list: {
|
|
191
|
-
paddingTop: string;
|
|
192
|
-
paddingBottom: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
defaultProps: {
|
|
196
|
-
elevation: number;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
MuiMenuItem: {
|
|
200
|
-
styleOverrides: {
|
|
201
|
-
root: {
|
|
202
|
-
height: string;
|
|
203
|
-
borderRadius: string;
|
|
204
|
-
':hover': {
|
|
205
|
-
backgroundColor: string;
|
|
206
|
-
};
|
|
207
|
-
'&.Mui-selected': {
|
|
208
|
-
fontWeight: string;
|
|
209
|
-
backgroundColor: string;
|
|
210
|
-
color: string;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
52
|
MuiPaper: {
|
|
216
53
|
defaultProps: {
|
|
217
54
|
elevation: number;
|
|
@@ -227,83 +64,6 @@ export default function componentStyleOverrides(color: ThemeColor): {
|
|
|
227
64
|
};
|
|
228
65
|
};
|
|
229
66
|
};
|
|
230
|
-
MuiAppBar: {
|
|
231
|
-
defaultProps: {
|
|
232
|
-
elevation: number;
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
MuiDialog: {
|
|
236
|
-
styleOverrides: {
|
|
237
|
-
root: {
|
|
238
|
-
'h2.MuiTypography-root button': {
|
|
239
|
-
marginRight: string;
|
|
240
|
-
};
|
|
241
|
-
'.MuiDialogActions-root': {
|
|
242
|
-
paddingTop: string;
|
|
243
|
-
button: {
|
|
244
|
-
width: string;
|
|
245
|
-
height: string;
|
|
246
|
-
};
|
|
247
|
-
'.MuiButton-text': {
|
|
248
|
-
width: string;
|
|
249
|
-
minWidth: string;
|
|
250
|
-
color: string;
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
container: {
|
|
255
|
-
height: string;
|
|
256
|
-
bgcolor: string;
|
|
257
|
-
backdropFilter: string;
|
|
258
|
-
};
|
|
259
|
-
paper: {
|
|
260
|
-
pb: number;
|
|
261
|
-
border: string;
|
|
262
|
-
borderColor: string;
|
|
263
|
-
borderRadius: string;
|
|
264
|
-
backgroundColor: string;
|
|
265
|
-
textarea: {
|
|
266
|
-
borderRadius: string;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
MuiDialogTitle: {
|
|
272
|
-
styleOverrides: {
|
|
273
|
-
root: {
|
|
274
|
-
paddingTop: string;
|
|
275
|
-
'> button': {
|
|
276
|
-
top: string;
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
MuiAlert: {
|
|
282
|
-
styleOverrides: {
|
|
283
|
-
root: {
|
|
284
|
-
lineHeight: string;
|
|
285
|
-
paddingTop: string;
|
|
286
|
-
paddingBottom: string;
|
|
287
|
-
borderRadius: string;
|
|
288
|
-
boxShadow: string;
|
|
289
|
-
};
|
|
290
|
-
icon: {
|
|
291
|
-
padding: string;
|
|
292
|
-
};
|
|
293
|
-
standardInfo: {
|
|
294
|
-
backgroundColor: string;
|
|
295
|
-
color: string;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
MuiRadio: {
|
|
300
|
-
styleOverrides: {
|
|
301
|
-
root: {
|
|
302
|
-
padding: number;
|
|
303
|
-
paddingRight: string;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
67
|
MuiTextField: {
|
|
308
68
|
styleOverrides: {
|
|
309
69
|
root: {
|
|
@@ -319,47 +79,4 @@ export default function componentStyleOverrides(color: ThemeColor): {
|
|
|
319
79
|
};
|
|
320
80
|
};
|
|
321
81
|
};
|
|
322
|
-
MuiInputBase: {
|
|
323
|
-
styleOverrides: {
|
|
324
|
-
root: {
|
|
325
|
-
borderRadius: string;
|
|
326
|
-
backgroundColor: string;
|
|
327
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
328
|
-
borderColor: string;
|
|
329
|
-
borderWidth: string;
|
|
330
|
-
};
|
|
331
|
-
'&.Mui-focused': {
|
|
332
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
333
|
-
borderColor: string;
|
|
334
|
-
borderWidth: string;
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
|
-
'&:hover': {
|
|
338
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
339
|
-
borderColor: string;
|
|
340
|
-
borderWidth: string;
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
input: {
|
|
344
|
-
height: string;
|
|
345
|
-
'&.Mui-disabled': {
|
|
346
|
-
color: string;
|
|
347
|
-
WebkitTextFillColor: string;
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
MuiSelect: {
|
|
354
|
-
styleOverrides: {
|
|
355
|
-
root: {
|
|
356
|
-
height: string;
|
|
357
|
-
borderRadius: string;
|
|
358
|
-
backgroundColor: string;
|
|
359
|
-
};
|
|
360
|
-
select: {
|
|
361
|
-
paddingRight: string;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
82
|
};
|
|
@@ -5,36 +5,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { addOpacityToColor } from "../util";
|
|
8
|
-
import { custom } from "./color";
|
|
9
8
|
export default function componentStyleOverrides(color) {
|
|
10
9
|
return {
|
|
11
|
-
MuiTabs: {
|
|
12
|
-
styleOverrides: {
|
|
13
|
-
root: {
|
|
14
|
-
borderRadius: '10px !important',
|
|
15
|
-
overflow: 'hidden',
|
|
16
|
-
minHeight: '36px',
|
|
17
|
-
height: '36px',
|
|
18
|
-
padding: '0px !important'
|
|
19
|
-
},
|
|
20
|
-
indicator: {
|
|
21
|
-
borderRadius: '0px !important',
|
|
22
|
-
overflow: 'hidden',
|
|
23
|
-
backgroundColor: '#21222D !important'
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
MuiTab: {
|
|
28
|
-
styleOverrides: {
|
|
29
|
-
root: {
|
|
30
|
-
borderRadius: '0px !important',
|
|
31
|
-
fontWeight: 'normal',
|
|
32
|
-
fontSize: '14px !important',
|
|
33
|
-
lineHeight: '34px',
|
|
34
|
-
padding: '0 16px !important'
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
10
|
MuiButton: {
|
|
39
11
|
styleOverrides: {
|
|
40
12
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -100,142 +72,6 @@ export default function componentStyleOverrides(color) {
|
|
|
100
72
|
}
|
|
101
73
|
}
|
|
102
74
|
},
|
|
103
|
-
MuiFormHelperText: {
|
|
104
|
-
styleOverrides: {
|
|
105
|
-
root: {
|
|
106
|
-
color: color.error.main
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
MuiFormControl: {
|
|
111
|
-
styleOverrides: {
|
|
112
|
-
root: {
|
|
113
|
-
'.MuiFormLabel-asterisk': {
|
|
114
|
-
color: color.error.main
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
MuiFormControlLabel: {
|
|
120
|
-
styleOverrides: {
|
|
121
|
-
root: {
|
|
122
|
-
marginLeft: '0 !important'
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
MuiTableBody: {
|
|
127
|
-
styleOverrides: {
|
|
128
|
-
root: {
|
|
129
|
-
'.MuiTableRow-root:hover': {
|
|
130
|
-
'.MuiTableCell-root:not(.cx-table-empty-td)': {
|
|
131
|
-
backgroundColor: color.table.row.hoverColor,
|
|
132
|
-
overflowX: 'hidden',
|
|
133
|
-
'.primary-color': {
|
|
134
|
-
color: color.primary.main
|
|
135
|
-
},
|
|
136
|
-
'.no-title-url': {
|
|
137
|
-
color: "".concat(color.primary.main, " !important")
|
|
138
|
-
},
|
|
139
|
-
'.error-color': {
|
|
140
|
-
opacity: 1
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
MuiCheckbox: {
|
|
148
|
-
styleOverrides: {
|
|
149
|
-
root: {
|
|
150
|
-
padding: 0,
|
|
151
|
-
svg: {
|
|
152
|
-
fontSize: '18px'
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
MuiTableCell: {
|
|
158
|
-
styleOverrides: {
|
|
159
|
-
root: {
|
|
160
|
-
background: color.background.paper,
|
|
161
|
-
lineHeight: 1.5,
|
|
162
|
-
fontSize: '14px',
|
|
163
|
-
paddingTop: '16px !important',
|
|
164
|
-
paddingBottom: '16px !important',
|
|
165
|
-
paddingLeft: 0,
|
|
166
|
-
'&:first-of-type': {
|
|
167
|
-
paddingLeft: '0px'
|
|
168
|
-
},
|
|
169
|
-
'&:not(:first-of-type)': {
|
|
170
|
-
paddingLeft: '0px'
|
|
171
|
-
},
|
|
172
|
-
'.MuiCheckbox-root': {
|
|
173
|
-
color: '#CCCCCC',
|
|
174
|
-
svg: {
|
|
175
|
-
fontSize: '16px'
|
|
176
|
-
},
|
|
177
|
-
'&.Mui-checked': {
|
|
178
|
-
color: color.text.primary
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
head: {
|
|
183
|
-
backgroundColor: color.background.paper3,
|
|
184
|
-
color: color.table.head.color,
|
|
185
|
-
fontSize: '12px',
|
|
186
|
-
paddingTop: '0 !important',
|
|
187
|
-
paddingBottom: '0 !important',
|
|
188
|
-
borderSpacing: '12px',
|
|
189
|
-
zIndex: 100
|
|
190
|
-
},
|
|
191
|
-
body: {
|
|
192
|
-
borderBottom: '1px dashed',
|
|
193
|
-
borderColor: color.table.cell.borderColor,
|
|
194
|
-
borderSpacing: '12px'
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
MuiPopover: {
|
|
199
|
-
styleOverrides: {
|
|
200
|
-
paper: {
|
|
201
|
-
borderRadius: '10px',
|
|
202
|
-
boxShadow: custom.selectPopupBoxShadow
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
MuiMenu: {
|
|
207
|
-
styleOverrides: {
|
|
208
|
-
paper: {
|
|
209
|
-
padding: '4px',
|
|
210
|
-
borderRadius: '10px',
|
|
211
|
-
backgroundColor: color.background.paper,
|
|
212
|
-
boxShadow: custom.selectPopupBoxShadow
|
|
213
|
-
},
|
|
214
|
-
list: {
|
|
215
|
-
paddingTop: '0px !important',
|
|
216
|
-
paddingBottom: '0px !important'
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
defaultProps: {
|
|
220
|
-
elevation: 0
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
MuiMenuItem: {
|
|
224
|
-
styleOverrides: {
|
|
225
|
-
root: {
|
|
226
|
-
height: '40px',
|
|
227
|
-
borderRadius: '5px',
|
|
228
|
-
':hover': {
|
|
229
|
-
backgroundColor: color.background.paper3
|
|
230
|
-
},
|
|
231
|
-
'&.Mui-selected': {
|
|
232
|
-
fontWeight: '500',
|
|
233
|
-
backgroundColor: "".concat(custom.selectedMenuItemBgColor, " !important"),
|
|
234
|
-
color: color.primary.main
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
75
|
MuiPaper: {
|
|
240
76
|
defaultProps: {
|
|
241
77
|
elevation: 1
|
|
@@ -253,83 +89,6 @@ export default function componentStyleOverrides(color) {
|
|
|
253
89
|
}
|
|
254
90
|
}
|
|
255
91
|
},
|
|
256
|
-
MuiAppBar: {
|
|
257
|
-
defaultProps: {
|
|
258
|
-
elevation: 1
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
MuiDialog: {
|
|
262
|
-
styleOverrides: {
|
|
263
|
-
root: {
|
|
264
|
-
'h2.MuiTypography-root button': {
|
|
265
|
-
marginRight: '2px'
|
|
266
|
-
},
|
|
267
|
-
'.MuiDialogActions-root': {
|
|
268
|
-
paddingTop: '24px',
|
|
269
|
-
button: {
|
|
270
|
-
width: '88px',
|
|
271
|
-
height: '36px !important'
|
|
272
|
-
},
|
|
273
|
-
'.MuiButton-text': {
|
|
274
|
-
width: 'auto',
|
|
275
|
-
minWidth: 'auto',
|
|
276
|
-
color: "".concat(color.text.primary, " !important")
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
container: {
|
|
281
|
-
height: '100vh',
|
|
282
|
-
bgcolor: color.text.secondary,
|
|
283
|
-
backdropFilter: 'blur(5px)'
|
|
284
|
-
},
|
|
285
|
-
paper: {
|
|
286
|
-
pb: 1,
|
|
287
|
-
border: '1px solid',
|
|
288
|
-
borderColor: color.divider,
|
|
289
|
-
borderRadius: '10px',
|
|
290
|
-
backgroundColor: color.background.paper,
|
|
291
|
-
textarea: {
|
|
292
|
-
borderRadius: '8px 8px 0 8px'
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
MuiDialogTitle: {
|
|
298
|
-
styleOverrides: {
|
|
299
|
-
root: {
|
|
300
|
-
paddingTop: '24px',
|
|
301
|
-
'> button': {
|
|
302
|
-
top: '20px'
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
MuiAlert: {
|
|
308
|
-
styleOverrides: {
|
|
309
|
-
root: {
|
|
310
|
-
lineHeight: '22px',
|
|
311
|
-
paddingTop: '1px',
|
|
312
|
-
paddingBottom: '1px',
|
|
313
|
-
borderRadius: '10px',
|
|
314
|
-
boxShadow: 'none'
|
|
315
|
-
},
|
|
316
|
-
icon: {
|
|
317
|
-
padding: '10px 0'
|
|
318
|
-
},
|
|
319
|
-
standardInfo: {
|
|
320
|
-
backgroundColor: addOpacityToColor(color.primary.main, 0.1),
|
|
321
|
-
color: color.text.primary
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
MuiRadio: {
|
|
326
|
-
styleOverrides: {
|
|
327
|
-
root: {
|
|
328
|
-
padding: 0,
|
|
329
|
-
paddingRight: '8px'
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
92
|
MuiTextField: {
|
|
334
93
|
styleOverrides: {
|
|
335
94
|
root: {
|
|
@@ -344,49 +103,6 @@ export default function componentStyleOverrides(color) {
|
|
|
344
103
|
}
|
|
345
104
|
}
|
|
346
105
|
}
|
|
347
|
-
},
|
|
348
|
-
MuiInputBase: {
|
|
349
|
-
styleOverrides: {
|
|
350
|
-
root: {
|
|
351
|
-
borderRadius: '10px !important',
|
|
352
|
-
backgroundColor: color.background.paper3,
|
|
353
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
354
|
-
borderColor: "".concat(color.background.paper3, " !important"),
|
|
355
|
-
borderWidth: '1px !important'
|
|
356
|
-
},
|
|
357
|
-
'&.Mui-focused': {
|
|
358
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
359
|
-
borderColor: "".concat(color.text.primary, " !important"),
|
|
360
|
-
borderWidth: '1px !important'
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
'&:hover': {
|
|
364
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
365
|
-
borderColor: "".concat(color.text.primary, " !important"),
|
|
366
|
-
borderWidth: '1px !important'
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
input: {
|
|
370
|
-
height: '19px',
|
|
371
|
-
'&.Mui-disabled': {
|
|
372
|
-
color: "".concat(color.text.secondary, " !important"),
|
|
373
|
-
WebkitTextFillColor: "".concat(color.text.secondary, " !important")
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
MuiSelect: {
|
|
380
|
-
styleOverrides: {
|
|
381
|
-
root: {
|
|
382
|
-
height: '36px',
|
|
383
|
-
borderRadius: '10px !important',
|
|
384
|
-
backgroundColor: color.background.paper3
|
|
385
|
-
},
|
|
386
|
-
select: {
|
|
387
|
-
paddingRight: '0 !important'
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
106
|
}
|
|
391
107
|
};
|
|
392
108
|
}
|
package/dist/themes/dark.d.ts
CHANGED
|
@@ -67,14 +67,10 @@ declare const dark: {
|
|
|
67
67
|
shadows: string;
|
|
68
68
|
table: {
|
|
69
69
|
head: {
|
|
70
|
-
|
|
71
|
-
color: string;
|
|
72
|
-
};
|
|
73
|
-
row: {
|
|
74
|
-
hoverColor: string;
|
|
70
|
+
background: string;
|
|
75
71
|
};
|
|
76
72
|
cell: {
|
|
77
|
-
|
|
73
|
+
border: string;
|
|
78
74
|
};
|
|
79
75
|
};
|
|
80
76
|
charts: {
|
package/dist/themes/dark.js
CHANGED
|
@@ -67,14 +67,10 @@ var dark = {
|
|
|
67
67
|
shadows: 'transparent',
|
|
68
68
|
table: {
|
|
69
69
|
head: {
|
|
70
|
-
|
|
71
|
-
color: '#fff'
|
|
72
|
-
},
|
|
73
|
-
row: {
|
|
74
|
-
hoverColor: 'rgba(255, 255, 255, 0.05)'
|
|
70
|
+
background: '#292929'
|
|
75
71
|
},
|
|
76
72
|
cell: {
|
|
77
|
-
|
|
73
|
+
border: '#434343'
|
|
78
74
|
}
|
|
79
75
|
},
|
|
80
76
|
charts: {
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -11,6 +11,21 @@ declare module '@mui/material/Button' {
|
|
|
11
11
|
neutral: true;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
declare module '@mui/material/styles' {
|
|
15
|
+
interface PaletteOptions {
|
|
16
|
+
table?: Partial<TypeTable>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
declare module '@mui/material/styles' {
|
|
20
|
+
interface TypeTable {
|
|
21
|
+
head: {
|
|
22
|
+
background: string;
|
|
23
|
+
};
|
|
24
|
+
cell: {
|
|
25
|
+
border: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
14
29
|
export declare const theme: <T extends string = "light" | "dark">({ mode, colors, theme: customTheme, }: {
|
|
15
30
|
mode: T;
|
|
16
31
|
colors?: Record<T, any> | undefined;
|
package/dist/themes/light.d.ts
CHANGED
|
@@ -68,14 +68,10 @@ declare const light: {
|
|
|
68
68
|
shadows: string;
|
|
69
69
|
table: {
|
|
70
70
|
head: {
|
|
71
|
-
|
|
72
|
-
color: string;
|
|
73
|
-
};
|
|
74
|
-
row: {
|
|
75
|
-
hoverColor: string;
|
|
71
|
+
background: string;
|
|
76
72
|
};
|
|
77
73
|
cell: {
|
|
78
|
-
|
|
74
|
+
border: string;
|
|
79
75
|
};
|
|
80
76
|
};
|
|
81
77
|
charts: {
|
package/dist/themes/light.js
CHANGED
|
@@ -68,14 +68,10 @@ var light = {
|
|
|
68
68
|
shadows: 'rgba(68, 80 ,91, 0.1)',
|
|
69
69
|
table: {
|
|
70
70
|
head: {
|
|
71
|
-
|
|
72
|
-
color: '#000'
|
|
73
|
-
},
|
|
74
|
-
row: {
|
|
75
|
-
hoverColor: '#F8F9FA'
|
|
71
|
+
background: '#f2f3f5'
|
|
76
72
|
},
|
|
77
73
|
cell: {
|
|
78
|
-
|
|
74
|
+
border: '#dee0e3'
|
|
79
75
|
}
|
|
80
76
|
},
|
|
81
77
|
charts: {
|
package/dist/themes/palette.d.ts
CHANGED
|
@@ -74,14 +74,10 @@ export default function themePalette(color: ThemeColor, mode: Omit<ThemeMode, 's
|
|
|
74
74
|
};
|
|
75
75
|
table: {
|
|
76
76
|
head: {
|
|
77
|
-
|
|
78
|
-
color: string;
|
|
79
|
-
};
|
|
80
|
-
row: {
|
|
81
|
-
hoverColor: string;
|
|
77
|
+
background: string;
|
|
82
78
|
};
|
|
83
79
|
cell: {
|
|
84
|
-
|
|
80
|
+
border: string;
|
|
85
81
|
};
|
|
86
82
|
};
|
|
87
83
|
charts: {
|