@kaiheila/ui-components 0.1.9 → 0.1.12

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 CHANGED
@@ -100,15 +100,21 @@ textarea {
100
100
  border-radius: 50%;
101
101
  }
102
102
  .kaihei-loading-spin:before {
103
- border: 3px solid var(--border-color);
103
+ border: 3px solid rgba(0, 0, 0, 0.12);
104
+ }
105
+ .theme-dark .kaihei-loading-spin:before {
106
+ border-color: rgba(255, 255, 255, 0.12);
104
107
  }
105
108
  .kaihei-loading-spin:after {
106
109
  animation-duration: 0.6s;
107
110
  border: 3px solid transparent;
108
- border-top-color: var(--text-tip-color);
111
+ border-top-color: rgba(0, 0, 0, 0.32);
109
112
  -webkit-animation: loaderSpin 0.6s linear infinite;
110
113
  animation: loaderSpin 0.6s linear infinite;
111
114
  }
115
+ .theme-dark .kaihei-loading-spin:after {
116
+ border-top-color: rgba(255, 255, 255, 0.32);
117
+ }
112
118
  .kaihei-loading-spin.block-loading-spin {
113
119
  display: block;
114
120
  margin-left: auto;
@@ -227,6 +233,10 @@ textarea {
227
233
  text-align: center;
228
234
  outline: none;
229
235
  border: 0 none;
236
+ overflow: hidden;
237
+ white-space: nowrap;
238
+ text-overflow: ellipsis;
239
+ max-width: 100%;
230
240
  /*按钮大小*/
231
241
  /*按钮颜色样式*/
232
242
  }
@@ -253,6 +263,7 @@ textarea {
253
263
  height: 36px;
254
264
  min-width: 80px;
255
265
  font-size: 14px;
266
+ line-height: 36px;
256
267
  padding: 0 12px;
257
268
  border-radius: 12px;
258
269
  }
@@ -440,6 +451,12 @@ textarea {
440
451
  width: 18px;
441
452
  line-height: 1;
442
453
  }
454
+ .chuanyu-button.loading .btn-loading-ico .kaihei-loading-spin:before {
455
+ border-color: rgba(255, 255, 255, 0.4);
456
+ }
457
+ .chuanyu-button.loading .btn-loading-ico .kaihei-loading-spin:after {
458
+ border-top-color: rgba(255, 255, 255, 0.72);
459
+ }
443
460
  .size-sm .button-loading-spin {
444
461
  transform-origin: 50%;
445
462
  transform: scale(0.9);
@@ -504,6 +521,15 @@ textarea {
504
521
  vertical-align: middle;
505
522
  box-sizing: border-box;
506
523
  }
524
+ .kaihei-checkbox-mute.type-appprimary:hover:not(.disabled) {
525
+ border-color: var(--color-primary);
526
+ }
527
+ .kaihei-checkbox-mute.type-danger:hover:not(.disabled) {
528
+ border-color: var(--color-error);
529
+ }
530
+ .kaihei-checkbox-mute svg {
531
+ visibility: hidden;
532
+ }
507
533
  .kaihei-checkbox-mute.active {
508
534
  display: inline-flex;
509
535
  justify-content: center;
@@ -520,6 +546,9 @@ textarea {
520
546
  .kaihei-checkbox-mute.active:before {
521
547
  color: white;
522
548
  }
549
+ .kaihei-checkbox-mute.active svg {
550
+ visibility: visible;
551
+ }
523
552
  .kaihei-checkbox-mute.disabled {
524
553
  opacity: 0.5;
525
554
  cursor: not-allowed;
@@ -886,14 +915,13 @@ textarea {
886
915
  color: var(--text-description-color);
887
916
  }
888
917
  .selector-contain.type-ghost .selector-select {
889
- padding: 6px 32px 6px 12px;
918
+ padding: 6px 32px 6px 16px;
890
919
  border-radius: 16px;
891
- border-width: 0;
892
920
  background-color: var(--menu-background);
893
921
  }
894
922
  .selector-contain.simple .selector-select {
895
923
  border: none;
896
- padding: 0 30px 0 0;
924
+ padding: 0 16px 0 0;
897
925
  line-height: 1;
898
926
  box-shadow: none;
899
927
  color: var(--text-description-color);
@@ -904,6 +932,9 @@ textarea {
904
932
  box-shadow: none;
905
933
  color: var(--text-color);
906
934
  }
935
+ .selector-contain.simple .selector-select .dropdown-icon {
936
+ right: 0;
937
+ }
907
938
  .selector-option.simple {
908
939
  margin-left: 50%;
909
940
  margin-top: 10px;
@@ -926,7 +957,7 @@ textarea {
926
957
  display: flex;
927
958
  position: relative;
928
959
  width: 100%;
929
- padding: 9px 35px 9px 16px;
960
+ padding: 9px 48px 9px 16px;
930
961
  border: 1px solid var(--border-color);
931
962
  border-radius: 12px;
932
963
  cursor: pointer;
@@ -961,13 +992,13 @@ textarea {
961
992
  display: flex;
962
993
  top: 50%;
963
994
  transform: translateY(-50%);
964
- right: 10px;
995
+ right: 16px;
965
996
  font-size: 24px;
966
997
  transition: transform 0.2s;
967
998
  }
968
999
  .selector-select .dropdown-icon svg {
969
- width: 24px;
970
- height: 24px;
1000
+ width: 16px;
1001
+ height: 16px;
971
1002
  }
972
1003
  .selector-option {
973
1004
  position: absolute;
@@ -1025,7 +1056,7 @@ textarea {
1025
1056
  .selector-search-select {
1026
1057
  position: relative;
1027
1058
  width: 100%;
1028
- padding: 9px 35px 9px 16px;
1059
+ padding: 9px 48px 9px 16px;
1029
1060
  border-radius: 12px;
1030
1061
  border: 1px solid var(--border-color);
1031
1062
  }
@@ -1052,6 +1083,7 @@ textarea {
1052
1083
  overflow: hidden;
1053
1084
  text-overflow: ellipsis;
1054
1085
  vertical-align: middle;
1086
+ line-height: 20px;
1055
1087
  }
1056
1088
  .selector-search-select .selector-search-label.none {
1057
1089
  color: var(--text-tip-color);
@@ -1061,15 +1093,16 @@ textarea {
1061
1093
  display: flex;
1062
1094
  top: 50%;
1063
1095
  transform: translateY(-50%);
1064
- right: 10px;
1096
+ right: 16px;
1065
1097
  font-size: 24px;
1066
1098
  transition: transform 0.2s;
1067
1099
  }
1068
1100
  .selector-search-select .dropdown-icon svg {
1069
- width: 24px;
1070
- height: 24px;
1101
+ width: 16px;
1102
+ height: 16px;
1071
1103
  }
1072
1104
  .selector-search-select input {
1105
+ height: 19px;
1073
1106
  width: 100%;
1074
1107
  border: none;
1075
1108
  cursor: default;
@@ -1488,21 +1521,21 @@ body .__react_component_tooltip.type-dark.place-right:after {
1488
1521
  }
1489
1522
  .time-selector-select:active .dropdown-icon,
1490
1523
  .time-selector-select.active .dropdown-icon {
1491
- transform: rotate(180deg);
1524
+ transform: translateY(-50%) rotate(180deg);
1492
1525
  }
1493
1526
  .time-selector-select .dropdown-icon {
1494
1527
  position: absolute;
1495
1528
  display: flex;
1496
1529
  top: 50%;
1497
- margin-top: -12px;
1498
- right: 8px;
1530
+ transform: translateY(-50%);
1531
+ right: 16px;
1499
1532
  font-size: 24px;
1500
1533
  color: var(--text-description-color);
1501
1534
  transition: transform 200ms linear;
1502
1535
  }
1503
1536
  .time-selector-select .dropdown-icon svg {
1504
- width: 24px;
1505
- height: 24px;
1537
+ width: 16px;
1538
+ height: 16px;
1506
1539
  }
1507
1540
  .time-selector-option {
1508
1541
  position: absolute;
@@ -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.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\"]}}");
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 */
@@ -3315,10 +3315,41 @@ var checkbox_Checkbox = /*#__PURE__*/function (_Component) {
3315
3315
  })), multe ? /*#__PURE__*/external_react_default.a.createElement("a", {
3316
3316
  onClick: this.handleClick,
3317
3317
  className: external_classnames_default()('kaihei-checkbox-mute', {
3318
- 'active xy-iconfont xy-icon-Qos_checkbox_s': checked,
3318
+ 'active': checked,
3319
3319
  disabled: disabled
3320
3320
  }, 'type-' + type)
3321
- }) : /*#__PURE__*/external_react_default.a.createElement("a", {
3321
+ }, /*#__PURE__*/external_react_default.a.createElement("svg", {
3322
+ width: "12px",
3323
+ height: "12px",
3324
+ viewBox: "0 0 12 12",
3325
+ version: "1.1",
3326
+ xmlns: "http://www.w3.org/2000/svg"
3327
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
3328
+ id: "\u57FA\u7840\u7840\u4EF6",
3329
+ stroke: "none",
3330
+ strokeWidth: "1",
3331
+ fill: "none",
3332
+ fillRule: "evenodd"
3333
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
3334
+ id: "\u63A7\u4EF6",
3335
+ transform: "translate(-117.000000, -2389.000000)"
3336
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
3337
+ id: "\u72B6\u6001",
3338
+ transform: "translate(80.000000, 2387.000000)"
3339
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
3340
+ id: "\u5B8C\u6210",
3341
+ transform: "translate(35.000000, 0.000000)"
3342
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
3343
+ id: "\u6B63\u786E",
3344
+ transform: "translate(2.000000, 2.000000)"
3345
+ }, /*#__PURE__*/external_react_default.a.createElement("polyline", {
3346
+ id: "\u8DEF\u5F84-9",
3347
+ stroke: "#FFFFFF",
3348
+ strokeWidth: "2",
3349
+ strokeLinecap: "round",
3350
+ strokeLinejoin: "round",
3351
+ points: "2.26 5.84768747 4.06476748 8.90524154 10.1330175 2.90524154"
3352
+ })))))))) : /*#__PURE__*/external_react_default.a.createElement("a", {
3322
3353
  onClick: this.handleClick,
3323
3354
  className: external_classnames_default()("kaihei-checkbox ".concat(checked ? ' active' : ''), {
3324
3355
  disabled: disabled
@@ -5427,6 +5458,40 @@ function printEmoji(str) {
5427
5458
  });
5428
5459
  return str;
5429
5460
  }
5461
+ // CONCATENATED MODULE: ./src/components/icon/IconDropDown.jsx
5462
+
5463
+ function IconDropDown() {
5464
+ return /*#__PURE__*/external_react_default.a.createElement("svg", {
5465
+ width: "16px",
5466
+ height: "16px",
5467
+ viewBox: "0 0 16 16",
5468
+ version: "1.1",
5469
+ xmlns: "http://www.w3.org/2000/svg"
5470
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
5471
+ id: "\u57FA\u7840\u7840\u4EF6",
5472
+ stroke: "none",
5473
+ strokeWidth: "1",
5474
+ fill: "none",
5475
+ fillRule: "evenodd"
5476
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
5477
+ id: "\u63A7\u4EF6",
5478
+ transform: "translate(-1136.000000, -236.000000)"
5479
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
5480
+ id: "\u4E0B\u62C9\u6846",
5481
+ transform: "translate(848.000000, 224.000000)"
5482
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
5483
+ id: "\u5C55\u5F00",
5484
+ transform: "translate(288.000000, 12.000000)"
5485
+ }, /*#__PURE__*/external_react_default.a.createElement("g", {
5486
+ id: "\u77E9\u5F62",
5487
+ opacity: "0.100000001"
5488
+ }), /*#__PURE__*/external_react_default.a.createElement("path", {
5489
+ d: "M8.70710678,6.20710678 L12.2928932,9.79289322 12.6834175,10.1834175 12.6834175,10.8165825 12.2928932,11.2071068 C12.1053568,11.3946432 11.8510029,11.5 11.5857864,11.5 L4.41421356,11.5 C3.86192881,11.5 3.41421356,11.0522847 3.41421356,10.5 C3.41421356,10.2347835 3.5195704,9.9804296 3.70710678,9.79289322 L7.29289322,6.20710678 C7.68341751,5.81658249 8.31658249,5.81658249 8.70710678,6.20710678 Z",
5490
+ id: "\u4E09\u89D2\u5F62",
5491
+ fill: "currentColor",
5492
+ transform: "translate(8.000000, 8.500000) rotate(-180.000000) translate(-8.000000, -8.500000) "
5493
+ }))))));
5494
+ }
5430
5495
  // CONCATENATED MODULE: ./src/components/selector/selector.jsx
5431
5496
  function selector_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { selector_typeof = function _typeof(obj) { return typeof obj; }; } else { selector_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return selector_typeof(obj); }
5432
5497
 
@@ -5463,6 +5528,7 @@ function selector_defineProperty(obj, key, value) { if (key in obj) { Object.def
5463
5528
 
5464
5529
 
5465
5530
 
5531
+
5466
5532
  var selector_Selector = /*#__PURE__*/function (_Component) {
5467
5533
  selector_inherits(Selector, _Component);
5468
5534
 
@@ -5535,8 +5601,9 @@ var selector_Selector = /*#__PURE__*/function (_Component) {
5535
5601
  noTheme = _this$props2.noTheme,
5536
5602
  _this$props2$simple = _this$props2.simple,
5537
5603
  simple = _this$props2$simple === void 0 ? false : _this$props2$simple,
5538
- optionsWidth = _this$props2.optionsWidth;
5539
- var baseStyle = {};
5604
+ optionsWidth = _this$props2.optionsWidth,
5605
+ optionStyle = _this$props2.optionStyle;
5606
+ var baseStyle = optionStyle || {};
5540
5607
 
5541
5608
  if (optionsWidth) {
5542
5609
  baseStyle.width = optionsWidth;
@@ -5676,19 +5743,7 @@ var selector_Selector = /*#__PURE__*/function (_Component) {
5676
5743
  }
5677
5744
  })), /*#__PURE__*/external_react_default.a.createElement("span", {
5678
5745
  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", {
5746
+ }, /*#__PURE__*/external_react_default.a.createElement(IconDropDown, null))), this.renderOptions(list, showList), /*#__PURE__*/external_react_default.a.createElement("div", {
5692
5747
  className: "ab-shadow",
5693
5748
  ref: this.loadShadowRef
5694
5749
  }));
@@ -5752,6 +5807,7 @@ function selector_search_defineProperty(obj, key, value) { if (key in obj) { Obj
5752
5807
 
5753
5808
 
5754
5809
 
5810
+
5755
5811
  var selector_search_SelectorSearch = /*#__PURE__*/function (_Component) {
5756
5812
  selector_search_inherits(SelectorSearch, _Component);
5757
5813
 
@@ -6006,19 +6062,7 @@ var selector_search_SelectorSearch = /*#__PURE__*/function (_Component) {
6006
6062
  className: "selector-search-label"
6007
6063
  }, label)), /*#__PURE__*/external_react_default.a.createElement("span", {
6008
6064
  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", {
6065
+ }, /*#__PURE__*/external_react_default.a.createElement(IconDropDown, null))), showList ? /*#__PURE__*/external_react_default.a.createElement("ul", {
6022
6066
  className: "selector-search-option theme-scroll-bar",
6023
6067
  style: optionsStyle
6024
6068
  }, list) : null);
@@ -6857,6 +6901,7 @@ function time_selector_defineProperty(obj, key, value) { if (key in obj) { Objec
6857
6901
 
6858
6902
 
6859
6903
 
6904
+
6860
6905
  var time_selector_TimeSelector = /*#__PURE__*/function (_Component) {
6861
6906
  time_selector_inherits(TimeSelector, _Component);
6862
6907
 
@@ -7035,19 +7080,7 @@ var time_selector_TimeSelector = /*#__PURE__*/function (_Component) {
7035
7080
  className: "time-selector-label"
7036
7081
  }, "".concat(hour.toString().padStart(2, '0'), ":").concat(minute.toString().padStart(2, '0'))), /*#__PURE__*/external_react_default.a.createElement("span", {
7037
7082
  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", {
7083
+ }, /*#__PURE__*/external_react_default.a.createElement(IconDropDown, null))), displayOption && /*#__PURE__*/external_react_default.a.createElement("div", {
7051
7084
  className: "time-selector-option",
7052
7085
  ref: function ref(e) {
7053
7086
  return _this2.optionRef = e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaiheila/ui-components",
3
- "version": "0.1.9",
3
+ "version": "0.1.12",
4
4
  "description": "开黑啦 UI Components",
5
5
  "main": "dist/ui-components.js",
6
6
  "scripts": {