@chaoswise/ui 3.0.1 → 3.0.2
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/config/babel/antdComs-nouse.js +51 -0
- package/config/babel/formily.js +22 -0
- package/config/babel/index.js +9 -0
- package/config/city/citys.js +1964 -0
- package/config/swc.js +5 -0
- package/config/theme/CWTheme.js +427 -0
- package/config/theme/chart.dark.js +394 -0
- package/config/theme/chart.light.js +3 -0
- package/config/theme/common.less +161 -0
- package/config/theme/dark.js +784 -0
- package/config/theme/dark.less +80 -0
- package/config/theme/default.js +717 -0
- package/config/theme/default.less +144 -0
- package/config/theme/style/color/bezierEasing.less +110 -0
- package/config/theme/style/color/colorPalette.less +85 -0
- package/config/theme/style/color/colors.less +162 -0
- package/config/theme/style/color/tinyColor.less +1184 -0
- package/config/theme/style/compact.less +4 -0
- package/config/theme/style/components.less +65 -0
- package/config/theme/style/core/base.less +10 -0
- package/config/theme/style/core/global.less +491 -0
- package/config/theme/style/core/iconfont.less +22 -0
- package/config/theme/style/core/index.less +5 -0
- package/config/theme/style/core/motion/fade.less +34 -0
- package/config/theme/style/core/motion/move.less +129 -0
- package/config/theme/style/core/motion/other.less +51 -0
- package/config/theme/style/core/motion/slide.less +129 -0
- package/config/theme/style/core/motion/zoom.less +179 -0
- package/config/theme/style/core/motion.less +22 -0
- package/config/theme/style/css.js +3 -0
- package/config/theme/style/dark.less +4 -0
- package/config/theme/style/default.css +1784 -0
- package/config/theme/style/default.less +4 -0
- package/config/theme/style/index-pure.less +2 -0
- package/config/theme/style/index.css +1784 -0
- package/config/theme/style/index.d.ts +1 -0
- package/config/theme/style/index.js +3 -0
- package/config/theme/style/index.less +3 -0
- package/config/theme/style/mixins/box.less +7 -0
- package/config/theme/style/mixins/clearfix.less +16 -0
- package/config/theme/style/mixins/compatibility.less +13 -0
- package/config/theme/style/mixins/customize.less +181 -0
- package/config/theme/style/mixins/iconfont.less +28 -0
- package/config/theme/style/mixins/index.less +14 -0
- package/config/theme/style/mixins/modal-mask.less +30 -0
- package/config/theme/style/mixins/motion.less +33 -0
- package/config/theme/style/mixins/operation-unit.less +16 -0
- package/config/theme/style/mixins/reset.less +11 -0
- package/config/theme/style/mixins/rounded-arrow.less +44 -0
- package/config/theme/style/mixins/size.less +10 -0
- package/config/theme/style/mixins/typography.less +58 -0
- package/config/theme/style/themes/compact.less +295 -0
- package/config/theme/style/themes/dark.less +457 -0
- package/config/theme/style/themes/default.less +1080 -0
- package/config/theme/style/themes/index.less +7 -0
- package/config/theme/style/themes/variable.less +1135 -0
- package/config/theme/style/variable.less +4 -0
- package/package.json +1 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: your name
|
|
3
|
+
* @Date: 2022-02-21 16:23:43
|
|
4
|
+
* @LastEditTime: 2023-05-11 17:35:05
|
|
5
|
+
* @LastEditors: andrew.qiao andrew.qiao@cloudwise.com
|
|
6
|
+
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
7
|
+
* @FilePath: /change_02/aops_web_commons/packages/ui/config/babel/antdComs.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
module.exports = [
|
|
11
|
+
'Affix', 'Anchor', 'AutoComplete',
|
|
12
|
+
'Avatar', 'BackTop', 'Breadcrumb',
|
|
13
|
+
'Calendar', 'Card', 'Carousel', 'Col',
|
|
14
|
+
'Comment', 'Descriptions',
|
|
15
|
+
'Divider', 'Drawer', 'Dropdown',
|
|
16
|
+
'Icon',
|
|
17
|
+
'List', 'LocaleProvider', 'Layout', 'Mention',
|
|
18
|
+
'Mentions', 'PageHeader', 'Transfer',
|
|
19
|
+
'Popover',
|
|
20
|
+
'Rate', 'Result', 'Row',
|
|
21
|
+
'Skeleton', 'Spin',
|
|
22
|
+
'Statistic', 'Steps', 'Switch', 'TimePicker','TreeSelect',
|
|
23
|
+
'Select',
|
|
24
|
+
'Typography',
|
|
25
|
+
'version', 'Table', 'Tree',
|
|
26
|
+
];
|
|
27
|
+
// 已经被覆盖的组件
|
|
28
|
+
/**
|
|
29
|
+
* Button
|
|
30
|
+
* ConfigProvider
|
|
31
|
+
* Modal
|
|
32
|
+
* Pagination
|
|
33
|
+
* Upload
|
|
34
|
+
* Tree
|
|
35
|
+
* Table
|
|
36
|
+
* Tabs
|
|
37
|
+
* Tooltip
|
|
38
|
+
* Popconfirm
|
|
39
|
+
* Radio
|
|
40
|
+
* Checkbox
|
|
41
|
+
* message
|
|
42
|
+
* Slider
|
|
43
|
+
* Input
|
|
44
|
+
* Progress
|
|
45
|
+
* Badge
|
|
46
|
+
* Alert
|
|
47
|
+
* Menu
|
|
48
|
+
* InputNumber
|
|
49
|
+
* Cascader
|
|
50
|
+
* notification
|
|
51
|
+
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const fse = require('fs-extra');
|
|
2
|
+
// 项目的根目录
|
|
3
|
+
const projectPath = process.cwd();
|
|
4
|
+
|
|
5
|
+
const babelConfig = {
|
|
6
|
+
"libraryName": "@chaoswise/ui/formily",
|
|
7
|
+
"camel2DashComponentName": false,
|
|
8
|
+
"customName": name => {
|
|
9
|
+
return `@chaoswise/ui/lib/Formily/${name}`
|
|
10
|
+
},
|
|
11
|
+
"style": name => {
|
|
12
|
+
// 判断是否有样式文件
|
|
13
|
+
const fileTargetPath = `${projectPath}/node_modules/${name}/index.less`;
|
|
14
|
+
const isExist = fse.pathExistsSync(fileTargetPath);
|
|
15
|
+
if(!isExist) {
|
|
16
|
+
return false
|
|
17
|
+
}
|
|
18
|
+
return `${name}/index.less`
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module.exports = babelConfig;
|