@kaiheila/ui-components 0.0.13 → 0.1.1
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 +123 -166
- package/dist/ui-components.js +4 -96
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -229,7 +229,6 @@ textarea {
|
|
|
229
229
|
}
|
|
230
230
|
.chuanyu-button {
|
|
231
231
|
position: relative;
|
|
232
|
-
border-radius: 6px;
|
|
233
232
|
color: #ffffff;
|
|
234
233
|
text-align: center;
|
|
235
234
|
outline: none;
|
|
@@ -247,23 +246,28 @@ textarea {
|
|
|
247
246
|
min-width: 65px;
|
|
248
247
|
padding: 0 8px;
|
|
249
248
|
line-height: 24px;
|
|
249
|
+
border-radius: 8px;
|
|
250
250
|
}
|
|
251
251
|
.chuanyu-button.size-sm {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
252
|
+
height: 32px;
|
|
253
|
+
min-width: 80px;
|
|
254
|
+
font-size: 12px;
|
|
255
|
+
padding: 0 12px;
|
|
256
|
+
border-radius: 8px;
|
|
256
257
|
}
|
|
257
258
|
.chuanyu-button.size-md {
|
|
258
|
-
min-width: 81px;
|
|
259
|
-
font-size: 14px;
|
|
260
259
|
height: 36px;
|
|
260
|
+
min-width: 80px;
|
|
261
|
+
font-size: 14px;
|
|
261
262
|
padding: 0 12px;
|
|
263
|
+
border-radius: 12px;
|
|
262
264
|
}
|
|
263
265
|
.chuanyu-button.size-lg {
|
|
264
|
-
height:
|
|
266
|
+
height: 40px;
|
|
267
|
+
min-width: 88px;
|
|
265
268
|
font-size: 16px;
|
|
266
269
|
padding: 0 16px;
|
|
270
|
+
border-radius: 12px;
|
|
267
271
|
}
|
|
268
272
|
.chuanyu-button.block-button {
|
|
269
273
|
width: 100%;
|
|
@@ -277,20 +281,17 @@ textarea {
|
|
|
277
281
|
font-size: 16px;
|
|
278
282
|
}
|
|
279
283
|
.chuanyu-button.type-primary {
|
|
280
|
-
background-color: var(--color-primary
|
|
281
|
-
}
|
|
282
|
-
.chuanyu-button.type-primary.size-md {
|
|
283
|
-
height: 40px;
|
|
284
|
+
background-color: var(--color-primary);
|
|
284
285
|
}
|
|
285
286
|
.chuanyu-button.type-primary:not(.disabled):hover {
|
|
286
|
-
background-color: var(--color-primary-
|
|
287
|
+
background-color: var(--color-primary-hover);
|
|
287
288
|
}
|
|
288
|
-
.chuanyu-button.type-primary:active {
|
|
289
|
-
background-color: var(--color-primary-
|
|
289
|
+
.chuanyu-button.type-primary:not(.disabled):active {
|
|
290
|
+
background-color: var(--color-primary-active);
|
|
290
291
|
}
|
|
291
292
|
.chuanyu-button.type-primary:disabled {
|
|
292
293
|
opacity: 0.5;
|
|
293
|
-
background-color: var(--color-primary
|
|
294
|
+
background-color: var(--color-primary);
|
|
294
295
|
}
|
|
295
296
|
.chuanyu-button.type-appprimary {
|
|
296
297
|
background-color: var(--color-primary);
|
|
@@ -345,15 +346,15 @@ textarea {
|
|
|
345
346
|
background-color: var(--color-warn);
|
|
346
347
|
}
|
|
347
348
|
.chuanyu-button.type-simple {
|
|
348
|
-
background-color:
|
|
349
|
+
background-color: var(--button-simple);
|
|
349
350
|
color: var(--text-tip-color);
|
|
350
351
|
}
|
|
351
352
|
.chuanyu-button.type-simple:not(.disabled):hover {
|
|
352
|
-
background-color:
|
|
353
|
+
background-color: var(--button-simple-hover);
|
|
353
354
|
color: var(--text-description-color);
|
|
354
355
|
}
|
|
355
356
|
.chuanyu-button.type-simple:not(.disabled):active {
|
|
356
|
-
background-color:
|
|
357
|
+
background-color: var(--button-simple-active);
|
|
357
358
|
color: var(--text-description-color);
|
|
358
359
|
}
|
|
359
360
|
.chuanyu-button.type-simple:disabled {
|
|
@@ -362,13 +363,13 @@ textarea {
|
|
|
362
363
|
}
|
|
363
364
|
.chuanyu-button.type-default {
|
|
364
365
|
color: var(--text-description-color);
|
|
365
|
-
background-color:
|
|
366
|
+
background-color: var(--button-default);
|
|
366
367
|
}
|
|
367
368
|
.chuanyu-button.type-default:hover {
|
|
368
|
-
background-color:
|
|
369
|
+
background-color: var(--button-default-hover);
|
|
369
370
|
}
|
|
370
371
|
.chuanyu-button.type-default:active {
|
|
371
|
-
background-color:
|
|
372
|
+
background-color: var(--button-default-active);
|
|
372
373
|
}
|
|
373
374
|
.chuanyu-button.type-default:disabled {
|
|
374
375
|
cursor: not-allowed;
|
|
@@ -377,18 +378,14 @@ textarea {
|
|
|
377
378
|
}
|
|
378
379
|
.chuanyu-button.type-ghost {
|
|
379
380
|
color: var(--text-description-color);
|
|
380
|
-
|
|
381
|
-
border
|
|
382
|
-
border-style: solid;
|
|
381
|
+
background-color: var(--button-simple);
|
|
382
|
+
border: 1px solid var(--border-color);
|
|
383
383
|
}
|
|
384
384
|
.chuanyu-button.type-ghost:not(.disabled):hover {
|
|
385
|
-
color: var(--
|
|
386
|
-
border-color: var(--color-bbb);
|
|
387
|
-
background-color: rgba(187, 190, 196, 0.3);
|
|
385
|
+
background-color: var(--button-simple-hover);
|
|
388
386
|
}
|
|
389
387
|
.chuanyu-button.type-ghost:not(.disabled):active {
|
|
390
|
-
color: var(--
|
|
391
|
-
border-color: var(--color-bbb);
|
|
388
|
+
background-color: var(--button-simple-active);
|
|
392
389
|
}
|
|
393
390
|
.chuanyu-button.type-ghost:disabled {
|
|
394
391
|
cursor: not-allowed;
|
|
@@ -483,13 +480,14 @@ textarea {
|
|
|
483
480
|
border-radius: 2px;
|
|
484
481
|
}
|
|
485
482
|
.kaihei-checkbox.disabled {
|
|
483
|
+
opacity: 0.5;
|
|
486
484
|
cursor: not-allowed;
|
|
487
485
|
}
|
|
488
486
|
.theme-light .kaihei-checkbox.active {
|
|
489
|
-
border-color:
|
|
487
|
+
border-color: var(--color-primary);
|
|
490
488
|
}
|
|
491
489
|
.theme-light .kaihei-checkbox.active:after {
|
|
492
|
-
background-color:
|
|
490
|
+
background-color: var(--color-primary);
|
|
493
491
|
}
|
|
494
492
|
.checkbox-box {
|
|
495
493
|
display: inline-flex;
|
|
@@ -497,8 +495,8 @@ textarea {
|
|
|
497
495
|
}
|
|
498
496
|
.kaihei-checkbox-mute {
|
|
499
497
|
display: inline-block;
|
|
500
|
-
width:
|
|
501
|
-
height:
|
|
498
|
+
width: 16px;
|
|
499
|
+
height: 16px;
|
|
502
500
|
font-size: 14px;
|
|
503
501
|
line-height: 14px;
|
|
504
502
|
color: var(--text-tip-color);
|
|
@@ -525,6 +523,7 @@ textarea {
|
|
|
525
523
|
color: white;
|
|
526
524
|
}
|
|
527
525
|
.kaihei-checkbox-mute.disabled {
|
|
526
|
+
opacity: 0.5;
|
|
528
527
|
cursor: not-allowed;
|
|
529
528
|
}
|
|
530
529
|
|
|
@@ -576,15 +575,12 @@ textarea {
|
|
|
576
575
|
outline: none;
|
|
577
576
|
width: 276px;
|
|
578
577
|
height: 40px;
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
border-radius: 6px;
|
|
578
|
+
padding: 0 16px;
|
|
579
|
+
border-radius: 12px;
|
|
582
580
|
background-color: var(--color-f2f);
|
|
583
581
|
color: var(--main-color);
|
|
584
582
|
font-size: 14px;
|
|
585
|
-
border
|
|
586
|
-
border-style: solid;
|
|
587
|
-
border-color: transparent;
|
|
583
|
+
border: 1px solid transparent;
|
|
588
584
|
}
|
|
589
585
|
.chuanyu-input.ghost {
|
|
590
586
|
background-color: transparent;
|
|
@@ -600,8 +596,8 @@ textarea {
|
|
|
600
596
|
.chuanyu-input.block {
|
|
601
597
|
width: 100%;
|
|
602
598
|
}
|
|
603
|
-
.chuanyu-input
|
|
604
|
-
color:
|
|
599
|
+
.chuanyu-input::placeholder {
|
|
600
|
+
color: var(--text-tip-color);
|
|
605
601
|
}
|
|
606
602
|
.chuanyu-input:-webkit-autofill {
|
|
607
603
|
-webkit-text-fill-color: #fff !important;
|
|
@@ -637,15 +633,12 @@ textarea {
|
|
|
637
633
|
}
|
|
638
634
|
.normal-input {
|
|
639
635
|
height: 40px;
|
|
640
|
-
line-height: 14px;
|
|
641
|
-
font-size: 14px;
|
|
642
|
-
padding: 12px;
|
|
643
|
-
text-align: left;
|
|
644
|
-
border-width: 1px;
|
|
645
|
-
border-style: solid;
|
|
646
|
-
border-color: var(--border-color);
|
|
647
636
|
width: 100%;
|
|
648
|
-
|
|
637
|
+
padding: 0 16px;
|
|
638
|
+
text-align: left;
|
|
639
|
+
border: 1px solid var(--border-color);
|
|
640
|
+
border-radius: 12px;
|
|
641
|
+
font-size: 14px;
|
|
649
642
|
}
|
|
650
643
|
.normal-input.noTheme {
|
|
651
644
|
border-color: transparent;
|
|
@@ -658,9 +651,7 @@ textarea {
|
|
|
658
651
|
border-color: var(--border-hover-color);
|
|
659
652
|
box-shadow: 0 0 0 3px var(--border-active-color);
|
|
660
653
|
}
|
|
661
|
-
.normal-input::placeholder
|
|
662
|
-
.normal-input::-moz-placeholder,
|
|
663
|
-
.normal-input::-webkit-input-placeholder {
|
|
654
|
+
.normal-input::placeholder {
|
|
664
655
|
color: var(--text-tip-color);
|
|
665
656
|
}
|
|
666
657
|
.normal-input:disabled {
|
|
@@ -675,14 +666,14 @@ textarea {
|
|
|
675
666
|
height: 40px;
|
|
676
667
|
line-height: 14px;
|
|
677
668
|
font-size: 14px;
|
|
678
|
-
padding:
|
|
669
|
+
padding: 0 16px;
|
|
679
670
|
text-align: left;
|
|
680
|
-
border: 1px solid
|
|
671
|
+
border: 1px solid var(--border-color);
|
|
681
672
|
width: 100%;
|
|
682
|
-
border-radius:
|
|
673
|
+
border-radius: 12px;
|
|
683
674
|
}
|
|
684
|
-
.passowrd-input input
|
|
685
|
-
color:
|
|
675
|
+
.passowrd-input input::placeholder {
|
|
676
|
+
color: var(--text-tip-color);
|
|
686
677
|
}
|
|
687
678
|
.passowrd-input .switch-btn {
|
|
688
679
|
position: absolute;
|
|
@@ -690,17 +681,15 @@ textarea {
|
|
|
690
681
|
transform: translateY(-50%);
|
|
691
682
|
right: 12px;
|
|
692
683
|
font-size: 20px;
|
|
693
|
-
color:
|
|
684
|
+
color: var(--text-tip-color);
|
|
694
685
|
}
|
|
695
686
|
.normal-textarea {
|
|
696
687
|
height: 105px;
|
|
697
688
|
font-size: 14px;
|
|
698
|
-
|
|
699
|
-
border-style: solid;
|
|
700
|
-
padding: 12px;
|
|
689
|
+
padding: 10px 16px;
|
|
701
690
|
width: 100%;
|
|
702
691
|
outline: none;
|
|
703
|
-
border-radius:
|
|
692
|
+
border-radius: 12px;
|
|
704
693
|
border: 1px solid var(--border-color);
|
|
705
694
|
}
|
|
706
695
|
.normal-textarea:hover {
|
|
@@ -715,10 +704,13 @@ textarea {
|
|
|
715
704
|
cursor: not-allowed;
|
|
716
705
|
border-color: var(--border-color);
|
|
717
706
|
}
|
|
707
|
+
.normal-textarea::placeholder {
|
|
708
|
+
color: var(--text-tip-color);
|
|
709
|
+
}
|
|
718
710
|
.search-input {
|
|
719
711
|
position: relative;
|
|
720
712
|
display: flex;
|
|
721
|
-
border-radius:
|
|
713
|
+
border-radius: 12px;
|
|
722
714
|
line-height: 20px;
|
|
723
715
|
border: 1px solid var(--border-color);
|
|
724
716
|
font-size: 14px;
|
|
@@ -743,13 +735,16 @@ textarea {
|
|
|
743
735
|
box-shadow: 0 0 0 3px var(--border-active-color);
|
|
744
736
|
}
|
|
745
737
|
.search-input input {
|
|
746
|
-
padding: 3px 30px 3px
|
|
738
|
+
padding: 3px 30px 3px 16px;
|
|
747
739
|
width: 100%;
|
|
748
740
|
height: 100%;
|
|
749
741
|
border: none;
|
|
750
742
|
background: transparent;
|
|
751
743
|
color: var(--text-color);
|
|
752
744
|
}
|
|
745
|
+
.search-input input::placeholder {
|
|
746
|
+
color: var(--text-tip-color);
|
|
747
|
+
}
|
|
753
748
|
.search-input .button-clear,
|
|
754
749
|
.search-input .button-search {
|
|
755
750
|
right: 10px;
|
|
@@ -830,18 +825,26 @@ textarea {
|
|
|
830
825
|
}
|
|
831
826
|
|
|
832
827
|
.kaihei-radio {
|
|
833
|
-
width:
|
|
834
|
-
height:
|
|
828
|
+
width: 16px;
|
|
829
|
+
height: 16px;
|
|
835
830
|
border-radius: 50%;
|
|
836
831
|
display: inline-flex;
|
|
837
832
|
flex-shrink: 0;
|
|
838
833
|
justify-content: center;
|
|
839
834
|
align-items: center;
|
|
840
835
|
position: relative;
|
|
841
|
-
|
|
836
|
+
border: 2px solid var(--text-tip-color);
|
|
842
837
|
}
|
|
843
838
|
.kaihei-radio.checked {
|
|
844
|
-
color: var(--color-primary);
|
|
839
|
+
border-color: var(--color-primary);
|
|
840
|
+
}
|
|
841
|
+
.kaihei-radio.checked::after {
|
|
842
|
+
position: absolute;
|
|
843
|
+
content: "";
|
|
844
|
+
width: 8px;
|
|
845
|
+
height: 8px;
|
|
846
|
+
background-color: var(--color-primary);
|
|
847
|
+
border-radius: 50%;
|
|
845
848
|
}
|
|
846
849
|
.form-item-radio {
|
|
847
850
|
display: flex;
|
|
@@ -924,7 +927,7 @@ textarea {
|
|
|
924
927
|
width: 100%;
|
|
925
928
|
padding: 9px 35px 9px 16px;
|
|
926
929
|
border: 1px solid var(--border-color);
|
|
927
|
-
border-radius:
|
|
930
|
+
border-radius: 12px;
|
|
928
931
|
cursor: pointer;
|
|
929
932
|
}
|
|
930
933
|
.selector-select:hover {
|
|
@@ -964,7 +967,7 @@ textarea {
|
|
|
964
967
|
position: absolute;
|
|
965
968
|
width: 100%;
|
|
966
969
|
margin-top: 4px;
|
|
967
|
-
border-radius:
|
|
970
|
+
border-radius: 12px;
|
|
968
971
|
padding: 8px;
|
|
969
972
|
z-index: 1000;
|
|
970
973
|
max-height: 240px;
|
|
@@ -1013,8 +1016,8 @@ textarea {
|
|
|
1013
1016
|
.selector-search-select {
|
|
1014
1017
|
position: relative;
|
|
1015
1018
|
width: 100%;
|
|
1016
|
-
padding: 9px 35px
|
|
1017
|
-
border-radius:
|
|
1019
|
+
padding: 9px 35px 9px 16px;
|
|
1020
|
+
border-radius: 12px;
|
|
1018
1021
|
border: 1px solid var(--border-color);
|
|
1019
1022
|
}
|
|
1020
1023
|
.selector-search-select:hover {
|
|
@@ -1033,7 +1036,7 @@ textarea {
|
|
|
1033
1036
|
position: absolute;
|
|
1034
1037
|
top: 50%;
|
|
1035
1038
|
transform: translateY(-50%);
|
|
1036
|
-
left:
|
|
1039
|
+
left: 16px;
|
|
1037
1040
|
display: inline-block;
|
|
1038
1041
|
width: calc(100% - 44px);
|
|
1039
1042
|
white-space: nowrap;
|
|
@@ -1068,7 +1071,7 @@ textarea {
|
|
|
1068
1071
|
margin-top: 4px;
|
|
1069
1072
|
max-height: 400px;
|
|
1070
1073
|
background-color: var(--menu-background);
|
|
1071
|
-
border-radius:
|
|
1074
|
+
border-radius: 12px;
|
|
1072
1075
|
z-index: 1000;
|
|
1073
1076
|
box-shadow: var(--box-shadow);
|
|
1074
1077
|
overflow-y: auto;
|
|
@@ -1240,21 +1243,16 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1240
1243
|
}
|
|
1241
1244
|
|
|
1242
1245
|
.ui-switch {
|
|
1243
|
-
background: #e8e8e8;
|
|
1244
|
-
border: 1px solid #dfdfdf;
|
|
1245
1246
|
position: relative;
|
|
1246
1247
|
display: inline-block;
|
|
1247
|
-
box-sizing:
|
|
1248
|
+
box-sizing: border-box;
|
|
1248
1249
|
overflow: visible;
|
|
1249
|
-
width:
|
|
1250
|
-
height:
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
border-radius: 20px;
|
|
1250
|
+
width: 32px;
|
|
1251
|
+
height: 20px;
|
|
1252
|
+
border-radius: 10px;
|
|
1253
|
+
border: 2px solid var(--text-tip-color);
|
|
1254
1254
|
cursor: pointer;
|
|
1255
|
-
box-shadow: #dfdfdf 0px 0px 0px 0px inset;
|
|
1256
1255
|
transition: 0.3s ease-out all;
|
|
1257
|
-
-webkit-transition: 0.3s ease-out all;
|
|
1258
1256
|
top: -1px;
|
|
1259
1257
|
}
|
|
1260
1258
|
/*adding a wide width for larger switch text*/
|
|
@@ -1262,23 +1260,22 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1262
1260
|
width: 80px;
|
|
1263
1261
|
}
|
|
1264
1262
|
.ui-switch small {
|
|
1265
|
-
background:
|
|
1263
|
+
background-color: var(--text-tip-color);
|
|
1266
1264
|
border-radius: 100%;
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
height: 30px;
|
|
1265
|
+
width: 12px;
|
|
1266
|
+
height: 12px;
|
|
1270
1267
|
position: absolute;
|
|
1271
|
-
top:
|
|
1272
|
-
|
|
1268
|
+
top: 50%;
|
|
1269
|
+
margin-top: -6px;
|
|
1270
|
+
left: 2px;
|
|
1273
1271
|
transition: 0.3s ease-out all;
|
|
1274
|
-
-webkit-transition: 0.3s ease-out all;
|
|
1275
1272
|
}
|
|
1276
1273
|
.ui-switch.checked {
|
|
1277
|
-
background: var(--color-primary);
|
|
1278
1274
|
border-color: var(--color-primary);
|
|
1279
1275
|
}
|
|
1280
1276
|
.ui-switch.checked small {
|
|
1281
|
-
left:
|
|
1277
|
+
left: 14px;
|
|
1278
|
+
background-color: var(--color-primary);
|
|
1282
1279
|
}
|
|
1283
1280
|
/*wider switch text moves small further to the right*/
|
|
1284
1281
|
.ui-switch.wide.checked small {
|
|
@@ -1319,39 +1316,10 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1319
1316
|
}
|
|
1320
1317
|
/* Switchery sizes. */
|
|
1321
1318
|
/* Switchery size shorthand classes */
|
|
1322
|
-
.switchery-small {
|
|
1323
|
-
border-radius: 20px;
|
|
1324
|
-
height: 20px;
|
|
1325
|
-
width: 33px;
|
|
1326
|
-
}
|
|
1327
|
-
.switchery-small > small,
|
|
1328
|
-
.sm > small {
|
|
1329
|
-
height: 20px;
|
|
1330
|
-
width: 20px;
|
|
1331
|
-
}
|
|
1332
|
-
.ui-switch.switchery-small.checked small,
|
|
1333
|
-
.ui-switch.sm.checked small {
|
|
1334
|
-
left: 13px;
|
|
1335
|
-
}
|
|
1336
|
-
.switchery-large,
|
|
1337
|
-
.lg {
|
|
1338
|
-
border-radius: 40px;
|
|
1339
|
-
height: 40px;
|
|
1340
|
-
width: 66px;
|
|
1341
|
-
}
|
|
1342
|
-
.switchery-large > small,
|
|
1343
|
-
.lg > small {
|
|
1344
|
-
height: 40px;
|
|
1345
|
-
width: 40px;
|
|
1346
|
-
}
|
|
1347
|
-
.ui-switch.switchery-large.checked small,
|
|
1348
|
-
.ui-switch.lg.checked small {
|
|
1349
|
-
left: 26px;
|
|
1350
|
-
}
|
|
1351
1319
|
.kaihei-auth-switch {
|
|
1352
1320
|
display: inline-flex;
|
|
1353
|
-
width:
|
|
1354
|
-
height:
|
|
1321
|
+
width: 100px;
|
|
1322
|
+
height: 30px;
|
|
1355
1323
|
border-radius: 4px;
|
|
1356
1324
|
cursor: pointer;
|
|
1357
1325
|
}
|
|
@@ -1370,8 +1338,8 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1370
1338
|
font-size: 24px;
|
|
1371
1339
|
}
|
|
1372
1340
|
.kaihei-auth-switch .auth-status-item.close-status {
|
|
1373
|
-
border-top-left-radius:
|
|
1374
|
-
border-bottom-left-radius:
|
|
1341
|
+
border-top-left-radius: 8px;
|
|
1342
|
+
border-bottom-left-radius: 8px;
|
|
1375
1343
|
color: var(--color-error);
|
|
1376
1344
|
}
|
|
1377
1345
|
.kaihei-auth-switch .auth-status-item.close-status.active {
|
|
@@ -1380,14 +1348,14 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1380
1348
|
border-color: var(--color-error);
|
|
1381
1349
|
}
|
|
1382
1350
|
.kaihei-auth-switch .auth-status-item.open-status {
|
|
1383
|
-
border-top-right-radius:
|
|
1384
|
-
border-bottom-right-radius:
|
|
1385
|
-
color:
|
|
1351
|
+
border-top-right-radius: 8px;
|
|
1352
|
+
border-bottom-right-radius: 8px;
|
|
1353
|
+
color: var(--color-primary);
|
|
1386
1354
|
}
|
|
1387
1355
|
.kaihei-auth-switch .auth-status-item.open-status.active {
|
|
1388
1356
|
color: white;
|
|
1389
|
-
background-color:
|
|
1390
|
-
border-color:
|
|
1357
|
+
background-color: var(--color-primary);
|
|
1358
|
+
border-color: var(--color-primary);
|
|
1391
1359
|
}
|
|
1392
1360
|
.kaihei-auth-switch .auth-status-item.default-status {
|
|
1393
1361
|
border-left-width: 0;
|
|
@@ -1412,9 +1380,8 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1412
1380
|
|
|
1413
1381
|
.textarea-box {
|
|
1414
1382
|
position: relative;
|
|
1415
|
-
border
|
|
1416
|
-
border-
|
|
1417
|
-
border-radius: var(--button-radius);
|
|
1383
|
+
border: 1px solid var(--border-color);
|
|
1384
|
+
border-radius: 12px;
|
|
1418
1385
|
}
|
|
1419
1386
|
.textarea-box.show-max-length textarea {
|
|
1420
1387
|
padding-right: 24px;
|
|
@@ -1422,17 +1389,35 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1422
1389
|
.textarea-box textarea {
|
|
1423
1390
|
width: 100%;
|
|
1424
1391
|
height: 70px;
|
|
1425
|
-
padding: 8px 0 0
|
|
1392
|
+
padding: 8px 0 0 16px;
|
|
1426
1393
|
border: none;
|
|
1427
1394
|
background-color: initial;
|
|
1428
1395
|
color: inherit;
|
|
1429
1396
|
margin-top: 1px;
|
|
1430
|
-
border-radius: 6px;
|
|
1431
1397
|
line-height: 1.5;
|
|
1398
|
+
resize: none;
|
|
1432
1399
|
}
|
|
1433
1400
|
.textarea-box textarea::placeholder {
|
|
1434
1401
|
color: var(--text-tip-color);
|
|
1435
1402
|
}
|
|
1403
|
+
.textarea-box:hover:not(.disabled) {
|
|
1404
|
+
border-color: var(--border-hover-color);
|
|
1405
|
+
}
|
|
1406
|
+
.textarea-box:active {
|
|
1407
|
+
box-shadow: 0 0 3px var(--border-active-color);
|
|
1408
|
+
}
|
|
1409
|
+
.textarea-box:active:not(.disabled) {
|
|
1410
|
+
border-color: var(--border-hover-color);
|
|
1411
|
+
}
|
|
1412
|
+
.textarea-box:focus,
|
|
1413
|
+
.textarea-box.theme-focus {
|
|
1414
|
+
outline: none;
|
|
1415
|
+
border-color: var(--border-hover-color);
|
|
1416
|
+
box-shadow: 0 0 0 3px var(--border-active-color);
|
|
1417
|
+
}
|
|
1418
|
+
.textarea-box.disabled {
|
|
1419
|
+
opacity: 0.5;
|
|
1420
|
+
}
|
|
1436
1421
|
.textarea-box .footer {
|
|
1437
1422
|
font-family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
|
|
1438
1423
|
position: absolute;
|
|
@@ -1454,34 +1439,6 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1454
1439
|
.textarea-box.size-sm .footer {
|
|
1455
1440
|
bottom: 0px;
|
|
1456
1441
|
}
|
|
1457
|
-
.theme-textarea {
|
|
1458
|
-
border-radius: 6px;
|
|
1459
|
-
border-width: 1px;
|
|
1460
|
-
border-style: solid;
|
|
1461
|
-
border-color: var(--border-color);
|
|
1462
|
-
background-color: transparent;
|
|
1463
|
-
}
|
|
1464
|
-
.theme-textarea.disabled {
|
|
1465
|
-
opacity: 0.5;
|
|
1466
|
-
}
|
|
1467
|
-
.theme-dark .theme-textarea {
|
|
1468
|
-
background-color: transparent;
|
|
1469
|
-
}
|
|
1470
|
-
.theme-textarea:hover:not(.disabled) {
|
|
1471
|
-
border-color: var(--border-hover-color);
|
|
1472
|
-
}
|
|
1473
|
-
.theme-textarea:focus,
|
|
1474
|
-
.theme-textarea.theme-focus {
|
|
1475
|
-
outline: none;
|
|
1476
|
-
border-color: var(--border-hover-color);
|
|
1477
|
-
box-shadow: 0 0 0 3px var(--border-active-color);
|
|
1478
|
-
}
|
|
1479
|
-
.theme-textarea:active {
|
|
1480
|
-
box-shadow: 0 0 3px var(--border-active-color);
|
|
1481
|
-
}
|
|
1482
|
-
.theme-textarea:active:not(.disabled) {
|
|
1483
|
-
border-color: var(--border-hover-color);
|
|
1484
|
-
}
|
|
1485
1442
|
|
|
1486
1443
|
.time-selector-select {
|
|
1487
1444
|
position: relative;
|
|
@@ -1489,7 +1446,7 @@ body .__react_component_tooltip.type-dark.place-right:after {
|
|
|
1489
1446
|
padding: 0 48px 0 16px;
|
|
1490
1447
|
line-height: 40px;
|
|
1491
1448
|
border: 1px solid var(--border-color);
|
|
1492
|
-
border-radius:
|
|
1449
|
+
border-radius: 12px;
|
|
1493
1450
|
font-size: 16px;
|
|
1494
1451
|
color: var(--text-color);
|
|
1495
1452
|
}
|
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.
|
|
2806
|
+
module.exports = JSON.parse("{\"name\":\"@kaiheila/ui-components\",\"version\":\"0.1.1\",\"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 */
|
|
@@ -5099,53 +5099,7 @@ var radio_Radio = /*#__PURE__*/function (_Component) {
|
|
|
5099
5099
|
onClick: function onClick() {
|
|
5100
5100
|
return _this2.handleClick();
|
|
5101
5101
|
}
|
|
5102
|
-
}
|
|
5103
|
-
width: "14px",
|
|
5104
|
-
height: "14px",
|
|
5105
|
-
viewBox: "0 0 14 14",
|
|
5106
|
-
version: "1.1",
|
|
5107
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5108
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5109
|
-
id: "10\u6708",
|
|
5110
|
-
stroke: "none",
|
|
5111
|
-
strokeWidth: "1",
|
|
5112
|
-
fill: "none",
|
|
5113
|
-
fillRule: "evenodd"
|
|
5114
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5115
|
-
id: "\u5355\u9009\u63A7\u4EF6",
|
|
5116
|
-
transform: "translate(-443.000000, -178.000000)",
|
|
5117
|
-
fill: "currentColor",
|
|
5118
|
-
fillRule: "nonzero"
|
|
5119
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5120
|
-
id: "\u7F16\u7EC4",
|
|
5121
|
-
transform: "translate(140.000000, 113.000000)"
|
|
5122
|
-
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
5123
|
-
d: "M310,65 C313.865993,65 317,68.1340068 317,72 C317,75.8659932 313.865993,79 310,79 C306.134007,79 303,75.8659932 303,72 C303,68.1340068 306.134007,65 310,65 Z M310,66.5 C306.962434,66.5 304.5,68.9624339 304.5,72 C304.5,75.0375661 306.962434,77.5 310,77.5 C313.037566,77.5 315.5,75.0375661 315.5,72 C315.5,68.9624339 313.037566,66.5 310,66.5 Z M310,68 C312.209139,68 314,69.790861 314,72 C314,74.209139 312.209139,76 310,76 C307.790861,76 306,74.209139 306,72 C306,69.790861 307.790861,68 310,68 Z",
|
|
5124
|
-
id: "\u5355\u9009\u9009\u4E2D"
|
|
5125
|
-
}))))) : /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
5126
|
-
width: "14px",
|
|
5127
|
-
height: "14px",
|
|
5128
|
-
viewBox: "0 0 14 14",
|
|
5129
|
-
version: "1.1",
|
|
5130
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5131
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5132
|
-
id: "10\u6708",
|
|
5133
|
-
stroke: "none",
|
|
5134
|
-
strokeWidth: "1",
|
|
5135
|
-
fill: "none",
|
|
5136
|
-
fillRule: "evenodd"
|
|
5137
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5138
|
-
id: "\u5355\u9009\u63A7\u4EF6",
|
|
5139
|
-
transform: "translate(-365.000000, -178.000000)",
|
|
5140
|
-
fill: "currentColor",
|
|
5141
|
-
fillRule: "nonzero"
|
|
5142
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5143
|
-
id: "\u7F16\u7EC4",
|
|
5144
|
-
transform: "translate(140.000000, 113.000000)"
|
|
5145
|
-
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
5146
|
-
d: "M232,65 C235.865993,65 239,68.1340068 239,72 C239,75.8659932 235.865993,79 232,79 C228.134007,79 225,75.8659932 225,72 C225,68.1340068 228.134007,65 232,65 Z M232,66.5 C228.962434,66.5 226.5,68.9624339 226.5,72 C226.5,75.0375661 228.962434,77.5 232,77.5 C235.037566,77.5 237.5,75.0375661 237.5,72 C237.5,68.9624339 235.037566,66.5 232,66.5 Z",
|
|
5147
|
-
id: "\u5355\u9009\u9ED8\u8BA4"
|
|
5148
|
-
}))))));
|
|
5102
|
+
});
|
|
5149
5103
|
}
|
|
5150
5104
|
}]);
|
|
5151
5105
|
|
|
@@ -5211,53 +5165,7 @@ var radio_RadioForm = /*#__PURE__*/function (_Component2) {
|
|
|
5211
5165
|
className: external_classnames_default()('kaihei-radio', className, {
|
|
5212
5166
|
'checked': is_checked
|
|
5213
5167
|
})
|
|
5214
|
-
},
|
|
5215
|
-
width: "14px",
|
|
5216
|
-
height: "14px",
|
|
5217
|
-
viewBox: "0 0 14 14",
|
|
5218
|
-
version: "1.1",
|
|
5219
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5220
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5221
|
-
id: "10\u6708",
|
|
5222
|
-
stroke: "none",
|
|
5223
|
-
strokeWidth: "1",
|
|
5224
|
-
fill: "none",
|
|
5225
|
-
fillRule: "evenodd"
|
|
5226
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5227
|
-
id: "\u5355\u9009\u63A7\u4EF6",
|
|
5228
|
-
transform: "translate(-443.000000, -178.000000)",
|
|
5229
|
-
fill: "currentColor",
|
|
5230
|
-
fillRule: "nonzero"
|
|
5231
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5232
|
-
id: "\u7F16\u7EC4",
|
|
5233
|
-
transform: "translate(140.000000, 113.000000)"
|
|
5234
|
-
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
5235
|
-
d: "M310,65 C313.865993,65 317,68.1340068 317,72 C317,75.8659932 313.865993,79 310,79 C306.134007,79 303,75.8659932 303,72 C303,68.1340068 306.134007,65 310,65 Z M310,66.5 C306.962434,66.5 304.5,68.9624339 304.5,72 C304.5,75.0375661 306.962434,77.5 310,77.5 C313.037566,77.5 315.5,75.0375661 315.5,72 C315.5,68.9624339 313.037566,66.5 310,66.5 Z M310,68 C312.209139,68 314,69.790861 314,72 C314,74.209139 312.209139,76 310,76 C307.790861,76 306,74.209139 306,72 C306,69.790861 307.790861,68 310,68 Z",
|
|
5236
|
-
id: "\u5355\u9009\u9009\u4E2D"
|
|
5237
|
-
}))))) : /*#__PURE__*/external_react_default.a.createElement("svg", {
|
|
5238
|
-
width: "14px",
|
|
5239
|
-
height: "14px",
|
|
5240
|
-
viewBox: "0 0 14 14",
|
|
5241
|
-
version: "1.1",
|
|
5242
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5243
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5244
|
-
id: "10\u6708",
|
|
5245
|
-
stroke: "none",
|
|
5246
|
-
strokeWidth: "1",
|
|
5247
|
-
fill: "none",
|
|
5248
|
-
fillRule: "evenodd"
|
|
5249
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5250
|
-
id: "\u5355\u9009\u63A7\u4EF6",
|
|
5251
|
-
transform: "translate(-365.000000, -178.000000)",
|
|
5252
|
-
fill: "currentColor",
|
|
5253
|
-
fillRule: "nonzero"
|
|
5254
|
-
}, /*#__PURE__*/external_react_default.a.createElement("g", {
|
|
5255
|
-
id: "\u7F16\u7EC4",
|
|
5256
|
-
transform: "translate(140.000000, 113.000000)"
|
|
5257
|
-
}, /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
5258
|
-
d: "M232,65 C235.865993,65 239,68.1340068 239,72 C239,75.8659932 235.865993,79 232,79 C228.134007,79 225,75.8659932 225,72 C225,68.1340068 228.134007,65 232,65 Z M232,66.5 C228.962434,66.5 226.5,68.9624339 226.5,72 C226.5,75.0375661 228.962434,77.5 232,77.5 C235.037566,77.5 237.5,75.0375661 237.5,72 C237.5,68.9624339 235.037566,66.5 232,66.5 Z",
|
|
5259
|
-
id: "\u5355\u9009\u9ED8\u8BA4"
|
|
5260
|
-
})))))), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
5168
|
+
}), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
5261
5169
|
className: "label"
|
|
5262
5170
|
}, item.label));
|
|
5263
5171
|
}));
|
|
@@ -6786,7 +6694,7 @@ var textarea_Textarea = /*#__PURE__*/function (_Component) {
|
|
|
6786
6694
|
value = _this$state$value === void 0 ? '' : _this$state$value;
|
|
6787
6695
|
var length = (this.props.maxLength || this.maxLength) - value.length;
|
|
6788
6696
|
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
6789
|
-
className: external_classnames_default()('textarea-box
|
|
6697
|
+
className: external_classnames_default()('textarea-box', className, size ? "size-".concat(size) : '', {
|
|
6790
6698
|
'theme-focus': themeFocus && focus,
|
|
6791
6699
|
disabled: disabled,
|
|
6792
6700
|
'show-max-length': showMaxLength
|