@kaiheila/ui-components 0.1.8 → 0.1.9
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 +46 -34
- package/dist/ui-components.js +72 -13
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -100,21 +100,15 @@ textarea {
|
|
|
100
100
|
border-radius: 50%;
|
|
101
101
|
}
|
|
102
102
|
.kaihei-loading-spin:before {
|
|
103
|
-
border: 3px solid
|
|
104
|
-
}
|
|
105
|
-
.theme-dark .kaihei-loading-spin:before {
|
|
106
|
-
border-color: rgba(237, 238, 240, 0.07);
|
|
103
|
+
border: 3px solid var(--border-color);
|
|
107
104
|
}
|
|
108
105
|
.kaihei-loading-spin:after {
|
|
109
106
|
animation-duration: 0.6s;
|
|
110
107
|
border: 3px solid transparent;
|
|
111
|
-
border-top-color:
|
|
108
|
+
border-top-color: var(--text-tip-color);
|
|
112
109
|
-webkit-animation: loaderSpin 0.6s linear infinite;
|
|
113
110
|
animation: loaderSpin 0.6s linear infinite;
|
|
114
111
|
}
|
|
115
|
-
.theme-dark .kaihei-loading-spin:after {
|
|
116
|
-
border-top-color: rgba(153, 155, 161, 0.5);
|
|
117
|
-
}
|
|
118
112
|
.kaihei-loading-spin.block-loading-spin {
|
|
119
113
|
display: block;
|
|
120
114
|
margin-left: auto;
|
|
@@ -446,12 +440,6 @@ textarea {
|
|
|
446
440
|
width: 18px;
|
|
447
441
|
line-height: 1;
|
|
448
442
|
}
|
|
449
|
-
.chuanyu-button.loading .btn-loading-ico .kaihei-loading-spin:before {
|
|
450
|
-
border-color: #edeef0;
|
|
451
|
-
}
|
|
452
|
-
.chuanyu-button.loading .btn-loading-ico .kaihei-loading-spin:after {
|
|
453
|
-
border-top-color: rgba(153, 155, 161, 0.5);
|
|
454
|
-
}
|
|
455
443
|
.size-sm .button-loading-spin {
|
|
456
444
|
transform-origin: 50%;
|
|
457
445
|
transform: scale(0.9);
|
|
@@ -720,18 +708,12 @@ textarea {
|
|
|
720
708
|
.search-input {
|
|
721
709
|
position: relative;
|
|
722
710
|
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
padding: 0 16px;
|
|
713
|
+
height: 40px;
|
|
714
|
+
font-size: 14px;
|
|
723
715
|
border-radius: 12px;
|
|
724
|
-
line-height: 20px;
|
|
725
716
|
border: 1px solid var(--border-color);
|
|
726
|
-
font-size: 14px;
|
|
727
|
-
}
|
|
728
|
-
.search-input.md {
|
|
729
|
-
height: 32px;
|
|
730
|
-
line-height: 32px;
|
|
731
|
-
}
|
|
732
|
-
.search-input.md .button-clear,
|
|
733
|
-
.search-input.md .button-search {
|
|
734
|
-
font-size: 24px;
|
|
735
717
|
}
|
|
736
718
|
.search-input.noborder {
|
|
737
719
|
border-color: transparent;
|
|
@@ -745,8 +727,8 @@ textarea {
|
|
|
745
727
|
box-shadow: 0 0 0 3px var(--border-active-color);
|
|
746
728
|
}
|
|
747
729
|
.search-input input {
|
|
748
|
-
|
|
749
|
-
width:
|
|
730
|
+
flex: 1;
|
|
731
|
+
min-width: 0;
|
|
750
732
|
height: 100%;
|
|
751
733
|
border: none;
|
|
752
734
|
background: transparent;
|
|
@@ -757,13 +739,13 @@ textarea {
|
|
|
757
739
|
}
|
|
758
740
|
.search-input .button-clear,
|
|
759
741
|
.search-input .button-search {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
cursor: pointer;
|
|
742
|
+
display: flex;
|
|
743
|
+
margin-left: 16px;
|
|
744
|
+
width: 24px;
|
|
745
|
+
height: 24px;
|
|
746
|
+
font-size: 24px;
|
|
766
747
|
color: var(--text-tip-color);
|
|
748
|
+
cursor: pointer;
|
|
767
749
|
}
|
|
768
750
|
.search-input .button-clear:hover,
|
|
769
751
|
.search-input .button-search:hover {
|
|
@@ -771,7 +753,20 @@ textarea {
|
|
|
771
753
|
}
|
|
772
754
|
.search-input .button-clear:active,
|
|
773
755
|
.search-input .button-search:active {
|
|
774
|
-
color: var(--text-
|
|
756
|
+
color: var(--text-color);
|
|
757
|
+
}
|
|
758
|
+
.search-input .button-clear svg,
|
|
759
|
+
.search-input .button-search svg {
|
|
760
|
+
width: 24px;
|
|
761
|
+
height: 24px;
|
|
762
|
+
}
|
|
763
|
+
.search-input.sm {
|
|
764
|
+
height: 32px;
|
|
765
|
+
padding: 0 8px;
|
|
766
|
+
}
|
|
767
|
+
.search-input.sm .button-clear,
|
|
768
|
+
.search-input.sm .button-search {
|
|
769
|
+
margin-left: 8px;
|
|
775
770
|
}
|
|
776
771
|
.number-input {
|
|
777
772
|
display: flex;
|
|
@@ -963,12 +958,17 @@ textarea {
|
|
|
963
958
|
}
|
|
964
959
|
.selector-select .dropdown-icon {
|
|
965
960
|
position: absolute;
|
|
961
|
+
display: flex;
|
|
966
962
|
top: 50%;
|
|
967
963
|
transform: translateY(-50%);
|
|
968
964
|
right: 10px;
|
|
969
965
|
font-size: 24px;
|
|
970
966
|
transition: transform 0.2s;
|
|
971
967
|
}
|
|
968
|
+
.selector-select .dropdown-icon svg {
|
|
969
|
+
width: 24px;
|
|
970
|
+
height: 24px;
|
|
971
|
+
}
|
|
972
972
|
.selector-option {
|
|
973
973
|
position: absolute;
|
|
974
974
|
width: 100%;
|
|
@@ -1058,11 +1058,16 @@ textarea {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
.selector-search-select .dropdown-icon {
|
|
1060
1060
|
position: absolute;
|
|
1061
|
+
display: flex;
|
|
1061
1062
|
top: 50%;
|
|
1062
1063
|
transform: translateY(-50%);
|
|
1063
1064
|
right: 10px;
|
|
1064
1065
|
font-size: 24px;
|
|
1065
|
-
transition: transform
|
|
1066
|
+
transition: transform 0.2s;
|
|
1067
|
+
}
|
|
1068
|
+
.selector-search-select .dropdown-icon svg {
|
|
1069
|
+
width: 24px;
|
|
1070
|
+
height: 24px;
|
|
1066
1071
|
}
|
|
1067
1072
|
.selector-search-select input {
|
|
1068
1073
|
width: 100%;
|
|
@@ -1487,11 +1492,18 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1487
1492
|
}
|
|
1488
1493
|
.time-selector-select .dropdown-icon {
|
|
1489
1494
|
position: absolute;
|
|
1495
|
+
display: flex;
|
|
1496
|
+
top: 50%;
|
|
1497
|
+
margin-top: -12px;
|
|
1490
1498
|
right: 8px;
|
|
1491
1499
|
font-size: 24px;
|
|
1492
1500
|
color: var(--text-description-color);
|
|
1493
1501
|
transition: transform 200ms linear;
|
|
1494
1502
|
}
|
|
1503
|
+
.time-selector-select .dropdown-icon svg {
|
|
1504
|
+
width: 24px;
|
|
1505
|
+
height: 24px;
|
|
1506
|
+
}
|
|
1495
1507
|
.time-selector-option {
|
|
1496
1508
|
position: absolute;
|
|
1497
1509
|
width: 100%;
|
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.1.
|
|
2806
|
+
module.exports = JSON.parse("{\"name\":\"@kaiheila/ui-components\",\"version\":\"0.1.8\",\"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 */
|
|
@@ -4703,7 +4703,7 @@ var search_input_SearchInput = /*#__PURE__*/function (_Component) {
|
|
|
4703
4703
|
_this$props$placehold = _this$props.placeholder,
|
|
4704
4704
|
placeholder = _this$props$placehold === void 0 ? '' : _this$props$placehold,
|
|
4705
4705
|
_this$props$size = _this$props.size,
|
|
4706
|
-
size = _this$props$size === void 0 ? '
|
|
4706
|
+
size = _this$props$size === void 0 ? '' : _this$props$size,
|
|
4707
4707
|
_this$props$type = _this$props.type,
|
|
4708
4708
|
type = _this$props$type === void 0 ? '' : _this$props$type;
|
|
4709
4709
|
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
@@ -4723,11 +4723,35 @@ var search_input_SearchInput = /*#__PURE__*/function (_Component) {
|
|
|
4723
4723
|
type: "text",
|
|
4724
4724
|
placeholder: placeholder
|
|
4725
4725
|
}), value == '' ? /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
4726
|
-
className: "button-search
|
|
4727
|
-
}
|
|
4726
|
+
className: "button-search"
|
|
4727
|
+
}, /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
4728
|
+
t: "1655350445297",
|
|
4729
|
+
viewBox: "0 0 1024 1024",
|
|
4730
|
+
version: "1.1",
|
|
4731
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4732
|
+
pId: "4996",
|
|
4733
|
+
width: "200",
|
|
4734
|
+
height: "200"
|
|
4735
|
+
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
4736
|
+
d: "M484.693333 130.56a350.122667 350.122667 0 0 1 269.226667 574.037333l132.352 132.394667a32 32 0 0 1-41.642667 48.384l-3.584-3.114667-132.437333-132.394666A350.122667 350.122667 0 1 1 484.693333 130.602667z m0 64a286.122667 286.122667 0 1 0 0 572.245333 286.122667 286.122667 0 0 0 0-572.202666z",
|
|
4737
|
+
pId: "4997",
|
|
4738
|
+
fill: "currentColor"
|
|
4739
|
+
}))) : /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
4728
4740
|
onClick: this.clear,
|
|
4729
|
-
className: "button-clear
|
|
4730
|
-
}
|
|
4741
|
+
className: "button-clear"
|
|
4742
|
+
}, /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
4743
|
+
t: "1655352871719",
|
|
4744
|
+
viewBox: "0 0 1024 1024",
|
|
4745
|
+
version: "1.1",
|
|
4746
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4747
|
+
pId: "5254",
|
|
4748
|
+
width: "200",
|
|
4749
|
+
height: "200"
|
|
4750
|
+
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
4751
|
+
d: "M380.352 326.912l5.312 4.48L511.936 457.6l126.4-126.272a38.4 38.4 0 0 1 58.752 49.024l-4.48 5.312-126.336 126.272 126.4 126.4a38.4 38.4 0 0 1-49.024 58.752l-5.312-4.48L512 566.336l-126.272 126.4a38.4 38.4 0 0 1-58.752-49.024l4.48-5.312L457.6 512 331.328 385.664a38.4 38.4 0 0 1 49.024-58.752z",
|
|
4752
|
+
pId: "5255",
|
|
4753
|
+
fill: "currentColor"
|
|
4754
|
+
}))));
|
|
4731
4755
|
}
|
|
4732
4756
|
}]);
|
|
4733
4757
|
|
|
@@ -5651,8 +5675,20 @@ var selector_Selector = /*#__PURE__*/function (_Component) {
|
|
|
5651
5675
|
__html: printEmoji(label)
|
|
5652
5676
|
}
|
|
5653
5677
|
})), /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
5654
|
-
className: "
|
|
5655
|
-
}
|
|
5678
|
+
className: "dropdown-icon"
|
|
5679
|
+
}, /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
5680
|
+
t: "1655362138862",
|
|
5681
|
+
viewBox: "0 0 1024 1024",
|
|
5682
|
+
version: "1.1",
|
|
5683
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5684
|
+
pId: "5770",
|
|
5685
|
+
width: "200",
|
|
5686
|
+
height: "200"
|
|
5687
|
+
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
5688
|
+
d: "M286.144 448.192l24.512 23.808 23.104 21.632 21.76 19.584 20.736 17.472c107.392 87.488 171.52 84.672 281.664-8.448l21.248-18.56 22.4-20.608 23.808-22.72 12.416-12.16a10.752 10.752 0 0 0-7.552-18.432H293.76a10.752 10.752 0 0 0-7.616 18.432z",
|
|
5689
|
+
pId: "5771",
|
|
5690
|
+
fill: "currentColor"
|
|
5691
|
+
})))), this.renderOptions(list, showList), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
5656
5692
|
className: "ab-shadow",
|
|
5657
5693
|
ref: this.loadShadowRef
|
|
5658
5694
|
}));
|
|
@@ -5951,7 +5987,6 @@ var selector_search_SelectorSearch = /*#__PURE__*/function (_Component) {
|
|
|
5951
5987
|
ref: this.selectRef,
|
|
5952
5988
|
onClick: this.toggle
|
|
5953
5989
|
}, /*#__PURE__*/external_react_default.a.createElement("input", {
|
|
5954
|
-
className: "search-input",
|
|
5955
5990
|
type: "text",
|
|
5956
5991
|
value: keyword,
|
|
5957
5992
|
onChange: function onChange(event) {
|
|
@@ -5970,8 +6005,20 @@ var selector_search_SelectorSearch = /*#__PURE__*/function (_Component) {
|
|
|
5970
6005
|
}, placeholder ? placeholder : '请选择') : /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
5971
6006
|
className: "selector-search-label"
|
|
5972
6007
|
}, label)), /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
5973
|
-
className: "
|
|
5974
|
-
}
|
|
6008
|
+
className: "dropdown-icon"
|
|
6009
|
+
}, /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
6010
|
+
t: "1655362138862",
|
|
6011
|
+
viewBox: "0 0 1024 1024",
|
|
6012
|
+
version: "1.1",
|
|
6013
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6014
|
+
pId: "5770",
|
|
6015
|
+
width: "200",
|
|
6016
|
+
height: "200"
|
|
6017
|
+
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
6018
|
+
d: "M286.144 448.192l24.512 23.808 23.104 21.632 21.76 19.584 20.736 17.472c107.392 87.488 171.52 84.672 281.664-8.448l21.248-18.56 22.4-20.608 23.808-22.72 12.416-12.16a10.752 10.752 0 0 0-7.552-18.432H293.76a10.752 10.752 0 0 0-7.616 18.432z",
|
|
6019
|
+
pId: "5771",
|
|
6020
|
+
fill: "currentColor"
|
|
6021
|
+
})))), showList ? /*#__PURE__*/external_react_default.a.createElement("ul", {
|
|
5975
6022
|
className: "selector-search-option theme-scroll-bar",
|
|
5976
6023
|
style: optionsStyle
|
|
5977
6024
|
}, list) : null);
|
|
@@ -6987,8 +7034,20 @@ var time_selector_TimeSelector = /*#__PURE__*/function (_Component) {
|
|
|
6987
7034
|
}, /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
6988
7035
|
className: "time-selector-label"
|
|
6989
7036
|
}, "".concat(hour.toString().padStart(2, '0'), ":").concat(minute.toString().padStart(2, '0'))), /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
6990
|
-
className: "
|
|
6991
|
-
}
|
|
7037
|
+
className: "dropdown-icon"
|
|
7038
|
+
}, /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
7039
|
+
t: "1655362138862",
|
|
7040
|
+
viewBox: "0 0 1024 1024",
|
|
7041
|
+
version: "1.1",
|
|
7042
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7043
|
+
pId: "5770",
|
|
7044
|
+
width: "200",
|
|
7045
|
+
height: "200"
|
|
7046
|
+
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
7047
|
+
d: "M286.144 448.192l24.512 23.808 23.104 21.632 21.76 19.584 20.736 17.472c107.392 87.488 171.52 84.672 281.664-8.448l21.248-18.56 22.4-20.608 23.808-22.72 12.416-12.16a10.752 10.752 0 0 0-7.552-18.432H293.76a10.752 10.752 0 0 0-7.616 18.432z",
|
|
7048
|
+
pId: "5771",
|
|
7049
|
+
fill: "currentColor"
|
|
7050
|
+
})))), displayOption && /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
6992
7051
|
className: "time-selector-option",
|
|
6993
7052
|
ref: function ref(e) {
|
|
6994
7053
|
return _this2.optionRef = e;
|