assui 3.0.55 → 3.0.57

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.
@@ -96,10 +96,11 @@ var LabelDatePicker = function LabelDatePicker(props) {
96
96
  className: classNames({
97
97
  'label-range-number': true,
98
98
  'label-range-number-disabled': disabled,
99
+ 'label-range-number-focused': focus,
99
100
  'label-range-number-label-scale': focus || resultValue.endInterval || resultValue.startInterval
100
101
  }, className)
101
102
  }, /*#__PURE__*/React.createElement("div", {
102
- className: "a-number a-number-range a-number-focused",
103
+ className: "a-number a-number-range",
103
104
  "aria-required": "true"
104
105
  }, /*#__PURE__*/React.createElement("div", {
105
106
  className: "a-number-input"
@@ -1236,17 +1236,26 @@ html {
1236
1236
  }
1237
1237
  .label-range-number {
1238
1238
  position: relative;
1239
- width: 320px;
1240
- height: 100%;
1239
+ width: 220px;
1240
+ height: 45px;
1241
+ background-color: #fff;
1242
+ border: 1px solid #e5e5e5;
1243
+ border-radius: 8px;
1241
1244
  cursor: pointer;
1245
+ transition: all 0.2s ease-out;
1246
+ }
1247
+ .label-range-number:hover {
1248
+ border: 1px solid #a0a0a0;
1249
+ }
1250
+ .label-range-number-focused {
1251
+ border-color: #000;
1252
+ box-shadow: none;
1242
1253
  }
1243
1254
  .label-range-number .a-number {
1244
1255
  position: relative;
1245
1256
  display: inline-flex;
1246
1257
  height: 45px;
1247
1258
  padding-left: 12px;
1248
- border: 1px solid #e5e5e5;
1249
- border-radius: 8px;
1250
1259
  outline: none;
1251
1260
  }
1252
1261
  .label-range-number .a-number-input input {
@@ -1256,10 +1265,6 @@ html {
1256
1265
  align-items: center;
1257
1266
  width: 100%;
1258
1267
  }
1259
- .label-range-number .a-number-focused {
1260
- border-color: #000;
1261
- box-shadow: none;
1262
- }
1263
1268
  .label-range-number .a-number-range-separator {
1264
1269
  position: relative;
1265
1270
  top: 18px;
@@ -1276,7 +1281,7 @@ html {
1276
1281
  }
1277
1282
  .label-range-number-text {
1278
1283
  position: absolute;
1279
- top: 0;
1284
+ top: 1px;
1280
1285
  left: 0;
1281
1286
  z-index: 2;
1282
1287
  display: flex;
@@ -1284,7 +1289,8 @@ html {
1284
1289
  width: calc(100% - 12px);
1285
1290
  height: 100%;
1286
1291
  margin-left: 12px;
1287
- color: #9aa5b5;
1292
+ color: #9e9e9e;
1293
+ font-weight: 400;
1288
1294
  font-size: 14px;
1289
1295
  line-height: 20px;
1290
1296
  transform-origin: top left;
@@ -1,23 +1,34 @@
1
1
  @import '~antd/lib/style/index.less';
2
2
  @import '../../style/themes/default.less';
3
3
 
4
- @color_9aa5b5: #9aa5b5;
4
+ @color_9aa5b5: #9e9e9e;
5
5
  @color_a0a0a0: #a0a0a0;
6
6
  @font-size-base: 14px;
7
7
 
8
8
  .label-range-number {
9
9
  position: relative;
10
- width: 320px;
11
- height: 100%;
10
+ width: 220px;
11
+ height: 45px;
12
+ background-color: #fff;
13
+ border: 1px solid #e5e5e5;
14
+ border-radius: 8px;
12
15
  cursor: pointer;
16
+ transition: all 0.2s ease-out;
17
+
18
+ &:hover {
19
+ border: 1px solid #a0a0a0;
20
+ }
21
+
22
+ &-focused {
23
+ border-color: #000;
24
+ box-shadow: none;
25
+ }
13
26
 
14
27
  .a-number {
15
28
  position: relative;
16
29
  display: inline-flex;
17
30
  height: 45px;
18
31
  padding-left: 12px;
19
- border: 1px solid #e5e5e5;
20
- border-radius: 8px;
21
32
  outline: none;
22
33
 
23
34
  &-input input {
@@ -28,11 +39,6 @@
28
39
  width: 100%;
29
40
  }
30
41
 
31
- &-focused {
32
- border-color: @labelFocusBorderColor;
33
- box-shadow: none;
34
- }
35
-
36
42
  &-range-separator {
37
43
  position: relative;
38
44
  top: 18px;
@@ -53,7 +59,7 @@
53
59
 
54
60
  &-text {
55
61
  position: absolute;
56
- top: 0;
62
+ top: 1px;
57
63
  left: 0;
58
64
  z-index: 2;
59
65
  display: flex;
@@ -62,6 +68,7 @@
62
68
  height: 100%;
63
69
  margin-left: 12px;
64
70
  color: @color_9aa5b5;
71
+ font-weight: 400;
65
72
  font-size: @font-size-base;
66
73
  line-height: 20px;
67
74
  transform-origin: top left;
@@ -106,10 +106,11 @@ var LabelDatePicker = function LabelDatePicker(props) {
106
106
  className: (0, classnames_1["default"])({
107
107
  'label-range-number': true,
108
108
  'label-range-number-disabled': disabled,
109
+ 'label-range-number-focused': focus,
109
110
  'label-range-number-label-scale': focus || resultValue.endInterval || resultValue.startInterval
110
111
  }, className)
111
112
  }, react_1["default"].createElement("div", {
112
- className: "a-number a-number-range a-number-focused",
113
+ className: "a-number a-number-range",
113
114
  "aria-required": "true"
114
115
  }, react_1["default"].createElement("div", {
115
116
  className: "a-number-input"
@@ -1236,17 +1236,26 @@ html {
1236
1236
  }
1237
1237
  .label-range-number {
1238
1238
  position: relative;
1239
- width: 320px;
1240
- height: 100%;
1239
+ width: 220px;
1240
+ height: 45px;
1241
+ background-color: #fff;
1242
+ border: 1px solid #e5e5e5;
1243
+ border-radius: 8px;
1241
1244
  cursor: pointer;
1245
+ transition: all 0.2s ease-out;
1246
+ }
1247
+ .label-range-number:hover {
1248
+ border: 1px solid #a0a0a0;
1249
+ }
1250
+ .label-range-number-focused {
1251
+ border-color: #000;
1252
+ box-shadow: none;
1242
1253
  }
1243
1254
  .label-range-number .a-number {
1244
1255
  position: relative;
1245
1256
  display: inline-flex;
1246
1257
  height: 45px;
1247
1258
  padding-left: 12px;
1248
- border: 1px solid #e5e5e5;
1249
- border-radius: 8px;
1250
1259
  outline: none;
1251
1260
  }
1252
1261
  .label-range-number .a-number-input input {
@@ -1256,10 +1265,6 @@ html {
1256
1265
  align-items: center;
1257
1266
  width: 100%;
1258
1267
  }
1259
- .label-range-number .a-number-focused {
1260
- border-color: #000;
1261
- box-shadow: none;
1262
- }
1263
1268
  .label-range-number .a-number-range-separator {
1264
1269
  position: relative;
1265
1270
  top: 18px;
@@ -1276,7 +1281,7 @@ html {
1276
1281
  }
1277
1282
  .label-range-number-text {
1278
1283
  position: absolute;
1279
- top: 0;
1284
+ top: 1px;
1280
1285
  left: 0;
1281
1286
  z-index: 2;
1282
1287
  display: flex;
@@ -1284,7 +1289,8 @@ html {
1284
1289
  width: calc(100% - 12px);
1285
1290
  height: 100%;
1286
1291
  margin-left: 12px;
1287
- color: #9aa5b5;
1292
+ color: #9e9e9e;
1293
+ font-weight: 400;
1288
1294
  font-size: 14px;
1289
1295
  line-height: 20px;
1290
1296
  transform-origin: top left;
@@ -1,23 +1,34 @@
1
1
  @import '~antd/lib/style/index.less';
2
2
  @import '../../style/themes/default.less';
3
3
 
4
- @color_9aa5b5: #9aa5b5;
4
+ @color_9aa5b5: #9e9e9e;
5
5
  @color_a0a0a0: #a0a0a0;
6
6
  @font-size-base: 14px;
7
7
 
8
8
  .label-range-number {
9
9
  position: relative;
10
- width: 320px;
11
- height: 100%;
10
+ width: 220px;
11
+ height: 45px;
12
+ background-color: #fff;
13
+ border: 1px solid #e5e5e5;
14
+ border-radius: 8px;
12
15
  cursor: pointer;
16
+ transition: all 0.2s ease-out;
17
+
18
+ &:hover {
19
+ border: 1px solid #a0a0a0;
20
+ }
21
+
22
+ &-focused {
23
+ border-color: #000;
24
+ box-shadow: none;
25
+ }
13
26
 
14
27
  .a-number {
15
28
  position: relative;
16
29
  display: inline-flex;
17
30
  height: 45px;
18
31
  padding-left: 12px;
19
- border: 1px solid #e5e5e5;
20
- border-radius: 8px;
21
32
  outline: none;
22
33
 
23
34
  &-input input {
@@ -28,11 +39,6 @@
28
39
  width: 100%;
29
40
  }
30
41
 
31
- &-focused {
32
- border-color: @labelFocusBorderColor;
33
- box-shadow: none;
34
- }
35
-
36
42
  &-range-separator {
37
43
  position: relative;
38
44
  top: 18px;
@@ -53,7 +59,7 @@
53
59
 
54
60
  &-text {
55
61
  position: absolute;
56
- top: 0;
62
+ top: 1px;
57
63
  left: 0;
58
64
  z-index: 2;
59
65
  display: flex;
@@ -62,6 +68,7 @@
62
68
  height: 100%;
63
69
  margin-left: 12px;
64
70
  color: @color_9aa5b5;
71
+ font-weight: 400;
65
72
  font-size: @font-size-base;
66
73
  line-height: 20px;
67
74
  transform-origin: top left;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.0.55",
3
+ "version": "3.0.57",
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": "717e33f539830caeaf4c076969c7dac014ca80a4"
83
+ "gitHead": "e7f0948db7adebe1875fb6490a552bda0f6a80d3"
84
84
  }