@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,360 +0,0 @@
1
- // @use 'sass:map';
2
-
3
- // @use '../../Common/styles/mixins/mixins' as *;
4
- // @use '../../Common/styles/mixins/var' as *;
5
- // @use '../../Common/styles/common/var' as *;
6
-
7
- // @include b(tag) {
8
- // @include set-component-css-var('tag', $tag);
9
- // }
10
-
11
- // $tag-border-width: 1px;
12
-
13
- // $tag-icon-span-gap: () !default;
14
- // $tag-icon-span-gap: map.merge(
15
- // (
16
- // 'large': 8px,
17
- // 'default': 6px,
18
- // 'small': 4px,
19
- // ),
20
- // $tag-icon-span-gap
21
- // );
22
-
23
- // @function returnVarList($var, $type: 'primary') {
24
- // $list: ('fill-color', 'blank');
25
- // @if $var != false {
26
- // $list: ('color', $type, $var);
27
- // }
28
- // @return $list;
29
- // }
30
- // // false mean --#{$namespace}-color-white
31
- // @mixin genTheme($backgroundColorWeight, $borderColorWeight, $hoverColorWeight) {
32
- // @include css-var-from-global(('tag', 'bg-color'), returnVarList($backgroundColorWeight));
33
- // @include css-var-from-global(('tag', 'border-color'), returnVarList($borderColorWeight));
34
- // @include css-var-from-global(('tag', 'hover-color'), returnVarList($hoverColorWeight));
35
-
36
- // @each $type in $types {
37
- // &.#{bem('tag', '', $type)} {
38
- // @include css-var-from-global(('tag', 'bg-color'), returnVarList($backgroundColorWeight, $type));
39
- // @include css-var-from-global(('tag', 'border-color'), returnVarList($borderColorWeight, $type));
40
- // @include css-var-from-global(('tag', 'hover-color'), returnVarList($hoverColorWeight, $type));
41
- // }
42
- // }
43
- // }
44
-
45
- // @include b(tag) {
46
- // @include genTheme('light-9', 'light-8', '');
47
-
48
- // @each $type in $types {
49
- // &.#{bem('tag', '', $type)} {
50
- // @include css-var-from-global(('tag', 'text-color'), ('color', $type));
51
- // }
52
- // }
53
-
54
- // @include when(hit) {
55
- // border-color: getCssVar('color', 'primary');
56
- // }
57
- // @include when(round) {
58
- // border-radius: getCssVar('tag', 'border-radius-rounded');
59
- // }
60
-
61
- // .#{$namespace}-tag__close {
62
- // flex-shrink: 0;
63
- // color: getCssVar('tag', 'text-color');
64
- // &:hover {
65
- // color: getCssVar('color-white');
66
- // background-color: getCssVar('tag-hover-color');
67
- // }
68
- // }
69
-
70
- // background-color: getCssVar('tag-bg-color');
71
- // border-color: getCssVar('tag-border-color');
72
- // color: getCssVar('tag-text-color');
73
-
74
- // display: inline-flex;
75
- // justify-content: center;
76
- // align-items: center;
77
- // vertical-align: middle;
78
- // height: map.get($tag-height, 'default');
79
- // padding: 0 map.get($tag-padding, 'default') - $border-width;
80
-
81
- // font-size: getCssVar('tag-font-size');
82
- // line-height: 1;
83
- // border-width: $tag-border-width;
84
- // border-style: solid;
85
- // border-radius: getCssVar('tag-border-radius');
86
- // box-sizing: border-box;
87
- // white-space: nowrap;
88
-
89
- // @include set-css-var-value('icon-size', 14px);
90
-
91
- // $svg-margin-size: 1px;
92
- // .#{$namespace}-icon {
93
- // border-radius: 50%;
94
- // cursor: pointer;
95
-
96
- // font-size: calc(#{getCssVar('icon-size')} - #{$svg-margin-size * 2});
97
- // height: getCssVar('icon-size');
98
- // width: getCssVar('icon-size');
99
- // }
100
-
101
- // .#{$namespace}-tag__close {
102
- // margin-left: map.get($tag-icon-span-gap, 'default');
103
- // }
104
-
105
- // @include m(dark) {
106
- // @include genTheme('', '', 'light-3');
107
- // @include css-var-from-global(('tag', 'text-color'), ('color', 'white'));
108
-
109
- // @include css-var-from-global(('tag', 'text-color'), ('color', 'white'));
110
- // @each $type in $types {
111
- // &.#{bem('tag', '', $type)} {
112
- // @include css-var-from-global(('tag', 'text-color'), ('color', 'white'));
113
- // }
114
- // }
115
- // }
116
-
117
- // @include m(plain) {
118
- // @include genTheme(false, 'light-5', '');
119
- // @include css-var-from-global(('tag', 'bg-color'), ('fill-color', 'blank'));
120
- // }
121
-
122
- // &.is-closable {
123
- // padding-right: map.get($tag-icon-span-gap, 'default') - $border-width;
124
- // }
125
-
126
- // @each $size in (large, small) {
127
- // @include m($size) {
128
- // padding: 0 map.get($tag-padding, $size) - $tag-border-width;
129
- // height: map.get($tag-height, $size);
130
-
131
- // @include set-css-var-value('icon-size', #{map.get($tag-icon-size, $size)});
132
-
133
- // .#{$namespace}-tag__close {
134
- // margin-left: map.get($tag-icon-span-gap, $size);
135
- // }
136
-
137
- // &.is-closable {
138
- // padding-right: map.get($tag-icon-span-gap, $size) - $border-width;
139
- // }
140
- // }
141
- // }
142
-
143
- // @include m(small) {
144
- // .#{$namespace}-icon-close {
145
- // transform: scale(0.8);
146
- // }
147
- // }
148
-
149
- // @each $type in $types {
150
- // &.#{bem('tag', '', $type)} {
151
- // @include when(hit) {
152
- // border-color: getCssVar('color', $type);
153
- // }
154
- // }
155
- // }
156
- // }
157
-
158
- @use 'sass:map';
159
- @use '../common/var';
160
-
161
- @function joinVarName($list) {
162
- $name: '';
163
- @each $item in $list {
164
- @if $item != '' {
165
- $name: $name + '-' + $item;
166
- }
167
- }
168
- @return $name;
169
- }
170
-
171
- $tag-border-width: 1px;
172
-
173
- $tag-height: () !default;
174
- $tag-height: map.merge(
175
- (
176
- 'large': 32px,
177
- 'default': 24px,
178
- 'small': 20px,
179
- ),
180
- $tag-height
181
- );
182
-
183
- $tag-padding: () !default;
184
- $tag-padding: map.merge(
185
- (
186
- 'large': 12px,
187
- 'default': 10px,
188
- 'small': 8px,
189
- ),
190
- $tag-padding
191
- );
192
-
193
- $tag-icon-size: () !default;
194
- $tag-icon-size: map.merge(
195
- (
196
- 'large': 16px,
197
- 'default': 14px,
198
- 'small': 12px,
199
- ),
200
- $tag-icon-size
201
- );
202
-
203
- $tag-icon-span-gap: () !default;
204
- $tag-icon-span-gap: map.merge(
205
- (
206
- 'large': 8px,
207
- 'default': 6px,
208
- 'small': 4px,
209
- ),
210
- $tag-icon-span-gap
211
- );
212
-
213
- @mixin genTheme($backgroundColorWeight, $borderColorWeight, $hoverColorWeight) {
214
- --#{$namespace}-tag-bg-color: var(--#{$namespace}-color-primary#{joinVarName($backgroundColorWeight)});
215
- --#{$namespace}-tag-border-color: var(--#{$namespace}-color-primary#{joinVarName($borderColorWeight)});
216
- --#{$namespace}-tag-hover-color: var(--#{$namespace}-color-primary#{joinVarName($hoverColorWeight)});
217
-
218
- @each $type in success, warning, error, info {
219
- &.#{$namespace}-tag--#{$type} {
220
- --#{$namespace}-tag-bg-color: var(--#{$namespace}-color#{joinVarName(($type, $backgroundColorWeight))});
221
- --#{$namespace}-tag-border-color: var(--#{$namespace}-color#{joinVarName(($type, $borderColorWeight))});
222
- --#{$namespace}-tag-hover-color: var(--#{$namespace}-color#{joinVarName(($type, $hoverColorWeight))});
223
- }
224
- }
225
- }
226
-
227
- .#{$namespace}-tag {
228
- --#{$namespace}-tag-font-size: 12px;
229
- --#{$namespace}-tag-border-radius: 4px;
230
- --#{$namespace}-tag-border-radius-rounded: 9999px;
231
- }
232
-
233
- .#{$namespace}-tag {
234
- @include genTheme('light-9', 'light-8', '');
235
- --#{$namespace}-tag-text-color: var(--#{$namespace}-color-primary);
236
- @each $type in success, warning, error, info {
237
- &.#{$namespace}-tag--#{$type} {
238
- --#{$namespace}-tag-text-color: var(--#{$namespace}-color-#{$type});
239
- }
240
- }
241
-
242
- &.is-hit {
243
- border-color: var(--#{$namespace}-color-primary);
244
- }
245
-
246
- &.is-round {
247
- border-radius: var(--#{$namespace}-tag-border-radius-rounded);
248
- }
249
-
250
- .#{$namespace}-tag__close {
251
- color: var(--#{$namespace}-tag-text-color);
252
- &:hover {
253
- color: var(--#{$namespace}-color-white);
254
- background-color: var(--#{$namespace}-tag-hover-color);
255
- }
256
- }
257
-
258
- background-color: var(--#{$namespace}-tag-bg-color);
259
- border-color: var(--#{$namespace}-tag-border-color);
260
- color: var(--#{$namespace}-tag-text-color);
261
-
262
- display: inline-flex;
263
- justify-content: center;
264
- align-items: center;
265
-
266
- height: map.get($tag-height, 'default');
267
- padding: 0 map.get($tag-padding, 'default') - 1px;
268
- font-size: 12px;
269
- line-height: 1;
270
- border-width: $tag-border-width;
271
- border-style: solid;
272
- border-radius: var(--#{$namespace}-tag-border-radius);
273
- box-sizing: border-box;
274
- white-space: nowrap;
275
- --#{$namespace}-icon-size: 14px;
276
-
277
- $svg-margin-size: 1px;
278
- .#{$namespace}-icon {
279
- border-radius: 50%;
280
- cursor: pointer;
281
-
282
- font-size: calc(#{var(--#{$namespace}-icon-size)} - #{$svg-margin-size * 2});
283
- height: var(--#{$namespace}-icon-size);
284
- width: var(--#{$namespace}-icon-size);
285
-
286
- text-align: center;
287
- position: relative;
288
- line-height: var(--#{$namespace}-icon-size);
289
- vertical-align: middle;
290
- right: -5px;
291
-
292
- svg {
293
- margin: 1px;
294
- }
295
- }
296
-
297
- .#{$namespace}-tag__close {
298
- margin-left: map.get($tag-icon-span-gap, 'default');
299
- }
300
-
301
- &.is-closable {
302
- padding-right: map.get($tag-icon-span-gap, 'default') - 1px;
303
- }
304
-
305
- @each $type in success, warning, error, info {
306
- &.#{$namespace}-tag--#{$type} {
307
- &.is-hit {
308
- border-color: var(--#{$namespace}-color-#{$type});
309
- }
310
- }
311
- }
312
- }
313
-
314
- .#{$namespace}-tag--dark {
315
- @include genTheme('', '', 'light-3');
316
- --#{$namespace}-tag-text-color: var(--#{$namespace}-color-white);
317
-
318
- @each $type in success, warning, error, info {
319
- &.#{$namespace}-tag--#{$type} {
320
- --#{$namespace}-tag-text-color: var(--#{$namespace}-color-white);
321
- }
322
- }
323
- }
324
-
325
- .#{$namespace}-tag--plain {
326
- --#{$namespace}-tag-bg-color: var(--#{$namespace}-fill-color-blank);
327
- --#{$namespace}-tag-border-color: var(--#{$namespace}-color-primary-light-5);
328
- --#{$namespace}-tag-hover-color: var(--#{$namespace}-color-primary);
329
-
330
- @each $type in success, warning, error, info {
331
- &.#{$namespace}-tag--#{$type} {
332
- --#{$namespace}-tag-bg-color: var(--#{$namespace}-fill-color-blank);
333
- --#{$namespace}-tag-border-color: var(--#{$namespace}-color#{joinVarName(($type, 'light-5'))});
334
- --#{$namespace}-tag-hover-color: var(--#{$namespace}-color#{joinVarName(($type, 'light-5'))});
335
- }
336
- }
337
- }
338
-
339
- @each $size in (large, default, small) {
340
- .#{$namespace}-tag--#{$size} {
341
- padding: 0 map.get($tag-padding, $size) - $tag-border-width;
342
- height: map.get($tag-height, $size);
343
-
344
- --#{$namespace}-icon-size: #{map.get($tag-icon-size, $size)};
345
-
346
- .#{$namespace}-tag__close {
347
- margin-left: map.get($tag-icon-span-gap, $size);
348
- }
349
-
350
- &.is-closable {
351
- padding-right: map.get($tag-icon-span-gap, $size) - 1px;
352
- }
353
- }
354
- }
355
-
356
- .#{$namespace}-tag--small {
357
- .#{$namespace}-icon-close {
358
- transform: scale(0.8);
359
- }
360
- }
@@ -1,90 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-timeline-item {
4
- position: relative;
5
- padding-bottom: 20px;
6
-
7
- & .#{$namespace}-timeline-item__icon {
8
- color: var(--#{$namespace}-color-white);
9
- font-size: var(--#{$namespace}-timeline-content-font-size-small);
10
- }
11
- }
12
-
13
- .#{$namespace}-timeline-item__wrapper {
14
- position: relative;
15
- padding-left: 28px;
16
- top: -3px;
17
- }
18
-
19
- .#{$namespace}-timeline-item__tail {
20
- position: absolute;
21
- left: 4px;
22
- height: 100%;
23
- border-left: 2px solid var(--#{$namespace}-timeline-node-color);
24
- }
25
-
26
- .#{$namespace}-timeline-item__node {
27
- position: absolute;
28
- background-color: var(--#{$namespace}-timeline-node-color);
29
- border-color: var(--#{$namespace}-timeline-node-color);
30
- border-radius: 50%;
31
- box-sizing: border-box;
32
- display: flex;
33
- justify-content: center;
34
- align-items: center;
35
-
36
- &.is-hollow {
37
- background: var(--#{$namespace}-color-white);
38
- border-style: solid;
39
- border-width: 2px;
40
- }
41
- }
42
-
43
- .#{$namespace}-timeline-item__node--normal {
44
- left: -1px;
45
- width: var(--#{$namespace}-timeline-node-size-normal);
46
- height: var(--#{$namespace}-timeline-node-size-normal);
47
- }
48
- .#{$namespace}-timeline-item__node--large {
49
- left: -2px;
50
- width: var(--#{$namespace}-timeline-node-size-large);
51
- height: var(--#{$namespace}-timeline-node-size-large);
52
- }
53
-
54
- .#{$namespace}-timeline-item__node--primary {
55
- background-color: var(--#{$namespace}-color-primary);
56
- border-color: var(--#{$namespace}-color-primary);
57
- }
58
-
59
- @each $type in (success, warning, danger, info) {
60
- .#{$namespace}-timeline-item__node--#{$type} {
61
- background-color: var(--#{$namespace}-color-#{$type});
62
- border-color: var(--#{$namespace}-color#{$type});
63
- }
64
- }
65
-
66
- .#{$namespace}-timeline-item__dot {
67
- position: absolute;
68
- display: flex;
69
- justify-content: center;
70
- align-items: center;
71
- }
72
-
73
- .#{$namespace}-timeline-item__content {
74
- color: var(--#{$namespace}-timeline-content-color);
75
- font-size: var(--#{$namespace}-timeline-content-font-size-large);
76
- }
77
-
78
- .#{$namespace}-timeline-item__timestamp {
79
- color: var(--#{$namespace}-timeline-timestamp-color);
80
- line-height: 1;
81
- font-size: var(--#{$namespace}-timeline-content-font-size-small);
82
-
83
- &.is-top {
84
- margin-bottom: 8px;
85
- padding-top: 4px;
86
- }
87
- &.is-bottom {
88
- margin-top: 8px;
89
- }
90
- }
@@ -1,50 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-timeline {
4
- --#{$namespace}-timeline-node-size-normal: 12px;
5
- --#{$namespace}-timeline-node-size-large: 14px;
6
- --#{$namespace}-timeline-timestamp-color: var(--#{$namespace}-text-color-secondary);
7
- --#{$namespace}-timeline-content-color: var(--#{$namespace}-text-color-primary);
8
- --#{$namespace}-timeline-content-font-size-small: 13px;
9
- --#{$namespace}-timeline-content-font-size-large: 14px;
10
- --#{$namespace}-timeline-node-color: var(--#{$namespace}-border-color-light);
11
- }
12
-
13
- .#{$namespace}-timeline {
14
- margin: 0;
15
- font-size: 14px;
16
- list-style: none;
17
-
18
- .#{$namespace}-timeline-item:last-child {
19
- .#{$namespace}-timeline-item__tail {
20
- display: none;
21
- }
22
- }
23
-
24
- .#{$namespace}-timeline-item__center {
25
- display: flex;
26
- align-items: center;
27
-
28
- .#{$namespace}-timeline-item__wrapper {
29
- width: 100%;
30
- }
31
-
32
- .#{$namespace}-timeline-item__tail {
33
- top: 0;
34
- }
35
- }
36
-
37
- .#{$namespace}-timeline-item__center:first-child {
38
- .#{$namespace}-timeline-item__tail {
39
- height: calc(50% + 10px);
40
- top: calc(50% - 10px);
41
- }
42
- }
43
-
44
- .#{$namespace}-timeline-item__center:last-child {
45
- .#{$namespace}-timeline-item__tail {
46
- display: block;
47
- height: calc(50% - 10px);
48
- }
49
- }
50
- }
@@ -1,2 +0,0 @@
1
- @import './timeline';
2
- @import './timeline-item';
@@ -1,109 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-time-spinner {
4
- &.has-seconds {
5
- .#{$namespace}-time-spinner__wrapper {
6
- width: 33.3%;
7
- }
8
- }
9
- }
10
- .#{$namespace}-time-spinner__wrapper {
11
- max-height: 192px;
12
- overflow: auto;
13
- display: inline-block;
14
- width: 50%;
15
- vertical-align: top;
16
- position: relative;
17
-
18
- .#{$namespace}-scrollbar__wrap:not(.#{$namespace}-scrollbar__wrap--hidden-default) {
19
- padding-bottom: 15px;
20
- }
21
-
22
- // &.is-arrow {
23
- // box-sizing: border-box;
24
- // text-align: center;
25
- // overflow: hidden;
26
-
27
- // .#{$namespace}-time-spinner__list {
28
- // transform: translateY(-32px);
29
- // }
30
-
31
- // .#{$namespace}-time-spinner__item:hover:not(.is-disabled):not(.is-active) {
32
- // background: #ffffff;
33
- // cursor: default;
34
- // }
35
- // }
36
- }
37
-
38
- // .#{$namespace}-time-spinner__arrow {
39
- // font-size: 12px;
40
- // color: #909399;
41
- // position: absolute;
42
- // left: 0;
43
- // width: 100%;
44
- // z-index: 1;
45
- // text-align: center;
46
- // height: 30px;
47
- // line-height: 30px;
48
- // cursor: pointer;
49
-
50
- // &:hover {
51
- // color: var(--#{$namespace}-color-primary);
52
- // }
53
-
54
- // &.arrow-up {
55
- // top: 10px;
56
- // }
57
-
58
- // &.arrow-down {
59
- // bottom: 10px;
60
- // }
61
- // }
62
-
63
- .#{$namespace}-time-spinner__input {
64
- &.#{$namespace}-input {
65
- width: 70%;
66
-
67
- .#{$namespace}-input__inner {
68
- padding: 0;
69
- text-align: center;
70
- }
71
- }
72
- }
73
-
74
- .#{$namespace}-time-spinner__list {
75
- padding: 0;
76
- margin: 0;
77
- list-style: none;
78
- text-align: center;
79
-
80
- &::after,
81
- &::before {
82
- content: '';
83
- display: block;
84
- width: 100%;
85
- height: 80px;
86
- }
87
- }
88
-
89
- .#{$namespace}-time-spinner__item {
90
- height: 32px;
91
- line-height: 32px;
92
- font-size: 12px;
93
- color: var(--#{$namespace}-text-color-regular);
94
-
95
- &:hover:not(.is-disabled):not(.is-active) {
96
- background: var(--#{$namespace}-fill-color-light);
97
- cursor: pointer;
98
- }
99
-
100
- &.is-active:not(.is-disabled) {
101
- color: var(--#{$namespace}-text-color-primary);
102
- font-weight: bold;
103
- }
104
-
105
- &.is-disabled {
106
- color: var(--#{$namespace}-text-color-placeholder);
107
- cursor: not-allowed;
108
- }
109
- }
@@ -1,13 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-tooltip__popper {
4
- position: absolute;
5
- border-radius: 4px;
6
- padding: 10px;
7
- z-index: 2000;
8
- font-size: 12px;
9
- line-height: 1.2;
10
- min-width: 10px;
11
- word-wrap: break-word;
12
- cursor: text !important;
13
- }