react-snackbar-glass 1.2.0 → 1.3.0
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/CHANGELOG.md +17 -0
- package/README.md +50 -2
- package/dist/index.cjs +73 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +166 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +78 -2
- package/dist/index.d.ts +78 -2
- package/dist/index.js +73 -35
- package/dist/index.js.map +1 -1
- package/dist/styles.css +166 -2
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
max-width: 100%;
|
|
122
122
|
pointer-events: auto;
|
|
123
123
|
transform-origin: bottom center;
|
|
124
|
-
animation: prs-in 440ms var(--prs-ease-spring) both;
|
|
124
|
+
animation: prs-in var(--prs-enter-duration, 440ms) var(--prs-ease-spring) both;
|
|
125
125
|
will-change: transform, opacity;
|
|
126
126
|
}
|
|
127
127
|
.prs-item[data-size=xs] {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
}
|
|
190
190
|
.prs-item[data-state=exiting] {
|
|
191
191
|
pointer-events: none;
|
|
192
|
-
animation: prs-out 190ms cubic-bezier(0.4, 0, 1, 1) both;
|
|
192
|
+
animation: prs-out var(--prs-exit-duration, 190ms) cubic-bezier(0.4, 0, 1, 1) both;
|
|
193
193
|
}
|
|
194
194
|
.prs-item[data-dragging=true] {
|
|
195
195
|
user-select: none;
|
|
@@ -661,6 +661,50 @@
|
|
|
661
661
|
--prs-close-icon: 11px;
|
|
662
662
|
margin: 0;
|
|
663
663
|
}
|
|
664
|
+
.prs-item[data-layout=inline] {
|
|
665
|
+
--prs-item-width: auto;
|
|
666
|
+
max-width: min(420px, 100%);
|
|
667
|
+
}
|
|
668
|
+
.prs-item[data-layout=inline] .prs-item__surface {
|
|
669
|
+
align-items: center;
|
|
670
|
+
column-gap: 9px;
|
|
671
|
+
padding: 8px 13px 8px 9px;
|
|
672
|
+
border-radius: var(--prs-radius-inline, 12px);
|
|
673
|
+
}
|
|
674
|
+
.prs-item[data-layout=inline] .prs-item__icon {
|
|
675
|
+
--prs-icon-size: 22px;
|
|
676
|
+
--prs-glyph-size: 13px;
|
|
677
|
+
--prs-icon-radius: 999px;
|
|
678
|
+
flex: none;
|
|
679
|
+
margin-top: 0;
|
|
680
|
+
}
|
|
681
|
+
.prs-item[data-layout=inline] .prs-item__content {
|
|
682
|
+
min-width: 0;
|
|
683
|
+
padding-top: 0;
|
|
684
|
+
}
|
|
685
|
+
.prs-item[data-layout=inline] .prs-item__title {
|
|
686
|
+
display: none;
|
|
687
|
+
}
|
|
688
|
+
.prs-item[data-layout=inline] .prs-item__message {
|
|
689
|
+
overflow: hidden;
|
|
690
|
+
font-size: 13px;
|
|
691
|
+
font-weight: 500;
|
|
692
|
+
line-height: 1.4;
|
|
693
|
+
white-space: nowrap;
|
|
694
|
+
text-overflow: ellipsis;
|
|
695
|
+
}
|
|
696
|
+
.prs-item[data-layout=inline] .prs-item__actions {
|
|
697
|
+
margin-top: 0;
|
|
698
|
+
}
|
|
699
|
+
.prs-item[data-layout=inline] .prs-action {
|
|
700
|
+
padding: 2px 8px;
|
|
701
|
+
font-size: 11.5px;
|
|
702
|
+
}
|
|
703
|
+
.prs-item[data-layout=inline] .prs-close {
|
|
704
|
+
--prs-close-size: 22px;
|
|
705
|
+
--prs-close-icon: 11px;
|
|
706
|
+
margin: 0;
|
|
707
|
+
}
|
|
664
708
|
.prs-region--minimized {
|
|
665
709
|
width: auto;
|
|
666
710
|
padding: var(--prs-offset);
|
|
@@ -724,4 +768,124 @@
|
|
|
724
768
|
animation: none;
|
|
725
769
|
}
|
|
726
770
|
}
|
|
771
|
+
.prs-item[data-state=visible][data-enter=fade] {
|
|
772
|
+
animation: prs-fade-in var(--prs-enter-duration, 260ms) ease both;
|
|
773
|
+
}
|
|
774
|
+
.prs-item[data-state=exiting][data-exit=fade] {
|
|
775
|
+
animation: prs-fade-out var(--prs-exit-duration, 180ms) ease both;
|
|
776
|
+
}
|
|
777
|
+
.prs-item[data-state=visible][data-enter=scale] {
|
|
778
|
+
animation: prs-scale-in var(--prs-enter-duration, 300ms) var(--prs-ease-out) both;
|
|
779
|
+
}
|
|
780
|
+
.prs-item[data-state=exiting][data-exit=scale] {
|
|
781
|
+
animation: prs-scale-out var(--prs-exit-duration, 170ms) ease both;
|
|
782
|
+
}
|
|
783
|
+
.prs-item[data-state=visible][data-enter=pop] {
|
|
784
|
+
animation: prs-pop-in var(--prs-enter-duration, 460ms) var(--prs-ease-spring) both;
|
|
785
|
+
}
|
|
786
|
+
.prs-item[data-state=exiting][data-exit=pop] {
|
|
787
|
+
animation: prs-pop-out var(--prs-exit-duration, 210ms) ease both;
|
|
788
|
+
}
|
|
789
|
+
.prs-item[data-state=visible][data-enter=flip] {
|
|
790
|
+
animation: prs-flip-in var(--prs-enter-duration, 420ms) var(--prs-ease-out) both;
|
|
791
|
+
}
|
|
792
|
+
.prs-item[data-state=exiting][data-exit=flip] {
|
|
793
|
+
animation: prs-flip-out var(--prs-exit-duration, 220ms) ease both;
|
|
794
|
+
}
|
|
795
|
+
.prs-item[data-state=visible][data-enter=none] {
|
|
796
|
+
animation: none;
|
|
797
|
+
}
|
|
798
|
+
.prs-item[data-state=exiting][data-exit=none] {
|
|
799
|
+
animation: none;
|
|
800
|
+
}
|
|
801
|
+
.prs-item[data-enter=none] .prs-item__icon {
|
|
802
|
+
animation: none;
|
|
803
|
+
}
|
|
804
|
+
@keyframes prs-fade-in {
|
|
805
|
+
from {
|
|
806
|
+
opacity: 0;
|
|
807
|
+
}
|
|
808
|
+
to {
|
|
809
|
+
opacity: 1;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
@keyframes prs-fade-out {
|
|
813
|
+
from {
|
|
814
|
+
opacity: 1;
|
|
815
|
+
}
|
|
816
|
+
to {
|
|
817
|
+
opacity: 0;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
@keyframes prs-scale-in {
|
|
821
|
+
from {
|
|
822
|
+
opacity: 0;
|
|
823
|
+
transform: scale(0.86);
|
|
824
|
+
}
|
|
825
|
+
to {
|
|
826
|
+
opacity: 1;
|
|
827
|
+
transform: scale(1);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
@keyframes prs-scale-out {
|
|
831
|
+
from {
|
|
832
|
+
opacity: 1;
|
|
833
|
+
transform: scale(1);
|
|
834
|
+
}
|
|
835
|
+
to {
|
|
836
|
+
opacity: 0;
|
|
837
|
+
transform: scale(0.9);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
@keyframes prs-pop-in {
|
|
841
|
+
0% {
|
|
842
|
+
opacity: 0;
|
|
843
|
+
transform: scale(0.72);
|
|
844
|
+
}
|
|
845
|
+
55% {
|
|
846
|
+
opacity: 1;
|
|
847
|
+
transform: scale(1.06);
|
|
848
|
+
}
|
|
849
|
+
78% {
|
|
850
|
+
transform: scale(0.985);
|
|
851
|
+
}
|
|
852
|
+
100% {
|
|
853
|
+
opacity: 1;
|
|
854
|
+
transform: scale(1);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
@keyframes prs-pop-out {
|
|
858
|
+
0% {
|
|
859
|
+
opacity: 1;
|
|
860
|
+
transform: scale(1);
|
|
861
|
+
}
|
|
862
|
+
35% {
|
|
863
|
+
opacity: 1;
|
|
864
|
+
transform: scale(1.04);
|
|
865
|
+
}
|
|
866
|
+
100% {
|
|
867
|
+
opacity: 0;
|
|
868
|
+
transform: scale(0.85);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
@keyframes prs-flip-in {
|
|
872
|
+
from {
|
|
873
|
+
opacity: 0;
|
|
874
|
+
transform: perspective(900px) rotateX(-70deg);
|
|
875
|
+
}
|
|
876
|
+
to {
|
|
877
|
+
opacity: 1;
|
|
878
|
+
transform: perspective(900px) rotateX(0deg);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
@keyframes prs-flip-out {
|
|
882
|
+
from {
|
|
883
|
+
opacity: 1;
|
|
884
|
+
transform: perspective(900px) rotateX(0deg);
|
|
885
|
+
}
|
|
886
|
+
to {
|
|
887
|
+
opacity: 0;
|
|
888
|
+
transform: perspective(900px) rotateX(70deg);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
727
891
|
/*# sourceMappingURL=index.css.map */
|
package/package.json
CHANGED