@kaiheila/ui-components 0.1.7 → 0.1.8
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 +55 -43
- package/dist/ui-components.js +1 -1
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -265,7 +265,7 @@ textarea {
|
|
|
265
265
|
.chuanyu-button.size-lg {
|
|
266
266
|
height: 40px;
|
|
267
267
|
min-width: 88px;
|
|
268
|
-
font-size:
|
|
268
|
+
font-size: 14px;
|
|
269
269
|
padding: 0 16px;
|
|
270
270
|
border-radius: 12px;
|
|
271
271
|
}
|
|
@@ -293,14 +293,18 @@ textarea {
|
|
|
293
293
|
opacity: 0.5;
|
|
294
294
|
background-color: var(--color-primary);
|
|
295
295
|
}
|
|
296
|
-
.chuanyu-button.type-primary
|
|
296
|
+
.chuanyu-button.type-simple-primary {
|
|
297
297
|
background-color: transparent;
|
|
298
298
|
color: var(--color-primary);
|
|
299
299
|
}
|
|
300
|
-
.chuanyu-button.type-primary
|
|
300
|
+
.chuanyu-button.type-simple-primary:hover {
|
|
301
301
|
background-color: var(--color-primary);
|
|
302
302
|
color: #fff;
|
|
303
303
|
}
|
|
304
|
+
.chuanyu-button.type-simple-primary:active {
|
|
305
|
+
background-color: var(--color-primary-active);
|
|
306
|
+
color: #fff;
|
|
307
|
+
}
|
|
304
308
|
.chuanyu-button.type-appprimary {
|
|
305
309
|
background-color: var(--color-primary);
|
|
306
310
|
}
|
|
@@ -890,11 +894,7 @@ textarea {
|
|
|
890
894
|
padding: 6px 32px 6px 12px;
|
|
891
895
|
border-radius: 16px;
|
|
892
896
|
border-width: 0;
|
|
893
|
-
background-color: var(--
|
|
894
|
-
}
|
|
895
|
-
.selector-contain.type-ghost:not([disabled]) .selector-select:hover {
|
|
896
|
-
background-color: var(--color-primary);
|
|
897
|
-
color: white;
|
|
897
|
+
background-color: var(--menu-background);
|
|
898
898
|
}
|
|
899
899
|
.selector-contain.simple .selector-select {
|
|
900
900
|
border: none;
|
|
@@ -1105,7 +1105,7 @@ textarea {
|
|
|
1105
1105
|
|
|
1106
1106
|
.custom-tooltip {
|
|
1107
1107
|
padding: 4px 8px;
|
|
1108
|
-
color: #
|
|
1108
|
+
color: #fff;
|
|
1109
1109
|
font-size: 14px;
|
|
1110
1110
|
line-height: 20px;
|
|
1111
1111
|
word-break: break-all;
|
|
@@ -1113,7 +1113,7 @@ textarea {
|
|
|
1113
1113
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
|
|
1114
1114
|
z-index: 100;
|
|
1115
1115
|
pointer-events: none;
|
|
1116
|
-
border-radius:
|
|
1116
|
+
border-radius: 10px;
|
|
1117
1117
|
}
|
|
1118
1118
|
.custom-tooltip.useMaxWidth {
|
|
1119
1119
|
max-width: 160px;
|
|
@@ -1133,7 +1133,7 @@ textarea {
|
|
|
1133
1133
|
body .__react_component_tooltip.type-info {
|
|
1134
1134
|
background-color: #121315;
|
|
1135
1135
|
padding: 4px 8px;
|
|
1136
|
-
color: #
|
|
1136
|
+
color: #fff;
|
|
1137
1137
|
font-size: 14px;
|
|
1138
1138
|
line-height: 20px;
|
|
1139
1139
|
word-break: break-all;
|
|
@@ -1141,7 +1141,7 @@ body .__react_component_tooltip.type-info {
|
|
|
1141
1141
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
|
|
1142
1142
|
z-index: 100;
|
|
1143
1143
|
pointer-events: none;
|
|
1144
|
-
border-radius:
|
|
1144
|
+
border-radius: 10px;
|
|
1145
1145
|
}
|
|
1146
1146
|
body .__react_component_tooltip.type-info.useMaxWidth {
|
|
1147
1147
|
max-width: 160px;
|
|
@@ -1189,7 +1189,7 @@ body .__react_component_tooltip.type-info.place-left:after {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
body .__react_component_tooltip.type-success {
|
|
1191
1191
|
padding: 4px 8px;
|
|
1192
|
-
color: #
|
|
1192
|
+
color: #fff;
|
|
1193
1193
|
font-size: 14px;
|
|
1194
1194
|
line-height: 20px;
|
|
1195
1195
|
word-break: break-all;
|
|
@@ -1197,8 +1197,8 @@ body .__react_component_tooltip.type-success {
|
|
|
1197
1197
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
|
|
1198
1198
|
z-index: 100;
|
|
1199
1199
|
pointer-events: none;
|
|
1200
|
-
border-radius:
|
|
1201
|
-
background-color: #
|
|
1200
|
+
border-radius: 10px;
|
|
1201
|
+
background-color: #64dc00;
|
|
1202
1202
|
}
|
|
1203
1203
|
body .__react_component_tooltip.type-success.useMaxWidth {
|
|
1204
1204
|
max-width: 160px;
|
|
@@ -1216,21 +1216,21 @@ body .__react_component_tooltip.type-success .user-fullname {
|
|
|
1216
1216
|
vertical-align: middle;
|
|
1217
1217
|
}
|
|
1218
1218
|
body .__react_component_tooltip.type-success.place-right:after {
|
|
1219
|
-
border-right-color: #
|
|
1219
|
+
border-right-color: #64dc00;
|
|
1220
1220
|
}
|
|
1221
1221
|
body .__react_component_tooltip.type-success.place-top:after {
|
|
1222
|
-
border-top-color: #
|
|
1222
|
+
border-top-color: #64dc00;
|
|
1223
1223
|
}
|
|
1224
1224
|
body .__react_component_tooltip.type-success.place-bottom:after {
|
|
1225
|
-
border-bottom-color: #
|
|
1225
|
+
border-bottom-color: #64dc00;
|
|
1226
1226
|
}
|
|
1227
1227
|
body .__react_component_tooltip.type-success.place-left:after {
|
|
1228
|
-
border-left-color: #
|
|
1228
|
+
border-left-color: #64dc00;
|
|
1229
1229
|
}
|
|
1230
1230
|
body .__react_component_tooltip.type-dark {
|
|
1231
1231
|
margin-top: 0;
|
|
1232
1232
|
padding: 4px 8px;
|
|
1233
|
-
border-radius:
|
|
1233
|
+
border-radius: 10px;
|
|
1234
1234
|
max-width: 136px;
|
|
1235
1235
|
max-height: 62px;
|
|
1236
1236
|
font-size: 12px;
|
|
@@ -1269,23 +1269,42 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1269
1269
|
width: 80px;
|
|
1270
1270
|
}
|
|
1271
1271
|
.ui-switch small {
|
|
1272
|
-
background-color: var(--text-tip-color);
|
|
1273
|
-
border-radius: 100%;
|
|
1274
1272
|
width: 12px;
|
|
1275
1273
|
height: 12px;
|
|
1276
1274
|
position: absolute;
|
|
1277
1275
|
top: 50%;
|
|
1278
1276
|
margin-top: -6px;
|
|
1279
1277
|
left: 2px;
|
|
1280
|
-
transition:
|
|
1278
|
+
transition: 200ms ease-out all;
|
|
1279
|
+
}
|
|
1280
|
+
.ui-switch small::before {
|
|
1281
|
+
content: '';
|
|
1282
|
+
position: absolute;
|
|
1283
|
+
left: 0;
|
|
1284
|
+
top: 0;
|
|
1285
|
+
bottom: 0;
|
|
1286
|
+
right: 0;
|
|
1287
|
+
border-radius: 6px;
|
|
1288
|
+
background-color: var(--text-tip-color);
|
|
1289
|
+
transition: 200ms ease-out all;
|
|
1281
1290
|
}
|
|
1282
1291
|
.ui-switch.checked {
|
|
1283
1292
|
border-color: var(--color-primary);
|
|
1284
1293
|
}
|
|
1285
1294
|
.ui-switch.checked small {
|
|
1286
|
-
left: 14px;
|
|
1295
|
+
left: calc(100% - 14px);
|
|
1296
|
+
}
|
|
1297
|
+
.ui-switch.checked small::before {
|
|
1287
1298
|
background-color: var(--color-primary);
|
|
1288
1299
|
}
|
|
1300
|
+
.ui-switch:active small::before {
|
|
1301
|
+
left: 0;
|
|
1302
|
+
right: -100%;
|
|
1303
|
+
}
|
|
1304
|
+
.ui-switch.checked:active small::before {
|
|
1305
|
+
right: 0;
|
|
1306
|
+
left: -100%;
|
|
1307
|
+
}
|
|
1289
1308
|
/*wider switch text moves small further to the right*/
|
|
1290
1309
|
.ui-switch.wide.checked small {
|
|
1291
1310
|
left: 52px;
|
|
@@ -1340,12 +1359,14 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1340
1359
|
display: flex;
|
|
1341
1360
|
justify-content: center;
|
|
1342
1361
|
align-items: center;
|
|
1343
|
-
border
|
|
1344
|
-
border-width: 1px;
|
|
1362
|
+
border: 1px solid var(--border-color);
|
|
1345
1363
|
}
|
|
1346
1364
|
.kaihei-auth-switch .auth-status-item .xy-iconfont {
|
|
1347
1365
|
font-size: 24px;
|
|
1348
1366
|
}
|
|
1367
|
+
.kaihei-auth-switch .auth-status-item:hover {
|
|
1368
|
+
background-color: var(--menu-hover);
|
|
1369
|
+
}
|
|
1349
1370
|
.kaihei-auth-switch .auth-status-item.close-status {
|
|
1350
1371
|
border-top-left-radius: 8px;
|
|
1351
1372
|
border-bottom-left-radius: 8px;
|
|
@@ -1369,22 +1390,12 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1369
1390
|
.kaihei-auth-switch .auth-status-item.default-status {
|
|
1370
1391
|
border-left-width: 0;
|
|
1371
1392
|
border-right-width: 0;
|
|
1372
|
-
color:
|
|
1393
|
+
color: var(--text-tip-color);
|
|
1373
1394
|
}
|
|
1374
1395
|
.kaihei-auth-switch .auth-status-item.default-status.active {
|
|
1375
1396
|
color: white;
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
border-color: #dddddd;
|
|
1379
|
-
}
|
|
1380
|
-
.theme-light .kaihei-auth-switch .auth-status-item.default-status.active {
|
|
1381
|
-
background-color: #dddddd;
|
|
1382
|
-
}
|
|
1383
|
-
.theme-dark .kaihei-auth-switch .auth-status-item {
|
|
1384
|
-
border-color: rgba(255, 255, 255, 0.38);
|
|
1385
|
-
}
|
|
1386
|
-
.theme-dark .kaihei-auth-switch .auth-status-item.default-status.active {
|
|
1387
|
-
background-color: rgba(255, 255, 255, 0.38);
|
|
1397
|
+
background-color: var(--text-tip-color);
|
|
1398
|
+
border-color: var(--text-tip-color);
|
|
1388
1399
|
}
|
|
1389
1400
|
|
|
1390
1401
|
.textarea-box {
|
|
@@ -1486,7 +1497,8 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1486
1497
|
width: 100%;
|
|
1487
1498
|
display: flex;
|
|
1488
1499
|
flex-wrap: wrap;
|
|
1489
|
-
|
|
1500
|
+
margin-top: 4px;
|
|
1501
|
+
border-radius: 12px;
|
|
1490
1502
|
background-color: var(--color-grey-bg);
|
|
1491
1503
|
box-shadow: var(--box-shadow);
|
|
1492
1504
|
overflow: hidden;
|
|
@@ -1499,7 +1511,7 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1499
1511
|
width: 100%;
|
|
1500
1512
|
text-align: center;
|
|
1501
1513
|
line-height: 40px;
|
|
1502
|
-
border-top: 1px solid var(--
|
|
1514
|
+
border-top: 1px solid var(--color-line);
|
|
1503
1515
|
cursor: pointer;
|
|
1504
1516
|
}
|
|
1505
1517
|
.time-selector-option .footer:hover {
|
|
@@ -1515,12 +1527,12 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1515
1527
|
height: 210px;
|
|
1516
1528
|
}
|
|
1517
1529
|
.time-selector-hour {
|
|
1518
|
-
border-right: 1px solid var(--
|
|
1530
|
+
border-right: 1px solid var(--color-line);
|
|
1519
1531
|
}
|
|
1520
1532
|
.time-selector-item {
|
|
1521
1533
|
height: 32px;
|
|
1522
1534
|
line-height: 32px;
|
|
1523
|
-
border-radius:
|
|
1535
|
+
border-radius: 8px;
|
|
1524
1536
|
text-align: center;
|
|
1525
1537
|
margin-bottom: 2px;
|
|
1526
1538
|
}
|
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.7\",\"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 */
|