react-gldn-kit 0.1.112 → 0.1.114

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.
@@ -86,7 +86,7 @@ var EmailSignUp = function (props) {
86
86
  !terms ||
87
87
  !isConnectedApp ||
88
88
  !age);
89
- }, [activeCurrencyId, email, password, terms]);
89
+ }, [activeCurrencyId, email, password, terms, age]);
90
90
  var handleChange = function (value) {
91
91
  var emailResponse = (0, validation_1.isEmail)({
92
92
  value: value,
@@ -95,6 +95,7 @@ var PhoneSignUp = function (props) {
95
95
  !activeCountryId ||
96
96
  !activeCurrencyId ||
97
97
  !terms ||
98
+ !age ||
98
99
  !isConnectedApp);
99
100
  }, [
100
101
  isPhoneError,
@@ -105,6 +106,7 @@ var PhoneSignUp = function (props) {
105
106
  activeCurrencyId,
106
107
  terms,
107
108
  isConnectedApp,
109
+ age,
108
110
  ]);
109
111
  var handleIsRequested = function () {
110
112
  setRequestedCodeState(true);
@@ -163,6 +165,6 @@ var PhoneSignUp = function (props) {
163
165
  var PHONE_PROPS = withoutCode
164
166
  ? constants_1.PHONE_PROPS_WITHOUT_CONFIRMATION
165
167
  : constants_1.PHONE_PROPS_WITH_CONFIRMATION;
166
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, __assign({}, PHONE_PROPS, { label: "registrations.inputs.phone", size: "full", defaultValue: "+", onChange: setPhone, countryInfo: countryInfo, requestCallback: handleIsRequested, classesWrapper: classes, disabled: isRequestedCode, classes: (0, classnames_1.default)(styles.marginB, styles.phoneInput, classes), requestCode: !withoutCode ? requestCode : undefined, buttonClasses: phoneStyles.authButton, labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.input })), !withoutCode && isRequestedCode && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.code", size: "full", isHidePlaceholder: true, disabled: !isRequestedCode, onChange: handleChange('code'), classes: (0, classnames_1.default)(styles.marginB, classes), labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.input })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.password", size: "full", isHidePlaceholder: true, onChange: handleChange('password'), classes: (0, classnames_1.default)(styles.marginB, classes), labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.input }), (0, jsx_runtime_1.jsx)(CountrySelector_1.CountrySelector, { countryInfo: countryInfo, classes: (0, classnames_1.default)(styles.marginB, classes), dropdownClasses: styles.dropdown, classesItem: phoneStyles.selectorMainItem, type: "secondary" }), (0, jsx_runtime_1.jsx)(CurrencySelector_1.CurrencySelector, { availableCurrencies: availableCurrencies, countryInfo: countryInfo, classes: (0, classnames_1.default)(styles.marginB, classes), dropdownClasses: styles.dropdown, classesItem: phoneStyles.selectorMainItem, type: "secondary" }), (0, jsx_runtime_1.jsx)(DocsCheckBox_1.DocsCheckBox, { terms: terms, age: age, handleOpenDoc: handleOpenDoc, handleToggleState: handleToggleState }), (0, jsx_runtime_1.jsx)(PromocodeInput_1.PromocodeInput, { value: promoCode, handleChange: handleChangePromoCode, clearValue: clearPromoCode }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "08x", requestId: types_1.ERequestIds.Registration, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, { text: 'registrations.submitBtn', disabled: isDisabledSubmitButton, color: "primary", handleClick: handleSubmitForm, size: "--button-full", centreText: true, buttonHeight: "--button-height-full", classes: (0, classnames_1.default)(phoneStyles.authButton, styles.marginB, classes) }) }))] }));
168
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, __assign({}, PHONE_PROPS, { label: "registrations.inputs.phone", size: "full", defaultValue: "+", onChange: setPhone, countryInfo: countryInfo, requestCallback: handleIsRequested, classesWrapper: classes, disabled: isRequestedCode, classes: (0, classnames_1.default)(styles.marginB, styles.phoneInput, classes), requestCode: !withoutCode ? requestCode : undefined, buttonClasses: phoneStyles.authButton, labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.input })), !withoutCode && isRequestedCode && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.code", size: "full", isHidePlaceholder: true, disabled: !isRequestedCode, onChange: handleChange('code'), classes: (0, classnames_1.default)(styles.marginB, classes), labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.input })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.password", size: "full", isHidePlaceholder: true, onChange: handleChange('password'), classes: (0, classnames_1.default)(styles.marginB, classes), labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.input }), (0, jsx_runtime_1.jsx)(CountrySelector_1.CountrySelector, { countryInfo: countryInfo, classes: (0, classnames_1.default)(styles.marginB, classes), dropdownClasses: styles.dropdown, classesItem: phoneStyles.selectorMainItem, type: "secondary" }), (0, jsx_runtime_1.jsx)(CurrencySelector_1.CurrencySelector, { availableCurrencies: availableCurrencies, countryInfo: countryInfo, classes: (0, classnames_1.default)(styles.marginB, classes), dropdownClasses: styles.dropdown, classesItem: phoneStyles.selectorMainItem, type: "secondary" }), (0, jsx_runtime_1.jsx)(PromocodeInput_1.PromocodeInput, { value: promoCode, handleChange: handleChangePromoCode, clearValue: clearPromoCode }), (0, jsx_runtime_1.jsx)(DocsCheckBox_1.DocsCheckBox, { terms: terms, age: age, handleOpenDoc: handleOpenDoc, handleToggleState: handleToggleState }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "08x", requestId: types_1.ERequestIds.Registration, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, { text: 'registrations.submitBtn', disabled: isDisabledSubmitButton, color: "primary", handleClick: handleSubmitForm, size: "--button-full", centreText: true, buttonHeight: "--button-height-full", classes: (0, classnames_1.default)(phoneStyles.authButton, styles.marginB, classes) }) }))] }));
167
169
  };
168
170
  exports.PhoneSignUp = PhoneSignUp;
@@ -109,6 +109,7 @@ var EmailConfirmation = function () {
109
109
  }, [notifications]);
110
110
  return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperEmailConfirmation, styles.column, (_a = {},
111
111
  _a[styles.white] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.BaseWhite,
112
+ _a[styles.yellow] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.BaseYellow,
112
113
  _a[styles.whiteYellow] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteYellow,
113
114
  _a[styles.whitePurple] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple,
114
115
  _a[styles.whiteBlue] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue,
@@ -111,6 +111,7 @@ var NumberConfirmation = function () {
111
111
  }, [notifications]);
112
112
  return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperNumberConfirmation, styles.column, (_a = {},
113
113
  _a[styles.white] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.BaseWhite,
114
+ _a[styles.yellow] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.BaseYellow,
114
115
  _a[styles.whiteYellow] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteYellow,
115
116
  _a[styles.whitePurple] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple,
116
117
  _a[styles.whiteBlue] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue,
@@ -294,7 +294,9 @@ var Alerts = function (props) {
294
294
  _c[styles.yellowSignUp] = (modalType === types_1.EModalTypes.SignIn ||
295
295
  modalType === types_1.EModalTypes.SignUp ||
296
296
  modalType === types_1.EModalTypes.LostPassword ||
297
- modalType === types_1.EModalTypes.SetNewPassword) &&
297
+ modalType === types_1.EModalTypes.SetNewPassword ||
298
+ modalType === types_1.EModalTypes.NumberConfirmation ||
299
+ modalType === types_1.EModalTypes.EmailConfirmation) &&
298
300
  types_2.ESignUpTheme[additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.registrationTheme] === types_2.ESignUpTheme.BaseYellow,
299
301
  _c[styles.whiteSignUp] = (modalType === types_1.EModalTypes.SignIn ||
300
302
  modalType === types_1.EModalTypes.SignUp ||
package/dist/main.css CHANGED
@@ -4436,6 +4436,17 @@
4436
4436
  --input-code-color: var(--base-1000);
4437
4437
  }
4438
4438
 
4439
+ .KIT__NumberConfirmation-module__yellow___23F74 {
4440
+ --button-primary-border: none;
4441
+ --button-color-primary-text: var(--base-1000);
4442
+ --button-color-primary: linear-gradient(
4443
+ 90deg,
4444
+ rgba(255, 222, 106, 1) 23%,
4445
+ rgba(224, 168, 37, 1) 67%
4446
+ );
4447
+ --input-code-background: rgba(36, 36, 36, 1);
4448
+ }
4449
+
4439
4450
  .KIT__NumberConfirmation-module__whiteYellow___CGY2s,
4440
4451
  .KIT__NumberConfirmation-module__whiteBlue___TnqTv,
4441
4452
  .KIT__NumberConfirmation-module__whitePurple___oh3mh {
@@ -4449,7 +4460,7 @@
4449
4460
  }
4450
4461
 
4451
4462
  .KIT__NumberConfirmation-module__whiteYellow___CGY2s {
4452
- --number-confirmation-resend-code-span-color: rgba(252, 212, 53, 1) ;
4463
+ --number-confirmation-resend-code-span-color: rgba(252, 212, 53, 1);
4453
4464
  --button-color-primary: rgb(252, 212, 53);
4454
4465
  }
4455
4466
 
@@ -4506,7 +4517,10 @@
4506
4517
 
4507
4518
  .KIT__NumberConfirmation-module__resendCode___zdM3H span {
4508
4519
  color: rgba(69, 118, 244, 1);
4509
- color: var(--number-confirmation-resend-code-span-color, rgba(69, 118, 244, 1));
4520
+ color: var(
4521
+ --number-confirmation-resend-code-span-color,
4522
+ rgba(69, 118, 244, 1)
4523
+ );
4510
4524
  font-weight: 600;
4511
4525
  }
4512
4526
 
@@ -4531,6 +4545,17 @@
4531
4545
  --input-code-color: var(--base-1000);
4532
4546
  }
4533
4547
 
4548
+ .KIT__EmailConfirmation-module__yellow___Y6bwe {
4549
+ --button-primary-border: none;
4550
+ --button-color-primary-text: var(--base-1000);
4551
+ --button-color-primary: linear-gradient(
4552
+ 90deg,
4553
+ rgba(255, 222, 106, 1) 23%,
4554
+ rgba(224, 168, 37, 1) 67%
4555
+ );
4556
+ --input-code-background: rgba(36, 36, 36, 1);
4557
+ }
4558
+
4534
4559
  .KIT__EmailConfirmation-module__whiteYellow___dLQLm,
4535
4560
  .KIT__EmailConfirmation-module__whiteBlue___rLt8v,
4536
4561
  .KIT__EmailConfirmation-module__whitePurple___Xh7x8 {
@@ -4544,7 +4569,7 @@
4544
4569
  }
4545
4570
 
4546
4571
  .KIT__EmailConfirmation-module__whiteYellow___dLQLm {
4547
- --number-confirmation-resend-code-span-color: rgba(252, 212, 53, 1) ;
4572
+ --number-confirmation-resend-code-span-color: rgba(252, 212, 53, 1);
4548
4573
  --button-color-primary: rgb(252, 212, 53);
4549
4574
  }
4550
4575
 
@@ -4600,7 +4625,10 @@
4600
4625
 
4601
4626
  .KIT__EmailConfirmation-module__resendCode___zy06h span {
4602
4627
  color: rgba(69, 118, 244, 1);
4603
- color: var(--number-confirmation-resend-code-span-color, rgba(69, 118, 244, 1));
4628
+ color: var(
4629
+ --number-confirmation-resend-code-span-color,
4630
+ rgba(69, 118, 244, 1)
4631
+ );
4604
4632
  font-weight: 600;
4605
4633
  }
4606
4634
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-gldn-kit",
3
- "version": "0.1.112",
3
+ "version": "0.1.114",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "keywords": [],