@zjpcy/simple-design 1.5.4 → 1.5.6
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/cjs/index.css +48 -92
- package/dist/cjs/index.js +1 -1
- package/dist/es/Button/Button.js +1 -1
- package/dist/es/Label/styles.js +1 -1
- package/dist/es/Modal/index.js +1 -1
- package/dist/es/index.css +48 -92
- package/dist/types/components/Button/Button.d.ts +3 -1
- package/dist/types/components/Modal/types.d.ts +2 -0
- package/dist/variables.css +2 -2
- package/package.json +1 -1
package/dist/cjs/index.css
CHANGED
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
-moz-user-select: none;
|
|
305
305
|
user-select: none;
|
|
306
306
|
border: none;
|
|
307
|
-
border-radius:
|
|
307
|
+
border-radius: 4px;
|
|
308
308
|
transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);
|
|
309
309
|
outline: none;
|
|
310
310
|
position: relative;
|
|
@@ -343,18 +343,18 @@
|
|
|
343
343
|
Primary 主题 - 主色调
|
|
344
344
|
============================================ */
|
|
345
345
|
.zjpcy-btn--primary {
|
|
346
|
-
background:
|
|
346
|
+
background: var(--zjpcy-button-primary-bg);
|
|
347
347
|
color: var(--zjpcy-button-text-white);
|
|
348
348
|
box-shadow: var(--zjpcy-shadow-sm);
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
.zjpcy-btn--primary:hover:not(.zjpcy-btn--disabled) {
|
|
352
|
-
background:
|
|
352
|
+
background: var(--zjpcy-primary-hover-color);
|
|
353
353
|
box-shadow: var(--zjpcy-shadow-md);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
.zjpcy-btn--primary:active:not(.zjpcy-btn--disabled) {
|
|
357
|
-
background:
|
|
357
|
+
background: #096dd9;
|
|
358
358
|
box-shadow: var(--zjpcy-shadow-extra-light);
|
|
359
359
|
transform: translateY(0);
|
|
360
360
|
}
|
|
@@ -864,8 +864,8 @@
|
|
|
864
864
|
text-align: center;
|
|
865
865
|
background: rgba(0, 0, 0, 0.55);
|
|
866
866
|
border-radius: var(--zjpcy-border-radius-lg);
|
|
867
|
-
backdrop-filter: blur(
|
|
868
|
-
-webkit-backdrop-filter: blur(
|
|
867
|
+
backdrop-filter: blur(2px);
|
|
868
|
+
-webkit-backdrop-filter: blur(2px);
|
|
869
869
|
}
|
|
870
870
|
|
|
871
871
|
.zjpcy-carousel__title {
|
|
@@ -1118,8 +1118,8 @@
|
|
|
1118
1118
|
display: flex;
|
|
1119
1119
|
align-items: center;
|
|
1120
1120
|
gap: 4px;
|
|
1121
|
-
backdrop-filter: blur(
|
|
1122
|
-
-webkit-backdrop-filter: blur(
|
|
1121
|
+
backdrop-filter: blur(2px);
|
|
1122
|
+
-webkit-backdrop-filter: blur(2px);
|
|
1123
1123
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
1124
1124
|
box-shadow: var(--zjpcy-shadow-sm);
|
|
1125
1125
|
letter-spacing: 0.5px;
|
|
@@ -3392,8 +3392,8 @@
|
|
|
3392
3392
|
opacity: 0;
|
|
3393
3393
|
transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);
|
|
3394
3394
|
pointer-events: auto;
|
|
3395
|
-
backdrop-filter: blur(
|
|
3396
|
-
-webkit-backdrop-filter: blur(
|
|
3395
|
+
backdrop-filter: blur(2px);
|
|
3396
|
+
-webkit-backdrop-filter: blur(2px);
|
|
3397
3397
|
}
|
|
3398
3398
|
|
|
3399
3399
|
/* 显示状态 */
|
|
@@ -3552,7 +3552,7 @@
|
|
|
3552
3552
|
justify-content: center;
|
|
3553
3553
|
z-index: var(--zjpcy-z-index-modal);
|
|
3554
3554
|
pointer-events: none;
|
|
3555
|
-
transition: background-color 0.
|
|
3555
|
+
transition: background-color 0.25s ease-out;
|
|
3556
3556
|
}
|
|
3557
3557
|
|
|
3558
3558
|
.zjpcy-modal-overlay--visible {
|
|
@@ -3626,17 +3626,12 @@
|
|
|
3626
3626
|
|
|
3627
3627
|
/* 中心动画 */
|
|
3628
3628
|
.zjpcy-modal-container--center {
|
|
3629
|
-
animation: centerAnimateIn 0.
|
|
3630
|
-
}
|
|
3631
|
-
|
|
3632
|
-
/* 中心动画(设置了top) - 从指定top位置的垂直中心开始 */
|
|
3633
|
-
.zjpcy-modal-container--center-top {
|
|
3634
|
-
animation: centerTopAnimateIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
|
|
3629
|
+
animation: centerAnimateIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
3635
3630
|
}
|
|
3636
3631
|
|
|
3637
3632
|
@keyframes centerAnimateIn {
|
|
3638
3633
|
from {
|
|
3639
|
-
transform: scale(0.
|
|
3634
|
+
transform: scale(0.85);
|
|
3640
3635
|
opacity: 0;
|
|
3641
3636
|
}
|
|
3642
3637
|
to {
|
|
@@ -3645,25 +3640,14 @@
|
|
|
3645
3640
|
}
|
|
3646
3641
|
}
|
|
3647
3642
|
|
|
3648
|
-
|
|
3649
|
-
from {
|
|
3650
|
-
transform: translate(var(--zjpcy-modal-origin-x, 0), var(--zjpcy-modal-origin-y, 0)) scale(0.95);
|
|
3651
|
-
opacity: 0;
|
|
3652
|
-
}
|
|
3653
|
-
to {
|
|
3654
|
-
transform: translate(0, 0) scale(1);
|
|
3655
|
-
opacity: 1;
|
|
3656
|
-
}
|
|
3657
|
-
}
|
|
3658
|
-
|
|
3659
|
-
/* 正常动画(从点击位置缓慢过渡) */
|
|
3643
|
+
/* 正常动画(从触发器位置缓慢过渡到中心) */
|
|
3660
3644
|
.zjpcy-modal-container--normal {
|
|
3661
|
-
animation: normalAnimateIn 0.
|
|
3645
|
+
animation: normalAnimateIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
3662
3646
|
}
|
|
3663
3647
|
|
|
3664
3648
|
@keyframes normalAnimateIn {
|
|
3665
3649
|
from {
|
|
3666
|
-
transform: translate(var(--zjpcy-modal-origin-x, 0), var(--zjpcy-modal-origin-y, 0)) scale(0.
|
|
3650
|
+
transform: translate(var(--zjpcy-modal-origin-x, 0), var(--zjpcy-modal-origin-y, 0)) scale(0.5);
|
|
3667
3651
|
opacity: 0;
|
|
3668
3652
|
}
|
|
3669
3653
|
to {
|
|
@@ -3672,14 +3656,14 @@
|
|
|
3672
3656
|
}
|
|
3673
3657
|
}
|
|
3674
3658
|
|
|
3675
|
-
/* 右上角动画 */
|
|
3659
|
+
/* 右上角动画 - 从浏览器右上角滑入 */
|
|
3676
3660
|
.zjpcy-modal-container--top-right {
|
|
3677
|
-
animation: topRightAnimateIn 0.
|
|
3661
|
+
animation: topRightAnimateIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
3678
3662
|
}
|
|
3679
3663
|
|
|
3680
3664
|
@keyframes topRightAnimateIn {
|
|
3681
3665
|
from {
|
|
3682
|
-
transform: translate(
|
|
3666
|
+
transform: translate(var(--zjpcy-modal-offset-x, 50vw), var(--zjpcy-modal-offset-y, -50vh)) scale(0.5);
|
|
3683
3667
|
opacity: 0;
|
|
3684
3668
|
}
|
|
3685
3669
|
to {
|
|
@@ -3688,14 +3672,14 @@
|
|
|
3688
3672
|
}
|
|
3689
3673
|
}
|
|
3690
3674
|
|
|
3691
|
-
/* 右下角动画 */
|
|
3675
|
+
/* 右下角动画 - 从浏览器右下角滑入 */
|
|
3692
3676
|
.zjpcy-modal-container--bottom-right {
|
|
3693
|
-
animation: bottomRightAnimateIn 0.
|
|
3677
|
+
animation: bottomRightAnimateIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
3694
3678
|
}
|
|
3695
3679
|
|
|
3696
3680
|
@keyframes bottomRightAnimateIn {
|
|
3697
3681
|
from {
|
|
3698
|
-
transform: translate(
|
|
3682
|
+
transform: translate(var(--zjpcy-modal-offset-x, 50vw), var(--zjpcy-modal-offset-y, 50vh)) scale(0.5);
|
|
3699
3683
|
opacity: 0;
|
|
3700
3684
|
}
|
|
3701
3685
|
to {
|
|
@@ -3704,14 +3688,14 @@
|
|
|
3704
3688
|
}
|
|
3705
3689
|
}
|
|
3706
3690
|
|
|
3707
|
-
/* 左下角动画 */
|
|
3691
|
+
/* 左下角动画 - 从浏览器左下角滑入 */
|
|
3708
3692
|
.zjpcy-modal-container--bottom-left {
|
|
3709
|
-
animation: bottomLeftAnimateIn 0.
|
|
3693
|
+
animation: bottomLeftAnimateIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
3710
3694
|
}
|
|
3711
3695
|
|
|
3712
3696
|
@keyframes bottomLeftAnimateIn {
|
|
3713
3697
|
from {
|
|
3714
|
-
transform: translate(
|
|
3698
|
+
transform: translate(var(--zjpcy-modal-offset-x, -50vw), var(--zjpcy-modal-offset-y, 50vh)) scale(0.5);
|
|
3715
3699
|
opacity: 0;
|
|
3716
3700
|
}
|
|
3717
3701
|
to {
|
|
@@ -3726,12 +3710,7 @@
|
|
|
3726
3710
|
|
|
3727
3711
|
/* 中心消失 */
|
|
3728
3712
|
.zjpcy-modal-container--closing-center {
|
|
3729
|
-
animation: centerAnimateOut 0.
|
|
3730
|
-
}
|
|
3731
|
-
|
|
3732
|
-
/* 中心消失(设置了top) */
|
|
3733
|
-
.zjpcy-modal-container--closing-center-top {
|
|
3734
|
-
animation: centerTopAnimateOut 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
|
|
3713
|
+
animation: centerAnimateOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
|
|
3735
3714
|
}
|
|
3736
3715
|
|
|
3737
3716
|
@keyframes centerAnimateOut {
|
|
@@ -3740,25 +3719,14 @@
|
|
|
3740
3719
|
opacity: 1;
|
|
3741
3720
|
}
|
|
3742
3721
|
to {
|
|
3743
|
-
transform: scale(0.
|
|
3744
|
-
opacity: 0;
|
|
3745
|
-
}
|
|
3746
|
-
}
|
|
3747
|
-
|
|
3748
|
-
@keyframes centerTopAnimateOut {
|
|
3749
|
-
from {
|
|
3750
|
-
transform: translate(0, 0) scale(1);
|
|
3751
|
-
opacity: 1;
|
|
3752
|
-
}
|
|
3753
|
-
to {
|
|
3754
|
-
transform: translate(var(--zjpcy-modal-origin-x, 0), var(--zjpcy-modal-origin-y, 0)) scale(0.85);
|
|
3722
|
+
transform: scale(0.85);
|
|
3755
3723
|
opacity: 0;
|
|
3756
3724
|
}
|
|
3757
3725
|
}
|
|
3758
3726
|
|
|
3759
|
-
/*
|
|
3727
|
+
/* 正常消失(回到触发器位置缓慢消失) */
|
|
3760
3728
|
.zjpcy-modal-container--closing-normal {
|
|
3761
|
-
animation: normalAnimateOut 0.
|
|
3729
|
+
animation: normalAnimateOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
|
|
3762
3730
|
}
|
|
3763
3731
|
|
|
3764
3732
|
@keyframes normalAnimateOut {
|
|
@@ -3767,67 +3735,55 @@
|
|
|
3767
3735
|
opacity: 1;
|
|
3768
3736
|
}
|
|
3769
3737
|
to {
|
|
3770
|
-
transform: translate(var(--zjpcy-modal-origin-x, 0), var(--zjpcy-modal-origin-y, 0)) scale(0.
|
|
3738
|
+
transform: translate(var(--zjpcy-modal-origin-x, 0), var(--zjpcy-modal-origin-y, 0)) scale(0.5);
|
|
3771
3739
|
opacity: 0;
|
|
3772
3740
|
}
|
|
3773
3741
|
}
|
|
3774
3742
|
|
|
3775
|
-
/* 右上角消失 */
|
|
3743
|
+
/* 右上角消失 - 回到浏览器右上角 */
|
|
3776
3744
|
.zjpcy-modal-container--closing-top-right {
|
|
3777
|
-
animation: topRightAnimateOut 0.
|
|
3745
|
+
animation: topRightAnimateOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
|
|
3778
3746
|
}
|
|
3779
3747
|
|
|
3780
3748
|
@keyframes topRightAnimateOut {
|
|
3781
|
-
|
|
3749
|
+
from {
|
|
3782
3750
|
transform: translate(0, 0) scale(1);
|
|
3783
3751
|
opacity: 1;
|
|
3784
3752
|
}
|
|
3785
|
-
|
|
3786
|
-
transform: translate(
|
|
3787
|
-
opacity: 0.6;
|
|
3788
|
-
}
|
|
3789
|
-
100% {
|
|
3790
|
-
transform: translate(calc(50vw + 50%), calc(-50vh - 50%)) scale(0.5);
|
|
3753
|
+
to {
|
|
3754
|
+
transform: translate(var(--zjpcy-modal-offset-x, 50vw), var(--zjpcy-modal-offset-y, -50vh)) scale(0.5);
|
|
3791
3755
|
opacity: 0;
|
|
3792
3756
|
}
|
|
3793
3757
|
}
|
|
3794
3758
|
|
|
3795
|
-
/* 右下角消失 */
|
|
3759
|
+
/* 右下角消失 - 回到浏览器右下角 */
|
|
3796
3760
|
.zjpcy-modal-container--closing-bottom-right {
|
|
3797
|
-
animation: bottomRightAnimateOut 0.
|
|
3761
|
+
animation: bottomRightAnimateOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
|
|
3798
3762
|
}
|
|
3799
3763
|
|
|
3800
3764
|
@keyframes bottomRightAnimateOut {
|
|
3801
|
-
|
|
3765
|
+
from {
|
|
3802
3766
|
transform: translate(0, 0) scale(1);
|
|
3803
3767
|
opacity: 1;
|
|
3804
3768
|
}
|
|
3805
|
-
|
|
3806
|
-
transform: translate(
|
|
3807
|
-
opacity: 0.6;
|
|
3808
|
-
}
|
|
3809
|
-
100% {
|
|
3810
|
-
transform: translate(calc(50vw + 50%), calc(50vh + 50%)) scale(0.5);
|
|
3769
|
+
to {
|
|
3770
|
+
transform: translate(var(--zjpcy-modal-offset-x, 50vw), var(--zjpcy-modal-offset-y, 50vh)) scale(0.5);
|
|
3811
3771
|
opacity: 0;
|
|
3812
3772
|
}
|
|
3813
3773
|
}
|
|
3814
3774
|
|
|
3815
|
-
/* 左下角消失 */
|
|
3775
|
+
/* 左下角消失 - 回到浏览器左下角 */
|
|
3816
3776
|
.zjpcy-modal-container--closing-bottom-left {
|
|
3817
|
-
animation: bottomLeftAnimateOut 0.
|
|
3777
|
+
animation: bottomLeftAnimateOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
|
|
3818
3778
|
}
|
|
3819
3779
|
|
|
3820
3780
|
@keyframes bottomLeftAnimateOut {
|
|
3821
|
-
|
|
3781
|
+
from {
|
|
3822
3782
|
transform: translate(0, 0) scale(1);
|
|
3823
3783
|
opacity: 1;
|
|
3824
3784
|
}
|
|
3825
|
-
|
|
3826
|
-
transform: translate(-
|
|
3827
|
-
opacity: 0.6;
|
|
3828
|
-
}
|
|
3829
|
-
100% {
|
|
3830
|
-
transform: translate(calc(-50vw - 50%), calc(50vh + 50%)) scale(0.5);
|
|
3785
|
+
to {
|
|
3786
|
+
transform: translate(var(--zjpcy-modal-offset-x, -50vw), var(--zjpcy-modal-offset-y, 50vh)) scale(0.5);
|
|
3831
3787
|
opacity: 0;
|
|
3832
3788
|
}
|
|
3833
3789
|
}
|
|
@@ -10318,8 +10274,8 @@ body {
|
|
|
10318
10274
|
align-items: center;
|
|
10319
10275
|
justify-content: center;
|
|
10320
10276
|
z-index: 10;
|
|
10321
|
-
backdrop-filter: blur(
|
|
10322
|
-
-webkit-backdrop-filter: blur(
|
|
10277
|
+
backdrop-filter: blur(2px);
|
|
10278
|
+
-webkit-backdrop-filter: blur(2px);
|
|
10323
10279
|
}
|
|
10324
10280
|
|
|
10325
10281
|
.zjpcy-drawer-loading-content {
|
|
@@ -14673,7 +14629,7 @@ body {
|
|
|
14673
14629
|
right: 0;
|
|
14674
14630
|
bottom: 0;
|
|
14675
14631
|
background-color: rgba(0, 0, 0, 0.45);
|
|
14676
|
-
backdrop-filter: blur(
|
|
14632
|
+
backdrop-filter: blur(2px);
|
|
14677
14633
|
display: flex;
|
|
14678
14634
|
align-items: center;
|
|
14679
14635
|
justify-content: center;
|