react-gldn-kit 0.1.124 → 0.1.125

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.
@@ -202,6 +202,7 @@ var SignUpTypeTwo = function (props) {
202
202
  _a[styles.transparentYellow] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.TransparentYellow,
203
203
  _a[styles.brownGold] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.BrownGold,
204
204
  _a[styles.deepOcean] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.DeepOcean,
205
+ _a[styles.silverGreen] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.SilverGreen,
205
206
  _a), classes) }, { children: [registrationTitle && !isHideTitle && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title, ref: titleRef }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: registrationTitle }) }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.contentArea, contentAreaClasses), style: {
206
207
  height: "calc(100% - ".concat(titleHeight, "px)"),
207
208
  } }, { children: [!isSelected && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.warning }, { children: [(0, jsx_runtime_1.jsx)(WarningSvg_1.WarningSvg, {}), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.warningText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signUpTwo.notConfirm" }) }))] }))), bonusImagePath && ((0, jsx_runtime_1.jsx)("img", { src: bonusImagePath, className: (0, classnames_1.default)(styles.bonusImage, 'KIT_SignUpTypeTwo_wrapperSignUp_bonusImage') })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.content, contentClasses) }, { children: [Boolean(social.length) && (0, jsx_runtime_1.jsx)(SocialButtons_1.SocialButtons, { social: social }), activeForm !== null && tabs.length !== 1 && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, data: tabs, onChange: setActiveForm, classes: styles.tabs, type: "underline", tabClasses: styles.tab, activeTabClasses: styles.activeTab, indicatorClasses: styles.indicator })), (0, jsx_runtime_1.jsxs)("div", { children: [activeForm === types_3.ERegistrationForm.PhoneWithoutCode ? ((0, jsx_runtime_1.jsx)(PhoneBox_1.default, { onChange: setPhone, countryInfo: countryInfo })) : ((0, jsx_runtime_1.jsx)(InputBox_1.default, { leftImg: "/landings/assets-builder/signUpTwo/email.svg", rightImg: "", setInput: setEmail, validation: validation_1.validateEmailValue, input: email, label: "signUpTwo.tabEmail", classes: styles.emailInput })), (0, jsx_runtime_1.jsx)(PasswordBox_1.default, { onChange: setPassword }), (0, jsx_runtime_1.jsx)(CurrencyBox_1.default, {}), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.submitButton, (_b = {},
@@ -81,6 +81,16 @@ var Scratch = function (props) {
81
81
  }
82
82
  (_b = audio1.play) === null || _b === void 0 ? void 0 : _b.call(audio1);
83
83
  }; };
84
+ var getBoxBackground = function (value) {
85
+ if (!scratchedBoxes.includes(value)) {
86
+ return;
87
+ }
88
+ if (Array.isArray(backgroundScratchDone)) {
89
+ var position = scratchedBoxes.indexOf(value);
90
+ return backgroundScratchDone[position];
91
+ }
92
+ return backgroundScratchDone;
93
+ };
84
94
  (0, react_1.useEffect)(function () {
85
95
  var timer = setTimeout(function () {
86
96
  setScratchedBoxesOpacity(function (prev) {
@@ -108,7 +118,7 @@ var Scratch = function (props) {
108
118
  return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.box, (_a = {},
109
119
  _a[styles.scratched] = scratchedBoxes.includes(value),
110
120
  _a), 'KIT_Scratch_scratch_box'), style: {
111
- background: "url(".concat(backgroundScratchDone, ")"),
121
+ backgroundImage: "url(".concat(getBoxBackground(value), ")"),
112
122
  backgroundSize: '100% 100%',
113
123
  backgroundPosition: 'center',
114
124
  backgroundRepeat: 'no-repeat',
@@ -1,7 +1,7 @@
1
1
  export type ScratchProps = {
2
2
  callback: () => void;
3
3
  backgroundPath: string;
4
- backgroundScratchDone: string;
4
+ backgroundScratchDone: string | [string, string];
5
5
  scratchPath: [string, string];
6
6
  slotNamePath: string;
7
7
  audioFirstPath?: string;
@@ -6,6 +6,6 @@ export type LanguageSelectorProps = {
6
6
  isShortView?: boolean;
7
7
  };
8
8
  export declare enum EDirection {
9
- Top = 0,
10
- Bottom = 1
9
+ Top = "Top",
10
+ Bottom = "Bottom"
11
11
  }
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EDirection = void 0;
4
4
  var EDirection;
5
5
  (function (EDirection) {
6
- EDirection[EDirection["Top"] = 0] = "Top";
7
- EDirection[EDirection["Bottom"] = 1] = "Bottom";
6
+ EDirection["Top"] = "Top";
7
+ EDirection["Bottom"] = "Bottom";
8
8
  })(EDirection = exports.EDirection || (exports.EDirection = {}));
@@ -56,6 +56,7 @@ export declare enum ESignUpTheme {
56
56
  TransparentYellow = "transparent-yellow",
57
57
  BrownGold = "brown-gold",
58
58
  DeepOcean = "deep-ocean",
59
+ SilverGreen = "silver-green",
59
60
  BaseGreen = "base-green",
60
61
  BaseYellow = "base-yellow",
61
62
  BaseWhite = "base-white",
@@ -35,6 +35,7 @@ var ESignUpTheme;
35
35
  ESignUpTheme["TransparentYellow"] = "transparent-yellow";
36
36
  ESignUpTheme["BrownGold"] = "brown-gold";
37
37
  ESignUpTheme["DeepOcean"] = "deep-ocean";
38
+ ESignUpTheme["SilverGreen"] = "silver-green";
38
39
  ESignUpTheme["BaseGreen"] = "base-green";
39
40
  ESignUpTheme["BaseYellow"] = "base-yellow";
40
41
  ESignUpTheme["BaseWhite"] = "base-white";
package/dist/main.css CHANGED
@@ -2425,7 +2425,11 @@
2425
2425
  }
2426
2426
 
2427
2427
  .KIT__SignUpTypeTwo-module__silver___L4PvI {
2428
- --background: linear-gradient(183.6deg, #67615e 0.64%, #2b2b2b 97.12%);
2428
+ --background: linear-gradient(
2429
+ 183.6deg,
2430
+ rgb(103, 97, 94) 0.64%,
2431
+ rgb(43, 43, 43) 97.12%
2432
+ );
2429
2433
  --input-filled-border-color: rgba(255, 161, 0, 0.5);
2430
2434
  --input-focus-border-color: rgba(255, 161, 0, 1);
2431
2435
  --track-background: var(--base-1000);
@@ -2644,6 +2648,28 @@
2644
2648
  }
2645
2649
  }
2646
2650
 
2651
+ .KIT__SignUpTypeTwo-module__silverGreen___giUzl {
2652
+ --background: linear-gradient(180deg, #615c59 0%, #2d2d2d 100%);
2653
+ border: 4px solid;
2654
+ -o-border-image: linear-gradient(180deg, #ffa101 20.52%, #773a00 113.24%) 1;
2655
+ border-image: linear-gradient(180deg, #ffa101 20.52%, #773a00 113.24%) 1;
2656
+ --input-focus-border-color: rgba(255, 161, 0, 1);
2657
+ --input-filled-border-color: rgba(255, 161, 0, 0.5);
2658
+ --currency-box-shadow: 1px 1px 8.6px 3px rgba(253, 249, 255, 0.5);
2659
+ --phone-wrapper-background: rgba(43, 43, 43, 1);
2660
+ --currency-box-background: rgba(43, 43, 43, 1);
2661
+ --thumb-background: rgba(255, 161, 0, 1);
2662
+ --submit-button-background: rgba(41, 188, 89, 1);
2663
+ --submit-button-color: var(--base-0);
2664
+ }
2665
+
2666
+ @media screen and (max-width: 768px) {
2667
+
2668
+ .KIT__SignUpTypeTwo-module__silverGreen___giUzl {
2669
+ border: none;
2670
+ }
2671
+ }
2672
+
2647
2673
  .KIT__SignUpTypeTwo-module__contentArea___iCJXc {
2648
2674
  overflow-y: auto;
2649
2675
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-gldn-kit",
3
- "version": "0.1.124",
3
+ "version": "0.1.125",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "keywords": [],