react-gldn-kit 0.1.151 → 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.
- package/dist/{c20ec17de4d9dd6ce4f3ceda19ed33a1.svg → 66d23a3369380a2aa898a657b944f877.svg} +3 -3
- package/dist/index.js +1 -1
- package/dist/lib/components/AppNotify/index.d.ts +2 -0
- package/dist/lib/components/AppNotify/index.js +57 -0
- package/dist/lib/components/AppNotify/types.d.ts +10 -0
- package/dist/lib/components/AppNotify/types.js +2 -0
- package/dist/lib/components/Carousels/components/Carousel/index.d.ts +2 -0
- package/dist/lib/components/Carousels/components/Carousel/index.js +186 -0
- package/dist/lib/components/Carousels/components/Carousel/types.d.ts +12 -0
- package/dist/lib/components/Carousels/components/Carousel/types.js +2 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/components/Step/index.d.ts +3 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/components/Step/index.js +48 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/components/Step/types.d.ts +8 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/components/Step/types.js +2 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/components/VipSteps/index.d.ts +2 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/components/VipSteps/index.js +54 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/components/VipSteps/types.d.ts +8 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/components/VipSteps/types.js +2 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/index.d.ts +2 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/index.js +53 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/types.d.ts +9 -0
- package/dist/lib/components/Carousels/components/CarouselVipClub/types.js +2 -0
- package/dist/lib/components/Modals/Notifications/components/NotificationView/index.js +3 -3
- package/dist/lib/components/ui/AccordionGroup/Accordion.d.ts +1 -0
- package/dist/lib/components/ui/AccordionGroup/Accordion.js +2 -2
- package/dist/lib/components/ui/Headers/LeftSection/index.js +2 -2
- package/dist/lib/components/ui/Headers/LeftSection/types.d.ts +1 -0
- package/dist/lib/components/ui/Icons/Base/CrossSvg.js +2 -2
- package/dist/lib/components/ui/Icons/CarouselArrowSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/CarouselArrowSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/EnSvg.js +2 -2
- package/dist/lib/components/ui/Icons/FlagIcons/MsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/MsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/UkrSvg.js +2 -2
- package/dist/lib/components/ui/Icons/InfoSvg.js +2 -2
- package/dist/lib/components/ui/Icons/Notifications/SuccessSvg.js +1 -1
- package/dist/lib/components/ui/Inputs/PhoneInput/constants.js +2 -2
- package/dist/lib/components/ui/Loaders/CircularLoader/index.d.ts +2 -1
- package/dist/lib/components/ui/Loaders/CircularLoader/index.js +5 -2
- package/dist/lib/components/ui/Progress/ProgressBar/index.js +2 -2
- package/dist/lib/components/ui/Progress/ProgressBar/types.d.ts +1 -0
- package/dist/lib/constants/ui.d.ts +1 -0
- package/dist/lib/constants/ui.js +5 -0
- package/dist/lib/hooks/useIFrameMode.d.ts +1 -0
- package/dist/lib/hooks/useIFrameMode.js +33 -0
- package/dist/lib/hooks/useSwipe.d.ts +9 -7
- package/dist/lib/hooks/useSwipe.js +36 -39
- package/dist/lib/index.d.ts +14 -2
- package/dist/lib/index.js +43 -14
- package/dist/lib/types/ui.d.ts +4 -0
- package/dist/lib/types/ui.js +6 -1
- package/dist/lib/utils/date.d.ts +2 -0
- package/dist/lib/utils/date.js +31 -1
- package/dist/lib/utils/icons.js +3 -0
- package/dist/lib/zustandStore/drawers/casino/selectors.d.ts +7 -0
- package/dist/lib/zustandStore/drawers/casino/selectors.js +22 -0
- package/dist/lib/zustandStore/drawers/casino/store.d.ts +2 -0
- package/dist/lib/zustandStore/drawers/casino/store.js +18 -0
- package/dist/lib/zustandStore/drawers/casino/types.d.ts +9 -0
- package/dist/lib/zustandStore/drawers/casino/types.js +2 -0
- package/dist/main.css +460 -33
- package/package.json +4 -4
package/dist/lib/utils/date.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formattedDate = void 0;
|
|
3
|
+
exports.getNextSaturday = exports.getNext15thDate = exports.formattedDate = void 0;
|
|
4
4
|
var formattedDate = function (countDown) {
|
|
5
5
|
var days = String(Math.floor(countDown / (1000 * 60 * 60 * 24))).padStart(2, '0');
|
|
6
6
|
var hours = String(Math.floor((countDown % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60))).padStart(2, '0');
|
|
@@ -9,3 +9,33 @@ var formattedDate = function (countDown) {
|
|
|
9
9
|
return [days, hours, minutes, seconds];
|
|
10
10
|
};
|
|
11
11
|
exports.formattedDate = formattedDate;
|
|
12
|
+
var getNext15thDate = function () {
|
|
13
|
+
var today = new Date();
|
|
14
|
+
var currentDay = today.getDate();
|
|
15
|
+
var currentMonth = today.getMonth();
|
|
16
|
+
var currentYear = today.getFullYear();
|
|
17
|
+
if (currentDay < 15) {
|
|
18
|
+
return new Date(currentYear, currentMonth, 15).getTime();
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
var nextMonth = currentMonth === 11 ? 0 : currentMonth + 1;
|
|
22
|
+
var nextYear = currentMonth === 11 ? currentYear + 1 : currentYear;
|
|
23
|
+
return new Date(nextYear, nextMonth, 15).getTime();
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.getNext15thDate = getNext15thDate;
|
|
27
|
+
var getNextSaturday = function () {
|
|
28
|
+
var currentDate = new Date();
|
|
29
|
+
var dayOfWeek = currentDate.getDay();
|
|
30
|
+
var daysUntilNextSaturday = dayOfWeek === 6 ? 7 : 6 - dayOfWeek;
|
|
31
|
+
var nextSaturday = new Date(currentDate);
|
|
32
|
+
nextSaturday.setDate(currentDate.getDate() + daysUntilNextSaturday);
|
|
33
|
+
nextSaturday.setUTCHours(0, 0, 0, 0); // Reset to midnight in UTC
|
|
34
|
+
// Get the user's time zone offset in minutes
|
|
35
|
+
var userTimeZoneOffsetMinutes = nextSaturday.getTimezoneOffset(); // in minutes
|
|
36
|
+
var userTimeZoneOffsetHours = userTimeZoneOffsetMinutes / 60; // convert to hours
|
|
37
|
+
// Adjust to the user's time zone by subtracting the offset
|
|
38
|
+
nextSaturday.setHours(nextSaturday.getHours() + userTimeZoneOffsetHours + 3); // Adjust to 3 AM local time
|
|
39
|
+
return nextSaturday.getTime();
|
|
40
|
+
};
|
|
41
|
+
exports.getNextSaturday = getNextSaturday;
|
package/dist/lib/utils/icons.js
CHANGED
|
@@ -20,6 +20,7 @@ var TrSvg_1 = require("components/ui/Icons/FlagIcons/TrSvg");
|
|
|
20
20
|
var UkrSvg_1 = require("components/ui/Icons/FlagIcons/UkrSvg");
|
|
21
21
|
var UzSvg_1 = require("components/ui/Icons/FlagIcons/UzSvg");
|
|
22
22
|
var UrSvg_1 = require("components/ui/Icons/FlagIcons/UrSvg");
|
|
23
|
+
var MsSvg_1 = require("components/ui/Icons/FlagIcons/MsSvg");
|
|
23
24
|
var GreenSvg_1 = require("components/ui/Icons/Bonuses/VipClub/GreenSvg");
|
|
24
25
|
var BronzeSvg_1 = require("components/ui/Icons/Bonuses/VipClub/BronzeSvg");
|
|
25
26
|
var SilverSvg_1 = require("components/ui/Icons/Bonuses/VipClub/SilverSvg");
|
|
@@ -96,6 +97,8 @@ var getFlagIcon = function (lang, classes) {
|
|
|
96
97
|
return (0, jsx_runtime_1.jsx)(ItSvg_1.ItSvg, { classes: classes });
|
|
97
98
|
case 'pk':
|
|
98
99
|
return (0, jsx_runtime_1.jsx)(UrSvg_1.UrSvg, { classes: classes });
|
|
100
|
+
case 'ms':
|
|
101
|
+
return (0, jsx_runtime_1.jsx)(MsSvg_1.MsSvg, { classes: classes });
|
|
99
102
|
default:
|
|
100
103
|
break;
|
|
101
104
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ZustandCasinoDrawerKitStore } from './types';
|
|
2
|
+
export declare const casinoDrawerKitSelectors: {
|
|
3
|
+
isFullCasinoDrawerSelector: (state: ZustandCasinoDrawerKitStore) => boolean;
|
|
4
|
+
getDrawerStateSelector: (store: ZustandCasinoDrawerKitStore) => boolean;
|
|
5
|
+
setFullCasinoDrawerAction: (state: ZustandCasinoDrawerKitStore) => (view?: boolean) => void;
|
|
6
|
+
setDrawerStateAction: (store: ZustandCasinoDrawerKitStore) => (b: boolean) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.casinoDrawerKitSelectors = void 0;
|
|
4
|
+
var isFullCasinoDrawerSelector = function (state) {
|
|
5
|
+
return state.isFullView;
|
|
6
|
+
};
|
|
7
|
+
var getDrawerStateSelector = function (store) {
|
|
8
|
+
return store.isClosed;
|
|
9
|
+
};
|
|
10
|
+
// Actions
|
|
11
|
+
var setFullCasinoDrawerAction = function (state) {
|
|
12
|
+
return state.setCasinoDrawerView;
|
|
13
|
+
};
|
|
14
|
+
var setDrawerStateAction = function (store) {
|
|
15
|
+
return store.setCloseState;
|
|
16
|
+
};
|
|
17
|
+
exports.casinoDrawerKitSelectors = {
|
|
18
|
+
isFullCasinoDrawerSelector: isFullCasinoDrawerSelector,
|
|
19
|
+
getDrawerStateSelector: getDrawerStateSelector,
|
|
20
|
+
setFullCasinoDrawerAction: setFullCasinoDrawerAction,
|
|
21
|
+
setDrawerStateAction: setDrawerStateAction,
|
|
22
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useZustandCasinoDrawerKitStore = void 0;
|
|
4
|
+
var zustand_1 = require("zustand");
|
|
5
|
+
exports.useZustandCasinoDrawerKitStore = (0, zustand_1.create)(function (set, get) { return ({
|
|
6
|
+
isFullView: true,
|
|
7
|
+
isClosed: false,
|
|
8
|
+
setCloseState: function (isClosed) {
|
|
9
|
+
set({ isClosed: isClosed });
|
|
10
|
+
},
|
|
11
|
+
setCasinoDrawerView: function (isFullView) {
|
|
12
|
+
if (isFullView === undefined) {
|
|
13
|
+
var isFullView_1 = get().isFullView;
|
|
14
|
+
return set({ isFullView: !isFullView_1 });
|
|
15
|
+
}
|
|
16
|
+
return set({ isFullView: isFullView });
|
|
17
|
+
},
|
|
18
|
+
}); });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ZustandCasinoDrawerKitStore extends ZustandCasinoDrawerEntities {
|
|
2
|
+
setCasinoDrawerView: (view?: boolean | undefined) => void;
|
|
3
|
+
setCloseState: (b: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
interface ZustandCasinoDrawerEntities {
|
|
6
|
+
isFullView: boolean;
|
|
7
|
+
isClosed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export {};
|