@kaiheila/ui-components 0.1.8 → 0.1.11
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 +47 -36
- package/dist/ui-components.js +75 -15
- 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;
|
|
@@ -891,9 +886,8 @@ textarea {
|
|
|
891
886
|
color: var(--text-description-color);
|
|
892
887
|
}
|
|
893
888
|
.selector-contain.type-ghost .selector-select {
|
|
894
|
-
padding: 6px 32px 6px
|
|
889
|
+
padding: 6px 32px 6px 16px;
|
|
895
890
|
border-radius: 16px;
|
|
896
|
-
border-width: 0;
|
|
897
891
|
background-color: var(--menu-background);
|
|
898
892
|
}
|
|
899
893
|
.selector-contain.simple .selector-select {
|
|
@@ -963,12 +957,17 @@ textarea {
|
|
|
963
957
|
}
|
|
964
958
|
.selector-select .dropdown-icon {
|
|
965
959
|
position: absolute;
|
|
960
|
+
display: flex;
|
|
966
961
|
top: 50%;
|
|
967
962
|
transform: translateY(-50%);
|
|
968
963
|
right: 10px;
|
|
969
964
|
font-size: 24px;
|
|
970
965
|
transition: transform 0.2s;
|
|
971
966
|
}
|
|
967
|
+
.selector-select .dropdown-icon svg {
|
|
968
|
+
width: 24px;
|
|
969
|
+
height: 24px;
|
|
970
|
+
}
|
|
972
971
|
.selector-option {
|
|
973
972
|
position: absolute;
|
|
974
973
|
width: 100%;
|
|
@@ -1058,11 +1057,16 @@ textarea {
|
|
|
1058
1057
|
}
|
|
1059
1058
|
.selector-search-select .dropdown-icon {
|
|
1060
1059
|
position: absolute;
|
|
1060
|
+
display: flex;
|
|
1061
1061
|
top: 50%;
|
|
1062
1062
|
transform: translateY(-50%);
|
|
1063
1063
|
right: 10px;
|
|
1064
1064
|
font-size: 24px;
|
|
1065
|
-
transition: transform
|
|
1065
|
+
transition: transform 0.2s;
|
|
1066
|
+
}
|
|
1067
|
+
.selector-search-select .dropdown-icon svg {
|
|
1068
|
+
width: 24px;
|
|
1069
|
+
height: 24px;
|
|
1066
1070
|
}
|
|
1067
1071
|
.selector-search-select input {
|
|
1068
1072
|
width: 100%;
|
|
@@ -1487,11 +1491,18 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1487
1491
|
}
|
|
1488
1492
|
.time-selector-select .dropdown-icon {
|
|
1489
1493
|
position: absolute;
|
|
1494
|
+
display: flex;
|
|
1495
|
+
top: 50%;
|
|
1496
|
+
margin-top: -12px;
|
|
1490
1497
|
right: 8px;
|
|
1491
1498
|
font-size: 24px;
|
|
1492
1499
|
color: var(--text-description-color);
|
|
1493
1500
|
transition: transform 200ms linear;
|
|
1494
1501
|
}
|
|
1502
|
+
.time-selector-select .dropdown-icon svg {
|
|
1503
|
+
width: 24px;
|
|
1504
|
+
height: 24px;
|
|
1505
|
+
}
|
|
1495
1506
|
.time-selector-option {
|
|
1496
1507
|
position: absolute;
|
|
1497
1508
|
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.10\",\"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
|
|
|
@@ -5511,8 +5535,9 @@ var selector_Selector = /*#__PURE__*/function (_Component) {
|
|
|
5511
5535
|
noTheme = _this$props2.noTheme,
|
|
5512
5536
|
_this$props2$simple = _this$props2.simple,
|
|
5513
5537
|
simple = _this$props2$simple === void 0 ? false : _this$props2$simple,
|
|
5514
|
-
optionsWidth = _this$props2.optionsWidth
|
|
5515
|
-
|
|
5538
|
+
optionsWidth = _this$props2.optionsWidth,
|
|
5539
|
+
optionStyle = _this$props2.optionStyle;
|
|
5540
|
+
var baseStyle = optionStyle || {};
|
|
5516
5541
|
|
|
5517
5542
|
if (optionsWidth) {
|
|
5518
5543
|
baseStyle.width = optionsWidth;
|
|
@@ -5651,8 +5676,20 @@ var selector_Selector = /*#__PURE__*/function (_Component) {
|
|
|
5651
5676
|
__html: printEmoji(label)
|
|
5652
5677
|
}
|
|
5653
5678
|
})), /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
5654
|
-
className: "
|
|
5655
|
-
}
|
|
5679
|
+
className: "dropdown-icon"
|
|
5680
|
+
}, /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
5681
|
+
t: "1655362138862",
|
|
5682
|
+
viewBox: "0 0 1024 1024",
|
|
5683
|
+
version: "1.1",
|
|
5684
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5685
|
+
pId: "5770",
|
|
5686
|
+
width: "200",
|
|
5687
|
+
height: "200"
|
|
5688
|
+
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
5689
|
+
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",
|
|
5690
|
+
pId: "5771",
|
|
5691
|
+
fill: "currentColor"
|
|
5692
|
+
})))), this.renderOptions(list, showList), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
5656
5693
|
className: "ab-shadow",
|
|
5657
5694
|
ref: this.loadShadowRef
|
|
5658
5695
|
}));
|
|
@@ -5951,7 +5988,6 @@ var selector_search_SelectorSearch = /*#__PURE__*/function (_Component) {
|
|
|
5951
5988
|
ref: this.selectRef,
|
|
5952
5989
|
onClick: this.toggle
|
|
5953
5990
|
}, /*#__PURE__*/external_react_default.a.createElement("input", {
|
|
5954
|
-
className: "search-input",
|
|
5955
5991
|
type: "text",
|
|
5956
5992
|
value: keyword,
|
|
5957
5993
|
onChange: function onChange(event) {
|
|
@@ -5970,8 +6006,20 @@ var selector_search_SelectorSearch = /*#__PURE__*/function (_Component) {
|
|
|
5970
6006
|
}, placeholder ? placeholder : '请选择') : /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
5971
6007
|
className: "selector-search-label"
|
|
5972
6008
|
}, label)), /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
5973
|
-
className: "
|
|
5974
|
-
}
|
|
6009
|
+
className: "dropdown-icon"
|
|
6010
|
+
}, /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
6011
|
+
t: "1655362138862",
|
|
6012
|
+
viewBox: "0 0 1024 1024",
|
|
6013
|
+
version: "1.1",
|
|
6014
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6015
|
+
pId: "5770",
|
|
6016
|
+
width: "200",
|
|
6017
|
+
height: "200"
|
|
6018
|
+
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
6019
|
+
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",
|
|
6020
|
+
pId: "5771",
|
|
6021
|
+
fill: "currentColor"
|
|
6022
|
+
})))), showList ? /*#__PURE__*/external_react_default.a.createElement("ul", {
|
|
5975
6023
|
className: "selector-search-option theme-scroll-bar",
|
|
5976
6024
|
style: optionsStyle
|
|
5977
6025
|
}, list) : null);
|
|
@@ -6987,8 +7035,20 @@ var time_selector_TimeSelector = /*#__PURE__*/function (_Component) {
|
|
|
6987
7035
|
}, /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
6988
7036
|
className: "time-selector-label"
|
|
6989
7037
|
}, "".concat(hour.toString().padStart(2, '0'), ":").concat(minute.toString().padStart(2, '0'))), /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
6990
|
-
className: "
|
|
6991
|
-
}
|
|
7038
|
+
className: "dropdown-icon"
|
|
7039
|
+
}, /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
7040
|
+
t: "1655362138862",
|
|
7041
|
+
viewBox: "0 0 1024 1024",
|
|
7042
|
+
version: "1.1",
|
|
7043
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7044
|
+
pId: "5770",
|
|
7045
|
+
width: "200",
|
|
7046
|
+
height: "200"
|
|
7047
|
+
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
7048
|
+
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",
|
|
7049
|
+
pId: "5771",
|
|
7050
|
+
fill: "currentColor"
|
|
7051
|
+
})))), displayOption && /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
6992
7052
|
className: "time-selector-option",
|
|
6993
7053
|
ref: function ref(e) {
|
|
6994
7054
|
return _this2.optionRef = e;
|