react-gldn-kit 0.1.71 → 0.1.72

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.
@@ -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 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.flow) || types_2.ERegistrationFlow.Socket : _g, _h = data.buttonText, buttonSignUpText = _h === void 0 ? '' : _h;
73
+ var _c = data.bonusSignUp, bonusSignUp = _c === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusSignUp) || false : _c, _d = data.bonusText, modalBonusText = _d === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusText) || '' : _d, _e = data.bonusSubText, modalBonusSubText = _e === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusSubText) || '' : _e, _f = data.withCongratulationText, modalWithCongratulationText = _f === void 0 ? withCongratulationText : _f, _g = data.flow, flow = _g === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.flow) || types_2.ERegistrationFlow.Socket : _g, _h = data.buttonText, buttonSignUpText = _h === void 0 ? '' : _h;
74
74
  var isCongratulation = modalWithCongratulationText;
75
75
  var customBonusText = bonusText || modalBonusText;
76
76
  var customBonusSubText = bonusSubText || modalBonusSubText;
@@ -86,11 +86,11 @@ var SignUp = function (props) {
86
86
  setActiveForm(tabs[0].value);
87
87
  }
88
88
  }, [activeForm, tabs]);
89
- return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralFailure, classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperSignUpModal }, { children: [bonusSignUp ||
90
- (customBonusText && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.bonusText }, { children: [isCongratulation && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "wheelTwo.secondPopUp.title" }) }))), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusSubText
91
- ? customBonusSubText
92
- : 'wheelTwo.secondPopUp.subTitle' }) })), (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusText
93
- ? customBonusText
94
- : 'wheelTwo.secondPopUp.bonus' })] })))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperTabsAndForm }, { children: [activeForm !== null && tabs.length !== 1 && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, data: tabs, onChange: setActiveForm, classes: styles.tabs, type: "underline" })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.zIndex }, { children: [activeForm === types_2.ERegistrationForm.Email && ((0, jsx_runtime_1.jsx)(EmailSignUp_1.EmailSignUp, { isSelected: true, countryInfo: countryInfo, handleRegistration: sendRegistrationCommand(flow), availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.PhoneWithoutCode && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { withoutCode: true, isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.OneClick && ((0, jsx_runtime_1.jsx)(OneClickKit_1.default, { isSelected: true, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] }))] }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.authButtonText, onClick: openSignIn }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "registration.logInButton" }) }))] })) })));
89
+ return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralFailure, classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperSignUpModal }, { children: [(bonusSignUp ||
90
+ customBonusText) && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.bonusText }, { children: [isCongratulation && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "wheelTwo.secondPopUp.title" }) }))), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusSubText
91
+ ? customBonusSubText
92
+ : 'wheelTwo.secondPopUp.subTitle' }) })), (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusText
93
+ ? customBonusText
94
+ : 'wheelTwo.secondPopUp.bonus' })] }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperTabsAndForm }, { children: [activeForm !== null && tabs.length !== 1 && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, data: tabs, onChange: setActiveForm, classes: styles.tabs, type: "underline" })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.zIndex }, { children: [activeForm === types_2.ERegistrationForm.Email && ((0, jsx_runtime_1.jsx)(EmailSignUp_1.EmailSignUp, { isSelected: true, countryInfo: countryInfo, handleRegistration: sendRegistrationCommand(flow), availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.PhoneWithoutCode && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { withoutCode: true, isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.OneClick && ((0, jsx_runtime_1.jsx)(OneClickKit_1.default, { isSelected: true, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] }))] }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.authButtonText, onClick: openSignIn }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "registration.logInButton" }) }))] })) })));
95
95
  };
96
96
  exports.SignUp = SignUp;
@@ -6,6 +6,9 @@ export type SignUpProps = {
6
6
  withCongratulationText?: boolean;
7
7
  registrationSettings?: {
8
8
  flow?: ERegistrationFlow;
9
+ bonusText?: string;
10
+ bonusSubText?: string;
11
+ bonusSignUp?: boolean;
9
12
  };
10
13
  buttonText?: string;
11
14
  };
@@ -45,16 +45,16 @@ var Text_1 = require("components/Text");
45
45
  var Image_1 = require("components/ui/Image");
46
46
  var styles = __importStar(require("./Wheel.module.css"));
47
47
  var Wheel = function (props) {
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, spinsAmount = props.spinsAmount;
48
+ var _a, _b;
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, _c = props.customTime, customTime = _c === void 0 ? 6000 : _c, wheelTextColor = props.wheelTextColor, classesWheel = props.classesWheel, classesPointer = props.classesPointer, classesBorder = props.classesBorder, classesButton = props.classesButton, classesSlotName = props.classesSlotName, customSpinningAnimation = props.customSpinningAnimation, spinsAmount = props.spinsAmount, wheelButtonPressedPath = props.wheelButtonPressedPath;
50
50
  var audio = new Audio(audioPath);
51
51
  var contentRef = (0, react_1.useRef)(null);
52
- var _c = (0, react_1.useState)(0), height = _c[0], setHeight = _c[1];
53
- var _d = (0, react_1.useState)(false), isSpin = _d[0], setSpinState = _d[1];
54
- var _e = (0, react_1.useState)(false), isAnimateBorderBg = _e[0], setAnimateBorderBgStatus = _e[1];
52
+ var _d = (0, react_1.useState)(0), height = _d[0], setHeight = _d[1];
53
+ var _e = (0, react_1.useState)(false), isSpin = _e[0], setSpinState = _e[1];
54
+ var _f = (0, react_1.useState)(false), isAnimateBorderBg = _f[0], setAnimateBorderBgStatus = _f[1];
55
55
  var timer = (0, react_1.useRef)(null);
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];
56
+ var _g = (0, react_1.useState)(0), activeBorder = _g[0], setActiveBorder = _g[1];
57
+ var _h = (0, react_1.useState)(1), spins = _h[0], setSpins = _h[1];
58
58
  var handleSpin = function () {
59
59
  var _a;
60
60
  if (isSpin || spins > spinsAmount) {
@@ -132,6 +132,8 @@ var Wheel = function (props) {
132
132
  animationDuration: "".concat(customTime, "ms"),
133
133
  } }, { children: [(0, jsx_runtime_1.jsx)(Image_1.Image, { path: wheelContentPath, classes: styles.wheelContentImg }), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.list, wheelTextColor, 'KIT_Wheel_wrapper_content_disk_list') }, { children: list.map(function (l, inx) { return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.item, 'KIT_Wheel_wrapper_content_disk_list_item', inx % 2 && 'KIT_Wheel_wrapper_content_disk_odd_list_item'), style: {
134
134
  transform: "translate(-50%, -50%) rotate(".concat((360 / list.length) * inx, "deg)"),
135
- } }, { children: [l.bold && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.textBold, 'KIT_Wheel_wrapper_content_disk_list_item_text_bold') }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: l.bold }) }))), l.regular && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textRegular }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: l.regular }) })))] }), inx)); }) }))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.spinBtn, classesButton, 'KIT_Wheel_wrapper_content_button'), onClick: handleSpin }, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ className: (0, classnames_1.default)(styles.bntText, 'KIT_Wheel_wrapper_button_btnText') }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: btnText }) })), (0, jsx_runtime_1.jsx)(Image_1.Image, { path: isSpin ? wheelButtonHoverPath : wheelButtonPath, classes: styles.btnImg })] })), (0, jsx_runtime_1.jsx)(Image_1.Image, { path: slotNamePath, classes: (0, classnames_1.default)(styles.slotName, classesSlotName, 'KIT_Wheel_wrapper_content_slotName') })] }))] })));
135
+ } }, { children: [l.bold && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.textBold, 'KIT_Wheel_wrapper_content_disk_list_item_text_bold') }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: l.bold }) }))), l.regular && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textRegular }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: l.regular }) })))] }), inx)); }) }))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.spinBtn, (_b = {},
136
+ _b[styles.spinningState] = isSpin,
137
+ _b), classesButton, 'KIT_Wheel_wrapper_content_button'), onClick: handleSpin }, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ className: (0, classnames_1.default)(styles.bntText, 'KIT_Wheel_wrapper_button_btnText') }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: btnText }) })), (0, jsx_runtime_1.jsx)(Image_1.Image, { path: wheelButtonPath, classes: (0, classnames_1.default)(styles.buttonImage, styles.defaultState) }), (0, jsx_runtime_1.jsx)(Image_1.Image, { path: wheelButtonHoverPath || wheelButtonPath, classes: (0, classnames_1.default)(styles.buttonImage, styles.hoverState) }), (0, jsx_runtime_1.jsx)(Image_1.Image, { path: wheelButtonPressedPath || wheelButtonPath, classes: (0, classnames_1.default)(styles.buttonImage, styles.pressedState) })] })), (0, jsx_runtime_1.jsx)(Image_1.Image, { path: slotNamePath, classes: (0, classnames_1.default)(styles.slotName, classesSlotName, 'KIT_Wheel_wrapper_content_slotName') })] }))] })));
136
138
  };
137
139
  exports.Wheel = Wheel;
@@ -2,7 +2,8 @@ export type WheelProps = {
2
2
  borderWheelPath: [string] | [string, string];
3
3
  wheelContentPath: string;
4
4
  wheelButtonPath: string;
5
- wheelButtonHoverPath: string;
5
+ wheelButtonHoverPath?: string;
6
+ wheelButtonPressedPath?: string;
6
7
  pointerPath: string;
7
8
  slotNamePath: string;
8
9
  btnText: string;
@@ -41,7 +41,7 @@ var m1_svg_1 = require("assets/logo/m1.svg");
41
41
  var ui_1 = require("types/ui");
42
42
  var styles = __importStar(require("./Logos.module.css"));
43
43
  var Logo = function (props) {
44
- var isMobile = props.isMobile, handleLogoClick = props.handleLogoClick, _a = props.isFullView, isFullView = _a === void 0 ? false : _a, appType = props.appType, classes = props.classes;
44
+ var isMobile = props.isMobile, handleLogoClick = props.handleLogoClick, _a = props.isFullView, isFullView = _a === void 0 ? false : _a, appType = props.appType, classes = props.classes, style = props.style;
45
45
  var DesktopFullLogo = (0, react_1.useMemo)(function () {
46
46
  if (appType === ui_1.EAppType.Elon) {
47
47
  return elon_desktop_svg_1.ReactComponent;
@@ -97,8 +97,8 @@ var Logo = function (props) {
97
97
  return function () { return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}); };
98
98
  }, [appType]);
99
99
  if (isMobile) {
100
- return ((0, jsx_runtime_1.jsx)(MobileLogo, { onClick: handleLogoClick, className: (0, classnames_1.default)(styles.wrapperLogo, classes) }));
100
+ return ((0, jsx_runtime_1.jsx)(MobileLogo, { onClick: handleLogoClick, className: (0, classnames_1.default)(styles.wrapperLogo, classes), style: style }));
101
101
  }
102
- return isFullView ? ((0, jsx_runtime_1.jsx)(DesktopFullLogo, { onClick: handleLogoClick, className: (0, classnames_1.default)(styles.wrapperLogo, classes) })) : ((0, jsx_runtime_1.jsx)(DesktopShortLogo, { onClick: handleLogoClick, className: (0, classnames_1.default)(styles.wrapperLogo, classes) }));
102
+ return isFullView ? ((0, jsx_runtime_1.jsx)(DesktopFullLogo, { onClick: handleLogoClick, className: (0, classnames_1.default)(styles.wrapperLogo, classes), style: style })) : ((0, jsx_runtime_1.jsx)(DesktopShortLogo, { onClick: handleLogoClick, className: (0, classnames_1.default)(styles.wrapperLogo, classes), style: style }));
103
103
  };
104
104
  exports.Logo = Logo;
@@ -10,4 +10,5 @@ export type LogoProps = {
10
10
  isFullView?: boolean;
11
11
  handleLogoClick?: () => void;
12
12
  classes?: string;
13
+ style?: any;
13
14
  };
package/dist/main.css CHANGED
@@ -5104,13 +5104,56 @@
5104
5104
  text-shadow: 0 5px 0 #290049, 0 6.38508px 11.706px #000000;
5105
5105
  }
5106
5106
 
5107
- .KIT__Wheel-module__btnImg___rFBWp {
5107
+ .KIT__Wheel-module__spinBtn___AngbQ:hover .KIT__Wheel-module__defaultState___wVK6A,.KIT__Wheel-module__spinBtn___AngbQ:hover .KIT__Wheel-module__pressedState___xJuEH {
5108
+ display: none;
5109
+ }
5110
+
5111
+ .KIT__Wheel-module__spinBtn___AngbQ:hover .KIT__Wheel-module__hoverState____BNGp {
5112
+ display: block;
5113
+ --size: 223px;
5114
+ }
5115
+
5116
+ @media screen and (max-width: 768px) {
5117
+
5118
+ .KIT__Wheel-module__spinBtn___AngbQ:hover .KIT__Wheel-module__hoverState____BNGp {
5119
+ --size: 130px;
5120
+ }
5121
+ }
5122
+
5123
+ .KIT__Wheel-module__spinBtn___AngbQ:active .KIT__Wheel-module__defaultState___wVK6A,.KIT__Wheel-module__spinBtn___AngbQ:active .KIT__Wheel-module__hoverState____BNGp {
5124
+ display: none;
5125
+ }
5126
+
5127
+ .KIT__Wheel-module__spinBtn___AngbQ:active .KIT__Wheel-module__pressedState___xJuEH {
5128
+ display: block;
5129
+ }
5130
+
5131
+ .KIT__Wheel-module__buttonImage___pT2vb {
5108
5132
  width: var(--full);
5109
5133
  height: var(--full);
5110
5134
  -o-object-fit: contain;
5111
5135
  object-fit: contain;
5112
5136
  }
5113
5137
 
5138
+ .KIT__Wheel-module__buttonImage___pT2vb.KIT__Wheel-module__hoverState____BNGp,.KIT__Wheel-module__buttonImage___pT2vb.KIT__Wheel-module__pressedState___xJuEH {
5139
+ display: none;
5140
+ }
5141
+
5142
+ @media screen and (max-width: 768px) {
5143
+
5144
+ .KIT__Wheel-module__buttonImage___pT2vb {
5145
+ --size: 100px;
5146
+ }
5147
+ }
5148
+
5149
+ .KIT__Wheel-module__spinBtn___AngbQ.KIT__Wheel-module__spinningState___BeGrQ .KIT__Wheel-module__defaultState___wVK6A {
5150
+ display: block;
5151
+ }
5152
+
5153
+ .KIT__Wheel-module__spinBtn___AngbQ.KIT__Wheel-module__spinningState___BeGrQ .KIT__Wheel-module__hoverState____BNGp,.KIT__Wheel-module__spinBtn___AngbQ.KIT__Wheel-module__spinningState___BeGrQ .KIT__Wheel-module__pressedState___xJuEH {
5154
+ display: none;
5155
+ }
5156
+
5114
5157
  .KIT__Wheel-module__bntText___CVBR2 {
5115
5158
  position: absolute;
5116
5159
  top: var(--indent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-gldn-kit",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "keywords": [],