@redsift/popovers 9.2.3 → 9.2.4-muiv5

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.
Files changed (171) hide show
  1. package/package.json +3 -2
  2. package/coverage/clover.xml +0 -763
  3. package/coverage/coverage-final.json +0 -53
  4. package/coverage/lcov-report/base.css +0 -224
  5. package/coverage/lcov-report/block-navigation.js +0 -87
  6. package/coverage/lcov-report/dialog/Dialog.tsx.html +0 -271
  7. package/coverage/lcov-report/dialog/context.ts.html +0 -97
  8. package/coverage/lcov-report/dialog/index.html +0 -191
  9. package/coverage/lcov-report/dialog/index.ts.html +0 -100
  10. package/coverage/lcov-report/dialog/types.ts.html +0 -241
  11. package/coverage/lcov-report/dialog/useDialog.tsx.html +0 -346
  12. package/coverage/lcov-report/dialog/useDialogContext.tsx.html +0 -121
  13. package/coverage/lcov-report/dialog-content/DialogContent.tsx.html +0 -484
  14. package/coverage/lcov-report/dialog-content/index.html +0 -146
  15. package/coverage/lcov-report/dialog-content/index.ts.html +0 -91
  16. package/coverage/lcov-report/dialog-content/intl/index.html +0 -116
  17. package/coverage/lcov-report/dialog-content/intl/index.ts.html +0 -106
  18. package/coverage/lcov-report/dialog-content/styles.ts.html +0 -256
  19. package/coverage/lcov-report/dialog-content-actions/DialogContentActions.tsx.html +0 -205
  20. package/coverage/lcov-report/dialog-content-actions/index.html +0 -146
  21. package/coverage/lcov-report/dialog-content-actions/index.ts.html +0 -91
  22. package/coverage/lcov-report/dialog-content-actions/styles.ts.html +0 -139
  23. package/coverage/lcov-report/dialog-content-body/DialogContentBody.tsx.html +0 -232
  24. package/coverage/lcov-report/dialog-content-body/index.html +0 -146
  25. package/coverage/lcov-report/dialog-content-body/index.ts.html +0 -91
  26. package/coverage/lcov-report/dialog-content-body/styles.ts.html +0 -259
  27. package/coverage/lcov-report/dialog-content-header/DialogContentHeader.tsx.html +0 -280
  28. package/coverage/lcov-report/dialog-content-header/index.html +0 -146
  29. package/coverage/lcov-report/dialog-content-header/index.ts.html +0 -91
  30. package/coverage/lcov-report/dialog-content-header/styles.ts.html +0 -193
  31. package/coverage/lcov-report/dialog-trigger/DialogTrigger.tsx.html +0 -217
  32. package/coverage/lcov-report/dialog-trigger/index.html +0 -131
  33. package/coverage/lcov-report/dialog-trigger/index.ts.html +0 -91
  34. package/coverage/lcov-report/favicon.png +0 -0
  35. package/coverage/lcov-report/index.html +0 -341
  36. package/coverage/lcov-report/popover/Popover.tsx.html +0 -295
  37. package/coverage/lcov-report/popover/context.ts.html +0 -97
  38. package/coverage/lcov-report/popover/index.html +0 -191
  39. package/coverage/lcov-report/popover/index.ts.html +0 -100
  40. package/coverage/lcov-report/popover/types.ts.html +0 -283
  41. package/coverage/lcov-report/popover/usePopover.tsx.html +0 -415
  42. package/coverage/lcov-report/popover/usePopoverContext.tsx.html +0 -121
  43. package/coverage/lcov-report/popover-content/PopoverContent.tsx.html +0 -229
  44. package/coverage/lcov-report/popover-content/index.html +0 -146
  45. package/coverage/lcov-report/popover-content/index.ts.html +0 -94
  46. package/coverage/lcov-report/popover-content/styles.ts.html +0 -370
  47. package/coverage/lcov-report/popover-trigger/PopoverTrigger.tsx.html +0 -202
  48. package/coverage/lcov-report/popover-trigger/index.html +0 -131
  49. package/coverage/lcov-report/popover-trigger/index.ts.html +0 -91
  50. package/coverage/lcov-report/prettify.css +0 -1
  51. package/coverage/lcov-report/prettify.js +0 -2
  52. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  53. package/coverage/lcov-report/sorter.js +0 -196
  54. package/coverage/lcov-report/toast/Toast.tsx.html +0 -373
  55. package/coverage/lcov-report/toast/index.html +0 -161
  56. package/coverage/lcov-report/toast/index.ts.html +0 -91
  57. package/coverage/lcov-report/toast/intl/index.html +0 -116
  58. package/coverage/lcov-report/toast/intl/index.ts.html +0 -106
  59. package/coverage/lcov-report/toast/styles.ts.html +0 -193
  60. package/coverage/lcov-report/toast/types.ts.html +0 -217
  61. package/coverage/lcov-report/toast-container/ToastContainer.tsx.html +0 -217
  62. package/coverage/lcov-report/toast-container/index.html +0 -161
  63. package/coverage/lcov-report/toast-container/index.ts.html +0 -94
  64. package/coverage/lcov-report/toast-container/styles.ts.html +0 -2284
  65. package/coverage/lcov-report/toast-container/useToast.tsx.html +0 -469
  66. package/coverage/lcov-report/tooltip/Tooltip.tsx.html +0 -250
  67. package/coverage/lcov-report/tooltip/context.ts.html +0 -97
  68. package/coverage/lcov-report/tooltip/index.html +0 -191
  69. package/coverage/lcov-report/tooltip/index.ts.html +0 -100
  70. package/coverage/lcov-report/tooltip/types.ts.html +0 -250
  71. package/coverage/lcov-report/tooltip/useTooltip.tsx.html +0 -358
  72. package/coverage/lcov-report/tooltip/useTooltipContext.tsx.html +0 -121
  73. package/coverage/lcov-report/tooltip-content/TooltipContent.tsx.html +0 -313
  74. package/coverage/lcov-report/tooltip-content/index.html +0 -146
  75. package/coverage/lcov-report/tooltip-content/index.ts.html +0 -91
  76. package/coverage/lcov-report/tooltip-content/styles.ts.html +0 -337
  77. package/coverage/lcov-report/tooltip-trigger/TooltipTrigger.tsx.html +0 -211
  78. package/coverage/lcov-report/tooltip-trigger/index.html +0 -131
  79. package/coverage/lcov-report/tooltip-trigger/index.ts.html +0 -91
  80. package/coverage/lcov.info +0 -1510
  81. package/coverage/storybook/coverage-storybook.json +0 -58724
  82. package/dist/package.json +0 -96
  83. package/index.ts +0 -1
  84. package/jest.config.js +0 -3
  85. package/rollup.config.js +0 -13
  86. package/src/components/dialog/Dialog.stories.tsx +0 -264
  87. package/src/components/dialog/Dialog.test.tsx +0 -116
  88. package/src/components/dialog/Dialog.tsx +0 -62
  89. package/src/components/dialog/context.ts +0 -4
  90. package/src/components/dialog/index.ts +0 -5
  91. package/src/components/dialog/types.ts +0 -52
  92. package/src/components/dialog/useDialog.tsx +0 -87
  93. package/src/components/dialog/useDialogContext.tsx +0 -12
  94. package/src/components/dialog-content/DialogContent.stories.tsx +0 -348
  95. package/src/components/dialog-content/DialogContent.tsx +0 -133
  96. package/src/components/dialog-content/index.ts +0 -2
  97. package/src/components/dialog-content/intl/en-US.json +0 -3
  98. package/src/components/dialog-content/intl/fr-FR.json +0 -3
  99. package/src/components/dialog-content/intl/index.ts +0 -7
  100. package/src/components/dialog-content/styles.ts +0 -57
  101. package/src/components/dialog-content/types.ts +0 -10
  102. package/src/components/dialog-content-actions/DialogContentActions.test.tsx +0 -68
  103. package/src/components/dialog-content-actions/DialogContentActions.tsx +0 -40
  104. package/src/components/dialog-content-actions/index.ts +0 -2
  105. package/src/components/dialog-content-actions/styles.ts +0 -18
  106. package/src/components/dialog-content-actions/types.ts +0 -11
  107. package/src/components/dialog-content-body/DialogContentBody.test.tsx +0 -63
  108. package/src/components/dialog-content-body/DialogContentBody.tsx +0 -49
  109. package/src/components/dialog-content-body/index.ts +0 -2
  110. package/src/components/dialog-content-body/styles.ts +0 -58
  111. package/src/components/dialog-content-body/types.ts +0 -14
  112. package/src/components/dialog-content-header/DialogContentHeader.test.tsx +0 -63
  113. package/src/components/dialog-content-header/DialogContentHeader.tsx +0 -65
  114. package/src/components/dialog-content-header/index.ts +0 -2
  115. package/src/components/dialog-content-header/styles.ts +0 -36
  116. package/src/components/dialog-content-header/types.ts +0 -21
  117. package/src/components/dialog-trigger/DialogTrigger.tsx +0 -44
  118. package/src/components/dialog-trigger/index.ts +0 -2
  119. package/src/components/dialog-trigger/types.ts +0 -9
  120. package/src/components/popover/Popover.stories.tsx +0 -129
  121. package/src/components/popover/Popover.test.tsx +0 -102
  122. package/src/components/popover/Popover.tsx +0 -70
  123. package/src/components/popover/context.ts +0 -4
  124. package/src/components/popover/index.ts +0 -5
  125. package/src/components/popover/types.ts +0 -66
  126. package/src/components/popover/usePopover.tsx +0 -110
  127. package/src/components/popover/usePopoverContext.tsx +0 -12
  128. package/src/components/popover-content/PopoverContent.tsx +0 -48
  129. package/src/components/popover-content/index.ts +0 -3
  130. package/src/components/popover-content/styles.ts +0 -95
  131. package/src/components/popover-content/types.ts +0 -11
  132. package/src/components/popover-trigger/PopoverTrigger.tsx +0 -39
  133. package/src/components/popover-trigger/index.ts +0 -2
  134. package/src/components/popover-trigger/types.ts +0 -9
  135. package/src/components/toast/Toast.stories.tsx +0 -68
  136. package/src/components/toast/Toast.test.tsx +0 -63
  137. package/src/components/toast/Toast.tsx +0 -96
  138. package/src/components/toast/index.ts +0 -2
  139. package/src/components/toast/intl/en-US.json +0 -3
  140. package/src/components/toast/intl/fr-FR.json +0 -3
  141. package/src/components/toast/intl/index.ts +0 -7
  142. package/src/components/toast/styles.ts +0 -36
  143. package/src/components/toast/types.ts +0 -44
  144. package/src/components/toast-container/ToastContainer.stories.tsx +0 -349
  145. package/src/components/toast-container/ToastContainer.tsx +0 -44
  146. package/src/components/toast-container/index.ts +0 -3
  147. package/src/components/toast-container/styles.ts +0 -733
  148. package/src/components/toast-container/types.ts +0 -110
  149. package/src/components/toast-container/useToast.test.tsx +0 -111
  150. package/src/components/toast-container/useToast.tsx +0 -128
  151. package/src/components/tooltip/Tooltip.stories.tsx +0 -196
  152. package/src/components/tooltip/Tooltip.test.tsx +0 -119
  153. package/src/components/tooltip/Tooltip.tsx +0 -55
  154. package/src/components/tooltip/context.ts +0 -4
  155. package/src/components/tooltip/index.ts +0 -5
  156. package/src/components/tooltip/types.ts +0 -55
  157. package/src/components/tooltip/useTooltip.tsx +0 -93
  158. package/src/components/tooltip/useTooltipContext.tsx +0 -12
  159. package/src/components/tooltip-content/TooltipContent.tsx +0 -76
  160. package/src/components/tooltip-content/index.ts +0 -2
  161. package/src/components/tooltip-content/styles.ts +0 -84
  162. package/src/components/tooltip-content/types.ts +0 -14
  163. package/src/components/tooltip-trigger/TooltipTrigger.tsx +0 -42
  164. package/src/components/tooltip-trigger/index.ts +0 -2
  165. package/src/components/tooltip-trigger/types.ts +0 -9
  166. package/src/index.ts +0 -16
  167. package/tsconfig.json +0 -3
  168. /package/{dist/CONTRIBUTING.md → CONTRIBUTING.md} +0 -0
  169. /package/{dist/index.d.ts → index.d.ts} +0 -0
  170. /package/{dist/index.js → index.js} +0 -0
  171. /package/{dist/index.js.map → index.js.map} +0 -0
@@ -1,733 +0,0 @@
1
- import styled from 'styled-components';
2
- import { ToastContainer } from 'react-toastify';
3
- import { StyledToastContainerProps } from './types';
4
-
5
- export const ReactToastify = styled.div`
6
- :root {
7
- --toastify-color-light: #fff;
8
- --toastify-color-dark: #121212;
9
- --toastify-color-info: #3498db;
10
- --toastify-color-success: #07bc0c;
11
- --toastify-color-warning: #f1c40f;
12
- --toastify-color-error: #e74c3c;
13
- --toastify-color-transparent: rgba(255, 255, 255, 0.7);
14
- --toastify-icon-color-info: var(--toastify-color-info);
15
- --toastify-icon-color-success: var(--toastify-color-success);
16
- --toastify-icon-color-warning: var(--toastify-color-warning);
17
- --toastify-icon-color-error: var(--toastify-color-error);
18
- --toastify-toast-width: 320px;
19
- --toastify-toast-background: #fff;
20
- --toastify-toast-min-height: 64px;
21
- --toastify-toast-max-height: 800px;
22
- --toastify-font-family: sans-serif;
23
- --toastify-z-index: 9999;
24
- --toastify-text-color-light: #757575;
25
- --toastify-text-color-dark: #fff;
26
- --toastify-text-color-info: #fff;
27
- --toastify-text-color-success: #fff;
28
- --toastify-text-color-warning: #fff;
29
- --toastify-text-color-error: #fff;
30
- --toastify-spinner-color: #616161;
31
- --toastify-spinner-color-empty-area: #e0e0e0;
32
- --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
33
- --toastify-color-progress-dark: #bb86fc;
34
- --toastify-color-progress-info: var(--toastify-color-info);
35
- --toastify-color-progress-success: var(--toastify-color-success);
36
- --toastify-color-progress-warning: var(--toastify-color-warning);
37
- --toastify-color-progress-error: var(--toastify-color-error);
38
- }
39
-
40
- .Toastify__toast-container {
41
- z-index: var(--toastify-z-index);
42
- -webkit-transform: translate3d(0, 0, var(--toastify-z-index) px);
43
- position: fixed;
44
- padding: 4px;
45
- width: var(--toastify-toast-width);
46
- box-sizing: border-box;
47
- color: #fff;
48
- }
49
- .Toastify__toast-container--top-left {
50
- top: 1em;
51
- left: 1em;
52
- }
53
- .Toastify__toast-container--top-center {
54
- top: 1em;
55
- left: 50%;
56
- transform: translateX(-50%);
57
- }
58
- .Toastify__toast-container--top-right {
59
- top: 1em;
60
- right: 1em;
61
- }
62
- .Toastify__toast-container--bottom-left {
63
- bottom: 1em;
64
- left: 1em;
65
- }
66
- .Toastify__toast-container--bottom-center {
67
- bottom: 1em;
68
- left: 50%;
69
- transform: translateX(-50%);
70
- }
71
- .Toastify__toast-container--bottom-right {
72
- bottom: 1em;
73
- right: 1em;
74
- }
75
-
76
- @media only screen and (max-width: 480px) {
77
- .Toastify__toast-container {
78
- width: 100vw;
79
- padding: 0;
80
- left: 0;
81
- margin: 0;
82
- }
83
- .Toastify__toast-container--top-left,
84
- .Toastify__toast-container--top-center,
85
- .Toastify__toast-container--top-right {
86
- top: 0;
87
- transform: translateX(0);
88
- }
89
- .Toastify__toast-container--bottom-left,
90
- .Toastify__toast-container--bottom-center,
91
- .Toastify__toast-container--bottom-right {
92
- bottom: 0;
93
- transform: translateX(0);
94
- }
95
- .Toastify__toast-container--rtl {
96
- right: 0;
97
- left: initial;
98
- }
99
- }
100
- .Toastify__toast {
101
- position: relative;
102
- min-height: var(--toastify-toast-min-height);
103
- box-sizing: border-box;
104
- margin-bottom: 1rem;
105
- padding: 8px;
106
- border-radius: 4px;
107
- box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
108
- display: -ms-flexbox;
109
- display: flex;
110
- -ms-flex-pack: justify;
111
- justify-content: space-between;
112
- max-height: var(--toastify-toast-max-height);
113
- overflow: hidden;
114
- font-family: var(--toastify-font-family);
115
- cursor: default;
116
- direction: ltr;
117
- /* webkit only issue #791 */
118
- z-index: 0;
119
- }
120
- .Toastify__toast--rtl {
121
- direction: rtl;
122
- }
123
- .Toastify__toast--close-on-click {
124
- cursor: pointer;
125
- }
126
- .Toastify__toast-body {
127
- margin: auto 0;
128
- -ms-flex: 1 1 auto;
129
- flex: 1 1 auto;
130
- padding: 6px;
131
- display: -ms-flexbox;
132
- display: flex;
133
- -ms-flex-align: center;
134
- align-items: center;
135
- }
136
- .Toastify__toast-body > div:last-child {
137
- word-break: break-word;
138
- -ms-flex: 1;
139
- flex: 1;
140
- }
141
- .Toastify__toast-icon {
142
- -webkit-margin-end: 10px;
143
- margin-inline-end: 10px;
144
- width: 20px;
145
- -ms-flex-negative: 0;
146
- flex-shrink: 0;
147
- display: -ms-flexbox;
148
- display: flex;
149
- }
150
-
151
- .Toastify--animate {
152
- animation-fill-mode: both;
153
- animation-duration: 0.7s;
154
- }
155
-
156
- .Toastify--animate-icon {
157
- animation-fill-mode: both;
158
- animation-duration: 0.3s;
159
- }
160
-
161
- @media only screen and (max-width: 480px) {
162
- .Toastify__toast {
163
- margin-bottom: 0;
164
- border-radius: 0;
165
- }
166
- }
167
- .Toastify__toast-theme--dark {
168
- background: var(--toastify-color-dark);
169
- color: var(--toastify-text-color-dark);
170
- }
171
- .Toastify__toast-theme--light {
172
- background: var(--toastify-color-light);
173
- color: var(--toastify-text-color-light);
174
- }
175
- .Toastify__toast-theme--colored.Toastify__toast--default {
176
- background: var(--toastify-color-light);
177
- color: var(--toastify-text-color-light);
178
- }
179
- .Toastify__toast-theme--colored.Toastify__toast--info {
180
- color: var(--toastify-text-color-info);
181
- background: var(--toastify-color-info);
182
- }
183
- .Toastify__toast-theme--colored.Toastify__toast--success {
184
- color: var(--toastify-text-color-success);
185
- background: var(--toastify-color-success);
186
- }
187
- .Toastify__toast-theme--colored.Toastify__toast--warning {
188
- color: var(--toastify-text-color-warning);
189
- background: var(--toastify-color-warning);
190
- }
191
- .Toastify__toast-theme--colored.Toastify__toast--error {
192
- color: var(--toastify-text-color-error);
193
- background: var(--toastify-color-error);
194
- }
195
-
196
- .Toastify__progress-bar-theme--light {
197
- background: var(--toastify-color-progress-light);
198
- }
199
- .Toastify__progress-bar-theme--dark {
200
- background: var(--toastify-color-progress-dark);
201
- }
202
- .Toastify__progress-bar--info {
203
- background: var(--toastify-color-progress-info);
204
- }
205
- .Toastify__progress-bar--success {
206
- background: var(--toastify-color-progress-success);
207
- }
208
- .Toastify__progress-bar--warning {
209
- background: var(--toastify-color-progress-warning);
210
- }
211
- .Toastify__progress-bar--error {
212
- background: var(--toastify-color-progress-error);
213
- }
214
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
215
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
216
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
217
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
218
- background: var(--toastify-color-transparent);
219
- }
220
-
221
- .Toastify__close-button {
222
- color: #fff;
223
- background: transparent;
224
- outline: none;
225
- border: none;
226
- padding: 0;
227
- cursor: pointer;
228
- opacity: 0.7;
229
- transition: 0.3s ease;
230
- -ms-flex-item-align: start;
231
- align-self: flex-start;
232
- }
233
- .Toastify__close-button--light {
234
- color: #000;
235
- opacity: 0.3;
236
- }
237
- .Toastify__close-button > svg {
238
- fill: currentColor;
239
- height: 16px;
240
- width: 14px;
241
- }
242
- .Toastify__close-button:hover,
243
- .Toastify__close-button:focus {
244
- opacity: 1;
245
- }
246
-
247
- @keyframes Toastify__trackProgress {
248
- 0% {
249
- transform: scaleX(1);
250
- }
251
- 100% {
252
- transform: scaleX(0);
253
- }
254
- }
255
- .Toastify__progress-bar {
256
- position: absolute;
257
- bottom: 0;
258
- left: 0;
259
- width: 100%;
260
- height: 5px;
261
- z-index: var(--toastify-z-index);
262
- opacity: 0.7;
263
- transform-origin: left;
264
- }
265
- .Toastify__progress-bar--animated {
266
- animation: Toastify__trackProgress linear 1 forwards;
267
- }
268
- .Toastify__progress-bar--controlled {
269
- transition: transform 0.2s;
270
- }
271
- .Toastify__progress-bar--rtl {
272
- right: 0;
273
- left: initial;
274
- transform-origin: right;
275
- }
276
-
277
- .Toastify__spinner {
278
- width: 20px;
279
- height: 20px;
280
- box-sizing: border-box;
281
- border: 2px solid;
282
- border-radius: 100%;
283
- border-color: var(--toastify-spinner-color-empty-area);
284
- border-right-color: var(--toastify-spinner-color);
285
- animation: Toastify__spin 0.65s linear infinite;
286
- }
287
-
288
- @keyframes Toastify__bounceInRight {
289
- from,
290
- 60%,
291
- 75%,
292
- 90%,
293
- to {
294
- animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
295
- }
296
- from {
297
- opacity: 0;
298
- transform: translate3d(3000px, 0, 0);
299
- }
300
- 60% {
301
- opacity: 1;
302
- transform: translate3d(-25px, 0, 0);
303
- }
304
- 75% {
305
- transform: translate3d(10px, 0, 0);
306
- }
307
- 90% {
308
- transform: translate3d(-5px, 0, 0);
309
- }
310
- to {
311
- transform: none;
312
- }
313
- }
314
- @keyframes Toastify__bounceOutRight {
315
- 20% {
316
- opacity: 1;
317
- transform: translate3d(-20px, 0, 0);
318
- }
319
- to {
320
- opacity: 0;
321
- transform: translate3d(2000px, 0, 0);
322
- }
323
- }
324
- @keyframes Toastify__bounceInLeft {
325
- from,
326
- 60%,
327
- 75%,
328
- 90%,
329
- to {
330
- animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
331
- }
332
- 0% {
333
- opacity: 0;
334
- transform: translate3d(-3000px, 0, 0);
335
- }
336
- 60% {
337
- opacity: 1;
338
- transform: translate3d(25px, 0, 0);
339
- }
340
- 75% {
341
- transform: translate3d(-10px, 0, 0);
342
- }
343
- 90% {
344
- transform: translate3d(5px, 0, 0);
345
- }
346
- to {
347
- transform: none;
348
- }
349
- }
350
- @keyframes Toastify__bounceOutLeft {
351
- 20% {
352
- opacity: 1;
353
- transform: translate3d(20px, 0, 0);
354
- }
355
- to {
356
- opacity: 0;
357
- transform: translate3d(-2000px, 0, 0);
358
- }
359
- }
360
- @keyframes Toastify__bounceInUp {
361
- from,
362
- 60%,
363
- 75%,
364
- 90%,
365
- to {
366
- animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
367
- }
368
- from {
369
- opacity: 0;
370
- transform: translate3d(0, 3000px, 0);
371
- }
372
- 60% {
373
- opacity: 1;
374
- transform: translate3d(0, -20px, 0);
375
- }
376
- 75% {
377
- transform: translate3d(0, 10px, 0);
378
- }
379
- 90% {
380
- transform: translate3d(0, -5px, 0);
381
- }
382
- to {
383
- transform: translate3d(0, 0, 0);
384
- }
385
- }
386
- @keyframes Toastify__bounceOutUp {
387
- 20% {
388
- transform: translate3d(0, -10px, 0);
389
- }
390
- 40%,
391
- 45% {
392
- opacity: 1;
393
- transform: translate3d(0, 20px, 0);
394
- }
395
- to {
396
- opacity: 0;
397
- transform: translate3d(0, -2000px, 0);
398
- }
399
- }
400
- @keyframes Toastify__bounceInDown {
401
- from,
402
- 60%,
403
- 75%,
404
- 90%,
405
- to {
406
- animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
407
- }
408
- 0% {
409
- opacity: 0;
410
- transform: translate3d(0, -3000px, 0);
411
- }
412
- 60% {
413
- opacity: 1;
414
- transform: translate3d(0, 25px, 0);
415
- }
416
- 75% {
417
- transform: translate3d(0, -10px, 0);
418
- }
419
- 90% {
420
- transform: translate3d(0, 5px, 0);
421
- }
422
- to {
423
- transform: none;
424
- }
425
- }
426
- @keyframes Toastify__bounceOutDown {
427
- 20% {
428
- transform: translate3d(0, 10px, 0);
429
- }
430
- 40%,
431
- 45% {
432
- opacity: 1;
433
- transform: translate3d(0, -20px, 0);
434
- }
435
- to {
436
- opacity: 0;
437
- transform: translate3d(0, 2000px, 0);
438
- }
439
- }
440
- .Toastify__bounce-enter--top-left,
441
- .Toastify__bounce-enter--bottom-left {
442
- animation-name: Toastify__bounceInLeft;
443
- }
444
- .Toastify__bounce-enter--top-right,
445
- .Toastify__bounce-enter--bottom-right {
446
- animation-name: Toastify__bounceInRight;
447
- }
448
- .Toastify__bounce-enter--top-center {
449
- animation-name: Toastify__bounceInDown;
450
- }
451
- .Toastify__bounce-enter--bottom-center {
452
- animation-name: Toastify__bounceInUp;
453
- }
454
-
455
- .Toastify__bounce-exit--top-left,
456
- .Toastify__bounce-exit--bottom-left {
457
- animation-name: Toastify__bounceOutLeft;
458
- }
459
- .Toastify__bounce-exit--top-right,
460
- .Toastify__bounce-exit--bottom-right {
461
- animation-name: Toastify__bounceOutRight;
462
- }
463
- .Toastify__bounce-exit--top-center {
464
- animation-name: Toastify__bounceOutUp;
465
- }
466
- .Toastify__bounce-exit--bottom-center {
467
- animation-name: Toastify__bounceOutDown;
468
- }
469
-
470
- @keyframes Toastify__zoomIn {
471
- from {
472
- opacity: 0;
473
- transform: scale3d(0.3, 0.3, 0.3);
474
- }
475
- 50% {
476
- opacity: 1;
477
- }
478
- }
479
- @keyframes Toastify__zoomOut {
480
- from {
481
- opacity: 1;
482
- }
483
- 50% {
484
- opacity: 0;
485
- transform: scale3d(0.3, 0.3, 0.3);
486
- }
487
- to {
488
- opacity: 0;
489
- }
490
- }
491
- .Toastify__zoom-enter {
492
- animation-name: Toastify__zoomIn;
493
- }
494
-
495
- .Toastify__zoom-exit {
496
- animation-name: Toastify__zoomOut;
497
- }
498
-
499
- @keyframes Toastify__flipIn {
500
- from {
501
- transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
502
- animation-timing-function: ease-in;
503
- opacity: 0;
504
- }
505
- 40% {
506
- transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
507
- animation-timing-function: ease-in;
508
- }
509
- 60% {
510
- transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
511
- opacity: 1;
512
- }
513
- 80% {
514
- transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
515
- }
516
- to {
517
- transform: perspective(400px);
518
- }
519
- }
520
- @keyframes Toastify__flipOut {
521
- from {
522
- transform: perspective(400px);
523
- }
524
- 30% {
525
- transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
526
- opacity: 1;
527
- }
528
- to {
529
- transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
530
- opacity: 0;
531
- }
532
- }
533
- .Toastify__flip-enter {
534
- animation-name: Toastify__flipIn;
535
- }
536
-
537
- .Toastify__flip-exit {
538
- animation-name: Toastify__flipOut;
539
- }
540
-
541
- @keyframes Toastify__slideInRight {
542
- from {
543
- transform: translate3d(110%, 0, 0);
544
- visibility: visible;
545
- }
546
- to {
547
- transform: translate3d(0, 0, 0);
548
- }
549
- }
550
- @keyframes Toastify__slideInLeft {
551
- from {
552
- transform: translate3d(-110%, 0, 0);
553
- visibility: visible;
554
- }
555
- to {
556
- transform: translate3d(0, 0, 0);
557
- }
558
- }
559
- @keyframes Toastify__slideInUp {
560
- from {
561
- transform: translate3d(0, 110%, 0);
562
- visibility: visible;
563
- }
564
- to {
565
- transform: translate3d(0, 0, 0);
566
- }
567
- }
568
- @keyframes Toastify__slideInDown {
569
- from {
570
- transform: translate3d(0, -110%, 0);
571
- visibility: visible;
572
- }
573
- to {
574
- transform: translate3d(0, 0, 0);
575
- }
576
- }
577
- @keyframes Toastify__slideOutRight {
578
- from {
579
- transform: translate3d(0, 0, 0);
580
- }
581
- to {
582
- visibility: hidden;
583
- transform: translate3d(110%, 0, 0);
584
- }
585
- }
586
- @keyframes Toastify__slideOutLeft {
587
- from {
588
- transform: translate3d(0, 0, 0);
589
- }
590
- to {
591
- visibility: hidden;
592
- transform: translate3d(-110%, 0, 0);
593
- }
594
- }
595
- @keyframes Toastify__slideOutDown {
596
- from {
597
- transform: translate3d(0, 0, 0);
598
- }
599
- to {
600
- visibility: hidden;
601
- transform: translate3d(0, 500px, 0);
602
- }
603
- }
604
- @keyframes Toastify__slideOutUp {
605
- from {
606
- transform: translate3d(0, 0, 0);
607
- }
608
- to {
609
- visibility: hidden;
610
- transform: translate3d(0, -500px, 0);
611
- }
612
- }
613
- .Toastify__slide-enter--top-left,
614
- .Toastify__slide-enter--bottom-left {
615
- animation-name: Toastify__slideInLeft;
616
- }
617
- .Toastify__slide-enter--top-right,
618
- .Toastify__slide-enter--bottom-right {
619
- animation-name: Toastify__slideInRight;
620
- }
621
- .Toastify__slide-enter--top-center {
622
- animation-name: Toastify__slideInDown;
623
- }
624
- .Toastify__slide-enter--bottom-center {
625
- animation-name: Toastify__slideInUp;
626
- }
627
-
628
- .Toastify__slide-exit--top-left,
629
- .Toastify__slide-exit--bottom-left {
630
- animation-name: Toastify__slideOutLeft;
631
- }
632
- .Toastify__slide-exit--top-right,
633
- .Toastify__slide-exit--bottom-right {
634
- animation-name: Toastify__slideOutRight;
635
- }
636
- .Toastify__slide-exit--top-center {
637
- animation-name: Toastify__slideOutUp;
638
- }
639
- .Toastify__slide-exit--bottom-center {
640
- animation-name: Toastify__slideOutDown;
641
- }
642
-
643
- @keyframes Toastify__spin {
644
- from {
645
- transform: rotate(0deg);
646
- }
647
- to {
648
- transform: rotate(360deg);
649
- }
650
- }
651
- `;
652
-
653
- /**
654
- * Component style.
655
- */
656
- export const StyledToastContainer = styled(ToastContainer)<StyledToastContainerProps>`
657
- --toastify-color-light: var(--redsift-color-notifications-neutral-white);
658
- --toastify-color-dark: var(--redsift-color-notifications-neutral-black);
659
- --toastify-color-info: var(--redsift-color-notifications-info-primary);
660
- --toastify-color-success: var(--redsift-color-notifications-success-primary);
661
- --toastify-color-warning: var(--redsift-color-notifications-warning-primary);
662
- --toastify-color-error: var(--redsift-color-notifications-error-primary);
663
- --toastify-color-transparent: rgba(255, 255, 255, 0.7);
664
- --toastify-icon-color-info: var(--toastify-color-info);
665
- --toastify-icon-color-success: var(--toastify-color-success);
666
- --toastify-icon-color-warning: var(--toastify-color-warning);
667
- --toastify-icon-color-error: var(--toastify-color-error);
668
- --toastify-toast-width: 'fit-content';
669
- --toastify-toast-background: var(--redsift-color-neutral-white);
670
- --toastify-toast-min-height: 58px;
671
- --toastify-toast-max-height: 800px;
672
- --toastify-font-family: sans-serif;
673
- --toastify-z-index: var(--redsift-layout-z-index-tooltip);
674
- --toastify-text-color-light: var(--redsift-color-neutral-black);
675
- --toastify-text-color-dark: var(--redsift-color-neutral-white);
676
- --toastify-text-color-info: var(--redsift-color-neutral-white);
677
- --toastify-text-color-success: var(--redsift-color-neutral-white);
678
- --toastify-text-color-warning: var(--redsift-color-neutral-white);
679
- --toastify-text-color-error: var(--redsift-color-neutral-white);
680
- --toastify-spinner-color: var(--redsift-color-neutral-darkgrey);
681
- --toastify-spinner-color-empty-area: var(--redsift-color-neutral-lightgrey);
682
- --toastify-color-progress-light: var(--redsift-color-neutral-darkgrey);
683
- --toastify-color-progress-dark: var(--redsift-color-neutral-xlightgrey);
684
- --toastify-color-progress-default: var(--redsift-color-ctas-primary-primary);
685
- --toastify-color-progress-info: var(--toastify-color-info);
686
- --toastify-color-progress-success: var(--toastify-color-success);
687
- --toastify-color-progress-warning: var(--toastify-color-warning);
688
- --toastify-color-progress-error: var(--toastify-color-error);
689
-
690
- min-width: 350px;
691
- max-width: 600px;
692
-
693
- .Toastify__toast {
694
- box-shadow: 0px 2px 4px -1px rgb(0 0 0 / 20%), 0px 4px 5px rgb(0 0 0 / 14%), 0px 1px 10px rgb(0 0 0 / 12%);
695
- padding: 0;
696
- }
697
-
698
- .Toastify__toast-body {
699
- padding: 0;
700
- }
701
-
702
- .Toastify__toast-theme--colored.Toastify__toast--default {
703
- background: none;
704
- }
705
- .Toastify__toast-theme--colored.Toastify__toast--info {
706
- background: none;
707
- }
708
- .Toastify__toast-theme--colored.Toastify__toast--success {
709
- background: none;
710
- }
711
- .Toastify__toast-theme--colored.Toastify__toast--warning {
712
- background: none;
713
- }
714
- .Toastify__toast-theme--colored.Toastify__toast--error {
715
- background: none;
716
- }
717
-
718
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--default {
719
- background: var(--toastify-color-progress-default);
720
- }
721
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--info {
722
- background: var(--toastify-color-progress-info);
723
- }
724
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success {
725
- background: var(--toastify-color-progress-success);
726
- }
727
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning {
728
- background: var(--toastify-color-progress-warning);
729
- }
730
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
731
- background: var(--toastify-color-progress-error);
732
- }
733
- `;