@kdcloudjs/kdesign 1.1.3 → 1.2.2
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 +79 -3
- package/dist/kdesign-complete.less +1006 -783
- package/dist/kdesign.css +358 -268
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +529 -262
- 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 +33 -12
- 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/carousel/displayList.js +8 -4
- package/es/carousel/fadeList.js +9 -5
- package/es/carousel/slideList.js +6 -3
- package/es/carousel/style/index.css +65 -0
- package/es/carousel/style/index.less +66 -1
- 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/radio/radio.js +3 -1
- package/es/radio/style/index.css +51 -24
- package/es/radio/style/index.less +28 -2
- 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 +2 -1
- 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/tabs/tabs.js +5 -1
- 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 +34 -12
- 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/carousel/displayList.js +9 -4
- package/lib/carousel/fadeList.js +10 -5
- package/lib/carousel/slideList.js +6 -3
- package/lib/carousel/style/index.css +65 -0
- package/lib/carousel/style/index.less +66 -1
- 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/radio/radio.js +3 -1
- package/lib/radio/style/index.css +51 -24
- package/lib/radio/style/index.less +28 -2
- 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 +2 -1
- 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/tabs/tabs.js +6 -1
- 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/lib/drawer/drawer.js
CHANGED
|
@@ -13,20 +13,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
});
|
|
14
14
|
exports.default = exports.PlacementTypes = void 0;
|
|
15
15
|
|
|
16
|
-
var _extends3 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
17
|
-
|
|
18
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
19
|
-
|
|
20
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
21
|
-
|
|
22
|
-
var _endsWith = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/ends-with"));
|
|
23
|
-
|
|
24
16
|
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
25
17
|
|
|
26
18
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
27
19
|
|
|
28
20
|
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
29
21
|
|
|
22
|
+
var _extends3 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
23
|
+
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
25
|
+
|
|
26
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
27
|
+
|
|
30
28
|
var _react = _interopRequireWildcard(require("react"));
|
|
31
29
|
|
|
32
30
|
var _index = require("../index");
|
|
@@ -57,22 +55,23 @@ exports.PlacementTypes = PlacementTypes;
|
|
|
57
55
|
var relativePostionTypes = ['relative', 'absolute', 'fixed'];
|
|
58
56
|
var horizontalPlacements = ['left', 'right'];
|
|
59
57
|
var verticalPlacements = ['top', 'bottom'];
|
|
60
|
-
var documentBody = document.body;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
var documentBody = document.body; // function transformSize(size: string | number, placement: string) {
|
|
59
|
+
// if (typeof size === 'string') {
|
|
60
|
+
// // 只考虑px 或者 %
|
|
61
|
+
// devWarning(
|
|
62
|
+
// !(size.endsWith('px') && size.endsWith('%')),
|
|
63
|
+
// 'drawer',
|
|
64
|
+
// `cannot calculate drawer size: width | height for '${size}' besides px or %`,
|
|
65
|
+
// )
|
|
66
|
+
// if (placement === 'right' || placement === 'bottom') return size || 0
|
|
67
|
+
// return size ? '-' + size : 0
|
|
68
|
+
// }
|
|
69
|
+
// if (placement === 'right' || placement === 'bottom') return (size || 0) + 'px'
|
|
70
|
+
// return ('-' + size || 0) + 'px'
|
|
71
|
+
// }
|
|
73
72
|
|
|
74
73
|
var InternalDrawer = function InternalDrawer(props, ref) {
|
|
75
|
-
var _classNames, _context2, _classNames2;
|
|
74
|
+
var _classNames, _context2, _context3, _classNames2;
|
|
76
75
|
|
|
77
76
|
var _useContext = (0, _react.useContext)(_ConfigContext.default),
|
|
78
77
|
getPrefixCls = _useContext.getPrefixCls,
|
|
@@ -100,6 +99,7 @@ var InternalDrawer = function InternalDrawer(props, ref) {
|
|
|
100
99
|
footerClassName = drawerProps.footerClassName,
|
|
101
100
|
visible = drawerProps.visible,
|
|
102
101
|
width = drawerProps.width,
|
|
102
|
+
height = drawerProps.height,
|
|
103
103
|
headerStyle = drawerProps.headerStyle,
|
|
104
104
|
headerClassName = drawerProps.headerClassName,
|
|
105
105
|
zindex = drawerProps.zIndex,
|
|
@@ -122,6 +122,7 @@ var InternalDrawer = function InternalDrawer(props, ref) {
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
var containerRef = ref || /*#__PURE__*/(0, _react.createRef)();
|
|
125
|
+
var contentRef = (0, _react.useRef)(null);
|
|
125
126
|
(0, _devwarning.default)(PlacementTypes.indexOf(placement) === -1, 'drawer', "cannot found drawer type '".concat(placement, "'"));
|
|
126
127
|
var drawerContainer = typeof getContainer === 'function' ? getContainer() : getContainer;
|
|
127
128
|
var isAtOriginalPlace = drawerContainer === false;
|
|
@@ -204,16 +205,49 @@ var InternalDrawer = function InternalDrawer(props, ref) {
|
|
|
204
205
|
closeDrawer();
|
|
205
206
|
}
|
|
206
207
|
}, [maskClosable, closeDrawer]);
|
|
208
|
+
var getHorizontalBoolAndPlacementName = (0, _react.useCallback)(function () {
|
|
209
|
+
var isHorizontal = placement === 'left' || placement === 'right';
|
|
210
|
+
var placementName = "translate".concat(isHorizontal ? 'X' : 'Y');
|
|
211
|
+
return {
|
|
212
|
+
isHorizontal: isHorizontal,
|
|
213
|
+
placementName: placementName
|
|
214
|
+
};
|
|
215
|
+
}, [placement]);
|
|
216
|
+
var setDraerTransform = (0, _react.useCallback)(function (_isOpen, _placementName, _value) {
|
|
217
|
+
if (!contentRef.current) return;
|
|
218
|
+
contentRef.current.style.transform = '';
|
|
219
|
+
}, [contentRef]);
|
|
220
|
+
(0, _react.useEffect)(function () {
|
|
221
|
+
var _getHorizontalBoolAnd = getHorizontalBoolAndPlacementName(),
|
|
222
|
+
isHorizontal = _getHorizontalBoolAnd.isHorizontal,
|
|
223
|
+
placementName = _getHorizontalBoolAnd.placementName;
|
|
224
|
+
|
|
225
|
+
var contentValue = contentRef.current ? contentRef.current.getBoundingClientRect()[isHorizontal ? 'width' : 'height'] : 0;
|
|
226
|
+
var value = (isHorizontal ? width : height) || contentValue;
|
|
227
|
+
|
|
228
|
+
if (visible) {
|
|
229
|
+
setDraerTransform(visible, placementName, value);
|
|
230
|
+
}
|
|
231
|
+
}, [contentRef, getHorizontalBoolAndPlacementName, height, setDraerTransform, visible, width]);
|
|
207
232
|
var drawerClasses = (0, _classnames.default)(drawerPrefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(drawerPrefixCls, "-hide"), !visible), (0, _defineProperty2.default)(_classNames, "".concat(drawerPrefixCls, "-active"), visible), (0, _defineProperty2.default)(_classNames, "".concat(drawerPrefixCls, "-not-at-body"), !isBody), _classNames));
|
|
208
233
|
var headerClass = "".concat(drawerPrefixCls, "-header");
|
|
234
|
+
|
|
235
|
+
var _getHorizontalBoolAnd2 = getHorizontalBoolAndPlacementName(),
|
|
236
|
+
placementName = _getHorizontalBoolAnd2.placementName;
|
|
237
|
+
|
|
238
|
+
var placementPos = placement === 'left' || placement === 'top' ? '-100%' : '100%';
|
|
239
|
+
var transform = visible ? '' : (0, _concat.default)(_context2 = "".concat(placementName, "(")).call(_context2, placementPos, ")");
|
|
209
240
|
var containerStyle = (0, _extends3.default)((0, _defineProperty2.default)({}, placement, 0), (0, _includes.default)(horizontalPlacements).call(horizontalPlacements, placement) ? {
|
|
210
|
-
width:
|
|
211
|
-
transform:
|
|
212
|
-
} : {
|
|
241
|
+
width: width,
|
|
242
|
+
transform: transform
|
|
243
|
+
} : {
|
|
244
|
+
transform: transform
|
|
245
|
+
});
|
|
213
246
|
|
|
214
247
|
var container = /*#__PURE__*/_react.default.createElement("div", {
|
|
215
|
-
className: (0, _classnames.default)((_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(drawerPrefixCls, "-container-box"), true), (0, _defineProperty2.default)(_classNames2, "".concat(drawerPrefixCls, "-has-container-box"), drawerContainer), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(
|
|
216
|
-
style: containerStyle
|
|
248
|
+
className: (0, _classnames.default)((_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(drawerPrefixCls, "-container-box"), true), (0, _defineProperty2.default)(_classNames2, "".concat(drawerPrefixCls, "-has-container-box"), drawerContainer), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context3 = "".concat(drawerPrefixCls, "-container-")).call(_context3, placement), true), _classNames2)),
|
|
249
|
+
style: containerStyle,
|
|
250
|
+
ref: contentRef
|
|
217
251
|
}, (title || closable) && /*#__PURE__*/_react.default.createElement("div", {
|
|
218
252
|
className: (0, _classnames.default)(headerClass, headerClassName),
|
|
219
253
|
style: headerStyle
|
|
@@ -17,6 +17,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
|
|
18
18
|
var _ConfigContext = _interopRequireDefault(require("../config-provider/ConfigContext"));
|
|
19
19
|
|
|
20
|
+
var _uniqueId = _interopRequireDefault(require("lodash/uniqueId"));
|
|
21
|
+
|
|
20
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
23
|
|
|
22
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -27,6 +29,7 @@ function DefaultEmptyImg() {
|
|
|
27
29
|
prefixCls = _useContext.prefixCls;
|
|
28
30
|
|
|
29
31
|
var emptyPrefixCls = getPrefixCls(prefixCls, 'empty');
|
|
32
|
+
var linearGradientId = (0, _uniqueId.default)(emptyPrefixCls + '-default-linearGradient');
|
|
30
33
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
31
34
|
className: "".concat(emptyPrefixCls, "-image"),
|
|
32
35
|
width: "168px",
|
|
@@ -39,7 +42,7 @@ function DefaultEmptyImg() {
|
|
|
39
42
|
y1: "0%",
|
|
40
43
|
x2: "50%",
|
|
41
44
|
y2: "100%",
|
|
42
|
-
id:
|
|
45
|
+
id: linearGradientId
|
|
43
46
|
}, /*#__PURE__*/_react.default.createElement("stop", {
|
|
44
47
|
stopColor: "#D6DCE7",
|
|
45
48
|
offset: "0%"
|
|
@@ -89,7 +92,7 @@ function DefaultEmptyImg() {
|
|
|
89
92
|
height: "6"
|
|
90
93
|
})), /*#__PURE__*/_react.default.createElement("g", {
|
|
91
94
|
transform: "translate(108.000000, 40.000000)",
|
|
92
|
-
fill: "url(#
|
|
95
|
+
fill: "url(#".concat(linearGradientId, ")"),
|
|
93
96
|
id: "\u80CC\u666F/\u4E91",
|
|
94
97
|
opacity: "0.300000012"
|
|
95
98
|
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
@@ -98,7 +101,7 @@ function DefaultEmptyImg() {
|
|
|
98
101
|
d: "M3,39 L3,24 C3,15.7157288 9.71572875,9 18,9 C25.4616776,9 31.6508469,14.4482558 32.8063948,21.5836543 C33.797875,21.2064779 34.8748247,21 36,21 C40.9705627,21 45,25.0294373 45,30 L45,39 L3,39 Z"
|
|
99
102
|
}))), /*#__PURE__*/_react.default.createElement("g", {
|
|
100
103
|
transform: "translate(12.000000, 32.000000)",
|
|
101
|
-
fill: "url(#
|
|
104
|
+
fill: "url(#".concat(linearGradientId, ")"),
|
|
102
105
|
id: "\u80CC\u666F/\u4E91",
|
|
103
106
|
opacity: "0.300000012"
|
|
104
107
|
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
@@ -17,6 +17,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
|
|
18
18
|
var _ConfigContext = _interopRequireDefault(require("../config-provider/ConfigContext"));
|
|
19
19
|
|
|
20
|
+
var _uniqueId = _interopRequireDefault(require("lodash/uniqueId"));
|
|
21
|
+
|
|
20
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
23
|
|
|
22
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -27,6 +29,7 @@ function IllustrationEmptyImg() {
|
|
|
27
29
|
prefixCls = _useContext.prefixCls;
|
|
28
30
|
|
|
29
31
|
var emptyPrefixCls = getPrefixCls(prefixCls, 'empty');
|
|
32
|
+
var linearGradientId = (0, _uniqueId.default)(emptyPrefixCls + '-illus-linearGradient-');
|
|
30
33
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
31
34
|
className: "".concat(emptyPrefixCls, "-image"),
|
|
32
35
|
width: "200px",
|
|
@@ -45,7 +48,7 @@ function IllustrationEmptyImg() {
|
|
|
45
48
|
y1: "0%",
|
|
46
49
|
x2: "50%",
|
|
47
50
|
y2: "100%",
|
|
48
|
-
id:
|
|
51
|
+
id: linearGradientId
|
|
49
52
|
}, /*#__PURE__*/_react.default.createElement("stop", {
|
|
50
53
|
stopColor: "#F2F5FA",
|
|
51
54
|
offset: "0%"
|
|
@@ -58,7 +61,7 @@ function IllustrationEmptyImg() {
|
|
|
58
61
|
y1: "0%",
|
|
59
62
|
x2: "50%",
|
|
60
63
|
y2: "100%",
|
|
61
|
-
id: "
|
|
64
|
+
id: "".concat(linearGradientId, "-1")
|
|
62
65
|
}, /*#__PURE__*/_react.default.createElement("stop", {
|
|
63
66
|
stopColor: "#F2F5FA",
|
|
64
67
|
offset: "0%"
|
|
@@ -112,7 +115,7 @@ function IllustrationEmptyImg() {
|
|
|
112
115
|
transform: "translate(11.428571, 37.050000)"
|
|
113
116
|
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
114
117
|
transform: "translate(34.285714, 34.200000) scale(-1, 1) translate(-34.285714, -34.200000) ",
|
|
115
|
-
fill: "url(#
|
|
118
|
+
fill: "url(#".concat(linearGradientId, ")"),
|
|
116
119
|
id: "\u5F62\u72B6\u7ED3\u5408"
|
|
117
120
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
118
121
|
d: "M4.28571429,55.575 L4.28571429,34.2535714 C4.28571429,22.4188982 13.8796125,12.825 25.7142857,12.825 C36.3598894,12.825 45.1923741,20.587885 46.8597669,30.7616821 C48.2786739,30.2207368 49.8190861,29.925 51.4285714,29.925 C58.5293754,29.925 64.2857143,35.6813389 64.2857143,42.7821429 L64.2857143,55.575 L4.28571429,55.575 Z"
|
|
@@ -121,7 +124,7 @@ function IllustrationEmptyImg() {
|
|
|
121
124
|
id: "\u80CC\u666F/\u4E91"
|
|
122
125
|
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
123
126
|
transform: "translate(142.857143, 51.300000)",
|
|
124
|
-
fill: "url(#
|
|
127
|
+
fill: "url(#".concat(linearGradientId, "-1)"),
|
|
125
128
|
id: "\u5F62\u72B6\u7ED3\u5408"
|
|
126
129
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
127
130
|
d: "M17.1428571,8.55 C24.2401777,8.55 30.1286667,13.7256234 31.2399627,20.508509 C32.186033,20.1471098 33.2128549,19.95 34.2857143,19.95 C39.0195836,19.95 42.8571429,23.7875593 42.8571429,28.5214286 L42.8571429,37.05 L31.4281429,37.049 L31.4285714,37.05 L2.85714286,37.05 L2.85714286,22.8357143 C2.85714286,14.9459321 9.253075,8.55 17.1428571,8.55 Z"
|
package/lib/icon/interface.js
CHANGED
|
@@ -11,7 +11,7 @@ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
|
|
|
11
11
|
|
|
12
12
|
var _type = require("../_utils/type");
|
|
13
13
|
|
|
14
|
-
var BaseIcon = ['arrow-up', 'arrow-down', 'arrow-left', 'arrow-right', 'first', 'last', 'double-arrow-left', 'double-arrow-right', 'push-down', 'put-top', 'put-bottom', 'put-on', 'put-off', 'switch-up', 'switch-down', 'all-border', 'top-border', 'right-border', 'bottom-border', 'left-border', 'left-extension', 'right-extension', 'left-unfold', 'right-unfold', 'unfoldmenu', 'foldmenu', 'enlarge', 'expand', 'close-full-screen', 'split', 'back', 'arrow', 'no-border', 'border', 'rough-border', 'align-left', 'align-right', 'align-center', 'vertical-center', 'delete-indentation', 'equal', 'greater-equal', 'not-equal', 'male', 'female', 'copy', 'print', 'lock', 'scanning', 'like', 'project', 'user-info', 'shutdown', 'image', 'delete-line', 'add-line', 'job-info', 'detect', 'cancel', 'stop', 'cell', 'fixed-shrink', 'attachment', 'location', 'reduce', 'resign-report', 'forbid', 'education', 'unlock', 'contract', 'filter', 'more', 'operating-element', 'fail', 'edit', 'have-attachment', 'hide', 'preview', 'unfold-all', 'wrap', 'filter-switch', 'qualification-info', 'cn', 'en', 'git', 'reset', 'preview-view', 'unfold', 'comment', 'shoppingcart', 'add-child', 'save', 'detail', 'table-setting', 'edit-view', 'edit-border', 'hyperlink', 'code', 'import', 'address', 'analysis', 'share', 'chart', 'fixed-window', 'order', 'phone', 'classify', 'feedback', 'menu', 'voice', 'search-border', 'material', 'finish', 'more-info', 'fixed', 'change', 'copy-code', 'return', 'qrcode', 'counterclockwise', 'list', 'switch', 'task-process', 'add', 'delete', 'add-word', 'two-window', 'spin', 'ordered-list', 'cooperation', 'quit', 'shrink', 'zoom', 'graffiti', 'experience', 'medical-report', 'bankcard', 'yunzhijia', 'customize', 'refresh', 'search', 'loadding', 'loadding-circle', 'right', 'close', 'upload', 'download', 'upload-cloud', 'waiting', 'warning', 'exclamatory', 'tips', 'setting', 'chart-display', 'date', 'more-item', 'international', 'little-k', 'bellOutlined'];
|
|
14
|
+
var BaseIcon = ['arrow-up', 'arrow-down', 'arrow-left', 'arrow-right', 'first', 'last', 'double-arrow-left', 'double-arrow-right', 'push-down', 'put-top', 'put-bottom', 'put-on', 'put-off', 'switch-up', 'switch-down', 'all-border', 'top-border', 'right-border', 'bottom-border', 'left-border', 'left-extension', 'right-extension', 'left-unfold', 'right-unfold', 'unfoldmenu', 'foldmenu', 'enlarge', 'expand', 'close-full-screen', 'split', 'back', 'arrow', 'no-border', 'border', 'rough-border', 'align-left', 'align-right', 'align-center', 'vertical-center', 'delete-indentation', 'equal', 'greater-equal', 'not-equal', 'male', 'female', 'copy', 'print', 'lock', 'scanning', 'like', 'project', 'user-info', 'shutdown', 'image', 'delete-line', 'add-line', 'job-info', 'detect', 'cancel', 'stop', 'cell', 'fixed-shrink', 'attachment', 'location', 'reduce', 'resign-report', 'forbid', 'education', 'unlock', 'contract', 'filter', 'more', 'operating-element', 'fail', 'edit', 'have-attachment', 'hide', 'preview', 'unfold-all', 'wrap', 'filter-switch', 'qualification-info', 'cn', 'en', 'git', 'reset', 'preview-view', 'unfold', 'comment', 'shoppingcart', 'add-child', 'save', 'detail', 'table-setting', 'edit-view', 'edit-border', 'hyperlink', 'code', 'import', 'address', 'analysis', 'share', 'chart', 'fixed-window', 'order', 'phone', 'classify', 'feedback', 'menu', 'voice', 'search-border', 'material', 'finish', 'more-info', 'fixed', 'change', 'copy-code', 'return', 'qrcode', 'counterclockwise', 'list', 'switch', 'task-process', 'add', 'delete', 'add-word', 'two-window', 'spin', 'ordered-list', 'cooperation', 'quit', 'shrink', 'zoom', 'graffiti', 'experience', 'medical-report', 'bankcard', 'yunzhijia', 'customize', 'refresh', 'search', 'loadding', 'loadding-circle', 'right', 'close', 'upload', 'download', 'upload-cloud', 'waiting', 'warning', 'exclamatory', 'tips', 'setting', 'chart-display', 'date', 'more-item', 'international', 'little-k', 'bellOutlined', 'sigma'];
|
|
15
15
|
exports.BaseIcon = BaseIcon;
|
|
16
16
|
var SolidIcon = ['arrow-up-solid', 'arrow-right-solid', 'arrow-down-solid', 'arrow-left-solid', 'left-unfold-solid', 'right-unfold-solid', 'unlock-solid', 'multiply', 'division-solid', 'title-solid', 'communication-solid', 'fixed-solid', 'more-info-solid', 'timezone-solid', 'mosaic-solid', 'strike-solid', 'lock-solid', 'filter-solid', 'person-solid', 'bold-solid', 'delete-solid', 'processing-solid', 'tips-solid', 'quote-solid', 'oblique-solid', 'sun-solid', 'underline-solid', 'font-background-solid', 'eliminate-solid', 'font-color-solid', 'fx', 'refresh-solid', 'right-solid', 'location-solid', 'add-solid', 'warning-solid', 'close-solid', 'right-bold', 'close-bold', 'workbench', 'star', 'notice'];
|
|
17
17
|
exports.SolidIcon = SolidIcon;
|
package/lib/image/preview.js
CHANGED
|
@@ -201,7 +201,7 @@ var Preview = function Preview(props) {
|
|
|
201
201
|
}, operations, /*#__PURE__*/React.createElement("span", {
|
|
202
202
|
onClick: onClose
|
|
203
203
|
}, /*#__PURE__*/React.createElement(_icon.default, {
|
|
204
|
-
type: "close"
|
|
204
|
+
type: "close-solid"
|
|
205
205
|
}), "\u5173\u95ED"))));
|
|
206
206
|
return /*#__PURE__*/_reactDom.default.createPortal(peviewContainer, document.body);
|
|
207
207
|
};
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
opacity: 0;
|
|
138
138
|
-webkit-transform: translateY(100%);
|
|
139
139
|
transform: translateY(100%);
|
|
140
|
-
-webkit-transition: all
|
|
141
|
-
transition: all
|
|
140
|
+
-webkit-transition: all 0.2s ease-out;
|
|
141
|
+
transition: all 0.2s ease-out;
|
|
142
142
|
background-color: var(--kd-c-image-action-color-background, rgba(0, 0, 0, 0.5));
|
|
143
143
|
}
|
|
144
144
|
.kd-image-action > * {
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
margin-left: 20px;
|
|
152
152
|
}
|
|
153
153
|
.kd-image-preview {
|
|
154
|
-
z-index:
|
|
154
|
+
z-index: 3000;
|
|
155
155
|
position: fixed;
|
|
156
156
|
top: 0;
|
|
157
157
|
right: 0;
|
|
@@ -161,8 +161,8 @@
|
|
|
161
161
|
-webkit-transform: scale(0.15);
|
|
162
162
|
transform: scale(0.15);
|
|
163
163
|
visibility: hidden;
|
|
164
|
-
-webkit-transition: all
|
|
165
|
-
transition: all
|
|
164
|
+
-webkit-transition: all 0.2s cubic-bezier(0.4, 0, 1, 0.6);
|
|
165
|
+
transition: all 0.2s cubic-bezier(0.4, 0, 1, 0.6);
|
|
166
166
|
-webkit-overflow-scrolling: touch;
|
|
167
167
|
}
|
|
168
168
|
.kd-image-preview.show {
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
-webkit-transform: scale(1);
|
|
171
171
|
transform: scale(1);
|
|
172
172
|
visibility: visible;
|
|
173
|
-
-webkit-transition: all
|
|
174
|
-
transition: all
|
|
173
|
+
-webkit-transition: all 0.2s cubic-bezier(0, 0.4, 0.4, 1);
|
|
174
|
+
transition: all 0.2s cubic-bezier(0, 0.4, 0.4, 1);
|
|
175
175
|
}
|
|
176
176
|
.kd-image-preview-mask {
|
|
177
177
|
position: fixed;
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
}
|
|
256
256
|
.kd-image-preview-action i {
|
|
257
257
|
color: var(--kd-c-image-icon-color, var(--kd-g-color-white, #fff));
|
|
258
|
-
font-size: var(--kd-c-image-icon-font-size,
|
|
258
|
+
font-size: var(--kd-c-image-icon-font-size, 26px);
|
|
259
259
|
cursor: pointer;
|
|
260
260
|
}
|
|
261
261
|
.kd-image-preview-action i:hover,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
text-align: center;
|
|
42
42
|
opacity: 0;
|
|
43
43
|
transform: translateY(100%);
|
|
44
|
-
transition: all
|
|
44
|
+
transition: all 0.2s ease-out;
|
|
45
45
|
background-color: @image-action-background-color;
|
|
46
46
|
|
|
47
47
|
>* {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.@{image-preview-prefix-cls} {
|
|
61
|
-
z-index:
|
|
61
|
+
z-index: 3000;
|
|
62
62
|
position: fixed;
|
|
63
63
|
top: 0;
|
|
64
64
|
right: 0;
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
opacity: 0;
|
|
68
68
|
transform: scale(0.15);
|
|
69
69
|
visibility: hidden;
|
|
70
|
-
transition: all
|
|
70
|
+
transition: all 0.2s cubic-bezier(0.4,0,1,0.6);
|
|
71
71
|
-webkit-overflow-scrolling: touch;
|
|
72
72
|
|
|
73
73
|
&.show {
|
|
74
74
|
opacity: 1;
|
|
75
75
|
transform: scale(1);
|
|
76
76
|
visibility: visible;
|
|
77
|
-
transition: all
|
|
77
|
+
transition: all 0.2s cubic-bezier(0,.4,.4,1);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
&-mask {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
|
|
105
105
|
&:hover,
|
|
106
106
|
&:active {
|
|
107
|
-
color:
|
|
107
|
+
color: #5582f3;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -2,31 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
@image-prefix: '--@{kd-prefix}-c-image';
|
|
4
4
|
|
|
5
|
-
@image-transition-duration: var(~'@{image-prefix}-transition-duration',@transition-duration);
|
|
6
|
-
@image-motion-ease-out: var(~'@{image-prefix}-motion-ease-out',@motion-ease-out);
|
|
7
|
-
@image-motion-ease-in: var(~'@{image-prefix}-motion-ease-out',@motion-ease-in);
|
|
8
|
-
@image-z-index-masker: var(~'@{image-prefix}-z-index-masker',@z-index-masker);
|
|
9
|
-
@image-border-radius: var(~'@{image-prefix}-radius-border',@radius-border);
|
|
10
|
-
@image-action-transition: var(~'@{image-prefix}-action-transition',@duration-quickly);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
5
|
// color
|
|
16
|
-
@image-icon-color: var(~'@{image-prefix}-icon-color'
|
|
17
|
-
@image-close-color-background: var(~'@{image-prefix}-close-color-background'
|
|
18
|
-
@image-action-background-color: var(~'@{image-prefix}-action-color-background',rgba(0, 0, 0, 0.5));
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
@image-icon-color: var(~'@{image-prefix}-icon-color', @color-white); //图片预览 图标颜色
|
|
7
|
+
@image-close-color-background: var(~'@{image-prefix}-close-color-background', #666666); //删除图标 背景色
|
|
8
|
+
@image-action-background-color: var(~'@{image-prefix}-action-color-background', rgba(0, 0, 0, 0.5));
|
|
21
9
|
// font
|
|
22
|
-
@image-icon-font-size: var(~'@{image-prefix}-icon-font-size',
|
|
23
|
-
@image-preview-close-font-size: var(~'@{image-prefix}-preview-font-size',28px);
|
|
24
|
-
@image-font-size-x-large: var(~'@{image-prefix}-font-size-x-large'
|
|
25
|
-
|
|
10
|
+
@image-icon-font-size: var(~'@{image-prefix}-icon-font-size', 26px); //图片预览 图标大小
|
|
11
|
+
@image-preview-close-font-size: var(~'@{image-prefix}-preview-font-size', 28px);
|
|
12
|
+
@image-font-size-x-large: var(~'@{image-prefix}-font-size-x-large', @font-size-x-large);
|
|
13
|
+
// radius
|
|
14
|
+
@image-border-radius: var(~'@{image-prefix}-radius-border', @radius-border);
|
|
26
15
|
// sizing
|
|
27
|
-
@image-action-width: var(~'@{image-prefix}-action-sizing-width',100%);
|
|
28
|
-
@image-preview-close-width: var(~'@{image-prefix}-preview-sizing-width',18px);
|
|
29
|
-
@image-preview-close-height: var(~'@{image-prefix}-preview-sizing-height',18px);
|
|
30
|
-
@image-action-height: var(~'@{image-prefix}-action-sizing-height',28px);
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
@image-action-width: var(~'@{image-prefix}-action-sizing-width', 100%);
|
|
17
|
+
@image-preview-close-width: var(~'@{image-prefix}-preview-sizing-width', 18px);
|
|
18
|
+
@image-preview-close-height: var(~'@{image-prefix}-preview-sizing-height', 18px);
|
|
19
|
+
@image-action-height: var(~'@{image-prefix}-action-sizing-height', 28px);
|
package/lib/radio/radio.js
CHANGED
|
@@ -129,7 +129,9 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
129
129
|
}, /*#__PURE__*/React.createElement("input", (0, _extends2.default)({
|
|
130
130
|
type: "radio",
|
|
131
131
|
className: "".concat(radioPrefixCls, "-input")
|
|
132
|
-
}, radioProps)), children !== undefined ? /*#__PURE__*/React.createElement("span",
|
|
132
|
+
}, radioProps)), children !== undefined ? /*#__PURE__*/React.createElement("span", {
|
|
133
|
+
className: "".concat(radioPrefixCls, "-text")
|
|
134
|
+
}, children) : null)
|
|
133
135
|
);
|
|
134
136
|
};
|
|
135
137
|
|
|
@@ -115,9 +115,10 @@
|
|
|
115
115
|
font-feature-settings: 'tnum';
|
|
116
116
|
position: relative;
|
|
117
117
|
display: inline-block;
|
|
118
|
-
padding-left: var(--kd-c-radio-square-sizing-width-height,
|
|
118
|
+
padding-left: var(--kd-c-radio-square-sizing-width-height, 14px);
|
|
119
119
|
margin-right: var(--kd-c-radio-spacing-margin-right, 8px);
|
|
120
120
|
white-space: nowrap;
|
|
121
|
+
text-overflow: ellipsis;
|
|
121
122
|
cursor: pointer;
|
|
122
123
|
vertical-align: middle;
|
|
123
124
|
color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
|
|
@@ -127,8 +128,8 @@
|
|
|
127
128
|
position: absolute;
|
|
128
129
|
top: 50%;
|
|
129
130
|
left: 0;
|
|
130
|
-
height: var(--kd-c-radio-square-sizing-width-height,
|
|
131
|
-
width: var(--kd-c-radio-square-sizing-width-height,
|
|
131
|
+
height: var(--kd-c-radio-square-sizing-width-height, 14px);
|
|
132
|
+
width: var(--kd-c-radio-square-sizing-width-height, 14px);
|
|
132
133
|
content: '';
|
|
133
134
|
border-radius: 50%;
|
|
134
135
|
-webkit-box-sizing: border-box;
|
|
@@ -146,8 +147,8 @@
|
|
|
146
147
|
position: absolute;
|
|
147
148
|
top: 50%;
|
|
148
149
|
left: 2px;
|
|
149
|
-
width: calc(var(--kd-c-radio-square-sizing-width-height,
|
|
150
|
-
height: calc(var(--kd-c-radio-square-sizing-width-height,
|
|
150
|
+
width: calc(var(--kd-c-radio-square-sizing-width-height, 14px) - 4px);
|
|
151
|
+
height: calc(var(--kd-c-radio-square-sizing-width-height, 14px) - 4px);
|
|
151
152
|
content: '';
|
|
152
153
|
border-radius: 50%;
|
|
153
154
|
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
@@ -165,7 +166,10 @@
|
|
|
165
166
|
opacity: 0;
|
|
166
167
|
}
|
|
167
168
|
.kd-radio > span {
|
|
168
|
-
padding: 0 6px 0 var(--kd-c-radio-spacing-padding-left,
|
|
169
|
+
padding: 0 6px 0 var(--kd-c-radio-spacing-padding-left, 4px);
|
|
170
|
+
}
|
|
171
|
+
.kd-radio:hover {
|
|
172
|
+
color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
169
173
|
}
|
|
170
174
|
.kd-radio:hover::before {
|
|
171
175
|
border-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
@@ -174,15 +178,15 @@
|
|
|
174
178
|
border-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
175
179
|
}
|
|
176
180
|
.kd-radio-checked:focus-within::before {
|
|
177
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
|
178
|
-
box-shadow: 0 0 0 3px rgba(
|
|
181
|
+
-webkit-box-shadow: 0 0 0 3px rgba(85, 130, 243, 0.1);
|
|
182
|
+
box-shadow: 0 0 0 3px rgba(85, 130, 243, 0.1);
|
|
179
183
|
}
|
|
180
184
|
.kd-radio-checked::after {
|
|
181
185
|
position: absolute;
|
|
182
186
|
top: 50%;
|
|
183
187
|
left: 2px;
|
|
184
|
-
width: calc(var(--kd-c-radio-square-sizing-width-height,
|
|
185
|
-
height: calc(var(--kd-c-radio-square-sizing-width-height,
|
|
188
|
+
width: calc(var(--kd-c-radio-square-sizing-width-height, 14px) - 4px);
|
|
189
|
+
height: calc(var(--kd-c-radio-square-sizing-width-height, 14px) - 4px);
|
|
186
190
|
content: '';
|
|
187
191
|
border-radius: 50%;
|
|
188
192
|
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
@@ -213,6 +217,13 @@
|
|
|
213
217
|
-webkit-animation: none;
|
|
214
218
|
animation: none;
|
|
215
219
|
}
|
|
220
|
+
.kd-radio-disabled.kd-radio-checked,
|
|
221
|
+
.kd-radio-disabled:hover.kd-radio-checked {
|
|
222
|
+
color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
|
|
223
|
+
}
|
|
224
|
+
.kd-radio-text {
|
|
225
|
+
line-height: 1.5;
|
|
226
|
+
}
|
|
216
227
|
.kd-radio-square {
|
|
217
228
|
-webkit-box-sizing: border-box;
|
|
218
229
|
box-sizing: border-box;
|
|
@@ -222,15 +233,17 @@
|
|
|
222
233
|
list-style: none;
|
|
223
234
|
-webkit-font-feature-settings: 'tnum';
|
|
224
235
|
font-feature-settings: 'tnum';
|
|
236
|
+
white-space: nowrap;
|
|
237
|
+
text-overflow: ellipsis;
|
|
225
238
|
position: relative;
|
|
226
239
|
display: inline-block;
|
|
227
240
|
height: var(--kd-c-radio-square-sizing-height, 32px);
|
|
228
|
-
padding-top: var(--kd-c-radio-square-spacing-padding-vertical,
|
|
229
|
-
padding-right: var(--kd-c-radio-square-spacing-padding-horizontal,
|
|
230
|
-
padding-bottom: var(--kd-c-radio-square-spacing-padding-vertical,
|
|
231
|
-
padding-left: var(--kd-c-radio-square-spacing-padding-horizontal,
|
|
241
|
+
padding-top: var(--kd-c-radio-square-spacing-padding-vertical, 6px);
|
|
242
|
+
padding-right: var(--kd-c-radio-square-spacing-padding-horizontal, 12px);
|
|
243
|
+
padding-bottom: var(--kd-c-radio-square-spacing-padding-vertical, 6px);
|
|
244
|
+
padding-left: var(--kd-c-radio-square-spacing-padding-horizontal, 12px);
|
|
232
245
|
margin-right: var(--kd-c-radio-spacing-margin-right, 8px);
|
|
233
|
-
line-height: calc(var(--kd-c-radio-square-sizing-height, 32px) - (var(--kd-c-radio-square-spacing-padding-vertical,
|
|
246
|
+
line-height: calc(var(--kd-c-radio-square-sizing-height, 32px) - (var(--kd-c-radio-square-spacing-padding-vertical, 6px) * 2) - (var(--kd-c-radio-radius-border-width, 1px) * 2));
|
|
234
247
|
vertical-align: middle;
|
|
235
248
|
color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
|
|
236
249
|
font-size: var(--kd-c-radio-font-size, var(--kd-g-font-size-small, 12px));
|
|
@@ -279,8 +292,8 @@
|
|
|
279
292
|
border-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
280
293
|
}
|
|
281
294
|
.kd-radio-square-checked:focus-within {
|
|
282
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
|
283
|
-
box-shadow: 0 0 0 3px rgba(
|
|
295
|
+
-webkit-box-shadow: 0 0 0 3px rgba(85, 130, 243, 0.1);
|
|
296
|
+
box-shadow: 0 0 0 3px rgba(85, 130, 243, 0.1);
|
|
284
297
|
}
|
|
285
298
|
.kd-radio-square-checked::after {
|
|
286
299
|
position: absolute;
|
|
@@ -314,6 +327,13 @@
|
|
|
314
327
|
-webkit-animation: none;
|
|
315
328
|
animation: none;
|
|
316
329
|
}
|
|
330
|
+
.kd-radio-square-disabled.kd-radio-square-checked,
|
|
331
|
+
.kd-radio-square-disabled:hover.kd-radio-square-checked {
|
|
332
|
+
color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
|
|
333
|
+
}
|
|
334
|
+
.kd-radio-square-text {
|
|
335
|
+
line-height: 1.5;
|
|
336
|
+
}
|
|
317
337
|
.kd-radio-button {
|
|
318
338
|
-webkit-box-sizing: border-box;
|
|
319
339
|
box-sizing: border-box;
|
|
@@ -326,11 +346,11 @@
|
|
|
326
346
|
position: relative;
|
|
327
347
|
display: inline-block;
|
|
328
348
|
height: var(--kd-c-radio-square-sizing-height, 32px);
|
|
329
|
-
padding-top: var(--kd-c-radio-square-spacing-padding-vertical,
|
|
330
|
-
padding-right: var(--kd-c-radio-square-spacing-padding-horizontal,
|
|
331
|
-
padding-bottom: var(--kd-c-radio-square-spacing-padding-vertical,
|
|
332
|
-
padding-left: var(--kd-c-radio-square-spacing-padding-horizontal,
|
|
333
|
-
line-height: calc(var(--kd-c-radio-square-sizing-height, 32px) - (var(--kd-c-radio-square-spacing-padding-vertical,
|
|
349
|
+
padding-top: var(--kd-c-radio-square-spacing-padding-vertical, 6px);
|
|
350
|
+
padding-right: var(--kd-c-radio-square-spacing-padding-horizontal, 12px);
|
|
351
|
+
padding-bottom: var(--kd-c-radio-square-spacing-padding-vertical, 6px);
|
|
352
|
+
padding-left: var(--kd-c-radio-square-spacing-padding-horizontal, 12px);
|
|
353
|
+
line-height: calc(var(--kd-c-radio-square-sizing-height, 32px) - (var(--kd-c-radio-square-spacing-padding-vertical, 6px) * 2) - (var(--kd-c-radio-radius-border-width, 1px) * 2));
|
|
334
354
|
vertical-align: middle;
|
|
335
355
|
color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
|
|
336
356
|
font-size: var(--kd-c-radio-font-size, var(--kd-g-font-size-small, 12px));
|
|
@@ -381,8 +401,8 @@
|
|
|
381
401
|
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
382
402
|
}
|
|
383
403
|
.kd-radio-button-checked:focus-within {
|
|
384
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
|
385
|
-
box-shadow: 0 0 0 3px rgba(
|
|
404
|
+
-webkit-box-shadow: 0 0 0 3px rgba(85, 130, 243, 0.1);
|
|
405
|
+
box-shadow: 0 0 0 3px rgba(85, 130, 243, 0.1);
|
|
386
406
|
}
|
|
387
407
|
.kd-radio-button-checked:hover {
|
|
388
408
|
color: var(--kd-c-radio-color-background, var(--kd-g-color-white, #fff));
|
|
@@ -411,3 +431,10 @@
|
|
|
411
431
|
border-color: var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
412
432
|
cursor: not-allowed;
|
|
413
433
|
}
|
|
434
|
+
.kd-radio-button-text {
|
|
435
|
+
white-space: nowrap;
|
|
436
|
+
overflow: hidden;
|
|
437
|
+
text-overflow: ellipsis;
|
|
438
|
+
display: block;
|
|
439
|
+
line-height: 1.5;
|
|
440
|
+
}
|