react-gldn-kit 0.1.85 → 0.1.86
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/dist/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Second/index.js +3 -1
- package/dist/lib/components/SignUpTypeTwo/PhoneBox/index.js +1 -1
- package/dist/lib/components/ui/Inputs/PhoneInput/components/PhoneView/index.js +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -122,7 +122,9 @@ var SignUpTypeTwo = function () {
|
|
|
122
122
|
var _k = data.registrationTitle, registrationTitle = _k === void 0 ? 'signUpTwo.won' : _k, _l = data.bonusImagePath, bonusImagePath = _l === void 0 ? '' : _l, _m = data.registrationTheme, registrationTheme = _m === void 0 ? types_3.ESignUpTheme.Brown : _m, _o = data.buttonText, buttonText = _o === void 0 ? 'signUpTwo.joinNow' : _o, _p = data.social, social = _p === void 0 ? [] : _p, _q = data.flow, flow = _q === void 0 ? types_3.ERegistrationFlow.Socket : _q;
|
|
123
123
|
var regType = registrationTheme;
|
|
124
124
|
var openSignIn = function () {
|
|
125
|
-
setModal(types_2.EModalTypes.SignIn
|
|
125
|
+
setModal(types_2.EModalTypes.SignIn, {
|
|
126
|
+
registrationTheme: registrationTheme,
|
|
127
|
+
});
|
|
126
128
|
};
|
|
127
129
|
var toggleState = function () {
|
|
128
130
|
setSelectedStatus(!isSelected);
|
|
@@ -66,7 +66,7 @@ var PhoneBox = function (props) {
|
|
|
66
66
|
if (!activePhoneBox) {
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
var value = target.value;
|
|
69
|
+
var value = (0, validation_1.extractNumbersFromString)(target.value);
|
|
70
70
|
var _b = (countryPhoneSettings || {}).length, length = _b === void 0 ? 0 : _b;
|
|
71
71
|
if (value.length > length) {
|
|
72
72
|
return;
|
|
@@ -61,7 +61,7 @@ var PhoneView = function (props) {
|
|
|
61
61
|
_a[styles.mainInput] = toggleValue,
|
|
62
62
|
_a), classes) }, { children: [toggleValue && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.phoneText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "registrations.inputs.phone" }) }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.content }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.codeWrapper, (_b = {},
|
|
63
63
|
_b[styles.column] = toggleValue,
|
|
64
|
-
_b)) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.code, onClick: toggleValue !== null && toggleValue !== void 0 ? toggleValue : undefined }, { children: [(0, jsx_runtime_1.jsx)(Flag, {}), toggleValue && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.arrow }, { children: (0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, {}) })))] })) })), name && (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.name }, { children: name })), (0, jsx_runtime_1.jsx)(BaseInputUi_1.BaseInputUi, __assign({ size: "full", placeholder: "", value: value,
|
|
64
|
+
_b)) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.code, onClick: toggleValue !== null && toggleValue !== void 0 ? toggleValue : undefined }, { children: [(0, jsx_runtime_1.jsx)(Flag, {}), toggleValue && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.arrow }, { children: (0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, {}) })))] })) })), name && (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.name }, { children: name })), (0, jsx_runtime_1.jsx)(BaseInputUi_1.BaseInputUi, __assign({ size: "full", placeholder: "", value: value, handleChange: handleSetValue, patternFn: (0, validation_1.replaceValueByMask)(mask), classes: (0, classnames_1.default)(styles.input), inputClasses: (0, classnames_1.default)((_c = {},
|
|
65
65
|
_c[styles.inputText] = code !== '+',
|
|
66
66
|
_c)), inputWrapperClasses: styles.inputWrapper, classesChildrenWrapper: styles.placeholder }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.value }, { children: highlightXs((0, validation_1.replaceValueByMaskReturnMask)(preparedMask)(value)) })) }))] }))] })));
|
|
67
67
|
};
|
package/dist/main.css
CHANGED