react-toast-master 2.1.3 → 2.1.4

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.
@@ -1,165 +0,0 @@
1
- /* Default styles for buttons */
2
- .cancel_button,
3
- .confirm_button {
4
- font-family: inherit;
5
- white-space: nowrap;
6
- font-size: 1rem;
7
- line-height: 1.5rem;
8
- border-radius: 0.375rem;
9
- transition-duration: 300ms;
10
- font-weight: 600;
11
- cursor: pointer;
12
- }
13
-
14
- /* Large devices */
15
- @media screen and (min-width: 1280px) and (max-width: 5120px) {
16
- .cancel_button {
17
- background-color: transparent;
18
- padding: 0.25rem 1rem;
19
- }
20
-
21
- .confirm_button {
22
- padding: 0.25rem 1rem;
23
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
24
- }
25
-
26
- .closeDiv {
27
- right: -2rem;
28
- }
29
- }
30
-
31
- /* Medium devices */
32
- @media screen and (min-width: 768px) and (max-width: 1279px) {
33
- .cancel_button {
34
- background-color: transparent;
35
- padding: 0.25rem 1rem;
36
- }
37
-
38
- .confirm_button {
39
- padding: 0.25rem 1rem;
40
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
41
- }
42
-
43
- .closeDiv {
44
- right: -2rem;
45
- }
46
- }
47
-
48
- /* Small devices */
49
- @media screen and (min-width: 481px) and (max-width: 767px) {
50
- .cancel_button {
51
- padding: 0.4rem 1.5rem;
52
- font-size: 0.875rem;
53
- background-color: transparent;
54
- line-height: 1.25rem;
55
- }
56
-
57
- .confirm_button {
58
- padding: 0.4rem 1.5rem;
59
- font-size: 0.875rem;
60
- line-height: 1.25rem;
61
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
62
- }
63
- .closeDiv {
64
- right: -2rem;
65
- }
66
- }
67
-
68
- /* Extra small devices */
69
- @media screen and (min-width: 120px) and (max-width: 480px) {
70
- .cancel_button {
71
- padding: 0.35rem 0.5rem;
72
- border-width: 1px;
73
- font-size: 0.875rem;
74
- line-height: 1.25rem;
75
-
76
- width: 100%;
77
- background-color: transparent;
78
- color: white;
79
- }
80
-
81
- .confirm_button {
82
- padding: 0.35rem 0.5rem;
83
- font-size: 0.875rem;
84
- line-height: 1.25rem;
85
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
86
- width: 100%;
87
- }
88
- .closeDiv {
89
- right: -1.1rem;
90
- }
91
- }
92
-
93
- .confirm_button_white {
94
- background-color: #141318;
95
- color: #fff;
96
- border: 1px solid #353244;
97
- }
98
- .confirm_button_dark {
99
- background-color: #fff;
100
- color: #1f2937;
101
- border: 1px solid #d1d5db;
102
- }
103
- .cancel_button_dark {
104
- color: #1f2937;
105
- border: 1px solid #d1d5db;
106
- }
107
- .cancel_button_all {
108
- color: #fff;
109
- border: 1px solid #67656e;
110
- }
111
-
112
- /* cancel button glass */
113
- .cancel_button_glass {
114
- color: #ffffff;
115
- border: 1px solid #ffffff;
116
- }
117
-
118
- /*
119
- below css styles are being used in the InnerFooter
120
- component's toast close button
121
- */
122
- .closeDiv {
123
- position: absolute;
124
- top: 50%;
125
- transform: translateY(-50%);
126
- transition-duration: 300ms;
127
- }
128
-
129
- .div_flex {
130
- display: flex;
131
- cursor: pointer;
132
- }
133
- .div_hidden {
134
- display: none;
135
- }
136
-
137
- .inner_container .closeButton {
138
- opacity: 0 !important;
139
- padding: 0.25rem;
140
- transition: opacity 150ms ease-in-out, scale 150ms ease-in-out;
141
- background-color: initial;
142
- border: none;
143
- outline: none;
144
- }
145
- .closeButton:hover {
146
- scale: 1.05 !important;
147
- }
148
- .inner_container:hover .closeButton {
149
- opacity: 1 !important;
150
- }
151
-
152
- /*
153
- for screen readers
154
- */
155
- .sr_only {
156
- position: absolute;
157
- width: 1px;
158
- height: 1px;
159
- padding: 0;
160
- margin: -1px;
161
- overflow: hidden;
162
- clip: rect(0, 0, 0, 0);
163
- white-space: nowrap;
164
- border-width: 0;
165
- }
@@ -1,49 +0,0 @@
1
- .box_shadow {
2
- box-shadow: #00000009 0px 1px 2px, #00000009 0px 2px 4px, #00000009 0px 4px 8px, #00000009 0px 8px 16px,
3
- #00000009 0px 16px 24px, #00000010 0px 24px 32px;
4
- }
5
- .box_shadow_block {
6
- box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px, rgba(0, 0, 0, 0.1) 0px 7px 13px -3px,
7
- rgba(0, 0, 0, 0.25) 0px -3px 0px inset;
8
- }
9
-
10
- .shadow_dark {
11
- box-shadow: 0px 1px 0px 0px #00000065, 1px 0px 0px 0px #00000065, 1px 2px 0px 0px #00000065,
12
- 2px 1px 0px 0px #00000065, 2px 3px 0px 0px #00000065, 3px 2px 0px 0px #00000065,
13
- 3px 4px 0px 0px #00000065, 4px 3px 0px 0px #00000065, 4px 5px 0px 0px #00000065,
14
- 5px 4px 0px 0px #00000065, 5px 6px 0px 0px #00000065, 6px 5px 0px 0px #000000d5;
15
- }
16
- .shadow_white {
17
- box-shadow: 0px 1px 0px 0px #dddddda2, 1px 0px 0px 0px #dddddda2, 1px 2px 0px 0px #dddddda2,
18
- 2px 1px 0px 0px #dddddda2, 2px 3px 0px 0px #dddddda2, 3px 2px 0px 0px #dddddda2,
19
- 3px 4px 0px 0px #dddddda2, 4px 3px 0px 0px #dddddda2, 4px 5px 0px 0px #dddddda2,
20
- 5px 4px 0px 0px #dddddda2, 5px 6px 0px 0px #dddddda2, 6px 5px 0px 0px #dddddda2;
21
- }
22
- .shadow_error {
23
- box-shadow: 0px 1px 0px 0px #dc2626, 1px 0px 0px 0px #dc2626, 1px 2px 0px 0px #dc2626,
24
- 2px 1px 0px 0px #dc2626, 2px 3px 0px 0px #dc2626, 3px 2px 0px 0px #dc2626, 3px 4px 0px 0px #dc2626,
25
- 4px 3px 0px 0px #dc2626, 4px 5px 0px 0px #dc2626, 5px 4px 0px 0px #dc2626, 5px 6px 0px 0px #dc2626,
26
- 6px 5px 0px 0px #dc2626;
27
- }
28
- .shadow_success {
29
- box-shadow: 0px 1px 0px 0px #07bc0d, 1px 0px 0px 0px #07bc0d, 1px 2px 0px 0px #07bc0d,
30
- 2px 1px 0px 0px #07bc0d, 2px 3px 0px 0px #07bc0d, 3px 2px 0px 0px #07bc0d, 3px 4px 0px 0px #07bc0d,
31
- 4px 3px 0px 0px #07bc0d, 4px 5px 0px 0px #07bc0d, 5px 4px 0px 0px #07bc0d, 5px 6px 0px 0px #07bc0d,
32
- 6px 5px 0px 0px #07bc0d;
33
- }
34
- .shadow_warning {
35
- box-shadow: 0px 1px 0px 0px #edc319, 1px 0px 0px 0px #edc319, 1px 2px 0px 0px #edc319,
36
- 2px 1px 0px 0px #edc319, 2px 3px 0px 0px #edc319, 3px 2px 0px 0px #edc319, 3px 4px 0px 0px #edc319,
37
- 4px 3px 0px 0px #edc319, 4px 5px 0px 0px #edc319, 5px 4px 0px 0px #edc319, 5px 6px 0px 0px #edc319,
38
- 6px 5px 0px 0px #edc319;
39
- }
40
- .shadow_info {
41
- box-shadow: 0px 1px 0px 0px #2196f3, 1px 0px 0px 0px #2196f3, 1px 2px 0px 0px #2196f3,
42
- 2px 1px 0px 0px #2196f3, 2px 3px 0px 0px #2196f3, 3px 2px 0px 0px #2196f3, 3px 4px 0px 0px #2196f3,
43
- 4px 3px 0px 0px #2196f3, 4px 5px 0px 0px #2196f3, 5px 4px 0px 0px #2196f3, 5px 6px 0px 0px #2196f3,
44
- 6px 5px 0px 0px #2196f3;
45
- }
46
-
47
- .shadow_around {
48
- box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.3);
49
- }
@@ -1,16 +0,0 @@
1
- /*
2
- skew css styles only applies to screens of 640px and up
3
- */
4
- @media (min-width: 640px) {
5
- .right3 {
6
- transform: skewX(-3deg);
7
- }
8
-
9
- .right6 {
10
- transform: skewX(-6deg);
11
- }
12
-
13
- .right12 {
14
- transform: skewX(-12deg);
15
- }
16
- }
@@ -1,43 +0,0 @@
1
- /*
2
- toast text alignment for mobile screens
3
- */
4
- .justify_end,
5
- .justify_start,
6
- .justify_center,
7
- .text_start,
8
- .text_end,
9
- .text_center {
10
- justify-content: center;
11
- text-align: center;
12
- }
13
-
14
- /*
15
- toast text alignment from 640px and up
16
- */
17
- @media (min-width: 640px) {
18
- .justify_end {
19
- justify-content: end;
20
- text-align: start;
21
- }
22
- .justify_start {
23
- justify-content: flex-start;
24
- text-align: end;
25
- }
26
- .justify_center {
27
- justify-content: center;
28
- text-align: center;
29
- }
30
-
31
- .text_start {
32
- justify-content: flex-start;
33
- text-align: start;
34
- }
35
- .text_end {
36
- justify-content: flex-end;
37
- text-align: end;
38
- }
39
- .text_center {
40
- justify-content: center;
41
- text-align: center;
42
- }
43
- }
@@ -1,66 +0,0 @@
1
- .text_warning {
2
- color: #edc319;
3
- }
4
- .text_dark {
5
- color: #1f2937;
6
- }
7
- .text_white {
8
- color: white;
9
- }
10
- .text_darker {
11
- color: #131318;
12
- }
13
- .textWhite {
14
- color: #fff;
15
- }
16
- .text_error {
17
- color: #dc2626;
18
- }
19
- .text_success {
20
- color: #07bc0c;
21
- }
22
- .text_info {
23
- color: #007fff;
24
- }
25
- .textWarning {
26
- color: #bda74e;
27
- }
28
- @keyframes spin {
29
- to {
30
- transform: rotate(360deg);
31
- }
32
- }
33
- .animate_spin {
34
- animation: spin 1.2s linear infinite;
35
- }
36
-
37
- .rotate_deg {
38
- transform: rotate(40deg);
39
- }
40
- .icon_only {
41
- display: flex;
42
- justify-content: center;
43
- align-items: center;
44
- height: 100%;
45
- }
46
-
47
- .footer_dark {
48
- color: #5e6a7a;
49
- border-top-color: #4b556380;
50
- }
51
- .footer_white {
52
- color: #6b7280;
53
- border-top-color: #9ca3af99;
54
- }
55
- .footer_info {
56
- color: #d1d5db;
57
- border-top-color: #e5e7eb99;
58
- }
59
- .footer_error {
60
- color: #d1d5db;
61
- border-top-color: #9ca3af99;
62
- }
63
- .footer_success {
64
- color: #ebebeb;
65
- border-top-color: #ffffff99;
66
- }
@@ -1,141 +0,0 @@
1
- /*
2
- toast position for small screens
3
- */
4
- .top {
5
- justify-content: center;
6
- left: 0;
7
- top: 1rem;
8
- }
9
- .topLeft {
10
- left: 0rem;
11
- top: 1rem;
12
- justify-content: center;
13
- }
14
- .topRight {
15
- right: 0rem;
16
- justify-content: center;
17
- top: 1rem;
18
- }
19
-
20
- .middle {
21
- position: absolute;
22
- inset: 0;
23
- display: flex;
24
- justify-content: center;
25
- align-items: center;
26
- }
27
-
28
- .bottom {
29
- justify-content: center;
30
- left: 0;
31
- bottom: 1rem;
32
- }
33
- .bottomLeft {
34
- left: 0rem;
35
- justify-content: center;
36
- bottom: 1rem;
37
- }
38
- .bottomRight {
39
- justify-content: center;
40
- right: 0rem;
41
- bottom: 1rem;
42
- }
43
-
44
- /* .topFull {
45
- justify-content: center;
46
- align-items: center;
47
- top: 0;
48
- width: 100vw;
49
- }
50
- .bottomFull {
51
- justify-content: center;
52
- align-items: center;
53
- bottom: 0;
54
- width: 100vw;
55
- } */
56
- body,
57
- html {
58
- margin: 0;
59
- padding: 0;
60
- }
61
- *,
62
- *::before,
63
- *::after {
64
- box-sizing: border-box;
65
- }
66
- .topFull,
67
- .bottomFull {
68
- justify-content: center;
69
- align-items: center;
70
- width: 100%;
71
- left: 0;
72
- }
73
-
74
- .topFull {
75
- top: 0;
76
- }
77
-
78
- .bottomFull {
79
- bottom: 0;
80
- }
81
-
82
- /*
83
- toast position from 640px and up
84
- */
85
- @media (min-width: 640px) {
86
- .top {
87
- justify-content: center;
88
- left: auto;
89
- right: 0;
90
- top: 1.25rem;
91
- }
92
- .topLeft {
93
- justify-content: flex-start;
94
- left: 1.25rem;
95
- top: 1.25rem;
96
- }
97
- .topRight {
98
- justify-content: flex-end;
99
- right: 1.25rem;
100
- top: 1.25rem;
101
- }
102
-
103
- .bottom {
104
- justify-content: center;
105
- left: auto;
106
- right: 0;
107
- bottom: 1.25rem;
108
- }
109
- .bottomLeft {
110
- justify-content: flex-start;
111
- left: 1.25rem;
112
- bottom: 1.25rem;
113
- }
114
- .bottomRight {
115
- justify-content: flex-end;
116
- right: 1.25rem;
117
- bottom: 1.25rem;
118
- }
119
-
120
- .topFull {
121
- justify-content: center;
122
- align-items: center;
123
- top: 0;
124
- width: 100%;
125
- }
126
- .bottomFull {
127
- justify-content: center;
128
- align-items: center;
129
- bottom: 0;
130
- width: 100%;
131
- }
132
- }
133
-
134
- /*
135
- this css style is used when the toast is using full width
136
- "bottomFull" ||"topFull"
137
- */
138
- .toast_width_full {
139
- width: 100vw;
140
- padding: 0.325rem 1.5rem;
141
- }