@qsxy/element-plus-react 1.0.0-next.12 → 1.0.0-next.15

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 (187) hide show
  1. package/dist/Dialog/Dialog.js +5 -6
  2. package/dist/Dialog/DialogContext.d.ts +1 -1
  3. package/dist/Dialog/DialogContext.js +1 -1
  4. package/dist/Drawer/Drawer.d.ts +2 -5
  5. package/dist/Drawer/Drawer.js +98 -35
  6. package/dist/Drawer/DrawerBody.js +6 -12
  7. package/dist/Drawer/DrawerContext.d.ts +1 -13
  8. package/dist/Drawer/DrawerContext.js +1 -11
  9. package/dist/Drawer/DrawerHeader.js +5 -18
  10. package/dist/Drawer/typings.d.ts +31 -10
  11. package/dist/InputNumber/InputNumber.d.ts +2 -2
  12. package/dist/InputNumber/InputNumber.js +3 -3
  13. package/dist/Loading/Loading.d.ts +7 -2
  14. package/dist/Loading/Loading.js +108 -57
  15. package/dist/Loading/typings.d.ts +7 -1
  16. package/dist/Message/Main.d.ts +0 -7
  17. package/dist/Message/Main.js +0 -7
  18. package/dist/Message/Message.d.ts +2 -2
  19. package/dist/Message/Message.js +4 -3
  20. package/dist/Message/index.d.ts +0 -8
  21. package/dist/Message/index.js +5 -9
  22. package/dist/MessageBox/MessageBox.js +2 -1
  23. package/dist/MessageBox/index.d.ts +5 -5
  24. package/dist/MessageBox/index.js +1 -0
  25. package/dist/Notification/Main.d.ts +0 -7
  26. package/dist/Notification/Main.js +0 -7
  27. package/dist/Popover/Popover.d.ts +3 -2
  28. package/dist/Popover/Popover.js +10 -5
  29. package/dist/Popover/typings.d.ts +0 -1
  30. package/dist/Skeleton/PlaceholderGraph.d.ts +1 -1
  31. package/dist/Skeleton/PlaceholderGraph.js +3 -3
  32. package/dist/Skeleton/PlaceholderGrid.d.ts +1 -1
  33. package/dist/Skeleton/PlaceholderGrid.js +3 -3
  34. package/dist/Skeleton/PlaceholderParagraph.d.ts +2 -2
  35. package/dist/Skeleton/PlaceholderParagraph.js +13 -8
  36. package/dist/Skeleton/Skeleton.d.ts +2 -9
  37. package/dist/Skeleton/Skeleton.js +94 -7
  38. package/dist/Skeleton/SkeletonContext.d.ts +17 -0
  39. package/dist/Skeleton/SkeletonContext.js +5 -0
  40. package/dist/Skeleton/SkeletonItem.d.ts +4 -0
  41. package/dist/Skeleton/SkeletonItem.js +47 -0
  42. package/dist/Skeleton/index.d.ts +2 -3
  43. package/dist/Skeleton/index.js +2 -1
  44. package/dist/Skeleton/typings.d.ts +29 -0
  45. package/dist/Skeleton/typings.js +1 -0
  46. package/dist/Table/Table.d.ts +0 -1
  47. package/dist/Table/Table.js +1 -1
  48. package/dist/Table/hooks/useSelection.d.ts +1 -1
  49. package/dist/Tooltip/Tooltip.d.ts +3 -3
  50. package/dist/Tooltip/Tooltip.js +6 -6
  51. package/dist/index.css +1 -1
  52. package/dist/index.d.ts +2 -2
  53. package/dist/index.js +1 -1
  54. package/package.json +1 -1
  55. package/theme-chalk/drawer/index.scss +61 -65
  56. package/theme-chalk/message/index.scss +11 -3
  57. package/theme-chalk/placeholder/index.scss +22 -37
  58. package/dist/theme-chalk/avatar/index.scss +0 -50
  59. package/dist/theme-chalk/badge/index.scss +0 -63
  60. package/dist/theme-chalk/breadcrumb/index.scss +0 -65
  61. package/dist/theme-chalk/build.scss +0 -2
  62. package/dist/theme-chalk/button/_mixins.scss +0 -317
  63. package/dist/theme-chalk/button/button-group.scss +0 -83
  64. package/dist/theme-chalk/button/button.scss +0 -382
  65. package/dist/theme-chalk/button/index.scss +0 -2
  66. package/dist/theme-chalk/calendar/date-picker.scss +0 -112
  67. package/dist/theme-chalk/calendar/date-range-picker.scss +0 -139
  68. package/dist/theme-chalk/calendar/date-table.scss +0 -156
  69. package/dist/theme-chalk/calendar/index.scss +0 -6
  70. package/dist/theme-chalk/calendar/month-table.scss +0 -92
  71. package/dist/theme-chalk/calendar/picker-panel.scss +0 -136
  72. package/dist/theme-chalk/calendar/year-table.scss +0 -107
  73. package/dist/theme-chalk/card/index.scss +0 -44
  74. package/dist/theme-chalk/carousel/index.scss +0 -237
  75. package/dist/theme-chalk/cascader/cascader-panel.scss +0 -184
  76. package/dist/theme-chalk/cascader/cascader.scss +0 -239
  77. package/dist/theme-chalk/cascader/index.scss +0 -2
  78. package/dist/theme-chalk/checkbox/index.scss +0 -255
  79. package/dist/theme-chalk/checkbox-button/index.scss +0 -117
  80. package/dist/theme-chalk/checkbox-group/index.scss +0 -33
  81. package/dist/theme-chalk/col/_mixins.scss +0 -62
  82. package/dist/theme-chalk/col/index.scss +0 -50
  83. package/dist/theme-chalk/collapse/index.scss +0 -84
  84. package/dist/theme-chalk/color-picker/index.scss +0 -340
  85. package/dist/theme-chalk/common/_var.scss +0 -6
  86. package/dist/theme-chalk/common/index.d.ts +0 -1
  87. package/dist/theme-chalk/common/index.js +0 -1
  88. package/dist/theme-chalk/common/index.scss +0 -222
  89. package/dist/theme-chalk/date-picker/index.scss +0 -253
  90. package/dist/theme-chalk/date-time-picker/index.scss +0 -3
  91. package/dist/theme-chalk/date-time-picker/time-picker.scss +0 -83
  92. package/dist/theme-chalk/date-time-picker/time-range-picker.scss +0 -32
  93. package/dist/theme-chalk/descriptions/descriptions-item.scss +0 -66
  94. package/dist/theme-chalk/descriptions/descriptions.scss +0 -160
  95. package/dist/theme-chalk/descriptions/index.scss +0 -2
  96. package/dist/theme-chalk/dev.scss +0 -2
  97. package/dist/theme-chalk/dialog/index.scss +0 -190
  98. package/dist/theme-chalk/display.scss +0 -46
  99. package/dist/theme-chalk/divider/index.scss +0 -51
  100. package/dist/theme-chalk/doc.scss +0 -2
  101. package/dist/theme-chalk/drawer/index.scss +0 -250
  102. package/dist/theme-chalk/dropdown/index.scss +0 -147
  103. package/dist/theme-chalk/empty/index.scss +0 -69
  104. package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
  105. package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
  106. package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
  107. package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
  108. package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
  109. package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
  110. package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
  111. package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
  112. package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
  113. package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
  114. package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
  115. package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
  116. package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
  117. package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
  118. package/dist/theme-chalk/form/index.scss +0 -378
  119. package/dist/theme-chalk/icon/fonts.scss +0 -9
  120. package/dist/theme-chalk/icon/index.scss +0 -44
  121. package/dist/theme-chalk/icon/scss/_animated.scss +0 -205
  122. package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +0 -20
  123. package/dist/theme-chalk/icon/scss/_core.scss +0 -33
  124. package/dist/theme-chalk/icon/scss/_duotone-icons.scss +0 -12
  125. package/dist/theme-chalk/icon/scss/_fixed-width.scss +0 -7
  126. package/dist/theme-chalk/icon/scss/_functions.scss +0 -57
  127. package/dist/theme-chalk/icon/scss/_icons.scss +0 -11
  128. package/dist/theme-chalk/icon/scss/_list.scss +0 -20
  129. package/dist/theme-chalk/icon/scss/_mixins.scss +0 -102
  130. package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +0 -31
  131. package/dist/theme-chalk/icon/scss/_screen-reader.scss +0 -14
  132. package/dist/theme-chalk/icon/scss/_shims.scss +0 -2606
  133. package/dist/theme-chalk/icon/scss/_sizing.scss +0 -16
  134. package/dist/theme-chalk/icon/scss/_stacked.scss +0 -32
  135. package/dist/theme-chalk/icon/scss/_variables.scss +0 -9189
  136. package/dist/theme-chalk/icon/scss/brands.scss +0 -27
  137. package/dist/theme-chalk/icon/scss/duotone.scss +0 -72
  138. package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -13
  139. package/dist/theme-chalk/icon/scss/index.scss +0 -15
  140. package/dist/theme-chalk/icon/scss/light.scss +0 -21
  141. package/dist/theme-chalk/icon/scss/regular.scss +0 -21
  142. package/dist/theme-chalk/icon/scss/solid.scss +0 -21
  143. package/dist/theme-chalk/icon/scss/thin.scss +0 -21
  144. package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -3
  145. package/dist/theme-chalk/index.scss +0 -67
  146. package/dist/theme-chalk/input/_mixins.scss +0 -16
  147. package/dist/theme-chalk/input/index.scss +0 -3
  148. package/dist/theme-chalk/input/input-range.scss +0 -208
  149. package/dist/theme-chalk/input/input.scss +0 -577
  150. package/dist/theme-chalk/input-number/index.scss +0 -172
  151. package/dist/theme-chalk/link/index.scss +0 -99
  152. package/dist/theme-chalk/loading/index.scss +0 -94
  153. package/dist/theme-chalk/message/index.scss +0 -169
  154. package/dist/theme-chalk/message-box/index.scss +0 -184
  155. package/dist/theme-chalk/notification/index.scss +0 -155
  156. package/dist/theme-chalk/pagination/index.scss +0 -515
  157. package/dist/theme-chalk/placeholder/index.scss +0 -135
  158. package/dist/theme-chalk/popconfirm/index.scss +0 -35
  159. package/dist/theme-chalk/popover/index.scss +0 -54
  160. package/dist/theme-chalk/popper/index.scss +0 -86
  161. package/dist/theme-chalk/progress/index.scss +0 -155
  162. package/dist/theme-chalk/radio/index.scss +0 -2
  163. package/dist/theme-chalk/radio/radio-button.scss +0 -128
  164. package/dist/theme-chalk/radio/radio.scss +0 -171
  165. package/dist/theme-chalk/radio-group/index.scss +0 -31
  166. package/dist/theme-chalk/row/index.scss +0 -30
  167. package/dist/theme-chalk/scrollbar/index.scss +0 -103
  168. package/dist/theme-chalk/select/index.scss +0 -244
  169. package/dist/theme-chalk/select/option-group.scss +0 -54
  170. package/dist/theme-chalk/select/option.scss +0 -63
  171. package/dist/theme-chalk/select/select-dropdown.scss +0 -57
  172. package/dist/theme-chalk/switch/index.scss +0 -273
  173. package/dist/theme-chalk/table/index.scss +0 -714
  174. package/dist/theme-chalk/tabs/index.scss +0 -620
  175. package/dist/theme-chalk/tag/index.scss +0 -360
  176. package/dist/theme-chalk/time-line/_timeline-item.scss +0 -90
  177. package/dist/theme-chalk/time-line/_timeline.scss +0 -50
  178. package/dist/theme-chalk/time-line/index.scss +0 -2
  179. package/dist/theme-chalk/time-picker/index.scss +0 -109
  180. package/dist/theme-chalk/tooltip/index.scss +0 -13
  181. package/dist/theme-chalk/transfer/index.scss +0 -247
  182. package/dist/theme-chalk/transition/index.scss +0 -756
  183. package/dist/theme-chalk/tree/_directory.scss +0 -73
  184. package/dist/theme-chalk/tree/_tree.scss +0 -401
  185. package/dist/theme-chalk/tree/index.scss +0 -2
  186. package/dist/theme-chalk/tree-select/index.scss +0 -25
  187. package/dist/theme-chalk/upload/index.scss +0 -631
@@ -1,317 +0,0 @@
1
- @use 'sass:map';
2
- @use '../common/var';
3
-
4
- // join var name
5
- // joinVarName(('button', 'text-color')) => '--el-button-text-color'
6
- @function joinVarName($list) {
7
- $name: '--el';
8
- @each $item in $list {
9
- @if $item != '' {
10
- $name: $name + '-' + $item;
11
- }
12
- }
13
- @return $name;
14
- }
15
-
16
- // getCssVar('button', 'text-color') => var(--el-button-text-color)
17
- @function getCssVar($args...) {
18
- @return var(#{joinVarName($args)});
19
- }
20
-
21
- // set css var value, because we need translate value to string
22
- // for example:
23
- // @include set-css-var-value(('color', 'primary'), red);
24
- // --el-color-primary: red;
25
- @mixin set-css-var-value($name, $value) {
26
- #{joinVarName($name)}: #{$value};
27
- }
28
-
29
- // generate css var from existing css var
30
- // for example:
31
- // @include css-var-from-global(('button', 'text-color'), ('color', $type))
32
- // --el-button-text-color: var(--el-color-#{$type});
33
- @mixin css-var-from-global($var, $gVar) {
34
- $varName: joinVarName($var);
35
- $gVarName: joinVarName($gVar);
36
- #{$varName}: var(#{$gVarName});
37
- }
38
-
39
- @mixin button-plain($type) {
40
- $button-color-types: (
41
- '': (
42
- 'text-color': (
43
- 'color',
44
- $type,
45
- ),
46
- 'bg-color': (
47
- 'color',
48
- $type,
49
- 'light-9',
50
- ),
51
- 'border-color': (
52
- 'color',
53
- $type,
54
- 'light-5',
55
- ),
56
- ),
57
- 'hover': (
58
- 'text-color': (
59
- 'color',
60
- 'white',
61
- ),
62
- 'bg-color': (
63
- 'color',
64
- $type,
65
- ),
66
- 'border-color': (
67
- 'color',
68
- $type,
69
- ),
70
- ),
71
- 'active': (
72
- 'text-color': (
73
- 'color',
74
- 'white',
75
- ),
76
- ),
77
- );
78
-
79
- @each $type, $typeMap in $button-color-types {
80
- @each $typeColor, $list in $typeMap {
81
- @include css-var-from-global(('button', $type, $typeColor), $list);
82
- }
83
- }
84
-
85
- &.is-disabled {
86
- &,
87
- &:hover,
88
- &:focus,
89
- &:active {
90
- color: getCssVar('color', $type, 'light-5');
91
- background-color: getCssVar('color', $type, 'light-9');
92
- border-color: getCssVar('color', $type, 'light-8');
93
- }
94
- }
95
- }
96
-
97
- @mixin button-dashed($type) {
98
- $button-color-types: (
99
- '': (
100
- 'text-color': (
101
- 'color',
102
- $type,
103
- ),
104
- 'bg-color': (
105
- 'fill-color-blank',
106
- ),
107
- 'border-color': (
108
- 'color',
109
- $type,
110
- ),
111
- ),
112
- 'hover': (
113
- 'text-color': (
114
- 'color',
115
- $type,
116
- 'light-3',
117
- ),
118
- 'bg-color': (
119
- 'fill-color-blank',
120
- ),
121
- 'border-color': (
122
- 'color',
123
- $type,
124
- 'light-3',
125
- ),
126
- ),
127
- 'active': (
128
- 'text-color': (
129
- 'color',
130
- $type,
131
- ),
132
- 'border-color': (
133
- 'color',
134
- $type,
135
- ),
136
- ),
137
- );
138
-
139
- @each $type, $typeMap in $button-color-types {
140
- @each $typeColor, $list in $typeMap {
141
- @include css-var-from-global(('button', $type, $typeColor), $list);
142
- }
143
- }
144
-
145
- &.is-disabled {
146
- &,
147
- &:hover,
148
- &:focus,
149
- &:active {
150
- color: getCssVar('color', $type, 'light-5');
151
- background-color: var(--#{$namespace}-fill-color-blank);
152
- border-color: getCssVar('color', $type, 'light-8');
153
- }
154
- }
155
- }
156
-
157
- @mixin button-link($type) {
158
- $button-color-types: (
159
- '': (
160
- 'text-color': (
161
- 'color',
162
- $type,
163
- ),
164
- // 'bg-color': (
165
- // 'color',
166
- // $type,
167
- // 'light-9',
168
- // ),
169
- // 'border-color': (
170
- // 'color',
171
- // $type,
172
- // 'transparent',
173
- // ),,,,,,,,,,,
174
- ),
175
- 'hover': (
176
- 'text-color': (
177
- 'color',
178
- 'white',
179
- ),
180
- // 'bg-color': (
181
- // 'color',
182
- // $type,
183
- // ),
184
- // 'border-color': (
185
- // 'color',
186
- // $type,
187
- // ),,,,,,,,,,,
188
- ),
189
- 'active': (
190
- 'text-color': (
191
- 'color',
192
- 'white',
193
- ),
194
- ),
195
- );
196
-
197
- @each $type, $typeMap in $button-color-types {
198
- @each $typeColor, $list in $typeMap {
199
- @include css-var-from-global(('button', $type, $typeColor), $list);
200
- }
201
- }
202
-
203
- &.is-disabled {
204
- &,
205
- &:hover,
206
- &:focus,
207
- &:active {
208
- color: getCssVar('color', $type, 'light-5');
209
- }
210
- }
211
- }
212
-
213
- @mixin button-variant($type) {
214
- $button-color-types: (
215
- '': (
216
- 'text-color': (
217
- 'color',
218
- 'white',
219
- ),
220
- 'bg-color': (
221
- 'color',
222
- $type,
223
- ),
224
- 'border-color': (
225
- 'color',
226
- $type,
227
- ),
228
- 'outline-color': (
229
- 'color',
230
- $type,
231
- 'light-5',
232
- ),
233
- 'active-color': (
234
- 'color',
235
- $type,
236
- 'dark-2',
237
- ),
238
- ),
239
- 'hover': (
240
- 'text-color': (
241
- 'color',
242
- 'white',
243
- ),
244
- 'link-text-color': (
245
- 'color',
246
- $type,
247
- 'light-5',
248
- ),
249
- 'bg-color': (
250
- 'color',
251
- $type,
252
- 'light-3',
253
- ),
254
- 'border-color': (
255
- 'color',
256
- $type,
257
- 'light-3',
258
- ),
259
- ),
260
- 'active': (
261
- 'bg-color': (
262
- 'color',
263
- $type,
264
- 'dark-2',
265
- ),
266
- 'border-color': (
267
- 'color',
268
- $type,
269
- 'dark-2',
270
- ),
271
- ),
272
- 'disabled': (
273
- 'text-color': (
274
- 'color',
275
- 'white',
276
- ),
277
- 'bg-color': (
278
- 'color',
279
- $type,
280
- 'light-5',
281
- ),
282
- 'border-color': (
283
- 'color',
284
- $type,
285
- 'light-5',
286
- ),
287
- ),
288
- );
289
-
290
- @each $type, $typeMap in $button-color-types {
291
- @each $typeColor, $list in $typeMap {
292
- @include css-var-from-global(('button', $type, $typeColor), $list);
293
- }
294
- }
295
-
296
- &.is-plain {
297
- @include button-plain($type);
298
- }
299
-
300
- &.is-dashed {
301
- @include button-dashed($type);
302
- }
303
-
304
- &.is-text,
305
- &.is-link {
306
- @include button-link($type);
307
- }
308
- }
309
-
310
- @mixin button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
311
- padding: $padding-vertical $padding-horizontal;
312
- font-size: $font-size;
313
- border-radius: $border-radius;
314
- &.is-round {
315
- padding: $padding-vertical $padding-horizontal;
316
- }
317
- }
@@ -1,83 +0,0 @@
1
- @use '../common/var';
2
- .#{$namespace}-button-group {
3
- display: inline-block;
4
- vertical-align: middle;
5
-
6
- &::before,
7
- &::after {
8
- display: table;
9
- content: '';
10
- }
11
- &::after {
12
- clear: both;
13
- }
14
-
15
- & > .#{$namespace}-button {
16
- float: left;
17
- position: relative;
18
- & + .#{$namespace}-button {
19
- margin-left: 0;
20
- }
21
- &:first-child {
22
- border-top-right-radius: 0;
23
- border-bottom-right-radius: 0;
24
- }
25
- &:last-child {
26
- border-top-left-radius: 0;
27
- border-bottom-left-radius: 0;
28
- }
29
- &:first-child:last-child {
30
- border-top-right-radius: 4px;
31
- border-bottom-right-radius: 4px;
32
- border-top-left-radius: 4px;
33
- border-bottom-left-radius: 4px;
34
-
35
- &.is-round {
36
- border-radius: var(--#{$namespace}-button-border-radius-round);
37
- }
38
-
39
- &.is-circle {
40
- border-radius: 50%;
41
- }
42
- }
43
- &:not(:first-child):not(:last-child) {
44
- border-radius: 0;
45
- }
46
- &:not(:last-child) {
47
- margin-right: -1px;
48
- }
49
-
50
- &:hover,
51
- &:focus,
52
- &:active {
53
- z-index: 1;
54
- }
55
-
56
- &.is-active {
57
- z-index: 1;
58
- }
59
- }
60
-
61
- & > .#{$namespace}-dropdown {
62
- & > .#{$namespace}-button {
63
- border-top-left-radius: 0;
64
- border-bottom-left-radius: 0;
65
- border-left-color: var(--#{$namespace}-button-divide-border-color);
66
- }
67
- }
68
-
69
- @each $type in (primary, success, warning, danger, info) {
70
- .#{$namespace}-button--#{$type} {
71
- &:first-child {
72
- border-right-color: var(--#{$namespace}-button-divide-border-color) !important;
73
- }
74
- &:last-child {
75
- border-left-color: var(--#{$namespace}-button-divide-border-color) !important;
76
- }
77
- &:not(:first-child):not(:last-child) {
78
- border-left-color: var(--#{$namespace}-button-divide-border-color) !important;
79
- border-right-color: var(--#{$namespace}-button-divide-border-color) !important;
80
- }
81
- }
82
- }
83
- }