@qsxy/element-plus-react 1.0.0-next.18 → 1.0.0-next.21

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 (144) hide show
  1. package/README.md +12 -39
  2. package/dist/Breadcrumb/BreadcrumbItem.js +4 -7
  3. package/dist/Switch/Switch.js +50 -17
  4. package/dist/Switch/typings.d.ts +4 -0
  5. package/dist/Tooltip/Tooltip.js +2 -1
  6. package/dist/index.css +1 -1
  7. package/dist/index.d.ts +5 -5
  8. package/dist/index.js +2 -2
  9. package/package.json +1 -2
  10. package/theme-chalk/{avatar/index.scss → avatar.scss} +1 -1
  11. package/theme-chalk/{badge/index.scss → badge.scss} +1 -1
  12. package/theme-chalk/{breadcrumb/index.scss → breadcrumb.scss} +1 -1
  13. package/theme-chalk/build.scss +1 -1
  14. package/theme-chalk/button/_mixins.scss +3 -3
  15. package/theme-chalk/button/button-group.scss +1 -1
  16. package/theme-chalk/button/button.scss +2 -2
  17. package/theme-chalk/button/index.scss +2 -2
  18. package/theme-chalk/button--bak/_mixins.scss +317 -0
  19. package/theme-chalk/button--bak/button-group.scss +83 -0
  20. package/theme-chalk/button--bak/button.scss +382 -0
  21. package/theme-chalk/button--bak/index.scss +2 -0
  22. package/theme-chalk/button-group.scss +80 -0
  23. package/theme-chalk/button.scss +304 -0
  24. package/theme-chalk/calendar/date-picker.scss +1 -1
  25. package/theme-chalk/calendar/date-range-picker.scss +1 -1
  26. package/theme-chalk/calendar/date-table.scss +164 -156
  27. package/theme-chalk/calendar/date-table.scss--bak +156 -0
  28. package/theme-chalk/calendar/index.scss +6 -6
  29. package/theme-chalk/calendar/month-table.scss +1 -1
  30. package/theme-chalk/calendar/picker-panel.scss +1 -1
  31. package/theme-chalk/calendar/year-table.scss +1 -1
  32. package/theme-chalk/{card/index.scss → card.scss} +1 -1
  33. package/theme-chalk/{carousel/index.scss → carousel.scss} +1 -1
  34. package/theme-chalk/{cascader/cascader-panel.scss → cascader-panel.scss} +1 -1
  35. package/theme-chalk/{cascader/cascader.scss → cascader.scss} +1 -1
  36. package/theme-chalk/{checkbox-button/index.scss → checkbox-button.scss} +1 -1
  37. package/theme-chalk/{checkbox-group/index.scss → checkbox-group.scss} +1 -1
  38. package/theme-chalk/{checkbox/index.scss → checkbox.scss} +2 -1
  39. package/theme-chalk/col/_mixins.scss +5 -3
  40. package/theme-chalk/col/index.scss +2 -2
  41. package/theme-chalk/{collapse/index.scss → collapse.scss} +1 -1
  42. package/theme-chalk/color/index.scss +20 -0
  43. package/theme-chalk/{color-picker/index.scss → color-picker.scss} +3 -3
  44. package/theme-chalk/common/index.scss +127 -178
  45. package/theme-chalk/common/var.scss +1632 -0
  46. package/theme-chalk/dark/css-vars.scss +39 -0
  47. package/theme-chalk/dark/var.scss +225 -0
  48. package/theme-chalk/{date-picker/index.scss → date-picker.scss} +1 -1
  49. package/theme-chalk/{date-time-picker/time-picker.scss → date-time-picker.scss} +1 -1
  50. package/theme-chalk/{descriptions/descriptions-item.scss → descriptions-item.scss} +1 -1
  51. package/theme-chalk/{descriptions/descriptions.scss → descriptions.scss} +1 -1
  52. package/theme-chalk/dev.scss +2 -2
  53. package/theme-chalk/{dialog/index.scss → dialog.scss} +1 -1
  54. package/theme-chalk/display.scss +1 -1
  55. package/theme-chalk/{divider/index.scss → divider.scss} +1 -1
  56. package/theme-chalk/doc.scss +2 -2
  57. package/theme-chalk/{drawer/index.scss → drawer.scss} +1 -1
  58. package/theme-chalk/{dropdown/index.scss → dropdown.scss} +1 -1
  59. package/theme-chalk/{empty/index.scss → empty.scss} +1 -1
  60. package/theme-chalk/{form/index.scss → form.scss} +1 -1
  61. package/theme-chalk/icon/fonts.scss +9 -9
  62. package/theme-chalk/icon/index.scss +1 -1
  63. package/theme-chalk/icon/scss/_animated.scss +1 -0
  64. package/theme-chalk/icon/scss/_bordered-pulled.scss +1 -0
  65. package/theme-chalk/icon/scss/_core.scss +2 -0
  66. package/theme-chalk/icon/scss/_duotone-icons.scss +3 -4
  67. package/theme-chalk/icon/scss/_fixed-width.scss +1 -0
  68. package/theme-chalk/icon/scss/_functions.scss +2 -1
  69. package/theme-chalk/icon/scss/_icons.scss +3 -4
  70. package/theme-chalk/icon/scss/_list.scss +1 -0
  71. package/theme-chalk/icon/scss/_mixins.scss +10 -7
  72. package/theme-chalk/icon/scss/_rotated-flipped.scss +1 -0
  73. package/theme-chalk/icon/scss/_screen-reader.scss +2 -0
  74. package/theme-chalk/icon/scss/_shims.scss +292 -290
  75. package/theme-chalk/icon/scss/_sizing.scss +2 -0
  76. package/theme-chalk/icon/scss/_stacked.scss +1 -0
  77. package/theme-chalk/icon/scss/brands.scss +8 -6
  78. package/theme-chalk/icon/scss/duotone.scss +6 -5
  79. package/theme-chalk/icon/scss/fontawesome.scss +13 -13
  80. package/theme-chalk/icon/scss/index.scss +12 -15
  81. package/theme-chalk/icon/scss/light.scss +3 -2
  82. package/theme-chalk/icon/scss/regular.scss +3 -2
  83. package/theme-chalk/icon/scss/solid.scss +3 -2
  84. package/theme-chalk/icon/scss/thin.scss +3 -2
  85. package/theme-chalk/icon/scss/{_variables.scss → variables.scss} +2 -0
  86. package/theme-chalk/index.scss +63 -57
  87. package/theme-chalk/input/_mixins.scss +1 -1
  88. package/theme-chalk/input/index.scss +2 -3
  89. package/theme-chalk/input/input-range.scss +2 -1
  90. package/theme-chalk/input/input.scss +2 -1
  91. package/theme-chalk/{input-number/index.scss → input-number.scss} +4 -4
  92. package/theme-chalk/{link/index.scss → link.scss} +1 -1
  93. package/theme-chalk/{loading/index.scss → loading.scss} +1 -1
  94. package/theme-chalk/{message-box/index.scss → message-box.scss} +1 -1
  95. package/theme-chalk/{message/index.scss → message.scss} +2 -1
  96. package/theme-chalk/mixins/_button.scss +224 -0
  97. package/theme-chalk/mixins/_col.scss +33 -0
  98. package/theme-chalk/mixins/_var.scss +67 -0
  99. package/theme-chalk/{common/_var.scss → mixins/config.scss} +5 -6
  100. package/theme-chalk/mixins/function.scss +99 -0
  101. package/theme-chalk/mixins/mixins.scss +240 -0
  102. package/theme-chalk/mixins/utils.scss +39 -0
  103. package/theme-chalk/{notification/index.scss → notification.scss} +2 -1
  104. package/theme-chalk/pagination.scss +303 -0
  105. package/theme-chalk/{popconfirm/index.scss → popconfirm.scss} +1 -1
  106. package/theme-chalk/{popover/index.scss → popover.scss} +1 -1
  107. package/theme-chalk/popper.scss +104 -0
  108. package/theme-chalk/{popper/index.scss → popper.scss--bak} +1 -1
  109. package/theme-chalk/{progress/index.scss → progress.scss} +1 -1
  110. package/theme-chalk/radio-button.scss +169 -0
  111. package/theme-chalk/{radio/radio-button.scss → radio-button.scss--bak} +1 -1
  112. package/theme-chalk/{radio-group/index.scss → radio-group.scss} +1 -10
  113. package/theme-chalk/{radio/radio.scss → radio.scss} +1 -1
  114. package/theme-chalk/{row/index.scss → row.scss} +1 -1
  115. package/theme-chalk/{scrollbar/index.scss → scrollbar.scss} +1 -1
  116. package/theme-chalk/select/index.scss +1 -1
  117. package/theme-chalk/{skeleton/index.scss → skeleton.scss} +1 -1
  118. package/theme-chalk/switch.scss +300 -0
  119. package/theme-chalk/{switch/index.scss → switch.scss--bak} +1 -1
  120. package/theme-chalk/{table/index.scss → table.scss} +1 -1
  121. package/theme-chalk/{tabs/index.scss → tabs.scss} +1 -1
  122. package/theme-chalk/{tag/index.scss → tag.scss} +1 -1
  123. package/theme-chalk/{time-line/_timeline.scss → time-line.scss} +1 -1
  124. package/theme-chalk/{time-picker/index.scss → time-picker.scss} +1 -1
  125. package/theme-chalk/{date-time-picker/time-range-picker.scss → time-range-picker.scss} +1 -1
  126. package/theme-chalk/{time-line/_timeline-item.scss → timeline-item.scss} +1 -1
  127. package/theme-chalk/{tooltip/index.scss → tooltip.scss} +1 -1
  128. package/theme-chalk/{transfer/index.scss → transfer.scss} +1 -1
  129. package/theme-chalk/{transition/index.scss → transition.scss} +1 -1
  130. package/theme-chalk/tree/_directory.scss +1 -1
  131. package/theme-chalk/tree/_tree.scss +1 -1
  132. package/theme-chalk/tree/index.scss +2 -2
  133. package/theme-chalk/{tree-select/index.scss → tree-select.scss} +1 -1
  134. package/theme-chalk/{upload/index.scss → upload.scss} +1 -1
  135. package/theme-chalk/var.scss +83 -0
  136. package/theme-chalk/cascader/index.scss +0 -2
  137. package/theme-chalk/common/index.ts +0 -1
  138. package/theme-chalk/date-time-picker/index.scss +0 -3
  139. package/theme-chalk/descriptions/index.scss +0 -2
  140. package/theme-chalk/icon/scss/v4-shims.scss +0 -3
  141. package/theme-chalk/pagination/index.scss +0 -303
  142. package/theme-chalk/placeholder/index.scss +0 -120
  143. package/theme-chalk/radio/index.scss +0 -2
  144. package/theme-chalk/time-line/index.scss +0 -2
@@ -1,303 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-pagination {
4
- --el-pagination-font-size: 14px;
5
- --el-pagination-bg-color: var(--el-fill-color-blank);
6
- --el-pagination-text-color: var(--el-text-color-primary);
7
- --el-pagination-border-radius: 2px;
8
- --el-pagination-button-color: var(--el-text-color-primary);
9
- --el-pagination-button-width: 32px;
10
- --el-pagination-button-height: 32px;
11
- --el-pagination-button-disabled-color: var(--el-text-color-placeholder);
12
- --el-pagination-button-disabled-bg-color: var(--el-fill-color-blank);
13
- --el-pagination-button-bg-color: var(--el-fill-color);
14
- --el-pagination-hover-color: var(--el-color-primary);
15
- --el-pagination-font-size-small: 12px;
16
- --el-pagination-button-width-small: 24px;
17
- --el-pagination-button-height-small: 24px;
18
- --el-pagination-button-width-large: 40px;
19
- --el-pagination-button-height-large: 40px;
20
- --el-pagination-item-gap: 16px;
21
- white-space: nowrap;
22
- color: var(--el-pagination-text-color);
23
- font-size: var(--el-pagination-font-size);
24
- font-weight: 400;
25
- display: flex;
26
- align-items: center;
27
-
28
- .el-input__inner {
29
- text-align: center;
30
- -moz-appearance: textfield;
31
- }
32
-
33
- .el-select {
34
- width: 128px;
35
- }
36
-
37
- button {
38
- display: flex;
39
- justify-content: center;
40
- align-items: center;
41
- font-size: var(--el-pagination-font-size);
42
- min-width: var(--el-pagination-button-width);
43
- height: var(--el-pagination-button-height);
44
- line-height: var(--el-pagination-button-height);
45
- color: var(--el-pagination-button-color);
46
- background: var(--el-pagination-bg-color);
47
- padding: 0 4px;
48
- border: none;
49
- border-radius: var(--el-pagination-border-radius);
50
- cursor: pointer;
51
- text-align: center;
52
- box-sizing: border-box;
53
-
54
- * {
55
- pointer-events: none;
56
- }
57
-
58
- &:focus {
59
- outline: none;
60
- }
61
-
62
- &:hover {
63
- color: var(--el-pagination-hover-color);
64
- }
65
-
66
- &.is-active {
67
- color: var(--el-pagination-hover-color);
68
- cursor: default;
69
- font-weight: 700;
70
- }
71
-
72
- &.is-active.is-disabled {
73
- font-weight: 700;
74
- color: var(--el-text-color-secondary);
75
- }
76
-
77
- &:disabled,
78
- &.is-disabled {
79
- color: var(--el-pagination-button-disabled-color);
80
- background-color: var(--el-pagination-button-disabled-bg-color);
81
- cursor: not-allowed;
82
- }
83
-
84
- &:focus-visible {
85
- outline: 1px solid var(--el-pagination-hover-color);
86
- outline-offset: -1px;
87
- }
88
- }
89
-
90
- .btn-prev .el-icon,
91
- .btn-next .el-icon {
92
- display: block;
93
- font-size: 12px;
94
- font-weight: 700;
95
- width: inherit;
96
- }
97
-
98
- .el-pagination-item {
99
- &:first-child,
100
- &.is-simple {
101
- margin-left: 0 !important;
102
- }
103
-
104
- &:last-child {
105
- margin-right: 0 !important;
106
- }
107
- }
108
-
109
- .btn-prev {
110
- margin-left: var(--el-pagination-item-gap);
111
- }
112
-
113
- &.is-background {
114
- .btn-prev,
115
- .btn-next,
116
- li {
117
- margin: 0 4px;
118
- background-color: var(--el-pagination-button-bg-color);
119
- }
120
-
121
- .btn-prev.is-active,
122
- .btn-next.is-active,
123
- li.is-active {
124
- background-color: var(--el-color-primary);
125
- color: var(--el-color-white);
126
- }
127
-
128
- .btn-prev:disabled,
129
- .btn-prev.is-disabled,
130
- .btn-next:disabled,
131
- .btn-next.is-disabled,
132
- li:disabled,
133
- li.is-disabled {
134
- color: var(--el-text-color-placeholder);
135
- background-color: var(--el-disabled-bg-color);
136
- }
137
-
138
- .btn-prev:disabled.is-active,
139
- .btn-prev.is-disabled.is-active,
140
- .btn-next:disabled.is-active,
141
- .btn-next.is-disabled.is-active,
142
- li:disabled.is-active,
143
- li.is-disabled.is-active {
144
- color: var(--el-text-color-secondary);
145
- background-color: var(--el-fill-color-dark);
146
- }
147
-
148
- .btn-prev {
149
- margin-left: var(--el-pagination-item-gap);
150
- }
151
- }
152
- }
153
-
154
- .el-pagination__sizes,
155
- .el-pagination__total {
156
- margin-left: var(--el-pagination-item-gap);
157
- font-weight: 400;
158
- color: var(--el-text-color-regular);
159
- }
160
-
161
- .el-pagination__total[disabled='true'] {
162
- color: var(--el-text-color-placeholder);
163
- }
164
-
165
- .el-pagination__jump {
166
- display: flex;
167
- align-items: center;
168
- margin-left: var(--el-pagination-item-gap);
169
- font-weight: 400;
170
- color: var(--el-text-color-regular);
171
- }
172
-
173
- .el-pagination__jump[disabled='true'] {
174
- color: var(--el-text-color-placeholder);
175
- }
176
-
177
- .el-pagination__goto {
178
- margin-right: 8px;
179
- }
180
-
181
- .el-pagination__editor {
182
- text-align: center;
183
- box-sizing: border-box;
184
-
185
- &.el-input {
186
- width: 56px;
187
- }
188
-
189
- .el-input__inner::-webkit-inner-spin-button,
190
- .el-input__inner::-webkit-outer-spin-button {
191
- -webkit-appearance: none;
192
- margin: 0;
193
- }
194
- }
195
-
196
- .el-pagination__classifier {
197
- margin-left: 8px;
198
- }
199
-
200
- .el-pagination__rightwrapper {
201
- flex: 1;
202
- display: flex;
203
- align-items: center;
204
- justify-content: flex-end;
205
- }
206
-
207
- .el-pagination--small {
208
- .btn-prev,
209
- .btn-next,
210
- .el-pager li {
211
- height: var(--el-pagination-button-height-small);
212
- line-height: var(--el-pagination-button-height-small);
213
- font-size: var(--el-pagination-font-size-small);
214
- min-width: var(--el-pagination-button-width-small);
215
- }
216
-
217
- span:not([class*='suffix']),
218
- button {
219
- font-size: var(--el-pagination-font-size-small);
220
- }
221
-
222
- .el-select {
223
- width: 100px;
224
- }
225
- }
226
-
227
- .el-pagination--large {
228
- .btn-prev,
229
- .btn-next,
230
- .el-pager li {
231
- height: var(--el-pagination-button-height-large);
232
- line-height: var(--el-pagination-button-height-large);
233
- min-width: var(--el-pagination-button-width-large);
234
- }
235
-
236
- .el-select {
237
- width: 160px;
238
- }
239
- }
240
-
241
- .#{$namespace}-pager {
242
- -webkit-user-select: none;
243
- user-select: none;
244
- list-style: none;
245
- font-size: 0;
246
- padding: 0;
247
- margin: 0;
248
- display: flex;
249
- align-items: center;
250
-
251
- li {
252
- display: flex;
253
- justify-content: center;
254
- align-items: center;
255
- font-size: var(--el-pagination-font-size);
256
- min-width: var(--el-pagination-button-width);
257
- height: var(--el-pagination-button-height);
258
- line-height: var(--el-pagination-button-height);
259
- color: var(--el-pagination-button-color);
260
- background: var(--el-pagination-bg-color);
261
- padding: 0 4px;
262
- border: none;
263
- border-radius: var(--el-pagination-border-radius);
264
- cursor: pointer;
265
- text-align: center;
266
- box-sizing: border-box;
267
-
268
- * {
269
- pointer-events: none;
270
- }
271
-
272
- &:focus {
273
- outline: none;
274
- }
275
-
276
- &:hover {
277
- color: var(--el-pagination-hover-color);
278
- }
279
-
280
- &.is-active {
281
- color: var(--el-pagination-hover-color);
282
- cursor: default;
283
- font-weight: 700;
284
- }
285
-
286
- &.is-active.is-disabled {
287
- font-weight: 700;
288
- color: var(--el-text-color-secondary);
289
- }
290
-
291
- &:disabled,
292
- &.is-disabled {
293
- color: var(--el-pagination-button-disabled-color);
294
- background-color: var(--el-pagination-button-disabled-bg-color);
295
- cursor: not-allowed;
296
- }
297
-
298
- &:focus-visible {
299
- outline: 1px solid var(--el-pagination-hover-color);
300
- outline-offset: -1px;
301
- }
302
- }
303
- }
@@ -1,120 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-skeleton {
4
- --#{$namespace}-skeleton-color: var(--#{$namespace}-fill-color);
5
- --#{$namespace}-skeleton-to-color: var(--#{$namespace}-fill-color-darker);
6
- }
7
-
8
- .is-dark {
9
- .#{$namespace}-skeleton {
10
- --#{$namespace}-skeleton-color: #3c3f43;
11
- --#{$namespace}-skeleton-to-color: #484c50;
12
- }
13
- }
14
-
15
- .#{$namespace}-skeleton {
16
- -webkit-box-pack: start;
17
- -ms-flex-pack: start;
18
- -webkit-box-align: start;
19
- -ms-flex-align: start;
20
- align-items: flex-start;
21
- justify-content: flex-start;
22
- display: flex;
23
-
24
- &-paragraph {
25
- justify-content: flex-start;
26
- align-items: flex-start;
27
-
28
- &-graph {
29
- flex: 0 0 auto;
30
- width: 60px;
31
- height: 60px;
32
- border-radius: 2px;
33
- margin-right: 20px;
34
- background-color: var(--#{$namespace}-skeleton-color);
35
-
36
- &-circle {
37
- border-radius: 50%;
38
- }
39
-
40
- &-image {
41
- width: 200px;
42
- height: 200px;
43
- display: flex;
44
- align-items: center;
45
- justify-content: center;
46
- border-radius: 0;
47
-
48
- & > svg {
49
- color: var(--el-border-color);
50
- fill: currentColor;
51
- width: 22%;
52
- height: 22%;
53
- }
54
- }
55
-
56
- &-image &-inner {
57
- width: 12px;
58
- height: 12px;
59
- right: 18px;
60
- top: 10px;
61
- border-radius: 50%;
62
- position: absolute;
63
- }
64
- }
65
-
66
- &-rows {
67
- width: 100%;
68
-
69
- .#{$namespace}-skeleton__item {
70
- background-color: var(--#{$namespace}-skeleton-color);
71
- border-radius: 4px;
72
- }
73
- }
74
- }
75
-
76
- &-grid {
77
- &-col {
78
- flex: 1;
79
- display: flex;
80
- flex-direction: column;
81
- align-items: flex-end;
82
-
83
- & > p {
84
- background-color: var(--#{$namespace}-skeleton-color);
85
- border-radius: 4px;
86
- }
87
-
88
- &:first-child {
89
- align-items: flex-start; //first col align left
90
- }
91
- }
92
- }
93
-
94
- &-graph {
95
- display: inline-block;
96
- width: 100%;
97
- background-color: var(--#{$namespace}-skeleton-color);
98
- }
99
-
100
- &-active {
101
- &.#{$namespace}-skeleton-graph,
102
- .#{$namespace}-skeleton-paragraph-graph-image,
103
- .#{$namespace}-skeleton-grid-col > p,
104
- .#{$namespace}-skeleton-paragraph-rows > p {
105
- background: linear-gradient(-45deg, var(--#{$namespace}-skeleton-color) 25%, var(--#{$namespace}-skeleton-to-color) 37%, var(--#{$namespace}-skeleton-color) 63%);
106
- background-size: 400% 100% !important;
107
- animation: skeleton-active 1.4s ease infinite;
108
- }
109
- }
110
-
111
- @keyframes skeleton-active {
112
- 0% {
113
- background-position: 100% 50%;
114
- }
115
-
116
- 100% {
117
- background-position: 0 50%;
118
- }
119
- }
120
- }
@@ -1,2 +0,0 @@
1
- @import './radio.scss';
2
- @import './radio-button.scss';
@@ -1,2 +0,0 @@
1
- @import './timeline';
2
- @import './timeline-item';