react-gldn-kit 0.1.56 → 0.1.57
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.
|
@@ -43,7 +43,6 @@ var react_1 = require("react");
|
|
|
43
43
|
var classnames_1 = __importDefault(require("classnames"));
|
|
44
44
|
var Text_1 = require("components/Text");
|
|
45
45
|
var Tabs_1 = require("components/ui/Tabs");
|
|
46
|
-
var Buttons_1 = require("components/ui/Buttons");
|
|
47
46
|
var EmailSignUp_1 = require("./components/Forms/EmailSignUp");
|
|
48
47
|
var OneClickKit_1 = __importDefault(require("./components/Forms/OneClickKit"));
|
|
49
48
|
var PhoneSignUp_1 = require("./components/Forms/PhoneSignUp");
|
|
@@ -57,8 +56,8 @@ var useHookFabric_1 = require("hooks/useHookFabric");
|
|
|
57
56
|
var styles = __importStar(require("./SignUp.module.css"));
|
|
58
57
|
var ModalContext_1 = require("context/logic/ModalContext");
|
|
59
58
|
var SignUp = function (props) {
|
|
60
|
-
var classes = props.classes, bonusText = props.bonusText, bonusSubText = props.bonusSubText;
|
|
61
|
-
var
|
|
59
|
+
var classes = props.classes, bonusText = props.bonusText, bonusSubText = props.bonusSubText, _a = props.withCongratulationText, withCongratulationText = _a === void 0 ? true : _a;
|
|
60
|
+
var _b = (0, ModalContext_1.useHookProvider)(), useTransportControllers = _b.useTransportControllers, useCurrencies = _b.useCurrencies, useCountryInfo = _b.useCountryInfo, sendRegistrationCommand = _b.sendRegistrationCommand;
|
|
62
61
|
var sendCommand = useTransportControllers().sendCommand;
|
|
63
62
|
var availableCurrencies = (0, useHookFabric_1.useHookFabric)({
|
|
64
63
|
fn: useCurrencies,
|
|
@@ -71,7 +70,8 @@ var SignUp = function (props) {
|
|
|
71
70
|
var setActiveForm = (0, store_2.useZustandRegistrationKitStore)(selectors_2.zustandRegistrationKitSelector.setActiveRegistrationFormAction);
|
|
72
71
|
var setModal = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.closeAndOpenModalAction);
|
|
73
72
|
var data = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
|
|
74
|
-
var
|
|
73
|
+
var _c = data.bonusSignUp, bonusSignUp = _c === void 0 ? false : _c, _d = data.bonusText, modalBonusText = _d === void 0 ? '' : _d, _e = data.bonusSubText, modalBonusSubText = _e === void 0 ? '' : _e, _f = data.withCongratulationText, modalWithCongratulationText = _f === void 0 ? withCongratulationText : _f, _g = data.flow, flow = _g === void 0 ? types_2.ERegistrationFlow.Socket : _g;
|
|
74
|
+
var isCongratulation = modalWithCongratulationText;
|
|
75
75
|
var customBonusText = bonusText || modalBonusText;
|
|
76
76
|
var customBonusSubText = bonusSubText || modalBonusSubText;
|
|
77
77
|
var openSignIn = function () {
|
|
@@ -85,8 +85,8 @@ var SignUp = function (props) {
|
|
|
85
85
|
setActiveForm(tabs[0].value);
|
|
86
86
|
}
|
|
87
87
|
}, [activeForm, tabs]);
|
|
88
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralFailure, classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperSignUpModal }, { children: [(bonusSignUp || customBonusText) && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.bonusText }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "wheelTwo.secondPopUp.title" }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusSubText
|
|
88
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralFailure, classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperSignUpModal }, { children: [(bonusSignUp || customBonusText) && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.bonusText }, { children: [isCongratulation && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "wheelTwo.secondPopUp.title" }) }))), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusSubText
|
|
89
89
|
? customBonusSubText
|
|
90
|
-
: 'wheelTwo.secondPopUp.subTitle' }) })), (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusText ? customBonusText : 'wheelTwo.secondPopUp.bonus' })] }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperTabsAndForm }, { children: [activeForm !== null && tabs.length !== 1 && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, data: tabs, onChange: setActiveForm, classes: styles.tabs, type: "underline" })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.zIndex }, { children: [activeForm === types_2.ERegistrationForm.Email && ((0, jsx_runtime_1.jsx)(EmailSignUp_1.EmailSignUp, { isSelected: true, countryInfo: countryInfo, handleRegistration: sendRegistrationCommand(flow), availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.PhoneWithoutCode && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { withoutCode: true, isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.OneClick && ((0, jsx_runtime_1.jsx)(OneClickKit_1.default, { isSelected: true, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] }))] }))] })), (0, jsx_runtime_1.jsx)(
|
|
90
|
+
: 'wheelTwo.secondPopUp.subTitle' }) })), (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusText ? customBonusText : 'wheelTwo.secondPopUp.bonus' })] }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperTabsAndForm }, { children: [activeForm !== null && tabs.length !== 1 && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, data: tabs, onChange: setActiveForm, classes: styles.tabs, type: "underline" })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.zIndex }, { children: [activeForm === types_2.ERegistrationForm.Email && ((0, jsx_runtime_1.jsx)(EmailSignUp_1.EmailSignUp, { isSelected: true, countryInfo: countryInfo, handleRegistration: sendRegistrationCommand(flow), availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.PhoneWithoutCode && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { withoutCode: true, isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.OneClick && ((0, jsx_runtime_1.jsx)(OneClickKit_1.default, { isSelected: true, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] }))] }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.authButtonText, onClick: openSignIn }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "registration.logInButton" }) }))] })) })));
|
|
91
91
|
};
|
|
92
92
|
exports.SignUp = SignUp;
|
package/dist/main.css
CHANGED
|
@@ -903,14 +903,11 @@
|
|
|
903
903
|
display: flex;
|
|
904
904
|
align-items: center;
|
|
905
905
|
gap: var(--indent-xs);
|
|
906
|
-
|
|
907
|
-
margin-bottom: 60px;
|
|
908
906
|
}
|
|
909
907
|
|
|
910
908
|
.KIT__PromoCode-module__marginBottom___ym0Mm {
|
|
911
909
|
margin-bottom: 60px;
|
|
912
910
|
}
|
|
913
|
-
|
|
914
911
|
.KIT__ArrowButton-module__openedColor___M7HTi * {
|
|
915
912
|
fill: var(--arrow-button-opened-svg-path-fill);
|
|
916
913
|
cursor: pointer;
|
|
@@ -1354,7 +1351,7 @@
|
|
|
1354
1351
|
}
|
|
1355
1352
|
|
|
1356
1353
|
.KIT__SignUp-module__bigMargin___hRtd8 {
|
|
1357
|
-
margin-bottom: 60px;
|
|
1354
|
+
/* margin-bottom: 60px; */
|
|
1358
1355
|
}
|
|
1359
1356
|
|
|
1360
1357
|
.KIT__SignUp-module__wrapperReferralFailure___rXbdd {
|
|
@@ -1365,6 +1362,17 @@
|
|
|
1365
1362
|
height: 52px;
|
|
1366
1363
|
}
|
|
1367
1364
|
|
|
1365
|
+
.KIT__SignUp-module__authButtonText___f1wcw {
|
|
1366
|
+
cursor: pointer;
|
|
1367
|
+
color: white;
|
|
1368
|
+
font-weight: 300;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.KIT__SignUp-module__authButtonText___f1wcw span {
|
|
1372
|
+
margin-left: var(--indent-xs);
|
|
1373
|
+
font-weight: 500;
|
|
1374
|
+
color: #4576F4;
|
|
1375
|
+
}
|
|
1368
1376
|
.KIT__EmailSignUp-module__animationFadeIn___oPHga {
|
|
1369
1377
|
animation: KIT__EmailSignUp-module__FadeIn___VNdcc 1s forwards;
|
|
1370
1378
|
width: 100%;
|