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.
Files changed (62) 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/Inputs/PhoneInput/constants.js +2 -2
  38. package/dist/lib/components/ui/Loaders/CircularLoader/index.d.ts +2 -1
  39. package/dist/lib/components/ui/Loaders/CircularLoader/index.js +5 -2
  40. package/dist/lib/components/ui/Progress/ProgressBar/index.js +2 -2
  41. package/dist/lib/components/ui/Progress/ProgressBar/types.d.ts +1 -0
  42. package/dist/lib/constants/ui.d.ts +1 -0
  43. package/dist/lib/constants/ui.js +5 -0
  44. package/dist/lib/hooks/useIFrameMode.d.ts +1 -0
  45. package/dist/lib/hooks/useIFrameMode.js +33 -0
  46. package/dist/lib/hooks/useSwipe.d.ts +9 -7
  47. package/dist/lib/hooks/useSwipe.js +36 -39
  48. package/dist/lib/index.d.ts +14 -2
  49. package/dist/lib/index.js +43 -14
  50. package/dist/lib/types/ui.d.ts +4 -0
  51. package/dist/lib/types/ui.js +6 -1
  52. package/dist/lib/utils/date.d.ts +2 -0
  53. package/dist/lib/utils/date.js +31 -1
  54. package/dist/lib/utils/icons.js +3 -0
  55. package/dist/lib/zustandStore/drawers/casino/selectors.d.ts +7 -0
  56. package/dist/lib/zustandStore/drawers/casino/selectors.js +22 -0
  57. package/dist/lib/zustandStore/drawers/casino/store.d.ts +2 -0
  58. package/dist/lib/zustandStore/drawers/casino/store.js +18 -0
  59. package/dist/lib/zustandStore/drawers/casino/types.d.ts +9 -0
  60. package/dist/lib/zustandStore/drawers/casino/types.js +2 -0
  61. package/dist/main.css +460 -33
  62. package/package.json +4 -4
@@ -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;
@@ -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,2 @@
1
+ import { ZustandCasinoDrawerKitStore } from './types';
2
+ export declare const useZustandCasinoDrawerKitStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ZustandCasinoDrawerKitStore>>;
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });