react-gldn-kit 0.1.152 → 0.1.153

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.
Files changed (61) hide show
  1. package/dist/{c20ec17de4d9dd6ce4f3ceda19ed33a1.svg → 66d23a3369380a2aa898a657b944f877.svg} +3 -3
  2. package/dist/index.js +1 -1
  3. package/dist/lib/components/AppNotify/index.d.ts +2 -0
  4. package/dist/lib/components/AppNotify/index.js +57 -0
  5. package/dist/lib/components/AppNotify/types.d.ts +10 -0
  6. package/dist/lib/components/AppNotify/types.js +2 -0
  7. package/dist/lib/components/Carousels/components/Carousel/index.d.ts +2 -0
  8. package/dist/lib/components/Carousels/components/Carousel/index.js +186 -0
  9. package/dist/lib/components/Carousels/components/Carousel/types.d.ts +12 -0
  10. package/dist/lib/components/Carousels/components/Carousel/types.js +2 -0
  11. package/dist/lib/components/Carousels/components/CarouselVipClub/components/Step/index.d.ts +3 -0
  12. package/dist/lib/components/Carousels/components/CarouselVipClub/components/Step/index.js +48 -0
  13. package/dist/lib/components/Carousels/components/CarouselVipClub/components/Step/types.d.ts +8 -0
  14. package/dist/lib/components/Carousels/components/CarouselVipClub/components/Step/types.js +2 -0
  15. package/dist/lib/components/Carousels/components/CarouselVipClub/components/VipSteps/index.d.ts +2 -0
  16. package/dist/lib/components/Carousels/components/CarouselVipClub/components/VipSteps/index.js +54 -0
  17. package/dist/lib/components/Carousels/components/CarouselVipClub/components/VipSteps/types.d.ts +8 -0
  18. package/dist/lib/components/Carousels/components/CarouselVipClub/components/VipSteps/types.js +2 -0
  19. package/dist/lib/components/Carousels/components/CarouselVipClub/index.d.ts +2 -0
  20. package/dist/lib/components/Carousels/components/CarouselVipClub/index.js +53 -0
  21. package/dist/lib/components/Carousels/components/CarouselVipClub/types.d.ts +9 -0
  22. package/dist/lib/components/Carousels/components/CarouselVipClub/types.js +2 -0
  23. package/dist/lib/components/Modals/Notifications/components/NotificationView/index.js +3 -3
  24. package/dist/lib/components/ui/AccordionGroup/Accordion.d.ts +1 -0
  25. package/dist/lib/components/ui/AccordionGroup/Accordion.js +2 -2
  26. package/dist/lib/components/ui/Headers/LeftSection/index.js +2 -2
  27. package/dist/lib/components/ui/Headers/LeftSection/types.d.ts +1 -0
  28. package/dist/lib/components/ui/Icons/Base/CrossSvg.js +2 -2
  29. package/dist/lib/components/ui/Icons/CarouselArrowSvg.d.ts +2 -0
  30. package/dist/lib/components/ui/Icons/CarouselArrowSvg.js +20 -0
  31. package/dist/lib/components/ui/Icons/FlagIcons/EnSvg.js +2 -2
  32. package/dist/lib/components/ui/Icons/FlagIcons/MsSvg.d.ts +2 -0
  33. package/dist/lib/components/ui/Icons/FlagIcons/MsSvg.js +20 -0
  34. package/dist/lib/components/ui/Icons/FlagIcons/UkrSvg.js +2 -2
  35. package/dist/lib/components/ui/Icons/InfoSvg.js +2 -2
  36. package/dist/lib/components/ui/Icons/Notifications/SuccessSvg.js +1 -1
  37. package/dist/lib/components/ui/Loaders/CircularLoader/index.d.ts +2 -1
  38. package/dist/lib/components/ui/Loaders/CircularLoader/index.js +5 -2
  39. package/dist/lib/components/ui/Progress/ProgressBar/index.js +2 -2
  40. package/dist/lib/components/ui/Progress/ProgressBar/types.d.ts +1 -0
  41. package/dist/lib/constants/ui.d.ts +1 -0
  42. package/dist/lib/constants/ui.js +5 -0
  43. package/dist/lib/hooks/useIFrameMode.d.ts +1 -0
  44. package/dist/lib/hooks/useIFrameMode.js +33 -0
  45. package/dist/lib/hooks/useSwipe.d.ts +9 -7
  46. package/dist/lib/hooks/useSwipe.js +36 -39
  47. package/dist/lib/index.d.ts +14 -2
  48. package/dist/lib/index.js +43 -14
  49. package/dist/lib/types/ui.d.ts +4 -0
  50. package/dist/lib/types/ui.js +6 -1
  51. package/dist/lib/utils/date.d.ts +2 -0
  52. package/dist/lib/utils/date.js +31 -1
  53. package/dist/lib/utils/icons.js +3 -0
  54. package/dist/lib/zustandStore/drawers/casino/selectors.d.ts +7 -0
  55. package/dist/lib/zustandStore/drawers/casino/selectors.js +22 -0
  56. package/dist/lib/zustandStore/drawers/casino/store.d.ts +2 -0
  57. package/dist/lib/zustandStore/drawers/casino/store.js +18 -0
  58. package/dist/lib/zustandStore/drawers/casino/types.d.ts +9 -0
  59. package/dist/lib/zustandStore/drawers/casino/types.js +2 -0
  60. package/dist/main.css +460 -33
  61. package/package.json +2 -2
@@ -0,0 +1,2 @@
1
+ import { AppNotifyProps } from './types';
2
+ export declare const AppNotify: (props: AppNotifyProps) => import("react").ReactPortal;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.AppNotify = void 0;
41
+ var jsx_runtime_1 = require("react/jsx-runtime");
42
+ var react_dom_1 = require("react-dom");
43
+ var classnames_1 = __importDefault(require("classnames"));
44
+ var Text_1 = require("components/Text");
45
+ var Buttons_1 = require("components/ui/Buttons");
46
+ var CloseThirdSvg_1 = require("components/ui/Icons/CloseThirdSvg");
47
+ var Logos_1 = require("components/ui/Logos");
48
+ var ui_1 = require("types/ui");
49
+ var styles = __importStar(require("./AppNotify.module.css"));
50
+ var AppNotify = function (props) {
51
+ var _a;
52
+ var isAndroid = props.isAndroid, appType = props.appType, isMobile = props.isMobile, handleDownloadApk = props.handleDownloadApk, handleToggleState = props.handleToggleState, footerType = props.footerType, buttonClasses = props.buttonClasses;
53
+ return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperAppNotify, (_a = {},
54
+ _a[styles.hide] = footerType === ui_1.EFooterType.Hidden,
55
+ _a)) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.leftContent }, { children: [(0, jsx_runtime_1.jsx)(Logos_1.Logo, { appType: appType, isMobile: isMobile, classes: styles.logoWrapper }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.appText }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "appNotify.title", specValue: isAndroid ? 'Android' : 'IOS' }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "appNotify.description", specValue: isAndroid ? 'Android' : 'IOS' }) }))] }))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.rightSection }, { children: [(0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "appNotify.download", handleClick: handleDownloadApk, size: "--button-xl", buttonHeight: "--button-height-s", color: "primary", classes: buttonClasses, centreText: true, isResized: true }), (0, jsx_runtime_1.jsx)(CloseThirdSvg_1.CloseThirdSvg, { classes: styles.closePopUp, handleClick: handleToggleState })] }))] })), document.body);
56
+ };
57
+ exports.AppNotify = AppNotify;
@@ -0,0 +1,10 @@
1
+ import { EAppType, EFooterType } from 'types/ui';
2
+ export type AppNotifyProps = {
3
+ isAndroid: boolean;
4
+ appType: EAppType;
5
+ isMobile: boolean;
6
+ handleDownloadApk: () => void;
7
+ handleToggleState: () => void;
8
+ footerType?: EFooterType;
9
+ buttonClasses?: string;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { CarouselProps } from "./types";
2
+ export declare const Carousel: (props: CarouselProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __generator = (this && this.__generator) || function (thisArg, body) {
46
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
+ function verb(n) { return function (v) { return step([n, v]); }; }
49
+ function step(op) {
50
+ if (f) throw new TypeError("Generator is already executing.");
51
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
+ if (y = 0, t) op = [op[0] & 2, t.value];
54
+ switch (op[0]) {
55
+ case 0: case 1: t = op; break;
56
+ case 4: _.label++; return { value: op[1], done: false };
57
+ case 5: _.label++; y = op[1]; op = [0]; continue;
58
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
+ default:
60
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
+ if (t[2]) _.ops.pop();
65
+ _.trys.pop(); continue;
66
+ }
67
+ op = body.call(thisArg, _);
68
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
+ }
71
+ };
72
+ var __importDefault = (this && this.__importDefault) || function (mod) {
73
+ return (mod && mod.__esModule) ? mod : { "default": mod };
74
+ };
75
+ Object.defineProperty(exports, "__esModule", { value: true });
76
+ exports.Carousel = void 0;
77
+ var jsx_runtime_1 = require("react/jsx-runtime");
78
+ var react_1 = require("react");
79
+ var store_1 = require("zustandStore/device/store");
80
+ var selectors_1 = require("zustandStore/device/selectors");
81
+ var shared_1 = require("utils/shared");
82
+ var classnames_1 = __importDefault(require("classnames"));
83
+ var CarouselArrowSvg_1 = require("components/ui/Icons/CarouselArrowSvg");
84
+ var styles = __importStar(require("./Carousel.module.css"));
85
+ var useSwipe_1 = require("hooks/useSwipe");
86
+ var MAX_PERCENT_INDENT = 100;
87
+ // NOTICE: banner cant be more that content width
88
+ var Carousel = function (props) {
89
+ var _a = props.disableDesktopArrow, disableDesktopArrow = _a === void 0 ? false : _a, children = props.children, _b = props.initialActiveSlider, initialActiveSlider = _b === void 0 ? 0 : _b, callbackSlide = props.callbackSlide, _c = props.withDots, withDots = _c === void 0 ? true : _c, _d = props.classes, classes = _d === void 0 ? true : _d, _e = props.marginIndent, marginIndent = _e === void 0 ? '' : _e;
90
+ var _f = (0, react_1.useState)(initialActiveSlider), activeSlider = _f[0], setActiveSlider = _f[1];
91
+ var content = (0, react_1.useRef)(null);
92
+ var container = (0, react_1.useRef)(null);
93
+ var isMobile = (0, store_1.useZustandDeviceKitStore)(selectors_1.zustandDeviceKitSelector.isMobileDeviceSelector);
94
+ var itemPercent = (0, react_1.useMemo)(function () {
95
+ if (isMobile) {
96
+ // it means that one banner per visible area
97
+ return MAX_PERCENT_INDENT;
98
+ }
99
+ if (!container.current) {
100
+ return 0;
101
+ }
102
+ var banner = container.current.childNodes[activeSlider];
103
+ var containerWidth = container.current.offsetWidth;
104
+ if (!banner) {
105
+ return 0;
106
+ }
107
+ var bannerWidth = banner.offsetWidth;
108
+ if (bannerWidth > containerWidth) {
109
+ return MAX_PERCENT_INDENT;
110
+ }
111
+ var percent = (bannerWidth * MAX_PERCENT_INDENT) / containerWidth;
112
+ return percent;
113
+ }, [isMobile, activeSlider]);
114
+ var indent = (0, react_1.useMemo)(function () {
115
+ var base = activeSlider * -itemPercent;
116
+ if (!marginIndent) {
117
+ return base;
118
+ }
119
+ var indent = Number(getComputedStyle(document.body)
120
+ .getPropertyValue("--".concat(marginIndent))
121
+ .replace('px', '')); // px need to convert to %
122
+ if (!container.current) {
123
+ return 0;
124
+ }
125
+ var contentWidth = container.current.offsetWidth;
126
+ var marginInPercent = (indent * itemPercent) / contentWidth;
127
+ var indentValue = marginInPercent * activeSlider;
128
+ return base - indentValue;
129
+ }, [marginIndent, activeSlider, itemPercent]); // 100 percent all content for mobile - additional indent
130
+ var dots = (0, react_1.useMemo)(function () {
131
+ if (!withDots) {
132
+ return [];
133
+ }
134
+ return new Array(children.props.children.length).fill(0);
135
+ }, [withDots, children]);
136
+ (0, useSwipe_1.useSwipe)({
137
+ content: content,
138
+ onSwipeLeft: function () { return handleChangeSlide(1); },
139
+ onSwipeRight: function () { return handleChangeSlide(-1); },
140
+ });
141
+ var handleChangeSlide = function (direct) { return __awaiter(void 0, void 0, void 0, function () {
142
+ var newActiveSlide, length, step;
143
+ return __generator(this, function (_a) {
144
+ switch (_a.label) {
145
+ case 0:
146
+ newActiveSlide = activeSlider + direct;
147
+ length = children.props.children.length;
148
+ step = 0;
149
+ if (newActiveSlide < 0) {
150
+ step = -5;
151
+ }
152
+ if (newActiveSlide === length) {
153
+ step = 5;
154
+ }
155
+ if (!(container.current && step)) return [3 /*break*/, 2];
156
+ container.current.style.transform = "translateX(".concat(indent - step, "%)");
157
+ return [4 /*yield*/, (0, shared_1.sleep)(300)];
158
+ case 1:
159
+ _a.sent();
160
+ container.current.style.transform = "translateX(".concat(indent, "%)");
161
+ return [2 /*return*/];
162
+ case 2:
163
+ setActiveSlider(newActiveSlide);
164
+ return [2 /*return*/];
165
+ }
166
+ });
167
+ }); };
168
+ var handleSetActiveSlide = function (inx) { return function () {
169
+ setActiveSlider(inx);
170
+ }; };
171
+ (0, react_1.useEffect)(function () {
172
+ if (!callbackSlide) {
173
+ return;
174
+ }
175
+ callbackSlide(activeSlider);
176
+ }, [callbackSlide, activeSlider]);
177
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.carouselWrapper, classes), ref: content }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.content, style: {
178
+ transform: "translateX(".concat(indent, "%)"),
179
+ }, ref: container }, { children: children })), withDots && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.dots }, { children: dots.map(function (_, inx) {
180
+ var _a;
181
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(styles.dot, (_a = {},
182
+ _a[styles.active] = inx === activeSlider,
183
+ _a)), onClick: handleSetActiveSlide(inx) }, inx));
184
+ }) }))), !disableDesktopArrow && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.leftArrow, onClick: function () { return handleChangeSlide(-1); } }, { children: (0, jsx_runtime_1.jsx)(CarouselArrowSvg_1.CarouselArrowSvg, {}) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.rightArrow, onClick: function () { return handleChangeSlide(1); } }, { children: (0, jsx_runtime_1.jsx)(CarouselArrowSvg_1.CarouselArrowSvg, {}) }))] }))] })));
185
+ };
186
+ exports.Carousel = Carousel;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export type CarouselProps = {
3
+ autoChangeDuration?: number;
4
+ children: React.ReactElement;
5
+ callbackSlide?: (inx: number) => void;
6
+ customWidth?: number;
7
+ initialActiveSlider?: number;
8
+ withDots?: boolean;
9
+ classes?: string;
10
+ marginIndent?: 'indent-m' | 'indent-xxl' | 'indent-base-half';
11
+ disableDesktopArrow?: boolean;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { StepProps } from './types';
2
+ declare const Step: (props: StepProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Step;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ var jsx_runtime_1 = require("react/jsx-runtime");
41
+ var classnames_1 = __importDefault(require("classnames"));
42
+ var Text_1 = require("components/Text");
43
+ var styles = __importStar(require("./Step.module.css"));
44
+ var Step = function (props) {
45
+ var imgPath = props.imgPath, title = props.title, titleSpecValue = props.titleSpecValue, titleDescription = props.titleDescription, classes = props.classes, imageClasses = props.imageClasses;
46
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.stepWrapper, classes) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: imgPath, className: (0, classnames_1.default)(styles.imgStep, imageClasses) }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.content }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: title, specValue: "".concat(titleSpecValue) }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.titleDescription }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: titleDescription }) }))] }))] })));
47
+ };
48
+ exports.default = Step;
@@ -0,0 +1,8 @@
1
+ export type StepProps = {
2
+ imgPath: string;
3
+ title: string;
4
+ titleSpecValue?: number;
5
+ titleDescription: string;
6
+ classes?: string;
7
+ imageClasses?: string;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { VipStepsProps } from './types';
2
+ export declare const VipSteps: (props: VipStepsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.VipSteps = void 0;
41
+ var jsx_runtime_1 = require("react/jsx-runtime");
42
+ var Text_1 = require("components/Text");
43
+ var Carousel_1 = require("components/Carousels/components/Carousel");
44
+ var Step_1 = __importDefault(require("../Step"));
45
+ var Buttons_1 = require("components/ui/Buttons");
46
+ var store_1 = require("zustandStore/device/store");
47
+ var selectors_1 = require("zustandStore/device/selectors");
48
+ var styles = __importStar(require("./Steps.module.css"));
49
+ var VipSteps = function (props) {
50
+ var title = props.title, description = props.description, steps = props.steps, buttonText = props.buttonText, handleClick = props.handleClick;
51
+ var isMobile = (0, store_1.useZustandDeviceKitStore)(selectors_1.zustandDeviceKitSelector.isMobileDeviceSelector);
52
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.stepsWrapper }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.titleBox }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: title }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.description }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: description }) }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.stepsBox }, { children: isMobile ? ((0, jsx_runtime_1.jsx)(Carousel_1.Carousel, __assign({ disableDesktopArrow: true, withDots: isMobile, marginIndent: "indent-m" }, { children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: steps.map(function (step, idx) { return ((0, jsx_runtime_1.jsx)(Step_1.default, __assign({}, step), idx)); }) }) }))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: steps.map(function (step, idx) { return ((0, jsx_runtime_1.jsx)(Step_1.default, __assign({}, step), idx)); }) })) })), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: buttonText, color: "primary", size: "--button-xxl", buttonHeight: '--button-height-m', handleClick: handleClick, classes: styles.button, centreText: true })] })));
53
+ };
54
+ exports.VipSteps = VipSteps;
@@ -0,0 +1,8 @@
1
+ import { StepProps } from '../Step/types';
2
+ export type VipStepsProps = {
3
+ title: string;
4
+ description: string;
5
+ steps: StepProps[];
6
+ buttonText: string;
7
+ handleClick: () => void;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { CarouselVipClubProps } from './types';
2
+ export declare const CarouselVipClub: (props: CarouselVipClubProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.CarouselVipClub = void 0;
41
+ var jsx_runtime_1 = require("react/jsx-runtime");
42
+ var Text_1 = require("components/Text");
43
+ var Carousel_1 = require("../Carousel");
44
+ var Step_1 = __importDefault(require("./components/Step"));
45
+ var styles = __importStar(require("./CarouselVipClub.module.css"));
46
+ var CarouselVipClub = function (props) {
47
+ var title = props.title, subTitle = props.subTitle, sliders = props.sliders;
48
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperCarouselVipClub }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperTitle }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: title }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: subTitle }) }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.wrapperSlides }, { children: (0, jsx_runtime_1.jsx)(Carousel_1.Carousel, __assign({ marginIndent: "indent-m" }, { children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: sliders.map(function (_a, inx) {
49
+ var img = _a.img, title = _a.title, subTitle = _a.subTitle;
50
+ return ((0, jsx_runtime_1.jsx)(Step_1.default, { imgPath: img, title: title, titleDescription: subTitle }, inx));
51
+ }) }) })) }))] })));
52
+ };
53
+ exports.CarouselVipClub = CarouselVipClub;
@@ -0,0 +1,9 @@
1
+ export type CarouselVipClubProps = {
2
+ title: string;
3
+ subTitle: string;
4
+ sliders: {
5
+ img: string;
6
+ title: string;
7
+ subTitle: string;
8
+ }[];
9
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 NotificationTypeIcon_1 = require("../NotificationTypeIcon");
45
- var styles = __importStar(require("./NotificationView.module.css"));
46
- var CloseSvg_1 = require("components/ui/Icons/CloseSvg");
45
+ var CloseThirdSvg_1 = require("components/ui/Icons/CloseThirdSvg");
47
46
  var Text_1 = require("components/Text");
48
47
  var store_1 = require("zustandStore/alerts/notification/store");
49
48
  var selectors_1 = require("zustandStore/alerts/notification/selectors");
49
+ var styles = __importStar(require("./NotificationView.module.css"));
50
50
  var NotificationView = function (props) {
51
51
  var _a;
52
52
  var text = props.text, type = props.type, uid = props.uid;
@@ -79,6 +79,6 @@ var NotificationView = function (props) {
79
79
  return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperNotification, (_a = {},
80
80
  _a[styles.animationMoveToLeftNotification] = !isHide,
81
81
  _a[styles.animationMoveToRightNotification] = isHide,
82
- _a)) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.row }, { children: [(0, jsx_runtime_1.jsx)(NotificationTypeIcon_1.NotificationTypeIcon, { type: type }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.text }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: text }) }))] })), (0, jsx_runtime_1.jsx)(CloseSvg_1.CloseSvg, { classes: styles.closeIcon, handleClick: handleRemoveNotification })] })));
82
+ _a)) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.row }, { children: [(0, jsx_runtime_1.jsx)(NotificationTypeIcon_1.NotificationTypeIcon, { type: type }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.text }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: text }) }))] })), (0, jsx_runtime_1.jsx)(CloseThirdSvg_1.CloseThirdSvg, { classes: styles.closeIcon, handleClick: handleRemoveNotification })] })));
83
83
  };
84
84
  exports.NotificationView = NotificationView;
@@ -9,6 +9,7 @@ type Props = {
9
9
  handleClick?: (inx: number) => void;
10
10
  setOpenState?: () => void;
11
11
  itemTextClasses?: string;
12
+ iconClasses?: string;
12
13
  } & ({
13
14
  isGroup: true;
14
15
  callbackOpenState: () => void;
@@ -45,7 +45,7 @@ var ArrowSvg_1 = require("../Icons/ArrowSvg");
45
45
  var Text_1 = require("components/Text");
46
46
  var Accordion = function (props) {
47
47
  var _a, _b, _c;
48
- var title = props.title, startIcon = props.startIcon, data = props.data, classes = props.classes, titleClasses = props.titleClasses, _d = props.isGroup, isGroup = _d === void 0 ? false : _d, _e = props.isOpenedByGroup, isOpenedByGroup = _e === void 0 ? false : _e, callbackOpenState = props.callbackOpenState, handleClick = props.handleClick, itemTextClasses = props.itemTextClasses;
48
+ var title = props.title, startIcon = props.startIcon, data = props.data, classes = props.classes, titleClasses = props.titleClasses, iconClasses = props.iconClasses, _d = props.isGroup, isGroup = _d === void 0 ? false : _d, _e = props.isOpenedByGroup, isOpenedByGroup = _e === void 0 ? false : _e, callbackOpenState = props.callbackOpenState, handleClick = props.handleClick, itemTextClasses = props.itemTextClasses;
49
49
  var _f = (0, react_1.useState)(false), isOpened = _f[0], setOpenState = _f[1];
50
50
  var handleClickItem = function (inx) { return function () { return handleClick === null || handleClick === void 0 ? void 0 : handleClick(inx); }; };
51
51
  var toggleOpenState = function () {
@@ -65,6 +65,6 @@ var Accordion = function (props) {
65
65
  _b[styles.starIcon] = startIcon,
66
66
  _b), titleClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: title }) }))] })), (0, jsx_runtime_1.jsx)(ArrowSvg_1.ArrowSvg, { classes: (0, classnames_1.default)(styles.icon, (_c = {},
67
67
  _c[styles.rotate] = isOpenedState,
68
- _c)), width: "16", height: "9" })] })), isOpenedState && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.accordionList }, { children: data.map(function (text, inx) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onClick: handleClickItem(inx), className: (0, classnames_1.default)(styles.itemRow, itemTextClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: text }) }), inx)); }) })))] })));
68
+ _c), iconClasses), width: "16", height: "9" })] })), isOpenedState && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.accordionList }, { children: data.map(function (text, inx) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onClick: handleClickItem(inx), className: (0, classnames_1.default)(styles.itemRow, itemTextClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: text }) }), inx)); }) })))] })));
69
69
  };
70
70
  exports.default = Accordion;
@@ -50,11 +50,11 @@ var ui_1 = require("types/ui");
50
50
  var styles = __importStar(require("./LeftSection.module.css"));
51
51
  var LeftSection = function (props) {
52
52
  var _a;
53
- var isFullView = props.isFullView, toggleDrawerState = props.toggleDrawerState;
53
+ var isFullView = props.isFullView, toggleDrawerState = props.toggleDrawerState, handleLogoClick = props.handleLogoClick;
54
54
  var isMobile = (0, store_1.useZustandDeviceKitStore)(selectors_1.zustandDeviceKitSelector.isMobileDeviceSelector);
55
55
  var appType = (0, store_2.useZustandKitSettings)(selectors_2.getKitAppTypeSelector);
56
56
  if (isMobile) {
57
- return (0, jsx_runtime_1.jsx)(Logos_1.Logo, { isMobile: appType === ui_1.EAppType.JabiBet });
57
+ return ((0, jsx_runtime_1.jsx)(Logos_1.Logo, { isMobile: appType === ui_1.EAppType.JabiBet, handleLogoClick: handleLogoClick }));
58
58
  }
59
59
  return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.drawerStateDrawerButton, styles.stateButton, (_a = {},
60
60
  _a[styles.hideLeftSide] = isFullView,
@@ -1,4 +1,5 @@
1
1
  export type LeftSectionProps = {
2
2
  isFullView: boolean;
3
3
  toggleDrawerState: () => void;
4
+ handleLogoClick: () => void;
4
5
  };
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.CrossSvg = void 0;
15
15
  var jsx_runtime_1 = require("react/jsx-runtime");
16
16
  var CrossSvg = function (props) {
17
- var _a = props.width, width = _a === void 0 ? '8' : _a, _b = props.height, height = _b === void 0 ? '8' : _b, classes = props.classes;
18
- return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: width, height: height, viewBox: "0 0 8 8", fill: "none", className: classes }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M6.86193 0.195262C7.12228 -0.0650874 7.54439 -0.0650874 7.80474 0.195262C8.06509 0.455612 8.06509 0.877722 7.80474 1.13807L4.94281 4L7.80474 6.86193C8.06509 7.12228 8.06509 7.54439 7.80474 7.80474C7.54439 8.06509 7.12228 8.06509 6.86193 7.80474L4 4.94281L1.13807 7.80474C0.877722 8.06509 0.455612 8.06509 0.195262 7.80474C-0.0650875 7.54439 -0.0650875 7.12228 0.195262 6.86193L3.05719 4L0.195262 1.13807C-0.0650871 0.877722 -0.0650871 0.455612 0.195262 0.195262C0.455612 -0.0650874 0.877722 -0.0650874 1.13807 0.195262L4 3.05719L6.86193 0.195262Z", fill: "rgb(var(--gray))" }) })));
17
+ var _a = props.width, width = _a === void 0 ? '8' : _a, _b = props.height, height = _b === void 0 ? '8' : _b, classes = props.classes, handleClick = props.handleClick;
18
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: width, height: height, viewBox: "0 0 8 8", fill: "none", className: classes, onClick: handleClick }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M6.86193 0.195262C7.12228 -0.0650874 7.54439 -0.0650874 7.80474 0.195262C8.06509 0.455612 8.06509 0.877722 7.80474 1.13807L4.94281 4L7.80474 6.86193C8.06509 7.12228 8.06509 7.54439 7.80474 7.80474C7.54439 8.06509 7.12228 8.06509 6.86193 7.80474L4 4.94281L1.13807 7.80474C0.877722 8.06509 0.455612 8.06509 0.195262 7.80474C-0.0650875 7.54439 -0.0650875 7.12228 0.195262 6.86193L3.05719 4L0.195262 1.13807C-0.0650871 0.877722 -0.0650871 0.455612 0.195262 0.195262C0.455612 -0.0650874 0.877722 -0.0650874 1.13807 0.195262L4 3.05719L6.86193 0.195262Z", fill: "rgb(var(--gray))" }) })));
19
19
  };
20
20
  exports.CrossSvg = CrossSvg;
@@ -0,0 +1,2 @@
1
+ import { IconProps } from './types';
2
+ export declare const CarouselArrowSvg: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.CarouselArrowSvg = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var CarouselArrowSvg = function (props) {
17
+ var _a = props.width, width = _a === void 0 ? '12' : _a, _b = props.height, height = _b === void 0 ? '12' : _b, _c = props.classes, classes = _c === void 0 ? '' : _c, handleClick = props.handleClick;
18
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: width, height: height, viewBox: "0 0 12 12", fill: "none", className: classes, onClick: handleClick }, { children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6C-1.44847e-07 9.31371 2.68629 12 6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 1.44847e-07 6 0C2.68629 -1.44847e-07 1.44847e-07 2.68629 0 6ZM8.1182 6.2818C8.29393 6.45754 8.29393 6.74246 8.1182 6.9182L6.3182 8.7182C6.14246 8.89393 5.85754 8.89393 5.6818 8.7182L3.8818 6.9182C3.70607 6.74246 3.70607 6.45754 3.8818 6.2818C4.05754 6.10607 4.34246 6.10607 4.5182 6.2818L5.55 7.3136V3.6C5.55 3.35147 5.75147 3.15 6 3.15C6.24853 3.15 6.45 3.35147 6.45 3.6V7.3136L7.4818 6.2818C7.65754 6.10607 7.94246 6.10607 8.1182 6.2818Z", fill: "#B3BECD" }) })));
19
+ };
20
+ exports.CarouselArrowSvg = CarouselArrowSvg;