@react-pakistan/util-functions 1.23.45 → 1.23.47

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.
@@ -1,8 +1,4 @@
1
- interface CalendarDay {
2
- date: string;
3
- dayOfMonth: number;
4
- isCurrentMonth: boolean;
5
- }
1
+ import { CalendarDay } from './type';
6
2
  interface Params {
7
3
  month: number;
8
4
  year: number;
@@ -1,8 +1,4 @@
1
- interface CalendarDay {
2
- date: string;
3
- dayOfMonth: number;
4
- isCurrentMonth: boolean;
5
- }
1
+ import { CalendarDay } from './type';
6
2
  interface Params {
7
3
  month: number;
8
4
  year: number;
@@ -1,8 +1,4 @@
1
- interface CalendarDay {
2
- date: string;
3
- dayOfMonth: number;
4
- isCurrentMonth: boolean;
5
- }
1
+ import { CalendarDay } from './type';
6
2
  interface Params {
7
3
  currentMonthDays: Array<CalendarDay>;
8
4
  month: number;
@@ -26,6 +26,7 @@ var getCalendarNextMonth = function (_a) {
26
26
  date: (0, dayjs_1.default)("".concat(nextMonth.year(), "-").concat(nextMonth.month() + 1, "-").concat(index + 1)).format('YYYY-MM-DD'),
27
27
  dayOfMonth: index + 1,
28
28
  isCurrentMonth: false,
29
+ isToday: false,
29
30
  }); });
30
31
  };
31
32
  exports.getCalendarNextMonth = getCalendarNextMonth;
@@ -1,8 +1,4 @@
1
- interface CalendarDay {
2
- date: string;
3
- dayOfMonth: number;
4
- isCurrentMonth: boolean;
5
- }
1
+ import { CalendarDay } from './type';
6
2
  interface Params {
7
3
  currentMonthDays: Array<CalendarDay>;
8
4
  month: number;
@@ -30,6 +30,7 @@ var getCalendarPreviousMonth = function (_a) {
30
30
  date: (0, dayjs_1.default)("".concat(previousMonth.year(), "-").concat(previousMonth.month() + 1, "-").concat(previousMonthLastMondayDayOfMonth + index)).format('YYYY-MM-DD'),
31
31
  dayOfMonth: previousMonthLastMondayDayOfMonth + index,
32
32
  isCurrentMonth: false,
33
+ isToday: false,
33
34
  }); });
34
35
  };
35
36
  exports.getCalendarPreviousMonth = getCalendarPreviousMonth;
@@ -38,6 +38,7 @@ export * from './resolve-initials';
38
38
  export * from './slugify';
39
39
  export * from './text-to-enum';
40
40
  export * from './truncate-text';
41
+ export * from './type';
41
42
  export * from './upload-blob-to-private-supabase';
42
43
  export * from './upload-blob-to-public-supabase';
43
44
  export * from './upload-image-to-private-supabase';
package/general/index.js CHANGED
@@ -55,6 +55,7 @@ __exportStar(require("./resolve-initials"), exports);
55
55
  __exportStar(require("./slugify"), exports);
56
56
  __exportStar(require("./text-to-enum"), exports);
57
57
  __exportStar(require("./truncate-text"), exports);
58
+ __exportStar(require("./type"), exports);
58
59
  __exportStar(require("./upload-blob-to-private-supabase"), exports);
59
60
  __exportStar(require("./upload-blob-to-public-supabase"), exports);
60
61
  __exportStar(require("./upload-image-to-private-supabase"), exports);
@@ -0,0 +1,6 @@
1
+ export interface CalendarDay {
2
+ date: string;
3
+ dayOfMonth: number;
4
+ isCurrentMonth: boolean;
5
+ isToday: boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.23.45",
3
+ "version": "1.23.47",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {