@rabbitio/ui-kit 1.0.0-beta.43 → 1.0.0-beta.46
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/coverage/clover.xml +5262 -821
- package/coverage/coverage-final.json +25 -1
- package/coverage/index.html +311 -26
- package/coverage/rabbit-ui-kit/index.html +1 -1
- package/coverage/rabbit-ui-kit/index.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/adapters/axiosAdapter.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/adapters/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/amountUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/errorUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/external-apis/apiGroups.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/external-apis/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/external-apis/ipAddressProviders.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/fiatCurrenciesService.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/models/blockchain.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/models/coin.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/models/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/models/protocol.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/cache.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/emailAPI.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/logging/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/logging/logger.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/logging/logsStorage.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/postponeExecution.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/safeStringify.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/AssetIcon/AssetIcon.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/AssetIcon/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/AssetSelection/AssetSelection.jsx.html +364 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/AssetSelection/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +217 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/BackgroundTitle/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/LoadingDots/LoadingDots.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/LoadingDots/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/NoticeIcon/NoticeIcon.jsx.html +298 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/NoticeIcon/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/SupportChat/SupportChat.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/SupportChat/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/TitleBox/TitleBox.jsx.html +574 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/TitleBox/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/Tooltip/Tooltip.jsx.html +370 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/Tooltip/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/Validation/Validation.jsx.html +475 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/Validation/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/Button/Button.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/Button/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/Close/Close.jsx.html +277 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/Close/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/LinkButton/LinkButton.jsx.html +448 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/LinkButton/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/hooks/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/hooks/useCallHandlingErrors.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/hooks/useReferredState.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/molecules/AmountInput/AmountInput.jsx.html +1510 -0
- package/coverage/rabbit-ui-kit/src/components/molecules/AmountInput/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/Dialog.jsx.html +1630 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +451 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/DialogButtons/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +2077 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/DialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/SwapForm/SwapForm.jsx.html +3538 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/SwapForm/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/utils/index.html +24 -9
- package/coverage/rabbit-ui-kit/src/components/utils/inputValueProviders.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/utils/textUtils.js.html +139 -0
- package/coverage/rabbit-ui-kit/src/components/utils/uiUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/utils/urlQueryUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/DialogStep/dialogStep.js.html +88 -0
- package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/DialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/dialog.js.html +172 -0
- package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/index.html +5 -5
- package/coverage/rabbit-ui-kit/src/index.js.html +65 -5
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/cacheAndConcurrentRequestsResolver.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/cachedRobustExternalApiCallerService.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/cancelProcessing.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/concurrentCalculationsMetadataHolder.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/externalApiProvider.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/externalServicesStatsCollector.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/robustExternalAPICallerService.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/baseSwapCreationInfo.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/existingSwap.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/existingSwapWithFiatData.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/services/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/services/publicSwapService.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/utils/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/utils/swapUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/stories/atoms/BackgroundTitle.stories.jsx.html +202 -0
- package/coverage/rabbit-ui-kit/stories/atoms/LoadingDots.stories.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/stories/atoms/Validation.stories.jsx.html +178 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/Button.stories.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/Close.stories.jsx.html +211 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/LinkButton.stories.jsx.html +298 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/index.html +35 -5
- package/coverage/rabbit-ui-kit/stories/atoms/index.html +35 -5
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/Dialog.stories.jsx.html +574 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +328 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogButtons/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +352 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/stubs/exampleContent.jsx.html +145 -0
- package/coverage/rabbit-ui-kit/stories/stubs/index.html +116 -0
- package/dist/index.cjs +3022 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +40976 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +2568 -183
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +3010 -239
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +3019 -234
- package/dist/index.umd.js.map +1 -1
- package/package.json +7 -1
- package/src/assets/image/icons/arrow-darker.svg +14 -0
- package/src/assets/image/icons/arrow-tosca.svg +3 -0
- package/src/assets/image/icons/arrow-white.svg +14 -0
- package/src/assets/image/icons/dark-rectangle.svg +3 -0
- package/src/assets/image/icons/failed-validation-icon.svg +15 -0
- package/src/assets/image/icons/successful-validation-icon.svg +10 -0
- package/src/assets/image/icons/wallet-gray-small.svg +6 -0
- package/src/components/atoms/AssetSelection/AssetSelection.jsx +93 -0
- package/src/components/atoms/AssetSelection/asset-selection.module.scss +55 -0
- package/src/components/atoms/BackgroundTitle/BackgroundTitle.jsx +44 -0
- package/src/components/atoms/BackgroundTitle/background-title.module.scss +52 -0
- package/src/components/atoms/NoticeIcon/NoticeIcon.jsx +71 -0
- package/src/components/atoms/NoticeIcon/notice-icon.module.scss +14 -0
- package/src/components/atoms/TitleBox/TitleBox.jsx +163 -0
- package/src/components/atoms/TitleBox/title-box.module.scss +30 -0
- package/src/components/atoms/Tooltip/Tooltip.jsx +95 -0
- package/src/components/atoms/Tooltip/tooltip.module.scss +231 -0
- package/src/components/atoms/Validation/Validation.jsx +130 -0
- package/src/components/atoms/Validation/validation.module.scss +15 -0
- package/src/components/atoms/buttons/Close/Close.jsx +64 -0
- package/src/components/atoms/buttons/Close/close.module.scss +75 -0
- package/src/components/atoms/buttons/LinkButton/LinkButton.jsx +121 -0
- package/src/components/atoms/buttons/LinkButton/link-button.module.scss +45 -0
- package/src/components/molecules/AmountInput/AmountInput.jsx +475 -0
- package/src/components/molecules/AmountInput/amount-input.module.scss +189 -0
- package/src/components/organisms/Dialog/Dialog.jsx +515 -0
- package/src/components/organisms/Dialog/DialogButtons/DialogButtons.jsx +122 -0
- package/src/components/organisms/Dialog/DialogButtons/dialog-buttons.module.scss +25 -0
- package/src/components/organisms/Dialog/DialogStep/DialogStep.jsx +664 -0
- package/src/components/organisms/Dialog/DialogStep/dialog-step.module.scss +362 -0
- package/src/components/organisms/Dialog/dialog.module.scss +223 -0
- package/src/components/organisms/SwapForm/SwapForm.jsx +1151 -0
- package/src/components/organisms/SwapForm/swap-form.module.scss +120 -0
- package/src/components/utils/textUtils.js +18 -0
- package/src/constants/organisms/dialog/DialogStep/dialogStep.js +1 -0
- package/src/constants/organisms/dialog/dialog.js +29 -0
- package/src/index.js +21 -1
- package/stories/stubs/exampleContent.jsx +20 -0
- package/styles/fonts/NunitoSans-Bold.ttf +0 -0
- package/styles/fonts/NunitoSans-ExtraBold.ttf +0 -0
- package/styles/fonts/NunitoSans-Light.ttf +0 -0
- package/styles/fonts/NunitoSans-Regular.ttf +0 -0
- package/styles/fonts/NunitoSans-SemiBold.ttf +0 -0
- package/styles/index.scss +5 -3
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
@import "../../../../../styles/index";
|
|
2
|
+
|
|
3
|
+
@import "../dialog.module";
|
|
4
|
+
|
|
5
|
+
.dialog-step {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
display: block;
|
|
11
|
+
width: 100%;
|
|
12
|
+
opacity: 0;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
transition: all $transitionDuration $transitionEaseOut;
|
|
16
|
+
transition-delay: 0s;
|
|
17
|
+
@extend %white-box-big-padding;
|
|
18
|
+
max-height: 100%;
|
|
19
|
+
|
|
20
|
+
@media (min-width: $tablet-width) {
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.single-step {
|
|
25
|
+
position: relative;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.current {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
pointer-events: auto;
|
|
34
|
+
user-select: auto;
|
|
35
|
+
transition-delay: $transitionDuration * 4;
|
|
36
|
+
max-height: none;
|
|
37
|
+
overflow: visible;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.with-background {
|
|
41
|
+
@media (max-width: $tablet-width) {
|
|
42
|
+
min-height: 100vh;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.prev,
|
|
47
|
+
&.next {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.animation-disabled {
|
|
52
|
+
transition: none;
|
|
53
|
+
transition-delay: 0s;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-background-image {
|
|
57
|
+
position: absolute;
|
|
58
|
+
transition: inherit;
|
|
59
|
+
transition-delay: inherit;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
top: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
border-radius: $borderRadius;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
|
|
67
|
+
@media (max-width: $tablet-width) {
|
|
68
|
+
border-radius: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-desktop,
|
|
72
|
+
&-mobile {
|
|
73
|
+
position: relative;
|
|
74
|
+
object-fit: cover;
|
|
75
|
+
transition: inherit;
|
|
76
|
+
transition-delay: inherit;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
top: 0;
|
|
80
|
+
left: 0;
|
|
81
|
+
|
|
82
|
+
&.prev {
|
|
83
|
+
transform: translateX(-5px) scale(1.05);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.current {
|
|
87
|
+
transform: translateX(0px) scale(1.05);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.next {
|
|
91
|
+
transform: translateX(5px) scale(1.05);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&-desktop {
|
|
96
|
+
display: block;
|
|
97
|
+
|
|
98
|
+
@media (max-width: $phone-width) {
|
|
99
|
+
display: none;
|
|
100
|
+
|
|
101
|
+
&.primary {
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-mobile {
|
|
108
|
+
display: none;
|
|
109
|
+
|
|
110
|
+
&.primary {
|
|
111
|
+
display: block;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@media (max-width: $phone-width) {
|
|
115
|
+
display: block;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&-wrapper {
|
|
121
|
+
padding: 40px;
|
|
122
|
+
|
|
123
|
+
@media (max-width: $phone-width) {
|
|
124
|
+
padding: 20px 20px max(20px, env(safe-area-inset-bottom)) 20px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.prev {
|
|
128
|
+
animation: slideToLeft $transitionDuration $transitionEaseOut 0s;
|
|
129
|
+
animation-fill-mode: both;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.next {
|
|
133
|
+
animation: slideToRight $transitionDuration $transitionEaseOut 0s;
|
|
134
|
+
animation-fill-mode: both;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.current {
|
|
138
|
+
&.appear-from-left {
|
|
139
|
+
animation: slideFromLeft $transitionDuration $transitionEaseOut
|
|
140
|
+
$transitionDuration * 4;
|
|
141
|
+
animation-fill-mode: both;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.appear-from-right {
|
|
145
|
+
animation: slideFromRight $transitionDuration $transitionEaseOut
|
|
146
|
+
$transitionDuration * 4;
|
|
147
|
+
animation-fill-mode: both;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@keyframes slideFromLeft {
|
|
152
|
+
0% {
|
|
153
|
+
transform: translateX(-20px);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
100% {
|
|
157
|
+
transform: translateX(0px);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@keyframes slideFromRight {
|
|
162
|
+
0% {
|
|
163
|
+
transform: translateX(20px);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
100% {
|
|
167
|
+
transform: translateX(0px);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@keyframes slideToLeft {
|
|
172
|
+
0% {
|
|
173
|
+
transform: translateX(0px);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
100% {
|
|
177
|
+
transform: translateX(-20px);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@keyframes slideToRight {
|
|
182
|
+
0% {
|
|
183
|
+
transform: translateX(0px);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
100% {
|
|
187
|
+
transform: translateX(20px);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&-back-button {
|
|
192
|
+
margin-left: -3px;
|
|
193
|
+
display: flex;
|
|
194
|
+
justify-content: flex-start;
|
|
195
|
+
margin-bottom: Margin("2");
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&-header {
|
|
199
|
+
max-width: 377px;
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
align-items: center;
|
|
203
|
+
margin: 0 auto;
|
|
204
|
+
position: relative;
|
|
205
|
+
font-family: NunitoSans;
|
|
206
|
+
|
|
207
|
+
&.text-left {
|
|
208
|
+
max-width: 100%;
|
|
209
|
+
margin: 0;
|
|
210
|
+
align-items: flex-start;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&.with-background-image {
|
|
214
|
+
max-width: 100%;
|
|
215
|
+
padding-top: 20px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&-logo {
|
|
219
|
+
width: 130px;
|
|
220
|
+
@extend .mt-sm-5;
|
|
221
|
+
@extend .mt-10;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&-title {
|
|
225
|
+
display: flex;
|
|
226
|
+
justify-content: flex-start;
|
|
227
|
+
align-items: center;
|
|
228
|
+
@extend .mt-6;
|
|
229
|
+
@extend .mb-2;
|
|
230
|
+
|
|
231
|
+
&.without-logo {
|
|
232
|
+
margin-top: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&.close-button-padding {
|
|
236
|
+
padding-right: 58px;
|
|
237
|
+
|
|
238
|
+
@media (max-width: $tablet-width) {
|
|
239
|
+
padding-right: 46px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&.no-close-button-padding {
|
|
244
|
+
padding-right: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&-icon,
|
|
248
|
+
&-coin-icon {
|
|
249
|
+
margin-right: Margin("3");
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&-icon img {
|
|
255
|
+
height: 30px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&-loading {
|
|
259
|
+
margin-right: 15px;
|
|
260
|
+
|
|
261
|
+
@media (max-width: $phone-width) {
|
|
262
|
+
margin-right: 10px;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&-text {
|
|
267
|
+
&-content {
|
|
268
|
+
color: SolidColor(dark);
|
|
269
|
+
text-align: center;
|
|
270
|
+
font-weight: bold;
|
|
271
|
+
display: flex;
|
|
272
|
+
justify-content: flex-start;
|
|
273
|
+
align-items: flex-start;
|
|
274
|
+
|
|
275
|
+
&.without-logo {
|
|
276
|
+
text-align: left;
|
|
277
|
+
@include typograpy("h3");
|
|
278
|
+
position: relative;
|
|
279
|
+
|
|
280
|
+
@media (max-width: $phone-width) {
|
|
281
|
+
font-size: 20px;
|
|
282
|
+
line-height: 30px;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&.white {
|
|
287
|
+
color: $white;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&-text {
|
|
294
|
+
@include typograpy("p");
|
|
295
|
+
max-width: 100%;
|
|
296
|
+
text-align: center;
|
|
297
|
+
color: SolidColor("grey");
|
|
298
|
+
margin-bottom: Margin("10");
|
|
299
|
+
word-break: normal;
|
|
300
|
+
|
|
301
|
+
&.break-words {
|
|
302
|
+
word-break: break-all;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&.text-left {
|
|
306
|
+
text-align: left;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
&.small-margin {
|
|
310
|
+
margin-bottom: Margin("7");
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&.no-margin {
|
|
314
|
+
margin-bottom: 0;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&.white {
|
|
318
|
+
color: $white;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
&-content {
|
|
323
|
+
display: flex;
|
|
324
|
+
flex-direction: column;
|
|
325
|
+
justify-self: flex-start;
|
|
326
|
+
position: relative;
|
|
327
|
+
|
|
328
|
+
&.align-left {
|
|
329
|
+
align-items: flex-start;
|
|
330
|
+
}
|
|
331
|
+
&.align-center {
|
|
332
|
+
align-items: center;
|
|
333
|
+
}
|
|
334
|
+
&.align-right {
|
|
335
|
+
align-items: flex-end;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
&-buttons {
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
justify-content: flex-end;
|
|
342
|
+
margin-top: Margin("7");
|
|
343
|
+
gap: Margin("7");
|
|
344
|
+
|
|
345
|
+
@media (max-width: $phone-width) {
|
|
346
|
+
margin-top: Margin("5");
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
&.big-margin {
|
|
350
|
+
margin-top: Margin("10");
|
|
351
|
+
|
|
352
|
+
@media (max-width: $phone-width) {
|
|
353
|
+
margin-top: Margin("7");
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
&.no-margin {
|
|
358
|
+
margin-top: 0;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
@import "../../../../styles/index";
|
|
2
|
+
|
|
3
|
+
$transitionDuration: 0.2s;
|
|
4
|
+
|
|
5
|
+
.dialog {
|
|
6
|
+
@extend %black-window;
|
|
7
|
+
z-index: 9 !important;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
overflow-x: hidden;
|
|
13
|
+
opacity: 1;
|
|
14
|
+
backdrop-filter: blur(5px);
|
|
15
|
+
|
|
16
|
+
@media (max-width: $tablet-width) {
|
|
17
|
+
backdrop-filter: none;
|
|
18
|
+
background: $white;
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.hidden {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.vertical-overflow-disabled {
|
|
30
|
+
overflow-y: hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.inline {
|
|
34
|
+
position: relative;
|
|
35
|
+
background: none;
|
|
36
|
+
overflow: visible;
|
|
37
|
+
width: auto;
|
|
38
|
+
height: auto;
|
|
39
|
+
backdrop-filter: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.dialog-transition {
|
|
43
|
+
&-enter {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
|
|
46
|
+
.scrollable {
|
|
47
|
+
transform: scale(0.95) translateY(-15px);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-enter-active {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
transition: opacity $transitionDuration ease;
|
|
54
|
+
|
|
55
|
+
.scrollable {
|
|
56
|
+
transform: scale(1) translateY(0vh);
|
|
57
|
+
transition: transform $transitionDuration ease;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-exit {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
|
|
64
|
+
.scrollable {
|
|
65
|
+
transform: scale(1) translateY(0vh);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-exit-active {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
transition: opacity $transitionDuration ease;
|
|
72
|
+
|
|
73
|
+
.scrollable {
|
|
74
|
+
transform: scale(0.98) translateY(10px);
|
|
75
|
+
transition: transform $transitionDuration ease;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.scrollable {
|
|
81
|
+
position: relative;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
margin: 0 auto;
|
|
86
|
+
width: 100%;
|
|
87
|
+
-webkit-overflow-scrolling: auto !important;
|
|
88
|
+
|
|
89
|
+
@media (max-width: $tablet-width) {
|
|
90
|
+
margin: 0;
|
|
91
|
+
flex: 1 1;
|
|
92
|
+
align-items: start;
|
|
93
|
+
|
|
94
|
+
&:not(.inline) {
|
|
95
|
+
overflow-y: auto;
|
|
96
|
+
overflow-x: hidden;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.fixed-buttons-container {
|
|
102
|
+
background-color: $white;
|
|
103
|
+
width: 100vw;
|
|
104
|
+
padding: 20px 20px max(20px, env(safe-area-inset-bottom)) 20px;
|
|
105
|
+
opacity: 1;
|
|
106
|
+
box-shadow:
|
|
107
|
+
0px 0px 3px 3px $white,
|
|
108
|
+
0px 0px 10px 5px $white;
|
|
109
|
+
z-index: 0;
|
|
110
|
+
|
|
111
|
+
@media (min-width: $phone-width) {
|
|
112
|
+
padding: 20px 40px 40px 40px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-enter {
|
|
116
|
+
display: none;
|
|
117
|
+
opacity: 0;
|
|
118
|
+
transition: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-enter-active {
|
|
122
|
+
display: block;
|
|
123
|
+
opacity: 0;
|
|
124
|
+
transition: opacity $transitionDuration $transitionEaseOut;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-enter-done,
|
|
128
|
+
&-exit {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
transition: opacity $transitionDuration $transitionEaseOut;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&-exit-active {
|
|
134
|
+
display: block;
|
|
135
|
+
opacity: 0;
|
|
136
|
+
transition: opacity $transitionDuration $transitionEaseOut;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&-exit-done {
|
|
140
|
+
display: none;
|
|
141
|
+
opacity: 0;
|
|
142
|
+
transition: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@media (min-width: $tablet-width) {
|
|
146
|
+
display: none;
|
|
147
|
+
|
|
148
|
+
&-enter,
|
|
149
|
+
&-enter-active,
|
|
150
|
+
&-enter-done,
|
|
151
|
+
&-exit,
|
|
152
|
+
&-exit-active,
|
|
153
|
+
&-exit-done {
|
|
154
|
+
display: none;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&-wrapper {
|
|
160
|
+
position: relative;
|
|
161
|
+
width: 100%;
|
|
162
|
+
max-width: 550px;
|
|
163
|
+
box-shadow: 0 40px 30px 0 rgba(27, 45, 68, 0.2);
|
|
164
|
+
margin: Margin("5");
|
|
165
|
+
transition: all $transitionDuration $transitionEaseOut;
|
|
166
|
+
transition-delay: $transitionDuration;
|
|
167
|
+
background: $white;
|
|
168
|
+
border-radius: $borderRadius;
|
|
169
|
+
|
|
170
|
+
@media (min-width: $tablet-width) {
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@media (max-width: $tablet-width) {
|
|
175
|
+
margin: 0;
|
|
176
|
+
|
|
177
|
+
&:not(.inline) {
|
|
178
|
+
box-shadow: none;
|
|
179
|
+
min-width: 100vw;
|
|
180
|
+
backdrop-filter: blur(5px);
|
|
181
|
+
border-radius: 0;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.inline {
|
|
186
|
+
margin: 0;
|
|
187
|
+
width: 100%;
|
|
188
|
+
min-width: auto;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&.animation-disabled {
|
|
192
|
+
transition: none;
|
|
193
|
+
transition-delay: 0s;
|
|
194
|
+
overflow: visible;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.wide {
|
|
198
|
+
max-width: 1014px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&-rah-content {
|
|
202
|
+
display: block !important;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&-controls-top-padding {
|
|
206
|
+
width: 100%;
|
|
207
|
+
display: block;
|
|
208
|
+
height: 20px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&-close {
|
|
212
|
+
position: absolute;
|
|
213
|
+
top: 40px;
|
|
214
|
+
right: 40px;
|
|
215
|
+
z-index: 2;
|
|
216
|
+
|
|
217
|
+
@media (max-width: $phone-width) {
|
|
218
|
+
top: 20px;
|
|
219
|
+
right: 20px;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|