@kdcloudjs/kdesign 1.8.34 → 1.8.35
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 +7 -0
- package/dist/kdesign.css +4 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +13 -7
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +4 -4
- package/dist/kdesign.min.js.map +1 -1
- package/es/city-picker/city-picker.js +1 -1
- package/es/color-picker/color-picker-panel.js +6 -3
- package/es/color-picker/style/index.css +3 -0
- package/es/color-picker/style/index.less +7 -0
- package/es/dropdown/dropdown.js +1 -1
- package/es/locale/en-US.d.ts +3 -0
- package/es/locale/en-US.js +3 -0
- package/es/locale/locale.d.ts +3 -0
- package/es/locale/zh-CN.d.ts +3 -0
- package/es/locale/zh-CN.js +3 -0
- package/es/select/select.js +1 -1
- package/lib/city-picker/city-picker.js +1 -1
- package/lib/color-picker/color-picker-panel.js +6 -3
- package/lib/color-picker/style/index.css +3 -0
- package/lib/color-picker/style/index.less +7 -0
- package/lib/dropdown/dropdown.js +1 -1
- package/lib/locale/en-US.d.ts +3 -0
- package/lib/locale/en-US.js +3 -0
- package/lib/locale/locale.d.ts +3 -0
- package/lib/locale/zh-CN.d.ts +3 -0
- package/lib/locale/zh-CN.js +3 -0
- package/lib/select/select.js +1 -1
- package/package.json +1 -1
|
@@ -487,7 +487,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
487
487
|
};
|
|
488
488
|
var popperProps = _extends(_extends({}, selectProps), {
|
|
489
489
|
prefixCls: classNames("".concat(selectPrefixCls, "-dropdown"), rtlCls),
|
|
490
|
-
placement:
|
|
490
|
+
placement: 'bottomLeft',
|
|
491
491
|
popperStyle: catchStyle(),
|
|
492
492
|
defaultVisible: optionShow,
|
|
493
493
|
visible: optionShow,
|
|
@@ -82,6 +82,9 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
82
82
|
prefixCls = _useContext.prefixCls,
|
|
83
83
|
locale = _useContext.locale,
|
|
84
84
|
direction = _useContext.direction;
|
|
85
|
+
var colorPickerLangMsg = locale.getCompLangMsg({
|
|
86
|
+
componentName: 'ColorPicker'
|
|
87
|
+
});
|
|
85
88
|
var colorPickerPrefixCls = getPrefixCls(prefixCls, 'color-picker');
|
|
86
89
|
var panelCls = classNames("".concat(colorPickerPrefixCls, "-panel"));
|
|
87
90
|
var panelChromePickerCls = classNames("".concat(colorPickerPrefixCls, "-panel-chrome"), (_classNames = {}, _defineProperty(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-box"), !(showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showBox)), _defineProperty(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-hue"), !(showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showHue)), _defineProperty(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-opacity"), !(showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showOpacity)), _classNames));
|
|
@@ -430,7 +433,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
430
433
|
onClick: handleClearClick
|
|
431
434
|
}), React.createElement("span", {
|
|
432
435
|
className: panelClearColorText
|
|
433
|
-
},
|
|
436
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.noColor)), functionalColor && showSwitch && React.createElement("div", {
|
|
434
437
|
className: panelFollowThemeCls
|
|
435
438
|
}, React.createElement("span", null, (switchName === null || switchName === void 0 ? void 0 : switchName.internationalName) && locale.getLangMsg('ColorPicker', switchName.internationalName) || switchName.name), React.createElement(Switch, {
|
|
436
439
|
checked: isFollow,
|
|
@@ -497,7 +500,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
497
500
|
className: historicalColorBoxCls
|
|
498
501
|
}, React.createElement("div", {
|
|
499
502
|
className: historicalColorBoxTitleCls
|
|
500
|
-
},
|
|
503
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.recentColor), React.createElement("div", {
|
|
501
504
|
className: historicalColorBoxContainerCls
|
|
502
505
|
}, checkUserPresetColor(historicalColor) && _mapInstanceProperty(_context4 = presetColorToHEX(historicalColor)).call(_context4, function (colorValue, i) {
|
|
503
506
|
return React.createElement("li", {
|
|
@@ -517,7 +520,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
517
520
|
className: colorBoxCls
|
|
518
521
|
}, historicalColor && (historicalColor === null || historicalColor === void 0 ? void 0 : historicalColor.length) > 0 && React.createElement("div", {
|
|
519
522
|
className: colorBoxTitleCls
|
|
520
|
-
},
|
|
523
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.recommendColor), React.createElement("div", {
|
|
521
524
|
className: colorBoxContainerCls
|
|
522
525
|
}, _mapInstanceProperty(_context5 = checkUserPresetColor(presetColor) && presetColorToHEX(presetColor) || systemPresetColor).call(_context5, function (colorValue, i) {
|
|
523
526
|
return React.createElement("li", {
|
|
@@ -714,6 +714,9 @@
|
|
|
714
714
|
.kd-color-picker-rtl.kd-color-picker-pop .kd-color-picker-panel-historical-color-box-container-ie11 li:nth-child(-n + 12) {
|
|
715
715
|
margin-top: 0;
|
|
716
716
|
}
|
|
717
|
+
.kd-color-picker-rtl.kd-color-picker-container-pure .kd-input-wrapper.kd-color-picker-input .kd-input-prefix {
|
|
718
|
+
margin: 0;
|
|
719
|
+
}
|
|
717
720
|
.kd-color-picker-rtl .kd-color-picker-panel-chrome > div:last-child .flexbox-fix:first-child > div:first-child > div {
|
|
718
721
|
margin-right: 4px !important;
|
|
719
722
|
margin-left: 0 !important;
|
|
@@ -675,6 +675,13 @@
|
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
+
&.@{color-picker-prefix-cls}-container-pure {
|
|
679
|
+
.@{kd-prefix}-input-wrapper.@{color-picker-prefix-cls}-input {
|
|
680
|
+
.@{kd-prefix}-input-prefix {
|
|
681
|
+
margin: 0;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
678
685
|
.@{color-picker-prefix-cls}-panel {
|
|
679
686
|
&-chrome {
|
|
680
687
|
& > div:last-child {
|
package/es/dropdown/dropdown.js
CHANGED
|
@@ -135,7 +135,7 @@ var Dropdown = React.forwardRef(function (props, ref) {
|
|
|
135
135
|
animation: 'none'
|
|
136
136
|
}, popperStyle),
|
|
137
137
|
onVisibleChange: handleVisibleChange,
|
|
138
|
-
placement: placement
|
|
138
|
+
placement: typeof props.placement !== 'undefined' ? placement : direction === 'rtl' ? 'bottomRight' : placement
|
|
139
139
|
});
|
|
140
140
|
return usePopper(child, menuElement, popperProps);
|
|
141
141
|
});
|
package/es/locale/en-US.d.ts
CHANGED
|
@@ -65,6 +65,9 @@ declare const locale: {
|
|
|
65
65
|
'CityPicker.tabsInternation': string;
|
|
66
66
|
'CityPicker.title': string;
|
|
67
67
|
'ColorPicker.followFunctionalColor': string;
|
|
68
|
+
'ColorPicker.noColor': string;
|
|
69
|
+
'ColorPicker.recentColor': string;
|
|
70
|
+
'ColorPicker.recommendColor': string;
|
|
68
71
|
'Search.placeholder': string;
|
|
69
72
|
'Search.desc': string[];
|
|
70
73
|
'Search.nplDesc': string;
|
package/es/locale/en-US.js
CHANGED
|
@@ -65,6 +65,9 @@ var locale = {
|
|
|
65
65
|
'CityPicker.tabsInternation': 'International/China HK-MO-TW',
|
|
66
66
|
'CityPicker.title': 'City',
|
|
67
67
|
'ColorPicker.followFunctionalColor': 'Follow theme color',
|
|
68
|
+
'ColorPicker.noColor': 'No color fill',
|
|
69
|
+
'ColorPicker.recentColor': 'Recently used color',
|
|
70
|
+
'ColorPicker.recommendColor': 'Recommended color',
|
|
68
71
|
'Search.placeholder': 'Please enter search content',
|
|
69
72
|
'Search.desc': ["Space means 'or', Enter means 'and'"],
|
|
70
73
|
'Search.nplDesc': 'Smart search',
|
package/es/locale/locale.d.ts
CHANGED
|
@@ -72,6 +72,9 @@ declare class LocaleCache {
|
|
|
72
72
|
'CityPicker.tabsInternation': string;
|
|
73
73
|
'CityPicker.title': string;
|
|
74
74
|
'ColorPicker.followFunctionalColor': string;
|
|
75
|
+
'ColorPicker.noColor': string;
|
|
76
|
+
'ColorPicker.recentColor': string;
|
|
77
|
+
'ColorPicker.recommendColor': string;
|
|
75
78
|
'Search.placeholder': string;
|
|
76
79
|
'Search.desc': string[];
|
|
77
80
|
'Search.nplDesc': string;
|
package/es/locale/zh-CN.d.ts
CHANGED
|
@@ -44,6 +44,9 @@ declare const locale: {
|
|
|
44
44
|
'CityPicker.tabsInternation': string;
|
|
45
45
|
'CityPicker.title': string;
|
|
46
46
|
'ColorPicker.followFunctionalColor': string;
|
|
47
|
+
'ColorPicker.noColor': string;
|
|
48
|
+
'ColorPicker.recentColor': string;
|
|
49
|
+
'ColorPicker.recommendColor': string;
|
|
47
50
|
'Search.placeholder': string;
|
|
48
51
|
'Search.desc': string[];
|
|
49
52
|
'Search.nplDesc': string;
|
package/es/locale/zh-CN.js
CHANGED
|
@@ -48,6 +48,9 @@ var locale = _extends(_extends({
|
|
|
48
48
|
'CityPicker.tabsInternation': '国际/中国港澳台',
|
|
49
49
|
'CityPicker.title': '城市',
|
|
50
50
|
'ColorPicker.followFunctionalColor': '跟随功能色',
|
|
51
|
+
'ColorPicker.noColor': '无颜色填充',
|
|
52
|
+
'ColorPicker.recentColor': '最近使用颜色',
|
|
53
|
+
'ColorPicker.recommendColor': '推荐色',
|
|
51
54
|
'Search.placeholder': '请输入需要搜索的内容',
|
|
52
55
|
'Search.desc': ['空格代表"或",回车代表"且"'],
|
|
53
56
|
'Search.nplDesc': '智能搜索',
|
package/es/select/select.js
CHANGED
|
@@ -908,7 +908,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
908
908
|
};
|
|
909
909
|
var popperProps = _extends(_extends({}, selectProps), {
|
|
910
910
|
prefixCls: _concatInstanceProperty(_context5 = _concatInstanceProperty(_context6 = "".concat(selectPrefixCls, "-dropdown-panel")).call(_context6, isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : '', " ")).call(_context5, rtlCls),
|
|
911
|
-
placement:
|
|
911
|
+
placement: 'bottomLeft',
|
|
912
912
|
popperStyle: catchStyle(),
|
|
913
913
|
defaultVisible: optionShow,
|
|
914
914
|
visible: optionShow,
|
|
@@ -499,7 +499,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
499
499
|
};
|
|
500
500
|
var popperProps = (0, _extends2.default)((0, _extends2.default)({}, selectProps), {
|
|
501
501
|
prefixCls: (0, _classnames.default)("".concat(selectPrefixCls, "-dropdown"), rtlCls),
|
|
502
|
-
placement:
|
|
502
|
+
placement: 'bottomLeft',
|
|
503
503
|
popperStyle: catchStyle(),
|
|
504
504
|
defaultVisible: optionShow,
|
|
505
505
|
visible: optionShow,
|
|
@@ -94,6 +94,9 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
94
94
|
prefixCls = _useContext.prefixCls,
|
|
95
95
|
locale = _useContext.locale,
|
|
96
96
|
direction = _useContext.direction;
|
|
97
|
+
var colorPickerLangMsg = locale.getCompLangMsg({
|
|
98
|
+
componentName: 'ColorPicker'
|
|
99
|
+
});
|
|
97
100
|
var colorPickerPrefixCls = getPrefixCls(prefixCls, 'color-picker');
|
|
98
101
|
var panelCls = (0, _classnames.default)("".concat(colorPickerPrefixCls, "-panel"));
|
|
99
102
|
var panelChromePickerCls = (0, _classnames.default)("".concat(colorPickerPrefixCls, "-panel-chrome"), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-box"), !(showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showBox)), (0, _defineProperty2.default)(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-hue"), !(showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showHue)), (0, _defineProperty2.default)(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-opacity"), !(showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showOpacity)), _classNames));
|
|
@@ -442,7 +445,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
442
445
|
onClick: handleClearClick
|
|
443
446
|
}), _react.default.createElement("span", {
|
|
444
447
|
className: panelClearColorText
|
|
445
|
-
},
|
|
448
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.noColor)), functionalColor && showSwitch && _react.default.createElement("div", {
|
|
446
449
|
className: panelFollowThemeCls
|
|
447
450
|
}, _react.default.createElement("span", null, (switchName === null || switchName === void 0 ? void 0 : switchName.internationalName) && locale.getLangMsg('ColorPicker', switchName.internationalName) || switchName.name), _react.default.createElement(_index.Switch, {
|
|
448
451
|
checked: isFollow,
|
|
@@ -509,7 +512,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
509
512
|
className: historicalColorBoxCls
|
|
510
513
|
}, _react.default.createElement("div", {
|
|
511
514
|
className: historicalColorBoxTitleCls
|
|
512
|
-
},
|
|
515
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.recentColor), _react.default.createElement("div", {
|
|
513
516
|
className: historicalColorBoxContainerCls
|
|
514
517
|
}, checkUserPresetColor(historicalColor) && (0, _map.default)(_context4 = (0, _colorFormat.presetColorToHEX)(historicalColor)).call(_context4, function (colorValue, i) {
|
|
515
518
|
return _react.default.createElement("li", {
|
|
@@ -529,7 +532,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
529
532
|
className: colorBoxCls
|
|
530
533
|
}, historicalColor && (historicalColor === null || historicalColor === void 0 ? void 0 : historicalColor.length) > 0 && _react.default.createElement("div", {
|
|
531
534
|
className: colorBoxTitleCls
|
|
532
|
-
},
|
|
535
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.recommendColor), _react.default.createElement("div", {
|
|
533
536
|
className: colorBoxContainerCls
|
|
534
537
|
}, (0, _map.default)(_context5 = checkUserPresetColor(presetColor) && (0, _colorFormat.presetColorToHEX)(presetColor) || _systemPresetColor.systemPresetColor).call(_context5, function (colorValue, i) {
|
|
535
538
|
return _react.default.createElement("li", {
|
|
@@ -714,6 +714,9 @@
|
|
|
714
714
|
.kd-color-picker-rtl.kd-color-picker-pop .kd-color-picker-panel-historical-color-box-container-ie11 li:nth-child(-n + 12) {
|
|
715
715
|
margin-top: 0;
|
|
716
716
|
}
|
|
717
|
+
.kd-color-picker-rtl.kd-color-picker-container-pure .kd-input-wrapper.kd-color-picker-input .kd-input-prefix {
|
|
718
|
+
margin: 0;
|
|
719
|
+
}
|
|
717
720
|
.kd-color-picker-rtl .kd-color-picker-panel-chrome > div:last-child .flexbox-fix:first-child > div:first-child > div {
|
|
718
721
|
margin-right: 4px !important;
|
|
719
722
|
margin-left: 0 !important;
|
|
@@ -675,6 +675,13 @@
|
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
+
&.@{color-picker-prefix-cls}-container-pure {
|
|
679
|
+
.@{kd-prefix}-input-wrapper.@{color-picker-prefix-cls}-input {
|
|
680
|
+
.@{kd-prefix}-input-prefix {
|
|
681
|
+
margin: 0;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
678
685
|
.@{color-picker-prefix-cls}-panel {
|
|
679
686
|
&-chrome {
|
|
680
687
|
& > div:last-child {
|
package/lib/dropdown/dropdown.js
CHANGED
|
@@ -147,7 +147,7 @@ var Dropdown = React.forwardRef(function (props, ref) {
|
|
|
147
147
|
animation: 'none'
|
|
148
148
|
}, popperStyle),
|
|
149
149
|
onVisibleChange: handleVisibleChange,
|
|
150
|
-
placement: placement
|
|
150
|
+
placement: typeof props.placement !== 'undefined' ? placement : direction === 'rtl' ? 'bottomRight' : placement
|
|
151
151
|
});
|
|
152
152
|
return (0, _usePopper.default)(child, menuElement, popperProps);
|
|
153
153
|
});
|
package/lib/locale/en-US.d.ts
CHANGED
|
@@ -65,6 +65,9 @@ declare const locale: {
|
|
|
65
65
|
'CityPicker.tabsInternation': string;
|
|
66
66
|
'CityPicker.title': string;
|
|
67
67
|
'ColorPicker.followFunctionalColor': string;
|
|
68
|
+
'ColorPicker.noColor': string;
|
|
69
|
+
'ColorPicker.recentColor': string;
|
|
70
|
+
'ColorPicker.recommendColor': string;
|
|
68
71
|
'Search.placeholder': string;
|
|
69
72
|
'Search.desc': string[];
|
|
70
73
|
'Search.nplDesc': string;
|
package/lib/locale/en-US.js
CHANGED
|
@@ -71,6 +71,9 @@ var locale = {
|
|
|
71
71
|
'CityPicker.tabsInternation': 'International/China HK-MO-TW',
|
|
72
72
|
'CityPicker.title': 'City',
|
|
73
73
|
'ColorPicker.followFunctionalColor': 'Follow theme color',
|
|
74
|
+
'ColorPicker.noColor': 'No color fill',
|
|
75
|
+
'ColorPicker.recentColor': 'Recently used color',
|
|
76
|
+
'ColorPicker.recommendColor': 'Recommended color',
|
|
74
77
|
'Search.placeholder': 'Please enter search content',
|
|
75
78
|
'Search.desc': ["Space means 'or', Enter means 'and'"],
|
|
76
79
|
'Search.nplDesc': 'Smart search',
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -72,6 +72,9 @@ declare class LocaleCache {
|
|
|
72
72
|
'CityPicker.tabsInternation': string;
|
|
73
73
|
'CityPicker.title': string;
|
|
74
74
|
'ColorPicker.followFunctionalColor': string;
|
|
75
|
+
'ColorPicker.noColor': string;
|
|
76
|
+
'ColorPicker.recentColor': string;
|
|
77
|
+
'ColorPicker.recommendColor': string;
|
|
75
78
|
'Search.placeholder': string;
|
|
76
79
|
'Search.desc': string[];
|
|
77
80
|
'Search.nplDesc': string;
|
package/lib/locale/zh-CN.d.ts
CHANGED
|
@@ -44,6 +44,9 @@ declare const locale: {
|
|
|
44
44
|
'CityPicker.tabsInternation': string;
|
|
45
45
|
'CityPicker.title': string;
|
|
46
46
|
'ColorPicker.followFunctionalColor': string;
|
|
47
|
+
'ColorPicker.noColor': string;
|
|
48
|
+
'ColorPicker.recentColor': string;
|
|
49
|
+
'ColorPicker.recommendColor': string;
|
|
47
50
|
'Search.placeholder': string;
|
|
48
51
|
'Search.desc': string[];
|
|
49
52
|
'Search.nplDesc': string;
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -55,6 +55,9 @@ var locale = (0, _extends2.default)((0, _extends2.default)({
|
|
|
55
55
|
'CityPicker.tabsInternation': '国际/中国港澳台',
|
|
56
56
|
'CityPicker.title': '城市',
|
|
57
57
|
'ColorPicker.followFunctionalColor': '跟随功能色',
|
|
58
|
+
'ColorPicker.noColor': '无颜色填充',
|
|
59
|
+
'ColorPicker.recentColor': '最近使用颜色',
|
|
60
|
+
'ColorPicker.recommendColor': '推荐色',
|
|
58
61
|
'Search.placeholder': '请输入需要搜索的内容',
|
|
59
62
|
'Search.desc': ['空格代表"或",回车代表"且"'],
|
|
60
63
|
'Search.nplDesc': '智能搜索',
|
package/lib/select/select.js
CHANGED
|
@@ -920,7 +920,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
920
920
|
};
|
|
921
921
|
var popperProps = (0, _extends2.default)((0, _extends2.default)({}, selectProps), {
|
|
922
922
|
prefixCls: (0, _concat.default)(_context5 = (0, _concat.default)(_context6 = "".concat(selectPrefixCls, "-dropdown-panel")).call(_context6, isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : '', " ")).call(_context5, rtlCls),
|
|
923
|
-
placement:
|
|
923
|
+
placement: 'bottomLeft',
|
|
924
924
|
popperStyle: catchStyle(),
|
|
925
925
|
defaultVisible: optionShow,
|
|
926
926
|
visible: optionShow,
|