@kaiheila/ui-components 0.0.9 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css +3 -2
- package/dist/ui-components.js +9 -15
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -237,7 +237,8 @@ textarea {
|
|
|
237
237
|
/*按钮大小*/
|
|
238
238
|
/*按钮颜色样式*/
|
|
239
239
|
}
|
|
240
|
-
.chuanyu-button.disabled
|
|
240
|
+
.chuanyu-button.disabled,
|
|
241
|
+
.chuanyu-button:disabled {
|
|
241
242
|
cursor: not-allowed;
|
|
242
243
|
}
|
|
243
244
|
.chuanyu-button.size-xs {
|
|
@@ -503,7 +504,7 @@ textarea {
|
|
|
503
504
|
color: var(--text-tip-color);
|
|
504
505
|
border: 2px solid var(--text-tip-color);
|
|
505
506
|
border-radius: 4px;
|
|
506
|
-
margin-right:
|
|
507
|
+
margin-right: 8px;
|
|
507
508
|
vertical-align: middle;
|
|
508
509
|
box-sizing: border-box;
|
|
509
510
|
}
|
package/dist/ui-components.js
CHANGED
|
@@ -2803,7 +2803,7 @@ module.exports = require("react-dom");
|
|
|
2803
2803
|
/* 6 */
|
|
2804
2804
|
/***/ (function(module) {
|
|
2805
2805
|
|
|
2806
|
-
module.exports = JSON.parse("{\"name\":\"@kaiheila/ui-components\",\"version\":\"0.0.
|
|
2806
|
+
module.exports = JSON.parse("{\"name\":\"@kaiheila/ui-components\",\"version\":\"0.0.12\",\"description\":\"开黑啦 UI Components\",\"main\":\"dist/ui-components.js\",\"scripts\":{\"build\":\"webpack\",\"demo\":\"webpack-dev-server --config webpack.config.demo.js\"},\"keywords\":[\"UI\",\"Components\"],\"author\":\"yangchuan\",\"license\":\"ISC\",\"files\":[\"dist\"],\"devDependencies\":{\"@babel/core\":\"^7.15.5\",\"@babel/preset-env\":\"^7.15.6\",\"@babel/preset-react\":\"^7.14.5\",\"@webpack-cli/serve\":\"^1.6.0\",\"babel-loader\":\"^8.2.2\",\"classnames\":\"^2.3.1\",\"css-loader\":\"^2.1.1\",\"html-webpack-plugin\":\"^4.5.2\",\"less\":\"^4.1.2\",\"less-loader\":\"^5.0.0\",\"mini-css-extract-plugin\":\"^0.8.0\",\"prop-types\":\"^15.7.2\",\"react\":\"^16.9.0\",\"react-dom\":\"^16.9.0\",\"react-tooltip\":\"^4.2.21\",\"style-loader\":\"^1.0.0\",\"url-loader\":\"^2.1.0\",\"webpack\":\"^4.40.2\",\"webpack-cli\":\"^3.3.1\",\"webpack-dev-server\":\"^3.2.1\"},\"peerDependencies\":{\"react\":\"^16.9.0\",\"react-dom\":\"^16.9.0\"},\"browserslist\":{\"production\":[\">0.2%\",\"not dead\",\"not op_mini all\"],\"development\":[\"last 1 chrome version\",\"last 1 firefox version\",\"last 1 safari version\"]}}");
|
|
2807
2807
|
|
|
2808
2808
|
/***/ }),
|
|
2809
2809
|
/* 7 */
|
|
@@ -4579,21 +4579,14 @@ var search_input_SearchInput = /*#__PURE__*/function (_Component) {
|
|
|
4579
4579
|
onChange && onChange('');
|
|
4580
4580
|
});
|
|
4581
4581
|
|
|
4582
|
-
search_input_defineProperty(search_input_assertThisInitialized(_this), "
|
|
4583
|
-
_this.
|
|
4584
|
-
isFocus: isFocus
|
|
4585
|
-
});
|
|
4582
|
+
search_input_defineProperty(search_input_assertThisInitialized(_this), "focus", function () {
|
|
4583
|
+
_this.refInput && _this.refInput.current.focus();
|
|
4586
4584
|
});
|
|
4587
4585
|
|
|
4588
|
-
search_input_defineProperty(search_input_assertThisInitialized(_this), "
|
|
4586
|
+
search_input_defineProperty(search_input_assertThisInitialized(_this), "onFocusChange", function (isFocus) {
|
|
4589
4587
|
_this.setState({
|
|
4590
|
-
|
|
4591
|
-
}, function () {
|
|
4592
|
-
_this.refInput && _this.refInput.focus();
|
|
4588
|
+
isFocus: isFocus
|
|
4593
4589
|
});
|
|
4594
|
-
|
|
4595
|
-
var onChange = _this.props.onChange;
|
|
4596
|
-
onChange && onChange('');
|
|
4597
4590
|
});
|
|
4598
4591
|
|
|
4599
4592
|
search_input_defineProperty(search_input_assertThisInitialized(_this), "onChange", function (evt) {
|
|
@@ -5688,7 +5681,7 @@ var selector_Selector = /*#__PURE__*/function (_Component) {
|
|
|
5688
5681
|
});
|
|
5689
5682
|
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
5690
5683
|
disabled: disabled,
|
|
5691
|
-
className: external_classnames_default()('selector-contain
|
|
5684
|
+
className: external_classnames_default()('selector-contain', type ? "type-".concat(type) : '', size ? "size-".concat(size) : '', {
|
|
5692
5685
|
'noTheme': noTheme,
|
|
5693
5686
|
'simple': simple
|
|
5694
5687
|
})
|
|
@@ -5726,8 +5719,9 @@ selector_defineProperty(selector_Selector, "propTypes", {
|
|
|
5726
5719
|
simple: external_prop_types_default.a.bool,
|
|
5727
5720
|
optionFocus: external_prop_types_default.a.bool,
|
|
5728
5721
|
size: external_prop_types_default.a.string,
|
|
5729
|
-
type: external_prop_types_default.a.string
|
|
5730
|
-
|
|
5722
|
+
type: external_prop_types_default.a.string,
|
|
5723
|
+
//ghost
|
|
5724
|
+
optionsWidth: external_prop_types_default.a.any
|
|
5731
5725
|
});
|
|
5732
5726
|
|
|
5733
5727
|
|