@fle-ui/next 1.0.3 → 1.0.4-alpha.0

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 (68) hide show
  1. package/.history/package_20211223145956.json +146 -0
  2. package/.history/package_20211223211341.json +146 -0
  3. package/.history/package_20211223220710.json +146 -0
  4. package/.history/package_20211223221147.json +146 -0
  5. package/.history/package_20211223221328.json +146 -0
  6. package/.history/package_20211223221445.json +146 -0
  7. package/dist/@fle-ui/next.css +2254 -2212
  8. package/dist/@fle-ui/next.css.map +1 -1
  9. package/dist/@fle-ui/next.js +1165 -1247
  10. package/dist/@fle-ui/next.js.map +1 -1
  11. package/dist/@fle-ui/next.min.css +2 -2
  12. package/dist/@fle-ui/next.min.css.map +1 -1
  13. package/dist/@fle-ui/next.min.js +3 -3
  14. package/dist/@fle-ui/next.min.js.map +1 -1
  15. package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~31d645aa.js +13 -16
  16. package/docs-dist/components__avatar__avatar.md.js +227 -372
  17. package/docs-dist/components__button__button.md.js +27 -27
  18. package/docs-dist/components__form__form.md.js +1 -1
  19. package/docs-dist/components__layout__layout.md.js +1 -1
  20. package/docs-dist/components__modal__modal.md.js +17 -11
  21. package/docs-dist/components__popconfirm__popconfirm.md.js +51 -51
  22. package/docs-dist/components__upload__upload.md.js +6 -10
  23. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.chunk.css +2 -2
  24. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.js +1536 -1843
  25. package/docs-dist/demos_daolpu.chunk.css +2 -2
  26. package/docs-dist/demos_daolpu.js +2597 -2904
  27. package/docs-dist/demos_eert.js +1 -1
  28. package/docs-dist/demos_elbat.chunk.css +2 -2
  29. package/docs-dist/demos_elbat.js +645 -952
  30. package/docs-dist/demos_mrifnocpop.js +1 -1
  31. package/docs-dist/demos_mrof.js +0 -1
  32. package/docs-dist/demos_noitacifiton.js +1 -1
  33. package/docs-dist/demos_pot-kcab.js +9 -9
  34. package/docs-dist/demos_ratava.js +3 -3
  35. package/docs-dist/demos_redivorp-gifnoc.js +5 -5
  36. package/docs-dist/demos_rekcip-etad.js +2 -2
  37. package/docs-dist/demos_sbat.chunk.css +2 -2
  38. package/docs-dist/demos_sbat.js +2301 -2608
  39. package/docs-dist/demos_tupni.js +1 -1
  40. package/docs-dist/docs__story__index.md.js +22 -0
  41. package/docs-dist/umi.js +9 -8
  42. package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_eert~d~f20ff6ec.js +9204 -8936
  43. package/es/cascader/index.d.ts +11 -129
  44. package/es/cascader/index.js +151 -534
  45. package/es/cascader/style/css.js +1 -1
  46. package/es/cascader/style/index.css +205 -180
  47. package/es/cascader/style/index.d.ts +1 -1
  48. package/es/cascader/style/index.js +1 -1
  49. package/es/cascader/style/index.less +66 -205
  50. package/es/cascader/style/rtl.less +10 -84
  51. package/es/input-number/style/index.css +18 -4
  52. package/es/input-number/style/index.less +15 -2
  53. package/es/input-number/style/rtl.less +24 -7
  54. package/es/table/style/index.css +3 -0
  55. package/lib/cascader/index.d.ts +11 -129
  56. package/lib/cascader/index.js +153 -545
  57. package/lib/cascader/style/css.js +1 -1
  58. package/lib/cascader/style/index.css +205 -180
  59. package/lib/cascader/style/index.d.ts +1 -1
  60. package/lib/cascader/style/index.js +1 -1
  61. package/lib/cascader/style/index.less +66 -205
  62. package/lib/cascader/style/rtl.less +10 -84
  63. package/lib/input-number/style/index.css +18 -4
  64. package/lib/input-number/style/index.less +15 -2
  65. package/lib/input-number/style/rtl.less +24 -7
  66. package/lib/table/style/index.css +3 -0
  67. package/package.json +3 -2
  68. package/report.html +2 -2
@@ -6,4 +6,4 @@ require("./index.css");
6
6
 
7
7
  require("../../empty/style/css");
8
8
 
9
- require("../../input/style/css");
9
+ require("../../select/style/css");
@@ -2,7 +2,27 @@
2
2
  /* stylelint-disable no-duplicate-selectors */
3
3
  /* stylelint-disable */
4
4
  /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
- .ant-cascader {
5
+ @-webkit-keyframes antCheckboxEffect {
6
+ 0% {
7
+ transform: scale(1);
8
+ opacity: 0.5;
9
+ }
10
+ 100% {
11
+ transform: scale(1.6);
12
+ opacity: 0;
13
+ }
14
+ }
15
+ @keyframes antCheckboxEffect {
16
+ 0% {
17
+ transform: scale(1);
18
+ opacity: 0.5;
19
+ }
20
+ 100% {
21
+ transform: scale(1.6);
22
+ opacity: 0;
23
+ }
24
+ }
25
+ .ant-cascader-checkbox {
6
26
  box-sizing: border-box;
7
27
  margin: 0;
8
28
  padding: 0;
@@ -12,18 +32,123 @@
12
32
  line-height: 1.5715;
13
33
  list-style: none;
14
34
  font-feature-settings: 'tnum';
35
+ position: relative;
36
+ top: 0.2em;
37
+ line-height: 1;
38
+ white-space: nowrap;
39
+ outline: none;
40
+ cursor: pointer;
41
+ }
42
+ .ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-inner,
43
+ .ant-cascader-checkbox:hover .ant-cascader-checkbox-inner,
44
+ .ant-cascader-checkbox-input:focus + .ant-cascader-checkbox-inner {
45
+ border-color: #2c68ff;
46
+ }
47
+ .ant-cascader-checkbox-checked::after {
48
+ position: absolute;
49
+ top: 0;
50
+ left: 0;
51
+ width: 100%;
52
+ height: 100%;
53
+ border: 1px solid #2c68ff;
54
+ border-radius: 4px;
55
+ visibility: hidden;
56
+ -webkit-animation: antCheckboxEffect 0.36s ease-in-out;
57
+ animation: antCheckboxEffect 0.36s ease-in-out;
58
+ -webkit-animation-fill-mode: backwards;
59
+ animation-fill-mode: backwards;
60
+ content: '';
61
+ }
62
+ .ant-cascader-checkbox:hover::after,
63
+ .ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox::after {
64
+ visibility: visible;
65
+ }
66
+ .ant-cascader-checkbox-inner {
67
+ position: relative;
68
+ top: 0;
69
+ left: 0;
70
+ display: block;
71
+ width: 16px;
72
+ height: 16px;
73
+ direction: ltr;
74
+ background-color: #fff;
75
+ border: 1px solid #d2d2d2;
76
+ border-radius: 4px;
77
+ border-collapse: separate;
78
+ transition: all 0.3s;
15
79
  }
16
- .ant-cascader-input.ant-input {
17
- position: static;
80
+ .ant-cascader-checkbox-inner::after {
81
+ position: absolute;
82
+ top: 50%;
83
+ left: 21.5%;
84
+ display: table;
85
+ width: 5.71428571px;
86
+ height: 9.14285714px;
87
+ border: 2px solid #fff;
88
+ border-top: 0;
89
+ border-left: 0;
90
+ transform: rotate(45deg) scale(0) translate(-50%, -50%);
91
+ opacity: 0;
92
+ transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
93
+ content: ' ';
94
+ }
95
+ .ant-cascader-checkbox-input {
96
+ position: absolute;
97
+ top: 0;
98
+ right: 0;
99
+ bottom: 0;
100
+ left: 0;
101
+ z-index: 1;
18
102
  width: 100%;
19
- padding-right: 24px;
20
- background-color: transparent !important;
103
+ height: 100%;
21
104
  cursor: pointer;
105
+ opacity: 0;
22
106
  }
23
- .ant-cascader-picker-show-search .ant-cascader-input.ant-input {
24
- position: relative;
107
+ .ant-cascader-checkbox-checked .ant-cascader-checkbox-inner::after {
108
+ position: absolute;
109
+ display: table;
110
+ border: 2px solid #fff;
111
+ border-top: 0;
112
+ border-left: 0;
113
+ transform: rotate(45deg) scale(1) translate(-50%, -50%);
114
+ opacity: 1;
115
+ transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
116
+ content: ' ';
117
+ }
118
+ .ant-cascader-checkbox-checked .ant-cascader-checkbox-inner {
119
+ background-color: #2c68ff;
120
+ border-color: #2c68ff;
25
121
  }
26
- .ant-cascader-picker {
122
+ .ant-cascader-checkbox-disabled {
123
+ cursor: not-allowed;
124
+ }
125
+ .ant-cascader-checkbox-disabled.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner::after {
126
+ border-color: #a9a9a9;
127
+ -webkit-animation-name: none;
128
+ animation-name: none;
129
+ }
130
+ .ant-cascader-checkbox-disabled .ant-cascader-checkbox-input {
131
+ cursor: not-allowed;
132
+ }
133
+ .ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner {
134
+ background-color: #f1f1f1;
135
+ border-color: #d2d2d2 !important;
136
+ }
137
+ .ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner::after {
138
+ border-color: #f1f1f1;
139
+ border-collapse: separate;
140
+ -webkit-animation-name: none;
141
+ animation-name: none;
142
+ }
143
+ .ant-cascader-checkbox-disabled + span {
144
+ color: #a9a9a9;
145
+ cursor: not-allowed;
146
+ }
147
+ .ant-cascader-checkbox-disabled:hover::after,
148
+ .ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-disabled::after {
149
+ visibility: hidden;
150
+ }
151
+ .ant-cascader-checkbox-wrapper {
27
152
  box-sizing: border-box;
28
153
  margin: 0;
29
154
  padding: 0;
@@ -33,134 +158,88 @@
33
158
  line-height: 1.5715;
34
159
  list-style: none;
35
160
  font-feature-settings: 'tnum';
36
- position: relative;
37
- display: inline-block;
38
- background-color: #fff;
39
- border-radius: 4px;
40
- outline: 0;
161
+ display: inline-flex;
162
+ align-items: baseline;
163
+ line-height: unset;
41
164
  cursor: pointer;
42
- transition: color 0.3s;
43
165
  }
44
- .ant-cascader-picker-with-value .ant-cascader-picker-label {
45
- color: transparent;
166
+ .ant-cascader-checkbox-wrapper::after {
167
+ display: inline-block;
168
+ width: 0;
169
+ overflow: hidden;
170
+ content: '\a0';
46
171
  }
47
- .ant-cascader-picker-disabled {
48
- color: #a9a9a9;
49
- background: #f1f1f1;
172
+ .ant-cascader-checkbox-wrapper.ant-cascader-checkbox-wrapper-disabled {
50
173
  cursor: not-allowed;
51
174
  }
52
- .ant-cascader-picker-disabled .ant-cascader-input {
53
- cursor: not-allowed;
175
+ .ant-cascader-checkbox-wrapper + .ant-cascader-checkbox-wrapper {
176
+ margin-left: 8px;
54
177
  }
55
- .ant-cascader-picker:focus .ant-cascader-input {
56
- border-color: #548aff;
57
- box-shadow: 0 0 0 2px rgba(44, 104, 255, 0.2);
58
- border-right-width: 1px !important;
59
- outline: 0;
178
+ .ant-cascader-checkbox + span {
179
+ padding-right: 8px;
180
+ padding-left: 8px;
60
181
  }
61
- .ant-cascader-picker-borderless .ant-cascader-input {
62
- border-color: transparent !important;
63
- box-shadow: none !important;
182
+ .ant-cascader-checkbox-group {
183
+ box-sizing: border-box;
184
+ margin: 0;
185
+ padding: 0;
186
+ color: #4c4c4c;
187
+ font-size: 14px;
188
+ font-variant: tabular-nums;
189
+ line-height: 1.5715;
190
+ list-style: none;
191
+ font-feature-settings: 'tnum';
192
+ display: inline-block;
64
193
  }
65
- .ant-cascader-picker-show-search.ant-cascader-picker-focused {
66
- color: #a9a9a9;
194
+ .ant-cascader-checkbox-group-item {
195
+ margin-right: 8px;
67
196
  }
68
- .ant-cascader-picker-label {
69
- position: absolute;
70
- top: 50%;
71
- left: 0;
72
- width: 100%;
73
- height: 20px;
74
- margin-top: -10px;
75
- padding: 0 20px 0 12px;
76
- overflow: hidden;
77
- line-height: 20px;
78
- white-space: nowrap;
79
- text-overflow: ellipsis;
197
+ .ant-cascader-checkbox-group-item:last-child {
198
+ margin-right: 0;
80
199
  }
81
- .ant-cascader-picker-clear {
82
- position: absolute;
83
- top: 50%;
84
- right: 12px;
85
- z-index: 2;
86
- width: 12px;
87
- height: 12px;
88
- margin-top: -6px;
89
- color: #a9a9a9;
90
- font-size: 12px;
91
- line-height: 12px;
92
- background: #fff;
93
- cursor: pointer;
94
- opacity: 0;
95
- transition: color 0.3s ease, opacity 0.15s ease;
200
+ .ant-cascader-checkbox-group-item + .ant-cascader-checkbox-group-item {
201
+ margin-left: 0;
96
202
  }
97
- .ant-cascader-picker-clear:hover {
98
- color: #a9a9a9;
203
+ .ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner {
204
+ background-color: #fff;
205
+ border-color: #d2d2d2;
99
206
  }
100
- .ant-cascader-picker:hover .ant-cascader-picker-clear {
207
+ .ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner::after {
208
+ top: 50%;
209
+ left: 50%;
210
+ width: 8px;
211
+ height: 8px;
212
+ background-color: #2c68ff;
213
+ border: 0;
214
+ transform: translate(-50%, -50%) scale(1);
101
215
  opacity: 1;
216
+ content: ' ';
102
217
  }
103
- .ant-cascader-picker-arrow {
104
- position: absolute;
105
- top: 50%;
106
- right: 12px;
107
- z-index: 1;
108
- width: 12px;
109
- height: 12px;
110
- margin-top: -6px;
111
- color: #a9a9a9;
112
- font-size: 12px;
113
- line-height: 12px;
218
+ .ant-cascader-checkbox-indeterminate.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner::after {
219
+ background-color: #a9a9a9;
220
+ border-color: #a9a9a9;
114
221
  }
115
- .ant-cascader-picker-label:hover + .ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover + .ant-cascader-input) {
116
- border-color: #548aff;
117
- border-right-width: 1px !important;
222
+ .ant-cascader {
223
+ width: 184px;
118
224
  }
119
- .ant-cascader-picker-small .ant-cascader-picker-clear,
120
- .ant-cascader-picker-small .ant-cascader-picker-arrow {
121
- right: 8px;
225
+ .ant-cascader-checkbox {
226
+ top: 0;
227
+ margin-right: 8px;
122
228
  }
123
229
  .ant-cascader-menus {
124
- position: absolute;
125
- z-index: 1050;
126
- font-size: 14px;
127
- white-space: nowrap;
128
- background: #fff;
129
- border-radius: 4px;
130
- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
230
+ display: flex;
231
+ flex-wrap: nowrap;
232
+ align-items: flex-start;
131
233
  }
132
- .ant-cascader-menus ul,
133
- .ant-cascader-menus ol {
134
- margin: 0;
135
- list-style: none;
136
- }
137
- .ant-cascader-menus-empty,
138
- .ant-cascader-menus-hidden {
139
- display: none;
140
- }
141
- .ant-cascader-menus.ant-slide-up-enter.ant-slide-up-enter-active.ant-cascader-menus-placement-bottomLeft,
142
- .ant-cascader-menus.ant-slide-up-appear.ant-slide-up-appear-active.ant-cascader-menus-placement-bottomLeft {
143
- -webkit-animation-name: antSlideUpIn;
144
- animation-name: antSlideUpIn;
145
- }
146
- .ant-cascader-menus.ant-slide-up-enter.ant-slide-up-enter-active.ant-cascader-menus-placement-topLeft,
147
- .ant-cascader-menus.ant-slide-up-appear.ant-slide-up-appear-active.ant-cascader-menus-placement-topLeft {
148
- -webkit-animation-name: antSlideDownIn;
149
- animation-name: antSlideDownIn;
150
- }
151
- .ant-cascader-menus.ant-slide-up-leave.ant-slide-up-leave-active.ant-cascader-menus-placement-bottomLeft {
152
- -webkit-animation-name: antSlideUpOut;
153
- animation-name: antSlideUpOut;
154
- }
155
- .ant-cascader-menus.ant-slide-up-leave.ant-slide-up-leave-active.ant-cascader-menus-placement-topLeft {
156
- -webkit-animation-name: antSlideDownOut;
157
- animation-name: antSlideDownOut;
234
+ .ant-cascader-menus.ant-cascader-menu-empty .ant-cascader-menu {
235
+ width: 100%;
236
+ height: auto;
158
237
  }
159
238
  .ant-cascader-menu {
160
- display: inline-block;
161
239
  min-width: 111px;
162
240
  height: 180px;
163
241
  margin: 0;
242
+ margin: -4px 0;
164
243
  padding: 4px 0;
165
244
  overflow: auto;
166
245
  vertical-align: top;
@@ -168,18 +247,10 @@
168
247
  border-right: 1px solid #eeeeee;
169
248
  -ms-overflow-style: -ms-autohiding-scrollbar;
170
249
  }
171
- .ant-cascader-menu:first-child {
172
- border-radius: 4px 0 0 4px;
173
- }
174
- .ant-cascader-menu:last-child {
175
- margin-right: -1px;
176
- border-right-color: transparent;
177
- border-radius: 0 4px 4px 0;
178
- }
179
- .ant-cascader-menu:only-child {
180
- border-radius: 4px;
181
- }
182
250
  .ant-cascader-menu-item {
251
+ display: flex;
252
+ flex-wrap: nowrap;
253
+ align-items: center;
183
254
  padding: 5px 12px;
184
255
  overflow: hidden;
185
256
  line-height: 22px;
@@ -208,14 +279,12 @@
208
279
  font-weight: 600;
209
280
  background-color: #f0f7ff;
210
281
  }
211
- .ant-cascader-menu-item-expand {
212
- position: relative;
213
- padding-right: 24px;
282
+ .ant-cascader-menu-item-content {
283
+ flex: auto;
214
284
  }
215
285
  .ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,
216
286
  .ant-cascader-menu-item-loading-icon {
217
- position: absolute;
218
- right: 12px;
287
+ margin-left: 4px;
219
288
  color: #a9a9a9;
220
289
  font-size: 10px;
221
290
  }
@@ -223,60 +292,16 @@
223
292
  .ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon {
224
293
  color: #a9a9a9;
225
294
  }
226
- .ant-cascader-menu-item .ant-cascader-menu-item-keyword {
295
+ .ant-cascader-menu-item-keyword {
227
296
  color: #ff4d4f;
228
297
  }
229
- .ant-cascader-picker-rtl .ant-cascader-input.ant-input {
230
- padding-right: 11px;
231
- padding-left: 24px;
232
- text-align: right;
233
- }
234
- .ant-cascader-picker-rtl {
235
- direction: rtl;
236
- }
237
- .ant-cascader-picker-rtl .ant-cascader-picker-label {
238
- padding: 0 12px 0 20px;
239
- text-align: right;
240
- }
241
- .ant-cascader-picker-rtl .ant-cascader-picker-clear {
242
- right: auto;
243
- left: 12px;
244
- }
245
- .ant-cascader-picker-rtl .ant-cascader-picker-arrow {
246
- right: auto;
247
- left: 12px;
248
- }
249
- .ant-cascader-picker-rtl.ant-cascader-picker-small .ant-cascader-picker-clear,
250
- .ant-cascader-picker-rtl.ant-cascader-picker-small .ant-cascader-picker-arrow {
251
- right: auto;
252
- left: 8px;
253
- }
254
- .ant-cascader-menu-rtl .ant-cascader-menu {
255
- direction: rtl;
256
- border-right: none;
257
- border-left: 1px solid #eeeeee;
298
+ .ant-cascader-rtl .ant-cascader-menu-item-expand-icon,
299
+ .ant-cascader-rtl .ant-cascader-menu-item-loading-icon {
300
+ margin-right: 4px;
301
+ margin-left: 0;
258
302
  }
259
- .ant-cascader-menu-rtl .ant-cascader-menu:first-child {
260
- border-radius: 0 4px 4px 0;
261
- }
262
- .ant-cascader-menu-rtl .ant-cascader-menu:last-child {
303
+ .ant-cascader-rtl .ant-cascader-checkbox {
304
+ top: 0;
263
305
  margin-right: 0;
264
- margin-left: -1px;
265
- border-left-color: transparent;
266
- border-radius: 4px 0 0 4px;
267
- }
268
- .ant-cascader-menu-rtl .ant-cascader-menu:only-child {
269
- border-radius: 4px;
270
- }
271
- .ant-cascader-menu-rtl .ant-cascader-menu-item-expand {
272
- padding-right: 12px;
273
- padding-left: 24px;
274
- }
275
- .ant-cascader-menu-rtl .ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,
276
- .ant-cascader-menu-rtl .ant-cascader-menu-item-loading-icon {
277
- right: auto;
278
- left: 12px;
279
- }
280
- .ant-cascader-menu-rtl .ant-cascader-menu-item-loading-icon {
281
- transform: scaleY(-1);
306
+ margin-left: 8px;
282
307
  }
@@ -1,4 +1,4 @@
1
1
  import '../../style/index.less';
2
2
  import './index.less';
3
3
  import '../../empty/style';
4
- import '../../input/style';
4
+ import '../../select/style';
@@ -6,4 +6,4 @@ require("./index.less");
6
6
 
7
7
  require("../../empty/style");
8
8
 
9
- require("../../input/style");
9
+ require("../../select/style");