react-gldn-kit 0.1.89 → 0.1.90

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 (30) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/index.js +12 -10
  3. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/EmailConfirmation/index.d.ts +2 -0
  4. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/EmailConfirmation/index.js +86 -0
  5. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordEmailForm/index.js +2 -1
  6. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/components/MoreInfo/index.d.ts +2 -0
  7. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/components/MoreInfo/index.js +50 -0
  8. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/index.js +2 -1
  9. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/NumberConfirmarion/components/InputCode/index.d.ts +7 -0
  10. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/NumberConfirmarion/components/InputCode/index.js +90 -0
  11. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/NumberConfirmarion/constants.d.ts +2 -0
  12. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/NumberConfirmarion/constants.js +5 -0
  13. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/NumberConfirmarion/index.d.ts +2 -0
  14. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/NumberConfirmarion/index.js +86 -0
  15. package/dist/lib/components/Modals/Alert/components/SetNewPassword/index.js +73 -5
  16. package/dist/lib/components/Modals/Alert/index.js +21 -1
  17. package/dist/lib/components/SocialButtons/index.d.ts +2 -1
  18. package/dist/lib/components/SocialButtons/index.js +3 -2
  19. package/dist/lib/components/ui/Icons/Base/OpenEyeSvg.js +1 -1
  20. package/dist/lib/components/ui/Icons/InfoThirdSvg.d.ts +2 -0
  21. package/dist/lib/components/ui/Icons/InfoThirdSvg.js +20 -0
  22. package/dist/lib/components/ui/Inputs/PhoneInput/index.js +7 -6
  23. package/dist/lib/components/ui/Inputs/PhoneInput/types.d.ts +1 -0
  24. package/dist/lib/constants/translates.d.ts +6 -0
  25. package/dist/lib/constants/translates.js +6 -0
  26. package/dist/lib/utils/shared.js +4 -0
  27. package/dist/lib/zustandStore/alerts/modal/types.d.ts +2 -0
  28. package/dist/lib/zustandStore/alerts/modal/types.js +2 -0
  29. package/dist/main.css +200 -0
  30. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import { IconProps } from './types';
2
+ export declare const InfoThirdSvg: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -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.InfoThirdSvg = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var InfoThirdSvg = function (props) {
17
+ var _a = props.width, width = _a === void 0 ? '24' : _a, _b = props.height, height = _b === void 0 ? '24' : _b, classes = props.classes, handleClick = props.handleClick;
18
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: width, height: height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM11 6.375L11 8.625L13 8.625L13 6.375L11 6.375ZM11 9.75L11 17.625L13 17.625L13 9.75L11 9.75Z", fill: "#4576F4" }) })));
19
+ };
20
+ exports.InfoThirdSvg = InfoThirdSvg;
@@ -47,16 +47,17 @@ var BaseButton_1 = require("components/ui/Buttons/BaseButton");
47
47
  var Timer_1 = __importDefault(require("components/ui/Timer"));
48
48
  var WorldSvg_1 = require("components/ui/Icons/FlagIcons/WorldSvg");
49
49
  var PhoneView_1 = __importDefault(require("./components/PhoneView"));
50
+ var MoreInfo_1 = __importDefault(require("components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/components/MoreInfo"));
50
51
  var constant_1 = require("../BaseInput/constant");
51
52
  var mock_1 = require("constants/mock");
52
53
  var constants_1 = require("./constants");
53
54
  var styles = __importStar(require("./PhoneInput.module.css"));
54
55
  var PhoneInput = function (props) {
55
- var withConfirm = props.withConfirm, requestId = props.requestId, sendDataType = props.sendDataType, children = props.children, classesWrapper = props.classesWrapper, requestCallback = props.requestCallback, onChange = props.onChange, sendKey = props.sendKey, countryCodeDefault = props.countryCodeDefault, _a = props.section, section = _a === void 0 ? undefined : _a, requestCode = props.requestCode, countryInfo = props.countryInfo, buttonClasses = props.buttonClasses, errorText = props.errorText, itemsClasses = props.itemsClasses;
56
- var _b = (0, react_1.useState)(__assign(__assign({}, constant_1.DEFAULT_INPUT_VALUE), { value: '+' })), phone = _b[0], setPhone = _b[1];
57
- var _c = (0, react_1.useState)(false), isOpened = _c[0], setOpenState = _c[1];
58
- var _d = (0, react_1.useState)(false), isRequestedCode = _d[0], setRequestedCodeStatus = _d[1];
59
- var _e = (0, react_1.useState)(null), countryPhoneSettings = _e[0], setCountryPhoneSettings = _e[1];
56
+ var withConfirm = props.withConfirm, requestId = props.requestId, sendDataType = props.sendDataType, children = props.children, classesWrapper = props.classesWrapper, requestCallback = props.requestCallback, onChange = props.onChange, sendKey = props.sendKey, countryCodeDefault = props.countryCodeDefault, _a = props.section, section = _a === void 0 ? undefined : _a, requestCode = props.requestCode, countryInfo = props.countryInfo, buttonClasses = props.buttonClasses, errorText = props.errorText, itemsClasses = props.itemsClasses, _b = props.withInfo, withInfo = _b === void 0 ? false : _b;
57
+ var _c = (0, react_1.useState)(__assign(__assign({}, constant_1.DEFAULT_INPUT_VALUE), { value: '+' })), phone = _c[0], setPhone = _c[1];
58
+ var _d = (0, react_1.useState)(false), isOpened = _d[0], setOpenState = _d[1];
59
+ var _e = (0, react_1.useState)(false), isRequestedCode = _e[0], setRequestedCodeStatus = _e[1];
60
+ var _f = (0, react_1.useState)(null), countryPhoneSettings = _f[0], setCountryPhoneSettings = _f[1];
60
61
  var handleRequestCode = function () {
61
62
  if (!withConfirm) {
62
63
  return;
@@ -158,6 +159,6 @@ var PhoneInput = function (props) {
158
159
  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.content }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.list }, { children: [(0, jsx_runtime_1.jsx)(PhoneView_1.default, __assign({ 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, errorText: errorText }, { children: children })), isOpened && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.items, itemsClasses) }, { children: Object.values(constants_1.PHONE_MASK).map(function (p) {
159
160
  var CountryFlag = p.Flag;
160
161
  return ((0, jsx_runtime_1.jsx)("div", __assign({ onClick: handleChooseSettings(p), className: styles.item }, { children: (0, jsx_runtime_1.jsx)(PhoneView_1.default, { 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
- }) })))] })), (errorText || phone.errorText) && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.error }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: errorText || 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
+ }) })))] })), (errorText || phone.errorText) && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.error }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: errorText || phone.errorText }) })))] })), withInfo && (0, jsx_runtime_1.jsx)(MoreInfo_1.default, {}), 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
163
  };
163
164
  exports.PhoneInput = PhoneInput;
@@ -6,6 +6,7 @@ export type PhoneInputProps = BaseInputProps & (PhoneInputPropsWithConfirmation
6
6
  countryInfo?: any;
7
7
  buttonClasses?: string;
8
8
  itemsClasses?: string;
9
+ withInfo?: boolean;
9
10
  };
10
11
  export type PhoneInputPropsWithoutConfirmation = {
11
12
  withConfirm: false | undefined;
@@ -50,4 +50,10 @@ export declare const DICTIONARY: {
50
50
  claimConfirmation: {
51
51
  title: string;
52
52
  };
53
+ numberConfirmation: {
54
+ title: string;
55
+ };
56
+ emailConfirmation: {
57
+ title: string;
58
+ };
53
59
  };
@@ -53,4 +53,10 @@ exports.DICTIONARY = {
53
53
  claimConfirmation: {
54
54
  title: 'bonusCabinet.cancelBonus.title',
55
55
  },
56
+ numberConfirmation: {
57
+ title: 'recoveryPsw.numberConfirmation.title',
58
+ },
59
+ emailConfirmation: {
60
+ title: 'recoveryPsw.emailConfirmation.title',
61
+ },
56
62
  };
@@ -228,6 +228,10 @@ var getModalTitle = function (type) {
228
228
  return translates_1.DICTIONARY.cancelBonus.title;
229
229
  case types_1.EModalTypes.ClaimConfirmation:
230
230
  return translates_1.DICTIONARY.claimConfirmation.title;
231
+ case types_1.EModalTypes.NumberConfirmarion:
232
+ return translates_1.DICTIONARY.numberConfirmation.title;
233
+ case types_1.EModalTypes.EmailConfirmation:
234
+ return translates_1.DICTIONARY.emailConfirmation.title;
231
235
  default:
232
236
  return '';
233
237
  }
@@ -61,6 +61,8 @@ export declare enum EModalTypes {
61
61
  SignUpThree = 55,
62
62
  SignInThree = 56,
63
63
  LostPasswordThree = 57,
64
+ NumberConfirmarion = 58,
65
+ EmailConfirmation = 59,
64
66
  AssignCurrency = "assign-currency"
65
67
  }
66
68
  export {};
@@ -64,5 +64,7 @@ var EModalTypes;
64
64
  EModalTypes[EModalTypes["SignUpThree"] = 55] = "SignUpThree";
65
65
  EModalTypes[EModalTypes["SignInThree"] = 56] = "SignInThree";
66
66
  EModalTypes[EModalTypes["LostPasswordThree"] = 57] = "LostPasswordThree";
67
+ EModalTypes[EModalTypes["NumberConfirmarion"] = 58] = "NumberConfirmarion";
68
+ EModalTypes[EModalTypes["EmailConfirmation"] = 59] = "EmailConfirmation";
67
69
  EModalTypes["AssignCurrency"] = "assign-currency";
68
70
  })(EModalTypes = exports.EModalTypes || (exports.EModalTypes = {}));
package/dist/main.css CHANGED
@@ -1552,6 +1552,58 @@
1552
1552
  color: var(--x-reg-color);
1553
1553
  }
1554
1554
 
1555
+ .KIT__MoreInfo-module__wrapperMoreInfo___p5znl {
1556
+ border-radius: var(--border-s);
1557
+ border: var(--lost-password-phone-info-border);
1558
+ width: 100%;
1559
+ display: flex;
1560
+ flex-direction: column;
1561
+ align-items: center;
1562
+ padding: var(--indent-m);
1563
+ }
1564
+
1565
+ .KIT__MoreInfo-module__title___LsgbT {
1566
+ display: flex;
1567
+ width: 100%;
1568
+ align-items: center;
1569
+ justify-content: space-between;
1570
+ }
1571
+
1572
+ .KIT__MoreInfo-module__arrowButton___pPCPW {
1573
+ transform: rotate(180deg);
1574
+ width: 16px;
1575
+ height: 9px;
1576
+ }
1577
+
1578
+ .KIT__MoreInfo-module__left___rDJRY {
1579
+ display: flex;
1580
+ align-items: center;
1581
+ gap: var(--indent-xs);
1582
+ }
1583
+
1584
+ .KIT__MoreInfo-module__mainInfo___iavDV {
1585
+ color: var(--lost-password-phone-info-main-color);
1586
+ font-weight: 500;
1587
+ font-size: var(--font-size-s);
1588
+ }
1589
+
1590
+ .KIT__MoreInfo-module__instructionsBlock___YP4tE {
1591
+ display: flex;
1592
+ flex-direction: column;
1593
+ gap: var(--indent-s);
1594
+ }
1595
+
1596
+ .KIT__MoreInfo-module__instruction___Baphm {
1597
+ color: var(--lost-password-phone-info-instruction);
1598
+ font-size: var(--font-size-s);
1599
+ line-height: 1.2;
1600
+ list-style-position: inside;
1601
+ }
1602
+
1603
+ .KIT__MoreInfo-module__instructionImage___rlm62 {
1604
+ width: 100%;
1605
+ }
1606
+
1555
1607
  .KIT__PhoneInput-module__input___hyTKa {
1556
1608
  border-radius: var(--border-s);
1557
1609
  border: var(--input-border);
@@ -2778,6 +2830,12 @@
2778
2830
  }
2779
2831
 
2780
2832
 
2833
+ .KIT__SignIn-module__wrapperReferralCopyContent___mZnt5 {
2834
+ display: flex;
2835
+ flex-direction: column;
2836
+ gap: var(--indent-m);
2837
+ }
2838
+
2781
2839
  .KIT__SignIn-module__yellow___IgXCq {
2782
2840
  --green-100: rgba(255, 222, 106, 1);
2783
2841
  --input-background: rgba(36, 36, 36, 1);
@@ -2889,6 +2947,10 @@
2889
2947
  color: #4576f4;
2890
2948
  }
2891
2949
 
2950
+ .KIT__SignIn-module__wrapperButtons___NBdOl {
2951
+ order: 1;
2952
+ }
2953
+
2892
2954
  @media (min-width: 768px) {
2893
2955
  .KIT__SignIn-module__wrapperSignInModal___TsZU2 {
2894
2956
  width: 500px;
@@ -3529,12 +3591,24 @@
3529
3591
  width: var(--full);
3530
3592
  }
3531
3593
 
3594
+ .KIT__LostPasswordEmailForm-module__title___tVFWS {
3595
+ color: var(--lost-password-title-color);
3596
+ font-size: var(--font-size-s);
3597
+ }
3598
+
3532
3599
  .KIT__LostPasswordPhoneForm-module__items___VImtL {
3533
3600
  position: relative;
3534
3601
  top: var(--indent-xs);
3535
3602
  margin-bottom: var(--indent-xs);
3536
3603
  }
3537
3604
 
3605
+ .KIT__LostPasswordPhoneForm-module__title___xJ6L8 {
3606
+ color: var(--lost-password-title-color);
3607
+ font-size: var(--font-size-s);
3608
+ margin-bottom: var(--indent-m);
3609
+ }
3610
+
3611
+
3538
3612
  .KIT__LostPassword-module__yellow___dOi3Z {
3539
3613
  --green-100: rgba(255, 222, 106, 1);
3540
3614
  --input-background: rgba(36, 36, 36, 1);
@@ -3559,6 +3633,24 @@
3559
3633
  gap: var(--indent-m);
3560
3634
  }
3561
3635
 
3636
+ .KIT__SetNewPassword-module__enterPassword___oxQXM {
3637
+ color: var(--set-new-password-enter-password-color);
3638
+ font-size: var(--font-size-s);
3639
+ line-height: 1.2;
3640
+ }
3641
+
3642
+ .KIT__SetNewPassword-module__passwordRequirements___AL8uS {
3643
+ color: var(--set-new-password-requirements-color);
3644
+ font-size: var(--font-size-s);
3645
+ line-height: 1.2;
3646
+ }
3647
+
3648
+ .KIT__SetNewPassword-module__errorBorder___bUMcB,
3649
+ .KIT__SetNewPassword-module__errorBorder___bUMcB label {
3650
+ border-color: var(--input-border-red);
3651
+ color: var(--input-border-red);
3652
+ }
3653
+
3562
3654
  .KIT__SignInThird-module__wrapperReferralCopyContent___zr3MY {
3563
3655
  --semi-dark-gray: rgb(46, 58, 76);
3564
3656
  --third-primary-color: rgb(252, 212, 53);
@@ -4005,6 +4097,114 @@
4005
4097
  .KIT__AssignCurrency-module__wrapperAssignCurrency___c9iVW .KIT__AssignCurrency-module__marginB___ayRpt {
4006
4098
  margin-bottom: 0;
4007
4099
  }
4100
+ .KIT__InputCode-module__inputs___ruTGu {
4101
+ display: flex;
4102
+ gap: var(--indent-xs);
4103
+ }
4104
+
4105
+ .KIT__InputCode-module__box___nOgRE {
4106
+ --size: 50px;
4107
+ width: 50px;
4108
+ width: var(--size);
4109
+ height: 50px;
4110
+ height: var(--size);
4111
+ border-radius: var(--border-m);
4112
+ font-weight: 500;
4113
+ line-height: 1.2;
4114
+ color: var(--input-code-color);
4115
+ background: var(--input-code-background);
4116
+ text-align: center;
4117
+ }
4118
+
4119
+ .KIT__InputCode-module__errorBorder___G94GS {
4120
+ border: 1px solid var(--input-border-red);
4121
+ }
4122
+
4123
+ .KIT__NumberConfirmarion-module__wrapperNumberConfirmation___qoaO4 {
4124
+ justify-content: space-between;
4125
+ gap: var(--indent-l);
4126
+ }
4127
+ .KIT__NumberConfirmarion-module__top___V4z9r {
4128
+ gap: var(--indent-l);
4129
+ }
4130
+
4131
+ .KIT__NumberConfirmarion-module__column___KYZbO {
4132
+ display: flex;
4133
+ flex-direction: column;
4134
+ }
4135
+
4136
+ .KIT__NumberConfirmarion-module__center___WO4xE {
4137
+ align-items: center;
4138
+ }
4139
+ .KIT__NumberConfirmarion-module__instructionImage___DjzjP {
4140
+ width: 100%;
4141
+ }
4142
+
4143
+ .KIT__NumberConfirmarion-module__enterDigits___pTefy {
4144
+ color: var(--number-confirmation-enter-digits-color);
4145
+ line-height: 1.2;
4146
+ font-size: var(--font-size-s);
4147
+ }
4148
+
4149
+ .KIT__NumberConfirmarion-module__time___xovKG {
4150
+ color: var(--number-confirmation-time-color);
4151
+ font-size: var(--font-size-xs);
4152
+ }
4153
+
4154
+ .KIT__NumberConfirmarion-module__resendCode___PfiNb {
4155
+ text-align: center;
4156
+ font-size: var(--font-size-s);
4157
+ color: var(--number-confirmation-resend-code-color);
4158
+ }
4159
+
4160
+ .KIT__NumberConfirmarion-module__resendCode___PfiNb span {
4161
+ color: var(--number-confirmation-resend-code-span-color);
4162
+ font-weight: 600;
4163
+ }
4164
+
4165
+ .KIT__EmailConfirmation-module__wrapperEmailConfirmation___IQart {
4166
+ justify-content: space-between;
4167
+ gap: var(--indent-l);
4168
+ }
4169
+
4170
+ .KIT__EmailConfirmation-module__top___zY8CC {
4171
+ gap: var(--indent-l);
4172
+ }
4173
+
4174
+ .KIT__EmailConfirmation-module__column___D5rO9 {
4175
+ display: flex;
4176
+ flex-direction: column;
4177
+ }
4178
+
4179
+ .KIT__EmailConfirmation-module__center___FtMMc {
4180
+ align-items: center;
4181
+ }
4182
+ .KIT__EmailConfirmation-module__instructionImage___k0Np8 {
4183
+ width: 100%;
4184
+ }
4185
+
4186
+ .KIT__EmailConfirmation-module__enterDigits___Wo9lh {
4187
+ color: var(--number-confirmation-enter-digits-color);
4188
+ line-height: 1.2;
4189
+ font-size: var(--font-size-s);
4190
+ }
4191
+
4192
+ .KIT__EmailConfirmation-module__time___agyne {
4193
+ color: var(--number-confirmation-time-color);
4194
+ font-size: var(--font-size-xs);
4195
+ }
4196
+
4197
+ .KIT__EmailConfirmation-module__resendCode___zy06h {
4198
+ text-align: center;
4199
+ font-size: var(--font-size-s);
4200
+ color: var(--number-confirmation-resend-code-color);
4201
+ }
4202
+
4203
+ .KIT__EmailConfirmation-module__resendCode___zy06h span {
4204
+ color: var(--number-confirmation-resend-code-span-color);
4205
+ font-weight: 600;
4206
+ }
4207
+
4008
4208
  .KIT__Alert-module__wrapperModal___lOle6 {
4009
4209
  width: 100%;
4010
4210
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-gldn-kit",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "keywords": [],