react-gldn-kit 0.1.33 → 0.1.35
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/Modals/Alert/components/Auth/SignUp/index.js +2 -2
- package/dist/lib/components/ui/Buttons/BaseButton/index.js +2 -2
- package/dist/lib/components/ui/Buttons/BaseButton/types.d.ts +1 -0
- package/dist/lib/components/ui/Buttons/DrawerButton/index.js +3 -3
- package/dist/main.css +16 -34
- package/package.json +1 -1
|
@@ -68,7 +68,7 @@ var SignUp = function (props) {
|
|
|
68
68
|
var setActiveForm = (0, store_2.useZustandRegistrationKitStore)(selectors_2.zustandRegistrationKitSelector.setActiveRegistrationFormAction);
|
|
69
69
|
var setModal = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.closeAndOpenModalAction);
|
|
70
70
|
var data = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.getModalAdditionalInfoSelector) || { sendCommand: console.info };
|
|
71
|
-
var _a = data.bonusSignUp, bonusSignUp = _a === void 0 ? false : _a, _b = data.bonusText, bonusText = _b === void 0 ? '' : _b;
|
|
71
|
+
var _a = data.bonusSignUp, bonusSignUp = _a === void 0 ? false : _a, _b = data.bonusText, bonusText = _b === void 0 ? '' : _b, _c = data.bonusSubText, bonusSubText = _c === void 0 ? '' : _c;
|
|
72
72
|
var openSignIn = function () {
|
|
73
73
|
setModal(types_1.EModalTypes.SignIn);
|
|
74
74
|
};
|
|
@@ -80,6 +80,6 @@ var SignUp = function (props) {
|
|
|
80
80
|
setActiveForm(tabs[0].value);
|
|
81
81
|
}
|
|
82
82
|
}, [activeForm, tabs]);
|
|
83
|
-
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 && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.bonusText }, { children: [(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:
|
|
83
|
+
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 && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.bonusText }, { children: [(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: bonusSubText ? bonusSubText : 'wheelTwo.secondPopUp.subTitle' }) })), (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: bonusText ? bonusText : '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, handleRegistration: handleRegistration, availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { isSelected: true, requestCode: handleRegistration, handleRegistration: handleRegistration, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.PhoneWithoutCode && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { withoutCode: true, isSelected: true, requestCode: handleRegistration, handleRegistration: handleRegistration, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] })), activeForm === types_2.ERegistrationForm.OneClick && ((0, jsx_runtime_1.jsx)(OneClickKit_1.default, { isSelected: true, handleRegistration: handleRegistration, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] }))] }))] })), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { size: "--button-full", color: "dark", buttonHeight: "--button-height-full", text: "header.login", classes: styles.authButton, handleClick: openSignIn, centreText: true })] })) })));
|
|
84
84
|
};
|
|
85
85
|
exports.SignUp = SignUp;
|
|
@@ -44,7 +44,7 @@ var Text_1 = require("components/Text");
|
|
|
44
44
|
var styles = __importStar(require("./ButtonBase.module.css"));
|
|
45
45
|
var BaseButton = function (props) {
|
|
46
46
|
var _a, _b, _c;
|
|
47
|
-
var text = props.text, startIcon = props.startIcon, children = props.children, size = props.size, color = props.color, isResized = props.isResized, _d = props.classes, classes = _d === void 0 ? '' : _d, _e = props.marginL, marginL = _e === void 0 ? '' : _e, _f = props.fontSize, fontSize = _f === void 0 ? '' : _f, _g = props.borderR, borderR = _g === void 0 ? '' : _g, classesText = props.classesText, centreText = props.centreText, handleClick = props.handleClick, buttonHeight = props.buttonHeight, marginB = props.marginB, disabled = props.disabled;
|
|
47
|
+
var text = props.text, startIcon = props.startIcon, children = props.children, size = props.size, color = props.color, isResized = props.isResized, _d = props.classes, classes = _d === void 0 ? '' : _d, _e = props.marginL, marginL = _e === void 0 ? '' : _e, _f = props.fontSize, fontSize = _f === void 0 ? '' : _f, _g = props.borderR, borderR = _g === void 0 ? '' : _g, classesText = props.classesText, centreText = props.centreText, handleClick = props.handleClick, buttonHeight = props.buttonHeight, marginB = props.marginB, disabled = props.disabled, endIconClasses = props.endIconClasses;
|
|
48
48
|
var marginLKey = "marginLeft-".concat(marginL);
|
|
49
49
|
var marginBKey = "marginBottom-".concat(marginB);
|
|
50
50
|
var sizeKey = "size".concat(size);
|
|
@@ -65,6 +65,6 @@ var BaseButton = function (props) {
|
|
|
65
65
|
_b[styles.center] = centreText,
|
|
66
66
|
_b)) }, { children: [startIcon, text && ((0, jsx_runtime_1.jsx)("span", __assign({ className: (0, classnames_1.default)(styles.text, (_c = {},
|
|
67
67
|
_c[styles['marginLeft-base']] = startIcon,
|
|
68
|
-
_c)) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: text }) }))), children && (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.endIcon }, { children: children }))] })) })));
|
|
68
|
+
_c)) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: text }) }))), children && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.endIcon, endIconClasses) }, { children: children })))] })) })));
|
|
69
69
|
};
|
|
70
70
|
exports.BaseButton = BaseButton;
|
|
@@ -56,8 +56,8 @@ var styles = __importStar(require("./DrawerButton.module.css"));
|
|
|
56
56
|
var DrawerButton = function (props) {
|
|
57
57
|
var _a;
|
|
58
58
|
var classes = props.classes, text = props.text, _b = props.isFullView, isFullView = _b === void 0 ? true : _b, rest = __rest(props, ["classes", "text", "isFullView"]);
|
|
59
|
-
return ((0, jsx_runtime_1.
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, __assign({}, rest, { text: isFullView ? text : '', buttonHeight: "--button-height-xxl", size: "--button-full", color: "transparent", classes: (0, classnames_1.default)(styles.buttonIndex, (_a = {},
|
|
60
|
+
_a[styles.center] = !isFullView,
|
|
61
|
+
_a), classes), classesText: styles.full })));
|
|
62
62
|
};
|
|
63
63
|
exports.DrawerButton = DrawerButton;
|
package/dist/main.css
CHANGED
|
@@ -456,7 +456,6 @@
|
|
|
456
456
|
.KIT__DrawerButton-module__wrapperDrawerButton___VXojY {
|
|
457
457
|
--drawer-button-text-color: white;
|
|
458
458
|
--border-button: var(--border-l);
|
|
459
|
-
--border-background: var(--drawer-button-border-background);
|
|
460
459
|
|
|
461
460
|
--drawer-button-bg: rgb(var(--dark-gray));
|
|
462
461
|
|
|
@@ -472,48 +471,30 @@
|
|
|
472
471
|
}
|
|
473
472
|
|
|
474
473
|
.KIT__DrawerButton-module__buttonIndex___OnNej {
|
|
474
|
+
--height: var(--height-48);
|
|
475
|
+
height: var(--height);
|
|
475
476
|
position: relative;
|
|
476
477
|
z-index: calc(var(--layout-lvl-1) + 1);
|
|
477
478
|
border-radius: var(--border-button);
|
|
478
|
-
|
|
479
|
-
background: var(--drawer-modal-content-color);
|
|
480
|
-
padding-left: var(--indent-l);
|
|
479
|
+
padding: var(--indent-m) 0;
|
|
481
480
|
color: var(--drawer-modal-content-text-color);
|
|
482
481
|
}
|
|
483
482
|
|
|
484
|
-
|
|
485
|
-
|
|
483
|
+
@media screen and (min-width: 768px) {
|
|
484
|
+
|
|
485
|
+
.KIT__DrawerButton-module__buttonIndex___OnNej {
|
|
486
|
+
padding: var(--indent-m) var(--indent-l);
|
|
486
487
|
}
|
|
488
|
+
}
|
|
487
489
|
|
|
488
490
|
.KIT__DrawerButton-module__center___VojH7 {
|
|
489
491
|
justify-content: center;
|
|
490
492
|
}
|
|
491
493
|
|
|
492
|
-
.KIT__DrawerButton-module__borderBg___OHEWy {
|
|
493
|
-
width: 100%;
|
|
494
|
-
height: 100%;
|
|
495
|
-
position: absolute;
|
|
496
|
-
left: 0;
|
|
497
|
-
top: 0;
|
|
498
|
-
z-index: var(--layout-lvl-1);
|
|
499
|
-
background: var(--drawer-button-border-background);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
.KIT__DrawerButton-module__shadowBg___k4cHp {
|
|
503
|
-
position: absolute;
|
|
504
|
-
right: 0%;
|
|
505
|
-
top: 2px;
|
|
506
|
-
width: calc(100% - 2px);
|
|
507
|
-
height: calc(100% - 4px);
|
|
508
|
-
|
|
509
|
-
background: var(--drawer-button-shadow-background);
|
|
510
|
-
z-index: var(--layout-lvl-1);
|
|
511
|
-
border-radius: var(--border-button);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
494
|
.KIT__DrawerButton-module__full___AsBjM {
|
|
515
495
|
width: 100%;
|
|
516
496
|
}
|
|
497
|
+
|
|
517
498
|
.KIT__CasinoCategoryButton-module__wrapperCasinoCategory___Kn74K {
|
|
518
499
|
flex-shrink: 0;
|
|
519
500
|
cursor: pointer;
|
|
@@ -1940,14 +1921,16 @@
|
|
|
1940
1921
|
--drawer-min-width: 100px;
|
|
1941
1922
|
|
|
1942
1923
|
width: 90%;
|
|
1943
|
-
height: 100
|
|
1924
|
+
height: calc(100% - var(--height-48));
|
|
1944
1925
|
overflow-x: hidden;
|
|
1945
|
-
overflow-y: auto;
|
|
1946
1926
|
position: relative;
|
|
1947
1927
|
background: var(--drawer-modal-content-color);
|
|
1948
1928
|
padding: var(--indent-l);
|
|
1949
1929
|
z-index: var(--layout-lvl-1);
|
|
1950
1930
|
transition: 0.3s;
|
|
1931
|
+
display: flex;
|
|
1932
|
+
flex-direction: column;
|
|
1933
|
+
gap: var(--indent-m);
|
|
1951
1934
|
}
|
|
1952
1935
|
|
|
1953
1936
|
.KIT__DrawerLayout-module__animationOpenDrawer___Z3IOK {
|
|
@@ -2017,16 +2000,14 @@
|
|
|
2017
2000
|
.KIT__DrawerLayout-module__wrapperDrawer___DnsQm {
|
|
2018
2001
|
width: var(--drawer-full-width);
|
|
2019
2002
|
flex-shrink: 0;
|
|
2020
|
-
overflow-y: hidden;
|
|
2021
|
-
display: flex;
|
|
2022
|
-
flex-direction: column;
|
|
2023
2003
|
justify-content: space-between;
|
|
2024
2004
|
height: var(--app-height);
|
|
2025
2005
|
position: sticky;
|
|
2026
2006
|
background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
|
|
2027
2007
|
background: initial;
|
|
2028
2008
|
top: 0;
|
|
2029
|
-
padding: 0;
|
|
2009
|
+
padding: 0 var(--indent-xxxl) var(--indent-xl);
|
|
2010
|
+
gap: var(--indent-xl);
|
|
2030
2011
|
}
|
|
2031
2012
|
|
|
2032
2013
|
.KIT__DrawerLayout-module__animationCasinoDrawerGrowing___wpvdM {
|
|
@@ -2039,6 +2020,7 @@
|
|
|
2039
2020
|
animation: none;
|
|
2040
2021
|
}
|
|
2041
2022
|
}
|
|
2023
|
+
|
|
2042
2024
|
.KIT__Logos-module__wrapperLogo___jKLCC {
|
|
2043
2025
|
--width: 100px;
|
|
2044
2026
|
--height: calc(var(--height-48) - var(--indent-m) / 2);
|