react-gldn-kit 0.1.60 → 0.1.62
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/First/index.js +2 -2
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/First/types.d.ts +4 -0
- package/dist/lib/components/SignUpTypeTwo/PhoneBox/components/Code/index.d.ts +1 -0
- package/dist/lib/components/SignUpTypeTwo/PhoneBox/components/Code/index.js +4 -3
- package/dist/lib/components/SignUpTypeTwo/PhoneBox/index.js +11 -9
- package/dist/lib/components/ui/Icons/FilledArrowSvg.d.ts +5 -0
- package/dist/lib/components/ui/Icons/FilledArrowSvg.js +20 -0
- package/dist/lib/components/ui/Inputs/BaseInput/BaseInputUi.js +2 -2
- package/dist/lib/components/ui/Inputs/BaseInput/types.d.ts +1 -0
- package/dist/lib/components/ui/Inputs/PhoneInput/components/PhoneView/index.d.ts +2 -1
- package/dist/lib/components/ui/Inputs/PhoneInput/components/PhoneView/index.js +11 -6
- package/dist/lib/components/ui/Inputs/PhoneInput/index.js +2 -2
- package/dist/lib/zustandStore/forms/signUp/types.d.ts +2 -1
- package/dist/lib/zustandStore/forms/signUp/types.js +1 -0
- package/dist/main.css +103 -50
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ var useHookFabric_1 = require("hooks/useHookFabric");
|
|
|
56
56
|
var styles = __importStar(require("./SignUp.module.css"));
|
|
57
57
|
var ModalContext_1 = require("context/logic/ModalContext");
|
|
58
58
|
var SignUp = function (props) {
|
|
59
|
-
var classes = props.classes, bonusText = props.bonusText, bonusSubText = props.bonusSubText, _a = props.withCongratulationText, withCongratulationText = _a === void 0 ? true : _a;
|
|
59
|
+
var classes = props.classes, bonusText = props.bonusText, bonusSubText = props.bonusSubText, _a = props.withCongratulationText, withCongratulationText = _a === void 0 ? true : _a, registrationSettings = props.registrationSettings;
|
|
60
60
|
var _b = (0, ModalContext_1.useHookProvider)(), useTransportControllers = _b.useTransportControllers, useCurrencies = _b.useCurrencies, useCountryInfo = _b.useCountryInfo, sendRegistrationCommand = _b.sendRegistrationCommand;
|
|
61
61
|
var sendCommand = useTransportControllers().sendCommand;
|
|
62
62
|
var availableCurrencies = (0, useHookFabric_1.useHookFabric)({
|
|
@@ -70,7 +70,7 @@ var SignUp = function (props) {
|
|
|
70
70
|
var setActiveForm = (0, store_2.useZustandRegistrationKitStore)(selectors_2.zustandRegistrationKitSelector.setActiveRegistrationFormAction);
|
|
71
71
|
var setModal = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.closeAndOpenModalAction);
|
|
72
72
|
var data = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
|
|
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;
|
|
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 ? registrationSettings.flow || types_2.ERegistrationFlow.Socket : _g;
|
|
74
74
|
var isCongratulation = modalWithCongratulationText;
|
|
75
75
|
var customBonusText = bonusText || modalBonusText;
|
|
76
76
|
var customBonusSubText = bonusSubText || modalBonusSubText;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { ERegistrationFlow } from 'zustandStore/forms/signUp/types';
|
|
1
2
|
export type SignUpProps = {
|
|
2
3
|
classes?: string;
|
|
3
4
|
bonusText?: string;
|
|
4
5
|
bonusSubText?: string;
|
|
5
6
|
withCongratulationText?: boolean;
|
|
7
|
+
registrationSettings?: {
|
|
8
|
+
flow?: ERegistrationFlow;
|
|
9
|
+
};
|
|
6
10
|
};
|
|
7
11
|
export declare enum ERegistrationType {
|
|
8
12
|
First = 0,
|
|
@@ -39,15 +39,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
41
|
var classnames_1 = __importDefault(require("classnames"));
|
|
42
|
-
var
|
|
42
|
+
var FilledArrowSvg_1 = require("components/ui/Icons/FilledArrowSvg");
|
|
43
43
|
var styles = __importStar(require("./Code.module.css"));
|
|
44
44
|
var Code = function (props) {
|
|
45
45
|
var _a;
|
|
46
|
-
var code = props.code, isArrow = props.isArrow, flag = props.flag, classes = props.classes, valueClasses = props.valueClasses, _b = props.isDrop, isDrop = _b === void 0 ? false : _b;
|
|
46
|
+
var code = props.code, isArrow = props.isArrow, flag = props.flag, classes = props.classes, valueClasses = props.valueClasses, _b = props.isDrop, isDrop = _b === void 0 ? false : _b, _c = props.isError, isError = _c === void 0 ? false : _c;
|
|
47
47
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.drop, (_a = {},
|
|
48
48
|
_a[styles.colorfulBorder] = isDrop,
|
|
49
|
+
_a[styles.errorBorder] = isError,
|
|
49
50
|
_a), classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.selection }, { children: [(0, jsx_runtime_1.jsx)("div", { className: styles.flag, style: {
|
|
50
51
|
background: "url(".concat(flag, ")"),
|
|
51
|
-
} }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.code, valueClasses) }, { children: [" ", code] })), isArrow && (0, jsx_runtime_1.jsx)(
|
|
52
|
+
} }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.code, valueClasses) }, { children: [" ", code] })), isArrow && (0, jsx_runtime_1.jsx)(FilledArrowSvg_1.FilledArrowSvg, { classes: styles.arrowSvg })] })) })));
|
|
52
53
|
};
|
|
53
54
|
exports.default = Code;
|
|
@@ -66,24 +66,25 @@ var PhoneBox = function (_a) {
|
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
68
|
var value = target.value;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
onChange("".concat(activePhoneBox.code).concat(value));
|
|
69
|
+
if (!value.length) {
|
|
70
|
+
setPhone({ value: value, errorText: 'signUpTwo.phoneBox.fillPassword' });
|
|
72
71
|
}
|
|
73
|
-
|
|
72
|
+
if (value.length && value.length !== validation_1.MIN_PHONE_LENGTH) {
|
|
73
|
+
setPhone({ value: value, errorText: 'signUpTwo.phoneBox.errorText' });
|
|
74
|
+
}
|
|
75
|
+
if (!value.length || value.length !== validation_1.MIN_PHONE_LENGTH) {
|
|
74
76
|
onChange('');
|
|
77
|
+
return;
|
|
75
78
|
}
|
|
76
|
-
setPhone({
|
|
77
|
-
|
|
78
|
-
errorText: errorText,
|
|
79
|
-
});
|
|
79
|
+
setPhone({ value: value, errorText: '' });
|
|
80
|
+
onChange("".concat(activePhoneBox.code).concat(value));
|
|
80
81
|
};
|
|
81
82
|
var setNewPhoneBox = function (i) { return function () {
|
|
82
83
|
setPhoneBox(i);
|
|
83
84
|
setDropState(false);
|
|
84
85
|
onChange('');
|
|
85
86
|
}; };
|
|
86
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperPhoneBox }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ onClick: toggleCode, style: { height: '100%' } }, { children: activePhoneBox && ((0, jsx_runtime_1.jsx)(Code_1.default, { code: activePhoneBox.code, isArrow: true, flag: activePhoneBox.flag, isDrop: isDrop })) })), isDrop && ((0, jsx_runtime_1.jsx)(HOCOutsideClick_1.HOCOutsideClick, __assign({ classes: styles.phoneWrapper, handleFunc: toggleCode }, { children: list.map(function (b) {
|
|
87
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperPhoneBox }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ onClick: toggleCode, style: { height: '100%' } }, { children: activePhoneBox && ((0, jsx_runtime_1.jsx)(Code_1.default, { code: activePhoneBox.code, isArrow: true, flag: activePhoneBox.flag, isDrop: isDrop, isError: Boolean(phone.errorText) })) })), isDrop && ((0, jsx_runtime_1.jsx)(HOCOutsideClick_1.HOCOutsideClick, __assign({ classes: styles.phoneWrapper, handleFunc: toggleCode }, { children: list.map(function (b) {
|
|
87
88
|
var _a;
|
|
88
89
|
var code = b.code, flag = b.flag, name = b.name;
|
|
89
90
|
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.row, (_a = {},
|
|
@@ -91,6 +92,7 @@ var PhoneBox = function (_a) {
|
|
|
91
92
|
_a)), onClick: setNewPhoneBox(b) }, { children: [(0, jsx_runtime_1.jsx)(Code_1.default, { code: code, flag: flag }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: name }) })] }), code));
|
|
92
93
|
}) }))), (0, jsx_runtime_1.jsx)("input", { className: (0, classnames_1.default)(styles.input, (_b = {},
|
|
93
94
|
_b[styles.colorfulBorder] = phone.value,
|
|
95
|
+
_b[styles.errorBorder] = phone.errorText,
|
|
94
96
|
_b)), pattern: "[0-9]", type: "text", value: phone.value, onChange: setPhoneValue, placeholder: getText('signUpTwo.phoneBox.phone') }), !!phone.errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.errorText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: phone.errorText }) })))] })));
|
|
95
97
|
};
|
|
96
98
|
exports.default = PhoneBox;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.FilledArrowSvg = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var FilledArrowSvg = function (props) {
|
|
17
|
+
var _a = props.width, width = _a === void 0 ? '8' : _a, _b = props.height, height = _b === void 0 ? '7' : _b, _c = props.classes, classes = _c === void 0 ? '' : _c, handleClick = props.handleClick;
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: width, height: height, viewBox: "0 0 8 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", onClick: handleClick, className: classes }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M7.83594 0.958493L0.165437 0.958492L4.00069 6.04199L7.83594 0.958493Z", fill: "var(--base-0)", "fill-opacity": "0.5" }) })));
|
|
19
|
+
};
|
|
20
|
+
exports.FilledArrowSvg = FilledArrowSvg;
|
|
@@ -48,7 +48,7 @@ var Text_1 = require("components/Text");
|
|
|
48
48
|
var styles = __importStar(require("./BaseInputUi.module.css"));
|
|
49
49
|
var BaseInputUi = function (props) {
|
|
50
50
|
var _a, _b, _c;
|
|
51
|
-
var startIcon = props.startIcon, value = props.value, type = props.type, placeholder = props.placeholder, handleChange = props.handleChange, children = props.children, isHidePlaceholder = props.isHidePlaceholder, inputLabelType = props.inputLabelType, errorText = props.errorText, inputStyleType = props.inputStyleType, size = props.size, classes = props.classes, inputMode = props.inputMode, disabled = props.disabled, _d = props.bottomText, bottomText = _d === void 0 ? '' : _d, _e = props.withErrorSvg, withErrorSvg = _e === void 0 ? false : _e, onFocus = props.onFocus, _f = props.withClearValue, withClearValue = _f === void 0 ? false : _f, handleClearInputValue = props.handleClearInputValue, labelClasses = props.labelClasses;
|
|
51
|
+
var startIcon = props.startIcon, value = props.value, type = props.type, placeholder = props.placeholder, handleChange = props.handleChange, children = props.children, isHidePlaceholder = props.isHidePlaceholder, inputLabelType = props.inputLabelType, errorText = props.errorText, inputStyleType = props.inputStyleType, size = props.size, classes = props.classes, inputMode = props.inputMode, disabled = props.disabled, _d = props.bottomText, bottomText = _d === void 0 ? '' : _d, _e = props.withErrorSvg, withErrorSvg = _e === void 0 ? false : _e, onFocus = props.onFocus, _f = props.withClearValue, withClearValue = _f === void 0 ? false : _f, handleClearInputValue = props.handleClearInputValue, labelClasses = props.labelClasses, inputClasses = props.inputClasses;
|
|
52
52
|
var isBorderColorful = inputStyleType === 'border-colorful';
|
|
53
53
|
var sizeModifier = "inputWrapperSize-".concat(size);
|
|
54
54
|
var _g = (0, react_1.useState)(false), isFocused = _g[0], setFocusState = _g[1];
|
|
@@ -65,7 +65,7 @@ var BaseInputUi = function (props) {
|
|
|
65
65
|
_a[styles.borderColorfulRed] = errorText,
|
|
66
66
|
_a)) }, { children: [startIcon, (0, jsx_runtime_1.jsx)("input", { onFocus: handleFocus, onBlur: handleBlur, inputMode: inputMode, className: (0, classnames_1.default)(styles.input, (_b = {},
|
|
67
67
|
_b[styles.disabled] = disabled,
|
|
68
|
-
_b)), value: value, type: type, placeholder: placeholder, onChange: handleChange }), value && withClearValue && !errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.searchButton, styles.clearButton), onClick: handleClearInputValue }, { children: (0, jsx_runtime_1.jsx)(CrossSvg_1.CrossSvg, { classes: styles.crossSvg }) }))), value && withClearValue && errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.searchButton }, { children: (0, jsx_runtime_1.jsx)(WarningSvg_1.WarningSvg, {}) }))), children && (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.rowChildrenData }, { children: children })), errorText && withErrorSvg && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.rowChildrenData }, { children: (0, jsx_runtime_1.jsx)(inputError_svg_1.ReactComponent, {}) }))), (0, jsx_runtime_1.jsx)("label", __assign({ className: (0, classnames_1.default)(styles.label, (_c = {},
|
|
68
|
+
_b), inputClasses), value: value, type: type, placeholder: placeholder, onChange: handleChange }), value && withClearValue && !errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.searchButton, styles.clearButton), onClick: handleClearInputValue }, { children: (0, jsx_runtime_1.jsx)(CrossSvg_1.CrossSvg, { classes: styles.crossSvg }) }))), value && withClearValue && errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.searchButton }, { children: (0, jsx_runtime_1.jsx)(WarningSvg_1.WarningSvg, {}) }))), children && (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.rowChildrenData }, { children: children })), errorText && withErrorSvg && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.rowChildrenData }, { children: (0, jsx_runtime_1.jsx)(inputError_svg_1.ReactComponent, {}) }))), (0, jsx_runtime_1.jsx)("label", __assign({ className: (0, classnames_1.default)(styles.label, (_c = {},
|
|
69
69
|
_c[styles.labelRight] = startIcon,
|
|
70
70
|
_c[styles.hideLabel] = isHidePlaceholder,
|
|
71
71
|
_c[styles.labelUp] = inputLabelType === 'labelUp',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultInputType } from 'components/ui/Inputs/BaseInput/types';
|
|
2
1
|
import React, { ReactElement } from 'react';
|
|
2
|
+
import { DefaultInputType } from 'components/ui/Inputs/BaseInput/types';
|
|
3
3
|
type Props = {
|
|
4
4
|
phone: DefaultInputType;
|
|
5
5
|
Flag: React.FC;
|
|
@@ -11,6 +11,7 @@ type Props = {
|
|
|
11
11
|
mask?: string;
|
|
12
12
|
placeholder: string;
|
|
13
13
|
classes?: string;
|
|
14
|
+
name?: string;
|
|
14
15
|
};
|
|
15
16
|
declare const PhoneView: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export default PhoneView;
|
|
@@ -41,16 +41,21 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
41
41
|
var classnames_1 = __importDefault(require("classnames"));
|
|
42
42
|
var ArrowButton_1 = require("components/ui/Buttons/ArrowButton");
|
|
43
43
|
var BaseInputUi_1 = require("components/ui/Inputs/BaseInput/BaseInputUi");
|
|
44
|
+
var Text_1 = require("components/Text");
|
|
44
45
|
var validation_1 = require("service/validation");
|
|
45
46
|
var styles = __importStar(require("./PhoneView.module.css"));
|
|
46
47
|
var PhoneView = function (props) {
|
|
47
|
-
var _a, _b;
|
|
48
|
-
var phone = props.phone, Flag = props.Flag, children = props.children, toggleValue = props.toggleValue, isOpened = props.isOpened, mask = props.mask, code = props.code, handleSetValue = props.handleSetValue, classes = props.classes, placeholder = props.placeholder;
|
|
48
|
+
var _a, _b, _c;
|
|
49
|
+
var phone = props.phone, Flag = props.Flag, children = props.children, toggleValue = props.toggleValue, isOpened = props.isOpened, mask = props.mask, code = props.code, handleSetValue = props.handleSetValue, classes = props.classes, placeholder = props.placeholder, name = props.name;
|
|
49
50
|
var value = phone.value, errorText = phone.errorText;
|
|
50
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.row,
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.row, (_a = {},
|
|
51
52
|
_a[styles.opened] = isOpened,
|
|
52
|
-
_a
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
_a[styles.borderColorfulRed] = errorText,
|
|
54
|
+
_a[styles.mainInput] = toggleValue,
|
|
55
|
+
_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 = {},
|
|
56
|
+
_b[styles.column] = toggleValue,
|
|
57
|
+
_b)) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.code }, { 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, { toggleState: toggleValue }) })))] })) })), 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, baseValue: code, defaultValue: code, handleChange: handleSetValue, patternFn: (0, validation_1.replaceValueByMask)(mask), classes: (0, classnames_1.default)(styles.input, (_c = {},
|
|
58
|
+
_c[styles.errorBorder] = errorText,
|
|
59
|
+
_c)), inputClasses: styles.inputText }, { children: children }))] }))] })));
|
|
55
60
|
};
|
|
56
61
|
exports.default = PhoneView;
|
|
@@ -155,9 +155,9 @@ var PhoneInput = function (props) {
|
|
|
155
155
|
onChange('');
|
|
156
156
|
}, [phone, onChange]);
|
|
157
157
|
var Flag = (countryPhoneSettings || {}).Flag;
|
|
158
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapper, classesWrapper) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.list }, { children: [(0, jsx_runtime_1.jsx)(PhoneView_1.default, __assign({ placeholder: (countryPhoneSettings === null || countryPhoneSettings === void 0 ? void 0 : countryPhoneSettings.name) || '', phone: phone, Flag: Flag || WorldSvg_1.WorldSvg, code: (countryPhoneSettings === null || countryPhoneSettings === void 0 ? void 0 : countryPhoneSettings.code) || '+', handleSetValue: handleSetValue, toggleValue: toggleValue, isOpened: isOpened, mask: countryPhoneSettings === null || countryPhoneSettings === void 0 ? void 0 : countryPhoneSettings.mask }, { children: children })), isOpened && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.items }, { children: Object.values(constants_1.PHONE_MASK).map(function (p) {
|
|
158
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapper, classesWrapper) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.list }, { children: [(0, jsx_runtime_1.jsx)(PhoneView_1.default, __assign({ placeholder: (countryPhoneSettings === null || countryPhoneSettings === void 0 ? void 0 : countryPhoneSettings.name) || '', phone: phone, Flag: Flag || WorldSvg_1.WorldSvg, code: (countryPhoneSettings === null || countryPhoneSettings === void 0 ? void 0 : countryPhoneSettings.code) || '+', handleSetValue: handleSetValue, toggleValue: toggleValue, isOpened: isOpened, mask: countryPhoneSettings === null || countryPhoneSettings === void 0 ? void 0 : countryPhoneSettings.mask, classes: styles.disabledBorder }, { children: children })), isOpened && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.items }, { children: Object.values(constants_1.PHONE_MASK).map(function (p) {
|
|
159
159
|
var CountryFlag = p.Flag;
|
|
160
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ onClick: handleChooseSettings(p) }, { children: (0, jsx_runtime_1.jsx)(PhoneView_1.default, { placeholder: "", phone: { value: p.code, errorText: '' }, Flag: CountryFlag, code: p.code, handleSetValue: console.info, mask: p.mask, classes: styles.disabledBorder }) }), p.code));
|
|
160
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ onClick: handleChooseSettings(p), className: styles.item }, { children: (0, jsx_runtime_1.jsx)(PhoneView_1.default, { placeholder: "", phone: { value: p.code, errorText: '' }, Flag: CountryFlag, code: p.code, handleSetValue: console.info, mask: p.mask, name: p.name, classes: styles.disabledBorder }) }), p.code));
|
|
161
161
|
}) })))] })), phone.errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.error }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: phone.errorText }) }))), withConfirm && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isRequestedCode ? ((0, jsx_runtime_1.jsx)(Timer_1.default, { handleRequestCode: handleRequestCode })) : ((0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, { text: "getCodeBtn", disabled: !isValidPhone, color: "primary", handleClick: showTimer, size: "--button-full", centreText: true, buttonHeight: "--button-height-full", classes: buttonClasses })) }))] })));
|
|
162
162
|
};
|
|
163
163
|
exports.PhoneInput = PhoneInput;
|
|
@@ -12,6 +12,7 @@ var ERegistrationFlow;
|
|
|
12
12
|
(function (ERegistrationFlow) {
|
|
13
13
|
ERegistrationFlow[ERegistrationFlow["Socket"] = 0] = "Socket";
|
|
14
14
|
ERegistrationFlow[ERegistrationFlow["Rest"] = 1] = "Rest";
|
|
15
|
+
ERegistrationFlow[ERegistrationFlow["Redirect"] = 2] = "Redirect";
|
|
15
16
|
})(ERegistrationFlow = exports.ERegistrationFlow || (exports.ERegistrationFlow = {}));
|
|
16
17
|
var ESignUpTheme;
|
|
17
18
|
(function (ESignUpTheme) {
|
package/dist/main.css
CHANGED
|
@@ -1442,7 +1442,7 @@
|
|
|
1442
1442
|
|
|
1443
1443
|
.KIT__PhoneInput-module__error___mgsEO {
|
|
1444
1444
|
position: absolute;
|
|
1445
|
-
top:
|
|
1445
|
+
top: 100%;
|
|
1446
1446
|
max-width: 100%;
|
|
1447
1447
|
white-space: nowrap;
|
|
1448
1448
|
text-overflow: ellipsis;
|
|
@@ -1480,74 +1480,122 @@
|
|
|
1480
1480
|
|
|
1481
1481
|
.KIT__PhoneInput-module__list___GgLkp .KIT__PhoneInput-module__items___UoSJS {
|
|
1482
1482
|
position: absolute;
|
|
1483
|
-
top: 100
|
|
1483
|
+
top: calc(100% + var(--indent-xs));
|
|
1484
1484
|
width: 100%;
|
|
1485
1485
|
left: 0;
|
|
1486
1486
|
border: var(--input-border);
|
|
1487
1487
|
background-color: var(--input-background);
|
|
1488
1488
|
z-index: 3;
|
|
1489
|
-
border-radius:
|
|
1489
|
+
border-radius: var(--border-s);
|
|
1490
|
+
overflow: hidden;
|
|
1490
1491
|
}
|
|
1491
1492
|
|
|
1492
|
-
.KIT__PhoneInput-module__list___GgLkp .KIT__PhoneInput-module__items___UoSJS .KIT__PhoneInput-module__disabledBorder___UYdKe
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1493
|
+
.KIT__PhoneInput-module__list___GgLkp .KIT__PhoneInput-module__items___UoSJS .KIT__PhoneInput-module__disabledBorder___UYdKe {
|
|
1494
|
+
border: none;
|
|
1495
|
+
background: #1f222f;
|
|
1496
|
+
border-radius: 0;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
.KIT__PhoneInput-module__list___GgLkp .KIT__PhoneInput-module__items___UoSJS .KIT__PhoneInput-module__disabledBorder___UYdKe:active {
|
|
1500
|
+
background: var(--base-700);
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
.KIT__PhoneInput-module__list___GgLkp .KIT__PhoneInput-module__items___UoSJS .KIT__PhoneInput-module__disabledBorder___UYdKe:hover {
|
|
1504
|
+
background: var(--base-700);
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1497
1507
|
.KIT__PhoneView-module__row___EVJyb {
|
|
1498
1508
|
display: flex;
|
|
1509
|
+
background-color: var(--input-background);
|
|
1510
|
+
border-radius: var(--border-s);
|
|
1511
|
+
border: 2px solid transparent;
|
|
1512
|
+
border: 2px solid var(--base-700, transparent);
|
|
1499
1513
|
}
|
|
1500
1514
|
|
|
1501
|
-
.KIT__PhoneView-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
border: 2px solid var(--base-700, transparent);
|
|
1508
|
-
border-right: 0;
|
|
1509
|
-
padding-left: var(--indent-s);
|
|
1510
|
-
padding-right: var(--indent-xs);
|
|
1511
|
-
background-color: var(--input-background);
|
|
1515
|
+
.KIT__PhoneView-module__codeWrapper___pUMRn {
|
|
1516
|
+
display: flex;
|
|
1517
|
+
align-items: center;
|
|
1518
|
+
flex-wrap: nowrap;
|
|
1519
|
+
padding-left: var(--indent-s);
|
|
1520
|
+
}
|
|
1512
1521
|
|
|
1513
|
-
|
|
1522
|
+
.KIT__PhoneView-module__column___bl_cw {
|
|
1523
|
+
flex-direction: column;
|
|
1524
|
+
}
|
|
1514
1525
|
|
|
1515
|
-
.KIT__PhoneView-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
border: 2px solid transparent;
|
|
1520
|
-
border: 2px solid var(--base-700, transparent);
|
|
1521
|
-
border-left: 0;
|
|
1522
|
-
align-items: center;
|
|
1523
|
-
justify-content: center;
|
|
1526
|
+
.KIT__PhoneView-module__mainInput___qB1oB {
|
|
1527
|
+
height: 50px;
|
|
1528
|
+
flex-direction: column;
|
|
1529
|
+
}
|
|
1524
1530
|
|
|
1525
|
-
|
|
1526
|
-
|
|
1531
|
+
.KIT__PhoneView-module__content___Dnmvr {
|
|
1532
|
+
display: flex;
|
|
1533
|
+
align-items: center;
|
|
1534
|
+
}
|
|
1527
1535
|
|
|
1528
|
-
.KIT__PhoneView-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1536
|
+
.KIT__PhoneView-module__phoneText___rHzpz {
|
|
1537
|
+
font-size: var(--font-size-xs);
|
|
1538
|
+
font-weight: 500;
|
|
1539
|
+
color: var(--base-400);
|
|
1540
|
+
padding-left: var(--indent-s);
|
|
1541
|
+
}
|
|
1533
1542
|
|
|
1534
|
-
.KIT__PhoneView-
|
|
1535
|
-
|
|
1536
|
-
|
|
1543
|
+
.KIT__PhoneView-module__code___y3pYW {
|
|
1544
|
+
display: flex;
|
|
1545
|
+
}
|
|
1537
1546
|
|
|
1538
|
-
.KIT__PhoneView-
|
|
1539
|
-
|
|
1540
|
-
|
|
1547
|
+
.KIT__PhoneView-module__arrow___Qw7Mg {
|
|
1548
|
+
display: flex;
|
|
1549
|
+
align-items: center;
|
|
1550
|
+
justify-content: center;
|
|
1551
|
+
width: 16px;
|
|
1552
|
+
cursor: pointer;
|
|
1553
|
+
}
|
|
1541
1554
|
|
|
1542
|
-
.KIT__PhoneView-
|
|
1543
|
-
|
|
1544
|
-
|
|
1555
|
+
.KIT__PhoneView-module__arrow___Qw7Mg svg {
|
|
1556
|
+
transition: all 0.5s;
|
|
1557
|
+
transform: rotate(180deg);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
.KIT__PhoneView-module__opened___cbAQs .KIT__PhoneView-module__arrow___Qw7Mg svg {
|
|
1561
|
+
transform: none;
|
|
1562
|
+
transform: initial;
|
|
1563
|
+
}
|
|
1545
1564
|
|
|
1546
1565
|
.KIT__PhoneView-module__input___gRvqf {
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
border
|
|
1566
|
+
padding: 0;
|
|
1567
|
+
padding-left: var(--indent-s);
|
|
1568
|
+
border: none;
|
|
1569
|
+
background: transparent;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
.KIT__PhoneView-module__mainInput___qB1oB .KIT__PhoneView-module__input___gRvqf {
|
|
1573
|
+
height: auto;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
.KIT__PhoneView-module__inputText___MRtU0 {
|
|
1577
|
+
font-weight: 400;
|
|
1578
|
+
padding: 0;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.KIT__PhoneView-module__name___glkXr {
|
|
1582
|
+
color: var(--base-0);
|
|
1583
|
+
font-size: var(--font-size-s);
|
|
1584
|
+
display: flex;
|
|
1585
|
+
align-items: center;
|
|
1586
|
+
padding-left: var(--indent-s);
|
|
1550
1587
|
}
|
|
1588
|
+
|
|
1589
|
+
.KIT__PhoneView-module__borderColorfulRed___j2jR2 {
|
|
1590
|
+
border: 1px solid var(--input-border-red);
|
|
1591
|
+
border-radius: var(--input-border-radius);
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.KIT__PhoneView-module__borderColorfulRed___j2jR2 .KIT__PhoneView-module__codeWrapper___pUMRn,
|
|
1595
|
+
.KIT__PhoneView-module__borderColorfulRed___j2jR2 .KIT__PhoneView-module__input___gRvqf {
|
|
1596
|
+
border: none;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1551
1599
|
.KIT__Code-module__drop____Xnq2 {
|
|
1552
1600
|
height: 100%;
|
|
1553
1601
|
border-radius: var(--radius-1);
|
|
@@ -1585,8 +1633,8 @@
|
|
|
1585
1633
|
margin-right: var(--indent-m);
|
|
1586
1634
|
}
|
|
1587
1635
|
|
|
1588
|
-
.KIT__Code-
|
|
1589
|
-
|
|
1636
|
+
.KIT__Code-module__drop____Xnq2.KIT__Code-module__errorBorder___MtET4 {
|
|
1637
|
+
border-color: var(--input-error-border-color);
|
|
1590
1638
|
}
|
|
1591
1639
|
|
|
1592
1640
|
.KIT__PhoneBox-module__wrapperPhoneBox___alsb0 {
|
|
@@ -1652,6 +1700,10 @@
|
|
|
1652
1700
|
border-color: var(--input-filled-border-color);
|
|
1653
1701
|
}
|
|
1654
1702
|
|
|
1703
|
+
.KIT__PhoneBox-module__input___cViDI.KIT__PhoneBox-module__errorBorder___dpINa {
|
|
1704
|
+
border-color: var(--input-error-border-color);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1655
1707
|
.KIT__PhoneBox-module__input___cViDI::-moz-placeholder {
|
|
1656
1708
|
color: rgba(255, 255, 255, 0.5);
|
|
1657
1709
|
}
|
|
@@ -1831,6 +1883,7 @@
|
|
|
1831
1883
|
--input-default-border-color: rgba(255, 255, 255, 0.1);
|
|
1832
1884
|
--input-filled-border-color: rgba(255, 255, 255, 0.3);
|
|
1833
1885
|
--input-focus-border-color: rgba(255, 255, 255, 0.3);
|
|
1886
|
+
--input-error-border-color: var(--red-1000);
|
|
1834
1887
|
--phone-box-background: rgba(255, 255, 255, 0.1);
|
|
1835
1888
|
--submit-button-background: rgb(246, 169, 19);
|
|
1836
1889
|
--tab-border-bottom: 2px solid rgba(252, 216, 32, 0.2);
|