@qsxy/element-plus-react 1.0.0-next.12 → 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 (158) hide show
  1. package/dist/InputNumber/InputNumber.d.ts +2 -2
  2. package/dist/InputNumber/InputNumber.js +3 -3
  3. package/dist/Loading/Loading.d.ts +7 -2
  4. package/dist/Loading/Loading.js +108 -57
  5. package/dist/Loading/typings.d.ts +7 -1
  6. package/dist/Message/Main.d.ts +0 -7
  7. package/dist/Message/Main.js +0 -7
  8. package/dist/Message/Message.d.ts +2 -2
  9. package/dist/Message/Message.js +4 -3
  10. package/dist/Message/index.d.ts +0 -8
  11. package/dist/Message/index.js +5 -9
  12. package/dist/MessageBox/MessageBox.js +2 -1
  13. package/dist/MessageBox/index.d.ts +5 -5
  14. package/dist/MessageBox/index.js +1 -0
  15. package/dist/Notification/Main.d.ts +0 -7
  16. package/dist/Notification/Main.js +0 -7
  17. package/dist/Popover/Popover.d.ts +3 -2
  18. package/dist/Popover/Popover.js +10 -5
  19. package/dist/Popover/typings.d.ts +0 -1
  20. package/dist/Table/Table.d.ts +0 -1
  21. package/dist/Table/Table.js +1 -1
  22. package/dist/Table/hooks/useSelection.d.ts +1 -1
  23. package/dist/Tooltip/Tooltip.d.ts +3 -3
  24. package/dist/Tooltip/Tooltip.js +6 -6
  25. package/dist/Upload/use-handlers.d.ts +1 -1
  26. package/dist/index.css +1 -1
  27. package/package.json +1 -1
  28. package/theme-chalk/message/index.scss +11 -3
  29. package/dist/theme-chalk/avatar/index.scss +0 -50
  30. package/dist/theme-chalk/badge/index.scss +0 -63
  31. package/dist/theme-chalk/breadcrumb/index.scss +0 -65
  32. package/dist/theme-chalk/build.scss +0 -2
  33. package/dist/theme-chalk/button/_mixins.scss +0 -317
  34. package/dist/theme-chalk/button/button-group.scss +0 -83
  35. package/dist/theme-chalk/button/button.scss +0 -382
  36. package/dist/theme-chalk/button/index.scss +0 -2
  37. package/dist/theme-chalk/calendar/date-picker.scss +0 -112
  38. package/dist/theme-chalk/calendar/date-range-picker.scss +0 -139
  39. package/dist/theme-chalk/calendar/date-table.scss +0 -156
  40. package/dist/theme-chalk/calendar/index.scss +0 -6
  41. package/dist/theme-chalk/calendar/month-table.scss +0 -92
  42. package/dist/theme-chalk/calendar/picker-panel.scss +0 -136
  43. package/dist/theme-chalk/calendar/year-table.scss +0 -107
  44. package/dist/theme-chalk/card/index.scss +0 -44
  45. package/dist/theme-chalk/carousel/index.scss +0 -237
  46. package/dist/theme-chalk/cascader/cascader-panel.scss +0 -184
  47. package/dist/theme-chalk/cascader/cascader.scss +0 -239
  48. package/dist/theme-chalk/cascader/index.scss +0 -2
  49. package/dist/theme-chalk/checkbox/index.scss +0 -255
  50. package/dist/theme-chalk/checkbox-button/index.scss +0 -117
  51. package/dist/theme-chalk/checkbox-group/index.scss +0 -33
  52. package/dist/theme-chalk/col/_mixins.scss +0 -62
  53. package/dist/theme-chalk/col/index.scss +0 -50
  54. package/dist/theme-chalk/collapse/index.scss +0 -84
  55. package/dist/theme-chalk/color-picker/index.scss +0 -340
  56. package/dist/theme-chalk/common/_var.scss +0 -6
  57. package/dist/theme-chalk/common/index.d.ts +0 -1
  58. package/dist/theme-chalk/common/index.js +0 -1
  59. package/dist/theme-chalk/common/index.scss +0 -222
  60. package/dist/theme-chalk/date-picker/index.scss +0 -253
  61. package/dist/theme-chalk/date-time-picker/index.scss +0 -3
  62. package/dist/theme-chalk/date-time-picker/time-picker.scss +0 -83
  63. package/dist/theme-chalk/date-time-picker/time-range-picker.scss +0 -32
  64. package/dist/theme-chalk/descriptions/descriptions-item.scss +0 -66
  65. package/dist/theme-chalk/descriptions/descriptions.scss +0 -160
  66. package/dist/theme-chalk/descriptions/index.scss +0 -2
  67. package/dist/theme-chalk/dev.scss +0 -2
  68. package/dist/theme-chalk/dialog/index.scss +0 -190
  69. package/dist/theme-chalk/display.scss +0 -46
  70. package/dist/theme-chalk/divider/index.scss +0 -51
  71. package/dist/theme-chalk/doc.scss +0 -2
  72. package/dist/theme-chalk/drawer/index.scss +0 -250
  73. package/dist/theme-chalk/dropdown/index.scss +0 -147
  74. package/dist/theme-chalk/empty/index.scss +0 -69
  75. package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
  76. package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
  77. package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
  78. package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
  79. package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
  80. package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
  81. package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
  82. package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
  83. package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
  84. package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
  85. package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
  86. package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
  87. package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
  88. package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
  89. package/dist/theme-chalk/form/index.scss +0 -378
  90. package/dist/theme-chalk/icon/fonts.scss +0 -9
  91. package/dist/theme-chalk/icon/index.scss +0 -44
  92. package/dist/theme-chalk/icon/scss/_animated.scss +0 -205
  93. package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +0 -20
  94. package/dist/theme-chalk/icon/scss/_core.scss +0 -33
  95. package/dist/theme-chalk/icon/scss/_duotone-icons.scss +0 -12
  96. package/dist/theme-chalk/icon/scss/_fixed-width.scss +0 -7
  97. package/dist/theme-chalk/icon/scss/_functions.scss +0 -57
  98. package/dist/theme-chalk/icon/scss/_icons.scss +0 -11
  99. package/dist/theme-chalk/icon/scss/_list.scss +0 -20
  100. package/dist/theme-chalk/icon/scss/_mixins.scss +0 -102
  101. package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +0 -31
  102. package/dist/theme-chalk/icon/scss/_screen-reader.scss +0 -14
  103. package/dist/theme-chalk/icon/scss/_shims.scss +0 -2606
  104. package/dist/theme-chalk/icon/scss/_sizing.scss +0 -16
  105. package/dist/theme-chalk/icon/scss/_stacked.scss +0 -32
  106. package/dist/theme-chalk/icon/scss/_variables.scss +0 -9189
  107. package/dist/theme-chalk/icon/scss/brands.scss +0 -27
  108. package/dist/theme-chalk/icon/scss/duotone.scss +0 -72
  109. package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -13
  110. package/dist/theme-chalk/icon/scss/index.scss +0 -15
  111. package/dist/theme-chalk/icon/scss/light.scss +0 -21
  112. package/dist/theme-chalk/icon/scss/regular.scss +0 -21
  113. package/dist/theme-chalk/icon/scss/solid.scss +0 -21
  114. package/dist/theme-chalk/icon/scss/thin.scss +0 -21
  115. package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -3
  116. package/dist/theme-chalk/index.scss +0 -67
  117. package/dist/theme-chalk/input/_mixins.scss +0 -16
  118. package/dist/theme-chalk/input/index.scss +0 -3
  119. package/dist/theme-chalk/input/input-range.scss +0 -208
  120. package/dist/theme-chalk/input/input.scss +0 -577
  121. package/dist/theme-chalk/input-number/index.scss +0 -172
  122. package/dist/theme-chalk/link/index.scss +0 -99
  123. package/dist/theme-chalk/loading/index.scss +0 -94
  124. package/dist/theme-chalk/message/index.scss +0 -169
  125. package/dist/theme-chalk/message-box/index.scss +0 -184
  126. package/dist/theme-chalk/notification/index.scss +0 -155
  127. package/dist/theme-chalk/pagination/index.scss +0 -515
  128. package/dist/theme-chalk/placeholder/index.scss +0 -135
  129. package/dist/theme-chalk/popconfirm/index.scss +0 -35
  130. package/dist/theme-chalk/popover/index.scss +0 -54
  131. package/dist/theme-chalk/popper/index.scss +0 -86
  132. package/dist/theme-chalk/progress/index.scss +0 -155
  133. package/dist/theme-chalk/radio/index.scss +0 -2
  134. package/dist/theme-chalk/radio/radio-button.scss +0 -128
  135. package/dist/theme-chalk/radio/radio.scss +0 -171
  136. package/dist/theme-chalk/radio-group/index.scss +0 -31
  137. package/dist/theme-chalk/row/index.scss +0 -30
  138. package/dist/theme-chalk/scrollbar/index.scss +0 -103
  139. package/dist/theme-chalk/select/index.scss +0 -244
  140. package/dist/theme-chalk/select/option-group.scss +0 -54
  141. package/dist/theme-chalk/select/option.scss +0 -63
  142. package/dist/theme-chalk/select/select-dropdown.scss +0 -57
  143. package/dist/theme-chalk/switch/index.scss +0 -273
  144. package/dist/theme-chalk/table/index.scss +0 -714
  145. package/dist/theme-chalk/tabs/index.scss +0 -620
  146. package/dist/theme-chalk/tag/index.scss +0 -360
  147. package/dist/theme-chalk/time-line/_timeline-item.scss +0 -90
  148. package/dist/theme-chalk/time-line/_timeline.scss +0 -50
  149. package/dist/theme-chalk/time-line/index.scss +0 -2
  150. package/dist/theme-chalk/time-picker/index.scss +0 -109
  151. package/dist/theme-chalk/tooltip/index.scss +0 -13
  152. package/dist/theme-chalk/transfer/index.scss +0 -247
  153. package/dist/theme-chalk/transition/index.scss +0 -756
  154. package/dist/theme-chalk/tree/_directory.scss +0 -73
  155. package/dist/theme-chalk/tree/_tree.scss +0 -401
  156. package/dist/theme-chalk/tree/index.scss +0 -2
  157. package/dist/theme-chalk/tree-select/index.scss +0 -25
  158. package/dist/theme-chalk/upload/index.scss +0 -631
@@ -1,190 +0,0 @@
1
- @use '../common/var';
2
-
3
- // Kill the scroll on the body
4
- .#{$namespace}-popup-parent--hidden {
5
- overflow: hidden !important;
6
- }
7
-
8
- .#{$namespace}-overlay {
9
- position: fixed;
10
- top: 0;
11
- right: 0;
12
- bottom: 0;
13
- left: 0;
14
- z-index: 2000;
15
- height: 100%;
16
- background-color: var(--#{$namespace}-overlay-color-lighter);
17
- overflow: auto;
18
-
19
- &.is-message-box .el-overlay-message-box {
20
- text-align: center;
21
- position: fixed;
22
- top: 0;
23
- right: 0;
24
- bottom: 0;
25
- left: 0;
26
- padding: 16px;
27
- overflow: auto;
28
- }
29
-
30
- &.is-message-box .el-overlay-message-box:after {
31
- content: '';
32
- display: inline-block;
33
- height: 100%;
34
- width: 0;
35
- vertical-align: middle;
36
- }
37
- }
38
-
39
- .#{$namespace}-overlay-dialog {
40
- position: fixed;
41
- top: 0;
42
- right: 0;
43
- bottom: 0;
44
- left: 0;
45
- overflow: auto;
46
- }
47
-
48
- // Container that the dialog scrolls within
49
- .#{$namespace}-dialog {
50
- --#{$namespace}-dialog-width: 50%;
51
- --#{$namespace}-dialog-margin-top: 15vh;
52
- --#{$namespace}-dialog-bg-color: var(--#{$namespace}-bg-color);
53
- --#{$namespace}-dialog-box-shadow: var(--#{$namespace}-box-shadow);
54
- --#{$namespace}-dialog-title-font-size: var(--#{$namespace}-font-size-large);
55
- --#{$namespace}-dialog-content-font-size: 14px;
56
- --#{$namespace}-dialog-font-line-height: var(--#{$namespace}-font-line-height-primary);
57
- --#{$namespace}-dialog-padding-primary: 16px;
58
- --#{$namespace}-dialog-border-radius: var(--#{$namespace}-border-radius-base);
59
- position: relative;
60
- margin: var(--#{$namespace}-dialog-margin-top, 15vh) auto 50px;
61
- background: var(--#{$namespace}-dialog-bg-color);
62
- border-radius: var(--#{$namespace}-dialog-border-radius);
63
- box-shadow: var(--#{$namespace}-dialog-box-shadow);
64
- box-sizing: border-box;
65
- padding: var(--#{$namespace}-dialog-padding-primary);
66
- width: var(--#{$namespace}-dialog-width, 50%);
67
-
68
- &:focus {
69
- outline: none !important;
70
- }
71
-
72
- &.is-align-center {
73
- margin: auto;
74
- }
75
-
76
- &.is-fullscreen {
77
- --#{$namespace}-dialog-width: 100%;
78
- --#{$namespace}-dialog-margin-top: 0;
79
- margin-bottom: 0;
80
- height: 100%;
81
- overflow: auto;
82
- border-radius: 0;
83
- }
84
-
85
- &.is-draggable .#{$namespace}-dialog__header {
86
- cursor: move;
87
- -webkit-user-select: none;
88
- user-select: none;
89
- }
90
-
91
- &.#{$namespace}-dialog-shake {
92
- animation: 0.3s linear rShakeHead;
93
- }
94
- }
95
-
96
- .#{$namespace}-dialog--center {
97
- text-align: center;
98
- }
99
-
100
- .#{$namespace}-dialog__wrapper {
101
- position: fixed;
102
- top: 0;
103
- right: 0;
104
- bottom: 0;
105
- left: 0;
106
- overflow: auto;
107
- margin: 0;
108
- }
109
-
110
- .#{$namespace}-dialog__header {
111
- padding-bottom: var(--#{$namespace}-dialog-padding-primary);
112
- }
113
-
114
- .#{$namespace}-dialog__header.show-close {
115
- padding-right: calc(var(--#{$namespace}-dialog-padding-primary) + var(--#{$namespace}-message-close-size, 16px));
116
- }
117
-
118
- .#{$namespace}-dialog__headerbtn {
119
- position: absolute;
120
- top: 0;
121
- right: 0;
122
- padding: 0;
123
- width: 48px;
124
- height: 48px;
125
- background: transparent;
126
- border: none;
127
- outline: none;
128
- cursor: pointer;
129
- font-size: var(--#{$namespace}-message-close-size, 16px);
130
-
131
- & .#{$namespace}-dialog__close {
132
- color: var(--#{$namespace}-color-info);
133
- font-size: inherit;
134
- }
135
-
136
- &:focus .#{$namespace}-dialog__close,
137
- &:hover .#{$namespace}-dialog__close {
138
- color: var(--#{$namespace}-color-primary);
139
- }
140
- }
141
-
142
- .#{$namespace}-dialog__title {
143
- line-height: var(--#{$namespace}-dialog-font-line-height);
144
- font-size: var(--#{$namespace}-dialog-title-font-size);
145
- color: var(--#{$namespace}-text-color-primary);
146
- }
147
-
148
- .#{$namespace}-dialog__body {
149
- color: var(--#{$namespace}-text-color-regular);
150
- font-size: var(--#{$namespace}-dialog-content-font-size);
151
- }
152
-
153
- .#{$namespace}-dialog__footer {
154
- padding-top: var(--#{$namespace}-dialog-padding-primary);
155
- text-align: right;
156
- box-sizing: border-box;
157
-
158
- &.is-left {
159
- text-align: left;
160
- }
161
-
162
- &.is-center {
163
- text-align: center;
164
- }
165
-
166
- &.is-right {
167
- text-align: right;
168
- }
169
- }
170
-
171
- .#{$namespace}-dialog--center {
172
- text-align: center;
173
-
174
- & .#{$namespace}-dialog__body {
175
- text-align: initial;
176
- }
177
-
178
- & .#{$namespace}-dialog__footer {
179
- text-align: inherit;
180
- }
181
- }
182
-
183
- .#{$namespace}-overlay-dialog {
184
- position: fixed;
185
- top: 0;
186
- right: 0;
187
- bottom: 0;
188
- left: 0;
189
- overflow: auto;
190
- }
@@ -1,46 +0,0 @@
1
- @use './common/var';
2
-
3
- @use 'sass:string';
4
- @use 'sass:map';
5
-
6
- // Break-point
7
- $sm: 768px !default;
8
- $md: 992px !default;
9
- $lg: 1200px !default;
10
- $xl: 1920px !default;
11
-
12
- $breakpoints-spec: (
13
- 'xs-only': '(max-width: #{$sm - 1})',
14
- 'sm-and-up': '(min-width: #{$sm})',
15
- 'sm-only': '(min-width: #{$sm}) and (max-width: #{$md - 1})',
16
- 'sm-and-down': '(max-width: #{$md - 1})',
17
- 'md-and-up': '(min-width: #{$md})',
18
- 'md-only': '(min-width: #{$md}) and (max-width: #{$lg - 1})',
19
- 'md-and-down': '(max-width: #{$lg - 1})',
20
- 'lg-and-up': '(min-width: #{$lg})',
21
- 'lg-only': '(min-width: #{$lg}) and (max-width: #{$xl - 1})',
22
- 'lg-and-down': '(max-width: #{$xl - 1})',
23
- 'xl-only': '(min-width: #{$xl})',
24
- ) !default;
25
-
26
- // Break-points
27
- @mixin res($key, $map: $breakpoints) {
28
- // loop breakpoint Map, return if present
29
- @if map.has-key($map, $key) {
30
- @media only screen and #{string.unquote(map.get($map, $key))} {
31
- @content;
32
- }
33
- } @else {
34
- @warn "Undefined points: `#{$map}`";
35
- }
36
- }
37
-
38
- .hidden {
39
- @each $break-point-name, $value in $breakpoints-spec {
40
- &-#{$break-point-name} {
41
- @include res($break-point-name, $breakpoints-spec) {
42
- display: none !important;
43
- }
44
- }
45
- }
46
- }
@@ -1,51 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-divider {
4
- --#{$namespace}-divider-text-bg-color: var(--#{$namespace}-bg-color);
5
- --#{$namespace}-divider-border-color: var(--#{$namespace}-border-color);
6
- position: relative;
7
- font-weight: 500;
8
- font-size: 14px;
9
- color: var(--#{$namespace}-text-color-primary);
10
- }
11
-
12
- .#{$namespace}-divider--horizontal {
13
- display: block;
14
- width: 100%;
15
- height: 1px;
16
- margin: var(--#{$namespace}-divider-margin, 24px 0);
17
- background: var(--#{$namespace}-divider-tip-bg-color);
18
- border-top: 1px var(--#{$namespace}-border-style) var(--#{$namespace}-divider-border-color);
19
- }
20
-
21
- .#{$namespace}-divider--vertical {
22
- position: relative;
23
- display: inline-block;
24
- width: 1px;
25
- height: 1em;
26
- margin: var(--#{$namespace}-divider-margin, 0 8px);
27
- vertical-align: middle;
28
- background: var(--#{$namespace}-divider-tip-bg-color);
29
- border-left: 1px var(--#{$namespace}-border-style) var(--#{$namespace}-divider-border-color);
30
- }
31
-
32
- .#{$namespace}-divider__text {
33
- position: absolute;
34
- padding: 0 20px;
35
- background-color: var(--#{$namespace}-divider-text-bg-color);
36
-
37
- &.is-left {
38
- left: 20px;
39
- transform: translateY(-50%);
40
- }
41
-
42
- &.is-center {
43
- left: 50%;
44
- transform: translateX(-50%) translateY(-50%);
45
- }
46
-
47
- &.is-right {
48
- right: 20px;
49
- transform: translateY(-50%);
50
- }
51
- }
@@ -1,2 +0,0 @@
1
- $fa-font-path: '/element-plus-react/fonts' !default;
2
- @import './index.scss';
@@ -1,250 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-drawer-wrapper {
4
- height: 100%;
5
- left: 0;
6
- position: fixed;
7
- top: 0;
8
- width: 100%;
9
- z-index: 1050;
10
- }
11
-
12
- .#{$namespace}-drawer {
13
- --#{$namespace}-drawer-width: auto;
14
- --#{$namespace}-drawer-height: 100%;
15
- --#{$namespace}-drawer-margin-top: 30px;
16
- --#{$namespace}-drawer-bg-color: var(--#{$namespace}-bg-color-overlay);
17
- --#{$namespace}-drawer-box-shadow: var(--#{$namespace}-box-shadow);
18
- --#{$namespace}-drawer-title-font-size: var(--#{$namespace}-font-size-large);
19
- --#{$namespace}-drawer-content-font-size: 14px;
20
- --#{$namespace}-drawer-font-line-height: var(--#{$namespace}-font-line-height-primary);
21
- --#{$namespace}-drawer-padding-primary: 20px;
22
- --#{$namespace}-drawer-border-radius: var(--#{$namespace}-border-radius-small);
23
-
24
- display: none;
25
- overflow: hidden;
26
- position: fixed;
27
- z-index: 1050;
28
- box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
29
- outline: 0;
30
- width: var(--#{$namespace}-drawer-width);
31
- height: var(--#{$namespace}-drawer-height);
32
- }
33
-
34
- .#{$namespace}-drawer,
35
- .#{$namespace}-drawer-open.#{$namespace}-drawer-has-backdrop {
36
- overflow: hidden;
37
- }
38
-
39
- .#{$namespace}-drawer-left,
40
- .#{$namespace}-drawer-right {
41
- top: 0;
42
- --#{$namespace}-drawer-height: 100%;
43
-
44
- &.#{$namespace}-drawer-large {
45
- --#{$namespace}-drawer-width: 969px;
46
- }
47
-
48
- &.#{$namespace}-drawer-md {
49
- --#{$namespace}-drawer-width: 800px;
50
- }
51
-
52
- &.#{$namespace}-drawer-small {
53
- --#{$namespace}-drawer-width: 600px;
54
- }
55
-
56
- &.#{$namespace}-drawer-xs {
57
- --#{$namespace}-drawer-width: 400px;
58
- }
59
- }
60
-
61
- .#{$namespace}-drawer-top,
62
- .#{$namespace}-drawer-bottom {
63
- --#{$namespace}-drawer-width: 100%;
64
-
65
- &.#{$namespace}-drawer-large {
66
- --#{$namespace}-drawer-height: 568px;
67
- }
68
-
69
- &.#{$namespace}-drawer-md {
70
- --#{$namespace}-drawer-height: 480px;
71
- }
72
-
73
- &.#{$namespace}-drawer-small {
74
- --#{$namespace}-drawer-height: 400px;
75
- }
76
-
77
- &.#{$namespace}-drawer-xs {
78
- --#{$namespace}-drawer-height: 290px;
79
- }
80
- }
81
-
82
- .#{$namespace}-drawer-full {
83
- &.#{$namespace}-drawer-top,
84
- &.#{$namespace}-drawer-bottom {
85
- --#{$namespace}-drawer-height: 100%;
86
-
87
- .#{$namespace}-drawer-content {
88
- --#{$namespace}-drawer-height: 100%;
89
- }
90
- }
91
-
92
- &.#{$namespace}-drawer-left,
93
- &.#{$namespace}-drawer-right {
94
- --#{$namespace}-drawer-width: calc(100% - 60px);
95
- }
96
- }
97
-
98
- .#{$namespace}-drawer-right {
99
- right: 0;
100
- }
101
-
102
- .#{$namespace}-drawer-left {
103
- left: 0;
104
- }
105
-
106
- .#{$namespace}-drawer-top {
107
- top: 0;
108
- }
109
-
110
- .#{$namespace}-drawer-bottom {
111
- bottom: 0;
112
- }
113
-
114
- .#{$namespace}-drawer-open .#{$namespace}-drawer {
115
- overflow: visible;
116
- }
117
-
118
- .#{$namespace}-drawer-dialog {
119
- position: relative;
120
- width: 100%;
121
- height: 100%;
122
-
123
- .#{$namespace}-drawer-shake .#{$namespace}-drawer-dialog {
124
- animation: 0.3s linear shakeHead;
125
- }
126
- }
127
-
128
- .#{$namespace}-drawer-content {
129
- position: absolute;
130
- background-color: var(--#{$namespace}-drawer-bg-color);
131
- outline: 0;
132
- width: 100%;
133
- height: 100%;
134
- display: flex;
135
- flex-direction: column;
136
- }
137
-
138
- .#{$namespace}-drawer-backdrop {
139
- position: fixed;
140
- top: 0;
141
- right: 0;
142
- bottom: 0;
143
- left: 0;
144
- z-index: 1050;
145
- background-color: var(--#{$namespace}-overlay-color-lighter);
146
-
147
- // Fade for backdrop
148
- &.#{$namespace}-anim-fade {
149
- opacity: 0;
150
- transition: opacity 0.3s ease-in;
151
- }
152
-
153
- &.#{$namespace}-anim-in {
154
- opacity: 1;
155
- }
156
- }
157
-
158
- .#{$namespace}-drawer-header {
159
- &::before,
160
- &::after {
161
- content: ' '; // 1
162
- display: table; // 2
163
- }
164
-
165
- &::after {
166
- clear: both;
167
- }
168
-
169
- padding: 15px 20px;
170
-
171
- &.is-border {
172
- border-bottom: 1px solid var(--#{$namespace}-border-color);
173
- }
174
-
175
- .#{$namespace}-drawer-header-close {
176
- background: transparent;
177
- border: none;
178
- cursor: pointer;
179
- position: absolute;
180
- right: 20px;
181
- top: 12px;
182
- font-size: 16px;
183
- line-height: 1.6666666667;
184
- color: var(--#{$namespace}-color-info);
185
- width: 20px;
186
- padding: 0 4px;
187
- }
188
- }
189
-
190
- .#{$namespace}-drawer-title {
191
- font-weight: normal;
192
- color: var(--#{$namespace}-text-color-primary);
193
- display: block;
194
- font-size: 16px;
195
- line-height: 1.25;
196
-
197
- margin: 0;
198
- overflow: hidden;
199
- text-overflow: ellipsis;
200
- white-space: nowrap;
201
- width: 100%;
202
- }
203
-
204
- .#{$namespace}-drawer-body {
205
- position: relative;
206
- flex: 1;
207
- overflow: hidden;
208
- }
209
-
210
- .#{$namespace}-drawer-footer {
211
- text-align: right;
212
- border-top: none;
213
- padding: 15px 20px;
214
-
215
- &::before,
216
- &::after {
217
- content: ' '; // 1
218
- display: table; // 2
219
- }
220
-
221
- &::after {
222
- clear: both;
223
- }
224
-
225
- // Properly space out buttons
226
- .#{$namespace}-button + .#{$namespace}-button {
227
- margin-left: 10px;
228
- margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
229
- }
230
- // but override that for button groups
231
- .#{$namespace}-button-group .#{$namespace}-button + .#{$namespace}-button {
232
- margin-left: -1px;
233
- }
234
- // and override it for block buttons as well
235
- .#{$namespace}-button-block + .#{$namespace}-button-block {
236
- margin-left: 0;
237
- }
238
- }
239
-
240
- .#{$namespace}-drawer-scrollbar-measure {
241
- position: absolute;
242
- top: -9999px;
243
- width: 50px;
244
- height: 50px;
245
- overflow: scroll;
246
- }
247
-
248
- .#{$namespace}-drawer-shake .#{$namespace}-drawer-dialog {
249
- animation: 0.3s linear rShakeHead;
250
- }
@@ -1,147 +0,0 @@
1
- @use '../common/var';
2
-
3
- .#{$namespace}-dropdown__popper {
4
- --#{$namespace}-dropdown-menu-box-shadow: var(--#{$namespace}-box-shadow-light);
5
- --#{$namespace}-dropdown-menuItem-hover-fill: var(--#{$namespace}-fill-color-light);
6
- --#{$namespace}-dropdown-menuItem-hover-color: var(--#{$namespace}-color-primary);
7
- --#{$namespace}-dropdown-menu-index: 10;
8
- }
9
-
10
- .#{$namespace}-dropdown {
11
- --#{$namespace}-dropdown-menu-box-shadow: var(--#{$namespace}-box-shadow-light);
12
- --#{$namespace}-dropdown-menuItem-hover-fill: var(--#{$namespace}-fill-color-light);
13
- --#{$namespace}-dropdown-menuItem-hover-color: var(--#{$namespace}-color-primary);
14
- display: inline-flex;
15
- position: relative;
16
- color: var(--#{$namespace}-text-color-regular);
17
- font-size: 14px;
18
- line-height: 1;
19
- vertical-align: top;
20
-
21
- &.is-disabled {
22
- color: var(--#{$namespace}-text-color-placeholder);
23
- cursor: not-allowed;
24
- }
25
-
26
- .#{$namespace}-dropdown__popper {
27
- box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
28
-
29
- .#{$namespace}-dropdown-menu {
30
- border: none;
31
- }
32
-
33
- .#{$namespace}-dropdown__popper-selfdefine {
34
- outline: none;
35
- }
36
-
37
- .#{$namespace}-scrollbar__bar {
38
- z-index: 1001;
39
- }
40
-
41
- .#{$namespace}-dropdown__list {
42
- list-style: none;
43
- padding: 0;
44
- margin: 0;
45
- box-sizing: border-box;
46
- }
47
- }
48
-
49
- // & .#{$namespace}-dropdown__caret-button {
50
- // padding-left: 0;
51
- // padding-right: 0;
52
- // display: inline-flex;
53
- // justify-content: center;
54
- // align-items: center;
55
- // width: 32px;
56
- // border-left: none;
57
-
58
- // & > span {
59
- // display: inline-flex;
60
- // }
61
-
62
- // &::before {
63
- // content: '';
64
- // position: absolute;
65
- // display: block;
66
- // width: 1px;
67
- // top: 5px;
68
- // bottom: 5px;
69
- // left: 0;
70
- // background: rgba(0, 0, 0, 0.5);
71
- // }
72
-
73
- // &.#{$namespace}-button::before {
74
- // background: #dcdfe6;
75
- // opacity: 0.5;
76
- // }
77
-
78
- // &:hover {
79
- // &::before {
80
- // top: 0;
81
- // bottom: 0;
82
- // }
83
- // }
84
-
85
- // & .#{$namespace}-dropdown__icon {
86
- // font-size: inherit;
87
- // padding-left: 0;
88
- // }
89
- // }
90
-
91
- .#{$namespace}-dropdown-selfdefine {
92
- // 自定义
93
- outline: none;
94
- }
95
- }
96
-
97
- .#{$namespace}-dropdown-menu {
98
- --#{$namespace}-dropdown-menuItem-padding: 5px 16px;
99
- position: relative;
100
- top: 0;
101
- left: 0;
102
- padding: 6px 0;
103
- margin: 0;
104
- background-color: var(--#{$namespace}-bg-color-overlay);
105
- border: none;
106
- border-radius: 4px;
107
- box-shadow: none;
108
- list-style: none;
109
- }
110
-
111
- .#{$namespace}-dropdown-menu__item {
112
- display: flex;
113
- align-items: center;
114
- white-space: nowrap;
115
- list-style: none;
116
- line-height: 22px;
117
- padding: var(--#{$namespace}-dropdown-menuItem-padding);
118
- margin: 0;
119
- font-size: 14px;
120
- color: var(--#{$namespace}-text-color-regular);
121
- cursor: pointer;
122
- outline: none;
123
-
124
- &:not(.is-disabled):hover {
125
- background-color: var(--#{$namespace}-dropdown-menuItem-hover-fill);
126
- color: var(--#{$namespace}-dropdown-menuItem-hover-color);
127
- }
128
-
129
- i {
130
- margin-right: 10px;
131
- display: inline-block;
132
- }
133
-
134
- &.is-active {
135
- color: var(--#{$namespace}-color-primary);
136
- }
137
-
138
- &.is-disabled {
139
- cursor: not-allowed;
140
- color: var(--#{$namespace}-text-color-placeholder);
141
- }
142
- }
143
-
144
- .#{$namespace}-dropdown-menu__item--divided {
145
- margin: 6px 0;
146
- border-top: 1px solid var(--#{$namespace}-border-color);
147
- }