@qsxy/element-plus-react 1.0.0-next.13 → 1.0.0-next.16

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 (104) hide show
  1. package/dist/Button/Button.js +5 -3
  2. package/dist/Button/typings.d.ts +3 -1
  3. package/dist/ColorPicker/AlphaSlider.d.ts +0 -7
  4. package/dist/ColorPicker/AlphaSlider.js +0 -7
  5. package/dist/ColorPicker/HueSlider.d.ts +0 -7
  6. package/dist/ColorPicker/HueSlider.js +0 -7
  7. package/dist/ColorPicker/Predefine.d.ts +0 -7
  8. package/dist/ColorPicker/Predefine.js +0 -7
  9. package/dist/ColorPicker/SvPanel.d.ts +0 -7
  10. package/dist/ColorPicker/SvPanel.js +0 -7
  11. package/dist/DateTimePicker/DateTimePicker.d.ts +1 -1
  12. package/dist/Descriptions/Descriptions.d.ts +2 -2
  13. package/dist/Descriptions/Descriptions.js +7 -6
  14. package/dist/Descriptions/DescriptionsCell.d.ts +11 -12
  15. package/dist/Descriptions/DescriptionsCell.js +13 -6
  16. package/dist/Descriptions/DescriptionsItem.js +1 -1
  17. package/dist/Descriptions/DescriptionsRow.d.ts +2 -5
  18. package/dist/Descriptions/DescriptionsRow.js +11 -4
  19. package/dist/Dialog/Dialog.js +5 -6
  20. package/dist/Dialog/DialogContext.d.ts +1 -1
  21. package/dist/Dialog/DialogContext.js +1 -1
  22. package/dist/Drawer/Drawer.d.ts +2 -5
  23. package/dist/Drawer/Drawer.js +98 -35
  24. package/dist/Drawer/DrawerBody.js +6 -12
  25. package/dist/Drawer/DrawerContext.d.ts +1 -13
  26. package/dist/Drawer/DrawerContext.js +1 -11
  27. package/dist/Drawer/DrawerHeader.js +5 -18
  28. package/dist/Drawer/typings.d.ts +31 -10
  29. package/dist/Dropdown/Dropdown.js +7 -7
  30. package/dist/Dropdown/DropdownItem.js +1 -1
  31. package/dist/Dropdown/DropdownMenu.d.ts +5 -2
  32. package/dist/Dropdown/DropdownMenu.js +5 -3
  33. package/dist/Dropdown/typings.d.ts +3 -1
  34. package/dist/MessageBox/MessageBox.js +6 -1
  35. package/dist/MessageBox/index.d.ts +3 -3
  36. package/dist/Notification/Notification.js +6 -3
  37. package/dist/Notification/index.d.ts +0 -8
  38. package/dist/Notification/index.js +0 -9
  39. package/dist/Notification/typings.d.ts +0 -2
  40. package/dist/Pagination/Options.js +2 -1
  41. package/dist/Popconfirm/Popconfirm.d.ts +3 -2
  42. package/dist/Popconfirm/Popconfirm.js +15 -8
  43. package/dist/Popconfirm/typings.d.ts +2 -1
  44. package/dist/Popover/Popover.js +7 -5
  45. package/dist/Popover/typings.d.ts +1 -1
  46. package/dist/Select/Option.js +1 -1
  47. package/dist/Select/OptionGroup.js +1 -1
  48. package/dist/Select/Select.d.ts +3 -15
  49. package/dist/Select/Select.js +3 -9
  50. package/dist/Select/SelectCore.js +52 -27
  51. package/dist/Select/index.d.ts +1 -0
  52. package/dist/Select/index.js +1 -0
  53. package/dist/Select/typings.d.ts +13 -1
  54. package/dist/Skeleton/PlaceholderGraph.d.ts +1 -1
  55. package/dist/Skeleton/PlaceholderGraph.js +3 -3
  56. package/dist/Skeleton/PlaceholderGrid.d.ts +1 -1
  57. package/dist/Skeleton/PlaceholderGrid.js +3 -3
  58. package/dist/Skeleton/PlaceholderParagraph.d.ts +2 -2
  59. package/dist/Skeleton/PlaceholderParagraph.js +13 -8
  60. package/dist/Skeleton/Skeleton.d.ts +2 -9
  61. package/dist/Skeleton/Skeleton.js +94 -7
  62. package/dist/Skeleton/SkeletonContext.d.ts +17 -0
  63. package/dist/Skeleton/SkeletonContext.js +5 -0
  64. package/dist/Skeleton/SkeletonItem.d.ts +4 -0
  65. package/dist/Skeleton/SkeletonItem.js +47 -0
  66. package/dist/Skeleton/index.d.ts +2 -3
  67. package/dist/Skeleton/index.js +2 -1
  68. package/dist/Skeleton/typings.d.ts +29 -0
  69. package/dist/Skeleton/typings.js +1 -0
  70. package/dist/Table/TableColumn.js +2 -2
  71. package/dist/Table/TableHeaderCell.js +16 -16
  72. package/dist/Table/hooks/useTable.d.ts +0 -7
  73. package/dist/Table/hooks/useTable.js +1 -9
  74. package/dist/Table/typings.d.ts +1 -1
  75. package/dist/Tabs/TabPane.js +1 -1
  76. package/dist/Tabs/Tabs.d.ts +2 -2
  77. package/dist/Tabs/Tabs.js +8 -4
  78. package/dist/Tabs/typings.d.ts +2 -0
  79. package/dist/Tag/Tag.d.ts +1 -1
  80. package/dist/Tag/Tag.js +5 -5
  81. package/dist/Tag/typings.d.ts +1 -1
  82. package/dist/TimeLine/TimeLine.js +1 -0
  83. package/dist/TimeLine/TimeLineItem.js +1 -0
  84. package/dist/TimeLine/typings.d.ts +2 -2
  85. package/dist/TimePicker/useTimePicker.d.ts +0 -7
  86. package/dist/TimePicker/useTimePicker.js +1 -8
  87. package/dist/Upload/use-handlers.d.ts +1 -1
  88. package/dist/hooks/animationPropsUtils.d.ts +0 -4
  89. package/dist/hooks/animationPropsUtils.js +0 -4
  90. package/dist/hooks/popperPropsUtils.d.ts +0 -4
  91. package/dist/hooks/popperPropsUtils.js +0 -4
  92. package/dist/hooks/useChildrenInstance.d.ts +0 -4
  93. package/dist/hooks/useChildrenInstance.js +0 -4
  94. package/dist/index.css +1 -1
  95. package/dist/index.d.ts +3 -3
  96. package/dist/index.js +2 -2
  97. package/package.json +1 -1
  98. package/theme-chalk/drawer/index.scss +61 -65
  99. package/theme-chalk/index.scss +1 -1
  100. package/theme-chalk/placeholder/index.scss +22 -37
  101. package/theme-chalk/skeleton/index.scss +120 -0
  102. package/theme-chalk/tabs/index.scss +3 -3
  103. package/theme-chalk/tag/index.scss +5 -162
  104. package/theme-chalk/time-line/_timeline-item.scss +1 -1
@@ -1,160 +1,3 @@
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
1
  @use 'sass:map';
159
2
  @use '../common/var';
160
3
 
@@ -215,7 +58,7 @@ $tag-icon-span-gap: map.merge(
215
58
  --#{$namespace}-tag-border-color: var(--#{$namespace}-color-primary#{joinVarName($borderColorWeight)});
216
59
  --#{$namespace}-tag-hover-color: var(--#{$namespace}-color-primary#{joinVarName($hoverColorWeight)});
217
60
 
218
- @each $type in success, warning, error, info {
61
+ @each $type in success, warning, error, danger, info {
219
62
  &.#{$namespace}-tag--#{$type} {
220
63
  --#{$namespace}-tag-bg-color: var(--#{$namespace}-color#{joinVarName(($type, $backgroundColorWeight))});
221
64
  --#{$namespace}-tag-border-color: var(--#{$namespace}-color#{joinVarName(($type, $borderColorWeight))});
@@ -233,7 +76,7 @@ $tag-icon-span-gap: map.merge(
233
76
  .#{$namespace}-tag {
234
77
  @include genTheme('light-9', 'light-8', '');
235
78
  --#{$namespace}-tag-text-color: var(--#{$namespace}-color-primary);
236
- @each $type in success, warning, error, info {
79
+ @each $type in success, warning, error, danger, info {
237
80
  &.#{$namespace}-tag--#{$type} {
238
81
  --#{$namespace}-tag-text-color: var(--#{$namespace}-color-#{$type});
239
82
  }
@@ -302,7 +145,7 @@ $tag-icon-span-gap: map.merge(
302
145
  padding-right: map.get($tag-icon-span-gap, 'default') - 1px;
303
146
  }
304
147
 
305
- @each $type in success, warning, error, info {
148
+ @each $type in success, warning, error, danger, info {
306
149
  &.#{$namespace}-tag--#{$type} {
307
150
  &.is-hit {
308
151
  border-color: var(--#{$namespace}-color-#{$type});
@@ -315,7 +158,7 @@ $tag-icon-span-gap: map.merge(
315
158
  @include genTheme('', '', 'light-3');
316
159
  --#{$namespace}-tag-text-color: var(--#{$namespace}-color-white);
317
160
 
318
- @each $type in success, warning, error, info {
161
+ @each $type in success, warning, error, danger, info {
319
162
  &.#{$namespace}-tag--#{$type} {
320
163
  --#{$namespace}-tag-text-color: var(--#{$namespace}-color-white);
321
164
  }
@@ -327,7 +170,7 @@ $tag-icon-span-gap: map.merge(
327
170
  --#{$namespace}-tag-border-color: var(--#{$namespace}-color-primary-light-5);
328
171
  --#{$namespace}-tag-hover-color: var(--#{$namespace}-color-primary);
329
172
 
330
- @each $type in success, warning, error, info {
173
+ @each $type in success, warning, error, danger, info {
331
174
  &.#{$namespace}-tag--#{$type} {
332
175
  --#{$namespace}-tag-bg-color: var(--#{$namespace}-fill-color-blank);
333
176
  --#{$namespace}-tag-border-color: var(--#{$namespace}-color#{joinVarName(($type, 'light-5'))});
@@ -59,7 +59,7 @@
59
59
  @each $type in (success, warning, danger, info) {
60
60
  .#{$namespace}-timeline-item__node--#{$type} {
61
61
  background-color: var(--#{$namespace}-color-#{$type});
62
- border-color: var(--#{$namespace}-color#{$type});
62
+ border-color: var(--#{$namespace}-color-#{$type});
63
63
  }
64
64
  }
65
65