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

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 (177) hide show
  1. package/dist/Avatar/Avatar.d.ts +2 -2
  2. package/dist/Avatar/Avatar.js +13 -6
  3. package/dist/Badge/Badge.d.ts +1 -1
  4. package/dist/Badge/Badge.js +15 -3
  5. package/dist/Checkbox/Checkbox.js +14 -12
  6. package/dist/Checkbox/CheckboxButton.js +15 -14
  7. package/dist/Checkbox/typings.d.ts +2 -1
  8. package/dist/Dropdown/Dropdown.d.ts +3 -3
  9. package/dist/Dropdown/Dropdown.js +20 -6
  10. package/dist/Dropdown/typings.d.ts +8 -1
  11. package/dist/Input/Input.js +3 -2
  12. package/dist/Input/typings.d.ts +1 -1
  13. package/dist/InputNumber/InputNumber.d.ts +2 -2
  14. package/dist/InputNumber/InputNumber.js +10 -5
  15. package/dist/Loading/Loading.d.ts +7 -2
  16. package/dist/Loading/Loading.js +108 -57
  17. package/dist/Loading/typings.d.ts +7 -1
  18. package/dist/Message/Main.d.ts +0 -7
  19. package/dist/Message/Main.js +0 -7
  20. package/dist/Message/Message.d.ts +2 -2
  21. package/dist/Message/Message.js +4 -3
  22. package/dist/Message/index.d.ts +0 -8
  23. package/dist/Message/index.js +5 -9
  24. package/dist/MessageBox/MessageBox.js +2 -1
  25. package/dist/MessageBox/index.d.ts +5 -5
  26. package/dist/MessageBox/index.js +1 -0
  27. package/dist/Notification/Main.d.ts +0 -7
  28. package/dist/Notification/Main.js +0 -7
  29. package/dist/Popover/Popover.d.ts +3 -2
  30. package/dist/Popover/Popover.js +10 -5
  31. package/dist/Popover/typings.d.ts +0 -1
  32. package/dist/Radio/Radio.js +14 -10
  33. package/dist/Radio/RadioButton.d.ts +2 -2
  34. package/dist/Radio/RadioButton.js +14 -4
  35. package/dist/Radio/typings.d.ts +2 -1
  36. package/dist/Switch/Switch.js +9 -3
  37. package/dist/Table/Table.d.ts +0 -1
  38. package/dist/Table/Table.js +1 -1
  39. package/dist/Table/hooks/useSelection.d.ts +1 -1
  40. package/dist/Tag/Tag.js +19 -8
  41. package/dist/TimePicker/TimeSpinnerPanel.js +5 -5
  42. package/dist/Tooltip/Tooltip.d.ts +3 -3
  43. package/dist/Tooltip/Tooltip.js +6 -6
  44. package/dist/Upload/use-handlers.d.ts +1 -1
  45. package/dist/index.css +1 -1
  46. package/package.json +1 -1
  47. package/theme-chalk/message/index.scss +11 -3
  48. package/dist/theme-chalk/avatar/index.scss +0 -50
  49. package/dist/theme-chalk/badge/index.scss +0 -63
  50. package/dist/theme-chalk/breadcrumb/index.scss +0 -65
  51. package/dist/theme-chalk/build.scss +0 -2
  52. package/dist/theme-chalk/button/_mixins.scss +0 -317
  53. package/dist/theme-chalk/button/button-group.scss +0 -83
  54. package/dist/theme-chalk/button/button.scss +0 -382
  55. package/dist/theme-chalk/button/index.scss +0 -2
  56. package/dist/theme-chalk/calendar/date-picker.scss +0 -112
  57. package/dist/theme-chalk/calendar/date-range-picker.scss +0 -139
  58. package/dist/theme-chalk/calendar/date-table.scss +0 -156
  59. package/dist/theme-chalk/calendar/index.scss +0 -6
  60. package/dist/theme-chalk/calendar/month-table.scss +0 -92
  61. package/dist/theme-chalk/calendar/picker-panel.scss +0 -136
  62. package/dist/theme-chalk/calendar/year-table.scss +0 -107
  63. package/dist/theme-chalk/card/index.scss +0 -44
  64. package/dist/theme-chalk/carousel/index.scss +0 -237
  65. package/dist/theme-chalk/cascader/cascader-panel.scss +0 -184
  66. package/dist/theme-chalk/cascader/cascader.scss +0 -239
  67. package/dist/theme-chalk/cascader/index.scss +0 -2
  68. package/dist/theme-chalk/checkbox/index.scss +0 -255
  69. package/dist/theme-chalk/checkbox-button/index.scss +0 -117
  70. package/dist/theme-chalk/checkbox-group/index.scss +0 -33
  71. package/dist/theme-chalk/col/_mixins.scss +0 -62
  72. package/dist/theme-chalk/col/index.scss +0 -50
  73. package/dist/theme-chalk/collapse/index.scss +0 -84
  74. package/dist/theme-chalk/color-picker/index.scss +0 -340
  75. package/dist/theme-chalk/common/_var.scss +0 -6
  76. package/dist/theme-chalk/common/index.d.ts +0 -1
  77. package/dist/theme-chalk/common/index.js +0 -1
  78. package/dist/theme-chalk/common/index.scss +0 -222
  79. package/dist/theme-chalk/date-picker/index.scss +0 -253
  80. package/dist/theme-chalk/date-time-picker/index.scss +0 -3
  81. package/dist/theme-chalk/date-time-picker/time-picker.scss +0 -83
  82. package/dist/theme-chalk/date-time-picker/time-range-picker.scss +0 -32
  83. package/dist/theme-chalk/descriptions/descriptions-item.scss +0 -66
  84. package/dist/theme-chalk/descriptions/descriptions.scss +0 -160
  85. package/dist/theme-chalk/descriptions/index.scss +0 -2
  86. package/dist/theme-chalk/dev.scss +0 -2
  87. package/dist/theme-chalk/dialog/index.scss +0 -190
  88. package/dist/theme-chalk/display.scss +0 -46
  89. package/dist/theme-chalk/divider/index.scss +0 -51
  90. package/dist/theme-chalk/doc.scss +0 -2
  91. package/dist/theme-chalk/drawer/index.scss +0 -250
  92. package/dist/theme-chalk/dropdown/index.scss +0 -147
  93. package/dist/theme-chalk/empty/index.scss +0 -69
  94. package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
  95. package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
  96. package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
  97. package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
  98. package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
  99. package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
  100. package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
  101. package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
  102. package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
  103. package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
  104. package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
  105. package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
  106. package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
  107. package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
  108. package/dist/theme-chalk/form/index.scss +0 -378
  109. package/dist/theme-chalk/icon/fonts.scss +0 -9
  110. package/dist/theme-chalk/icon/index.scss +0 -44
  111. package/dist/theme-chalk/icon/scss/_animated.scss +0 -205
  112. package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +0 -20
  113. package/dist/theme-chalk/icon/scss/_core.scss +0 -33
  114. package/dist/theme-chalk/icon/scss/_duotone-icons.scss +0 -12
  115. package/dist/theme-chalk/icon/scss/_fixed-width.scss +0 -7
  116. package/dist/theme-chalk/icon/scss/_functions.scss +0 -57
  117. package/dist/theme-chalk/icon/scss/_icons.scss +0 -11
  118. package/dist/theme-chalk/icon/scss/_list.scss +0 -20
  119. package/dist/theme-chalk/icon/scss/_mixins.scss +0 -102
  120. package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +0 -31
  121. package/dist/theme-chalk/icon/scss/_screen-reader.scss +0 -14
  122. package/dist/theme-chalk/icon/scss/_shims.scss +0 -2606
  123. package/dist/theme-chalk/icon/scss/_sizing.scss +0 -16
  124. package/dist/theme-chalk/icon/scss/_stacked.scss +0 -32
  125. package/dist/theme-chalk/icon/scss/_variables.scss +0 -9189
  126. package/dist/theme-chalk/icon/scss/brands.scss +0 -27
  127. package/dist/theme-chalk/icon/scss/duotone.scss +0 -72
  128. package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -13
  129. package/dist/theme-chalk/icon/scss/index.scss +0 -15
  130. package/dist/theme-chalk/icon/scss/light.scss +0 -21
  131. package/dist/theme-chalk/icon/scss/regular.scss +0 -21
  132. package/dist/theme-chalk/icon/scss/solid.scss +0 -21
  133. package/dist/theme-chalk/icon/scss/thin.scss +0 -21
  134. package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -3
  135. package/dist/theme-chalk/index.scss +0 -67
  136. package/dist/theme-chalk/input/_mixins.scss +0 -16
  137. package/dist/theme-chalk/input/index.scss +0 -3
  138. package/dist/theme-chalk/input/input-range.scss +0 -208
  139. package/dist/theme-chalk/input/input.scss +0 -577
  140. package/dist/theme-chalk/input-number/index.scss +0 -172
  141. package/dist/theme-chalk/link/index.scss +0 -99
  142. package/dist/theme-chalk/loading/index.scss +0 -94
  143. package/dist/theme-chalk/message/index.scss +0 -169
  144. package/dist/theme-chalk/message-box/index.scss +0 -184
  145. package/dist/theme-chalk/notification/index.scss +0 -155
  146. package/dist/theme-chalk/pagination/index.scss +0 -515
  147. package/dist/theme-chalk/placeholder/index.scss +0 -135
  148. package/dist/theme-chalk/popconfirm/index.scss +0 -35
  149. package/dist/theme-chalk/popover/index.scss +0 -54
  150. package/dist/theme-chalk/popper/index.scss +0 -86
  151. package/dist/theme-chalk/progress/index.scss +0 -155
  152. package/dist/theme-chalk/radio/index.scss +0 -2
  153. package/dist/theme-chalk/radio/radio-button.scss +0 -128
  154. package/dist/theme-chalk/radio/radio.scss +0 -171
  155. package/dist/theme-chalk/radio-group/index.scss +0 -31
  156. package/dist/theme-chalk/row/index.scss +0 -30
  157. package/dist/theme-chalk/scrollbar/index.scss +0 -103
  158. package/dist/theme-chalk/select/index.scss +0 -244
  159. package/dist/theme-chalk/select/option-group.scss +0 -54
  160. package/dist/theme-chalk/select/option.scss +0 -63
  161. package/dist/theme-chalk/select/select-dropdown.scss +0 -57
  162. package/dist/theme-chalk/switch/index.scss +0 -273
  163. package/dist/theme-chalk/table/index.scss +0 -714
  164. package/dist/theme-chalk/tabs/index.scss +0 -620
  165. package/dist/theme-chalk/tag/index.scss +0 -360
  166. package/dist/theme-chalk/time-line/_timeline-item.scss +0 -90
  167. package/dist/theme-chalk/time-line/_timeline.scss +0 -50
  168. package/dist/theme-chalk/time-line/index.scss +0 -2
  169. package/dist/theme-chalk/time-picker/index.scss +0 -109
  170. package/dist/theme-chalk/tooltip/index.scss +0 -13
  171. package/dist/theme-chalk/transfer/index.scss +0 -247
  172. package/dist/theme-chalk/transition/index.scss +0 -756
  173. package/dist/theme-chalk/tree/_directory.scss +0 -73
  174. package/dist/theme-chalk/tree/_tree.scss +0 -401
  175. package/dist/theme-chalk/tree/index.scss +0 -2
  176. package/dist/theme-chalk/tree-select/index.scss +0 -25
  177. package/dist/theme-chalk/upload/index.scss +0 -631
@@ -1,171 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-radio {
4
- --#{$namespace}-radio-text-color: var(--#{$namespace}-text-color-regular);
5
- --#{$namespace}-radio-input-height: 14px;
6
- --#{$namespace}-radio-input-width: 14px;
7
- --#{$namespace}-radio-input-bg-color: var(--#{$namespace}-fill-color-blank);
8
- --#{$namespace}-radio-input-border-color: var(--#{$namespace}-border-color);
9
- --#{$namespace}-radio-input-border-color-hover: var(--#{$namespace}-color-primary);
10
- }
11
-
12
- .#{$namespace}-radio {
13
- box-sizing: border-box;
14
- margin-right: 20px;
15
- padding: 0;
16
- color: var(--#{$namespace}-radio-text-color);
17
- font-size: 14px;
18
- font-variant: tabular-nums;
19
- list-style: none;
20
- font-feature-settings: 'tnum';
21
- position: relative;
22
- display: inline-flex;
23
- align-items: baseline;
24
- cursor: pointer;
25
- // height: 32px;
26
- line-height: 32px;
27
-
28
- &.is-disabled {
29
- cursor: not-allowed;
30
-
31
- .#{$namespace}-radio__label {
32
- cursor: not-allowed;
33
- }
34
- }
35
-
36
- &::after {
37
- display: inline-block;
38
- width: 0;
39
- overflow: hidden;
40
- // content: "\a0";
41
- }
42
-
43
- &.is-checked > .#{$namespace}-radio__label {
44
- color: var(--#{$namespace}-color-primary);
45
- }
46
-
47
- &.is-disabled > .#{$namespace}-radio__label {
48
- color: var(--#{$namespace}-text-color-placeholder);
49
- }
50
-
51
- &.#{$namespace}-radio--large {
52
- height: var(--#{$namespace}-component-size-large);
53
-
54
- .#{$namespace}-radio__label {
55
- line-height: var(--#{$namespace}-component-size-large);
56
- }
57
- }
58
-
59
- &.#{$namespace}-radio--small {
60
- height: var(--#{$namespace}-component-size-small);
61
-
62
- .#{$namespace}-radio__label {
63
- line-height: var(--#{$namespace}-component-size-small);
64
- }
65
- }
66
- }
67
-
68
- .#{$namespace}-radio__input {
69
- box-sizing: border-box;
70
- margin: 0;
71
- padding: 0;
72
- font-size: 14px;
73
- font-variant: tabular-nums;
74
- line-height: 1.5715;
75
- list-style: none;
76
- font-feature-settings: 'tnum';
77
- position: relative;
78
- top: 0.2em;
79
- display: inline-block;
80
- outline: none;
81
- cursor: pointer;
82
-
83
- &.is-checked {
84
- &::after {
85
- position: absolute;
86
- top: 0;
87
- left: 0;
88
- width: 100%;
89
- height: 100%;
90
- border: 1px solid var(--#{$namespace}-color-primary);
91
- border-radius: 50%;
92
- visibility: hidden;
93
- -webkit-animation: antRadioEffect 0.36s ease-in-out;
94
- animation: antRadioEffect 0.36s ease-in-out;
95
- -webkit-animation-fill-mode: both;
96
- animation-fill-mode: both;
97
- content: '';
98
- }
99
-
100
- .#{$namespace}-radio__inner {
101
- border-color: var(--#{$namespace}-color-primary);
102
-
103
- &::after {
104
- background: var(--#{$namespace}-bg-color-primary, var(--#{$namespace}-color-primary));
105
- transform: scale(0.5);
106
- opacity: 1;
107
- transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
108
- }
109
- }
110
- }
111
-
112
- &.is-disabled {
113
- .#{$namespace}-radio__inner {
114
- background-color: var(--#{$namespace}-disabled-bg-color);
115
- border-color: var(--#{$namespace}-disabled-border-color);
116
- cursor: not-allowed;
117
-
118
- &::after {
119
- background: #c0c4cc;
120
- }
121
- }
122
- }
123
- }
124
- .#{$namespace}-radio__inner {
125
- position: relative;
126
- top: 0;
127
- left: 0;
128
- display: block;
129
- width: 16px;
130
- height: 16px;
131
- background: var(--#{$namespace}-radio-input-bg-color);
132
- border-color: var(--#{$namespace}-radio-input-border-color);
133
- border-style: solid;
134
- border-width: 1px;
135
- border-radius: 50%;
136
- transition: all 0.3s;
137
-
138
- &::after {
139
- position: absolute;
140
- top: 50%;
141
- left: 50%;
142
- display: block;
143
- width: 16px;
144
- height: 16px;
145
- margin-top: -8px;
146
- margin-left: -8px;
147
- border-top: 0;
148
- border-left: 0;
149
- border-radius: 16px;
150
- transform: scale(0);
151
- opacity: 0;
152
- transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
153
- content: ' ';
154
- }
155
- }
156
- .#{$namespace}-radio__label {
157
- cursor: pointer;
158
- user-select: none;
159
- box-sizing: border-box;
160
- list-style: none;
161
- outline: none;
162
- padding-left: 8px;
163
- position: relative;
164
- white-space: nowrap;
165
- font-weight: normal;
166
- transition: all 0.3s;
167
- }
168
-
169
- .#{$namespace}-radio__hidden {
170
- display: none;
171
- }
@@ -1,31 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-radio-group {
4
- display: inline-flex;
5
- flex-wrap: wrap;
6
- align-items: center;
7
- font-size: 0;
8
- // position: relative;
9
- // min-height: 32px;
10
- // flex-direction: column;
11
- // align-items: flex-start;
12
-
13
- // &.#{$namespace}-radio-group-inline {
14
- // flex-direction: row;
15
- // line-height: 32px;
16
- // }
17
-
18
- &.#{$namespace}-radio-group--large {
19
- min-height: var(--#{$namespace}-component-size-large);
20
- &.#{$namespace}-radio-group-inline {
21
- line-height: var(--#{$namespace}-component-size-large);
22
- }
23
- }
24
-
25
- &.#{$namespace}-radio-group--small {
26
- min-height: var(--#{$namespace}-component-size-small);
27
- &.#{$namespace}-radio-group-inline {
28
- line-height: var(--#{$namespace}-component-size-small);
29
- }
30
- }
31
- }
@@ -1,30 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-row {
4
- display: flex;
5
- flex-wrap: wrap;
6
- position: relative;
7
- box-sizing: border-box;
8
-
9
- &.is-justify-center {
10
- justify-content: center;
11
- }
12
- &.is-justify-end {
13
- justify-content: flex-end;
14
- }
15
- &.is-justify-space-between {
16
- justify-content: space-between;
17
- }
18
- &.is-justify-space-around {
19
- justify-content: space-around;
20
- }
21
- &.is-justify-space-evenly {
22
- justify-content: space-evenly;
23
- }
24
- &.is-align-middle {
25
- align-items: center;
26
- }
27
- &.is-align-bottom {
28
- align-items: flex-end;
29
- }
30
- }
@@ -1,103 +0,0 @@
1
- @use 'sass:map';
2
- @use '../common/var';
3
-
4
- .#{$namespace}-scrollbar {
5
- --#{$namespace}-scrollbar-opacity: 0.3;
6
- --#{$namespace}-scrollbar-bg-color: var(--#{$namespace}-text-color-secondary);
7
- --#{$namespace}-scrollbar-hover-opacity: 0.5;
8
- --#{$namespace}-scrollbar-hover-bg-color: var(--#{$namespace}-text-color-secondary);
9
- --#{$namespace}-scrollbar-width: 6px;
10
- }
11
-
12
- .#{$namespace}-scrollbar {
13
- overflow: hidden;
14
- position: relative;
15
- height: 100%;
16
-
17
- &:hover,
18
- &:active,
19
- &:focus {
20
- & > .#{$namespace}-scrollbar__bar {
21
- opacity: 1;
22
- transition: opacity 340ms ease-out;
23
- }
24
- }
25
-
26
- &__wrap {
27
- overflow: auto;
28
- height: 100%;
29
-
30
- &--hidden-default {
31
- scrollbar-width: none;
32
-
33
- &::-webkit-scrollbar {
34
- display: none;
35
- }
36
- }
37
- }
38
-
39
- &__thumb {
40
- position: relative;
41
- display: block;
42
- width: 0;
43
- height: 0;
44
- cursor: pointer;
45
- border-radius: inherit;
46
- background-color: var(--#{$namespace}-scrollbar-bg-color, var(--#{$namespace}-text-color-secondary));
47
- transition: 0.3s background-color;
48
- opacity: var(--#{$namespace}-scrollbar-opacity, 0.3);
49
-
50
- &:hover,
51
- &.is-hover {
52
- background-color: var(--#{$namespace}-scrollbar-hover-bg-color, var(--#{$namespace}-text-color-secondary));
53
- opacity: var(--#{$namespace}-scrollbar-hover-opacity, 0.5);
54
- }
55
- }
56
-
57
- &__bar {
58
- position: absolute;
59
- right: 2px;
60
- bottom: 2px;
61
- z-index: 1;
62
- border-radius: 4px;
63
- opacity: 0;
64
- transition: opacity 120ms ease-out;
65
-
66
- &.is-vertical {
67
- width: var(--#{$namespace}-scrollbar-width);
68
- top: 2px;
69
-
70
- & > div {
71
- width: 100%;
72
- }
73
- }
74
-
75
- &.is-horizontal {
76
- height: var(--#{$namespace}-scrollbar-width);
77
- left: 2px;
78
-
79
- & > div {
80
- height: 100%;
81
- }
82
- }
83
-
84
- &.is-always {
85
- opacity: 1;
86
- }
87
- }
88
- }
89
-
90
- .#{$namespace}-scrollbar-fade {
91
- &-enter-active {
92
- transition: opacity 340ms ease-out;
93
- }
94
-
95
- &-leave-active {
96
- transition: opacity 120ms ease-out;
97
- }
98
-
99
- &-enter-from,
100
- &-leave-from {
101
- opacity: 0;
102
- }
103
- }
@@ -1,244 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-select {
4
- --#{$namespace}-select-border-color-hover: var(--#{$namespace}-border-color-hover);
5
- --#{$namespace}-select-disabled-border: var(--#{$namespace}-disabled-border-color);
6
- --#{$namespace}-select-close-hover-color: var(--#{$namespace}-text-color-secondary);
7
- --#{$namespace}-select-input-color: var(--#{$namespace}-text-color-placeholder);
8
- --#{$namespace}-select-multiple-input-color: var(--#{$namespace}-text-color-regular);
9
- --#{$namespace}-select-input-focus-border-color: var(--#{$namespace}-color-primary);
10
- }
11
-
12
- .#{$namespace}-select {
13
- display: inline-block;
14
- position: relative;
15
- line-height: 32px;
16
- font-size: 14px;
17
- zoom: 1;
18
- *display: inline;
19
- width: 100%;
20
-
21
- .#{$namespace}-select__trigger {
22
- cursor: pointer;
23
- }
24
-
25
- .#{$namespace}-input__inner {
26
- cursor: pointer;
27
- display: inline-flex;
28
- }
29
-
30
- &.is-disabled {
31
- .#{$namespace}-input__inner {
32
- cursor: not-allowed;
33
- }
34
-
35
- .#{$namespace}-select__tags .#{$namespace}-tag--info {
36
- background-color: var(--#{$namespace}-fill-color-darker);
37
- }
38
- }
39
-
40
- .#{$namespace}-select__tags {
41
- & > span {
42
- display: inline-block;
43
- }
44
-
45
- .#{$namespace}-tag {
46
- box-sizing: border-box;
47
- border-color: transparent;
48
- margin: 2px 6px 2px 0;
49
- }
50
- }
51
-
52
- .#{$namespace}-select-tags-wrapper.has-prefix {
53
- margin-left: 6px;
54
- }
55
- }
56
-
57
- .#{$namespace}-select--large {
58
- line-height: var(--#{$namespace}-component-size-large);
59
- }
60
-
61
- .#{$namespace}-select--small {
62
- line-height: var(--#{$namespace}-component-size-small);
63
- }
64
-
65
- .#{$namespace}-select__tags {
66
- position: absolute;
67
- line-height: normal;
68
- white-space: normal;
69
- z-index: 1;
70
- top: 50%;
71
- transform: translateY(-50%);
72
- display: flex;
73
- align-items: center;
74
- flex-wrap: wrap;
75
- margin-right: 30px;
76
- }
77
-
78
- .#{$namespace}-select .#{$namespace}-select__tags .#{$namespace}-tag--info {
79
- background-color: var(--#{$namespace}-fill-color);
80
- }
81
-
82
- .#{$namespace}-select-dorpdown {
83
- .#{$namespace}-select-dropdown__wrap {
84
- max-height: 274px;
85
- }
86
-
87
- .#{$namespace}-select-dropdown__list {
88
- // box-sizing: border-box;
89
- // width: 100%;
90
- // border-radius: 4px;
91
- // background-clip: padding-box;
92
-
93
- position: relative;
94
- // overflow-x: hidden;
95
- // overflow-y: auto;
96
- margin: 4px 0;
97
- padding: 0;
98
- max-height: 240px;
99
- -webkit-overflow-scrolling: touch;
100
- font-size: 14px;
101
-
102
- .#{$namespace}-select-dropdown__item {
103
- display: list-item;
104
- cursor: pointer;
105
- margin: 0;
106
- padding: 0 15px;
107
- list-style: none;
108
- -webkit-touch-callout: none;
109
- position: relative;
110
- white-space: nowrap;
111
- overflow: hidden;
112
- text-overflow: ellipsis;
113
- color: var(--#{$namespace}-text-color-regular);
114
- height: 34px;
115
- line-height: 34px;
116
- box-sizing: border-box;
117
- cursor: pointer;
118
-
119
- &.selected {
120
- color: var(--#{$namespace}-color-primary);
121
- }
122
-
123
- &.hover {
124
- background-color: var(--#{$namespace}-fill-color-light);
125
- }
126
-
127
- &.is-disabled {
128
- color: var(--#{$namespace}-text-color-placeholder);
129
- cursor: not-allowed;
130
-
131
- &.hover {
132
- background-color: transparent;
133
- color: var(--#{$namespace}-text-color-placeholder);
134
- }
135
- }
136
-
137
- &.no-data,
138
- &.loading {
139
- text-align: center;
140
- margin: -4px 0;
141
- }
142
- }
143
- }
144
-
145
- .#{$namespace}-select__search {
146
- position: relative;
147
- z-index: 1010;
148
- margin: 0;
149
- padding: 3px 4px;
150
- white-space: nowrap;
151
-
152
- .#{$namespace}-clear {
153
- cursor: pointer;
154
- pointer-events: unset;
155
- }
156
- }
157
-
158
- &.is-multiple .#{$namespace}-select-dropdown__item.selected:after {
159
- content: '';
160
- position: absolute;
161
- top: 50%;
162
- right: 20px;
163
- border-top: none;
164
- border-right: none;
165
- background-repeat: no-repeat;
166
- background-position: center;
167
- background: var(--#{$namespace}-bg-color-primary, var(--#{$namespace}-color-primary));
168
- mask: url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E")
169
- no-repeat;
170
- mask-size: 100% 100%;
171
- -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E")
172
- no-repeat;
173
- -webkit-mask-size: 100% 100%;
174
- transform: translateY(-50%);
175
- width: 16px;
176
- height: 16px;
177
- }
178
- }
179
-
180
- .#{$namespace}-select-group {
181
- margin: 0;
182
- padding: 0;
183
-
184
- & .#{$namespace}-select-dropdown__item {
185
- padding-left: 20px;
186
- }
187
- }
188
-
189
- .#{$namespace}-select-group__wrap {
190
- position: relative;
191
- list-style: none;
192
- margin: 0;
193
- padding: 0;
194
-
195
- &:not(:last-of-type) {
196
- padding-bottom: 24px;
197
-
198
- &::after {
199
- content: '';
200
- position: absolute;
201
- display: block;
202
- left: 20px;
203
- right: 20px;
204
- bottom: 12px;
205
- height: 1px;
206
- background: var(--#{$namespace}-border-color-light);
207
- }
208
- }
209
- }
210
-
211
- .#{$namespace}-select-group__split {
212
- .#{$namespace}-select-group__split-dash {
213
- position: absolute;
214
- left: 20px;
215
- right: 20px;
216
- height: 1px;
217
- background: #e4e7ed;
218
- }
219
- }
220
-
221
- .#{$namespace}-select-group__title {
222
- padding-left: 20px;
223
- font-size: 12px;
224
- color: var(--#{$namespace}-color-info);
225
- line-height: 30px;
226
- }
227
-
228
- .#{$namespace}-select__input {
229
- border: none;
230
- outline: none;
231
- padding: 0;
232
- margin-left: 15px;
233
- color: var(--#{$namespace}-select-multiple-input-color);
234
- font-size: 14px;
235
- appearance: none;
236
- height: 28px;
237
- background-color: transparent;
238
- }
239
-
240
- .#{$namespace}-select__tooltip {
241
- .#{$namespace}-tag {
242
- margin: 5px;
243
- }
244
- }
@@ -1,54 +0,0 @@
1
- @use 'sass:map';
2
-
3
- @use '../../Common/styles/mixins/mixins' as *;
4
- @use '../../Common/styles/common/var' as *;
5
-
6
- @include b(select-group) {
7
- $gap: 20px;
8
-
9
- margin: 0;
10
- padding: 0;
11
-
12
- @include e(wrap) {
13
- position: relative;
14
- list-style: none;
15
- margin: 0;
16
- padding: 0;
17
-
18
- &:not(:last-of-type) {
19
- padding-bottom: 24px;
20
-
21
- &::after {
22
- content: '';
23
- position: absolute;
24
- display: block;
25
- left: $gap;
26
- right: $gap;
27
- bottom: 12px;
28
- height: 1px;
29
- background: getCssVar('border-color-light');
30
- }
31
- }
32
- }
33
-
34
- @include e(split) {
35
- &-dash {
36
- position: absolute;
37
- left: $gap;
38
- right: $gap;
39
- height: 1px;
40
- background: getCssVar('border-color-light');
41
- }
42
- }
43
-
44
- @include e(title) {
45
- padding-left: $gap;
46
- font-size: map.get($select-group, 'font-size');
47
- color: map.get($select-group, 'text-color');
48
- line-height: map.get($select-group, 'height');
49
- }
50
-
51
- & .#{$namespace}-select-dropdown__item {
52
- padding-left: $gap;
53
- }
54
- }
@@ -1,63 +0,0 @@
1
- @use 'sass:map';
2
-
3
- @use '../../Common/styles/mixins/mixins' as *;
4
- @use '../../Common/styles/common/var' as *;
5
-
6
- $checked-icon: "data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E";
7
-
8
- @mixin checked-icon {
9
- content: '';
10
- position: absolute;
11
- top: 50%;
12
- right: 20px;
13
- border-top: none;
14
- border-right: none;
15
- background-repeat: no-repeat;
16
- background-position: center;
17
- background-color: map.get($select-option, 'selected-text-color');
18
- mask: url('#{$checked-icon}') no-repeat;
19
- mask-size: 100% 100%;
20
- -webkit-mask: url('#{$checked-icon}') no-repeat;
21
- -webkit-mask-size: 100% 100%;
22
- transform: translateY(-50%);
23
- width: 16px;
24
- height: 16px;
25
- }
26
-
27
- @include b(select-dropdown) {
28
- @include e(item) {
29
- font-size: map.get($select, 'font-size');
30
- // 20 as the padding of option item, 12 as the size of ✓ icon size
31
- padding: 0 #{20 + 12}px 0 20px;
32
- position: relative;
33
- white-space: nowrap;
34
- overflow: hidden;
35
- text-overflow: ellipsis;
36
- color: map.get($select-option, 'text-color');
37
- height: map.get($select-option, 'height');
38
- line-height: map.get($select-option, 'height');
39
- box-sizing: border-box;
40
- cursor: pointer;
41
-
42
- @include when(hovering) {
43
- background-color: map.get($select-option, 'hover-background');
44
- }
45
-
46
- @include when(selected) {
47
- color: map.get($select-option, 'selected-text-color');
48
- font-weight: bold;
49
- }
50
-
51
- @include when(disabled) {
52
- color: map.get($select-option, 'disabled-color');
53
- cursor: not-allowed;
54
- background-color: unset;
55
- }
56
- }
57
- }
58
-
59
- .el-select-dorpdown {
60
- &.is-multiple .el-select-dropdown__item.is-selected:after {
61
- @include checked-icon();
62
- }
63
- }