sevago-library 1.2.0 → 1.2.2

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.
@@ -38,6 +38,9 @@ export declare const COMMON: {
38
38
  overDue: string;
39
39
  primary: string;
40
40
  };
41
+ export declare const WHITE: {
42
+ 50: string;
43
+ };
41
44
  export declare const BACKGROUND: {
42
45
  50: string;
43
46
  100: string;
@@ -1,16 +1,16 @@
1
1
  import { default as dayjs, Dayjs } from 'dayjs';
2
- export declare const getTimeAgo: (time: Date | string) => string;
3
- export declare const getDateTime: (time?: Date | string, isGetDay?: boolean) => string;
4
- export declare const getDate: (time?: Date | string) => string;
2
+ export declare const getTimeAgo: (time: Date | string | number) => string;
3
+ export declare const getDateTime: (time?: Date | string | number, isGetDay?: boolean) => string;
4
+ export declare const getDate: (time?: Date | string | number) => string;
5
5
  export declare const checkNowYear: (date?: Date, year?: number) => boolean;
6
6
  export declare const getMonthRangeForYear: (startDate: Date, endDate: Date, year: number) => {
7
7
  start: number;
8
8
  end: number;
9
9
  };
10
10
  export declare function getDayOffsetPx(date: dayjs.Dayjs, monthWidths: number[], dayWidth: number): number;
11
- export declare const isSameDateTime: (createdAt: Date | string, updatedAt: Date | string) => boolean;
12
- export declare const getTimeDate: (time?: Date | string) => string;
11
+ export declare const isSameDateTime: (createdAt: Date | string | number, updatedAt: Date | string | number) => boolean;
12
+ export declare const getTimeDate: (time?: Date | string | number) => string;
13
13
  export declare const isDateString: (value: any) => boolean;
14
- export declare const getDateISO: (date?: Date | string | null) => string | undefined;
15
- export declare const formatActivityDateLabel: (time: Date | string) => string;
14
+ export declare const getDateISO: (date?: Date | string | number | null) => string | undefined;
15
+ export declare const formatActivityDateLabel: (time: Date | string | number) => string;
16
16
  export declare const formatRange: (range: [Dayjs | null, Dayjs | null]) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sevago-library",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",