react-gldn-kit 0.1.46 → 0.1.48
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.
- package/dist/index.js +1 -1
- package/dist/lib/components/BattlesCard/index.js +2 -2
- package/dist/lib/components/BattlesCard/types.d.ts +1 -0
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/index.js +3 -0
- package/dist/lib/zustandStore/alerts/modal/types.d.ts +9 -9
- package/dist/lib/zustandStore/alerts/modal/types.js +9 -9
- package/dist/lib/zustandStore/forms/signUp/store.js +5 -1
- package/dist/main.css +32 -4
- package/package.json +1 -1
|
@@ -50,11 +50,11 @@ var ui_1 = require("types/ui");
|
|
|
50
50
|
var styles = __importStar(require("./BattlesCard.module.css"));
|
|
51
51
|
var BattlesCard = function (props) {
|
|
52
52
|
var _a, _b;
|
|
53
|
-
var id = props.id, handleClick = props.handleClick, providerName = props.providerName, name = props.name, classes = props.classes, isInHouse = props.isInHouse, isFinished = props.isFinished, detailsText = props.detailsText, battleText = props.battleText, imagePath = props.imagePath, _c = props.appType, appType = _c === void 0 ? ui_1.EAppType.Unknown : _c, _d = props.endDate, endDate = _d === void 0 ? 0 : _d, _e = props.startDate, startDate = _e === void 0 ? 0 : _e, _f = props.prize, prize = _f === void 0 ? 0 : _f, contentClasses = props.contentClasses;
|
|
53
|
+
var id = props.id, handleClick = props.handleClick, providerName = props.providerName, name = props.name, classes = props.classes, isInHouse = props.isInHouse, isFinished = props.isFinished, detailsText = props.detailsText, battleText = props.battleText, imagePath = props.imagePath, _c = props.appType, appType = _c === void 0 ? ui_1.EAppType.Unknown : _c, _d = props.endDate, endDate = _d === void 0 ? 0 : _d, _e = props.startDate, startDate = _e === void 0 ? 0 : _e, _f = props.prize, prize = _f === void 0 ? 0 : _f, contentClasses = props.contentClasses, battleName = props.battleName;
|
|
54
54
|
var activeLanguage = (0, store_1.useZustandLanguagesKitStore)(selectors_1.languageSelectors.getActiveLanguageNameKitSelector);
|
|
55
55
|
var path = imagePath ||
|
|
56
56
|
"/image/tournaments/".concat(id, "_[").concat(activeLanguage, "]").concat(isFinished ? '_finished' : '', ".webp");
|
|
57
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperBattlesCard, classes) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.imageWrapper }, { children: [(0, jsx_runtime_1.jsx)(HOCImageLoader_1.HOCImageLoader, __assign({ src: path.replace("[".concat(activeLanguage, "]"), activeLanguage), classes: styles.image }, { children: (0, jsx_runtime_1.jsx)("img", { src: imagePath || path.replace("[".concat(activeLanguage, "]"), 'en'), className: styles.image }) })), isInHouse && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperContent, contentClasses) }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Logos_1.Logo, { appType: appType, isMobile: false }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.date }, { children: [startDate, " - ", endDate] }))] }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.prizeWrapper }, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "tournaments.prize", specValue: '' }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.prize }, { children: prize }))] }))] })))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.textBox }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.providerName, (_a = {},
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperBattlesCard, classes) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.imageWrapper }, { children: [(0, jsx_runtime_1.jsx)(HOCImageLoader_1.HOCImageLoader, __assign({ src: path.replace("[".concat(activeLanguage, "]"), activeLanguage), classes: styles.image }, { children: (0, jsx_runtime_1.jsx)("img", { src: imagePath || path.replace("[".concat(activeLanguage, "]"), 'en'), className: styles.image }) })), isInHouse && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperContent, contentClasses) }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Logos_1.Logo, { appType: appType, isMobile: false }), battleName && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.battleName }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: battleName }) }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.date }, { children: [startDate, " - ", endDate] }))] }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.prizeWrapper }, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "tournaments.prize", specValue: '' }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.prize }, { children: prize }))] }))] })))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.textBox }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.providerName, (_a = {},
|
|
58
58
|
_a[styles.inHouseBattleName] = isInHouse,
|
|
59
59
|
_a)) }, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: providerName }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: battleText }) })] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.name }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: name }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ onClick: handleClick, className: (0, classnames_1.default)(styles.details, (_b = {},
|
|
60
60
|
_b[styles.dark] = isFinished,
|
|
@@ -74,6 +74,9 @@ var SignIn = function () {
|
|
|
74
74
|
var _e = (0, react_1.useState)(''), phone = _e[0], setPhone = _e[1];
|
|
75
75
|
var handleSignIn = function () {
|
|
76
76
|
var logInInfo = activeForm === types_3.EAuthFormType.Phone ? phone : email;
|
|
77
|
+
if (activeForm === types_3.EAuthFormType.UserName) {
|
|
78
|
+
logInInfo = id;
|
|
79
|
+
}
|
|
77
80
|
var data = (0, utils_1.getAuthorizationData)(logInInfo, password, types_1.ERequestIds.AuthorizeByEmail);
|
|
78
81
|
sendCommand('x02', data, true);
|
|
79
82
|
};
|
|
@@ -8,15 +8,15 @@ interface ZustandModalEntities {
|
|
|
8
8
|
oldType: EModalTypes | null;
|
|
9
9
|
}
|
|
10
10
|
export declare enum EModalTypes {
|
|
11
|
-
Unknown =
|
|
12
|
-
CloseModal =
|
|
13
|
-
InGameTickets =
|
|
14
|
-
SignUp =
|
|
15
|
-
SignUpTwo =
|
|
16
|
-
SignIn =
|
|
17
|
-
Credentials =
|
|
18
|
-
LostPassword =
|
|
19
|
-
SetNewPassword =
|
|
11
|
+
Unknown = -1,
|
|
12
|
+
CloseModal = 0,
|
|
13
|
+
InGameTickets = 1,
|
|
14
|
+
SignUp = 2,
|
|
15
|
+
SignUpTwo = 3,
|
|
16
|
+
SignIn = 4,
|
|
17
|
+
Credentials = 5,
|
|
18
|
+
LostPassword = 6,
|
|
19
|
+
SetNewPassword = 7,
|
|
20
20
|
MoneyOperations = 8,
|
|
21
21
|
Languages = 9,
|
|
22
22
|
DrawerCasinoModal = 10,
|
|
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EModalTypes = void 0;
|
|
4
4
|
var EModalTypes;
|
|
5
5
|
(function (EModalTypes) {
|
|
6
|
-
EModalTypes[EModalTypes["Unknown"] =
|
|
7
|
-
EModalTypes[EModalTypes["CloseModal"] =
|
|
6
|
+
EModalTypes[EModalTypes["Unknown"] = -1] = "Unknown";
|
|
7
|
+
EModalTypes[EModalTypes["CloseModal"] = 0] = "CloseModal";
|
|
8
8
|
// betting
|
|
9
|
-
EModalTypes[EModalTypes["InGameTickets"] =
|
|
9
|
+
EModalTypes[EModalTypes["InGameTickets"] = 1] = "InGameTickets";
|
|
10
10
|
// end betting
|
|
11
|
-
EModalTypes[EModalTypes["SignUp"] =
|
|
12
|
-
EModalTypes[EModalTypes["SignUpTwo"] =
|
|
13
|
-
EModalTypes[EModalTypes["SignIn"] =
|
|
14
|
-
EModalTypes[EModalTypes["Credentials"] =
|
|
15
|
-
EModalTypes[EModalTypes["LostPassword"] =
|
|
16
|
-
EModalTypes[EModalTypes["SetNewPassword"] =
|
|
11
|
+
EModalTypes[EModalTypes["SignUp"] = 2] = "SignUp";
|
|
12
|
+
EModalTypes[EModalTypes["SignUpTwo"] = 3] = "SignUpTwo";
|
|
13
|
+
EModalTypes[EModalTypes["SignIn"] = 4] = "SignIn";
|
|
14
|
+
EModalTypes[EModalTypes["Credentials"] = 5] = "Credentials";
|
|
15
|
+
EModalTypes[EModalTypes["LostPassword"] = 6] = "LostPassword";
|
|
16
|
+
EModalTypes[EModalTypes["SetNewPassword"] = 7] = "SetNewPassword";
|
|
17
17
|
// Notice: DO not change it
|
|
18
18
|
EModalTypes[EModalTypes["MoneyOperations"] = 8] = "MoneyOperations";
|
|
19
19
|
EModalTypes[EModalTypes["Languages"] = 9] = "Languages";
|
|
@@ -43,7 +43,7 @@ exports.useZustandRegistrationKitStore = (0, zustand_1.create)(function (set, ge
|
|
|
43
43
|
set({ activeForm: activeForm, registeredLogin: '' });
|
|
44
44
|
},
|
|
45
45
|
setCurrencies: function (availableCurrencies) {
|
|
46
|
-
var _a;
|
|
46
|
+
var _a, _b;
|
|
47
47
|
if (!availableCurrencies.length) {
|
|
48
48
|
console.warn('PLACE PROVIDE REGISTRATION CURRENCIES');
|
|
49
49
|
return;
|
|
@@ -57,6 +57,10 @@ exports.useZustandRegistrationKitStore = (0, zustand_1.create)(function (set, ge
|
|
|
57
57
|
constants_1.SIGN_UP_URL_CURRENCY_NAME.toLocaleLowerCase();
|
|
58
58
|
})) === null || _a === void 0 ? void 0 : _a.id) || null;
|
|
59
59
|
}
|
|
60
|
+
else if (!activeCurrencyId && constants_1.SIGN_UP_URL_COUNTRY_ID) {
|
|
61
|
+
newActiveCurrencyId =
|
|
62
|
+
((_b = availableCurrencies.find(function (c) { return c.id === constants_1.SIGN_UP_URL_COUNTRY_ID; })) === null || _b === void 0 ? void 0 : _b.id) || null;
|
|
63
|
+
}
|
|
60
64
|
set({ availableCurrencies: availableCurrencies, activeCurrencyId: newActiveCurrencyId });
|
|
61
65
|
},
|
|
62
66
|
}); });
|
package/dist/main.css
CHANGED
|
@@ -4617,6 +4617,7 @@
|
|
|
4617
4617
|
gap: var(--indent-s);
|
|
4618
4618
|
position: relative;
|
|
4619
4619
|
}
|
|
4620
|
+
|
|
4620
4621
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__wrapperContent___hUZyt {
|
|
4621
4622
|
position: absolute;
|
|
4622
4623
|
top: 0;
|
|
@@ -4629,16 +4630,20 @@
|
|
|
4629
4630
|
color: rgba(255, 255, 255, 1);
|
|
4630
4631
|
padding: var(--indent-s);
|
|
4631
4632
|
}
|
|
4633
|
+
|
|
4632
4634
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__wrapperContent___hUZyt .KIT__BattlesCard-module__date___SNEuT {
|
|
4633
4635
|
font-size: 12px;
|
|
4634
4636
|
padding-left: 12px;
|
|
4635
4637
|
}
|
|
4638
|
+
|
|
4636
4639
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__wrapperContent___hUZyt .KIT__BattlesCard-module__prizeWrapper___Tx_6u {
|
|
4637
4640
|
font-size: 12px;
|
|
4638
4641
|
font-weight: 700;
|
|
4639
|
-
padding:
|
|
4640
|
-
padding-bottom:
|
|
4642
|
+
padding: 0 var(--indent-m);
|
|
4643
|
+
padding-bottom: var(--indent-xs);
|
|
4644
|
+
text-transform: uppercase;
|
|
4641
4645
|
}
|
|
4646
|
+
|
|
4642
4647
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__wrapperContent___hUZyt .KIT__BattlesCard-module__prizeWrapper___Tx_6u .KIT__BattlesCard-module__prize___zCwmd {
|
|
4643
4648
|
font-size: 32px;
|
|
4644
4649
|
font-style: normal;
|
|
@@ -4662,6 +4667,7 @@
|
|
|
4662
4667
|
-webkit-background-clip: text;
|
|
4663
4668
|
-webkit-text-fill-color: transparent;
|
|
4664
4669
|
}
|
|
4670
|
+
|
|
4665
4671
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__imageWrapper___VTIdP {
|
|
4666
4672
|
width: 100%;
|
|
4667
4673
|
height: 215px;
|
|
@@ -4669,11 +4675,14 @@
|
|
|
4669
4675
|
overflow: hidden;
|
|
4670
4676
|
position: relative;
|
|
4671
4677
|
}
|
|
4678
|
+
|
|
4672
4679
|
@media screen and (max-width: 768px) {
|
|
4673
|
-
|
|
4674
|
-
|
|
4680
|
+
|
|
4681
|
+
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__imageWrapper___VTIdP {
|
|
4682
|
+
height: 200px;
|
|
4675
4683
|
}
|
|
4676
4684
|
}
|
|
4685
|
+
|
|
4677
4686
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__image____tzSz {
|
|
4678
4687
|
width: 100%;
|
|
4679
4688
|
height: 100%;
|
|
@@ -4682,12 +4691,14 @@
|
|
|
4682
4691
|
-o-object-position: left;
|
|
4683
4692
|
object-position: left;
|
|
4684
4693
|
}
|
|
4694
|
+
|
|
4685
4695
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 {
|
|
4686
4696
|
display: flex;
|
|
4687
4697
|
flex-direction: column;
|
|
4688
4698
|
gap: var(--indent-xs);
|
|
4689
4699
|
padding: 0 var(--indent-s);
|
|
4690
4700
|
}
|
|
4701
|
+
|
|
4691
4702
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 .KIT__BattlesCard-module__providerName___hP5is {
|
|
4692
4703
|
border: var(--battles-provider-name-border);
|
|
4693
4704
|
border-radius: var(--border-m);
|
|
@@ -4702,16 +4713,19 @@
|
|
|
4702
4713
|
display: flex;
|
|
4703
4714
|
gap: var(--indent-xs);
|
|
4704
4715
|
}
|
|
4716
|
+
|
|
4705
4717
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 .KIT__BattlesCard-module__providerName___hP5is.KIT__BattlesCard-module__inHouseBattleName___XoD7E {
|
|
4706
4718
|
background: var(--battles-provider-name-background);
|
|
4707
4719
|
color: var(--battles-battle-in-house-name);
|
|
4708
4720
|
}
|
|
4721
|
+
|
|
4709
4722
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 .KIT__BattlesCard-module__name___DJXDf {
|
|
4710
4723
|
color: var(--battles-battle-name);
|
|
4711
4724
|
/*вынести в colors*/
|
|
4712
4725
|
font-size: var(--font-size-xl);
|
|
4713
4726
|
font-weight: 600;
|
|
4714
4727
|
}
|
|
4728
|
+
|
|
4715
4729
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 .KIT__BattlesCard-module__details___Yh7o_ {
|
|
4716
4730
|
display: flex;
|
|
4717
4731
|
align-items: center;
|
|
@@ -4720,19 +4734,33 @@
|
|
|
4720
4734
|
gap: var(--indent-m);
|
|
4721
4735
|
cursor: pointer;
|
|
4722
4736
|
}
|
|
4737
|
+
|
|
4723
4738
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 .KIT__BattlesCard-module__details___Yh7o_ .KIT__BattlesCard-module__arrowSvg___RwUg1 {
|
|
4724
4739
|
transform: rotate(90deg);
|
|
4725
4740
|
}
|
|
4741
|
+
|
|
4726
4742
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 .KIT__BattlesCard-module__details___Yh7o_ .KIT__BattlesCard-module__arrowSvg___RwUg1 path {
|
|
4727
4743
|
fill: var(--battles-details-arrow-path);
|
|
4728
4744
|
}
|
|
4745
|
+
|
|
4729
4746
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 .KIT__BattlesCard-module__details___Yh7o_.KIT__BattlesCard-module__dark___SRv2F {
|
|
4730
4747
|
color: rgb(var(--semi-gray));
|
|
4731
4748
|
}
|
|
4749
|
+
|
|
4732
4750
|
.KIT__BattlesCard-module__wrapperBattlesCard___Lj8jQ .KIT__BattlesCard-module__textBox___r4AK3 .KIT__BattlesCard-module__details___Yh7o_.KIT__BattlesCard-module__dark___SRv2F .KIT__BattlesCard-module__arrowSvg___RwUg1 path {
|
|
4733
4751
|
fill: rgb(var(--semi-gray));
|
|
4734
4752
|
}
|
|
4735
4753
|
|
|
4754
|
+
.KIT__BattlesCard-module__battleName___nJncZ {
|
|
4755
|
+
padding-left: var(--indent-m);
|
|
4756
|
+
text-transform: uppercase;
|
|
4757
|
+
font-weight: 700;
|
|
4758
|
+
font-size: var(--font-size-l);
|
|
4759
|
+
line-height: 1.1;
|
|
4760
|
+
max-width: 50%;
|
|
4761
|
+
margin-bottom: calc(var(--indent-m) / 2);
|
|
4762
|
+
}
|
|
4763
|
+
|
|
4736
4764
|
|
|
4737
4765
|
.KIT__Step-module__wrapperStep___wBtLk .KIT__Step-module__img___YsqV2 {
|
|
4738
4766
|
width: 100%;
|