mado-ui 0.5.5 → 0.5.7
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/css/index.css +100 -13
- package/dist/components/drop-down.d.ts +12 -12
- package/dist/components/drop-down.d.ts.map +1 -1
- package/dist/components/form/human-verification.d.ts +15 -0
- package/dist/components/form/human-verification.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +0 -1
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/input/date/index.d.ts +16 -36
- package/dist/components/form/input/date/index.d.ts.map +1 -1
- package/dist/components/form/input/index.d.ts +91 -8
- package/dist/components/form/input/index.d.ts.map +1 -1
- package/dist/components/link.d.ts +14 -13
- package/dist/components/link.d.ts.map +1 -1
- package/dist/components/tooltip.d.ts +7 -7
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/video.d.ts +6 -6
- package/dist/components/video.d.ts.map +1 -1
- package/dist/components.d.ts +96 -194
- package/dist/components.esm.js +624 -782
- package/dist/components.esm.js.map +1 -1
- package/dist/components.js +621 -779
- package/dist/components.js.map +1 -1
- package/dist/graphics.esm.js +2 -2
- package/dist/graphics.esm.js.map +1 -1
- package/dist/graphics.js +2 -2
- package/dist/graphics.js.map +1 -1
- package/dist/hooks/use-fieldset-context.d.ts.map +1 -1
- package/dist/hooks/use-form-context.d.ts +5 -5
- package/dist/hooks/use-form-context.d.ts.map +1 -1
- package/dist/hooks.d.ts +5 -5
- package/dist/hooks.esm.js.map +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/icons/index.d.ts +142 -143
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/square-and-arrow-up-right.d.ts +3 -0
- package/dist/icons/square-and-arrow-up-right.d.ts.map +1 -0
- package/dist/icons/square-and-pencil.d.ts +2 -2
- package/dist/icons/square-and-pencil.d.ts.map +1 -1
- package/dist/icons.d.ts +2 -4
- package/dist/icons.esm.js +2 -6
- package/dist/icons.esm.js.map +1 -1
- package/dist/icons.js +1 -6
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +96 -194
- package/dist/index.esm.js +624 -782
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +621 -779
- package/dist/index.js.map +1 -1
- package/dist/utils/get-date.d.ts +20 -32
- package/dist/utils/get-date.d.ts.map +1 -1
- package/dist/utils.d.ts +22 -34
- package/dist/utils.esm.js +40 -1064
- package/dist/utils.esm.js.map +1 -1
- package/dist/utils.js +41 -1067
- package/dist/utils.js.map +1 -1
- package/package.json +88 -100
- package/dist/components/form/input/date/views/index.d.ts +0 -5
- package/dist/components/form/input/date/views/index.d.ts.map +0 -1
- package/dist/icons/square-and-pencil-fill.d.ts +0 -3
- package/dist/icons/square-and-pencil-fill.d.ts.map +0 -1
package/dist/utils/get-date.d.ts
CHANGED
|
@@ -15,80 +15,72 @@ export type SecondNumber = MinuteNumber;
|
|
|
15
15
|
export type WeekdayName = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday';
|
|
16
16
|
export type WeekdayNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
17
17
|
export type WeekNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53;
|
|
18
|
-
export type TimezoneData = {
|
|
19
|
-
abbr: 'ACDT' | 'ACST' | 'ACT' | 'ACWST' | 'ADT' | 'AEDT' | 'AEST' | 'AFT' | 'AKDT' | 'AKST' | 'AMST' | 'AMT' | 'AMT' | 'ART' | 'AST' | 'AST' | 'AT' | 'AWST' | 'AZOST' | 'AZOT' | 'AZT' | 'BDT' | 'BIT' | 'BNT' | 'BOT' | 'BRST' | 'BRT' | 'BST' | 'BST' | 'BST' | 'BTT' | 'CAT' | 'CCT' | 'CDT' | 'CDT' | 'CEST' | 'CET' | 'CHADT' | 'CHAST' | 'CHOST' | 'CHOT' | 'CHST' | 'CHUT' | 'CIST' | 'CIT' | 'CKT' | 'CLST' | 'CLT' | 'COST' | 'COT' | 'CST' | 'CST' | 'CST' | 'CT' | 'CVT' | 'CWST' | 'CXT' | 'DAVT' | 'DDUT' | 'EASST' | 'EAST' | 'EAT' | 'ECT' | 'EDT' | 'EEST' | 'EET' | 'EGST' | 'EGT' | 'EIT' | 'EST' | 'ET' | 'FET' | 'FJT' | 'FKST' | 'FKT' | 'FNT' | 'GALT' | 'GAMT' | 'GET' | 'GFT' | 'GILT' | 'GIT' | 'GMT' | 'GST' | 'GST' | 'GYT' | 'HADT' | 'HAST' | 'HKT' | 'HMT' | 'HOVST' | 'HOVT' | 'ICT' | 'IDT' | 'IOT' | 'IRDT' | 'IRKT' | 'IRST' | 'IST' | 'IST' | 'IST' | 'JST' | 'KGT' | 'KOST' | 'KRAT' | 'KST' | 'LHDT' | 'LHST' | 'LINT' | 'MAGT' | 'MART' | 'MAWT' | 'MDT' | 'MHT' | 'MIST' | 'MIT' | 'MMT' | 'MSK' | 'MST' | 'MST' | 'MT' | 'MUT' | 'MVT' | 'MYT' | 'NCT' | 'NDT' | 'NFT' | 'NPT' | 'NRT' | 'NST' | 'NT' | 'NUT' | 'NZDT' | 'NZST' | 'OMST' | 'ORAT' | 'PDT' | 'PET' | 'PETT' | 'PGT' | 'PHOT' | 'PHST' | 'PHT' | 'PKT' | 'PMDT' | 'PMST' | 'PONT' | 'PST' | 'PT' | 'PWT' | 'PYST' | 'PYT' | 'RET' | 'ROTT' | 'SAKT' | 'SAMT' | 'SAST' | 'SBT' | 'SCT' | 'SGT' | 'SLST' | 'SRET' | 'SRT' | 'SST' | 'SYOT' | 'TAHT' | 'TFT' | 'THA' | 'TJT' | 'TKT' | 'TLT' | 'TMT' | 'TOT' | 'TRT' | 'TVT' | 'ULAST' | 'ULAT' | 'USZ1' | 'UTC' | 'UYST' | 'UYT' | 'UZT' | 'VET' | 'VLAT' | 'VOLT' | 'VOST' | 'VUT' | 'WAKT' | 'WAST' | 'WAT' | 'WEST' | 'WET' | 'WFT' | 'WGST' | 'WGST' | 'WIB' | 'WIT' | 'WST' | 'YAKT' | 'YEKT';
|
|
20
|
-
name: 'Australian Central Daylight Time' | 'Australian Central Standard Time' | 'Acre Time' | 'Australian Central Western Standard Time' | 'Atlantic Daylight Time' | 'Australian Eastern Daylight Savings Time' | 'Australian Eastern Standard Time' | 'Afghanistan Time' | 'Alaska Daylight Time' | 'Alaska Standard Time' | 'Amazon Summer Time' | 'Amazon Time' | 'Armenia Time' | 'Argentina Time' | 'Atlantic Standard Time' | 'Arabia Standard Time' | 'Atlantic Time' | 'Australian Western Standard Time' | 'Azores Summer Time' | 'Azores Standard Time' | 'Azerbaijan Time' | 'Brunei Time' | 'Baker Island Time' | 'Brunei Darussalam Time' | 'Bolivia Time' | 'Brasilia Summer Time' | 'Brasilia Time' | 'British Summer Time' | 'Bangladesh Standard Time' | 'Bougainville Standard Time' | 'Bhutan Time' | 'Central Africa Time' | 'Cocos Islands Time' | 'Central Daylight Time' | 'Cuba Daylight Time' | 'Central European Summer Time' | 'Central European Time' | 'Chatham Daylight Time' | 'Chatham Standard Time' | 'Choibalsan Summer Time' | 'Choibalsan Standard Time' | 'Chamorro Standard Time' | 'Chuuk Time' | 'Clipperton Island Standard Time' | 'Central Indonesia Time' | 'Cook Island Time' | 'Chile Summer Time' | 'Chile Standard Time' | 'Colombia Summer Time' | 'Colombia Time' | 'Central Standard Time' | 'China Standard Time' | 'Cuba Standard Time' | 'Central Time' | 'Cape Verde Time' | 'Central Western Standard Time' | 'Christmas Island Time' | 'Davis Time' | `Dumont d'Urville Time` | 'Easter Island Summer Time' | 'Easter Island Standard Time' | 'East Africa Time' | 'Ecuador Time' | 'Eastern Daylight Time' | 'Eastern European Summer Time' | 'Eastern European Time' | 'Eastern Greenland Summer Time' | 'Eastern Greenland Time' | 'Eastern Indonesian Time' | 'Eastern Standard Time' | 'Eastern Time' | 'Further-eastern European Time' | 'Fiji Time' | 'Falkland Islands Summer Time' | 'Falkland Islands Time' | 'Fernando de Noronha Time' | 'Galapagos Time' | 'Gambier Islands' | 'Georgia Standard Time' | 'French Guiana Time' | 'Gilbert Island Time' | 'Gambier Island Time' | 'Greenwich Mean Time' | 'Gulf Standard Time' | 'South Georgia Time' | 'Guyana Time' | 'Hawaii-Aleutian Daylight Time' | 'Hawaii-Aleutian Standard Time' | 'Hong Kong Time' | 'Heard and McDonald Islands Time' | 'Khovd Summer Time' | 'Khovd Standard Time' | 'Indochina Time' | 'Israel Daylight Time' | 'Indian Chagos Time' | 'Iran Daylight Time' | 'Irkutsk Time' | 'Iran Standard Time' | 'Indian Standard Time' | 'Irish Standard Time' | 'Israel Standard Time' | 'Japan Standard Time' | 'Kyrgyzstan time' | 'Kosrae Time' | 'Krasnoyarsk Time' | 'Korea Standard Time' | 'Lord Howe Daylight Time' | 'Lord Howe Standard Time' | 'Line Islands Time' | 'Magadan Time' | 'Marquesas Islands Time' | 'Mawson Station Time' | 'Mountain Daylight Time' | 'Marshall Islands' | 'Macquarie Island Station Time' | 'Marquesas Islands Time' | 'Myanmar Standard Time' | 'Moscow Time' | 'Mountain Standard Time' | 'Malaysia Standard Time' | 'Mountain Time' | 'Mauritius Time' | 'Maldives Time' | 'Malaysia Time' | 'New Caledonia Time' | 'Newfoundland Daylight Time' | 'Norfolk Time' | 'Nepal Time' | 'Nauru Time' | 'Newfoundland Standard Time' | 'Newfoundland Time' | 'Niue Time' | 'New Zealand Daylight Time' | 'New Zealand Standard Time' | 'Omsk Time' | 'Oral Time' | 'Pacific Daylight Time' | 'Peru Time' | 'Kamchatka Time' | 'Papua New Guinea Time' | 'Phoenix Island Time' | 'Philippine Standard Time' | 'Philippine Time' | 'Pakistan Standard Time' | 'Saint Pierre and Miquelon Daylight time' | 'Saint Pierre and Miquelon Standard Time' | 'Pohnpei Standard Time' | 'Pacific Standard Time' | 'Pacific Time' | 'Palau Time' | 'Paraguay Summer Time' | 'Paraguay Time' | 'Réunion Time' | 'Rothera Research Station Time' | 'Sakhalin Island time' | 'Samara Time' | 'South African Standard Time' | 'Solomon Islands Time' | 'Seychelles Time' | 'Singapore Time' | 'Sri Lanka Standard Time' | 'Srednekolymsk Time' | 'Suriname Time' | 'Samoa Standard Time' | 'Showa Station Time' | 'Tahiti Time' | 'French Southern and Antarctic Time' | 'Thailand Standard Time' | 'Tajikistan Time' | 'Tokelau Time' | 'Timor Leste Time' | 'Turkmenistan Time' | 'Tonga Time' | 'Turkey Time' | 'Tuvalu Time' | 'Ulaanbaatar Summer Time' | 'Ulaanbaatar Standard Time' | 'Kaliningrad Time' | 'Coordinated Universal Time' | 'Uruguay Summer Time' | 'Uruguay Standard Time' | 'Uzbekistan Time' | 'Venezuelan Standard Time' | 'Vladivostok Time' | 'Volgograd Time' | 'Vostok Station Time' | 'Vanuatu Time' | 'Wake Island Time' | 'West Africa Summer Time' | 'West Africa Time' | 'Western European Summer Time' | 'Western European Time' | 'Wallis and Futuna Time' | 'West Greenland Summer Time' | 'West Greenland Time' | 'Western Indonesia Time' | 'Eastern Indonesia Time' | 'Western Standard Time' | 'Yakutsk Time' | 'Yekaterinburg Time';
|
|
21
|
-
offset: ['+' | '-', number, number];
|
|
22
|
-
};
|
|
23
|
-
export declare const timezoneList: TimezoneData[];
|
|
24
18
|
/** An array of the names of month in order */
|
|
25
19
|
export declare const monthNamesList: MonthName[];
|
|
26
20
|
/** An array of the names of the days of the week in order */
|
|
27
21
|
export declare const weekdayNamesList: WeekdayName[];
|
|
28
|
-
export declare function compareDates(d1: Date, mode: '>' | '>=' | '<' | '<=' | '==', d2: Date): boolean;
|
|
29
22
|
/** The name of the current month */
|
|
30
23
|
export declare const currentMonthName: MonthName;
|
|
31
24
|
/** The name of the current day of the week */
|
|
32
25
|
export declare const currentWeekdayName: WeekdayName;
|
|
33
|
-
export declare function dateMath(d1: Date, operator: '+' | '-' | '*' | '/', d2: Date): Date;
|
|
34
26
|
/**
|
|
35
|
-
*
|
|
27
|
+
* ### Days In Month
|
|
36
28
|
* - Returns the number of days in the specified month.
|
|
37
29
|
* @param {Date} date A Date object representing the month to get the number of days for. (Preset to the current date)
|
|
38
30
|
* @returns {number} The number of days in the specified month.
|
|
39
31
|
*/
|
|
40
32
|
export declare function daysInMonth(date?: Date): number;
|
|
41
33
|
/**
|
|
42
|
-
*
|
|
34
|
+
* ### First of Month
|
|
43
35
|
* - Returns the first day of the specified month.
|
|
44
36
|
* @param {Date} date A Date object representing the month to get the first day for. (Preset to current date)
|
|
45
37
|
* @returns {Date} A Date object of the given month, with the first day.
|
|
46
38
|
*/
|
|
47
39
|
export declare function firstOfMonth(date?: Date): Date;
|
|
48
40
|
/**
|
|
49
|
-
*
|
|
41
|
+
* ### Get Date
|
|
50
42
|
* - Returns the date with two digits
|
|
51
43
|
* @param {number|Date} date The date to get date
|
|
52
44
|
* @returns {string} The date with two digits
|
|
53
45
|
*/
|
|
54
46
|
export declare function getDate(date?: number | Date): string;
|
|
55
47
|
/**
|
|
56
|
-
*
|
|
48
|
+
* ### Get Hours
|
|
57
49
|
* - Returns the hours with two digits
|
|
58
50
|
* @param {number|Date} hours The date to get hours
|
|
59
51
|
* @returns {string} The hours with two digits
|
|
60
52
|
*/
|
|
61
53
|
export declare function getHours(hours?: number | Date): string;
|
|
62
54
|
/**
|
|
63
|
-
*
|
|
55
|
+
* ### Get Hours in 12
|
|
64
56
|
* - Returns the hour based on the specified 24 hour value in a 12 hour format
|
|
65
57
|
* @param {number|Date} hour The hour to be converted to 12 hour format
|
|
66
58
|
* @returns {number} The hour in a 12 hour format
|
|
67
59
|
*/
|
|
68
60
|
export declare function getHoursIn12(hour?: number | Date): number;
|
|
69
61
|
/**
|
|
70
|
-
*
|
|
62
|
+
* ### Get Meridian from Hour
|
|
71
63
|
* - Returns either 'pm' or 'am' based on the specified 24 hour value
|
|
72
64
|
* @param {number|Date} hour The hour to get the meridian from
|
|
73
65
|
* @returns {'am'|'pm'} The meridian for the given hour
|
|
74
66
|
*/
|
|
75
67
|
export declare function getMeridianFromHour(hour?: number | Date): 'am' | 'pm';
|
|
76
68
|
/**
|
|
77
|
-
*
|
|
69
|
+
* ### Get Milliseconds
|
|
78
70
|
* - Returns the milliseconds with two digits
|
|
79
71
|
* @param {number|Date} milliseconds The date to get milliseconds
|
|
80
72
|
* @returns {string} The milliseconds with two digits
|
|
81
73
|
*/
|
|
82
74
|
export declare function getMilliseconds(milliseconds?: number | Date): string;
|
|
83
75
|
/**
|
|
84
|
-
*
|
|
76
|
+
* ### Get Minutes
|
|
85
77
|
* - Returns the minutes with two digits
|
|
86
78
|
* @param {number|Date} minutes The date to get minutes
|
|
87
79
|
* @returns {string} The minutes with two digits
|
|
88
80
|
*/
|
|
89
81
|
export declare function getMinutes(minutes?: number | Date): string;
|
|
90
82
|
/**
|
|
91
|
-
*
|
|
83
|
+
* ### Get Month
|
|
92
84
|
* - Returns the month with two digits
|
|
93
85
|
* @param {number|Date} month The date to get month
|
|
94
86
|
* @returns {string} The month with two digits
|
|
@@ -96,41 +88,35 @@ export declare function getMinutes(minutes?: number | Date): string;
|
|
|
96
88
|
export declare function getMonth(month?: number | Date): string;
|
|
97
89
|
export declare function getMonthIndexFromName(name: MonthName): number;
|
|
98
90
|
/**
|
|
99
|
-
*
|
|
91
|
+
* ### Get Month Name
|
|
100
92
|
* - Returns the name of the specified month
|
|
101
93
|
* @param {Date} date A Date object representing the month to get the name of the month from. (Preset to the current date)
|
|
102
94
|
* @returns {MonthName} The name of the specified month
|
|
103
95
|
*/
|
|
104
96
|
export declare function getMonthName(date?: number | Date): MonthName;
|
|
105
97
|
/**
|
|
106
|
-
*
|
|
98
|
+
* ### Get Next Month
|
|
107
99
|
* - Returns the number of the following month from the specified month
|
|
108
100
|
* @param {Date} date The Date object representing the month to get the following month from (Preset to current date)
|
|
109
101
|
* @returns {number} The indexed month of the following month
|
|
110
102
|
*/
|
|
111
103
|
export declare function getNextMonth(date?: Date): number;
|
|
112
104
|
/**
|
|
113
|
-
*
|
|
105
|
+
* ### Get Previous Month
|
|
114
106
|
* - Returns the number of the previous month from the specified month
|
|
115
107
|
* @param {Date} date The Date object representing the month to get the previous month from (Preset to current date)
|
|
116
108
|
* @returns {number} The indexed month of the previous month
|
|
117
109
|
*/
|
|
118
110
|
export declare function getPreviousMonth(date?: Date): number;
|
|
119
111
|
/**
|
|
120
|
-
*
|
|
112
|
+
* ### Get Seconds
|
|
121
113
|
* - Returns the seconds with two digits
|
|
122
114
|
* @param {number|Date} seconds The date to get seconds
|
|
123
115
|
* @returns {string} The seconds with two digits
|
|
124
116
|
*/
|
|
125
117
|
export declare function getSeconds(seconds?: number | Date): string;
|
|
126
118
|
/**
|
|
127
|
-
*
|
|
128
|
-
* - Returns the user's local timezone data.
|
|
129
|
-
* @returns {TimezoneData | undefined} Timezone data object
|
|
130
|
-
*/
|
|
131
|
-
export declare function getLocalTimezone(): TimezoneData | undefined;
|
|
132
|
-
/**
|
|
133
|
-
* # Get User Readable Date
|
|
119
|
+
* ### Get User Readable Date
|
|
134
120
|
* - Returns a string of the current date in a user-friendly way
|
|
135
121
|
* - Includes `'Yesterday'`, '`Today'`, and `'Tomorrow'`
|
|
136
122
|
* @param date (default: `new Date()`)
|
|
@@ -138,14 +124,14 @@ export declare function getLocalTimezone(): TimezoneData | undefined;
|
|
|
138
124
|
*/
|
|
139
125
|
export declare function getUserReadableDate(date?: Date): 'Today' | 'Tomorrow' | 'Yesterday' | string;
|
|
140
126
|
/**
|
|
141
|
-
*
|
|
127
|
+
* ### Get Weekday Name
|
|
142
128
|
* - Returns the weekday name of the specified day
|
|
143
129
|
* @param {number | Date} weekday A Date object or number representing the day to get the weekday name from. (Preset to the current date)
|
|
144
130
|
* @returns {WeekdayName} The name of the specified weekday
|
|
145
131
|
*/
|
|
146
132
|
export declare function getWeekdayName(weekday?: number | Date): WeekdayName;
|
|
147
133
|
/**
|
|
148
|
-
*
|
|
134
|
+
* ### Get Years in Range
|
|
149
135
|
* - Returns an array of years in between the specified minimum and maximum years
|
|
150
136
|
* @param {number} minYear The minimum year
|
|
151
137
|
* @param {number} maxYear The maximum year
|
|
@@ -164,7 +150,7 @@ type ToFullDateStringOptionsProps = Partial<{
|
|
|
164
150
|
year: boolean | 'full' | 'code';
|
|
165
151
|
}>;
|
|
166
152
|
/**
|
|
167
|
-
*
|
|
153
|
+
* ### To Full Date String
|
|
168
154
|
* - Returns a formatted string to display the date
|
|
169
155
|
* @param {Date} date (default: `new Date()`)
|
|
170
156
|
* @param {ToFullDateStringOptionsProps} options Change how to display the weekday, month name, day of the month, and year.
|
|
@@ -172,12 +158,14 @@ type ToFullDateStringOptionsProps = Partial<{
|
|
|
172
158
|
*/
|
|
173
159
|
export declare function toFullDateString(date?: Date, options?: ToFullDateStringOptionsProps): string;
|
|
174
160
|
/**
|
|
175
|
-
*
|
|
161
|
+
* ### Get User Readable Date From Timestampz
|
|
176
162
|
* - Returns a string of the current date in a user-friendly way
|
|
177
163
|
* - Includes `'Yesterday'`, '`Today'`, and `'Tomorrow'`
|
|
178
164
|
* @param string
|
|
179
165
|
* @returns {'Today'|'Tomorrow'|'Yesterday'|string} `'weekday, month day, year'` | `'Yesterday'` | `'Today'` | `'Tomorrow'`
|
|
180
166
|
*/
|
|
181
167
|
export declare function getUserReadableDateFromTimestampz(timestampz: string): 'Today' | 'Tomorrow' | 'Yesterday' | string;
|
|
168
|
+
export declare function getLocalTime(time: string | [number, number]): string;
|
|
169
|
+
export declare function getTimezone(): string;
|
|
182
170
|
export {};
|
|
183
171
|
//# sourceMappingURL=get-date.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-date.d.ts","sourceRoot":"","sources":["../../src/utils/get-date.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAClB,CAAC,GACD,CAAC,GACD,CAAC,G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AAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"get-date.d.ts","sourceRoot":"","sources":["../../src/utils/get-date.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAClB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAA;AAEL,MAAM,MAAM,cAAc,GAAG;IAC5B,GAAG,EAAE,SAAS,CAAA;IACd,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,YAAY,CAAA;IACpB,KAAK,EAAE,WAAW,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,UAAU,GACnB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GAC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rF;AAED,iFAAiF;AACjF,KAAK,4BAA4B,GAAG,OAAO,CAAC;IAC3C,2DAA2D;IAC3D,GAAG,EAAE,OAAO,CAAA;IACZ,8DAA8D;IAC9D,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;IAChC,mEAAmE;IACnE,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;IAClC,+CAA+C;IAC/C,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;CAC/B,CAAC,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,IAAQ,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,MAAM,CAwC/F;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAiBjH;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,UAgB3D;AAED,wBAAgB,WAAW,WAQ1B"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -53,80 +53,72 @@ type SecondNumber = MinuteNumber;
|
|
|
53
53
|
type WeekdayName = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday';
|
|
54
54
|
type WeekdayNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
55
55
|
type WeekNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53;
|
|
56
|
-
type TimezoneData = {
|
|
57
|
-
abbr: 'ACDT' | 'ACST' | 'ACT' | 'ACWST' | 'ADT' | 'AEDT' | 'AEST' | 'AFT' | 'AKDT' | 'AKST' | 'AMST' | 'AMT' | 'AMT' | 'ART' | 'AST' | 'AST' | 'AT' | 'AWST' | 'AZOST' | 'AZOT' | 'AZT' | 'BDT' | 'BIT' | 'BNT' | 'BOT' | 'BRST' | 'BRT' | 'BST' | 'BST' | 'BST' | 'BTT' | 'CAT' | 'CCT' | 'CDT' | 'CDT' | 'CEST' | 'CET' | 'CHADT' | 'CHAST' | 'CHOST' | 'CHOT' | 'CHST' | 'CHUT' | 'CIST' | 'CIT' | 'CKT' | 'CLST' | 'CLT' | 'COST' | 'COT' | 'CST' | 'CST' | 'CST' | 'CT' | 'CVT' | 'CWST' | 'CXT' | 'DAVT' | 'DDUT' | 'EASST' | 'EAST' | 'EAT' | 'ECT' | 'EDT' | 'EEST' | 'EET' | 'EGST' | 'EGT' | 'EIT' | 'EST' | 'ET' | 'FET' | 'FJT' | 'FKST' | 'FKT' | 'FNT' | 'GALT' | 'GAMT' | 'GET' | 'GFT' | 'GILT' | 'GIT' | 'GMT' | 'GST' | 'GST' | 'GYT' | 'HADT' | 'HAST' | 'HKT' | 'HMT' | 'HOVST' | 'HOVT' | 'ICT' | 'IDT' | 'IOT' | 'IRDT' | 'IRKT' | 'IRST' | 'IST' | 'IST' | 'IST' | 'JST' | 'KGT' | 'KOST' | 'KRAT' | 'KST' | 'LHDT' | 'LHST' | 'LINT' | 'MAGT' | 'MART' | 'MAWT' | 'MDT' | 'MHT' | 'MIST' | 'MIT' | 'MMT' | 'MSK' | 'MST' | 'MST' | 'MT' | 'MUT' | 'MVT' | 'MYT' | 'NCT' | 'NDT' | 'NFT' | 'NPT' | 'NRT' | 'NST' | 'NT' | 'NUT' | 'NZDT' | 'NZST' | 'OMST' | 'ORAT' | 'PDT' | 'PET' | 'PETT' | 'PGT' | 'PHOT' | 'PHST' | 'PHT' | 'PKT' | 'PMDT' | 'PMST' | 'PONT' | 'PST' | 'PT' | 'PWT' | 'PYST' | 'PYT' | 'RET' | 'ROTT' | 'SAKT' | 'SAMT' | 'SAST' | 'SBT' | 'SCT' | 'SGT' | 'SLST' | 'SRET' | 'SRT' | 'SST' | 'SYOT' | 'TAHT' | 'TFT' | 'THA' | 'TJT' | 'TKT' | 'TLT' | 'TMT' | 'TOT' | 'TRT' | 'TVT' | 'ULAST' | 'ULAT' | 'USZ1' | 'UTC' | 'UYST' | 'UYT' | 'UZT' | 'VET' | 'VLAT' | 'VOLT' | 'VOST' | 'VUT' | 'WAKT' | 'WAST' | 'WAT' | 'WEST' | 'WET' | 'WFT' | 'WGST' | 'WGST' | 'WIB' | 'WIT' | 'WST' | 'YAKT' | 'YEKT';
|
|
58
|
-
name: 'Australian Central Daylight Time' | 'Australian Central Standard Time' | 'Acre Time' | 'Australian Central Western Standard Time' | 'Atlantic Daylight Time' | 'Australian Eastern Daylight Savings Time' | 'Australian Eastern Standard Time' | 'Afghanistan Time' | 'Alaska Daylight Time' | 'Alaska Standard Time' | 'Amazon Summer Time' | 'Amazon Time' | 'Armenia Time' | 'Argentina Time' | 'Atlantic Standard Time' | 'Arabia Standard Time' | 'Atlantic Time' | 'Australian Western Standard Time' | 'Azores Summer Time' | 'Azores Standard Time' | 'Azerbaijan Time' | 'Brunei Time' | 'Baker Island Time' | 'Brunei Darussalam Time' | 'Bolivia Time' | 'Brasilia Summer Time' | 'Brasilia Time' | 'British Summer Time' | 'Bangladesh Standard Time' | 'Bougainville Standard Time' | 'Bhutan Time' | 'Central Africa Time' | 'Cocos Islands Time' | 'Central Daylight Time' | 'Cuba Daylight Time' | 'Central European Summer Time' | 'Central European Time' | 'Chatham Daylight Time' | 'Chatham Standard Time' | 'Choibalsan Summer Time' | 'Choibalsan Standard Time' | 'Chamorro Standard Time' | 'Chuuk Time' | 'Clipperton Island Standard Time' | 'Central Indonesia Time' | 'Cook Island Time' | 'Chile Summer Time' | 'Chile Standard Time' | 'Colombia Summer Time' | 'Colombia Time' | 'Central Standard Time' | 'China Standard Time' | 'Cuba Standard Time' | 'Central Time' | 'Cape Verde Time' | 'Central Western Standard Time' | 'Christmas Island Time' | 'Davis Time' | `Dumont d'Urville Time` | 'Easter Island Summer Time' | 'Easter Island Standard Time' | 'East Africa Time' | 'Ecuador Time' | 'Eastern Daylight Time' | 'Eastern European Summer Time' | 'Eastern European Time' | 'Eastern Greenland Summer Time' | 'Eastern Greenland Time' | 'Eastern Indonesian Time' | 'Eastern Standard Time' | 'Eastern Time' | 'Further-eastern European Time' | 'Fiji Time' | 'Falkland Islands Summer Time' | 'Falkland Islands Time' | 'Fernando de Noronha Time' | 'Galapagos Time' | 'Gambier Islands' | 'Georgia Standard Time' | 'French Guiana Time' | 'Gilbert Island Time' | 'Gambier Island Time' | 'Greenwich Mean Time' | 'Gulf Standard Time' | 'South Georgia Time' | 'Guyana Time' | 'Hawaii-Aleutian Daylight Time' | 'Hawaii-Aleutian Standard Time' | 'Hong Kong Time' | 'Heard and McDonald Islands Time' | 'Khovd Summer Time' | 'Khovd Standard Time' | 'Indochina Time' | 'Israel Daylight Time' | 'Indian Chagos Time' | 'Iran Daylight Time' | 'Irkutsk Time' | 'Iran Standard Time' | 'Indian Standard Time' | 'Irish Standard Time' | 'Israel Standard Time' | 'Japan Standard Time' | 'Kyrgyzstan time' | 'Kosrae Time' | 'Krasnoyarsk Time' | 'Korea Standard Time' | 'Lord Howe Daylight Time' | 'Lord Howe Standard Time' | 'Line Islands Time' | 'Magadan Time' | 'Marquesas Islands Time' | 'Mawson Station Time' | 'Mountain Daylight Time' | 'Marshall Islands' | 'Macquarie Island Station Time' | 'Marquesas Islands Time' | 'Myanmar Standard Time' | 'Moscow Time' | 'Mountain Standard Time' | 'Malaysia Standard Time' | 'Mountain Time' | 'Mauritius Time' | 'Maldives Time' | 'Malaysia Time' | 'New Caledonia Time' | 'Newfoundland Daylight Time' | 'Norfolk Time' | 'Nepal Time' | 'Nauru Time' | 'Newfoundland Standard Time' | 'Newfoundland Time' | 'Niue Time' | 'New Zealand Daylight Time' | 'New Zealand Standard Time' | 'Omsk Time' | 'Oral Time' | 'Pacific Daylight Time' | 'Peru Time' | 'Kamchatka Time' | 'Papua New Guinea Time' | 'Phoenix Island Time' | 'Philippine Standard Time' | 'Philippine Time' | 'Pakistan Standard Time' | 'Saint Pierre and Miquelon Daylight time' | 'Saint Pierre and Miquelon Standard Time' | 'Pohnpei Standard Time' | 'Pacific Standard Time' | 'Pacific Time' | 'Palau Time' | 'Paraguay Summer Time' | 'Paraguay Time' | 'Réunion Time' | 'Rothera Research Station Time' | 'Sakhalin Island time' | 'Samara Time' | 'South African Standard Time' | 'Solomon Islands Time' | 'Seychelles Time' | 'Singapore Time' | 'Sri Lanka Standard Time' | 'Srednekolymsk Time' | 'Suriname Time' | 'Samoa Standard Time' | 'Showa Station Time' | 'Tahiti Time' | 'French Southern and Antarctic Time' | 'Thailand Standard Time' | 'Tajikistan Time' | 'Tokelau Time' | 'Timor Leste Time' | 'Turkmenistan Time' | 'Tonga Time' | 'Turkey Time' | 'Tuvalu Time' | 'Ulaanbaatar Summer Time' | 'Ulaanbaatar Standard Time' | 'Kaliningrad Time' | 'Coordinated Universal Time' | 'Uruguay Summer Time' | 'Uruguay Standard Time' | 'Uzbekistan Time' | 'Venezuelan Standard Time' | 'Vladivostok Time' | 'Volgograd Time' | 'Vostok Station Time' | 'Vanuatu Time' | 'Wake Island Time' | 'West Africa Summer Time' | 'West Africa Time' | 'Western European Summer Time' | 'Western European Time' | 'Wallis and Futuna Time' | 'West Greenland Summer Time' | 'West Greenland Time' | 'Western Indonesia Time' | 'Eastern Indonesia Time' | 'Western Standard Time' | 'Yakutsk Time' | 'Yekaterinburg Time';
|
|
59
|
-
offset: ['+' | '-', number, number];
|
|
60
|
-
};
|
|
61
|
-
declare const timezoneList: TimezoneData[];
|
|
62
56
|
/** An array of the names of month in order */
|
|
63
57
|
declare const monthNamesList: MonthName[];
|
|
64
58
|
/** An array of the names of the days of the week in order */
|
|
65
59
|
declare const weekdayNamesList: WeekdayName[];
|
|
66
|
-
declare function compareDates(d1: Date, mode: '>' | '>=' | '<' | '<=' | '==', d2: Date): boolean;
|
|
67
60
|
/** The name of the current month */
|
|
68
61
|
declare const currentMonthName: MonthName;
|
|
69
62
|
/** The name of the current day of the week */
|
|
70
63
|
declare const currentWeekdayName: WeekdayName;
|
|
71
|
-
declare function dateMath(d1: Date, operator: '+' | '-' | '*' | '/', d2: Date): Date;
|
|
72
64
|
/**
|
|
73
|
-
*
|
|
65
|
+
* ### Days In Month
|
|
74
66
|
* - Returns the number of days in the specified month.
|
|
75
67
|
* @param {Date} date A Date object representing the month to get the number of days for. (Preset to the current date)
|
|
76
68
|
* @returns {number} The number of days in the specified month.
|
|
77
69
|
*/
|
|
78
70
|
declare function daysInMonth(date?: Date): number;
|
|
79
71
|
/**
|
|
80
|
-
*
|
|
72
|
+
* ### First of Month
|
|
81
73
|
* - Returns the first day of the specified month.
|
|
82
74
|
* @param {Date} date A Date object representing the month to get the first day for. (Preset to current date)
|
|
83
75
|
* @returns {Date} A Date object of the given month, with the first day.
|
|
84
76
|
*/
|
|
85
77
|
declare function firstOfMonth(date?: Date): Date;
|
|
86
78
|
/**
|
|
87
|
-
*
|
|
79
|
+
* ### Get Date
|
|
88
80
|
* - Returns the date with two digits
|
|
89
81
|
* @param {number|Date} date The date to get date
|
|
90
82
|
* @returns {string} The date with two digits
|
|
91
83
|
*/
|
|
92
84
|
declare function getDate(date?: number | Date): string;
|
|
93
85
|
/**
|
|
94
|
-
*
|
|
86
|
+
* ### Get Hours
|
|
95
87
|
* - Returns the hours with two digits
|
|
96
88
|
* @param {number|Date} hours The date to get hours
|
|
97
89
|
* @returns {string} The hours with two digits
|
|
98
90
|
*/
|
|
99
91
|
declare function getHours(hours?: number | Date): string;
|
|
100
92
|
/**
|
|
101
|
-
*
|
|
93
|
+
* ### Get Hours in 12
|
|
102
94
|
* - Returns the hour based on the specified 24 hour value in a 12 hour format
|
|
103
95
|
* @param {number|Date} hour The hour to be converted to 12 hour format
|
|
104
96
|
* @returns {number} The hour in a 12 hour format
|
|
105
97
|
*/
|
|
106
98
|
declare function getHoursIn12(hour?: number | Date): number;
|
|
107
99
|
/**
|
|
108
|
-
*
|
|
100
|
+
* ### Get Meridian from Hour
|
|
109
101
|
* - Returns either 'pm' or 'am' based on the specified 24 hour value
|
|
110
102
|
* @param {number|Date} hour The hour to get the meridian from
|
|
111
103
|
* @returns {'am'|'pm'} The meridian for the given hour
|
|
112
104
|
*/
|
|
113
105
|
declare function getMeridianFromHour(hour?: number | Date): 'am' | 'pm';
|
|
114
106
|
/**
|
|
115
|
-
*
|
|
107
|
+
* ### Get Milliseconds
|
|
116
108
|
* - Returns the milliseconds with two digits
|
|
117
109
|
* @param {number|Date} milliseconds The date to get milliseconds
|
|
118
110
|
* @returns {string} The milliseconds with two digits
|
|
119
111
|
*/
|
|
120
112
|
declare function getMilliseconds(milliseconds?: number | Date): string;
|
|
121
113
|
/**
|
|
122
|
-
*
|
|
114
|
+
* ### Get Minutes
|
|
123
115
|
* - Returns the minutes with two digits
|
|
124
116
|
* @param {number|Date} minutes The date to get minutes
|
|
125
117
|
* @returns {string} The minutes with two digits
|
|
126
118
|
*/
|
|
127
119
|
declare function getMinutes(minutes?: number | Date): string;
|
|
128
120
|
/**
|
|
129
|
-
*
|
|
121
|
+
* ### Get Month
|
|
130
122
|
* - Returns the month with two digits
|
|
131
123
|
* @param {number|Date} month The date to get month
|
|
132
124
|
* @returns {string} The month with two digits
|
|
@@ -134,41 +126,35 @@ declare function getMinutes(minutes?: number | Date): string;
|
|
|
134
126
|
declare function getMonth(month?: number | Date): string;
|
|
135
127
|
declare function getMonthIndexFromName(name: MonthName): number;
|
|
136
128
|
/**
|
|
137
|
-
*
|
|
129
|
+
* ### Get Month Name
|
|
138
130
|
* - Returns the name of the specified month
|
|
139
131
|
* @param {Date} date A Date object representing the month to get the name of the month from. (Preset to the current date)
|
|
140
132
|
* @returns {MonthName} The name of the specified month
|
|
141
133
|
*/
|
|
142
134
|
declare function getMonthName(date?: number | Date): MonthName;
|
|
143
135
|
/**
|
|
144
|
-
*
|
|
136
|
+
* ### Get Next Month
|
|
145
137
|
* - Returns the number of the following month from the specified month
|
|
146
138
|
* @param {Date} date The Date object representing the month to get the following month from (Preset to current date)
|
|
147
139
|
* @returns {number} The indexed month of the following month
|
|
148
140
|
*/
|
|
149
141
|
declare function getNextMonth(date?: Date): number;
|
|
150
142
|
/**
|
|
151
|
-
*
|
|
143
|
+
* ### Get Previous Month
|
|
152
144
|
* - Returns the number of the previous month from the specified month
|
|
153
145
|
* @param {Date} date The Date object representing the month to get the previous month from (Preset to current date)
|
|
154
146
|
* @returns {number} The indexed month of the previous month
|
|
155
147
|
*/
|
|
156
148
|
declare function getPreviousMonth(date?: Date): number;
|
|
157
149
|
/**
|
|
158
|
-
*
|
|
150
|
+
* ### Get Seconds
|
|
159
151
|
* - Returns the seconds with two digits
|
|
160
152
|
* @param {number|Date} seconds The date to get seconds
|
|
161
153
|
* @returns {string} The seconds with two digits
|
|
162
154
|
*/
|
|
163
155
|
declare function getSeconds(seconds?: number | Date): string;
|
|
164
156
|
/**
|
|
165
|
-
*
|
|
166
|
-
* - Returns the user's local timezone data.
|
|
167
|
-
* @returns {TimezoneData | undefined} Timezone data object
|
|
168
|
-
*/
|
|
169
|
-
declare function getLocalTimezone(): TimezoneData | undefined;
|
|
170
|
-
/**
|
|
171
|
-
* # Get User Readable Date
|
|
157
|
+
* ### Get User Readable Date
|
|
172
158
|
* - Returns a string of the current date in a user-friendly way
|
|
173
159
|
* - Includes `'Yesterday'`, '`Today'`, and `'Tomorrow'`
|
|
174
160
|
* @param date (default: `new Date()`)
|
|
@@ -176,14 +162,14 @@ declare function getLocalTimezone(): TimezoneData | undefined;
|
|
|
176
162
|
*/
|
|
177
163
|
declare function getUserReadableDate(date?: Date): 'Today' | 'Tomorrow' | 'Yesterday' | string;
|
|
178
164
|
/**
|
|
179
|
-
*
|
|
165
|
+
* ### Get Weekday Name
|
|
180
166
|
* - Returns the weekday name of the specified day
|
|
181
167
|
* @param {number | Date} weekday A Date object or number representing the day to get the weekday name from. (Preset to the current date)
|
|
182
168
|
* @returns {WeekdayName} The name of the specified weekday
|
|
183
169
|
*/
|
|
184
170
|
declare function getWeekdayName(weekday?: number | Date): WeekdayName;
|
|
185
171
|
/**
|
|
186
|
-
*
|
|
172
|
+
* ### Get Years in Range
|
|
187
173
|
* - Returns an array of years in between the specified minimum and maximum years
|
|
188
174
|
* @param {number} minYear The minimum year
|
|
189
175
|
* @param {number} maxYear The maximum year
|
|
@@ -202,7 +188,7 @@ type ToFullDateStringOptionsProps = Partial<{
|
|
|
202
188
|
year: boolean | 'full' | 'code';
|
|
203
189
|
}>;
|
|
204
190
|
/**
|
|
205
|
-
*
|
|
191
|
+
* ### To Full Date String
|
|
206
192
|
* - Returns a formatted string to display the date
|
|
207
193
|
* @param {Date} date (default: `new Date()`)
|
|
208
194
|
* @param {ToFullDateStringOptionsProps} options Change how to display the weekday, month name, day of the month, and year.
|
|
@@ -210,13 +196,15 @@ type ToFullDateStringOptionsProps = Partial<{
|
|
|
210
196
|
*/
|
|
211
197
|
declare function toFullDateString(date?: Date, options?: ToFullDateStringOptionsProps): string;
|
|
212
198
|
/**
|
|
213
|
-
*
|
|
199
|
+
* ### Get User Readable Date From Timestampz
|
|
214
200
|
* - Returns a string of the current date in a user-friendly way
|
|
215
201
|
* - Includes `'Yesterday'`, '`Today'`, and `'Tomorrow'`
|
|
216
202
|
* @param string
|
|
217
203
|
* @returns {'Today'|'Tomorrow'|'Yesterday'|string} `'weekday, month day, year'` | `'Yesterday'` | `'Today'` | `'Tomorrow'`
|
|
218
204
|
*/
|
|
219
205
|
declare function getUserReadableDateFromTimestampz(timestampz: string): 'Today' | 'Tomorrow' | 'Yesterday' | string;
|
|
206
|
+
declare function getLocalTime(time: string | [number, number]): string;
|
|
207
|
+
declare function getTimezone(): string;
|
|
220
208
|
|
|
221
209
|
declare function findComponentByType<P extends {
|
|
222
210
|
children?: ReactNode;
|
|
@@ -317,5 +305,5 @@ declare function toTitleCase(string: string, delimiter?: string): string;
|
|
|
317
305
|
|
|
318
306
|
declare function twSort(className: string): string;
|
|
319
307
|
|
|
320
|
-
export { addClass,
|
|
321
|
-
export type { AdditionalmadoClassGroupIds, DateTimeObject, DayNumber, HourNumber, MinuteNumber, MonthName, MonthNumber, SecondNumber,
|
|
308
|
+
export { addClass, currentMonthName, currentWeekdayName, daysInMonth, easeOutExpo, emailRegex, extendMadoTailwindMerge, findComponentByType, firstOfMonth, formatPhoneNumber, getDate, getHours, getHoursIn12, getLocalTime, getMeridianFromHour, getMilliseconds, getMinutes, getMonth, getMonthIndexFromName, getMonthName, getNextMonth, getPreviousMonth, getSeconds, getTimezone, getUserReadableDate, getUserReadableDateFromTimestampz, getWeekdayName, getYearsInRange, hasClass, isEmail, isPhoneNumber, monthNamesList, removeClass, splitCamelCase, telRegex, toCamelCase, toFullDateString, toLowerCase, toTitleCase, toggleClass, twMerge, twSort, weekdayNamesList };
|
|
309
|
+
export type { AdditionalmadoClassGroupIds, DateTimeObject, DayNumber, HourNumber, MinuteNumber, MonthName, MonthNumber, SecondNumber, WeekNumber, WeekdayName, WeekdayNumber };
|