@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
59 lines (58 loc) • 1.74 kB
TypeScript
import { FormatMonthOptionType, FormatWeekdayOptionType } from '../../types/date/date';
export interface DateFormatOptions {
weekday?: FormatWeekdayOptionType;
year?: '2-digit' | 'numeric';
month?: FormatMonthOptionType;
day?: '2-digit' | 'numeric';
hour?: '2-digit' | 'numeric';
minute?: '2-digit' | 'numeric';
second?: '2-digit' | 'numeric';
timeZoneName?: 'short' | 'long';
hour12?: boolean;
hourCycle?: 'h12' | 'h23' | 'h11' | 'h24';
}
export declare enum FORMAT_DATE {
d = "d",
dd = "dd",
ddd = "ddd",
dddd = "dddd",
t = "t",
tt = "tt",
ttt = "ttt",
tttt = "tttt",
T = "T",
TT = "TT",
TTT = "TTT",
TTTT = "TTTT",
f = "f",
ff = "ff",
fff = "fff",
ffff = "ffff",
F = "F",
FF = "FF",
FFF = "FFF",
FFFF = "FFFF"
}
export interface DateDefaultConfig {
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
[]: DateFormatOptions;
}