@ssa-ui-kit/core 3.2.0 → 3.3.0
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/components/DatePicker/types.d.ts +218 -5
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +51 -0
- package/dist/components/DateRangePicker/DateRangePickerFormBridge.d.ts +29 -5
- package/dist/components/DateRangePicker/constants.d.ts +8 -0
- package/dist/components/DateRangePicker/types.d.ts +235 -11
- package/dist/components/History/History.d.ts +31 -0
- package/dist/components/History/index.d.ts +2 -0
- package/dist/components/History/styles.d.ts +9 -0
- package/dist/components/History/types.d.ts +56 -0
- package/dist/components/Icon/icons/SettingClock.d.ts +3 -0
- package/dist/components/Icon/icons/all.d.ts +1 -0
- package/dist/components/Icon/icons/iconsList.d.ts +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/index.js +290 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,29 +5,158 @@ import { InputProps } from '../Input/types';
|
|
|
5
5
|
import { PICKER_TYPE } from './constants';
|
|
6
6
|
import { RegisterOptions } from 'react-hook-form';
|
|
7
7
|
import type { PickerCalendarType, DateFormat } from '../JsonSchemaForm/utils/dateFormats';
|
|
8
|
+
/**
|
|
9
|
+
* Which calendar granularity the picker uses: full **days**, **months** only, or **years** only.
|
|
10
|
+
* Drives default **format**, mask, initial calendar view, and the **Date** passed to **onChange**
|
|
11
|
+
* (`startOf('day' | 'month' | 'year')`).
|
|
12
|
+
*
|
|
13
|
+
* - **`days`** — `mm/dd/yyyy` (or `dd/mm/yyyy`), day-level selection
|
|
14
|
+
* - **`months`** — `mm/yyyy`, month-level selection
|
|
15
|
+
* - **`years`** — `yyyy`, year-level selection
|
|
16
|
+
*/
|
|
8
17
|
export type PickerType = (typeof PICKER_TYPE)[keyof typeof PICKER_TYPE];
|
|
18
|
+
/**
|
|
19
|
+
* Input/output string format for the form field. Must match **`pickerType`** (e.g. **`yyyy`** for
|
|
20
|
+
* year picker). Parsed with Luxon using **`mm`** → month tokens in the format string.
|
|
21
|
+
*
|
|
22
|
+
* - **`mm/dd/yyyy`** | **`dd/mm/yyyy`** — day pickers
|
|
23
|
+
* - **`mm/yyyy`** — month picker
|
|
24
|
+
* - **`yyyy`** — year picker
|
|
25
|
+
*/
|
|
9
26
|
export type DatePickerFormat = DateFormat;
|
|
10
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Which surface of the popover calendar is shown: day grid, month grid, or year list.
|
|
29
|
+
* Usually advanced; the header toggles this for day pickers.
|
|
30
|
+
*/
|
|
31
|
+
export type CalendarType = PickerCalendarType;
|
|
32
|
+
/**
|
|
33
|
+
* Props for the DatePicker component
|
|
34
|
+
*
|
|
35
|
+
* Masked date field integrated with **react-hook-form**. Register **`name`** via
|
|
36
|
+
* **`FormProvider`**; the stored value is the **formatted string**. Use **`onChange`** for a
|
|
37
|
+
* **`Date`** (or undefined when cleared). Optional **`dateMin`** / **`dateMax`** use the same
|
|
38
|
+
* string shape as **`format`**.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* // Basic (day picker, US format)
|
|
43
|
+
* <DatePicker name="due" label="Due date" helperText="Optional" />
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```tsx
|
|
48
|
+
* // European format, open calendar from icon or input
|
|
49
|
+
* <DatePicker
|
|
50
|
+
* name="eu"
|
|
51
|
+
* format="dd/mm/yyyy"
|
|
52
|
+
* openCalendarMode="both"
|
|
53
|
+
* dateMin="01/01/2024"
|
|
54
|
+
* dateMax="31/12/2025"
|
|
55
|
+
* />
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* // Month-only picker with bounds
|
|
61
|
+
* <DatePicker
|
|
62
|
+
* name="period"
|
|
63
|
+
* label="Period"
|
|
64
|
+
* pickerType="months"
|
|
65
|
+
* dateMin="01/2020"
|
|
66
|
+
* dateMax="12/2030"
|
|
67
|
+
* />
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export interface DatePickerProps {
|
|
71
|
+
/**
|
|
72
|
+
* Field name registered with react-hook-form (**required**).
|
|
73
|
+
*/
|
|
11
74
|
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* Optional label rendered above the input (**`Label`**).
|
|
77
|
+
*/
|
|
12
78
|
label?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Date string format for display, mask, and parsing.
|
|
81
|
+
* @default From **`pickerType`**: `mm/dd/yyyy`, `mm/yyyy`, or `yyyy`
|
|
82
|
+
*/
|
|
13
83
|
format?: DatePickerFormat;
|
|
84
|
+
/**
|
|
85
|
+
* Options passed to **`@react-input/mask`** (mask pattern, **`replacement`**, etc.).
|
|
86
|
+
* Defaults include the built-in date/month/year masks.
|
|
87
|
+
*/
|
|
14
88
|
maskOptions?: Parameters<typeof useMask>[0];
|
|
89
|
+
/**
|
|
90
|
+
* What opens the calendar: calendar **icon** only, **input** click only, or **both**.
|
|
91
|
+
* @default 'icon'
|
|
92
|
+
*/
|
|
15
93
|
openCalendarMode?: 'icon' | 'input' | 'both';
|
|
94
|
+
/**
|
|
95
|
+
* Day vs month vs year picker; sets default **format**, mask length, and calendar start view.
|
|
96
|
+
* @default 'days' (**`PICKER_TYPE.DAYS`**)
|
|
97
|
+
*/
|
|
16
98
|
pickerType?: PickerType;
|
|
99
|
+
/**
|
|
100
|
+
* Extra props forwarded to the underlying **Input** (e.g. **`id`**, **`inputProps`**).
|
|
101
|
+
*/
|
|
17
102
|
inputProps?: Partial<InputProps>;
|
|
103
|
+
/**
|
|
104
|
+
* Controlled string value (must match **format**). Synced into the form via **`setValue`**.
|
|
105
|
+
*/
|
|
18
106
|
value?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Initial string value when uncontrolled (must match **format**).
|
|
109
|
+
*/
|
|
19
110
|
defaultValue?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Inclusive minimum date as a string in the current **format** (and **pickerType**).
|
|
113
|
+
* @default Built-in minimum for the picker type (e.g. `01/01/1900` for days)
|
|
114
|
+
*/
|
|
20
115
|
dateMin?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Inclusive maximum date as a string in the current **format** (and **pickerType**).
|
|
118
|
+
* @default Built-in maximum for the picker type (e.g. `01/01/2150` for days)
|
|
119
|
+
*/
|
|
21
120
|
dateMax?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Disables the input and calendar trigger.
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
22
125
|
disabled?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Helper text below the field (shown with validation message when present).
|
|
128
|
+
*/
|
|
23
129
|
helperText?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the trailing calendar icon button is shown.
|
|
132
|
+
* @default true
|
|
133
|
+
*/
|
|
24
134
|
showCalendarIcon?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Last **Date** emitted from **onChange**; used with **`highlightDates`** for range styling
|
|
137
|
+
* in the calendar (e.g. paired with another picker’s value).
|
|
138
|
+
*/
|
|
25
139
|
lastChangedDate?: Date;
|
|
140
|
+
/**
|
|
141
|
+
* Optional range highlight between this picker’s value and **`otherDate`** (e.g. date-range UX).
|
|
142
|
+
*/
|
|
26
143
|
highlightDates?: {
|
|
144
|
+
/**
|
|
145
|
+
* When true, range styling is applied between anchors according to **mode**.
|
|
146
|
+
*/
|
|
27
147
|
enabled: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Whether this picker represents the **start** or **end** of the highlighted span.
|
|
150
|
+
*/
|
|
28
151
|
mode: 'dateFrom' | 'dateTo';
|
|
152
|
+
/**
|
|
153
|
+
* The other boundary date (from a sibling field or parent state).
|
|
154
|
+
*/
|
|
29
155
|
otherDate: Date | null;
|
|
30
156
|
};
|
|
157
|
+
/**
|
|
158
|
+
* Optional class names for calendar shell, header, trigger, month arrows, and label.
|
|
159
|
+
*/
|
|
31
160
|
classNames?: {
|
|
32
161
|
header?: string;
|
|
33
162
|
trigger?: {
|
|
@@ -42,36 +171,120 @@ export type DatePickerProps = {
|
|
|
42
171
|
calendar?: string;
|
|
43
172
|
label?: string;
|
|
44
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* Called with the selected **`Date`** (Luxon-normalized to start of day/month/year), or
|
|
176
|
+
* **undefined** when the field is cleared or invalid.
|
|
177
|
+
*/
|
|
45
178
|
onChange?: (date?: Date) => void;
|
|
179
|
+
/**
|
|
180
|
+
* Called when the popover opens.
|
|
181
|
+
*/
|
|
46
182
|
onOpen?: () => void;
|
|
183
|
+
/**
|
|
184
|
+
* Called when the popover closes (not on first mount).
|
|
185
|
+
*/
|
|
47
186
|
onClose?: () => void;
|
|
187
|
+
/**
|
|
188
|
+
* Called when validation fails or clears: first argument is the raw input string or **null**;
|
|
189
|
+
* second is an error message (e.g. invalid date / out of range) or **null** when cleared.
|
|
190
|
+
*/
|
|
48
191
|
onError?: (date: any, error?: string | null) => void;
|
|
192
|
+
/**
|
|
193
|
+
* Called when the visible month changes (day picker, prev/next month).
|
|
194
|
+
*/
|
|
49
195
|
onMonthChange?: (date: Date) => void;
|
|
196
|
+
/**
|
|
197
|
+
* Called when the selected or browsed **year** changes (year list or drilling into months).
|
|
198
|
+
*/
|
|
50
199
|
onYearChange?: (date: Date) => void;
|
|
200
|
+
/**
|
|
201
|
+
* Blur handler composed with internal validation (runs after **`processValue`** on blur).
|
|
202
|
+
*/
|
|
51
203
|
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
204
|
+
/**
|
|
205
|
+
* Extra **react-hook-form** rules merged with the field (e.g. **required**).
|
|
206
|
+
*/
|
|
52
207
|
validationSchema?: RegisterOptions;
|
|
53
|
-
}
|
|
54
|
-
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Context value for **DatePicker** internals (provider) and advanced composition.
|
|
211
|
+
* Extends **DatePicker** props but replaces **`dateMin`** / **`dateMax`** strings with parsed
|
|
212
|
+
* **Luxon** values and numeric parts for masks; adds open state and calendar navigation.
|
|
213
|
+
*
|
|
214
|
+
* Most consumers should use **DatePicker** only; this type documents hooks and subcomponents
|
|
215
|
+
* that read context.
|
|
216
|
+
*/
|
|
217
|
+
export interface DatePickerContextProps extends Omit<DatePickerProps, 'dateMin' | 'dateMax'> {
|
|
218
|
+
/**
|
|
219
|
+
* Ref applied to the masked **input** (merged: mask ref + forwarded ref from **DatePicker**).
|
|
220
|
+
*/
|
|
55
221
|
inputRef?: React.ForwardedRef<HTMLInputElement | null>;
|
|
222
|
+
/**
|
|
223
|
+
* Whether the calendar popover is open.
|
|
224
|
+
*/
|
|
56
225
|
isOpen: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Active calendar surface: days grid, months, or years.
|
|
228
|
+
*/
|
|
57
229
|
calendarType: CalendarType;
|
|
230
|
+
/**
|
|
231
|
+
* Current string value watched from the form (may be partial while typing).
|
|
232
|
+
*/
|
|
58
233
|
inputValue?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Parsed selected value in the picker’s **Luxon** representation.
|
|
236
|
+
*/
|
|
59
237
|
dateTime?: DateTime;
|
|
238
|
+
/**
|
|
239
|
+
* **Luxon** date driving the visible calendar month/year (clamped between min and max).
|
|
240
|
+
*/
|
|
60
241
|
calendarViewDateTime?: DateTime;
|
|
242
|
+
/**
|
|
243
|
+
* **`dateMin`** string split by **`/`** into numeric segments (index **i** matches **format** segment **i**).
|
|
244
|
+
*/
|
|
61
245
|
dateMinParts: number[];
|
|
246
|
+
/**
|
|
247
|
+
* **`dateMax`** string split by **`/`** into numeric segments (index **i** matches **format** segment **i**).
|
|
248
|
+
*/
|
|
62
249
|
dateMaxParts: number[];
|
|
250
|
+
/**
|
|
251
|
+
* Inclusive minimum as **DateTime** (from **dateMin** or defaults).
|
|
252
|
+
*/
|
|
63
253
|
dateMinDT: DateTime;
|
|
254
|
+
/**
|
|
255
|
+
* Inclusive maximum as **DateTime** (from **dateMax** or defaults).
|
|
256
|
+
*/
|
|
64
257
|
dateMaxDT: DateTime;
|
|
258
|
+
/**
|
|
259
|
+
* Indices of **day**, **month**, and **year** segments in the format string (for masks and bounds).
|
|
260
|
+
*/
|
|
65
261
|
formatIndexes: {
|
|
66
262
|
day: number;
|
|
67
263
|
month: number;
|
|
68
264
|
year: number;
|
|
69
265
|
};
|
|
266
|
+
/**
|
|
267
|
+
* Resolved picker type (**days** / **months** / **years**).
|
|
268
|
+
*/
|
|
70
269
|
pickerType: PickerType;
|
|
270
|
+
/**
|
|
271
|
+
* Internal **onChange** that dedupes emissions and normalizes to the picker **unit**.
|
|
272
|
+
*/
|
|
71
273
|
safeOnChange?: (date?: DateTime) => void;
|
|
274
|
+
/**
|
|
275
|
+
* Updates the calendar’s visible month/year without necessarily committing a selection.
|
|
276
|
+
*/
|
|
72
277
|
setCalendarViewDateTime: Dispatch<SetStateAction<DateTime | undefined>>;
|
|
278
|
+
/**
|
|
279
|
+
* Sets the selected **DateTime** (and syncs formatted string to the form when valid).
|
|
280
|
+
*/
|
|
73
281
|
setDateTime: Dispatch<SetStateAction<DateTime<boolean> | undefined>>;
|
|
282
|
+
/**
|
|
283
|
+
* Opens or closes the popover.
|
|
284
|
+
*/
|
|
74
285
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
286
|
+
/**
|
|
287
|
+
* Switches between days / months / years views in the popover.
|
|
288
|
+
*/
|
|
75
289
|
setCalendarType: Dispatch<SetStateAction<CalendarType>>;
|
|
76
|
-
}
|
|
77
|
-
export type CalendarType = PickerCalendarType;
|
|
290
|
+
}
|
|
@@ -1,2 +1,53 @@
|
|
|
1
1
|
import { DateRangePickerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* DateRangePicker — two masked inputs (**from** / **to**) with a shared popover calendar and
|
|
4
|
+
* **react-hook-form** fields **`${name}From`** and **`${name}To`** inside **`FormProvider`**.
|
|
5
|
+
* **`onChange`** emits **`[start, end]`** as **`Date`**, **`undefined`**, or **`null`** on the **end**
|
|
6
|
+
* only for **“Present”** (open-ended range) when **`showPresentOption`** is enabled.
|
|
7
|
+
*
|
|
8
|
+
* ### Behavior notes
|
|
9
|
+
* - **Luxon** parses strings; the form stores **formatted strings** per **format** / **rangePickerType**.
|
|
10
|
+
* - Calendar selection uses a **start → end** step; **`allowReverseSelection`** can swap inverted picks.
|
|
11
|
+
* - Use **`DateRangePickerFormBridge`** when the form stores **ISO** strings and **`PRESENT_VALUE`**
|
|
12
|
+
* for Present (string-safe schemas).
|
|
13
|
+
*
|
|
14
|
+
* @category Components
|
|
15
|
+
* @subcategory Form Controls
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* import { FormProvider, useForm } from 'react-hook-form';
|
|
20
|
+
* import { DateRangePicker } from '@ssa-ui-kit/core';
|
|
21
|
+
*
|
|
22
|
+
* function Example() {
|
|
23
|
+
* const methods = useForm({
|
|
24
|
+
* defaultValues: { tripFrom: '', tripTo: '' },
|
|
25
|
+
* });
|
|
26
|
+
* return (
|
|
27
|
+
* <FormProvider {...methods}>
|
|
28
|
+
* <DateRangePicker
|
|
29
|
+
* name="trip"
|
|
30
|
+
* label="Trip dates"
|
|
31
|
+
* onChange={(dates) => console.log(dates)}
|
|
32
|
+
* />
|
|
33
|
+
* </FormProvider>
|
|
34
|
+
* );
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* // Open-ended end date: `to === null` means Present
|
|
41
|
+
* <DateRangePicker name="job" showPresentOption onChange={() => {}} />
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @see {@link Input} — Masked inputs
|
|
45
|
+
* @see {@link Popover} — Calendar overlay
|
|
46
|
+
* @see {@link DateRangePickerFormBridge} — ISO / string form adapter
|
|
47
|
+
*
|
|
48
|
+
* @accessibility
|
|
49
|
+
* - **Field** label associates with the focused input
|
|
50
|
+
* - Calendar controls reuse **aria-** patterns from day/month/year views
|
|
51
|
+
* - Calendar trigger uses an **aria-label** on the icon button
|
|
52
|
+
*/
|
|
2
53
|
export declare const DateRangePicker: ({ format, showCalendarIcon, showStatusArea, rangePickerType, showPresentOption, ...rest }: DateRangePickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -19,17 +19,22 @@ import { type DateFormat } from '../JsonSchemaForm/utils/dateFormats';
|
|
|
19
19
|
* - UI display: Used as display text shown to users when "Present" is selected
|
|
20
20
|
*/
|
|
21
21
|
export declare const PRESENT_VALUE = "Present";
|
|
22
|
+
/**
|
|
23
|
+
* Form-side shape: **start** / **end** strings in **`outputFormat`**; **end** may be **`PRESENT_VALUE`**
|
|
24
|
+
* when the user chose **Present** (maps to **`null`** inside **DateRangePicker**).
|
|
25
|
+
*/
|
|
22
26
|
export type DateRangePickerFormBridgeValue = {
|
|
27
|
+
/** Start date string (e.g. ISO in **outputFormat**) */
|
|
23
28
|
start?: string;
|
|
29
|
+
/** End date string, or **`PRESENT_VALUE`** for open-ended range */
|
|
24
30
|
end?: string | typeof PRESENT_VALUE;
|
|
25
31
|
};
|
|
26
32
|
/**
|
|
27
|
-
* DateRangePickerFormBridge
|
|
33
|
+
* Props for **DateRangePickerFormBridge** — adapter between string-based forms and **DateRangePicker**.
|
|
28
34
|
*
|
|
29
|
-
*
|
|
30
|
-
* -
|
|
31
|
-
* -
|
|
32
|
-
* - Used by DateRangeField (RJSF); can be used by other form builders
|
|
35
|
+
* - Keeps **DateRangePicker** on **inputFormat** and **`null`** for Present
|
|
36
|
+
* - Converts **outputFormat** storage ↔ display **inputFormat**
|
|
37
|
+
* - Used by **DateRangeField** (RJSF) and similar builders
|
|
33
38
|
*/
|
|
34
39
|
export type DateRangePickerFormBridgeProps = Omit<DateRangePickerProps, 'defaultValue' | 'value' | 'onChange'> & {
|
|
35
40
|
/** Form value: dates in outputFormat, end can be PRESENT_VALUE for "Present" */
|
|
@@ -43,4 +48,23 @@ export type DateRangePickerFormBridgeProps = Omit<DateRangePickerProps, 'default
|
|
|
43
48
|
/** Format used for display in the picker, e.g. 'dd/mm/yyyy' */
|
|
44
49
|
inputFormat: DateFormat;
|
|
45
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Wraps **DateRangePicker** with an internal **FormProvider** and converts between
|
|
53
|
+
* **`outputFormat`** (form storage) and **`inputFormat`** (picker display). Maps **`null`** ↔
|
|
54
|
+
* **`PRESENT_VALUE`** for the end date only.
|
|
55
|
+
*
|
|
56
|
+
* @category Components
|
|
57
|
+
* @subcategory Form Controls
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* <DateRangePickerFormBridge
|
|
62
|
+
* name="contract"
|
|
63
|
+
* outputFormat="yyyy-MM-dd"
|
|
64
|
+
* inputFormat="mm/dd/yyyy"
|
|
65
|
+
* value={{ start: '2024-01-01', end: 'Present' }}
|
|
66
|
+
* onChange={(v) => save(v)}
|
|
67
|
+
* />
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
46
70
|
export declare const DateRangePickerFormBridge: ({ value, defaultValue: defaultValueProp, onChange, outputFormat, inputFormat: inputFormatProp, ...pickerProps }: DateRangePickerFormBridgeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default formats, masks, bounds, and validation messages for **DateRangePicker**
|
|
3
|
+
* (aligned with **DatePicker** constants for shared behavior).
|
|
4
|
+
*/
|
|
5
|
+
/** Default US day format (`mm/dd/yyyy`). Re-exported from the package barrel. */
|
|
1
6
|
export declare const DEFAULT_MASK_FORMAT = "mm/dd/yyyy";
|
|
7
|
+
/** Default European day format (`dd/mm/yyyy`). Re-exported from the package barrel. */
|
|
2
8
|
export declare const DEFAULT_EUROPEAN_MASK_FORMAT = "dd/mm/yyyy";
|
|
9
|
+
/** Default month format (`mm/yyyy`). Re-exported from the package barrel. */
|
|
3
10
|
export declare const DEFAULT_MONTH_MASK_FORMAT = "mm/yyyy";
|
|
11
|
+
/** Default year-only format (`yyyy`). Re-exported from the package barrel. */
|
|
4
12
|
export declare const DEFAULT_YEAR_MASK_FORMAT = "yyyy";
|
|
5
13
|
export declare const DEFAULT_MASK = "__/__/____";
|
|
6
14
|
export declare const DEFAULT_MONTH_MASK = "__/____";
|