@kdcloudjs/kdesign 1.1.2 → 1.2.1
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/CHANGELOG.md +61 -0
- package/dist/kdesign-complete.less +1125 -926
- package/dist/kdesign.css +485 -432
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +516 -251
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +37 -16
- package/es/anchor/anchor.js +0 -6
- package/es/anchor/style/index.css +5 -2
- package/es/anchor/style/index.less +6 -2
- package/es/anchor/style/token.less +2 -1
- package/es/button/button.d.ts +1 -1
- package/es/button/button.js +2 -2
- package/es/button/group.d.ts +21 -0
- package/es/button/group.js +130 -0
- package/es/button/index.d.ts +5 -1
- package/es/button/index.js +4 -1
- package/es/button/style/index.css +117 -21
- package/es/button/style/index.less +332 -192
- package/es/button/style/token.less +41 -25
- package/es/carousel/carousel.js +4 -0
- package/es/checkbox/checkbox.js +3 -4
- package/es/checkbox/style/index.css +36 -33
- package/es/checkbox/style/index.less +25 -18
- package/es/checkbox/style/token.less +34 -35
- package/es/collapse/panel.d.ts +1 -0
- package/es/collapse/panel.js +17 -5
- package/es/collapse/style/index.css +32 -6
- package/es/collapse/style/index.less +24 -1
- package/es/collapse/style/token.less +12 -10
- package/es/config-provider/compDefaultProps.d.ts +4 -0
- package/es/config-provider/compDefaultProps.js +4 -0
- package/es/drawer/drawer.d.ts +1 -0
- package/es/drawer/drawer.js +56 -21
- package/es/empty/defaultEmptyImg.js +5 -3
- package/es/empty/illustrationEmptyImg.js +6 -4
- package/es/icon/interface.js +1 -1
- package/es/image/preview.js +1 -1
- package/es/image/style/index.css +8 -8
- package/es/image/style/index.less +5 -5
- package/es/image/style/token.less +12 -25
- package/es/input/style/index.css +53 -50
- package/es/input/style/index.less +5 -4
- package/es/input/style/mixin.less +1 -0
- package/es/input/style/token.less +23 -20
- package/es/layout/style/index.css +1 -1
- package/es/layout/style/index.less +1 -1
- package/es/layout/style/token.less +5 -5
- package/es/menu/menu.js +1 -1
- package/es/menu/style/index.css +37 -31
- package/es/menu/style/index.less +14 -0
- package/es/menu/style/mixin.less +1 -1
- package/es/menu/style/token.less +13 -16
- package/es/pagination/pagination.js +4 -4
- package/es/pagination/style/index.css +70 -55
- package/es/pagination/style/index.less +61 -43
- package/es/pagination/style/token.less +4 -4
- package/es/radio/radio.js +23 -8
- package/es/radio/style/index.css +46 -18
- package/es/radio/style/index.less +27 -1
- package/es/radio/style/token.less +4 -4
- package/es/rate/style/index.css +9 -9
- package/es/rate/style/token.less +6 -6
- package/es/select/option.js +1 -1
- package/es/select/style/index.css +14 -5
- package/es/select/style/index.less +374 -368
- package/es/select/style/token.less +2 -2
- package/es/stepper/style/index.css +1 -1
- package/es/stepper/style/token.less +1 -1
- package/es/steps/style/index.css +40 -32
- package/es/steps/style/index.less +23 -33
- package/es/steps/style/token.less +6 -9
- package/es/style/icon/kdicon.css +225 -0
- package/es/style/icon/kdicon.woff +0 -0
- package/es/switch/style/index.css +11 -11
- package/es/switch/style/index.less +2 -2
- package/es/switch/style/token.less +7 -10
- package/es/tag/style/index.css +2 -147
- package/es/tag/style/index.less +4 -24
- package/es/tag/style/mixin.less +0 -13
- package/es/tag/style/token.less +1 -1
- package/lib/_utils/usePopper.js +38 -16
- package/lib/anchor/anchor.js +0 -6
- package/lib/anchor/style/index.css +5 -2
- package/lib/anchor/style/index.less +6 -2
- package/lib/anchor/style/token.less +2 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.js +2 -2
- package/lib/button/group.d.ts +21 -0
- package/lib/button/group.js +166 -0
- package/lib/button/index.d.ts +5 -1
- package/lib/button/index.js +5 -1
- package/lib/button/style/index.css +117 -21
- package/lib/button/style/index.less +332 -192
- package/lib/button/style/token.less +41 -25
- package/lib/carousel/carousel.js +4 -0
- package/lib/checkbox/checkbox.js +3 -4
- package/lib/checkbox/style/index.css +36 -33
- package/lib/checkbox/style/index.less +25 -18
- package/lib/checkbox/style/token.less +34 -35
- package/lib/collapse/panel.d.ts +1 -0
- package/lib/collapse/panel.js +17 -5
- package/lib/collapse/style/index.css +32 -6
- package/lib/collapse/style/index.less +24 -1
- package/lib/collapse/style/token.less +12 -10
- package/lib/config-provider/compDefaultProps.d.ts +4 -0
- package/lib/config-provider/compDefaultProps.js +4 -0
- package/lib/drawer/drawer.d.ts +1 -0
- package/lib/drawer/drawer.js +61 -27
- package/lib/empty/defaultEmptyImg.js +6 -3
- package/lib/empty/illustrationEmptyImg.js +7 -4
- package/lib/icon/interface.js +1 -1
- package/lib/image/preview.js +1 -1
- package/lib/image/style/index.css +8 -8
- package/lib/image/style/index.less +5 -5
- package/lib/image/style/token.less +12 -25
- package/lib/input/style/index.css +53 -50
- package/lib/input/style/index.less +5 -4
- package/lib/input/style/mixin.less +1 -0
- package/lib/input/style/token.less +23 -20
- package/lib/layout/style/index.css +1 -1
- package/lib/layout/style/index.less +1 -1
- package/lib/layout/style/token.less +5 -5
- package/lib/menu/menu.js +1 -1
- package/lib/menu/style/index.css +37 -31
- package/lib/menu/style/index.less +14 -0
- package/lib/menu/style/mixin.less +1 -1
- package/lib/menu/style/token.less +13 -16
- package/lib/pagination/pagination.js +4 -3
- package/lib/pagination/style/index.css +70 -55
- package/lib/pagination/style/index.less +61 -43
- package/lib/pagination/style/token.less +4 -4
- package/lib/radio/radio.js +23 -8
- package/lib/radio/style/index.css +46 -18
- package/lib/radio/style/index.less +27 -1
- package/lib/radio/style/token.less +4 -4
- package/lib/rate/style/index.css +9 -9
- package/lib/rate/style/token.less +6 -6
- package/lib/select/option.js +1 -1
- package/lib/select/style/index.css +14 -5
- package/lib/select/style/index.less +374 -368
- package/lib/select/style/token.less +2 -2
- package/lib/stepper/style/index.css +1 -1
- package/lib/stepper/style/token.less +1 -1
- package/lib/steps/style/index.css +40 -32
- package/lib/steps/style/index.less +23 -33
- package/lib/steps/style/token.less +6 -9
- package/lib/style/icon/kdicon.css +225 -0
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/switch/style/index.css +11 -11
- package/lib/switch/style/index.less +2 -2
- package/lib/switch/style/token.less +7 -10
- package/lib/tag/style/index.css +2 -147
- package/lib/tag/style/index.less +4 -24
- package/lib/tag/style/mixin.less +0 -13
- package/lib/tag/style/token.less +1 -1
- package/package.json +1 -1
package/es/checkbox/checkbox.js
CHANGED
|
@@ -55,8 +55,8 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
|
|
|
55
55
|
return selected ? false : indeterminate;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
var getDefaultClassName = classNames(className, (_classNames = {}, _defineProperty(_classNames, "".concat(checkboxPrefixCls), true), _defineProperty(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), _defineProperty(_classNames, _concatInstanceProperty(_context = "".concat(checkboxPrefixCls, "-")).call(_context, size), true && !!children), _defineProperty(_classNames, _concatInstanceProperty(_context2 = "".concat(checkboxPrefixCls, "-")).call(_context2, checkboxType), true), _defineProperty(_classNames, _concatInstanceProperty(_context3 = "".concat(checkboxPrefixCls, "-")).call(_context3, checkboxType, "-disabled"), disabled), _classNames));
|
|
59
|
-
var getSquareClassName = classNames(className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(checkboxPrefixCls), true), _defineProperty(_classNames2, _concatInstanceProperty(_context4 = "".concat(checkboxPrefixCls, "-")).call(_context4, checkboxType), true), _defineProperty(_classNames2, _concatInstanceProperty(_context5 = "".concat(checkboxPrefixCls, "-")).call(_context5, checkboxType, "-disabled"), disabled), _defineProperty(_classNames2, _concatInstanceProperty(_context6 = "".concat(checkboxPrefixCls, "-")).call(_context6, checkboxType, "-checked"), selected && !disabled), _classNames2));
|
|
58
|
+
var getDefaultClassName = classNames(className, (_classNames = {}, _defineProperty(_classNames, "".concat(checkboxPrefixCls), true), _defineProperty(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), _defineProperty(_classNames, _concatInstanceProperty(_context = "".concat(checkboxPrefixCls, "-")).call(_context, size), true && !!children), _defineProperty(_classNames, _concatInstanceProperty(_context2 = "".concat(checkboxPrefixCls, "-")).call(_context2, checkboxType), true), _defineProperty(_classNames, _concatInstanceProperty(_context3 = "".concat(checkboxPrefixCls, "-")).call(_context3, checkboxType, "-disabled"), disabled), _defineProperty(_classNames, "checked", selected), _classNames));
|
|
59
|
+
var getSquareClassName = classNames(className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(checkboxPrefixCls), true), _defineProperty(_classNames2, _concatInstanceProperty(_context4 = "".concat(checkboxPrefixCls, "-")).call(_context4, checkboxType), true), _defineProperty(_classNames2, _concatInstanceProperty(_context5 = "".concat(checkboxPrefixCls, "-")).call(_context5, checkboxType, "-disabled"), disabled), _defineProperty(_classNames2, _concatInstanceProperty(_context6 = "".concat(checkboxPrefixCls, "-")).call(_context6, checkboxType, "-checked"), selected && !disabled), _defineProperty(_classNames2, "checked", selected), _classNames2));
|
|
60
60
|
var getRootClassName = isDefaultType() ? getDefaultClassName : getSquareClassName;
|
|
61
61
|
var inputClassName = classNames(_defineProperty({}, "".concat(checkboxPrefixCls, "-input"), true));
|
|
62
62
|
var checkedWrapperClassName = classNames((_classNames4 = {}, _defineProperty(_classNames4, _concatInstanceProperty(_context7 = "".concat(checkboxPrefixCls, "-")).call(_context7, checkboxType, "-no-child"), !children), _defineProperty(_classNames4, _concatInstanceProperty(_context8 = "".concat(checkboxPrefixCls, "-")).call(_context8, checkboxType, "-wrapper"), true), _defineProperty(_classNames4, _concatInstanceProperty(_context9 = "".concat(checkboxPrefixCls, "-")).call(_context9, checkboxType, "-wrapper-size"), !!children), _defineProperty(_classNames4, _concatInstanceProperty(_context10 = "".concat(checkboxPrefixCls, "-")).call(_context10, checkboxType, "-margin"), !!children), _defineProperty(_classNames4, _concatInstanceProperty(_context11 = "".concat(checkboxPrefixCls, "-")).call(_context11, checkboxType, "-checked"), selected), _defineProperty(_classNames4, _concatInstanceProperty(_context12 = "".concat(checkboxPrefixCls, "-")).call(_context12, checkboxType, "-indeterminate"), getIndeterminate()), _defineProperty(_classNames4, _concatInstanceProperty(_context13 = "".concat(checkboxPrefixCls, "-")).call(_context13, checkboxType, "-disabled"), disabled && !selected), _defineProperty(_classNames4, _concatInstanceProperty(_context14 = "".concat(checkboxPrefixCls, "-")).call(_context14, checkboxType, "-checked-disabled"), disabled && selected), _classNames4));
|
|
@@ -102,8 +102,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
|
|
|
102
102
|
ref: ref,
|
|
103
103
|
value: value,
|
|
104
104
|
checked: selected,
|
|
105
|
-
disabled: disabled
|
|
106
|
-
name: name
|
|
105
|
+
disabled: disabled
|
|
107
106
|
})), children && /*#__PURE__*/React.createElement("span", {
|
|
108
107
|
className: "".concat(checkboxPrefixCls, "-children")
|
|
109
108
|
}, children), !isDefaultType() && /*#__PURE__*/React.createElement("span", {
|
|
@@ -120,24 +120,17 @@
|
|
|
120
120
|
-webkit-box-sizing: border-box;
|
|
121
121
|
box-sizing: border-box;
|
|
122
122
|
font-size: var(--kd-c-checkbox-font-size, var(--kd-g-font-size-small, 12px));
|
|
123
|
-
color: var(--kd-c-checkbox-color-text-primary,
|
|
124
|
-
height:
|
|
123
|
+
color: var(--kd-c-checkbox-color-text-primary, #212121);
|
|
124
|
+
line-height: 18px;
|
|
125
125
|
}
|
|
126
126
|
.kd-checkbox-no-child {
|
|
127
|
-
height: var(--kd-c-checkbox-default-input-sizing-height,
|
|
128
|
-
width: var(--kd-c-checkbox-default-input-sizing-width,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
height: var(--kd-c-checkbox-sizing-height-small, 32px);
|
|
132
|
-
}
|
|
133
|
-
.kd-checkbox-middle {
|
|
134
|
-
height: var(--kd-c-checkbox-sizing-height-middle, 36px);
|
|
135
|
-
}
|
|
136
|
-
.kd-checkbox-large {
|
|
137
|
-
height: var(--kd-c-checkbox-sizing-height-large, 40px);
|
|
127
|
+
height: var(--kd-c-checkbox-default-input-sizing-height, 14px);
|
|
128
|
+
width: var(--kd-c-checkbox-default-input-sizing-width, 14px);
|
|
129
|
+
-webkit-box-sizing: border-box;
|
|
130
|
+
box-sizing: border-box;
|
|
138
131
|
}
|
|
139
132
|
.kd-checkbox-group > *:not(:last-child) {
|
|
140
|
-
margin-right: var(--kd-c-checkbox-group-spacing-margin-right,
|
|
133
|
+
margin-right: var(--kd-c-checkbox-group-spacing-margin-right, 12px);
|
|
141
134
|
}
|
|
142
135
|
.kd-checkbox-input {
|
|
143
136
|
margin: 0;
|
|
@@ -165,8 +158,8 @@
|
|
|
165
158
|
}
|
|
166
159
|
.kd-checkbox-square {
|
|
167
160
|
border-radius: 2px;
|
|
168
|
-
border: 1px solid var(--kd-c-checkbox-color-border,
|
|
169
|
-
padding: var(--kd-c-checkbox-square-spacing-padding,
|
|
161
|
+
border: 1px solid var(--kd-c-checkbox-color-border, #d9d9d9);
|
|
162
|
+
padding: var(--kd-c-checkbox-square-spacing-padding-horizontal, 7px) var(--kd-c-checkbox-square-spacing-padding-vertical, 12px);
|
|
170
163
|
-webkit-transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
|
|
171
164
|
transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
|
|
172
165
|
}
|
|
@@ -234,12 +227,13 @@
|
|
|
234
227
|
animation: kdZoomLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
235
228
|
}
|
|
236
229
|
.kd-checkbox-square-triangle-disabled {
|
|
237
|
-
border-bottom-color: var(--kd-c-checkbox-color-
|
|
230
|
+
border-bottom-color: var(--kd-c-checkbox-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
238
231
|
}
|
|
239
232
|
.kd-checkbox-square-disabled,
|
|
240
233
|
.kd-checkbox-square-disabled:hover {
|
|
241
|
-
border-color: var(--kd-c-checkbox-color-border,
|
|
242
|
-
color: var(--kd-c-checkbox-color-text-
|
|
234
|
+
border-color: var(--kd-c-checkbox-color-border, #d9d9d9);
|
|
235
|
+
color: var(--kd-c-checkbox-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
236
|
+
background-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
243
237
|
cursor: not-allowed !important;
|
|
244
238
|
}
|
|
245
239
|
.kd-checkbox-square-checked {
|
|
@@ -258,20 +252,23 @@
|
|
|
258
252
|
animation: kdZoomEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
259
253
|
}
|
|
260
254
|
.kd-checkbox-square-checked-disabled {
|
|
261
|
-
background-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #
|
|
262
|
-
border-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #
|
|
255
|
+
background-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5)) !important;
|
|
256
|
+
border-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5)) !important;
|
|
263
257
|
cursor: not-allowed !important;
|
|
264
258
|
}
|
|
265
259
|
.kd-checkbox-square-wrapper {
|
|
266
260
|
display: -webkit-inline-box;
|
|
267
261
|
display: -ms-inline-flexbox;
|
|
268
262
|
display: inline-flex;
|
|
269
|
-
height: var(--kd-c-checkbox-default-input-sizing-height,
|
|
263
|
+
height: var(--kd-c-checkbox-default-input-sizing-height, 14px);
|
|
270
264
|
width: 0;
|
|
271
265
|
-webkit-box-sizing: border-box;
|
|
272
266
|
box-sizing: border-box;
|
|
273
267
|
opacity: 0;
|
|
274
268
|
}
|
|
269
|
+
.kd-checkbox-square.checked .kd-checkbox-children {
|
|
270
|
+
color: var(--kd-c-checkbox-color-text-primary, #212121);
|
|
271
|
+
}
|
|
275
272
|
.kd-checkbox-default {
|
|
276
273
|
border: none;
|
|
277
274
|
padding: var(--kd-c-checkbox-default-spacing-padding, 0);
|
|
@@ -287,8 +284,8 @@
|
|
|
287
284
|
.kd-checkbox-default-disabled,
|
|
288
285
|
.kd-checkbox-default-disabled:hover,
|
|
289
286
|
.kd-checkbox-default-disabled:hover .kd-checkbox-default-wrapper {
|
|
290
|
-
color: var(--kd-c-checkbox-color-text-
|
|
291
|
-
border-color: var(--kd-c-checkbox-color-border,
|
|
287
|
+
color: var(--kd-c-checkbox-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
288
|
+
border-color: var(--kd-c-checkbox-color-border, #d9d9d9);
|
|
292
289
|
cursor: not-allowed !important;
|
|
293
290
|
}
|
|
294
291
|
.kd-checkbox-default-wrapper {
|
|
@@ -297,7 +294,7 @@
|
|
|
297
294
|
display: -ms-inline-flexbox;
|
|
298
295
|
display: inline-flex;
|
|
299
296
|
background-color: var(--kd-c-checkbox-color-background, var(--kd-g-color-background, #fff));
|
|
300
|
-
border: var(--kd-c-checkbox-default-input-border-width, 1px) solid var(--kd-c-checkbox-color-border,
|
|
297
|
+
border: var(--kd-c-checkbox-default-input-border-width, 1px) solid var(--kd-c-checkbox-color-border, #d9d9d9);
|
|
301
298
|
border-radius: var(--kd-c-checkbox-default-input-radius-border, 2px);
|
|
302
299
|
-webkit-box-sizing: border-box;
|
|
303
300
|
box-sizing: border-box;
|
|
@@ -317,21 +314,24 @@
|
|
|
317
314
|
box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
318
315
|
}
|
|
319
316
|
.kd-checkbox-default-wrapper-size {
|
|
320
|
-
height: var(--kd-c-checkbox-default-input-sizing-height,
|
|
321
|
-
width: var(--kd-c-checkbox-default-input-sizing-width,
|
|
317
|
+
height: var(--kd-c-checkbox-default-input-sizing-height, 14px);
|
|
318
|
+
width: var(--kd-c-checkbox-default-input-sizing-width, 14px);
|
|
322
319
|
}
|
|
323
320
|
.kd-checkbox-default-margin {
|
|
324
|
-
margin-right: var(--kd-c-checkbox-default-input-spacing-margin-right,
|
|
321
|
+
margin-right: var(--kd-c-checkbox-default-input-spacing-margin-right, 4px);
|
|
325
322
|
}
|
|
326
323
|
.kd-checkbox-default-no-child {
|
|
327
324
|
height: 100%;
|
|
328
325
|
width: 100%;
|
|
329
326
|
}
|
|
330
327
|
.kd-checkbox-default-checked-disabled {
|
|
331
|
-
background-color: var(--kd-c-checkbox-color-background-disabled,
|
|
332
|
-
border-color: var(--kd-c-checkbox-color-background-disabled,
|
|
328
|
+
background-color: var(--kd-c-checkbox-default-color-background-disabled, #e5e5e5) !important;
|
|
329
|
+
border-color: var(--kd-c-checkbox-default-color-background-disabled, #d9d9d9) !important;
|
|
333
330
|
cursor: not-allowed !important;
|
|
334
331
|
}
|
|
332
|
+
.kd-checkbox-default-checked-disabled .kd-checkbox-default-inner {
|
|
333
|
+
color: var(--kd-c-checkbox-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
334
|
+
}
|
|
335
335
|
.kd-checkbox-default-checked {
|
|
336
336
|
background-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
337
337
|
border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
.kd-checkbox-default-inner {
|
|
350
350
|
position: absolute;
|
|
351
351
|
color: var(--kd-c-checkbox-default-input-icon-color, #fff);
|
|
352
|
-
font-size: var(--kd-c-checkbox-default-input-icon-font-size,
|
|
352
|
+
font-size: var(--kd-c-checkbox-default-input-icon-font-size, 12px);
|
|
353
353
|
height: 100%;
|
|
354
354
|
width: 100%;
|
|
355
355
|
top: 5%;
|
|
@@ -371,8 +371,8 @@
|
|
|
371
371
|
position: absolute;
|
|
372
372
|
top: 50%;
|
|
373
373
|
left: 50%;
|
|
374
|
-
width:
|
|
375
|
-
height:
|
|
374
|
+
width: var(--kd-c-checkbox-default-indeterminate-sizing-square, 6px);
|
|
375
|
+
height: var(--kd-c-checkbox-default-indeterminate-sizing-square, 6px);
|
|
376
376
|
background-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
377
377
|
border: 0;
|
|
378
378
|
-webkit-transform: translate(-50%, -50%) scale(1);
|
|
@@ -380,3 +380,6 @@
|
|
|
380
380
|
opacity: 1;
|
|
381
381
|
content: " ";
|
|
382
382
|
}
|
|
383
|
+
.kd-checkbox-default.checked .kd-checkbox-children {
|
|
384
|
+
color: var(--kd-c-checkbox-color-text-primary, #212121);
|
|
385
|
+
}
|
|
@@ -16,19 +16,11 @@
|
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
font-size: @checkbox-font-size;
|
|
18
18
|
color: @checkbox-font-color;
|
|
19
|
-
height:
|
|
19
|
+
line-height: 18px;
|
|
20
20
|
&-no-child {
|
|
21
21
|
height: @checkbox-default-input-height;
|
|
22
22
|
width: @checkbox-default-input-width;
|
|
23
|
-
|
|
24
|
-
&-small {
|
|
25
|
-
height: @checkbox-small-size-height;
|
|
26
|
-
}
|
|
27
|
-
&-middle {
|
|
28
|
-
height: @checkbox-middle-size-height;
|
|
29
|
-
}
|
|
30
|
-
&-large {
|
|
31
|
-
height: @checkbox-large-size-height;
|
|
23
|
+
box-sizing: border-box;
|
|
32
24
|
}
|
|
33
25
|
&-group > *:not(:last-child) {
|
|
34
26
|
margin-right: @checkbox-group-margin-right;
|
|
@@ -56,7 +48,7 @@
|
|
|
56
48
|
.@{checkbox-prefix-cls}-square {
|
|
57
49
|
border-radius: 2px;
|
|
58
50
|
border: 1px solid @checkbox-border-color;
|
|
59
|
-
padding: @checkbox-square-padding;
|
|
51
|
+
padding: @checkbox-square-padding-horizontal @checkbox-square-padding-vertical;
|
|
60
52
|
transition: color @checkbox-transition-duration, border-color @checkbox-transition-duration;
|
|
61
53
|
&:not(&-disabled)::after {
|
|
62
54
|
content: '';
|
|
@@ -111,13 +103,14 @@
|
|
|
111
103
|
animation: kdZoomLeaveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1);
|
|
112
104
|
}
|
|
113
105
|
&-triangle-disabled {
|
|
114
|
-
border-bottom-color: @checkbox-disabled-
|
|
106
|
+
border-bottom-color: @checkbox-disabled-text-color;
|
|
115
107
|
}
|
|
116
108
|
|
|
117
109
|
&-disabled,
|
|
118
110
|
&-disabled:hover {
|
|
119
111
|
border-color: @checkbox-border-color;
|
|
120
|
-
color: @checkbox-
|
|
112
|
+
color: @checkbox-disabled-text-color;
|
|
113
|
+
background-color: @checkbox-disabled-bg-color;
|
|
121
114
|
cursor: not-allowed !important;
|
|
122
115
|
}
|
|
123
116
|
&-checked {
|
|
@@ -145,6 +138,11 @@
|
|
|
145
138
|
box-sizing: border-box;
|
|
146
139
|
opacity: 0;
|
|
147
140
|
}
|
|
141
|
+
&.checked {
|
|
142
|
+
.@{checkbox-prefix-cls}-children {
|
|
143
|
+
color: @checkbox-font-color;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
.@{checkbox-prefix-cls}-default {
|
|
@@ -160,7 +158,7 @@
|
|
|
160
158
|
&-disabled,
|
|
161
159
|
&-disabled:hover,
|
|
162
160
|
&-disabled:hover &-wrapper {
|
|
163
|
-
color: @checkbox-
|
|
161
|
+
color: @checkbox-disabled-text-color;
|
|
164
162
|
border-color: @checkbox-border-color;
|
|
165
163
|
cursor: not-allowed !important;
|
|
166
164
|
}
|
|
@@ -198,9 +196,13 @@
|
|
|
198
196
|
width: 100%;
|
|
199
197
|
}
|
|
200
198
|
&-checked-disabled {
|
|
201
|
-
background-color: @checkbox-disabled-bg
|
|
202
|
-
border-color: @checkbox-disabled-
|
|
199
|
+
background-color: @checkbox-default-disabled-color-bg !important;
|
|
200
|
+
border-color: @checkbox-default-disabled-color-border !important;
|
|
203
201
|
cursor: not-allowed !important;
|
|
202
|
+
|
|
203
|
+
.@{checkbox-prefix-cls}-default-inner {
|
|
204
|
+
color: @checkbox-disabled-text-color;
|
|
205
|
+
}
|
|
204
206
|
}
|
|
205
207
|
&-checked {
|
|
206
208
|
background-color: @checkbox-checked-border-color;
|
|
@@ -234,12 +236,17 @@
|
|
|
234
236
|
position: absolute;
|
|
235
237
|
top: 50%;
|
|
236
238
|
left: 50%;
|
|
237
|
-
width:
|
|
238
|
-
height:
|
|
239
|
+
width: @checkbox-default-indeterminate-square;
|
|
240
|
+
height: @checkbox-default-indeterminate-square;
|
|
239
241
|
background-color: @checkbox-checked-border-color;
|
|
240
242
|
border: 0;
|
|
241
243
|
transform: translate(-50%,-50%) scale(1);
|
|
242
244
|
opacity: 1;
|
|
243
245
|
content: " ";
|
|
244
246
|
}
|
|
247
|
+
&.checked {
|
|
248
|
+
.@{checkbox-prefix-cls}-children {
|
|
249
|
+
color: @checkbox-font-color;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
245
252
|
}
|
|
@@ -2,47 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
@checkbox-prefix: '--@{kd-prefix}-c-checkbox';
|
|
4
4
|
|
|
5
|
-
// font-size
|
|
6
|
-
@checkbox-font-size: var(~'@{checkbox-prefix}-font-size', @font-size-small); //默认字体大小
|
|
7
|
-
@checkbox-default-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 14px); // 勾选输入框勾勾图标大小
|
|
8
|
-
@checkbox-square-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 边框类型三角内勾选输入框勾勾图标大小
|
|
9
|
-
|
|
10
5
|
// colors
|
|
11
6
|
@checkbox-color-theme: var(~'@{checkbox-prefix}-color-theme', @color-theme);
|
|
12
|
-
@checkbox-font-color: var(~'@{checkbox-prefix}-color-text-primary',
|
|
13
|
-
@checkbox-border-color: var(~'@{checkbox-prefix}-color-border',
|
|
14
|
-
@checkbox-checked-border-color: var(~'@{checkbox-prefix}-color-border-active',
|
|
15
|
-
@checkbox-checked-font-color: var(~'@{checkbox-prefix}-color-text-hover',
|
|
16
|
-
@checkbox-default-input-icon-color: var(~'@{checkbox-prefix}-default-input-icon-color',
|
|
17
|
-
@checkbox-square-input-icon-color: var(~'@{checkbox-prefix}-square-input-icon-color',
|
|
18
|
-
@checkbox-bg-color: var(~'@{checkbox-prefix}-color-background',
|
|
19
|
-
@checkbox-disabled-bg-color: var(~'@{checkbox-prefix}-color-background-disabled',
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@checkbox-
|
|
23
|
-
@checkbox-
|
|
24
|
-
|
|
7
|
+
@checkbox-font-color: var(~'@{checkbox-prefix}-color-text-primary', #212121);
|
|
8
|
+
@checkbox-border-color: var(~'@{checkbox-prefix}-color-border', #d9d9d9);
|
|
9
|
+
@checkbox-checked-border-color: var(~'@{checkbox-prefix}-color-border-active', @color-theme);
|
|
10
|
+
@checkbox-checked-font-color: var(~'@{checkbox-prefix}-color-text-hover', @color-theme);
|
|
11
|
+
@checkbox-default-input-icon-color: var(~'@{checkbox-prefix}-default-input-icon-color', #fff); // 勾选输入框边勾勾图标颜色
|
|
12
|
+
@checkbox-square-input-icon-color: var(~'@{checkbox-prefix}-square-input-icon-color', #fff); // 边框类型三角内勾选输入框勾勾图标颜色
|
|
13
|
+
@checkbox-bg-color: var(~'@{checkbox-prefix}-color-background', @color-background);
|
|
14
|
+
@checkbox-disabled-bg-color: var(~'@{checkbox-prefix}-color-background-disabled', @color-background-contain-disabled);
|
|
15
|
+
@checkbox-disabled-border-color: var(~'@{checkbox-prefix}-color-border-disabled', @color-border-disabled);
|
|
16
|
+
@checkbox-disabled-text-color: var(~'@{checkbox-prefix}-color-text-disabled', @color-disabled);
|
|
17
|
+
@checkbox-default-disabled-color-bg: var(~'@{checkbox-prefix}-default-color-background-disabled', #e5e5e5);
|
|
18
|
+
@checkbox-default-disabled-color-border: var(~'@{checkbox-prefix}-default-color-background-disabled', #d9d9d9);
|
|
19
|
+
|
|
20
|
+
// font
|
|
21
|
+
@checkbox-font-size: var(~'@{checkbox-prefix}-font-size', @font-size-small); //默认字体大小
|
|
22
|
+
@checkbox-default-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 勾选输入框勾勾图标大小
|
|
23
|
+
@checkbox-square-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 边框类型三角内勾选输入框勾勾图标大小
|
|
25
24
|
|
|
26
|
-
//
|
|
27
|
-
@checkbox-
|
|
25
|
+
// motion
|
|
26
|
+
@checkbox-transition-duration: var(~'@{checkbox-prefix}-motion-duration', @duration-promptly);
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
@checkbox-default-input-
|
|
28
|
+
// radius
|
|
29
|
+
@checkbox-default-input-border-radius: var(~'@{checkbox-prefix}-default-input-radius-border', 2px); // 勾选输入框圆角
|
|
31
30
|
|
|
32
|
-
//
|
|
33
|
-
@checkbox-
|
|
31
|
+
// sizing
|
|
32
|
+
@checkbox-border-width: var(~'@{checkbox-prefix}-border-width', 1px); // 边框类型边框大小
|
|
33
|
+
@checkbox-default-input-height: var(~'@{checkbox-prefix}-default-input-sizing-height', 14px); // 勾选输入框高度
|
|
34
|
+
@checkbox-default-input-width: var(~'@{checkbox-prefix}-default-input-sizing-width', 14px); // 勾选输入框宽度
|
|
35
|
+
@checkbox-default-input-border-width: var(~'@{checkbox-prefix}-default-input-border-width', 1px); // 勾选输入框边框大小 不需要
|
|
36
|
+
@checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
|
|
37
|
+
@checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
|
|
38
|
+
@checkbox-default-indeterminate-square: var(~'@{checkbox-prefix}-default-indeterminate-sizing-square', 6px); // 半选框的大小
|
|
34
39
|
|
|
35
|
-
@checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
|
|
36
|
-
@checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
|
|
37
40
|
|
|
38
41
|
// spacing
|
|
39
|
-
@checkbox-group-margin-right: var(~'@{checkbox-prefix}-group-spacing-margin-right',
|
|
40
|
-
@checkbox-default-padding: var(~'@{checkbox-prefix}-default-spacing-padding',
|
|
41
|
-
@checkbox-default-input-margin-right: var(~'@{checkbox-prefix}-default-input-spacing-margin-right',
|
|
42
|
-
@checkbox-square-padding: var(~'@{checkbox-prefix}-square-spacing-padding',
|
|
42
|
+
@checkbox-group-margin-right: var(~'@{checkbox-prefix}-group-spacing-margin-right', 12px); // 按钮组的间距
|
|
43
|
+
@checkbox-default-padding: var(~'@{checkbox-prefix}-default-spacing-padding', 0); // 默认类型复选框内边距
|
|
44
|
+
@checkbox-default-input-margin-right: var(~'@{checkbox-prefix}-default-input-spacing-margin-right', 4px); // 勾选输入框与右侧内容间距
|
|
45
|
+
@checkbox-square-padding-horizontal: var(~'@{checkbox-prefix}-square-spacing-padding-horizontal', 7px); // 边框类型内边距
|
|
46
|
+
@checkbox-square-padding-vertical: var(~'@{checkbox-prefix}-square-spacing-padding-vertical', 12px); // 边框类型内边距
|
|
43
47
|
|
|
44
|
-
// radius
|
|
45
|
-
@checkbox-default-input-border-radius: var(~'@{checkbox-prefix}-default-input-radius-border', 2px); // 勾选输入框圆角
|
|
46
|
-
|
|
47
|
-
// motion
|
|
48
|
-
@checkbox-transition-duration: var(~'@{checkbox-prefix}-motion-duration', @duration-promptly);
|
package/es/collapse/panel.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface PanelProps {
|
|
|
8
8
|
expandIconPosition?: IconPositionType;
|
|
9
9
|
onChange?: (key: keyType) => void;
|
|
10
10
|
extra?: React.ReactNode | ((props: PanelProps) => React.ReactNode);
|
|
11
|
+
assist?: React.ReactNode | ((props: PanelProps) => React.ReactNode);
|
|
11
12
|
expand?: boolean;
|
|
12
13
|
defaultExpand?: boolean;
|
|
13
14
|
children?: React.ReactNode;
|
package/es/collapse/panel.js
CHANGED
|
@@ -7,7 +7,7 @@ import { getCompProps } from '../_utils';
|
|
|
7
7
|
import Icon from '../icon';
|
|
8
8
|
import isBoolean from 'lodash/isBoolean';
|
|
9
9
|
var Panel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
|
-
var
|
|
10
|
+
var _classNames6, _classNames7, _classNames8;
|
|
11
11
|
|
|
12
12
|
var _React$useContext = React.useContext(ConfigContext),
|
|
13
13
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -17,6 +17,7 @@ var Panel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
17
17
|
var _getCompProps = getCompProps('CollapsePanel', userDefaultProps, props),
|
|
18
18
|
disabled = _getCompProps.disabled,
|
|
19
19
|
extra = _getCompProps.extra,
|
|
20
|
+
assist = _getCompProps.assist,
|
|
20
21
|
header = _getCompProps.header,
|
|
21
22
|
onChange = _getCompProps.onChange,
|
|
22
23
|
panelKey = _getCompProps.panelKey,
|
|
@@ -87,6 +88,17 @@ var Panel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
87
88
|
}, renderReactNode(extra)), expandIconPosition === 'right' ? renderIcon() : null);
|
|
88
89
|
};
|
|
89
90
|
|
|
91
|
+
var renderMiddle = function renderMiddle() {
|
|
92
|
+
var _classNames5;
|
|
93
|
+
|
|
94
|
+
var className = classNames((_classNames5 = {}, _defineProperty(_classNames5, "".concat(panelPrefixCls, "-middle"), true), _defineProperty(_classNames5, "".concat(panelPrefixCls, "-disabled"), disabled), _classNames5));
|
|
95
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
96
|
+
className: className
|
|
97
|
+
}, assist && /*#__PURE__*/React.createElement("span", {
|
|
98
|
+
className: "".concat(panelPrefixCls, "-assist")
|
|
99
|
+
}, renderReactNode(assist)), expandIconPosition === 'right' ? renderIcon() : null);
|
|
100
|
+
};
|
|
101
|
+
|
|
90
102
|
var renderReactNode = function renderReactNode(reactNode) {
|
|
91
103
|
if (typeof reactNode === 'function') {
|
|
92
104
|
return reactNode();
|
|
@@ -95,9 +107,9 @@ var Panel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
95
107
|
return reactNode;
|
|
96
108
|
};
|
|
97
109
|
|
|
98
|
-
var rootClassName = classNames(className, (
|
|
99
|
-
var topClassName = classNames((
|
|
100
|
-
var childrenClassName = classNames((
|
|
110
|
+
var rootClassName = classNames(className, (_classNames6 = {}, _defineProperty(_classNames6, "".concat(panelPrefixCls), true), _defineProperty(_classNames6, "".concat(panelPrefixCls, "-border"), bordered), _defineProperty(_classNames6, "".concat(panelPrefixCls, "-opened"), expand), _classNames6));
|
|
111
|
+
var topClassName = classNames((_classNames7 = {}, _defineProperty(_classNames7, "".concat(panelPrefixCls, "-top"), true), _defineProperty(_classNames7, "".concat(panelPrefixCls, "-disabled"), disabled), _defineProperty(_classNames7, "".concat(panelPrefixCls, "-top-border"), bordered && expand), _classNames7));
|
|
112
|
+
var childrenClassName = classNames((_classNames8 = {}, _defineProperty(_classNames8, "".concat(panelPrefixCls, "-children"), expand), _defineProperty(_classNames8, "".concat(panelPrefixCls, "-children-hide"), !expand), _classNames8));
|
|
101
113
|
var childrenBorderedClassName = classNames(_defineProperty({}, "".concat(panelPrefixCls, "-children-bordered"), bordered));
|
|
102
114
|
|
|
103
115
|
var runExpandAnimation = function runExpandAnimation(element) {
|
|
@@ -146,7 +158,7 @@ var Panel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
146
158
|
ref: panelPrefixClsRef
|
|
147
159
|
}, /*#__PURE__*/React.createElement("span", {
|
|
148
160
|
className: topClassName
|
|
149
|
-
}, renderLeft(), renderRight()), /*#__PURE__*/React.createElement("div", {
|
|
161
|
+
}, renderLeft(), renderMiddle(), renderRight()), /*#__PURE__*/React.createElement("div", {
|
|
150
162
|
className: childrenClassName,
|
|
151
163
|
ref: childrenRef
|
|
152
164
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -130,13 +130,22 @@
|
|
|
130
130
|
display: -webkit-inline-box;
|
|
131
131
|
display: -ms-inline-flexbox;
|
|
132
132
|
display: inline-flex;
|
|
133
|
-
padding: var(--kd-c-collapse-header-spacing-padding,
|
|
133
|
+
padding: var(--kd-c-collapse-header-spacing-padding, 8px 50px 8px 28px);
|
|
134
134
|
background: var(--kd-c-collapse-header-color-background, rgba(0, 0, 0, 0));
|
|
135
135
|
}
|
|
136
136
|
.kd-collapse-panel-top-border {
|
|
137
137
|
border-bottom: var(--kd-c-collapse-border-width, 1px) solid var(--kd-c-collapse-color-border-strong-2, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
138
138
|
}
|
|
139
139
|
.kd-collapse-panel-left {
|
|
140
|
+
display: -webkit-inline-box;
|
|
141
|
+
display: -ms-inline-flexbox;
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
-webkit-box-align: center;
|
|
144
|
+
-ms-flex-align: center;
|
|
145
|
+
align-items: center;
|
|
146
|
+
line-height: 1.5;
|
|
147
|
+
}
|
|
148
|
+
.kd-collapse-panel-middle {
|
|
140
149
|
display: -webkit-inline-box;
|
|
141
150
|
display: -ms-inline-flexbox;
|
|
142
151
|
display: inline-flex;
|
|
@@ -144,16 +153,23 @@
|
|
|
144
153
|
-ms-flex-align: center;
|
|
145
154
|
align-items: center;
|
|
146
155
|
-webkit-box-flex: 1;
|
|
147
|
-
-ms-flex
|
|
148
|
-
flex
|
|
156
|
+
-ms-flex: 1;
|
|
157
|
+
flex: 1;
|
|
158
|
+
margin-left: 22px;
|
|
159
|
+
color: var(--kd-c-collapse-header-color-text-secondary, var(--kd-g-color-text-secondary, #666));
|
|
160
|
+
white-space: nowrap;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
text-overflow: ellipsis;
|
|
149
163
|
}
|
|
150
164
|
.kd-collapse-panel-right {
|
|
165
|
+
margin-left: 40px;
|
|
151
166
|
display: -webkit-inline-box;
|
|
152
167
|
display: -ms-inline-flexbox;
|
|
153
168
|
display: inline-flex;
|
|
154
169
|
-webkit-box-align: center;
|
|
155
170
|
-ms-flex-align: center;
|
|
156
171
|
align-items: center;
|
|
172
|
+
white-space: nowrap;
|
|
157
173
|
}
|
|
158
174
|
.kd-collapse-panel-extra,
|
|
159
175
|
.kd-collapse-panel-header {
|
|
@@ -164,7 +180,16 @@
|
|
|
164
180
|
-ms-flex-align: center;
|
|
165
181
|
align-items: center;
|
|
166
182
|
color: var(--kd-c-collapse-header-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
167
|
-
font-size: var(--kd-c-collapse-header-font-size,
|
|
183
|
+
font-size: var(--kd-c-collapse-header-font-size, 16px);
|
|
184
|
+
}
|
|
185
|
+
.kd-collapse-panel-header {
|
|
186
|
+
display: inline-block;
|
|
187
|
+
white-space: nowrap;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
text-overflow: ellipsis;
|
|
190
|
+
}
|
|
191
|
+
.kd-collapse-panel-header:hover {
|
|
192
|
+
color: var(--kd-c-collapse-header-color-text-hover, #666666);
|
|
168
193
|
}
|
|
169
194
|
.kd-collapse-panel-icon {
|
|
170
195
|
-webkit-box-align: center;
|
|
@@ -174,6 +199,7 @@
|
|
|
174
199
|
display: -ms-inline-flexbox;
|
|
175
200
|
display: inline-flex;
|
|
176
201
|
margin-right: var(--kd-c-collapse-spacing-margin-right, 6px);
|
|
202
|
+
font-size: var(--kd-c-collapse-icon-font-size, 16px);
|
|
177
203
|
}
|
|
178
204
|
.kd-collapse-panel-icon:hover,
|
|
179
205
|
.kd-collapse-panel-left:hover {
|
|
@@ -198,7 +224,7 @@
|
|
|
198
224
|
.kd-collapse-panel-children {
|
|
199
225
|
overflow: hidden;
|
|
200
226
|
opacity: 0;
|
|
201
|
-
padding: var(--kd-c-collapse-content-spacing-padding, 0
|
|
227
|
+
padding: var(--kd-c-collapse-content-spacing-padding, 0 50px);
|
|
202
228
|
color: var(--kd-c-collapse-content-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
203
229
|
font-size: var(--kd-c-collapse-content-font-size, var(--kd-g-font-size-middle, 14px));
|
|
204
230
|
-webkit-transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
@@ -209,7 +235,7 @@
|
|
|
209
235
|
overflow: hidden;
|
|
210
236
|
opacity: 0;
|
|
211
237
|
height: 0;
|
|
212
|
-
padding: var(--kd-c-collapse-content-spacing-padding, 0
|
|
238
|
+
padding: var(--kd-c-collapse-content-spacing-padding, 0 50px);
|
|
213
239
|
color: var(--kd-c-collapse-content-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
214
240
|
font-size: var(--kd-c-collapse-content-font-size, var(--kd-g-font-size-middle, 14px));
|
|
215
241
|
-webkit-transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity calc(var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)) / 2);
|
|
@@ -27,11 +27,23 @@
|
|
|
27
27
|
&-left {
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
align-items: center;
|
|
30
|
-
|
|
30
|
+
line-height: 1.5;
|
|
31
|
+
}
|
|
32
|
+
&-middle {
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
flex: 1;
|
|
36
|
+
margin-left: 22px;
|
|
37
|
+
color: @collapse-header-font-color-secondary;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
31
41
|
}
|
|
32
42
|
&-right {
|
|
43
|
+
margin-left: 40px;
|
|
33
44
|
display: inline-flex;
|
|
34
45
|
align-items: center;
|
|
46
|
+
white-space: nowrap;
|
|
35
47
|
}
|
|
36
48
|
&-extra,
|
|
37
49
|
&-header {
|
|
@@ -40,10 +52,21 @@
|
|
|
40
52
|
color: @collapse-header-font-color;
|
|
41
53
|
font-size: @collapse-header-font-size;
|
|
42
54
|
}
|
|
55
|
+
|
|
56
|
+
&-header {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
&:hover {
|
|
62
|
+
color: @collapse-header-color-text-hover;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
43
65
|
&-icon {
|
|
44
66
|
align-items: center;
|
|
45
67
|
display: inline-flex;
|
|
46
68
|
margin-right: @collapse-icon-margin-right;
|
|
69
|
+
font-size: @collapse-icon-font-size;
|
|
47
70
|
}
|
|
48
71
|
&-icon:hover,
|
|
49
72
|
&-left:hover {
|
|
@@ -2,25 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
@collapse-prefix: '--@{kd-prefix}-c-collapse';
|
|
4
4
|
|
|
5
|
-
// sizing
|
|
6
|
-
@collapse-border-width: var(~'@{collapse-prefix}-border-width', 1px);
|
|
7
|
-
@collapse-icon-margin-right: var(~'@{collapse-prefix}-spacing-margin-right', 6px);
|
|
8
|
-
@collapse-header-padding: var(~'@{collapse-prefix}-header-spacing-padding', 12px);
|
|
9
|
-
@collapse-content-bordered-padding: var(~'@{collapse-prefix}-content-bordered-spacing-padding', 12px);
|
|
10
|
-
@collapse-content-padding: var(~'@{collapse-prefix}-content-spacing-padding', 0 16px);
|
|
11
|
-
|
|
12
5
|
// color
|
|
13
6
|
@collapse-border-color: var(~'@{collapse-prefix}-color-border-strong-2', @color-border-strong-2);
|
|
14
7
|
@collapse-header-font-color: var(~'@{collapse-prefix}-header-color-text-primary', @color-text-primary);
|
|
8
|
+
@collapse-header-font-color-secondary: var(~'@{collapse-prefix}-header-color-text-secondary', @color-text-secondary);
|
|
15
9
|
@collapse-content-font-color: var(~'@{collapse-prefix}-content-color-text-primary', @color-text-primary);
|
|
16
10
|
@collapse-disabled-color: var(~'@{collapse-prefix}-color-disabled', raba(178, 178, 178, 1));
|
|
17
11
|
@collapse-header-color-background: var(~'@{collapse-prefix}-header-color-background', rgba(0, 0, 0, 0));
|
|
18
12
|
@collapse-content-color-background: var(~'@{collapse-prefix}-content-color-background', rgba(0, 0, 0, 0));
|
|
19
|
-
|
|
13
|
+
@collapse-header-color-text-hover: var(~'@{collapse-prefix}-header-color-text-hover', #666666);
|
|
20
14
|
|
|
21
15
|
// font
|
|
22
|
-
@collapse-header-font-size: var(~'@{collapse-prefix}-header-font-size',
|
|
16
|
+
@collapse-header-font-size: var(~'@{collapse-prefix}-header-font-size', 16px);
|
|
23
17
|
@collapse-content-font-size: var(~'@{collapse-prefix}-content-font-size', @font-size-middle);
|
|
18
|
+
@collapse-icon-font-size: var(~'@{collapse-prefix}-icon-font-size', 16px);
|
|
24
19
|
|
|
25
20
|
// motion
|
|
26
|
-
@collapse-transition-duration: var(~'@{collapse-prefix}-motion-duration', @duration-promptly);
|
|
21
|
+
@collapse-transition-duration: var(~'@{collapse-prefix}-motion-duration', @duration-promptly);
|
|
22
|
+
|
|
23
|
+
// sizing
|
|
24
|
+
@collapse-border-width: var(~'@{collapse-prefix}-border-width', 1px);
|
|
25
|
+
@collapse-icon-margin-right: var(~'@{collapse-prefix}-spacing-margin-right', 6px);
|
|
26
|
+
@collapse-header-padding: var(~'@{collapse-prefix}-header-spacing-padding', 8px 50px 8px 28px);
|
|
27
|
+
@collapse-content-bordered-padding: var(~'@{collapse-prefix}-content-bordered-spacing-padding', 12px);
|
|
28
|
+
@collapse-content-padding: var(~'@{collapse-prefix}-content-spacing-padding', 0 50px);
|