@chaoswise/ui 3.0.1 → 3.0.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.
Files changed (60) hide show
  1. package/config/babel/antdComs-nouse.js +51 -0
  2. package/config/babel/formily.js +22 -0
  3. package/config/babel/index.js +9 -0
  4. package/config/city/citys.js +1964 -0
  5. package/config/swc.js +5 -0
  6. package/config/theme/CWTheme.js +427 -0
  7. package/config/theme/chart.dark.js +394 -0
  8. package/config/theme/chart.light.js +3 -0
  9. package/config/theme/common.less +161 -0
  10. package/config/theme/dark.js +784 -0
  11. package/config/theme/dark.less +80 -0
  12. package/config/theme/default.js +717 -0
  13. package/config/theme/default.less +144 -0
  14. package/config/theme/style/color/bezierEasing.less +110 -0
  15. package/config/theme/style/color/colorPalette.less +85 -0
  16. package/config/theme/style/color/colors.less +162 -0
  17. package/config/theme/style/color/tinyColor.less +1184 -0
  18. package/config/theme/style/compact.less +4 -0
  19. package/config/theme/style/components.less +65 -0
  20. package/config/theme/style/core/base.less +10 -0
  21. package/config/theme/style/core/global.less +491 -0
  22. package/config/theme/style/core/iconfont.less +22 -0
  23. package/config/theme/style/core/index.less +5 -0
  24. package/config/theme/style/core/motion/fade.less +34 -0
  25. package/config/theme/style/core/motion/move.less +129 -0
  26. package/config/theme/style/core/motion/other.less +51 -0
  27. package/config/theme/style/core/motion/slide.less +129 -0
  28. package/config/theme/style/core/motion/zoom.less +179 -0
  29. package/config/theme/style/core/motion.less +22 -0
  30. package/config/theme/style/css.js +3 -0
  31. package/config/theme/style/dark.less +4 -0
  32. package/config/theme/style/default.css +1784 -0
  33. package/config/theme/style/default.less +4 -0
  34. package/config/theme/style/index-pure.less +2 -0
  35. package/config/theme/style/index.css +1784 -0
  36. package/config/theme/style/index.d.ts +1 -0
  37. package/config/theme/style/index.js +3 -0
  38. package/config/theme/style/index.less +3 -0
  39. package/config/theme/style/mixins/box.less +7 -0
  40. package/config/theme/style/mixins/clearfix.less +16 -0
  41. package/config/theme/style/mixins/compatibility.less +13 -0
  42. package/config/theme/style/mixins/customize.less +181 -0
  43. package/config/theme/style/mixins/iconfont.less +28 -0
  44. package/config/theme/style/mixins/index.less +14 -0
  45. package/config/theme/style/mixins/modal-mask.less +30 -0
  46. package/config/theme/style/mixins/motion.less +33 -0
  47. package/config/theme/style/mixins/operation-unit.less +16 -0
  48. package/config/theme/style/mixins/reset.less +11 -0
  49. package/config/theme/style/mixins/rounded-arrow.less +44 -0
  50. package/config/theme/style/mixins/size.less +10 -0
  51. package/config/theme/style/mixins/typography.less +58 -0
  52. package/config/theme/style/themes/compact.less +295 -0
  53. package/config/theme/style/themes/dark.less +457 -0
  54. package/config/theme/style/themes/default.less +1080 -0
  55. package/config/theme/style/themes/index.less +7 -0
  56. package/config/theme/style/themes/variable.less +1135 -0
  57. package/config/theme/style/variable.less +4 -0
  58. package/package.json +1 -2
  59. /package/lib/{Message → message}/index.js +0 -0
  60. /package/lib/{Notification → notification}/index.js +0 -0
@@ -0,0 +1,394 @@
1
+ export default {
2
+ "color": [
3
+ "#2194ff",
4
+ "#f28941",
5
+ "#7a56e8",
6
+ "#00c7cc",
7
+ "#f44a4a",
8
+ "#5955ff",
9
+ "#ffe164",
10
+ "#d854ef",
11
+ "#4fe063"
12
+ ],
13
+ "backgroundColor": "#333333",
14
+ "textStyle": {},
15
+ "title": {
16
+ "textStyle": {
17
+ "color": "#ffffff"
18
+ },
19
+ "subtextStyle": {
20
+ "color": "#aaaaaa"
21
+ }
22
+ },
23
+ "line": {
24
+ "itemStyle": {
25
+ "borderWidth": "1"
26
+ },
27
+ "lineStyle": {
28
+ "width": "2"
29
+ },
30
+ "symbolSize": "0",
31
+ "symbol": "circle",
32
+ "smooth": false
33
+ },
34
+ "radar": {
35
+ "itemStyle": {
36
+ "borderWidth": "1"
37
+ },
38
+ "lineStyle": {
39
+ "width": "2"
40
+ },
41
+ "symbolSize": "0",
42
+ "symbol": "circle",
43
+ "smooth": false
44
+ },
45
+ "bar": {
46
+ "itemStyle": {
47
+ "barBorderWidth": "0",
48
+ "barBorderColor": "#ccc"
49
+ }
50
+ },
51
+ "pie": {
52
+ "itemStyle": {
53
+ "borderWidth": "0",
54
+ "borderColor": "#ccc"
55
+ }
56
+ },
57
+ "scatter": {
58
+ "itemStyle": {
59
+ "borderWidth": "0",
60
+ "borderColor": "#ccc"
61
+ }
62
+ },
63
+ "boxplot": {
64
+ "itemStyle": {
65
+ "borderWidth": "0",
66
+ "borderColor": "#ccc"
67
+ }
68
+ },
69
+ "parallel": {
70
+ "itemStyle": {
71
+ "borderWidth": "0",
72
+ "borderColor": "#ccc"
73
+ }
74
+ },
75
+ "sankey": {
76
+ "itemStyle": {
77
+ "borderWidth": "0",
78
+ "borderColor": "#ccc"
79
+ }
80
+ },
81
+ "funnel": {
82
+ "itemStyle": {
83
+ "borderWidth": "0",
84
+ "borderColor": "#ccc"
85
+ }
86
+ },
87
+ "gauge": {
88
+ "itemStyle": {
89
+ "borderWidth": "0",
90
+ "borderColor": "#ccc"
91
+ }
92
+ },
93
+ "candlestick": {
94
+ "itemStyle": {
95
+ "color": "#fd1050",
96
+ "color0": "#0cf49b",
97
+ "borderColor": "#fd1050",
98
+ "borderColor0": "#0cf49b",
99
+ "borderWidth": 1
100
+ }
101
+ },
102
+ "graph": {
103
+ "itemStyle": {
104
+ "borderWidth": "0",
105
+ "borderColor": "#ccc"
106
+ },
107
+ "lineStyle": {
108
+ "width": 1,
109
+ "color": "#aaa"
110
+ },
111
+ "symbolSize": "0",
112
+ "symbol": "circle",
113
+ "smooth": false,
114
+ "color": [
115
+ "#2194ff",
116
+ "#f28941",
117
+ "#7a56e8",
118
+ "#00c7cc",
119
+ "#f44a4a",
120
+ "#5955ff",
121
+ "#ffe164",
122
+ "#d854ef",
123
+ "#4fe063"
124
+ ],
125
+ "label": {
126
+ "color": "#cccccc"
127
+ }
128
+ },
129
+ "map": {
130
+ "itemStyle": {
131
+ "areaColor": "#eee",
132
+ "borderColor": "#444",
133
+ "borderWidth": 0.5
134
+ },
135
+ "label": {
136
+ "color": "#000"
137
+ },
138
+ "emphasis": {
139
+ "itemStyle": {
140
+ "areaColor": "rgba(255,215,0,0.8)",
141
+ "borderColor": "#444",
142
+ "borderWidth": 1
143
+ },
144
+ "label": {
145
+ "color": "rgb(100,0,0)"
146
+ }
147
+ }
148
+ },
149
+ "geo": {
150
+ "itemStyle": {
151
+ "areaColor": "#eee",
152
+ "borderColor": "#444",
153
+ "borderWidth": 0.5
154
+ },
155
+ "label": {
156
+ "color": "#000"
157
+ },
158
+ "emphasis": {
159
+ "itemStyle": {
160
+ "areaColor": "rgba(255,215,0,0.8)",
161
+ "borderColor": "#444",
162
+ "borderWidth": 1
163
+ },
164
+ "label": {
165
+ "color": "rgb(100,0,0)"
166
+ }
167
+ }
168
+ },
169
+ "categoryAxis": {
170
+ "axisLine": {
171
+ "show": true,
172
+ "lineStyle": {
173
+ "color": "#282828"
174
+ }
175
+ },
176
+ "axisTick": {
177
+ "show": true,
178
+ "lineStyle": {
179
+ "color": "#282828"
180
+ }
181
+ },
182
+ "axisLabel": {
183
+ "show": true,
184
+ "color": "#cccccc"
185
+ },
186
+ "splitLine": {
187
+ "show": true,
188
+ "lineStyle": {
189
+ "color": [
190
+ "#282828"
191
+ ]
192
+ }
193
+ },
194
+ "splitArea": {
195
+ "show": false,
196
+ "areaStyle": {
197
+ "color": [
198
+ "#eeeeee"
199
+ ]
200
+ }
201
+ }
202
+ },
203
+ "valueAxis": {
204
+ "axisLine": {
205
+ "show": true,
206
+ "lineStyle": {
207
+ "color": "#282828"
208
+ }
209
+ },
210
+ "axisTick": {
211
+ "show": true,
212
+ "lineStyle": {
213
+ "color": "#282828"
214
+ }
215
+ },
216
+ "axisLabel": {
217
+ "show": true,
218
+ "color": "#cccccc"
219
+ },
220
+ "splitLine": {
221
+ "show": true,
222
+ "lineStyle": {
223
+ "color": [
224
+ "#282828"
225
+ ]
226
+ }
227
+ },
228
+ "splitArea": {
229
+ "show": false,
230
+ "areaStyle": {
231
+ "color": [
232
+ "#eeeeee"
233
+ ]
234
+ }
235
+ }
236
+ },
237
+ "logAxis": {
238
+ "axisLine": {
239
+ "show": true,
240
+ "lineStyle": {
241
+ "color": "#282828"
242
+ }
243
+ },
244
+ "axisTick": {
245
+ "show": true,
246
+ "lineStyle": {
247
+ "color": "#282828"
248
+ }
249
+ },
250
+ "axisLabel": {
251
+ "show": true,
252
+ "color": "#cccccc"
253
+ },
254
+ "splitLine": {
255
+ "show": true,
256
+ "lineStyle": {
257
+ "color": [
258
+ "#282828"
259
+ ]
260
+ }
261
+ },
262
+ "splitArea": {
263
+ "show": false,
264
+ "areaStyle": {
265
+ "color": [
266
+ "#eeeeee"
267
+ ]
268
+ }
269
+ }
270
+ },
271
+ "timeAxis": {
272
+ "axisLine": {
273
+ "show": true,
274
+ "lineStyle": {
275
+ "color": "#282828"
276
+ }
277
+ },
278
+ "axisTick": {
279
+ "show": true,
280
+ "lineStyle": {
281
+ "color": "#282828"
282
+ }
283
+ },
284
+ "axisLabel": {
285
+ "show": true,
286
+ "color": "#cccccc"
287
+ },
288
+ "splitLine": {
289
+ "show": true,
290
+ "lineStyle": {
291
+ "color": [
292
+ "#282828"
293
+ ]
294
+ }
295
+ },
296
+ "splitArea": {
297
+ "show": false,
298
+ "areaStyle": {
299
+ "color": [
300
+ "#eeeeee"
301
+ ]
302
+ }
303
+ }
304
+ },
305
+ "toolbox": {
306
+ "iconStyle": {
307
+ "borderColor": "#999"
308
+ },
309
+ "emphasis": {
310
+ "iconStyle": {
311
+ "borderColor": "#666"
312
+ }
313
+ }
314
+ },
315
+ "legend": {
316
+ "textStyle": {
317
+ "color": "#cccccc"
318
+ }
319
+ },
320
+ "tooltip": {
321
+ "axisPointer": {
322
+ "lineStyle": {
323
+ "color": "#eeeeee",
324
+ "width": "1"
325
+ },
326
+ "crossStyle": {
327
+ "color": "#eeeeee",
328
+ "width": "1"
329
+ }
330
+ }
331
+ },
332
+ "timeline": {
333
+ "lineStyle": {
334
+ "color": "#eeeeee",
335
+ "width": 1
336
+ },
337
+ "itemStyle": {
338
+ "color": "#dd6b66",
339
+ "borderWidth": 1
340
+ },
341
+ "controlStyle": {
342
+ "color": "#eeeeee",
343
+ "borderColor": "#eeeeee",
344
+ "borderWidth": 0.5
345
+ },
346
+ "checkpointStyle": {
347
+ "color": "#e43c59",
348
+ "borderColor": "#c23531"
349
+ },
350
+ "label": {
351
+ "color": "#eeeeee"
352
+ },
353
+ "emphasis": {
354
+ "itemStyle": {
355
+ "color": "#a9334c"
356
+ },
357
+ "controlStyle": {
358
+ "color": "#eeeeee",
359
+ "borderColor": "#eeeeee",
360
+ "borderWidth": 0.5
361
+ },
362
+ "label": {
363
+ "color": "#eeeeee"
364
+ }
365
+ }
366
+ },
367
+ "visualMap": {
368
+ "color": [
369
+ "#bf444c",
370
+ "#d88273",
371
+ "#f6efa6"
372
+ ]
373
+ },
374
+ "dataZoom": {
375
+ "backgroundColor": "rgba(47,69,84,0)",
376
+ "dataBackgroundColor": "rgba(255,255,255,0.3)",
377
+ "fillerColor": "rgba(167,183,204,0.4)",
378
+ "handleColor": "#a7b7cc",
379
+ "handleSize": "100%",
380
+ "textStyle": {
381
+ "color": "#eeeeee"
382
+ }
383
+ },
384
+ "markPoint": {
385
+ "label": {
386
+ "color": "#cccccc"
387
+ },
388
+ "emphasis": {
389
+ "label": {
390
+ "color": "#cccccc"
391
+ }
392
+ }
393
+ }
394
+ }
@@ -0,0 +1,3 @@
1
+ import theme from './CWTheme';
2
+
3
+ export default theme;
@@ -0,0 +1,161 @@
1
+ // 通用
2
+ @border-radius-base: 2px;
3
+ @border-radius-sm: 2px;
4
+ @vertical-margin: 3px; // 组件上下基础间距
5
+ @font-size-base: 12px; // 基础字号
6
+ @font-size-lg:16px; // 大号字体
7
+ @btn-font-size-lg:14px;
8
+ // 基础布局
9
+ @layout-sider-shadow: none; // 布局左侧阴影
10
+ @layout-header-height: 48px; // 头部高度
11
+ // 按钮
12
+ @btn-font-size-lg:14px; // 大尺寸按钮字体大小
13
+ @btn-shadow: none;
14
+ @btn-text-shadow: none;
15
+ @btn-height-base: 28px; //默认按钮高度
16
+ @btn-padding-lg: 0 15px; //大尺寸按钮内间距
17
+ @btn-padding-base: 0 11px; //默认按钮内间距
18
+ @btn-primary-shadow: none;
19
+ @btn-padding-main: 0 23px;
20
+
21
+ // 菜单
22
+ @menu-split-border-color: transparent; // 菜单分割线颜色
23
+ @menu-icon-size: 16px; // 连同字体
24
+ @menu-item-font-size: 14px;
25
+ @menu-item-boundary-margin: 0;
26
+ @menu-collapsed-width: 40px;
27
+ @menu-wrapper-padding: 4px 7px 8px 8px;
28
+ @menu-item-border-radius: 4px;
29
+ @menu-item-paddding-left: 8px;
30
+ @menu-item-margin: 4px 0 0 0;
31
+ @menu-arrow-right: 8px;
32
+ // 提示框
33
+ @tooltip-arrow-width:8.5px;
34
+ @tooltip-distance: 6px;
35
+
36
+ // 下拉菜单
37
+ @dropdown-edge-child-vertical-padding: 4px; // 下拉菜单上下padding
38
+ @control-padding-horizontal: 10px; // 下拉菜item左右padding
39
+ @dropdown-line-height: 20px; // 下拉菜item行高
40
+
41
+ // 抽屉
42
+ @drawer-header-padding: 0 24px; // UI规范
43
+
44
+ // input
45
+ @input-height-base: 28px; // 输入框高度
46
+ @input-padding-horizontal-base: 9px; // 输入框水平方向padding
47
+ @input-padding-vertical-base: 3px; // 输入框垂直方向padding
48
+ @input-padding-vertical-lg: 8px;
49
+ @input-padding-horizontal-lg: 11px;
50
+ // @input-addon-bg:@component-background;
51
+
52
+ // Form
53
+ @form-item-margin-bottom: 24px; // form item下边距
54
+ @form-component-max-height: @input-height-base;
55
+ @form-vertical-label-padding: 0 0 4px;
56
+ @form-explain-precision:0; // 帮助文本中间计算处理值原先为1px
57
+ @form-explain-height:20px; // 帮助文本高度
58
+ @form-help-margin-top:4px; // 帮助文本上间距
59
+ // 分页
60
+ @pagination-item-size: 28px; // 分页大小
61
+
62
+ // Tabs
63
+ @tabs-horizontal-padding: 10px 0px;
64
+ @tabs-horizontal-padding-lg: 15px 0px;
65
+ @tabs-title-font-size: 14px;
66
+ @tabs-title-font-size-lg: 14px; // 大号、小号字体大小均为14px
67
+ @tabs-card-horizontal-padding: 8px 15px;
68
+ // Switch
69
+ @switch-height: 20px;
70
+
71
+ // 徽标数
72
+ @badge-dot-size: 4px;
73
+ @badge-status-size: 8px;
74
+
75
+ // 表格
76
+ @table-padding-vertical: 12px;
77
+ @table-padding-horizontal: 12px;
78
+
79
+ // Popover
80
+ @popover-min-width: 180px;
81
+
82
+ // Radio
83
+ @radio-default-width: 298px; // 容器默认宽度
84
+ @radio-default-height: 124px; // 容器默认高度
85
+ @radio-padding-level: 23px; // 容器水平内间距
86
+ @radio-padding-vertical: 15px; // 容器垂直内间距
87
+ @radio-margin-right: 16px; // 容器的右边距
88
+ @radio-margin-bottom: 12px; // 容器的下边距
89
+ @radio-icon-width: 48px; // icon存放位置宽度
90
+ @radio-icon-height: 48px; // icon存放位置高度
91
+ @radio-icon-padding-right: 16px; // icon与内容区域间距
92
+ @radio-title-fontSize: 16px; // 内容标题部分字体大小
93
+ @radio-title-height: 24px; // 内容标题部分高度与行高
94
+ @radio-describe-fontSize: 12px; // 内容描述区字体大小
95
+ @radio-describe-marginTop: 8px; // 内容描述区与标题垂直间距
96
+ @radio-describe-lineHeight: 20px; // 内容描述区行高
97
+
98
+
99
+ // Checkbox
100
+ @checkbox-default-width: 242px; // 容器默认宽度
101
+ @checkbox-default-height: 104px; // 容器默认高度
102
+ @checkbox-yes-width: 24px; // 对勾宽高
103
+
104
+
105
+ // message
106
+ @message-wrapper-content-padding:-10px -16px; // 与父元素的padding间距相互抵消
107
+ @message-wrapper-content-padding-vertical: 9px; // 自定义父容器的默认垂直方向边距
108
+ @message-wrapper-content-padding-level:16px; // 自定义父容器的默认水平方向边距
109
+ @message-wrapper-content-padding-bottom-hasDec: 12px; // 自定义父容器当存在描述内容时的下边距
110
+ @message-wrapper-max-width:400px; // 自定义父容器的最大宽度
111
+ @message-wrapper-icon-width:16px; // icon宽高
112
+ @message-wrapper-img-x-width:8px; // icon关闭按钮宽高
113
+ @message-wrapper-title-fontSize:14px; // 标题字体大小
114
+ @message-wrapper-title-lineHeight:22px; // 标题行高
115
+ @message-wrapper-distance-x:16px; // 距离关闭图标的距离
116
+ @message-wrapper-dec-padding-left:@message-wrapper-content-padding-level + 8px; // 描述区域距离容器内边距的距离
117
+ @message-wrapper-dec-padding-right:@message-wrapper-content-padding-level + @message-wrapper-distance-x; // 描述区域距离容器右侧的距离
118
+ @message-wrapper-dec-fontSize:14px; // 描述字体大小
119
+ @message-wrapper-dec-lineHeight:22px; // 描述行高
120
+ @message-wrapper-dec-marginTop:6px; // 描述距离标题的间距
121
+
122
+
123
+ // Slider
124
+ @slider-margin:10px 8px;
125
+ @slider-wrapper-rail-width:6px; // 轨道宽高
126
+ @silder-wrapper-circle-width:18px; // 滑块宽高因为采用怪异盒子所有加上了边框宽度实际内容区16px
127
+ @slider-wrapper-circle-inner-width:4px; // 滑块区域内部的图片宽度
128
+ @slider-wrapper-circle-inner-height:6px; // 滑块区域内部的图片高度
129
+ @silder-wrapper-handle-level-margin-top:-6px; // 水平状态下滑块位置修正
130
+ @slider-wrapper-mark-vertical-margin-left:-3px; // 垂直状态下mark刻度标记位置修正
131
+ @slider-wrapper-handle-vertical-margin-left:-6px; // 垂直状态下滑块位置修正
132
+
133
+ // breadcrumb
134
+ // @breadcrumb-separator-margin: 0 10px;
135
+
136
+
137
+ // collapse
138
+ @collapse-header-padding-extra: 40px; // collapse header 左边距 默认40px
139
+ @collapse-content-padding: 16px; // 内容区padding
140
+ @collapse-header-padding:7px 16px; // collapse header 内间距
141
+
142
+ // layoutWrapper
143
+ @layout-footer-height: 52px;
144
+ // @layout-header-height: 58px;
145
+ @layout-wrapper-header-height: 58px;
146
+ @layout-wrapper-basic-padding: 20px;
147
+
148
+ // Steps
149
+ @steps-icon-size: 24px; // UI新规范
150
+
151
+ // AbreastLayout
152
+ @abreast-layout-content-padding: 0 20px 0 16px; // 左右布局内容区域padding
153
+
154
+ // CWMessage
155
+ @cw-message-content-padding: 0 24px; // 公共消息组件内容区域padding
156
+
157
+
158
+ @processing-color: @primary-color;
159
+
160
+ // notification
161
+ @zindex-notification: 950;