@kdcloudjs/kdesign 1.8.30 → 1.8.32
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.
- package/dist/kdesign-complete.less +798 -83
- package/dist/kdesign.css +578 -7
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +166 -93
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +5 -5
- package/dist/kdesign.min.js.map +1 -1
- package/es/anchor/anchor.js +7 -5
- package/es/anchor/style/index.css +14 -0
- package/es/anchor/style/index.less +15 -0
- package/es/button/button.js +4 -2
- package/es/button/group.js +5 -3
- package/es/button/style/index.css +32 -0
- package/es/button/style/index.less +42 -1
- package/es/checkbox/checkbox.js +5 -3
- package/es/checkbox/group.js +4 -2
- package/es/checkbox/style/index.css +38 -1
- package/es/checkbox/style/index.less +56 -15
- package/es/city-picker/city-picker.js +32 -14
- package/es/city-picker/option.js +7 -2
- package/es/city-picker/style/index.css +54 -0
- package/es/city-picker/style/index.less +67 -0
- package/es/collapse/collapse.js +4 -2
- package/es/collapse/style/index.css +24 -0
- package/es/collapse/style/index.less +26 -0
- package/es/color-picker/color-picker.js +6 -4
- package/es/color-picker/style/index.css +129 -4
- package/es/color-picker/style/index.less +174 -29
- package/es/config-provider/compDefaultProps.d.ts +0 -1
- package/es/config-provider/compDefaultProps.js +0 -5
- package/es/dropdown/dropdown.js +5 -2
- package/es/dropdown/menu.js +4 -2
- package/es/dropdown/style/index.css +3 -0
- package/es/dropdown/style/index.less +4 -0
- package/es/image/preview.js +6 -4
- package/es/image/style/index.css +11 -0
- package/es/image/style/index.less +20 -4
- package/es/input/ClearableLabeledInput.d.ts +1 -0
- package/es/input/ClearableLabeledInput.js +6 -4
- package/es/input/TextArea.js +7 -4
- package/es/input/input.js +6 -3
- package/es/input/style/index.css +48 -0
- package/es/input/style/index.less +55 -0
- package/es/link/link.js +4 -2
- package/es/link/style/index.css +11 -0
- package/es/link/style/index.less +14 -0
- package/es/menu/menu.js +4 -2
- package/es/menu/menuItem.js +5 -3
- package/es/menu/style/index.css +10 -0
- package/es/menu/style/index.less +33 -22
- package/es/menu/subMenu.js +6 -4
- package/es/modal/modal.js +4 -2
- package/es/modal/style/index.css +7 -0
- package/es/modal/style/index.less +14 -0
- package/es/qr-code/qr-code.js +4 -2
- package/es/qr-code/style/index.css +3 -0
- package/es/qr-code/style/index.less +7 -3
- package/es/radio/group.js +4 -2
- package/es/radio/radio.js +4 -2
- package/es/radio/style/index.css +38 -0
- package/es/radio/style/index.less +46 -0
- package/es/select/option.js +4 -2
- package/es/select/select.js +8 -6
- package/es/select/style/index.css +61 -0
- package/es/select/style/index.less +87 -0
- package/es/steps/Steps.js +4 -2
- package/es/steps/style/index.css +35 -0
- package/es/steps/style/index.less +59 -5
- package/es/switch/style/index.css +9 -0
- package/es/switch/style/index.less +9 -2
- package/es/switch/switch.js +4 -2
- package/es/tag/style/index.css +7 -0
- package/es/tag/style/index.less +8 -0
- package/es/tag/tag.js +4 -2
- package/es/tree/style/index.css +19 -0
- package/es/tree/style/index.less +27 -0
- package/es/tree/tree.js +4 -2
- package/es/tree/treeNode.js +3 -2
- package/es/upload/style/index.css +24 -1
- package/es/upload/style/index.less +40 -2
- package/es/upload/upload.js +4 -2
- package/lib/anchor/anchor.js +7 -5
- package/lib/anchor/style/index.css +14 -0
- package/lib/anchor/style/index.less +15 -0
- package/lib/button/button.js +4 -2
- package/lib/button/group.js +5 -3
- package/lib/button/style/index.css +32 -0
- package/lib/button/style/index.less +42 -1
- package/lib/checkbox/checkbox.js +5 -3
- package/lib/checkbox/group.js +4 -2
- package/lib/checkbox/style/index.css +38 -1
- package/lib/checkbox/style/index.less +56 -15
- package/lib/city-picker/city-picker.js +32 -14
- package/lib/city-picker/option.js +7 -2
- package/lib/city-picker/style/index.css +54 -0
- package/lib/city-picker/style/index.less +67 -0
- package/lib/collapse/collapse.js +4 -2
- package/lib/collapse/style/index.css +24 -0
- package/lib/collapse/style/index.less +26 -0
- package/lib/color-picker/color-picker.js +6 -4
- package/lib/color-picker/style/index.css +129 -4
- package/lib/color-picker/style/index.less +174 -29
- package/lib/config-provider/compDefaultProps.d.ts +0 -1
- package/lib/config-provider/compDefaultProps.js +0 -5
- package/lib/dropdown/dropdown.js +5 -2
- package/lib/dropdown/menu.js +4 -2
- package/lib/dropdown/style/index.css +3 -0
- package/lib/dropdown/style/index.less +4 -0
- package/lib/image/preview.js +6 -4
- package/lib/image/style/index.css +11 -0
- package/lib/image/style/index.less +20 -4
- package/lib/input/ClearableLabeledInput.d.ts +1 -0
- package/lib/input/ClearableLabeledInput.js +6 -4
- package/lib/input/TextArea.js +7 -4
- package/lib/input/input.js +6 -3
- package/lib/input/style/index.css +48 -0
- package/lib/input/style/index.less +55 -0
- package/lib/link/link.js +4 -2
- package/lib/link/style/index.css +11 -0
- package/lib/link/style/index.less +14 -0
- package/lib/menu/menu.js +4 -2
- package/lib/menu/menuItem.js +5 -3
- package/lib/menu/style/index.css +10 -0
- package/lib/menu/style/index.less +33 -22
- package/lib/menu/subMenu.js +6 -4
- package/lib/modal/modal.js +4 -2
- package/lib/modal/style/index.css +7 -0
- package/lib/modal/style/index.less +14 -0
- package/lib/qr-code/qr-code.js +4 -2
- package/lib/qr-code/style/index.css +3 -0
- package/lib/qr-code/style/index.less +7 -3
- package/lib/radio/group.js +4 -2
- package/lib/radio/radio.js +4 -2
- package/lib/radio/style/index.css +38 -0
- package/lib/radio/style/index.less +46 -0
- package/lib/select/option.js +4 -2
- package/lib/select/select.js +8 -6
- package/lib/select/style/index.css +61 -0
- package/lib/select/style/index.less +87 -0
- package/lib/steps/Steps.js +4 -2
- package/lib/steps/style/index.css +35 -0
- package/lib/steps/style/index.less +59 -5
- package/lib/switch/style/index.css +9 -0
- package/lib/switch/style/index.less +9 -2
- package/lib/switch/switch.js +4 -2
- package/lib/tag/style/index.css +7 -0
- package/lib/tag/style/index.less +8 -0
- package/lib/tag/tag.js +4 -2
- package/lib/tree/style/index.css +19 -0
- package/lib/tree/style/index.less +27 -0
- package/lib/tree/tree.js +4 -2
- package/lib/tree/treeNode.js +3 -2
- package/lib/upload/style/index.css +24 -1
- package/lib/upload/style/index.less +40 -2
- package/lib/upload/upload.js +4 -2
- package/package.json +1 -1
package/es/menu/style/index.less
CHANGED
|
@@ -124,13 +124,13 @@
|
|
|
124
124
|
|
|
125
125
|
// dark
|
|
126
126
|
.@{menu-dark-prefix-cls} {
|
|
127
|
-
|
|
128
127
|
.@{submenu-prefix-cls}-sub {
|
|
129
128
|
color: @menu-sub-color;
|
|
130
129
|
background: @menu-sub-inline-color-background;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
|
-
.@{submenu-prefix-cls}-sub-second,
|
|
132
|
+
.@{submenu-prefix-cls}-sub-second,
|
|
133
|
+
.@{submenu-prefix-cls}-sub-third {
|
|
134
134
|
background: @menu-sub-color-background;
|
|
135
135
|
}
|
|
136
136
|
|
|
@@ -140,29 +140,32 @@
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
&-active {
|
|
143
|
-
.menu-dark-active()
|
|
143
|
+
.menu-dark-active();
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.@{menuitem-prefix-cls}-active,
|
|
148
|
-
|
|
147
|
+
.@{menuitem-prefix-cls}-active,
|
|
148
|
+
.@{submenu-prefix-cls}-active {
|
|
149
|
+
.menu-dark-active();
|
|
149
150
|
}
|
|
150
151
|
|
|
151
|
-
.@{menuitem-prefix-cls}-hover,
|
|
152
|
-
|
|
152
|
+
.@{menuitem-prefix-cls}-hover,
|
|
153
|
+
.@{submenu-prefix-cls}-hover {
|
|
154
|
+
.menu-dark-hover();
|
|
153
155
|
}
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
.@{menu-inline-prefix-cls}.@{menu-dark-prefix-cls} {
|
|
157
|
-
.@{menuitem-prefix-cls}-active,
|
|
159
|
+
.@{menuitem-prefix-cls}-active,
|
|
160
|
+
.@{submenu-prefix-cls}-active {
|
|
158
161
|
.@{submenu-prefix-cls}-title {
|
|
159
|
-
.menu-dark-active-inline-title()
|
|
162
|
+
.menu-dark-active-inline-title();
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
165
|
|
|
163
166
|
.@{submenu-prefix-cls}:not(.@{submenu-prefix-cls}-disabled):not(.@{submenu-prefix-cls}-active) {
|
|
164
167
|
> .@{submenu-prefix-cls}-title:hover {
|
|
165
|
-
.menu-dark-active-inline-title()
|
|
168
|
+
.menu-dark-active-inline-title();
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
}
|
|
@@ -173,9 +176,10 @@
|
|
|
173
176
|
}
|
|
174
177
|
|
|
175
178
|
.@{menu-inline-prefix-cls}.@{menu-light-prefix-cls} {
|
|
176
|
-
.@{menuitem-prefix-cls}-active,
|
|
179
|
+
.@{menuitem-prefix-cls}-active,
|
|
180
|
+
.@{submenu-prefix-cls}-active {
|
|
177
181
|
.@{submenu-prefix-cls}-title {
|
|
178
|
-
.menu-light-active-inline-title()
|
|
182
|
+
.menu-light-active-inline-title();
|
|
179
183
|
}
|
|
180
184
|
}
|
|
181
185
|
}
|
|
@@ -187,7 +191,7 @@
|
|
|
187
191
|
}
|
|
188
192
|
|
|
189
193
|
&.hidden {
|
|
190
|
-
.menu-hidden()
|
|
194
|
+
.menu-hidden();
|
|
191
195
|
}
|
|
192
196
|
|
|
193
197
|
.@{submenu-prefix-cls} {
|
|
@@ -197,18 +201,18 @@
|
|
|
197
201
|
color: @menu-sub-color;
|
|
198
202
|
background: @menu-sub-inline-color-background;
|
|
199
203
|
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
200
|
-
|
|
204
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
201
205
|
|
|
202
206
|
.@{menuitem-prefix-cls} {
|
|
203
207
|
&:not(.@{menuitem-prefix-cls}-disabled):not(.@{menuitem-prefix-cls}-active):hover,
|
|
204
208
|
&-active {
|
|
205
|
-
.menu-dark-hover()
|
|
209
|
+
.menu-dark-hover();
|
|
206
210
|
}
|
|
207
211
|
}
|
|
208
212
|
|
|
209
213
|
&-second,
|
|
210
214
|
&-third {
|
|
211
|
-
animation: kdZoomTopLeftIn calc(@menu-motion-duration - 0.1s) cubic-bezier(0, .4, .4, 1) forwards;
|
|
215
|
+
animation: kdZoomTopLeftIn calc(@menu-motion-duration - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
212
216
|
opacity: 1;
|
|
213
217
|
visibility: visible;
|
|
214
218
|
transition: opacity, visibility;
|
|
@@ -217,7 +221,7 @@
|
|
|
217
221
|
}
|
|
218
222
|
|
|
219
223
|
&-hide {
|
|
220
|
-
.menu-hidden()
|
|
224
|
+
.menu-hidden();
|
|
221
225
|
}
|
|
222
226
|
}
|
|
223
227
|
}
|
|
@@ -227,10 +231,17 @@
|
|
|
227
231
|
}
|
|
228
232
|
}
|
|
229
233
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
.@{menu-prefix-cls}-rtl {
|
|
235
|
+
direction: rtl;
|
|
236
|
+
.@{submenu-prefix-cls} {
|
|
237
|
+
direction: rtl;
|
|
238
|
+
.@{submenu-prefix-cls}-title {
|
|
239
|
+
.@{submenu-prefix-cls}-arrow {
|
|
240
|
+
margin-left: 0;
|
|
241
|
+
margin-right: auto;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
235
246
|
|
|
236
247
|
|
package/es/menu/subMenu.js
CHANGED
|
@@ -29,7 +29,8 @@ var SubMenu = function SubMenu(props) {
|
|
|
29
29
|
var _React$useContext = React.useContext(ConfigContext),
|
|
30
30
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
31
31
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
32
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
32
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
33
|
+
direction = _React$useContext.direction;
|
|
33
34
|
var _a = getCompProps('MenuSubMenu', userDefaultProps, props),
|
|
34
35
|
customPrefixcls = _a.prefixCls,
|
|
35
36
|
theme = _a.theme,
|
|
@@ -226,9 +227,10 @@ var SubMenu = function SubMenu(props) {
|
|
|
226
227
|
onMouseEnter: handleOnMouseEnter,
|
|
227
228
|
onClick: handleOnClickSubMenu
|
|
228
229
|
};
|
|
230
|
+
var isRtl = direction === 'rtl';
|
|
229
231
|
var titleStyle = {
|
|
230
|
-
paddingRight: "".concat(curPaddingRight, "px"),
|
|
231
|
-
paddingLeft: "".concat(curPaddingLeft, "px")
|
|
232
|
+
paddingRight: isRtl ? "".concat(curPaddingLeft, "px") : "".concat(curPaddingRight, "px"),
|
|
233
|
+
paddingLeft: isRtl ? "".concat(curPaddingRight, "px") : "".concat(curPaddingLeft, "px")
|
|
232
234
|
};
|
|
233
235
|
var verticalView = usePopper(React.createElement("li", _extends({
|
|
234
236
|
className: classNames(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "light", theme === 'light'), _defineProperty(_classNames2, "".concat(prefixCls, "-collapsed"), collapsed), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-hover"), !disabled && Array.isArray(openKeys) && _includesInstanceProperty(openKeys).call(openKeys, keyValue)), _defineProperty(_classNames2, "".concat(prefixCls, "-active"), Array.isArray(selectedKeyPath) && _includesInstanceProperty(selectedKeyPath).call(selectedKeyPath, keyValue)), _classNames2)),
|
|
@@ -275,7 +277,7 @@ var SubMenu = function SubMenu(props) {
|
|
|
275
277
|
});
|
|
276
278
|
}))), {
|
|
277
279
|
arrow: false,
|
|
278
|
-
placement: 'rightTop',
|
|
280
|
+
placement: direction === 'rtl' ? 'leftTop' : 'rightTop',
|
|
279
281
|
gap: 0,
|
|
280
282
|
visible: isVertical && !disabled ? visible : false,
|
|
281
283
|
disabled: isVertical ? undefined : true,
|
package/es/modal/modal.js
CHANGED
|
@@ -54,7 +54,8 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
54
54
|
var _useContext = useContext(ConfigContext),
|
|
55
55
|
getPrefixCls = _useContext.getPrefixCls,
|
|
56
56
|
prefixCls = _useContext.prefixCls,
|
|
57
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
57
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
58
|
+
direction = _useContext.direction;
|
|
58
59
|
var modalProps = getCompProps('Modal', userDefaultProps, props);
|
|
59
60
|
var body = modalProps.body,
|
|
60
61
|
bodyClassName = modalProps.bodyClassName,
|
|
@@ -108,6 +109,7 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
108
109
|
var wrapperRef = useRef(null);
|
|
109
110
|
var containerRef = ref || innerRef;
|
|
110
111
|
var modalPrefixCls = getPrefixCls(prefixCls, 'modal', customPrefixcls);
|
|
112
|
+
var rtlCls = direction === 'rtl' ? "".concat(modalPrefixCls, "-rtl") : null;
|
|
111
113
|
devWarning(ModalTypes.indexOf(type) === -1, 'modal', "cannot found modal type '".concat(type, "'"));
|
|
112
114
|
var modalContainer = typeof getContainer === 'function' ? getContainer() : getContainer;
|
|
113
115
|
if (modalContainer !== false && !(modalContainer instanceof HTMLElement)) {
|
|
@@ -372,7 +374,7 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
372
374
|
}
|
|
373
375
|
};
|
|
374
376
|
var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
|
|
375
|
-
var modalClasses = classNames(modalPrefixCls, className, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container"), true), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-ie"), isIE), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
|
|
377
|
+
var modalClasses = classNames(modalPrefixCls, rtlCls, className, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container"), true), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-ie"), isIE), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
|
|
376
378
|
var headerClass = classNames("".concat(modalPrefixCls, "-header"), titleClassName);
|
|
377
379
|
var container = React.createElement("div", {
|
|
378
380
|
className: classNames((_classNames4 = {}, _defineProperty(_classNames4, "".concat(modalPrefixCls, "-container-box"), true), _defineProperty(_classNames4, "".concat(modalPrefixCls, "-has-container-box"), modalContainer && !overroll), _defineProperty(_classNames4, "".concat(modalPrefixCls, "-showline"), showline), _classNames4)),
|
package/es/modal/style/index.css
CHANGED
|
@@ -347,3 +347,10 @@
|
|
|
347
347
|
.kd-modal-showline .kd-modal-footer {
|
|
348
348
|
border-top: var(--kd-c-modal-sizing-border, 1px) solid var(--kd-c-modal-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
349
349
|
}
|
|
350
|
+
.kd-modal-rtl {
|
|
351
|
+
direction: rtl;
|
|
352
|
+
}
|
|
353
|
+
.kd-modal-rtl .kd-modal-container-box .kd-modal-footer .kd-modal-cancel-node .kd-modal-margin-btn {
|
|
354
|
+
margin-left: var(--kd-c-modal-footer-button-spacing, 12px);
|
|
355
|
+
margin-right: 0;
|
|
356
|
+
}
|
|
@@ -226,3 +226,17 @@
|
|
|
226
226
|
border-top: @modal-border-width solid @modal-border-color;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
+
|
|
230
|
+
.@{modal-prefix-cls}-rtl {
|
|
231
|
+
direction: rtl;
|
|
232
|
+
.@{modal-prefix-cls}-container-box {
|
|
233
|
+
.@{modal-prefix-cls}-footer {
|
|
234
|
+
.@{modal-prefix-cls}-cancel-node {
|
|
235
|
+
.@{modal-prefix-cls}-margin-btn {
|
|
236
|
+
margin-left: @modal-footer-button-spacing;
|
|
237
|
+
margin-right: 0;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
package/es/qr-code/qr-code.js
CHANGED
|
@@ -18,7 +18,8 @@ var QRCode = function QRCode(props) {
|
|
|
18
18
|
getPrefixCls = _useContext.getPrefixCls,
|
|
19
19
|
prefixCls = _useContext.prefixCls,
|
|
20
20
|
userDefaultProps = _useContext.compDefaultProps,
|
|
21
|
-
getCompLangMsg = _useContext.locale.getCompLangMsg
|
|
21
|
+
getCompLangMsg = _useContext.locale.getCompLangMsg,
|
|
22
|
+
direction = _useContext.direction;
|
|
22
23
|
var qrCodeProps = getCompProps('QRCode', userDefaultProps, props);
|
|
23
24
|
var value = qrCodeProps.value,
|
|
24
25
|
size = qrCodeProps.size,
|
|
@@ -37,7 +38,8 @@ var QRCode = function QRCode(props) {
|
|
|
37
38
|
var className = qrCodeProps.className,
|
|
38
39
|
customPrefixcls = qrCodeProps.prefixCls;
|
|
39
40
|
var qrCodePrefixCls = getPrefixCls(prefixCls, 'qrcode', customPrefixcls);
|
|
40
|
-
var
|
|
41
|
+
var rtlCls = direction === 'rtl' ? "".concat(qrCodePrefixCls, "-rtl") : null;
|
|
42
|
+
var qrCodeClass = classNames(qrCodePrefixCls, rtlCls, className, _defineProperty({}, "".concat(qrCodePrefixCls, "-borderless"), !bordered));
|
|
41
43
|
var qrCodeLangMsg = getCompLangMsg({
|
|
42
44
|
componentName: 'QRCode'
|
|
43
45
|
});
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
list-style: none;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
|
|
22
|
-
&-expired{
|
|
22
|
+
&-expired {
|
|
23
23
|
margin-bottom: @qrcode-spacing-margin-vertical;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
&-mask{
|
|
26
|
+
&-mask {
|
|
27
27
|
position: absolute;
|
|
28
28
|
z-index: 10;
|
|
29
29
|
display: flex;
|
|
@@ -36,7 +36,11 @@
|
|
|
36
36
|
background: @qrcode-color-background;
|
|
37
37
|
text-align: center;
|
|
38
38
|
}
|
|
39
|
-
&-borderless{
|
|
39
|
+
&-borderless {
|
|
40
40
|
border: none;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
.@{qrcode-prefix-cls}-rtl {
|
|
45
|
+
direction: rtl;
|
|
46
|
+
}
|
package/es/radio/group.js
CHANGED
|
@@ -11,7 +11,8 @@ var RadioGroup = React.forwardRef(function (props, ref) {
|
|
|
11
11
|
var _React$useContext = React.useContext(ConfigContext),
|
|
12
12
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
13
13
|
prefixCls = _React$useContext.prefixCls,
|
|
14
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
14
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
15
|
+
direction = _React$useContext.direction;
|
|
15
16
|
var initValue = typeof props.value === 'undefined' ? props.defaultValue : props.value;
|
|
16
17
|
var _React$useState = React.useState(initValue),
|
|
17
18
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -43,6 +44,7 @@ var RadioGroup = React.forwardRef(function (props, ref) {
|
|
|
43
44
|
optionType = _getCompProps.optionType,
|
|
44
45
|
customPrefixcls = _getCompProps.prefixCls;
|
|
45
46
|
var groupPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio-group", customPrefixcls);
|
|
47
|
+
var rtlCls = direction === 'rtl' ? "".concat(groupPrefixCls, "-rtl") : null;
|
|
46
48
|
var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio", customPrefixcls);
|
|
47
49
|
var childrenToRender = children;
|
|
48
50
|
if (options && options.length > 0) {
|
|
@@ -69,7 +71,7 @@ var RadioGroup = React.forwardRef(function (props, ref) {
|
|
|
69
71
|
});
|
|
70
72
|
}
|
|
71
73
|
return React.createElement("div", {
|
|
72
|
-
className: classNames(groupPrefixCls, className),
|
|
74
|
+
className: classNames(groupPrefixCls, rtlCls, className),
|
|
73
75
|
style: style,
|
|
74
76
|
id: id,
|
|
75
77
|
ref: ref
|
package/es/radio/radio.js
CHANGED
|
@@ -25,7 +25,8 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
25
25
|
var _React$useContext = React.useContext(ConfigContext),
|
|
26
26
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
27
27
|
prefixCls = _React$useContext.prefixCls,
|
|
28
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
28
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
29
|
+
direction = _React$useContext.direction;
|
|
29
30
|
var innerRef = React.useRef();
|
|
30
31
|
var mergedRef = ref || innerRef;
|
|
31
32
|
var _a = getCompProps('Radio', userDefaultProps, props),
|
|
@@ -47,6 +48,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
47
48
|
return "radio".concat(radioType === 'square' ? "-".concat(radioType) : '');
|
|
48
49
|
};
|
|
49
50
|
var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, getPrefix(radioType), customPrefixcls);
|
|
51
|
+
var rtlCls = direction === 'rtl' ? "".concat(radioPrefixCls, "-rtl") : null;
|
|
50
52
|
var _React$useState = React.useState(initValue),
|
|
51
53
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
52
54
|
isChecked = _React$useState2[0],
|
|
@@ -67,7 +69,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
67
69
|
context.onChange(e, value);
|
|
68
70
|
}
|
|
69
71
|
};
|
|
70
|
-
var classString = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(radioPrefixCls), true), _defineProperty(_classNames, "".concat(radioPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(radioPrefixCls, "-checked"), isChecked), _classNames), className);
|
|
72
|
+
var classString = classNames(rtlCls, (_classNames = {}, _defineProperty(_classNames, "".concat(radioPrefixCls), true), _defineProperty(_classNames, "".concat(radioPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(radioPrefixCls, "-checked"), isChecked), _classNames), className);
|
|
71
73
|
useEffect(function () {
|
|
72
74
|
var _a;
|
|
73
75
|
var handleRepeatClick = function handleRepeatClick(e) {
|
package/es/radio/style/index.css
CHANGED
|
@@ -454,3 +454,41 @@
|
|
|
454
454
|
display: block;
|
|
455
455
|
line-height: 1.5;
|
|
456
456
|
}
|
|
457
|
+
.kd-radio-rtl {
|
|
458
|
+
direction: rtl;
|
|
459
|
+
}
|
|
460
|
+
.kd-radio-button-rtl {
|
|
461
|
+
direction: rtl;
|
|
462
|
+
}
|
|
463
|
+
.kd-radio-button-rtl.kd-radio-button {
|
|
464
|
+
border: var(--kd-c-radio-radius-border-width, 1px) solid var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
465
|
+
border-right: none;
|
|
466
|
+
}
|
|
467
|
+
.kd-radio-button-rtl.kd-radio-button.kd-radio-button:first-child {
|
|
468
|
+
border-radius: 0 2px 2px 0;
|
|
469
|
+
border-right: var(--kd-c-radio-radius-border-width, 1px) solid var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
470
|
+
}
|
|
471
|
+
.kd-radio-button-rtl.kd-radio-button.kd-radio-button:first-child::before {
|
|
472
|
+
content: none;
|
|
473
|
+
}
|
|
474
|
+
.kd-radio-button-rtl.kd-radio-button.kd-radio-button:last-child {
|
|
475
|
+
border-radius: 2px 0 0 2px;
|
|
476
|
+
}
|
|
477
|
+
.kd-radio-square-rtl {
|
|
478
|
+
direction: rtl;
|
|
479
|
+
}
|
|
480
|
+
.kd-radio-square-rtl.kd-radio-square {
|
|
481
|
+
margin-left: var(--kd-c-radio-spacing-margin-right, 8px);
|
|
482
|
+
margin-right: 0;
|
|
483
|
+
}
|
|
484
|
+
.kd-radio-square-rtl.kd-radio-square.kd-radio-square::after {
|
|
485
|
+
left: calc(-1 * (var(--kd-c-radio-square-sizing-height, 32px) - 10px) / 2);
|
|
486
|
+
right: auto;
|
|
487
|
+
}
|
|
488
|
+
.kd-radio-square-rtl.kd-radio-square.kd-radio-square-checked::after {
|
|
489
|
+
left: calc(-1 * (var(--kd-c-radio-square-sizing-height, 32px) - 10px) / 2);
|
|
490
|
+
right: auto;
|
|
491
|
+
}
|
|
492
|
+
.kd-radio-group-rtl {
|
|
493
|
+
direction: rtl;
|
|
494
|
+
}
|
|
@@ -365,3 +365,49 @@
|
|
|
365
365
|
line-height: 1.5;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
+
|
|
369
|
+
.@{radio-prefix-cls}-rtl {
|
|
370
|
+
direction: rtl;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.@{radio-button-prefix-cls}-rtl {
|
|
374
|
+
direction: rtl;
|
|
375
|
+
&.@{radio-button-prefix-cls} {
|
|
376
|
+
border: @radio-border-width solid @radio-color-border;
|
|
377
|
+
border-right: none;
|
|
378
|
+
&.@{radio-button-prefix-cls}:first-child {
|
|
379
|
+
border-radius: 0 @radius-size @radius-size 0;
|
|
380
|
+
border-right: @radio-border-width solid @radio-color-border;
|
|
381
|
+
&::before {
|
|
382
|
+
content: none;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
&.@{radio-button-prefix-cls}:last-child {
|
|
387
|
+
border-radius: @radius-size 0 0 @radius-size;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.@{radio-square-prefix-cls}-rtl {
|
|
394
|
+
direction: rtl;
|
|
395
|
+
&.@{radio-square-prefix-cls} {
|
|
396
|
+
margin-left: @radio-margin-right;
|
|
397
|
+
margin-right: 0;
|
|
398
|
+
&.@{radio-square-prefix-cls}::after {
|
|
399
|
+
left: calc(-1 * (@radio-square-height - 10px) / 2);
|
|
400
|
+
right: auto;
|
|
401
|
+
}
|
|
402
|
+
&.@{radio-square-prefix-cls}-checked {
|
|
403
|
+
&::after {
|
|
404
|
+
left: calc(-1 * (@radio-square-height - 10px) / 2);
|
|
405
|
+
right: auto;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
}
|
|
411
|
+
.@{radio-group-prefix-cls}-rtl {
|
|
412
|
+
direction: rtl;
|
|
413
|
+
}
|
package/es/select/option.js
CHANGED
|
@@ -29,8 +29,10 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
29
29
|
var optionProps = _extends({}, props);
|
|
30
30
|
var _useContext = useContext(ConfigContext),
|
|
31
31
|
getPrefixCls = _useContext.getPrefixCls,
|
|
32
|
-
prefixCls = _useContext.prefixCls
|
|
32
|
+
prefixCls = _useContext.prefixCls,
|
|
33
|
+
direction = _useContext.direction;
|
|
33
34
|
var selectOptionPrefixCls = getPrefixCls(prefixCls, 'select-item');
|
|
35
|
+
var rtlCls = direction === 'rtl' ? "".concat(selectOptionPrefixCls, "-rtl") : null;
|
|
34
36
|
useEffect(function () {
|
|
35
37
|
if (isMultiple) {
|
|
36
38
|
setSelected((values === null || values === void 0 ? void 0 : values.indexOf(value)) > -1);
|
|
@@ -38,7 +40,7 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
38
40
|
setSelected(value !== undefined ? value === values : false);
|
|
39
41
|
}
|
|
40
42
|
});
|
|
41
|
-
var optionCls = classNames(selectOptionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(selectOptionPrefixCls, "-option"), true), _defineProperty(_classNames, "".concat(selectOptionPrefixCls, "-option-active"), activeIndex === index), _defineProperty(_classNames, "".concat(selectOptionPrefixCls, "-option-selected"), isSelected), _defineProperty(_classNames, "".concat(selectOptionPrefixCls, "-option-disabled"), disabled), _classNames));
|
|
43
|
+
var optionCls = classNames(selectOptionPrefixCls, rtlCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(selectOptionPrefixCls, "-option"), true), _defineProperty(_classNames, "".concat(selectOptionPrefixCls, "-option-active"), activeIndex === index), _defineProperty(_classNames, "".concat(selectOptionPrefixCls, "-option-selected"), isSelected), _defineProperty(_classNames, "".concat(selectOptionPrefixCls, "-option-disabled"), disabled), _classNames));
|
|
42
44
|
var contentCls = classNames(_defineProperty({}, "".concat(selectOptionPrefixCls, "-option-content"), true));
|
|
43
45
|
var handleClick = function handleClick(e) {
|
|
44
46
|
e.preventDefault();
|
package/es/select/select.js
CHANGED
|
@@ -7,7 +7,7 @@ import _toConsumableArray from "@babel/runtime-corejs3/helpers/toConsumableArray
|
|
|
7
7
|
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
8
8
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray";
|
|
9
9
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
10
|
-
function _unsupportedIterableToArray(o, minLen) { var
|
|
10
|
+
function _unsupportedIterableToArray(o, minLen) { var _context7; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context7 = Object.prototype.toString.call(o)).call(_context7, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
11
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
12
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
13
13
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
@@ -30,12 +30,13 @@ import VirtualList from '../virtual-list';
|
|
|
30
30
|
import KeyCode from '../_utils/KeyCode';
|
|
31
31
|
var INPUT_MIN_WIDTH = 4;
|
|
32
32
|
var InternalSelect = function InternalSelect(props, ref) {
|
|
33
|
-
var _context, _classNames5, _classNames6, _classNames12, _context5;
|
|
33
|
+
var _context, _classNames5, _classNames6, _classNames12, _context5, _context6;
|
|
34
34
|
var _useContext = useContext(ConfigContext),
|
|
35
35
|
getPrefixCls = _useContext.getPrefixCls,
|
|
36
36
|
prefixCls = _useContext.prefixCls,
|
|
37
37
|
userDefaultProps = _useContext.compDefaultProps,
|
|
38
|
-
locale = _useContext.locale
|
|
38
|
+
locale = _useContext.locale,
|
|
39
|
+
direction = _useContext.direction;
|
|
39
40
|
var selectProps = getCompProps('Select', userDefaultProps, props);
|
|
40
41
|
var selectLangMsg = locale.getCompLangMsg({
|
|
41
42
|
componentName: 'Select'
|
|
@@ -125,7 +126,8 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
125
126
|
return isBoolean(showSearch) ? showSearch : isMultiple;
|
|
126
127
|
}, [isMultiple, showSearch]);
|
|
127
128
|
var selectPrefixCls = getPrefixCls(prefixCls, 'select', customPrefixcls);
|
|
128
|
-
var
|
|
129
|
+
var rtlCls = direction === 'rtl' ? "".concat(selectPrefixCls, "-rtl") : null;
|
|
130
|
+
var selectCls = classNames(selectPrefixCls, rtlCls, className, _defineProperty({}, "".concat(selectPrefixCls, "-visible"), optionShow));
|
|
129
131
|
var selectionCls = classNames(_defineProperty({}, "".concat(selectPrefixCls, "-selector"), true));
|
|
130
132
|
var dropContentCls = classNames(_defineProperty({}, "".concat(selectPrefixCls, "-dropdown-scroll"), (isMultiple ? (realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) > 8 : (realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) > 10) || selectProps.dropdownRender));
|
|
131
133
|
var multipleFooterCls = classNames(_defineProperty({}, "".concat(selectPrefixCls, "-multiple-footer"), true));
|
|
@@ -689,7 +691,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
689
691
|
var multipleCls = classNames(commCls, (_classNames10 = {}, _defineProperty(_classNames10, "".concat(selectPrefixCls, "-multiple-disabled"), disabled), _defineProperty(_classNames10, _concatInstanceProperty(_context3 = "".concat(selectPrefixCls, "-")).call(_context3, mode), mode), _defineProperty(_classNames10, "".concat(selectPrefixCls, "-focused"), focusd || optionShow), _classNames10));
|
|
690
692
|
var itemCls = classNames((_classNames11 = {}, _defineProperty(_classNames11, "".concat(selectPrefixCls, "-selection-item"), true), _defineProperty(_classNames11, _concatInstanceProperty(_context4 = "".concat(selectPrefixCls, "-selection-item-")).call(_context4, size), size), _classNames11));
|
|
691
693
|
var TagStyle = {
|
|
692
|
-
margin: '2px 8px 2px 0',
|
|
694
|
+
margin: direction === 'rtl' ? '2px 0 2px 8px' : '2px 8px 2px 0',
|
|
693
695
|
maxWidth: '100%'
|
|
694
696
|
};
|
|
695
697
|
var totalText = locale.getLangMsg('Select', 'total', {
|
|
@@ -905,7 +907,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
905
907
|
}
|
|
906
908
|
};
|
|
907
909
|
var popperProps = _extends(_extends({}, selectProps), {
|
|
908
|
-
prefixCls: _concatInstanceProperty(_context5 = "".concat(selectPrefixCls, "-dropdown-panel")).call(
|
|
910
|
+
prefixCls: _concatInstanceProperty(_context5 = _concatInstanceProperty(_context6 = "".concat(selectPrefixCls, "-dropdown-panel")).call(_context6, isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : '', " ")).call(_context5, rtlCls),
|
|
909
911
|
placement: 'bottomLeft',
|
|
910
912
|
popperStyle: catchStyle(),
|
|
911
913
|
defaultVisible: optionShow,
|
|
@@ -717,3 +717,64 @@
|
|
|
717
717
|
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
718
718
|
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
719
719
|
}
|
|
720
|
+
.kd-select-rtl {
|
|
721
|
+
direction: rtl;
|
|
722
|
+
}
|
|
723
|
+
.kd-select-rtl .kd-select-selector .kd-select-wrapper {
|
|
724
|
+
padding: 1px 0 1px 28px;
|
|
725
|
+
}
|
|
726
|
+
.kd-select-rtl .kd-select-selector .kd-select-wrapper .kd-select-suffix {
|
|
727
|
+
position: absolute;
|
|
728
|
+
right: auto;
|
|
729
|
+
left: 0;
|
|
730
|
+
margin-left: 0;
|
|
731
|
+
margin-right: 8px;
|
|
732
|
+
}
|
|
733
|
+
.kd-select-rtl .kd-select-selector .kd-select-wrapper .kd-select-placeholder {
|
|
734
|
+
right: 0;
|
|
735
|
+
left: 28px;
|
|
736
|
+
}
|
|
737
|
+
.kd-select-rtl .kd-select-selector .kd-select-wrapper.kd-select-single .kd-select-selection-search {
|
|
738
|
+
padding-left: auto;
|
|
739
|
+
position: absolute;
|
|
740
|
+
left: 28px;
|
|
741
|
+
right: 0;
|
|
742
|
+
height: 100%;
|
|
743
|
+
top: 0;
|
|
744
|
+
bottom: 0;
|
|
745
|
+
}
|
|
746
|
+
.kd-select-rtl .kd-select-selector .kd-select-multiple .kd-select-selection-tag .kd-tag {
|
|
747
|
+
margin: 2px 0 2px 8px;
|
|
748
|
+
}
|
|
749
|
+
.kd-select-rtl .kd-select-selector .kd-select-multiple .kd-select-selection-tag .kd-tag-closeWrapper {
|
|
750
|
+
margin-right: 4px;
|
|
751
|
+
margin-left: 0;
|
|
752
|
+
}
|
|
753
|
+
.kd-select-rtl .kd-select-selector .kd-select-bordered {
|
|
754
|
+
padding-left: auto !important;
|
|
755
|
+
padding-right: var(--kd-c-select-bordered-spacing-padding-left, 8px) !important;
|
|
756
|
+
}
|
|
757
|
+
.kd-select-rtl .kd-select-selector .kd-select-bordered .kd-select-suffix {
|
|
758
|
+
padding-left: 8px;
|
|
759
|
+
}
|
|
760
|
+
.kd-select-rtl .kd-select-selector .kd-select-bordered.kd-select-single .kd-select-selection-search {
|
|
761
|
+
padding-right: var(--kd-c-select-bordered-spacing-padding-left, 8px);
|
|
762
|
+
}
|
|
763
|
+
.kd-select-rtl .kd-select-selector .kd-select-bordered .kd-select-placeholder {
|
|
764
|
+
padding-right: var(--kd-c-select-bordered-spacing-padding-left, 8px);
|
|
765
|
+
}
|
|
766
|
+
.kd-select-rtl .kd-select-dropdown .kd-select-multiple-footer-hadSelected {
|
|
767
|
+
padding-right: 12px;
|
|
768
|
+
padding-left: 0;
|
|
769
|
+
}
|
|
770
|
+
.kd-select-rtl .kd-select-dropdown .kd-select-multiple-footer .kd-checkbox-default-margin {
|
|
771
|
+
margin-right: 0;
|
|
772
|
+
margin-left: 4px;
|
|
773
|
+
}
|
|
774
|
+
.kd-select-item-rtl {
|
|
775
|
+
direction: rtl;
|
|
776
|
+
}
|
|
777
|
+
.kd-select-item-rtl.kd-select-item .kd-select-item-option-content .kd-checkbox-default-margin {
|
|
778
|
+
margin-right: 0;
|
|
779
|
+
margin-left: 4px;
|
|
780
|
+
}
|
|
@@ -459,3 +459,90 @@
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
+
|
|
463
|
+
.@{select-prefix-cls}-rtl {
|
|
464
|
+
direction: rtl;
|
|
465
|
+
.@{select-prefix-cls}-selector {
|
|
466
|
+
.@{select-prefix-cls}-wrapper {
|
|
467
|
+
padding: 1px 0 1px 28px;
|
|
468
|
+
.@{select-prefix-cls}-suffix {
|
|
469
|
+
position: absolute;
|
|
470
|
+
right: auto;
|
|
471
|
+
left: 0;
|
|
472
|
+
margin-left: 0;
|
|
473
|
+
margin-right: 8px;
|
|
474
|
+
}
|
|
475
|
+
.@{select-prefix-cls}-placeholder {
|
|
476
|
+
right: 0;
|
|
477
|
+
left: 28px;
|
|
478
|
+
}
|
|
479
|
+
&.@{select-prefix-cls}-single {
|
|
480
|
+
.@{select-prefix-cls}-selection-search {
|
|
481
|
+
padding-left: auto;
|
|
482
|
+
position: absolute;
|
|
483
|
+
left: 28px;
|
|
484
|
+
right: 0;
|
|
485
|
+
height: 100%;
|
|
486
|
+
top: 0;
|
|
487
|
+
bottom: 0;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
.@{select-prefix-cls}-multiple {
|
|
492
|
+
.@{select-prefix-cls}-selection-tag {
|
|
493
|
+
.@{kd-prefix}-tag {
|
|
494
|
+
margin: 2px 0 2px 8px;
|
|
495
|
+
&-closeWrapper {
|
|
496
|
+
margin-right: 4px;
|
|
497
|
+
margin-left: 0;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
.@{select-prefix-cls}-bordered {
|
|
503
|
+
padding-left: auto !important;
|
|
504
|
+
padding-right: @select-bordered !important;
|
|
505
|
+
.@{select-prefix-cls}-suffix {
|
|
506
|
+
padding-left: 8px;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
&.@{select-prefix-cls}-single {
|
|
510
|
+
.@{select-prefix-cls}-selection-search {
|
|
511
|
+
padding-right: @select-bordered;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.@{select-prefix-cls}-placeholder {
|
|
516
|
+
padding-right: @select-bordered;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
.@{select-prefix-cls}-dropdown {
|
|
521
|
+
.@{select-prefix-cls}-multiple-footer {
|
|
522
|
+
&-hadSelected {
|
|
523
|
+
padding-right: 12px;
|
|
524
|
+
padding-left: 0;
|
|
525
|
+
}
|
|
526
|
+
.@{kd-prefix}-checkbox {
|
|
527
|
+
&-default-margin {
|
|
528
|
+
margin-right: 0;
|
|
529
|
+
margin-left: 4px;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.@{select-prefix-cls}-item-rtl {
|
|
537
|
+
direction: rtl;
|
|
538
|
+
&.@{select-prefix-cls}-item {
|
|
539
|
+
.@{select-prefix-cls}-item-option-content {
|
|
540
|
+
.@{kd-prefix}-checkbox {
|
|
541
|
+
&-default-margin {
|
|
542
|
+
margin-right: 0;
|
|
543
|
+
margin-left: 4px;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|