react-gldn-kit 0.1.64 → 0.1.66

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.
@@ -223,6 +223,8 @@ var SignUpTypeTwo = function () {
223
223
  _a[styles.pink] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.Pink,
224
224
  _a[styles.silver] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.Silver,
225
225
  _a[styles.silverTwo] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.SilverTwo,
226
+ _a[styles.grayTwo] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.GrayTwo,
227
+ _a[styles.black] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.Black,
226
228
  _a)) }, { children: [registrationTitle && ((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: styles.contentArea, style: {
227
229
  height: "calc(100% - ".concat(titleHeight, "px)"),
228
230
  } }, { 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: styles.content }, { 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 })) : ((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 = {},
@@ -42,11 +42,11 @@ var jsx_runtime_1 = require("react/jsx-runtime");
42
42
  var react_1 = require("react");
43
43
  var classnames_1 = __importDefault(require("classnames"));
44
44
  var Text_1 = require("components/Text");
45
- var styles = __importStar(require("./Wheel.module.css"));
46
45
  var Image_1 = require("components/ui/Image");
46
+ var styles = __importStar(require("./Wheel.module.css"));
47
47
  var Wheel = function (props) {
48
48
  var _a;
49
- var borderWheelPath = props.borderWheelPath, wheelContentPath = props.wheelContentPath, wheelButtonPath = props.wheelButtonPath, wheelButtonHoverPath = props.wheelButtonHoverPath, slotNamePath = props.slotNamePath, pointerPath = props.pointerPath, callbackSpinStart = props.callbackSpinStart, callbackSpinEnd = props.callbackSpinEnd, btnText = props.btnText, list = props.list, audioPath = props.audioPath, _b = props.customTime, customTime = _b === void 0 ? 6000 : _b, wheelTextColor = props.wheelTextColor, classesWheel = props.classesWheel, classesPointer = props.classesPointer, classesBorder = props.classesBorder, classesButton = props.classesButton, classesSlotName = props.classesSlotName, customSpinningAnimation = props.customSpinningAnimation;
49
+ var borderWheelPath = props.borderWheelPath, wheelContentPath = props.wheelContentPath, wheelButtonPath = props.wheelButtonPath, wheelButtonHoverPath = props.wheelButtonHoverPath, slotNamePath = props.slotNamePath, pointerPath = props.pointerPath, callbackSpinStart = props.callbackSpinStart, callbackSpinEnd = props.callbackSpinEnd, btnText = props.btnText, list = props.list, audioPath = props.audioPath, _b = props.customTime, customTime = _b === void 0 ? 6000 : _b, wheelTextColor = props.wheelTextColor, classesWheel = props.classesWheel, classesPointer = props.classesPointer, classesBorder = props.classesBorder, classesButton = props.classesButton, classesSlotName = props.classesSlotName, customSpinningAnimation = props.customSpinningAnimation, spinsAmount = props.spinsAmount;
50
50
  var audio = new Audio(audioPath);
51
51
  var contentRef = (0, react_1.useRef)(null);
52
52
  var _c = (0, react_1.useState)(0), height = _c[0], setHeight = _c[1];
@@ -54,9 +54,10 @@ var Wheel = function (props) {
54
54
  var _e = (0, react_1.useState)(false), isAnimateBorderBg = _e[0], setAnimateBorderBgStatus = _e[1];
55
55
  var timer = (0, react_1.useRef)(null);
56
56
  var _f = (0, react_1.useState)(0), activeBorder = _f[0], setActiveBorder = _f[1];
57
+ var _g = (0, react_1.useState)(1), spins = _g[0], setSpins = _g[1];
57
58
  var handleSpin = function () {
58
59
  var _a;
59
- if (isSpin) {
60
+ if (isSpin || spins > spinsAmount) {
60
61
  return;
61
62
  }
62
63
  if (audio.src && audio.duration) {
@@ -68,8 +69,10 @@ var Wheel = function (props) {
68
69
  }
69
70
  setSpinState(true);
70
71
  callbackSpinStart === null || callbackSpinStart === void 0 ? void 0 : callbackSpinStart();
72
+ setSpins(spins + 1);
71
73
  setTimeout(function () {
72
74
  callbackSpinEnd();
75
+ setSpinState(false);
73
76
  }, customTime);
74
77
  };
75
78
  (0, react_1.useLayoutEffect)(function () {
@@ -22,4 +22,5 @@ export type WheelProps = {
22
22
  classesButton?: string;
23
23
  classesSlotName?: string;
24
24
  customSpinningAnimation?: string;
25
+ spinsAmount?: number;
25
26
  };
@@ -15,6 +15,6 @@ exports.FilledArrowSvg = void 0;
15
15
  var jsx_runtime_1 = require("react/jsx-runtime");
16
16
  var FilledArrowSvg = function (props) {
17
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" }) })));
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)", fillOpacity: "0.5" }) })));
19
19
  };
20
20
  exports.FilledArrowSvg = FilledArrowSvg;
@@ -9,6 +9,7 @@ export declare enum EAppType {
9
9
  FsWin = 6,
10
10
  JabiBet = 7,
11
11
  GoblinBet = 8,
12
- M1 = 9
12
+ M1 = 9,
13
+ Cawabanga = 10
13
14
  }
14
15
  export declare const PAGINATION_STEP = 5;
@@ -12,5 +12,6 @@ var EAppType;
12
12
  EAppType[EAppType["JabiBet"] = 7] = "JabiBet";
13
13
  EAppType[EAppType["GoblinBet"] = 8] = "GoblinBet";
14
14
  EAppType[EAppType["M1"] = 9] = "M1";
15
+ EAppType[EAppType["Cawabanga"] = 10] = "Cawabanga";
15
16
  })(EAppType = exports.EAppType || (exports.EAppType = {}));
16
17
  exports.PAGINATION_STEP = 5;
@@ -45,7 +45,9 @@ export declare enum ESignUpTheme {
45
45
  Gray = "gray",
46
46
  Pink = "pink",
47
47
  Silver = "silver",
48
- SilverTwo = "silver-two"
48
+ SilverTwo = "silver-two",
49
+ GrayTwo = "gray-two",
50
+ Black = "black"
49
51
  }
50
52
  export declare enum ERegistrationSocial {
51
53
  Unknown = "Unknown",
@@ -25,6 +25,8 @@ var ESignUpTheme;
25
25
  ESignUpTheme["Pink"] = "pink";
26
26
  ESignUpTheme["Silver"] = "silver";
27
27
  ESignUpTheme["SilverTwo"] = "silver-two";
28
+ ESignUpTheme["GrayTwo"] = "gray-two";
29
+ ESignUpTheme["Black"] = "black";
28
30
  })(ESignUpTheme = exports.ESignUpTheme || (exports.ESignUpTheme = {}));
29
31
  var ERegistrationSocial;
30
32
  (function (ERegistrationSocial) {
@@ -11,7 +11,7 @@ export declare const languageSelectors: {
11
11
  [key: string]: any;
12
12
  };
13
13
  getAndSetLanguagesKitAction: (state: ZustandLanguageStoreKit) => (lang: string, path: string) => void;
14
- getBrandNameKitSelector: (state: ZustandLanguageStoreKit) => "Unknown" | "Azure" | "Elon" | "XXX" | "Opera" | "FsWin" | "JabiBet" | "GoblinBet" | "M1";
14
+ getBrandNameKitSelector: (state: ZustandLanguageStoreKit) => "Unknown" | "Azure" | "Elon" | "XXX" | "Opera" | "FsWin" | "JabiBet" | "GoblinBet" | "M1" | "Cawabanga";
15
15
  setInitialLanguageKitAction: (state: ZustandLanguageStoreKit) => (appType: import("../..").EAppType, initialLang: string, path: string) => void;
16
16
  setLanguagesKitAction: (state: ZustandLanguageStoreKit) => (lang: {
17
17
  name: string;
package/dist/main.css CHANGED
@@ -2062,6 +2062,26 @@
2062
2062
  font-size: var(--font-size-l);
2063
2063
  }
2064
2064
 
2065
+ .KIT__SignUpTypeTwo-module__grayTwo___Tqrxn {
2066
+ --background: rgba(25, 33, 44, 1);
2067
+ --border: none;
2068
+ --tab-indicator-background: rgba(39, 195, 92, 1);
2069
+ --tab-border-bottom: 2px solid rgba(39, 195, 92, 0.2);
2070
+ --currency-box-border-color: rgba(213, 163, 101, 0.5);
2071
+ --currency-box-background: rgba(14, 19, 25, 1);
2072
+ --phone-wrapper-background: rgba(14, 19, 25, 1);
2073
+ --submit-button-background: rgba(39, 195, 92, 1);
2074
+ --submit-button-color: var(--base-0);
2075
+ --track-background: var(--base-1000);
2076
+ --thumb-background: rgba(46, 52, 59, 1);
2077
+ --input-filled-border-color: rgba(255, 255, 255, 0.3);
2078
+ --input-focus-border-color: rgba(39, 195, 92, 1);
2079
+ }
2080
+
2081
+ .KIT__SignUpTypeTwo-module__grayTwo___Tqrxn .KIT__SignUpTypeTwo-module__submitButton___wN2jO {
2082
+ border-radius: var(--border-s);
2083
+ }
2084
+
2065
2085
  .KIT__SignUpTypeTwo-module__pink___cIZDT {
2066
2086
  --background: linear-gradient(181.81deg, #a21a4b -0.66%, #350717 98.3%);
2067
2087
  border: 4px solid;
@@ -2121,21 +2141,35 @@
2121
2141
  --track-background: var(--base-1000);
2122
2142
  }
2123
2143
 
2144
+ .KIT__SignUpTypeTwo-module__black___FeYQJ {
2145
+ --background: rgba(0, 0, 0, 1);
2146
+ --tab-border-bottom: 2px solid rgba(224, 168, 37, 0.2);
2147
+ --tab-indicator-background: rgba(224, 168, 37, 1);
2148
+ --submit-button-background: linear-gradient(90deg, #FFDE6A 0%, #E0A825 100%);
2149
+ --currency-box-background: rgba(24, 24, 24, 1);
2150
+ --phone-wrapper-background: rgba(24, 24, 24, 1);
2151
+ --thumb-background: rgba(36, 36, 36, 1);
2152
+ --input-focus-border-color: rgba(0, 104, 62, 0.5);
2153
+ }
2154
+
2124
2155
  .KIT__SignUpTypeTwo-module__contentArea___N15Kc {
2125
2156
  overflow-y: auto;
2126
2157
  width: 100%;
2127
2158
  }
2128
2159
 
2129
- .KIT__SignUpTypeTwo-module__contentArea___N15Kc::-webkit-scrollbar {
2160
+ .KIT__SignUpTypeTwo-module__contentArea___N15Kc::-webkit-scrollbar,
2161
+ .KIT__SignUpTypeTwo-module__wrapperSignUp___P12OH::-webkit-scrollbar {
2130
2162
  width: 9px;
2131
2163
  }
2132
2164
 
2133
- .KIT__SignUpTypeTwo-module__contentArea___N15Kc::-webkit-scrollbar-thumb {
2165
+ .KIT__SignUpTypeTwo-module__contentArea___N15Kc::-webkit-scrollbar-thumb,
2166
+ .KIT__SignUpTypeTwo-module__wrapperSignUp___P12OH::-webkit-scrollbar-thumb {
2134
2167
  background: var(--thumb-background);
2135
2168
  border-radius: 3px;
2136
2169
  }
2137
2170
 
2138
- .KIT__SignUpTypeTwo-module__contentArea___N15Kc::-webkit-scrollbar-track {
2171
+ .KIT__SignUpTypeTwo-module__contentArea___N15Kc::-webkit-scrollbar-track,
2172
+ .KIT__SignUpTypeTwo-module__wrapperSignUp___P12OH::-webkit-scrollbar-track {
2139
2173
  background: var(--track-background);
2140
2174
  }
2141
2175
 
@@ -2204,7 +2238,7 @@
2204
2238
  }
2205
2239
 
2206
2240
  .KIT__SignUpTypeTwo-module__signIn_____9U7 {
2207
- color: rgba(255, 255, 255, 0.702);
2241
+ color: rgba(255, 255, 255, 0.5);
2208
2242
  text-align: center;
2209
2243
  margin: var(--indent-l) 0;
2210
2244
  font-size: var(--font-size-s);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-gldn-kit",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "keywords": [],