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