@chaoswise/ui 3.0.0 → 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.
Files changed (58) 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 -1
@@ -0,0 +1,129 @@
1
+ .move-motion(@className, @keyframeName) {
2
+ @name: ~'@{ant-prefix}-@{className}';
3
+ .make-motion(@name, @keyframeName);
4
+ .@{name}-enter,
5
+ .@{name}-appear {
6
+ opacity: 0;
7
+ animation-timing-function: @ease-out-circ;
8
+ }
9
+ .@{name}-leave {
10
+ animation-timing-function: @ease-in-circ;
11
+ }
12
+ }
13
+
14
+ .move-motion(move-up, antMoveUp);
15
+ .move-motion(move-down, antMoveDown);
16
+ .move-motion(move-left, antMoveLeft);
17
+ .move-motion(move-right, antMoveRight);
18
+
19
+ @keyframes antMoveDownIn {
20
+ 0% {
21
+ transform: translateY(100%);
22
+ transform-origin: 0 0;
23
+ opacity: 0;
24
+ }
25
+
26
+ 100% {
27
+ transform: translateY(0%);
28
+ transform-origin: 0 0;
29
+ opacity: 1;
30
+ }
31
+ }
32
+
33
+ @keyframes antMoveDownOut {
34
+ 0% {
35
+ transform: translateY(0%);
36
+ transform-origin: 0 0;
37
+ opacity: 1;
38
+ }
39
+
40
+ 100% {
41
+ transform: translateY(100%);
42
+ transform-origin: 0 0;
43
+ opacity: 0;
44
+ }
45
+ }
46
+
47
+ @keyframes antMoveLeftIn {
48
+ 0% {
49
+ transform: translateX(-100%);
50
+ transform-origin: 0 0;
51
+ opacity: 0;
52
+ }
53
+
54
+ 100% {
55
+ transform: translateX(0%);
56
+ transform-origin: 0 0;
57
+ opacity: 1;
58
+ }
59
+ }
60
+
61
+ @keyframes antMoveLeftOut {
62
+ 0% {
63
+ transform: translateX(0%);
64
+ transform-origin: 0 0;
65
+ opacity: 1;
66
+ }
67
+
68
+ 100% {
69
+ transform: translateX(-100%);
70
+ transform-origin: 0 0;
71
+ opacity: 0;
72
+ }
73
+ }
74
+
75
+ @keyframes antMoveRightIn {
76
+ 0% {
77
+ transform: translateX(100%);
78
+ transform-origin: 0 0;
79
+ opacity: 0;
80
+ }
81
+
82
+ 100% {
83
+ transform: translateX(0%);
84
+ transform-origin: 0 0;
85
+ opacity: 1;
86
+ }
87
+ }
88
+
89
+ @keyframes antMoveRightOut {
90
+ 0% {
91
+ transform: translateX(0%);
92
+ transform-origin: 0 0;
93
+ opacity: 1;
94
+ }
95
+
96
+ 100% {
97
+ transform: translateX(100%);
98
+ transform-origin: 0 0;
99
+ opacity: 0;
100
+ }
101
+ }
102
+
103
+ @keyframes antMoveUpIn {
104
+ 0% {
105
+ transform: translateY(-100%);
106
+ transform-origin: 0 0;
107
+ opacity: 0;
108
+ }
109
+
110
+ 100% {
111
+ transform: translateY(0%);
112
+ transform-origin: 0 0;
113
+ opacity: 1;
114
+ }
115
+ }
116
+
117
+ @keyframes antMoveUpOut {
118
+ 0% {
119
+ transform: translateY(0%);
120
+ transform-origin: 0 0;
121
+ opacity: 1;
122
+ }
123
+
124
+ 100% {
125
+ transform: translateY(-100%);
126
+ transform-origin: 0 0;
127
+ opacity: 0;
128
+ }
129
+ }
@@ -0,0 +1,51 @@
1
+ @keyframes loadingCircle {
2
+ 100% {
3
+ transform: rotate(360deg);
4
+ }
5
+ }
6
+
7
+ @click-animating-true: ~"[@{ant-prefix}-click-animating='true']";
8
+ @click-animating-with-extra-node-true: ~"[@{ant-prefix}-click-animating-without-extra-node='true']";
9
+
10
+ @{click-animating-true},
11
+ @{click-animating-with-extra-node-true} {
12
+ position: relative;
13
+ }
14
+
15
+ html {
16
+ --antd-wave-shadow-color: @primary-color;
17
+ --scroll-bar: 0;
18
+ }
19
+
20
+ @click-animating-with-extra-node-true-after: ~'@{click-animating-with-extra-node-true}::after';
21
+
22
+ @{click-animating-with-extra-node-true-after},
23
+ .@{ant-prefix}-click-animating-node {
24
+ position: absolute;
25
+ top: 0;
26
+ right: 0;
27
+ bottom: 0;
28
+ left: 0;
29
+ display: block;
30
+ border-radius: inherit;
31
+ box-shadow: 0 0 0 0 @primary-color;
32
+ box-shadow: 0 0 0 0 var(--antd-wave-shadow-color);
33
+ opacity: 0.2;
34
+ animation: fadeEffect 2s @ease-out-circ, waveEffect 0.4s @ease-out-circ;
35
+ animation-fill-mode: forwards;
36
+ content: '';
37
+ pointer-events: none;
38
+ }
39
+
40
+ @keyframes waveEffect {
41
+ 100% {
42
+ box-shadow: 0 0 0 @primary-color;
43
+ box-shadow: 0 0 0 @wave-animation-width var(--antd-wave-shadow-color);
44
+ }
45
+ }
46
+
47
+ @keyframes fadeEffect {
48
+ 100% {
49
+ opacity: 0;
50
+ }
51
+ }
@@ -0,0 +1,129 @@
1
+ .slide-motion(@className, @keyframeName) {
2
+ @name: ~'@{ant-prefix}-@{className}';
3
+ .make-motion(@name, @keyframeName);
4
+ .@{name}-enter,
5
+ .@{name}-appear {
6
+ opacity: 0;
7
+ animation-timing-function: @ease-out-quint;
8
+ }
9
+ .@{name}-leave {
10
+ animation-timing-function: @ease-in-quint;
11
+ }
12
+ }
13
+
14
+ .slide-motion(slide-up, antSlideUp);
15
+ .slide-motion(slide-down, antSlideDown);
16
+ .slide-motion(slide-left, antSlideLeft);
17
+ .slide-motion(slide-right, antSlideRight);
18
+
19
+ @keyframes antSlideUpIn {
20
+ 0% {
21
+ transform: scaleY(0.8);
22
+ transform-origin: 0% 0%;
23
+ opacity: 0;
24
+ }
25
+
26
+ 100% {
27
+ transform: scaleY(1);
28
+ transform-origin: 0% 0%;
29
+ opacity: 1;
30
+ }
31
+ }
32
+
33
+ @keyframes antSlideUpOut {
34
+ 0% {
35
+ transform: scaleY(1);
36
+ transform-origin: 0% 0%;
37
+ opacity: 1;
38
+ }
39
+
40
+ 100% {
41
+ transform: scaleY(0.8);
42
+ transform-origin: 0% 0%;
43
+ opacity: 0;
44
+ }
45
+ }
46
+
47
+ @keyframes antSlideDownIn {
48
+ 0% {
49
+ transform: scaleY(0.8);
50
+ transform-origin: 100% 100%;
51
+ opacity: 0;
52
+ }
53
+
54
+ 100% {
55
+ transform: scaleY(1);
56
+ transform-origin: 100% 100%;
57
+ opacity: 1;
58
+ }
59
+ }
60
+
61
+ @keyframes antSlideDownOut {
62
+ 0% {
63
+ transform: scaleY(1);
64
+ transform-origin: 100% 100%;
65
+ opacity: 1;
66
+ }
67
+
68
+ 100% {
69
+ transform: scaleY(0.8);
70
+ transform-origin: 100% 100%;
71
+ opacity: 0;
72
+ }
73
+ }
74
+
75
+ @keyframes antSlideLeftIn {
76
+ 0% {
77
+ transform: scaleX(0.8);
78
+ transform-origin: 0% 0%;
79
+ opacity: 0;
80
+ }
81
+
82
+ 100% {
83
+ transform: scaleX(1);
84
+ transform-origin: 0% 0%;
85
+ opacity: 1;
86
+ }
87
+ }
88
+
89
+ @keyframes antSlideLeftOut {
90
+ 0% {
91
+ transform: scaleX(1);
92
+ transform-origin: 0% 0%;
93
+ opacity: 1;
94
+ }
95
+
96
+ 100% {
97
+ transform: scaleX(0.8);
98
+ transform-origin: 0% 0%;
99
+ opacity: 0;
100
+ }
101
+ }
102
+
103
+ @keyframes antSlideRightIn {
104
+ 0% {
105
+ transform: scaleX(0.8);
106
+ transform-origin: 100% 0%;
107
+ opacity: 0;
108
+ }
109
+
110
+ 100% {
111
+ transform: scaleX(1);
112
+ transform-origin: 100% 0%;
113
+ opacity: 1;
114
+ }
115
+ }
116
+
117
+ @keyframes antSlideRightOut {
118
+ 0% {
119
+ transform: scaleX(1);
120
+ transform-origin: 100% 0%;
121
+ opacity: 1;
122
+ }
123
+
124
+ 100% {
125
+ transform: scaleX(0.8);
126
+ transform-origin: 100% 0%;
127
+ opacity: 0;
128
+ }
129
+ }
@@ -0,0 +1,179 @@
1
+ .zoom-motion(@className, @keyframeName, @duration: @animation-duration-base) {
2
+ @name: ~'@{ant-prefix}-@{className}';
3
+ .make-motion(@name, @keyframeName, @duration);
4
+ .@{name}-enter,
5
+ .@{name}-appear {
6
+ transform: scale(0); // need this by yiminghe
7
+ opacity: 0;
8
+ animation-timing-function: @ease-out-circ;
9
+
10
+ &-prepare {
11
+ transform: none;
12
+ }
13
+ }
14
+ .@{name}-leave {
15
+ animation-timing-function: @ease-in-out-circ;
16
+ }
17
+ }
18
+
19
+ // For Modal, Select choosen item
20
+ .zoom-motion(zoom, antZoom);
21
+ // For Popover, Popconfirm, Dropdown
22
+ .zoom-motion(zoom-big, antZoomBig);
23
+ // For Tooltip
24
+ .zoom-motion(zoom-big-fast, antZoomBig, @animation-duration-fast);
25
+
26
+ .zoom-motion(zoom-up, antZoomUp);
27
+ .zoom-motion(zoom-down, antZoomDown);
28
+ .zoom-motion(zoom-left, antZoomLeft);
29
+ .zoom-motion(zoom-right, antZoomRight);
30
+
31
+ @keyframes antZoomIn {
32
+ 0% {
33
+ transform: scale(0.2);
34
+ opacity: 0;
35
+ }
36
+
37
+ 100% {
38
+ transform: scale(1);
39
+ opacity: 1;
40
+ }
41
+ }
42
+
43
+ @keyframes antZoomOut {
44
+ 0% {
45
+ transform: scale(1);
46
+ }
47
+
48
+ 100% {
49
+ transform: scale(0.2);
50
+ opacity: 0;
51
+ }
52
+ }
53
+
54
+ @keyframes antZoomBigIn {
55
+ 0% {
56
+ transform: scale(0.8);
57
+ opacity: 0;
58
+ }
59
+
60
+ 100% {
61
+ transform: scale(1);
62
+ opacity: 1;
63
+ }
64
+ }
65
+
66
+ @keyframes antZoomBigOut {
67
+ 0% {
68
+ transform: scale(1);
69
+ }
70
+
71
+ 100% {
72
+ transform: scale(0.8);
73
+ opacity: 0;
74
+ }
75
+ }
76
+
77
+ @keyframes antZoomUpIn {
78
+ 0% {
79
+ transform: scale(0.8);
80
+ transform-origin: 50% 0%;
81
+ opacity: 0;
82
+ }
83
+
84
+ 100% {
85
+ transform: scale(1);
86
+ transform-origin: 50% 0%;
87
+ }
88
+ }
89
+
90
+ @keyframes antZoomUpOut {
91
+ 0% {
92
+ transform: scale(1);
93
+ transform-origin: 50% 0%;
94
+ }
95
+
96
+ 100% {
97
+ transform: scale(0.8);
98
+ transform-origin: 50% 0%;
99
+ opacity: 0;
100
+ }
101
+ }
102
+
103
+ @keyframes antZoomLeftIn {
104
+ 0% {
105
+ transform: scale(0.8);
106
+ transform-origin: 0% 50%;
107
+ opacity: 0;
108
+ }
109
+
110
+ 100% {
111
+ transform: scale(1);
112
+ transform-origin: 0% 50%;
113
+ }
114
+ }
115
+
116
+ @keyframes antZoomLeftOut {
117
+ 0% {
118
+ transform: scale(1);
119
+ transform-origin: 0% 50%;
120
+ }
121
+
122
+ 100% {
123
+ transform: scale(0.8);
124
+ transform-origin: 0% 50%;
125
+ opacity: 0;
126
+ }
127
+ }
128
+
129
+ @keyframes antZoomRightIn {
130
+ 0% {
131
+ transform: scale(0.8);
132
+ transform-origin: 100% 50%;
133
+ opacity: 0;
134
+ }
135
+
136
+ 100% {
137
+ transform: scale(1);
138
+ transform-origin: 100% 50%;
139
+ }
140
+ }
141
+
142
+ @keyframes antZoomRightOut {
143
+ 0% {
144
+ transform: scale(1);
145
+ transform-origin: 100% 50%;
146
+ }
147
+
148
+ 100% {
149
+ transform: scale(0.8);
150
+ transform-origin: 100% 50%;
151
+ opacity: 0;
152
+ }
153
+ }
154
+
155
+ @keyframes antZoomDownIn {
156
+ 0% {
157
+ transform: scale(0.8);
158
+ transform-origin: 50% 100%;
159
+ opacity: 0;
160
+ }
161
+
162
+ 100% {
163
+ transform: scale(1);
164
+ transform-origin: 50% 100%;
165
+ }
166
+ }
167
+
168
+ @keyframes antZoomDownOut {
169
+ 0% {
170
+ transform: scale(1);
171
+ transform-origin: 50% 100%;
172
+ }
173
+
174
+ 100% {
175
+ transform: scale(0.8);
176
+ transform-origin: 50% 100%;
177
+ opacity: 0;
178
+ }
179
+ }
@@ -0,0 +1,22 @@
1
+ // @import '../mixins/motion'; This has moved to theme/xxx inside.
2
+ @import 'motion/fade';
3
+ @import 'motion/move';
4
+ @import 'motion/other';
5
+ @import 'motion/slide';
6
+ @import 'motion/zoom';
7
+
8
+ // For common/openAnimation
9
+ .ant-motion-collapse-legacy {
10
+ overflow: hidden;
11
+
12
+ &-active {
13
+ transition: height @animation-duration-base @ease-in-out,
14
+ opacity @animation-duration-base @ease-in-out !important;
15
+ }
16
+ }
17
+
18
+ .ant-motion-collapse {
19
+ overflow: hidden;
20
+ transition: height @animation-duration-base @ease-in-out,
21
+ opacity @animation-duration-base @ease-in-out !important;
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.css");
@@ -0,0 +1,4 @@
1
+ @root-entry-name: default;
2
+
3
+ @import './themes/dark.less';
4
+ @import './core/index';