@zykj2024/much-library 1.1.7-beta.2 → 1.1.7-beta.4
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/esm/McCascader/city.js +909 -0
- package/dist/esm/McCascader/index.d.ts +19 -0
- package/dist/esm/McCascader/index.js +221 -0
- package/dist/esm/McCascader/index.less +72 -0
- package/dist/esm/McContainer/index.d.ts +192 -0
- package/dist/esm/McContainer/index.js +522 -0
- package/dist/esm/McContainer/index.less +132 -0
- package/dist/esm/McDateRange/index.d.ts +28 -0
- package/dist/esm/McDateRange/index.js +167 -0
- package/dist/esm/McDateRange/index.less +33 -0
- package/dist/esm/McEllipsis/index.d.ts +40 -0
- package/dist/esm/McEllipsis/index.js +115 -0
- package/dist/esm/McEllipsis/index.less +9 -0
- package/dist/esm/McEllipsisMiddle/index.d.ts +13 -0
- package/dist/esm/McEllipsisMiddle/index.js +42 -0
- package/dist/esm/McEllipsisMiddle/index.less +9 -0
- package/dist/esm/McFonts/index.d.ts +8 -0
- package/dist/esm/McFonts/index.js +7 -0
- package/dist/esm/McGroupPanel/comps/SelectedItem/index.d.ts +4 -0
- package/dist/esm/McGroupPanel/comps/SelectedItem/index.js +75 -0
- package/dist/esm/McGroupPanel/index.d.ts +30 -0
- package/dist/esm/McGroupPanel/index.js +426 -0
- package/dist/esm/McGroupPanel/index.less +161 -0
- package/dist/esm/McIconFont/iconfont.js +1 -0
- package/dist/esm/McIconFont/index.d.ts +5 -0
- package/dist/esm/McIconFont/index.js +8 -0
- package/dist/esm/McIcons/business.json +137 -0
- package/dist/esm/McIcons/index.less +22 -0
- package/dist/esm/McInput/Input.d.ts +19 -0
- package/dist/esm/McInput/Input.js +48 -0
- package/dist/esm/McInput/Search.d.ts +39 -0
- package/dist/esm/McInput/Search.js +81 -0
- package/dist/esm/McInput/TextArea.d.ts +11 -0
- package/dist/esm/McInput/TextArea.js +37 -0
- package/dist/esm/McInput/demo/Input/addonBefore.d.ts +3 -0
- package/dist/esm/McInput/demo/Input/addonBefore.js +67 -0
- package/dist/esm/McInput/demo/Input/base.d.ts +2 -0
- package/dist/esm/McInput/demo/Input/base.js +31 -0
- package/dist/esm/McInput/demo/Input/isTrim.d.ts +2 -0
- package/dist/esm/McInput/demo/Input/isTrim.js +22 -0
- package/dist/esm/McInput/demo/Input/label.d.ts +2 -0
- package/dist/esm/McInput/demo/Input/label.js +26 -0
- package/dist/esm/McInput/demo/Input/ref.d.ts +3 -0
- package/dist/esm/McInput/demo/Input/ref.js +53 -0
- package/dist/esm/McInput/demo/Input/status.d.ts +2 -0
- package/dist/esm/McInput/demo/Input/status.js +23 -0
- package/dist/esm/McInput/demo/Search/search-base.d.ts +2 -0
- package/dist/esm/McInput/demo/Search/search-base.js +38 -0
- package/dist/esm/McInput/demo/TextArea/text-area-base.d.ts +2 -0
- package/dist/esm/McInput/demo/TextArea/text-area-base.js +38 -0
- package/dist/esm/McInput/index.d.ts +13 -0
- package/dist/esm/McInput/index.js +7 -0
- package/dist/esm/McInput/index.less +62 -0
- package/dist/esm/McInputNumber/index.d.ts +16 -0
- package/dist/esm/McInputNumber/index.js +50 -0
- package/dist/esm/McInputNumber/index.less +18 -0
- package/dist/esm/McLazyLoader/index.d.ts +39 -0
- package/dist/esm/McLazyLoader/index.js +88 -0
- package/dist/esm/McListSelect/comps/ListSelect.d.ts +67 -0
- package/dist/esm/McListSelect/comps/ListSelect.js +289 -0
- package/dist/esm/McListSelect/comps/ListSelectPanel.d.ts +138 -0
- package/dist/esm/McListSelect/comps/ListSelectPanel.js +451 -0
- package/dist/esm/McListSelect/comps/SelectedItem.d.ts +17 -0
- package/dist/esm/McListSelect/comps/SelectedItem.js +76 -0
- package/dist/esm/McListSelect/index.d.ts +10 -0
- package/dist/esm/McListSelect/index.js +5 -0
- package/dist/esm/McListSelect/index.less +257 -0
- package/dist/esm/McModalProvider/index.d.ts +174 -0
- package/dist/esm/McModalProvider/index.js +498 -0
- package/dist/esm/McPeriodSelect/index.d.ts +13 -0
- package/dist/esm/McPeriodSelect/index.js +305 -0
- package/dist/esm/McPeriodSelect/index.less +187 -0
- package/dist/esm/McPopoverButton/index.d.ts +14 -0
- package/dist/esm/McPopoverButton/index.js +52 -0
- package/dist/esm/McPopoverForm/index.d.ts +14 -0
- package/dist/esm/McPopoverForm/index.js +95 -0
- package/dist/esm/McProSelect/index.d.ts +35 -0
- package/dist/esm/McProSelect/index.js +152 -0
- package/dist/esm/McResult/default.d.ts +1 -0
- package/dist/esm/McResult/default.js +98 -0
- package/dist/esm/McResult/icon.d.ts +25 -0
- package/dist/esm/McResult/icon.js +1014 -0
- package/dist/esm/McResult/index.d.ts +31 -0
- package/dist/esm/McResult/index.js +119 -0
- package/dist/esm/McResult/index.less +18 -0
- package/dist/esm/McResult/public/403.svg +164 -0
- package/dist/esm/McResult/public/404.svg +123 -0
- package/dist/esm/McResult/public/500.svg +129 -0
- package/dist/esm/McResult/public/building.svg +127 -0
- package/dist/esm/McResult/public/code403.svg +7 -0
- package/dist/esm/McResult/public/code404.svg +5 -0
- package/dist/esm/McResult/public/code500.svg +5 -0
- package/dist/esm/McResult/public/detailEmpty.svg +1 -0
- package/dist/esm/McResult/public/empty.svg +1 -0
- package/dist/esm/McResult/public/noFunction.svg +1 -0
- package/dist/esm/McResult/public/noUser.svg +90 -0
- package/dist/esm/McSelect/components/PanelSearchInput/index.d.ts +12 -0
- package/dist/esm/McSelect/components/PanelSearchInput/index.js +45 -0
- package/dist/esm/McSelect/components/PanelSearchInput/index.less +7 -0
- package/dist/esm/McSelect/index.d.ts +47 -0
- package/dist/esm/McSelect/index.js +436 -0
- package/dist/esm/McSelect/index.less +72 -0
- package/dist/esm/McTag/index.d.ts +22 -0
- package/dist/esm/McTag/index.js +59 -0
- package/dist/esm/McThemeConfig/customToken.json +39 -0
- package/dist/esm/McThemeConfig/globalStyle.d.ts +2 -0
- package/dist/esm/McThemeConfig/globalStyle.js +198 -0
- package/dist/esm/McThemeConfig/index.d.ts +9 -0
- package/dist/esm/McThemeConfig/index.js +16 -0
- package/dist/esm/McThemeConfig/layoutStyle.d.ts +2 -0
- package/dist/esm/McThemeConfig/layoutStyle.js +1 -0
- package/dist/esm/McThemeConfig/provider.d.ts +8 -0
- package/dist/esm/McThemeConfig/provider.js +20 -0
- package/dist/esm/McThemeConfig/themeToken.json +152 -0
- package/dist/esm/McTreePanel/SelectedItem.d.ts +4 -0
- package/dist/esm/McTreePanel/SelectedItem.js +75 -0
- package/dist/esm/McTreePanel/index.d.ts +27 -0
- package/dist/esm/McTreePanel/index.js +315 -0
- package/dist/esm/McTreePanel/index.less +106 -0
- package/dist/esm/McTreeSelect/index.d.ts +13 -0
- package/dist/esm/McTreeSelect/index.js +182 -0
- package/dist/esm/McTreeSelect/index.less +72 -0
- package/dist/esm/McUpload/comps/McFormUpload/comps/UploadForVal/index.d.ts +38 -0
- package/dist/esm/McUpload/comps/McFormUpload/comps/UploadForVal/index.js +209 -0
- package/dist/esm/McUpload/comps/McFormUpload/comps/UploadForVal/index.less +6 -0
- package/dist/esm/McUpload/comps/McFormUpload/index.d.ts +7 -0
- package/dist/esm/McUpload/comps/McFormUpload/index.js +29 -0
- package/dist/esm/McUpload/comps/McUploadCmp/index.d.ts +49 -0
- package/dist/esm/McUpload/comps/McUploadCmp/index.js +396 -0
- package/dist/esm/McUpload/comps/McUploadCmp/index.less +68 -0
- package/dist/esm/McUpload/comps/McUploadDragger/index.d.ts +49 -0
- package/dist/esm/McUpload/comps/McUploadDragger/index.js +264 -0
- package/dist/esm/McUpload/comps/McUploadTrigger/index.d.ts +39 -0
- package/dist/esm/McUpload/comps/McUploadTrigger/index.js +318 -0
- package/dist/esm/McUpload/comps/McUploadTrigger/index.less +204 -0
- package/dist/esm/McUpload/index.d.ts +14 -0
- package/dist/esm/McUpload/index.js +9 -0
- package/dist/esm/McUpload/tools/calculateMD5/index.d.ts +3 -0
- package/dist/esm/McUpload/tools/calculateMD5/index.js +94 -0
- package/dist/esm/McUpload/tools/calculateMD5/md5Worker.js +44 -0
- package/dist/esm/McUpload/tools/getUid.d.ts +1 -0
- package/dist/esm/McUpload/tools/getUid.js +6 -0
- package/dist/esm/McUpload/tools/materialVerification.d.ts +50 -0
- package/dist/esm/McUpload/tools/materialVerification.js +257 -0
- package/dist/esm/McUpload/tools/uploadTools.d.ts +5 -0
- package/dist/esm/McUpload/tools/uploadTools.js +56 -0
- package/dist/esm/Utils/index.d.ts +8 -0
- package/dist/esm/Utils/index.js +9 -0
- package/dist/esm/Utils/lib/Queue/PriorityQueue.d.ts +21 -0
- package/dist/esm/Utils/lib/Queue/PriorityQueue.js +197 -0
- package/dist/esm/Utils/lib/Queue/TaskQueue.d.ts +17 -0
- package/dist/esm/Utils/lib/Queue/TaskQueue.js +199 -0
- package/dist/esm/Utils/lib/Queue/tools/BinaryHeap.d.ts +25 -0
- package/dist/esm/Utils/lib/Queue/tools/BinaryHeap.js +184 -0
- package/dist/esm/Utils/lib/Queue/tools/publicDependencyMethod.d.ts +6 -0
- package/dist/esm/Utils/lib/Queue/tools/publicDependencyMethod.js +26 -0
- package/dist/esm/Utils/lib/Queue/types/baseTaskQueue.d.ts +23 -0
- package/dist/esm/Utils/lib/Queue/types/baseTaskQueue.js +10 -0
- package/dist/esm/Utils/lib/copyToClipboard.d.ts +8 -0
- package/dist/esm/Utils/lib/copyToClipboard.js +54 -0
- package/dist/esm/index.d.ts +34 -0
- package/dist/esm/index.js +33 -0
- package/dist/esm/styles/index.less +2 -0
- package/dist/esm/styles/mixins.less +52 -0
- package/dist/esm/styles/utilities.less +51 -0
- package/dist/esm/typings.d.ts +20 -0
- package/package.json +13 -9
@@ -0,0 +1,198 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
// @ts-nocheck
|
4
|
+
import { createGlobalStyle } from 'antd-style';
|
5
|
+
|
6
|
+
// 后续如果需要精确控制字体粗细时再加上
|
7
|
+
// @font-face {
|
8
|
+
// font-family: 'SourceHanSansCN';
|
9
|
+
// src: url(${(props) => props.font.Medium});
|
10
|
+
// font-weight: 600;
|
11
|
+
// font-display: swap;
|
12
|
+
// }
|
13
|
+
|
14
|
+
// @font-face {
|
15
|
+
// font-family: 'SourceHanSansCN';
|
16
|
+
// src: url(${(props) => props.font.Bold});
|
17
|
+
// font-weight: 700;
|
18
|
+
// font-display: swap;
|
19
|
+
// }
|
20
|
+
|
21
|
+
var globalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n// <====================== Layout ======================>\n\n", "\n\n// <====================== Font ======================>\n\n@font-face {\n font-family: 'SourceHanSansCN';\n src: url(", ");\n font-weight: 300;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'SourceHanSansCN';\n src: url(", ");\n font-weight: 400;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'FFDIN';\n src: url(", ");\n}\n\nbody * {\n font-family: 'SourceHanSansCN';\n box-sizing: border-box;\n}\n\n// <====================== Button ======================>\n\n// primary\n.ant-btn-primary[disabled]{\n background: ", ";\n color: ", ";\n opacity: 0.3;\n}\n\n// default\n.ant-btn-default[disabled] {\n border-color: ", " !important;\n}\n\n// danger\n.ant-btn-default.ant-btn-dangerous,.ant-btn-default[data-danger],\n.ant-btn-default.ant-btn-dangerous[disabled],.ant-btn-default[data-danger][disabled] {\n color: ", ";\n background: ", ";\n border-color:", ";\n\n &:hover {\n color: ", " !important;\n background: ", " !important;\n border-color:", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n.ant-btn-default.ant-btn-dangerous[disabled],.ant-btn-default[data-danger][disabled] {\n opacity: 0.4;\n}\n\n// secondary\n.ant-btn-default[data-secondary],\n// modal\u3001drawer\u3001popconfirm footer\n.ant-modal-footer .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous),\n.ant-drawer-footer .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous),\n.ant-popconfirm-buttons .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous){\n background: ", ";\n border-color: ", ";\n\n &:hover {\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n border-color: ", " !important;\n color: ", " !important;\n }\n}\n\n.ant-btn-default[data-secondary][disabled] {\n color: ", " ;\n background: ", ";\n border-color: ", " !important;\n\n &:hover {\n color: ", ";\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// add\n.ant-btn-default[data-add] {\n background: ", " !important;\n color: ", " !important;\n border-color: ", " !important;\n\n &:hover {\n color: ", " !important;\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active{\n color: ", " !important;\n }\n}\n\n.ant-btn-default[data-add][disabled] {\n opacity: 0.4;\n color: ", ";\n\n &:hover {\n background: ", " !important;\n color: ", " !important;\n }\n\n &:active{\n background: ", " !important;\n color: ", " !important;\n }\n}\n\n//dashed\n.ant-btn-dashed {\n background: ", " !important;\n border-color: ", " !important;\n}\n\n.ant-btn-dashed:not([disabled]) {\n &:hover {\n background: ", " !important;\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active{\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// dashed danger\n.ant-btn-dashed.ant-btn-dangerous,\n.ant-btn-dashed.ant-btn-dangerous:disabled {\n color: ", " !important;\n border-color: ", " !important;\n\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n.ant-btn-dashed.ant-btn-dangerous:disabled {\n opacity: 0.4;\n\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// ghost\n.ant-btn-background-ghost:not([disabled]) {\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// link\n.ant-btn-link:not([disabled]) {\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n\n }\n}\n\n.ant-btn-link[disabled] {\n color: ", " !important;\n opacity: 0.3;\n}\n\n// link danger\n.ant-btn-link.ant-btn-dangerous {\n\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n\n.ant-btn-link.ant-btn-dangerous:disabled {\n color: ", " !important;\n opacity: 0.3;\n}\n\n\n\n// <====================== Drawer ======================>\n\n.ant-drawer .ant-drawer-header{\n border-bottom: none;\n padding: 23px 24px;\n .ant-drawer-header-title {\n flex-direction: row-reverse;\n .ant-drawer-close {\n margin: -4px;\n }\n }\n}\n// Drawer \u5BBD\u9AD8 \u4E1A\u52A1\u65B9\u81EA\u884C\u5B9E\u73B0\n//.ant-drawer .ant-drawer-content-wrapper {\n// min-width: 480px\n//}\n.ant-drawer .ant-drawer-body{\n padding: 0 24px;\n}\n.ant-drawer .ant-drawer-footer{\n border-top: none;\n padding: 24px;\n}\n\n// <====================== Modal ======================>\n\n.ant-modal .ant-modal-header {\n margin-bottom:24px;\n}\n.ant-modal-body {\n overflow-y: auto\n}\n\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1280px\u4E14\u5C0F\u4E8E1366px\u7684\u65F6\u5019\u6267\u884C,1280-1366*/\n@media screen and (min-width:1280px) and (max-width: 1366px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 80px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 40px;\n }\n }\n}\n\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1440px\u4E14\u5C0F\u4E8E1600px\u7684\u65F6\u5019\u6267\u884C,1440-1600*/\n@media screen and (min-width:1440px) and (max-width:1600px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 200px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 80px;\n }\n }\n}\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1680px\u4E14\u5C0F\u4E8E1920px\u7684\u65F6\u5019\u6267\u884C,1680-1920*/\n@media screen and (min-width:1680px) and (max-width:2560px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 200px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 150px;\n }\n }\n}\n\n// <====================== Tabs ======================>\n\n.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n text-shadow: unset;\n}\n.ant-tabs-card {\n .ant-tabs-nav {\n margin: 0;\n &::before {\n border: none;\n }\n .ant-tabs-nav-wrap {\n background: transparent;\n .ant-tabs-nav-list {\n background: ", ";\n border-top-right-radius: ", "px;\n .ant-tabs-tab {\n position: relative;\n border: ", ";\n border-radius: ", "px ", "px 0px 0px;\n &::after {\n position: absolute;\n top: 11px;\n right: -1px;\n width: 1px;\n height: 24px;\n background: ", ";\n content: '';\n }\n }\n .ant-tabs-nav-add {\n position: relative;\n border: none;\n border-top-right-radius: ", "px;\n &::before {\n position: absolute;\n top: 11px;\n left: 1px;\n width: 1px;\n height: 24px;\n background: ", ";\n content: '';\n }\n }\n .ant-tabs-tab-active {\n border: ", ";\n &::after {\n display: none;\n }\n }\n .ant-tabs-tab:nth-last-of-type(2) {\n &::after {\n display: none;\n }\n }\n .ant-tabs-tab:has(+ .ant-tabs-tab-active) {\n &::after {\n display: none;\n }\n }\n }\n }\n }\n}\n\n// <====================== Pagination ======================>\n\n.ant-pagination {\n display: flex;\n align-items: center;\n\n .ant-pagination-total-text {\n margin-right: auto;\n color: ", ";\n }\n\n .ant-pagination-item.ant-pagination-item-active {\n &:hover {\n border-color: ", ";\n }\n\n &>a {\n color: ", ";\n }\n }\n\n .ant-pagination-options {\n .ant-pagination-options-quick-jumper {\n input {\n background: ", ";\n border-color: ", ";\n padding: 12px;\n\n &:hover {\n border-color: ", ";\n }\n\n &:focus {\n border-color: ", ";\n }\n }\n }\n }\n\n &.ant-pagination-mini li:not(:first-of-type) {\n margin-left: 2px;\n }\n}\n\n// <====================== Radio ======================>\n .ant-radio-group {\n .ant-radio-button-wrapper {\n position: relative;\n border: 1px solid ", ";\n &::before {\n display: none;\n }\n &::after {\n display: inline-block;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 1px;\n height: ", "px;\n background: ", ";\n right: -1px;\n content: '';\n }\n }\n .ant-radio-button-wrapper-checked {\n border: 1px solid ", ";\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper:nth-last-of-type(1) {\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper:has(+ .ant-radio-button-wrapper-checked) {\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper-disabled {\n border: 1px solid ", " !important;\n }\n .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {\n border-color: ", " !important;\n }\n}\n// <====================== Collapse ======================>\n.ant-collapse .ant-collapse-content {\n border-top-width: 0px;\n}\n\n// <====================== Card ======================>\n.ant-card-type-inner .ant-card-head {\n border-bottom-width: 0;\n background: #FAFAFA;\n}\n\n// <====================== Global scroll,Fix Table two scroll ======================>\n\n/* \u901A\u7528\u6837\u5F0F\uFF1A\u9002\u7528\u4E8E Firefox */\n* {\n scrollbar-color: #d9d9d9 transparent;\n scrollbar-width: thin;\n /* \u5BF9\u5E94\u6EDA\u52A8\u6761\u5BBD\u5EA6\u7EA6\u4E3A 6px */\n}\n\n/* WebKit \u6D4F\u89C8\u5668\u6837\u5F0F\uFF1A\u5E94\u7528\u4E8E\u6240\u6709\u5E26\u6EDA\u52A8\u6761\u7684\u5143\u7D20 */\n*::-webkit-scrollbar {\n width: 6px;\n /* \u5782\u76F4\u6EDA\u52A8\u6761\u5BBD\u5EA6 */\n height: 6px;\n /* \u6C34\u5E73\u6EDA\u52A8\u6761\u9AD8\u5EA6 */\n}\n\n*::-webkit-scrollbar-thumb {\n background-color: #d9d9d9;\n /* \u6EDA\u52A8\u6761\u989C\u8272 */\n border-radius: 4px;\n /* \u6EDA\u52A8\u6761\u5706\u89D2 */\n}\n\n*::-webkit-scrollbar-track {\n background: transparent;\n /* \u6EDA\u52A8\u6761\u8F68\u9053\u80CC\u666F\u900F\u660E */\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll {\n height: 0 !important;\n background: #d9d9d9;\n border-top-width: 0;\n opacity: 1;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar-active, .ant-table-wrapper .ant-table-sticky-scroll-bar:hover {\n background-color: #d9d9d9;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar {\n height: 6px;\n background: #d9d9d9;\n}\n\n// <====================== antd 5.22 bugfix ======================>\n.ant-select-multiple .ant-select-selection-wrap {\n position: static;\n}\n\n"])), function (props) {
|
22
|
+
return props.layout;
|
23
|
+
}, function (props) {
|
24
|
+
return props.font.Light;
|
25
|
+
}, function (props) {
|
26
|
+
return props.font.Regular;
|
27
|
+
}, function (props) {
|
28
|
+
return props.font.Alphanumeric;
|
29
|
+
}, function (props) {
|
30
|
+
return props.theme.colorPrimary;
|
31
|
+
}, function (props) {
|
32
|
+
return props.theme.CustomToken.Button.primaryColorDisabled;
|
33
|
+
}, function (props) {
|
34
|
+
return props.theme.CustomToken.Button.defaultBorderColorDisable;
|
35
|
+
}, function (props) {
|
36
|
+
return props.theme.colorError;
|
37
|
+
}, function (props) {
|
38
|
+
return props.theme.CustomToken.Button.dangerBg;
|
39
|
+
}, function (props) {
|
40
|
+
return props.theme.CustomToken.Button.dangerBorderColor;
|
41
|
+
}, function (props) {
|
42
|
+
return props.theme.dangerHoverColor;
|
43
|
+
}, function (props) {
|
44
|
+
return props.theme.CustomToken.Button.dangerBg;
|
45
|
+
}, function (props) {
|
46
|
+
return props.theme.CustomToken.Button.dangerBorderColor;
|
47
|
+
}, function (props) {
|
48
|
+
return props.theme.dangerActiveColor;
|
49
|
+
}, function (props) {
|
50
|
+
return props.theme.CustomToken.Button.resetBg;
|
51
|
+
}, function (props) {
|
52
|
+
return props.theme.CustomToken.Button.secondaryBorderColor;
|
53
|
+
}, function (props) {
|
54
|
+
return props.theme.CustomToken.Button.resetBg;
|
55
|
+
}, function (props) {
|
56
|
+
return props.theme.Button.defaultHoverColor;
|
57
|
+
}, function (props) {
|
58
|
+
return props.theme.CustomToken.Button.activeBorderColor;
|
59
|
+
}, function (props) {
|
60
|
+
return props.theme.CustomToken.Button.activeColor;
|
61
|
+
}, function (props) {
|
62
|
+
return props.theme.CustomToken.Button.secondaryColorDisabled;
|
63
|
+
}, function (props) {
|
64
|
+
return props.theme.CustomToken.Button.secondaryBgDisabled;
|
65
|
+
}, function (props) {
|
66
|
+
return props.theme.CustomToken.Button.secondaryBorderColor;
|
67
|
+
}, function (props) {
|
68
|
+
return props.theme.CustomToken.Button.secondaryColorDisabled;
|
69
|
+
}, function (props) {
|
70
|
+
return props.theme.CustomToken.Button.secondaryBgDisabled;
|
71
|
+
}, function (props) {
|
72
|
+
return props.theme.CustomToken.Button.secondaryBorderColor;
|
73
|
+
}, function (props) {
|
74
|
+
return props.theme.CustomToken.Button.secondaryColorDisabled;
|
75
|
+
}, function (props) {
|
76
|
+
return props.theme.CustomToken.Button.secondaryBorderColor;
|
77
|
+
}, function (props) {
|
78
|
+
return props.theme.CustomToken.Button.addBg;
|
79
|
+
}, function (props) {
|
80
|
+
return props.theme.colorPrimary;
|
81
|
+
}, function (props) {
|
82
|
+
return props.theme.CustomToken.Button.addBg;
|
83
|
+
}, function (props) {
|
84
|
+
return props.theme.CustomToken.Button.hoverColor;
|
85
|
+
}, function (props) {
|
86
|
+
return props.theme.CustomToken.Button.addHoverBg;
|
87
|
+
}, function (props) {
|
88
|
+
return props.theme.CustomToken.Button.addHoverBg;
|
89
|
+
}, function (props) {
|
90
|
+
return props.theme.CustomToken.Button.activeColor;
|
91
|
+
}, function (props) {
|
92
|
+
return props.theme.colorPrimary;
|
93
|
+
}, function (props) {
|
94
|
+
return props.theme.CustomToken.Button.addBg;
|
95
|
+
}, function (props) {
|
96
|
+
return props.theme.colorPrimary;
|
97
|
+
}, function (props) {
|
98
|
+
return props.theme.CustomToken.Button.addBg;
|
99
|
+
}, function (props) {
|
100
|
+
return props.theme.colorPrimary;
|
101
|
+
}, function (props) {
|
102
|
+
return props.theme.CustomToken.Button.resetBg;
|
103
|
+
}, function (props) {
|
104
|
+
return props.theme.CustomToken.Button.dashedBorderColor;
|
105
|
+
}, function (props) {
|
106
|
+
return props.theme.CustomToken.Button.resetBg;
|
107
|
+
}, function (props) {
|
108
|
+
return props.theme.CustomToken.Button.hoverColor;
|
109
|
+
}, function (props) {
|
110
|
+
return props.theme.CustomToken.Button.hoverColor;
|
111
|
+
}, function (props) {
|
112
|
+
return props.theme.CustomToken.Button.activeColor;
|
113
|
+
}, function (props) {
|
114
|
+
return props.theme.CustomToken.Button.activeColor;
|
115
|
+
}, function (props) {
|
116
|
+
return props.theme.colorError;
|
117
|
+
}, function (props) {
|
118
|
+
return props.theme.colorError;
|
119
|
+
}, function (props) {
|
120
|
+
return props.theme.colorErrorHover;
|
121
|
+
}, function (props) {
|
122
|
+
return props.theme.colorErrorBorderHover;
|
123
|
+
}, function (props) {
|
124
|
+
return props.theme.colorErrorActive;
|
125
|
+
}, function (props) {
|
126
|
+
return props.theme.colorError;
|
127
|
+
}, function (props) {
|
128
|
+
return props.theme.colorError;
|
129
|
+
}, function (props) {
|
130
|
+
return props.theme.colorError;
|
131
|
+
}, function (props) {
|
132
|
+
return props.theme.colorError;
|
133
|
+
}, function (props) {
|
134
|
+
return props.theme.CustomToken.Button.hoverColor;
|
135
|
+
}, function (props) {
|
136
|
+
return props.theme.CustomToken.Button.hoverColor;
|
137
|
+
}, function (props) {
|
138
|
+
return props.theme.CustomToken.Button.activeColor;
|
139
|
+
}, function (props) {
|
140
|
+
return props.theme.CustomToken.Button.activeColor;
|
141
|
+
}, function (props) {
|
142
|
+
return props.theme.CustomToken.Button.hoverColor;
|
143
|
+
}, function (props) {
|
144
|
+
return props.theme.CustomToken.Button.activeColor;
|
145
|
+
}, function (props) {
|
146
|
+
return props.theme.colorPrimary;
|
147
|
+
}, function (props) {
|
148
|
+
return props.theme.colorErrorHover;
|
149
|
+
}, function (props) {
|
150
|
+
return props.theme.colorErrorActive;
|
151
|
+
}, function (props) {
|
152
|
+
return props.theme.colorError;
|
153
|
+
}, function (props) {
|
154
|
+
return props.theme.CustomToken.Tabs.cardTabListBg;
|
155
|
+
}, function (props) {
|
156
|
+
return props.theme.CustomToken.Tabs.cardTabRadius;
|
157
|
+
}, function (props) {
|
158
|
+
return props.theme.CustomToken.Tabs.cardTabItemBorder;
|
159
|
+
}, function (props) {
|
160
|
+
return props.theme.CustomToken.Tabs.cardTabRadius;
|
161
|
+
}, function (props) {
|
162
|
+
return props.theme.CustomToken.Tabs.cardTabRadius;
|
163
|
+
}, function (props) {
|
164
|
+
return props.theme.CustomToken.Tabs.cardTabItemLineColor;
|
165
|
+
}, function (props) {
|
166
|
+
return props.theme.CustomToken.Tabs.cardTabRadius;
|
167
|
+
}, function (props) {
|
168
|
+
return props.theme.CustomToken.Tabs.cardTabItemLineColor;
|
169
|
+
}, function (props) {
|
170
|
+
return props.theme.CustomToken.Tabs.cardTabItemActiveBorder;
|
171
|
+
}, function (props) {
|
172
|
+
return props.theme.CustomToken.Pagination.totalTextColor;
|
173
|
+
}, function (props) {
|
174
|
+
return props.theme.CustomToken.Pagination.itemActiveHoverBorderColor;
|
175
|
+
}, function (props) {
|
176
|
+
return props.theme.CustomToken.Pagination.itemActiveColor;
|
177
|
+
}, function (props) {
|
178
|
+
return props.theme.Input.colorBgContainer;
|
179
|
+
}, function (props) {
|
180
|
+
return props.theme.Input.colorBorder;
|
181
|
+
}, function (props) {
|
182
|
+
return props.theme.Input.hoverBorderColor;
|
183
|
+
}, function (props) {
|
184
|
+
return props.theme.Input.hoverBorderColor;
|
185
|
+
}, function (props) {
|
186
|
+
return props.theme.Radio.buttonBg;
|
187
|
+
}, function (props) {
|
188
|
+
return props.theme.CustomToken.Radio.buttonLineHeight;
|
189
|
+
}, function (props) {
|
190
|
+
return props.theme.CustomToken.Radio.buttonLineBg;
|
191
|
+
}, function (props) {
|
192
|
+
return props.theme.colorPrimary;
|
193
|
+
}, function (props) {
|
194
|
+
return props.theme.Radio.colorBgContainerDisabled;
|
195
|
+
}, function (props) {
|
196
|
+
return props.theme.CustomToken.Radio.buttonCheckedBorderColorDisabled;
|
197
|
+
});
|
198
|
+
export default globalStyle;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ThemeConfig } from 'antd/es/config-provider/context';
|
3
|
+
import { IMcThemeProviderProps } from './provider';
|
4
|
+
type McThemeConfigType = ThemeConfig & {
|
5
|
+
ThemeToken: ThemeConfig;
|
6
|
+
Provider: ({ children }: IMcThemeProviderProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
declare const McThemeConfig: McThemeConfigType;
|
9
|
+
export default McThemeConfig;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import { default as CustomToken } from "./customToken.json";
|
3
|
+
import Provider from "./provider";
|
4
|
+
import { default as ThemeToken } from "./themeToken.json";
|
5
|
+
var token = ThemeToken.token,
|
6
|
+
components = ThemeToken.components;
|
7
|
+
var AllToken = {
|
8
|
+
token: token,
|
9
|
+
components: _objectSpread(_objectSpread({}, components), CustomToken)
|
10
|
+
};
|
11
|
+
var McThemeConfig = _objectSpread(_objectSpread({}, AllToken), {}, {
|
12
|
+
// 兼容 1.0.1 默认导出 theme.json
|
13
|
+
ThemeToken: AllToken,
|
14
|
+
Provider: Provider
|
15
|
+
});
|
16
|
+
export default McThemeConfig;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: "\n/* =========== 布局样式 =========== */\n.ant-pro-layout {\n /* 侧边菜单 */\n .ant-pro-sider {\n padding: 8px 0 16px 16px;\n background: transparent !important;\n\n .ant-layout-sider-children {\n background: #f0f4f9;\n border-radius: 12px 0 0 12px;\n padding: 0;\n border-right: 0;\n margin-right: 0;\n overflow: hidden;\n\n .ant-pro-sider-menu {\n .ant-pro-base-menu-inline-item-icon .anticon {\n font-size: 18px;\n color: #8c8c8c;\n }\n\n [class*='-selected'] .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n\n a {\n transition: color 0s;\n }\n\n & > .ant-menu-item {\n color: #262626;\n font-weight: 500;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:not(.ant-menu-item-selected):hover {\n color: #325cf7;\n background: transparent !important;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n\n &.ant-menu-item-selected {\n color: #325cf7;\n background: #ffffff;\n }\n }\n\n .ant-menu-submenu {\n .ant-menu-submenu-title {\n color: #262626;\n font-weight: 500;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n\n &:hover {\n color: #325cf7;\n background: transparent;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n\n &:first-of-type .ant-menu-submenu-title {\n margin-top: 0;\n }\n\n &.ant-menu-submenu-selected {\n .ant-menu-submenu-title {\n color: #325cf7;\n }\n }\n\n .ant-menu-sub {\n padding: 0;\n\n .ant-menu-item {\n color: #595959;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n padding-left: 44px !important;\n\n &:hover {\n color: #325cf7;\n background: transparent;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n\n &.ant-menu-item-selected {\n color: #325cf7;\n font-weight: 500;\n background: #ffffff;\n }\n }\n }\n }\n }\n\n .ant-pro-sider-footer {\n text-align: right;\n padding: 0 12px 16px;\n\n .menu-footer-collapse-btn {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n padding: 0;\n border: 0;\n\n .ant-btn-icon .anticon {\n font-size: 21px;\n color: #b3b3b3;\n }\n\n &:not(:hover) {\n background: #ffffff;\n }\n }\n }\n }\n\n &.ant-layout-sider-collapsed .ant-layout-sider-children .ant-pro-sider-menu {\n margin-top: -4px;\n\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #8c8c8c;\n }\n\n .ant-menu-item {\n &:hover {\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n\n .ant-menu-item.ant-menu-item-selected,\n .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title {\n background: #ffffff;\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n }\n\n /* 头部区header */\n .ant-pro-layout-container .ant-pro-layout-header {\n border-bottom: 0 !important;\n\n .ant-pro-top-nav-header-main {\n padding-left: 0;\n\n .ant-pro-top-nav-header-menu {\n padding: 0;\n line-height: 48px;\n\n .ant-menu-overflow-item-rest {\n margin: 8px;\n\n &:hover {\n background: rgba(50, 92, 247, 0.1);\n }\n }\n\n .ant-menu-item {\n padding: 0 28px;\n margin: 8px 0;\n\n &:hover {\n font-weight: 500;\n background: rgba(50, 92, 247, 0.1);\n }\n\n &.ant-menu-item-selected {\n font-weight: bold;\n\n &:hover {\n background: rgba(50, 92, 247, 0.1);\n }\n\n &::after {\n content: '';\n display: block;\n width: 21px;\n height: 4px;\n border-radius: 4px;\n background: #325cf7;\n position: absolute;\n bottom: 0;\n left: calc((100% - 21px) / 2);\n }\n }\n }\n }\n }\n }\n\n /* 内容区main */\n .ant-pro-layout-container .ant-pro-layout-content {\n width: calc(100% - 32px);\n margin: 8px 16px 16px;\n padding: 0;\n height: calc(100vh - 88px);\n overflow: auto;\n border-radius: 12px;\n }\n\n .ant-layout-has-sider .ant-pro-layout-container .ant-pro-layout-content {\n width: calc(100% - 16px);\n margin-left: 0;\n border-radius: 0 12px 12px 0;\n }\n}";
|
2
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export default "\n/* =========== \u5E03\u5C40\u6837\u5F0F =========== */\n.ant-pro-layout {\n /* \u4FA7\u8FB9\u83DC\u5355 */\n .ant-pro-sider {\n padding: 8px 0 16px 16px;\n background: transparent !important;\n\n .ant-layout-sider-children {\n background: #f0f4f9;\n border-radius: 12px 0 0 12px;\n padding: 0;\n border-right: 0;\n margin-right: 0;\n overflow: hidden;\n\n .ant-pro-sider-menu {\n .ant-pro-base-menu-inline-item-icon .anticon {\n font-size: 18px;\n color: #8c8c8c;\n }\n\n [class*='-selected'] .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n\n a {\n transition: color 0s;\n }\n\n & > .ant-menu-item {\n color: #262626;\n font-weight: 500;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:not(.ant-menu-item-selected):hover {\n color: #325cf7;\n background: transparent !important;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n\n &.ant-menu-item-selected {\n color: #325cf7;\n background: #ffffff;\n }\n }\n\n .ant-menu-submenu {\n .ant-menu-submenu-title {\n color: #262626;\n font-weight: 500;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n\n &:hover {\n color: #325cf7;\n background: transparent;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n\n &:first-of-type .ant-menu-submenu-title {\n margin-top: 0;\n }\n\n &.ant-menu-submenu-selected {\n .ant-menu-submenu-title {\n color: #325cf7;\n }\n }\n\n .ant-menu-sub {\n padding: 0;\n\n .ant-menu-item {\n color: #595959;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n padding-left: 44px !important;\n\n &:hover {\n color: #325cf7;\n background: transparent;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n\n &.ant-menu-item-selected {\n color: #325cf7;\n font-weight: 500;\n background: #ffffff;\n }\n }\n }\n }\n }\n\n .ant-pro-sider-footer {\n text-align: right;\n padding: 0 12px 16px;\n\n .menu-footer-collapse-btn {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n padding: 0;\n border: 0;\n\n .ant-btn-icon .anticon {\n font-size: 21px;\n color: #b3b3b3;\n }\n\n &:not(:hover) {\n background: #ffffff;\n }\n }\n }\n }\n\n &.ant-layout-sider-collapsed .ant-layout-sider-children .ant-pro-sider-menu {\n margin-top: -4px;\n\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #8c8c8c;\n }\n\n .ant-menu-item {\n &:hover {\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n\n .ant-menu-item.ant-menu-item-selected,\n .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title {\n background: #ffffff;\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n }\n\n /* \u5934\u90E8\u533Aheader */\n .ant-pro-layout-container .ant-pro-layout-header {\n border-bottom: 0 !important;\n\n .ant-pro-top-nav-header-main {\n padding-left: 0;\n\n .ant-pro-top-nav-header-menu {\n padding: 0;\n line-height: 48px;\n\n .ant-menu-overflow-item-rest {\n margin: 8px;\n\n &:hover {\n background: rgba(50, 92, 247, 0.1);\n }\n }\n\n .ant-menu-item {\n padding: 0 28px;\n margin: 8px 0;\n\n &:hover {\n font-weight: 500;\n background: rgba(50, 92, 247, 0.1);\n }\n\n &.ant-menu-item-selected {\n font-weight: bold;\n\n &:hover {\n background: rgba(50, 92, 247, 0.1);\n }\n\n &::after {\n content: '';\n display: block;\n width: 21px;\n height: 4px;\n border-radius: 4px;\n background: #325cf7;\n position: absolute;\n bottom: 0;\n left: calc((100% - 21px) / 2);\n }\n }\n }\n }\n }\n }\n\n /* \u5185\u5BB9\u533Amain */\n .ant-pro-layout-container .ant-pro-layout-content {\n width: calc(100% - 32px);\n margin: 8px 16px 16px;\n padding: 0;\n height: calc(100vh - 88px);\n overflow: auto;\n border-radius: 12px;\n }\n\n .ant-layout-has-sider .ant-pro-layout-container .ant-pro-layout-content {\n width: calc(100% - 16px);\n margin-left: 0;\n border-radius: 0 12px 12px 0;\n }\n}";
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
2
|
+
import '../styles/utilities.less';
|
3
|
+
export interface IMcThemeProviderProps {
|
4
|
+
children: ReactElement;
|
5
|
+
layout?: boolean;
|
6
|
+
}
|
7
|
+
declare const McThemeProvider: ({ children, layout }: IMcThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export default McThemeProvider;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { ThemeProvider } from 'antd-style';
|
2
|
+
import { McFonts } from "./..";
|
3
|
+
import GlobalStyle from "./globalStyle";
|
4
|
+
import McThemeConfig from "./index";
|
5
|
+
import LayoutStyle from "./layoutStyle";
|
6
|
+
import "../styles/utilities.less";
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
+
var McThemeProvider = function McThemeProvider(_ref) {
|
10
|
+
var children = _ref.children,
|
11
|
+
layout = _ref.layout;
|
12
|
+
return /*#__PURE__*/_jsxs(ThemeProvider, {
|
13
|
+
theme: McThemeConfig.ThemeToken,
|
14
|
+
children: [/*#__PURE__*/_jsx(GlobalStyle, {
|
15
|
+
font: McFonts,
|
16
|
+
layout: layout ? LayoutStyle : ''
|
17
|
+
}), children]
|
18
|
+
});
|
19
|
+
};
|
20
|
+
export default McThemeProvider;
|
@@ -0,0 +1,152 @@
|
|
1
|
+
{
|
2
|
+
"token": {
|
3
|
+
"colorPrimary": "#325cf7",
|
4
|
+
"colorInfo": "#325cf7",
|
5
|
+
"colorSuccess": "#3aaf00",
|
6
|
+
"colorTextBase": "#262626",
|
7
|
+
"borderRadius": 4,
|
8
|
+
"colorText": "#262626",
|
9
|
+
"colorTextSecondary": "#595959",
|
10
|
+
"colorTextTertiary": "#8c8c8c",
|
11
|
+
"colorTextQuaternary": "#8c8c8c",
|
12
|
+
"controlHeightSM": 26,
|
13
|
+
"fontFamily": "'SourceHanSansCN', -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'"
|
14
|
+
},
|
15
|
+
"components": {
|
16
|
+
"Button": {
|
17
|
+
"defaultActiveBg": "rgb(228, 230, 232)",
|
18
|
+
"defaultActiveBorderColor": "rgb(228, 230, 232)",
|
19
|
+
"defaultActiveColor": "rgb(50, 92, 247)",
|
20
|
+
"defaultHoverBg": "rgb(240, 242, 245)",
|
21
|
+
"defaultColor": "rgb(38, 38, 38)",
|
22
|
+
"defaultBg": "rgb(240, 242, 245)",
|
23
|
+
"defaultBorderColor": "rgb(240, 242, 245)",
|
24
|
+
"defaultHoverBorderColor": "rgb(240, 242, 245)",
|
25
|
+
"defaultHoverColor": "rgb(50, 92, 247)",
|
26
|
+
"groupBorderColor": "rgb(50, 92, 247)",
|
27
|
+
"textHoverBg": "rgb(245, 245, 245)",
|
28
|
+
"colorTextDisabled": "rgb(183, 179, 179)",
|
29
|
+
"contentFontSizeSM": 12,
|
30
|
+
"paddingInline": 16,
|
31
|
+
"paddingInlineLG": 16,
|
32
|
+
"paddingInlineSM": 12,
|
33
|
+
"colorText": "rgb(38, 38, 38)",
|
34
|
+
"borderColorDisabled": "rgb(245, 245, 245)",
|
35
|
+
"dangerShadow": "",
|
36
|
+
"defaultShadow": "",
|
37
|
+
"primaryShadow": ""
|
38
|
+
},
|
39
|
+
"Divider": {
|
40
|
+
"colorText": "rgb(38, 38, 38)",
|
41
|
+
"colorTextHeading": "rgb(38, 38, 38)",
|
42
|
+
"colorSplit": "rgb(235, 235, 235)"
|
43
|
+
},
|
44
|
+
"Anchor": {
|
45
|
+
"colorSplit": "rgb(235, 235, 235)",
|
46
|
+
"colorText": "rgb(38, 38, 38)"
|
47
|
+
},
|
48
|
+
"Breadcrumb": {
|
49
|
+
"lastItemColor": "rgb(0, 0, 0)",
|
50
|
+
"itemColor": "rgb(140, 140, 140)"
|
51
|
+
},
|
52
|
+
"Form": {
|
53
|
+
"labelColor": "rgb(38, 38, 38)"
|
54
|
+
},
|
55
|
+
"Input": {
|
56
|
+
"activeBg": "rgb(240, 242, 245)",
|
57
|
+
"hoverBg": "rgb(240, 242, 245)",
|
58
|
+
"colorBgContainer": "rgb(240, 242, 245)",
|
59
|
+
"hoverBorderColor": "rgb(50, 92, 247)",
|
60
|
+
"colorBgContainerDisabled": "rgba(240, 242, 245, 0.5)",
|
61
|
+
"colorBorder": "rgba(240, 242, 245, 0)",
|
62
|
+
"paddingBlockLG": 8,
|
63
|
+
"paddingInlineSM": 8,
|
64
|
+
"addonBg": "rgb(240, 242, 245)",
|
65
|
+
"colorTextPlaceholder": "rgb(140, 140, 140)",
|
66
|
+
"colorTextQuaternary": "rgb(179, 179, 179)"
|
67
|
+
},
|
68
|
+
"InputNumber": {
|
69
|
+
"activeBg": "rgb(240, 242, 245)",
|
70
|
+
"activeBorderColor": "rgb(50, 92, 247)",
|
71
|
+
"addonBg": "rgb(240, 242, 245)",
|
72
|
+
"filledHandleBg": "rgb(240, 242, 245)",
|
73
|
+
"handleBorderColor": "rgb(240, 242, 245)",
|
74
|
+
"hoverBg": "rgb(240, 242, 245)",
|
75
|
+
"hoverBorderColor": "rgb(50, 92, 247)",
|
76
|
+
"handleHoverColor": "rgb(50, 92, 247)",
|
77
|
+
"colorBgContainer": "rgb(240, 242, 245)",
|
78
|
+
"colorBorder": "rgba(240, 242, 245, 0)",
|
79
|
+
"colorBgContainerDisabled": "rgba(240, 242, 245, 0.5)",
|
80
|
+
"colorTextDisabled": "rgb(179, 179, 179)"
|
81
|
+
},
|
82
|
+
"Mentions": {
|
83
|
+
"activeBg": "rgb(240, 242, 245)",
|
84
|
+
"addonBg": "rgb(240, 242, 245)",
|
85
|
+
"hoverBg": "rgb(240, 242, 245)",
|
86
|
+
"colorBgContainer": "rgb(240, 242, 245)",
|
87
|
+
"colorBorder": "rgb(240, 242, 245)",
|
88
|
+
"hoverBorderColor": "rgb(50, 92, 247)",
|
89
|
+
"activeBorderColor": "rgb(50, 92, 247)"
|
90
|
+
},
|
91
|
+
"Radio": {
|
92
|
+
"buttonBg": "rgba(240, 242, 245)",
|
93
|
+
"buttonColor": "rgb(38, 38, 38)",
|
94
|
+
"buttonCheckedBg": "rgba(255, 255, 255, 0.1)",
|
95
|
+
"buttonCheckedBgDisabled": "rgba(255, 255, 255, 0.1)",
|
96
|
+
"buttonCheckedBorderColorDisabled": "#B3B3B3",
|
97
|
+
"colorBgContainerDisabled": "#F0F2F5"
|
98
|
+
},
|
99
|
+
"Select": {
|
100
|
+
"selectorBg": "rgb(240, 242, 245)",
|
101
|
+
"colorBgContainer": "rgb(240, 242, 245)",
|
102
|
+
"colorBorder": "rgba(240, 242, 245, 0)",
|
103
|
+
"multipleItemBg": "rgb(255, 255, 255)",
|
104
|
+
"multipleSelectorBgDisabled": "rgb(255, 255, 255)",
|
105
|
+
"optionActiveBg": "rgb(240, 242, 245)",
|
106
|
+
"colorTextPlaceholder": "rgb(140, 140, 140)",
|
107
|
+
"colorTextDisabled": "rgb(179, 179, 179)",
|
108
|
+
"multipleItemColorDisabled": "rgb(179, 179, 179)",
|
109
|
+
"optionSelectedColor": "rgb(38, 38, 38)",
|
110
|
+
"colorBgContainerDisabled": "rgba(240, 242, 245, 0.5)"
|
111
|
+
},
|
112
|
+
"DatePicker": {
|
113
|
+
"cellHoverBg": "rgb(240, 242, 245)",
|
114
|
+
"hoverBg": "rgb(240, 242, 245)",
|
115
|
+
"activeBg": "rgb(240, 242, 245)",
|
116
|
+
"colorBgContainer": "rgb(240, 242, 245)",
|
117
|
+
"colorBorder": "rgba(240, 242, 245, 0)",
|
118
|
+
"hoverBorderColor": "rgb(50, 92, 247)",
|
119
|
+
"cellBgDisabled": "rgba(240, 242, 245, 0.5)",
|
120
|
+
"multipleItemColorDisabled": "rgb(179, 179, 179)",
|
121
|
+
"colorBgContainerDisabled": "rgba(240, 242, 245, 0.5)",
|
122
|
+
"colorTextPlaceholder": "rgb(140, 140, 140)"
|
123
|
+
},
|
124
|
+
"Cascader": {
|
125
|
+
"colorBgContainerDisabled": "rgba(240, 242, 245, 0.5)",
|
126
|
+
"colorSplit": "rgba(5, 5, 5, 0)",
|
127
|
+
"colorBorder": "rgba(217, 217, 217)"
|
128
|
+
},
|
129
|
+
"Switch": {
|
130
|
+
"handleShadow": "-1px 0px 2px 0px rgba(0, 0, 0, 0.1)",
|
131
|
+
"trackPadding": 3,
|
132
|
+
"trackHeight": 24,
|
133
|
+
"trackHeightSM": 20,
|
134
|
+
"handleSizeSM": 14,
|
135
|
+
"innerMaxMargin": 25,
|
136
|
+
"innerMinMargin": 9,
|
137
|
+
"trackMinWidthSM": 36
|
138
|
+
},
|
139
|
+
"Tabs": {
|
140
|
+
"horizontalItemGutter": 24,
|
141
|
+
"horizontalItemPadding": "5px 16px 9px",
|
142
|
+
"cardBg": "#F0F4F9",
|
143
|
+
"cardGutter": 0,
|
144
|
+
"cardHeight": 44,
|
145
|
+
"cardPadding": "12px 32px"
|
146
|
+
},
|
147
|
+
"Pagination": {
|
148
|
+
"itemActiveBg": "#325CF7",
|
149
|
+
"itemSizeSM": 22
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import './index.less';
|
3
|
+
declare const _default: import("react").MemoExoticComponent<({ sortable, itemMap, inexistent, text, color, reserved, inexistentItemMap, value, onRemove, }: any) => import("react/jsx-runtime").JSX.Element>;
|
4
|
+
export default _default;
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import { useSortable } from '@dnd-kit/sortable';
|
3
|
+
import { Button, Typography } from 'antd';
|
4
|
+
import { MenuOutlined } from 'much-icons';
|
5
|
+
import { McIconFont } from "./..";
|
6
|
+
import { memo, useMemo } from 'react';
|
7
|
+
import "./index.less";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
+
var SelectedItem = function SelectedItem(_ref) {
|
11
|
+
var sortable = _ref.sortable,
|
12
|
+
itemMap = _ref.itemMap,
|
13
|
+
inexistent = _ref.inexistent,
|
14
|
+
text = _ref.text,
|
15
|
+
color = _ref.color,
|
16
|
+
reserved = _ref.reserved,
|
17
|
+
inexistentItemMap = _ref.inexistentItemMap,
|
18
|
+
value = _ref.value,
|
19
|
+
onRemove = _ref.onRemove;
|
20
|
+
var _label = useMemo(function () {
|
21
|
+
var _itemMap$value, _inexistentItemMap$va;
|
22
|
+
var label = ((_itemMap$value = itemMap[value]) === null || _itemMap$value === void 0 ? void 0 : _itemMap$value.title) || "".concat((_inexistentItemMap$va = inexistentItemMap[value]) === null || _inexistentItemMap$va === void 0 ? void 0 : _inexistentItemMap$va.title).concat(inexistent && !reserved ? "\u300C".concat(text, "\u300D") : '');
|
23
|
+
var fn = function fn() {
|
24
|
+
var isTooltip = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
25
|
+
return /*#__PURE__*/_jsx("span", {
|
26
|
+
style: {
|
27
|
+
color: !itemMap[value] && inexistent && !reserved ? color : isTooltip ? '#ffffff' : '#262626'
|
28
|
+
},
|
29
|
+
children: label
|
30
|
+
});
|
31
|
+
};
|
32
|
+
return fn;
|
33
|
+
}, [itemMap, inexistent, text, color, reserved, inexistentItemMap, value]);
|
34
|
+
var _useSortable = useSortable({
|
35
|
+
id: value
|
36
|
+
}),
|
37
|
+
setNodeRef = _useSortable.setNodeRef,
|
38
|
+
attributes = _useSortable.attributes,
|
39
|
+
listeners = _useSortable.listeners,
|
40
|
+
transform = _useSortable.transform,
|
41
|
+
transition = _useSortable.transition,
|
42
|
+
isDragging = _useSortable.isDragging;
|
43
|
+
var style = transform ? {
|
44
|
+
transform: "translate3d(".concat(transform.x, "px, ").concat(transform.y, "px, 0)"),
|
45
|
+
transition: isDragging ? 'unset' : transition
|
46
|
+
} : {
|
47
|
+
transition: 'unset'
|
48
|
+
};
|
49
|
+
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
50
|
+
ref: setNodeRef,
|
51
|
+
style: style
|
52
|
+
}, attributes), {}, {
|
53
|
+
className: "mc-tree-panel__selected-item",
|
54
|
+
children: [sortable && /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({}, listeners), {}, {
|
55
|
+
className: "mc-tree-panel__selected-item__drag",
|
56
|
+
type: "text",
|
57
|
+
icon: /*#__PURE__*/_jsx(MenuOutlined, {})
|
58
|
+
})), /*#__PURE__*/_jsx(Typography.Paragraph, {
|
59
|
+
style: {
|
60
|
+
margin: '0 auto 0 4px'
|
61
|
+
},
|
62
|
+
ellipsis: {
|
63
|
+
tooltip: _label(true)
|
64
|
+
},
|
65
|
+
children: _label()
|
66
|
+
}), /*#__PURE__*/_jsx(McIconFont, {
|
67
|
+
className: "mc-tree-panel__selected-item__remove",
|
68
|
+
type: "icon-CloseOutlined",
|
69
|
+
onClick: onRemove
|
70
|
+
}), !itemMap[value] && reserved && /*#__PURE__*/_jsx("div", {
|
71
|
+
className: "mc-group-panel__selected-item--disabled"
|
72
|
+
})]
|
73
|
+
}));
|
74
|
+
};
|
75
|
+
export default /*#__PURE__*/memo(SelectedItem);
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { TreeDataNode } from 'antd';
|
2
|
+
import { CSSProperties, FC } from 'react';
|
3
|
+
import './index.less';
|
4
|
+
type Inexistent = {
|
5
|
+
text?: string;
|
6
|
+
color?: string;
|
7
|
+
reserved?: boolean;
|
8
|
+
};
|
9
|
+
type PropsType = {
|
10
|
+
style?: CSSProperties;
|
11
|
+
className?: string;
|
12
|
+
treeData?: TreeDataNode[];
|
13
|
+
fieldNames?: {
|
14
|
+
key?: string;
|
15
|
+
title?: string;
|
16
|
+
children?: string;
|
17
|
+
};
|
18
|
+
disabled?: boolean;
|
19
|
+
labelInValue?: boolean;
|
20
|
+
inexistent?: boolean | Inexistent;
|
21
|
+
sortable?: boolean;
|
22
|
+
value?: any[];
|
23
|
+
onChange?: (value?: any[]) => void;
|
24
|
+
[key: string]: any;
|
25
|
+
};
|
26
|
+
declare const McTreePanel: FC<PropsType>;
|
27
|
+
export default McTreePanel;
|