assui 3.0.31 → 3.0.33

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.
@@ -1240,6 +1240,9 @@ html {
1240
1240
  width: 100%;
1241
1241
  height: 100%;
1242
1242
  }
1243
+ .label-auto-complete .ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-disabled) .ant-select-selector:hover {
1244
+ border-color: #a0a0a0;
1245
+ }
1243
1246
  .label-auto-complete .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {
1244
1247
  height: 45px;
1245
1248
  border: 1px solid #e5e5e5;
@@ -3,6 +3,7 @@
3
3
  @import '../../style/themes/default.less';
4
4
 
5
5
  @color_9aa5b5: #9aa5b5;
6
+ @color_a0a0a0: #a0a0a0;
6
7
  @font-size-base: 14px;
7
8
 
8
9
  .label-auto-complete {
@@ -10,6 +11,12 @@
10
11
  width: 100%;
11
12
  height: 100%;
12
13
 
14
+ .@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input):not(.@{ant-prefix}-select-disabled) {
15
+ .@{ant-prefix}-select-selector:hover {
16
+ border-color: @color_a0a0a0;
17
+ }
18
+ }
19
+
13
20
  .@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input)
14
21
  .@{ant-prefix}-select-selector {
15
22
  height: 45px;
@@ -56,7 +56,8 @@ var LabelInput = function LabelInput(props) {
56
56
  type = _a === void 0 ? 'text' : _a,
57
57
  maxLength = props.maxLength,
58
58
  _b = props.baseMinWidth,
59
- baseMinWidth = _b === void 0 ? 50 : _b;
59
+ baseMinWidth = _b === void 0 ? 50 : _b,
60
+ disabled = props.disabled;
60
61
  var labelDomRef = React.useRef(null);
61
62
  var labelSize = useSize(labelDomRef);
62
63
  var _c = __read(React.useState(false), 2),
@@ -100,7 +101,8 @@ var LabelInput = function LabelInput(props) {
100
101
  }, /*#__PURE__*/React.createElement("div", {
101
102
  className: classNames('label-input-field', {
102
103
  'label-input-affix': prefix || suffix || isPasswordInput,
103
- 'label-input-focused': focused
104
+ 'label-input-focused': focused,
105
+ 'label-input-disabled': disabled
104
106
  })
105
107
  }, prefix && /*#__PURE__*/React.createElement("div", {
106
108
  className: "label-input-prefix"
@@ -117,7 +119,8 @@ var LabelInput = function LabelInput(props) {
117
119
  onFocus: handleFocus,
118
120
  onBlur: handleBlur,
119
121
  onChange: handleChange,
120
- maxLength: maxLength
122
+ maxLength: maxLength,
123
+ disabled: disabled
121
124
  }), /*#__PURE__*/React.createElement("label", {
122
125
  className: "label-input-text",
123
126
  onClick: handleLabelClick,
@@ -25,6 +25,9 @@
25
25
  border-radius: 8px;
26
26
  transition: border 0.3s;
27
27
  }
28
+ .label-input-field:not(.label-input-disabled):hover {
29
+ border-color: #a0a0a0;
30
+ }
28
31
  .label-input-affix {
29
32
  display: flex;
30
33
  align-items: center;
@@ -5,6 +5,7 @@
5
5
  @color_9aa5b5: #9aa5b5;
6
6
  @color_b3b3b3: #b3b3b3;
7
7
  @color_e5e5e5: #e5e5e5;
8
+ @color_a0a0a0: #a0a0a0;
8
9
 
9
10
  @font-size-base: 14px;
10
11
  @font-size-lg: @font-size-base + 2px;
@@ -39,6 +40,10 @@
39
40
  border: 1px solid @color_e5e5e5;
40
41
  border-radius: 8px;
41
42
  transition: border 0.3s;
43
+
44
+ &:not(.label-input-disabled):hover {
45
+ border-color: @color_a0a0a0;
46
+ }
42
47
  }
43
48
 
44
49
  &-affix {
@@ -79,7 +79,8 @@ var LabelNumberInput = function LabelNumberInput(props) {
79
79
  }
80
80
  }, /*#__PURE__*/React.createElement("div", {
81
81
  className: classNames('label-number-input-field', {
82
- 'label-number-input-focused': focused
82
+ 'label-number-input-focused': focused,
83
+ 'label-number-input-disabled': props.disabled
83
84
  })
84
85
  }, /*#__PURE__*/React.createElement(NumberInput, __assign({}, omit(props, ['onChange', 'onBlur', 'onFocus', 'className', 'label', 'placeholder', 'baseMinWidth']), {
85
86
  ref: numberInputRef,
@@ -25,6 +25,9 @@
25
25
  border-radius: 8px;
26
26
  transition: border 0.3s;
27
27
  }
28
+ .label-number-input-warper .label-number-input-field:not(.label-number-input-disabled):hover {
29
+ border-color: #a0a0a0;
30
+ }
28
31
  .label-number-input-warper .label-number-input-focused {
29
32
  border-color: #000;
30
33
  }
@@ -3,6 +3,7 @@
3
3
  @color_263241: #263241;
4
4
  @color_9aa5b5: #9aa5b5;
5
5
  @color_e5e5e5: #e5e5e5;
6
+ @color_a0a0a0: #a0a0a0;
6
7
 
7
8
  @font-size-base: 14px;
8
9
  @font-size-lg: @font-size-base + 2px;
@@ -36,6 +37,10 @@
36
37
  border: 1px solid @color_e5e5e5;
37
38
  border-radius: 8px;
38
39
  transition: border 0.3s;
40
+
41
+ &:not(.label-number-input-disabled):hover {
42
+ border-color: @color_a0a0a0;
43
+ }
39
44
  }
40
45
 
41
46
  &-focused {
@@ -70,6 +70,7 @@ var LabelDatePicker = function LabelDatePicker(props) {
70
70
  return /*#__PURE__*/React.createElement("div", {
71
71
  className: classNames({
72
72
  'label-range-picker': true,
73
+ 'label-range-picker-disabled': props.disabled,
73
74
  'label-range-picker-label-scale': open || value
74
75
  }, className)
75
76
  }, /*#__PURE__*/React.createElement(RangePicker, __assign({
@@ -1238,6 +1238,10 @@ html {
1238
1238
  position: relative;
1239
1239
  width: 220px;
1240
1240
  height: 100%;
1241
+ cursor: pointer;
1242
+ }
1243
+ .label-range-picker:not(.label-range-picker-disabled):hover .ant-picker {
1244
+ border-color: #a0a0a0;
1241
1245
  }
1242
1246
  .label-range-picker .ant-picker {
1243
1247
  height: 45px;
@@ -1274,10 +1278,14 @@ html {
1274
1278
  }
1275
1279
  .label-range-picker-text {
1276
1280
  position: absolute;
1277
- top: 12px;
1278
- left: 16px;
1281
+ top: 0;
1282
+ left: 0;
1279
1283
  z-index: 2;
1280
- height: 20px;
1284
+ display: flex;
1285
+ align-items: center;
1286
+ width: calc(100% - 12px);
1287
+ height: 100%;
1288
+ margin-left: 12px;
1281
1289
  color: #9aa5b5;
1282
1290
  font-size: 14px;
1283
1291
  line-height: 20px;
@@ -2,12 +2,20 @@
2
2
  @import '../../style/themes/default.less';
3
3
 
4
4
  @color_9aa5b5: #9aa5b5;
5
+ @color_a0a0a0: #a0a0a0;
5
6
  @font-size-base: 14px;
6
7
 
7
8
  .label-range-picker {
8
9
  position: relative;
9
10
  width: 220px;
10
11
  height: 100%;
12
+ cursor: pointer;
13
+
14
+ &:not(.label-range-picker-disabled):hover {
15
+ .@{ant-prefix}-picker {
16
+ border-color: @color_a0a0a0;
17
+ }
18
+ }
11
19
 
12
20
  .@{ant-prefix}-picker {
13
21
  height: 45px;
@@ -51,10 +59,14 @@
51
59
 
52
60
  &-text {
53
61
  position: absolute;
54
- top: 12px;
55
- left: 16px;
62
+ top: 0;
63
+ left: 0;
56
64
  z-index: 2;
57
- height: 20px;
65
+ display: flex;
66
+ align-items: center;
67
+ width: calc(100% - 12px);
68
+ height: 100%;
69
+ margin-left: 12px;
58
70
  color: @color_9aa5b5;
59
71
  font-size: @font-size-base;
60
72
  line-height: 20px;
@@ -1243,6 +1243,10 @@ html {
1243
1243
  .label-select .ant-select {
1244
1244
  width: 100%;
1245
1245
  }
1246
+ .label-select .ant-select:not(.ant-select-disabled) .ant-select-selector:hover,
1247
+ .label-select .ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-disabled) .ant-select-selector:hover {
1248
+ border-color: #a0a0a0;
1249
+ }
1246
1250
  .label-select .ant-select-multiple .ant-select-selector {
1247
1251
  height: 45px;
1248
1252
  padding: 6px 11px 7px;
@@ -5,6 +5,7 @@
5
5
  @color_9aa5b5: #9aa5b5;
6
6
  @color_e5e5e5: #e5e5e5;
7
7
  @color_7d7d7d: #7d7d7d;
8
+ @color_a0a0a0: #a0a0a0;
8
9
  @color_333: #333;
9
10
  @color_ccc: #ccc;
10
11
  @white: #fff;
@@ -20,6 +21,13 @@
20
21
  width: 100%;
21
22
  }
22
23
 
24
+ .@{ant-prefix}-select:not(.@{ant-prefix}-select-disabled),
25
+ .@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input):not(.@{ant-prefix}-select-disabled) {
26
+ .@{ant-prefix}-select-selector:hover {
27
+ border-color: @color_a0a0a0;
28
+ }
29
+ }
30
+
23
31
  .@{ant-prefix}-select-multiple {
24
32
  .@{ant-prefix}-select-selector {
25
33
  height: 45px;
@@ -44,7 +52,8 @@
44
52
  }
45
53
  }
46
54
 
47
- .@{ant-prefix}-select-multiple.@{ant-prefix}-select-lg .@{ant-prefix}-select-selection-item {
55
+ .@{ant-prefix}-select-multiple.@{ant-prefix}-select-lg
56
+ .@{ant-prefix}-select-selection-item {
48
57
  width: auto;
49
58
  height: auto;
50
59
  margin: 0 4px 4px 0;
@@ -56,7 +56,7 @@ var ReactEchartCore = function ReactEchartCore(props) {
56
56
  dispose();
57
57
  renderEchartDom();
58
58
  bindEvents();
59
- }, [theme, opts, onEvents]);
59
+ }, [theme, opts]);
60
60
  // need setOption
61
61
  useUpdateEffect(function () {
62
62
  renderEchartDom();
@@ -1240,6 +1240,9 @@ html {
1240
1240
  width: 100%;
1241
1241
  height: 100%;
1242
1242
  }
1243
+ .label-auto-complete .ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-disabled) .ant-select-selector:hover {
1244
+ border-color: #a0a0a0;
1245
+ }
1243
1246
  .label-auto-complete .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {
1244
1247
  height: 45px;
1245
1248
  border: 1px solid #e5e5e5;
@@ -3,6 +3,7 @@
3
3
  @import '../../style/themes/default.less';
4
4
 
5
5
  @color_9aa5b5: #9aa5b5;
6
+ @color_a0a0a0: #a0a0a0;
6
7
  @font-size-base: 14px;
7
8
 
8
9
  .label-auto-complete {
@@ -10,6 +11,12 @@
10
11
  width: 100%;
11
12
  height: 100%;
12
13
 
14
+ .@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input):not(.@{ant-prefix}-select-disabled) {
15
+ .@{ant-prefix}-select-selector:hover {
16
+ border-color: @color_a0a0a0;
17
+ }
18
+ }
19
+
13
20
  .@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input)
14
21
  .@{ant-prefix}-select-selector {
15
22
  height: 45px;
@@ -66,7 +66,8 @@ var LabelInput = function LabelInput(props) {
66
66
  type = _a === void 0 ? 'text' : _a,
67
67
  maxLength = props.maxLength,
68
68
  _b = props.baseMinWidth,
69
- baseMinWidth = _b === void 0 ? 50 : _b;
69
+ baseMinWidth = _b === void 0 ? 50 : _b,
70
+ disabled = props.disabled;
70
71
  var labelDomRef = react_1["default"].useRef(null);
71
72
  var labelSize = (0, useSize_1["default"])(labelDomRef);
72
73
  var _c = __read(react_1["default"].useState(false), 2),
@@ -110,7 +111,8 @@ var LabelInput = function LabelInput(props) {
110
111
  }, react_1["default"].createElement("div", {
111
112
  className: (0, classnames_1["default"])('label-input-field', {
112
113
  'label-input-affix': prefix || suffix || isPasswordInput,
113
- 'label-input-focused': focused
114
+ 'label-input-focused': focused,
115
+ 'label-input-disabled': disabled
114
116
  })
115
117
  }, prefix && react_1["default"].createElement("div", {
116
118
  className: "label-input-prefix"
@@ -127,7 +129,8 @@ var LabelInput = function LabelInput(props) {
127
129
  onFocus: handleFocus,
128
130
  onBlur: handleBlur,
129
131
  onChange: handleChange,
130
- maxLength: maxLength
132
+ maxLength: maxLength,
133
+ disabled: disabled
131
134
  }), react_1["default"].createElement("label", {
132
135
  className: "label-input-text",
133
136
  onClick: handleLabelClick,
@@ -25,6 +25,9 @@
25
25
  border-radius: 8px;
26
26
  transition: border 0.3s;
27
27
  }
28
+ .label-input-field:not(.label-input-disabled):hover {
29
+ border-color: #a0a0a0;
30
+ }
28
31
  .label-input-affix {
29
32
  display: flex;
30
33
  align-items: center;
@@ -5,6 +5,7 @@
5
5
  @color_9aa5b5: #9aa5b5;
6
6
  @color_b3b3b3: #b3b3b3;
7
7
  @color_e5e5e5: #e5e5e5;
8
+ @color_a0a0a0: #a0a0a0;
8
9
 
9
10
  @font-size-base: 14px;
10
11
  @font-size-lg: @font-size-base + 2px;
@@ -39,6 +40,10 @@
39
40
  border: 1px solid @color_e5e5e5;
40
41
  border-radius: 8px;
41
42
  transition: border 0.3s;
43
+
44
+ &:not(.label-input-disabled):hover {
45
+ border-color: @color_a0a0a0;
46
+ }
42
47
  }
43
48
 
44
49
  &-affix {
@@ -89,7 +89,8 @@ var LabelNumberInput = function LabelNumberInput(props) {
89
89
  }
90
90
  }, react_1["default"].createElement("div", {
91
91
  className: (0, classnames_1["default"])('label-number-input-field', {
92
- 'label-number-input-focused': focused
92
+ 'label-number-input-focused': focused,
93
+ 'label-number-input-disabled': props.disabled
93
94
  })
94
95
  }, react_1["default"].createElement(number_input_1["default"], __assign({}, (0, omit_1["default"])(props, ['onChange', 'onBlur', 'onFocus', 'className', 'label', 'placeholder', 'baseMinWidth']), {
95
96
  ref: numberInputRef,
@@ -25,6 +25,9 @@
25
25
  border-radius: 8px;
26
26
  transition: border 0.3s;
27
27
  }
28
+ .label-number-input-warper .label-number-input-field:not(.label-number-input-disabled):hover {
29
+ border-color: #a0a0a0;
30
+ }
28
31
  .label-number-input-warper .label-number-input-focused {
29
32
  border-color: #000;
30
33
  }
@@ -3,6 +3,7 @@
3
3
  @color_263241: #263241;
4
4
  @color_9aa5b5: #9aa5b5;
5
5
  @color_e5e5e5: #e5e5e5;
6
+ @color_a0a0a0: #a0a0a0;
6
7
 
7
8
  @font-size-base: 14px;
8
9
  @font-size-lg: @font-size-base + 2px;
@@ -36,6 +37,10 @@
36
37
  border: 1px solid @color_e5e5e5;
37
38
  border-radius: 8px;
38
39
  transition: border 0.3s;
40
+
41
+ &:not(.label-number-input-disabled):hover {
42
+ border-color: @color_a0a0a0;
43
+ }
39
44
  }
40
45
 
41
46
  &-focused {
@@ -80,6 +80,7 @@ var LabelDatePicker = function LabelDatePicker(props) {
80
80
  return react_1["default"].createElement("div", {
81
81
  className: (0, classnames_1["default"])({
82
82
  'label-range-picker': true,
83
+ 'label-range-picker-disabled': props.disabled,
83
84
  'label-range-picker-label-scale': open || value
84
85
  }, className)
85
86
  }, react_1["default"].createElement(RangePicker, __assign({
@@ -1238,6 +1238,10 @@ html {
1238
1238
  position: relative;
1239
1239
  width: 220px;
1240
1240
  height: 100%;
1241
+ cursor: pointer;
1242
+ }
1243
+ .label-range-picker:not(.label-range-picker-disabled):hover .ant-picker {
1244
+ border-color: #a0a0a0;
1241
1245
  }
1242
1246
  .label-range-picker .ant-picker {
1243
1247
  height: 45px;
@@ -1274,10 +1278,14 @@ html {
1274
1278
  }
1275
1279
  .label-range-picker-text {
1276
1280
  position: absolute;
1277
- top: 12px;
1278
- left: 16px;
1281
+ top: 0;
1282
+ left: 0;
1279
1283
  z-index: 2;
1280
- height: 20px;
1284
+ display: flex;
1285
+ align-items: center;
1286
+ width: calc(100% - 12px);
1287
+ height: 100%;
1288
+ margin-left: 12px;
1281
1289
  color: #9aa5b5;
1282
1290
  font-size: 14px;
1283
1291
  line-height: 20px;
@@ -2,12 +2,20 @@
2
2
  @import '../../style/themes/default.less';
3
3
 
4
4
  @color_9aa5b5: #9aa5b5;
5
+ @color_a0a0a0: #a0a0a0;
5
6
  @font-size-base: 14px;
6
7
 
7
8
  .label-range-picker {
8
9
  position: relative;
9
10
  width: 220px;
10
11
  height: 100%;
12
+ cursor: pointer;
13
+
14
+ &:not(.label-range-picker-disabled):hover {
15
+ .@{ant-prefix}-picker {
16
+ border-color: @color_a0a0a0;
17
+ }
18
+ }
11
19
 
12
20
  .@{ant-prefix}-picker {
13
21
  height: 45px;
@@ -51,10 +59,14 @@
51
59
 
52
60
  &-text {
53
61
  position: absolute;
54
- top: 12px;
55
- left: 16px;
62
+ top: 0;
63
+ left: 0;
56
64
  z-index: 2;
57
- height: 20px;
65
+ display: flex;
66
+ align-items: center;
67
+ width: calc(100% - 12px);
68
+ height: 100%;
69
+ margin-left: 12px;
58
70
  color: @color_9aa5b5;
59
71
  font-size: @font-size-base;
60
72
  line-height: 20px;
@@ -1243,6 +1243,10 @@ html {
1243
1243
  .label-select .ant-select {
1244
1244
  width: 100%;
1245
1245
  }
1246
+ .label-select .ant-select:not(.ant-select-disabled) .ant-select-selector:hover,
1247
+ .label-select .ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-disabled) .ant-select-selector:hover {
1248
+ border-color: #a0a0a0;
1249
+ }
1246
1250
  .label-select .ant-select-multiple .ant-select-selector {
1247
1251
  height: 45px;
1248
1252
  padding: 6px 11px 7px;
@@ -5,6 +5,7 @@
5
5
  @color_9aa5b5: #9aa5b5;
6
6
  @color_e5e5e5: #e5e5e5;
7
7
  @color_7d7d7d: #7d7d7d;
8
+ @color_a0a0a0: #a0a0a0;
8
9
  @color_333: #333;
9
10
  @color_ccc: #ccc;
10
11
  @white: #fff;
@@ -20,6 +21,13 @@
20
21
  width: 100%;
21
22
  }
22
23
 
24
+ .@{ant-prefix}-select:not(.@{ant-prefix}-select-disabled),
25
+ .@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input):not(.@{ant-prefix}-select-disabled) {
26
+ .@{ant-prefix}-select-selector:hover {
27
+ border-color: @color_a0a0a0;
28
+ }
29
+ }
30
+
23
31
  .@{ant-prefix}-select-multiple {
24
32
  .@{ant-prefix}-select-selector {
25
33
  height: 45px;
@@ -44,7 +52,8 @@
44
52
  }
45
53
  }
46
54
 
47
- .@{ant-prefix}-select-multiple.@{ant-prefix}-select-lg .@{ant-prefix}-select-selection-item {
55
+ .@{ant-prefix}-select-multiple.@{ant-prefix}-select-lg
56
+ .@{ant-prefix}-select-selection-item {
48
57
  width: auto;
49
58
  height: auto;
50
59
  margin: 0 4px 4px 0;
@@ -99,7 +99,7 @@ var ReactEchartCore = function ReactEchartCore(props) {
99
99
  dispose();
100
100
  renderEchartDom();
101
101
  bindEvents();
102
- }, [theme, opts, onEvents]);
102
+ }, [theme, opts]);
103
103
  // need setOption
104
104
  (0, useUpdateEffect_1["default"])(function () {
105
105
  renderEchartDom();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.0.31",
3
+ "version": "3.0.33",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -80,5 +80,5 @@
80
80
  "node": ">=10.0.0"
81
81
  },
82
82
  "license": "MIT",
83
- "gitHead": "abc513f3fe04dc459fbe8e0d3971772ac9d5da41"
83
+ "gitHead": "6d872c04f651087e5054682a3df6936a74d4c70e"
84
84
  }