@conboai/storybook.components 0.2.77 → 0.2.79
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/helpers/utils/date.d.ts +10 -0
- package/dist/storybook.components.mjs +212 -199
- package/package.json +1 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { default as dayjs, ManipulateType, OpUnitType, UnitType } from 'dayjs';
|
|
2
2
|
|
|
3
|
+
interface IDateTimeFormatter {
|
|
4
|
+
date: null | Date | string;
|
|
5
|
+
withTime?: boolean;
|
|
6
|
+
withAmPm?: boolean;
|
|
7
|
+
timezone?: string;
|
|
8
|
+
onlyTime?: boolean;
|
|
9
|
+
format?: string;
|
|
10
|
+
}
|
|
3
11
|
export declare const getStartTime: (type: OpUnitType, timeType: UnitType, time: number) => dayjs.Dayjs;
|
|
4
12
|
export declare const getEndTime: (type: OpUnitType, timeType: UnitType, time: number) => dayjs.Dayjs;
|
|
5
13
|
export declare const getStartTimeOfYesterday: (time: number) => dayjs.Dayjs;
|
|
@@ -16,3 +24,5 @@ export declare const convertLocalToUTCWithFormattedDate: (inputDate: Date, timez
|
|
|
16
24
|
export declare const convertDateFromUTCWithFormattedDateAndDuration: (inputDate: Date, timezone: string, duration: number) => string;
|
|
17
25
|
export declare const isTimeZoneNegative: (time: string | Date, timezone: string) => boolean;
|
|
18
26
|
export declare const convertToUTC: (time: string | Date, timezone: string) => string;
|
|
27
|
+
export declare const formatDateWithTimeAndTimeZone: ({ date, withTime, withAmPm, timezone, onlyTime, format }: IDateTimeFormatter) => string;
|
|
28
|
+
export {};
|