Raw
1 {
2 "description": "",
3 "methods": [],
4 "displayName": "DatePicker",
5 "props": {
6 "aria-describedby": {
7 "description": "Identifies the element (or elements) that describes the object.",
8 "required": false,
9 "tsType": {
10 "name": "string"
11 }
12 },
13 "aria-details": {
14 "description": "Identifies the element (or elements) that provide a detailed, extended description for the object.",
15 "required": false,
16 "tsType": {
17 "name": "string"
18 }
19 },
20 "aria-label": {
21 "description": "Defines a string value that labels the current element.",
22 "required": false,
23 "tsType": {
24 "name": "string"
25 }
26 },
27 "aria-labelledby": {
28 "description": "Identifies the element (or elements) that labels the current element.",
29 "required": false,
30 "tsType": {
31 "name": "string"
32 }
33 },
34 "autoComplete": {
35 "description": "Describes the type of autocomplete functionality the input should provide if any. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautocomplete).",
36 "required": false,
37 "tsType": {
38 "name": "string"
39 }
40 },
41 "autoFocus": {
42 "description": "Whether the element should receive focus on render.",
43 "required": false,
44 "tsType": {
45 "name": "boolean"
46 }
47 },
48 "defaultOpen": {
49 "description": "Whether the overlay is open by default (uncontrolled).",
50 "required": false,
51 "tsType": {
52 "name": "boolean"
53 }
54 },
55 "description": {
56 "description": "A description for the field. Provides a hint such as specific requirements for what to choose.",
57 "required": false,
58 "tsType": {
59 "name": "ReactNode",
60 "elements": [],
61 "raw": "ReactNode"
62 }
63 },
64 "errorMessage": {
65 "description": "An error message for the field.",
66 "required": false,
67 "tsType": {
68 "name": "union",
69 "raw": "ReactNode \\| (v: ValidationResult) => ReactNode",
70 "elements": [
71 {
72 "name": "ReactNode",
73 "elements": [],
74 "raw": "ReactNode"
75 },
76 {
77 "name": "signature",
78 "type": "function",
79 "raw": "(v: ValidationResult) => ReactNode",
80 "signature": {
81 "arguments": [
82 {
83 "name": "v",
84 "type": {
85 "name": "ValidationResult"
86 },
87 "rest": false
88 }
89 ],
90 "return": {
91 "name": "ReactNode"
92 }
93 }
94 }
95 ]
96 }
97 },
98 "firstDayOfWeek": {
99 "description": "The day that starts the week.",
100 "required": false,
101 "tsType": {
102 "name": "union",
103 "raw": "\"sun\" \\| \"mon\" \\| \"tue\" \\| \"wed\" \\| \"thu\" \\| \"fri\" \\| \"sat\"",
104 "elements": [
105 {
106 "name": "literal",
107 "value": "\"sun\""
108 },
109 {
110 "name": "literal",
111 "value": "\"mon\""
112 },
113 {
114 "name": "literal",
115 "value": "\"tue\""
116 },
117 {
118 "name": "literal",
119 "value": "\"wed\""
120 },
121 {
122 "name": "literal",
123 "value": "\"thu\""
124 },
125 {
126 "name": "literal",
127 "value": "\"fri\""
128 },
129 {
130 "name": "literal",
131 "value": "\"sat\""
132 }
133 ]
134 }
135 },
136 "form": {
137 "description": "The `<form>` element to associate the input with.\nThe value of this attribute must be the id of a `<form>` in the same document.\nSee [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#form).",
138 "required": false,
139 "tsType": {
140 "name": "string"
141 }
142 },
143 "hideTimeZone": {
144 "description": "Whether to hide the time zone abbreviation.",
145 "required": false,
146 "tsType": {
147 "name": "boolean"
148 }
149 },
150 "hourCycle": {
151 "description": "Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale.",
152 "required": false,
153 "tsType": {
154 "name": "union",
155 "raw": "12 \\| 24",
156 "elements": [
157 {
158 "name": "literal",
159 "value": "12"
160 },
161 {
162 "name": "literal",
163 "value": "24"
164 }
165 ]
166 }
167 },
168 "id": {
169 "description": "The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).",
170 "required": false,
171 "tsType": {
172 "name": "string"
173 }
174 },
175 "isDisabled": {
176 "description": "Whether the input is disabled.",
177 "required": false,
178 "tsType": {
179 "name": "boolean"
180 }
181 },
182 "isInvalid": {
183 "description": "Whether the input value is invalid.",
184 "required": false,
185 "tsType": {
186 "name": "boolean"
187 }
188 },
189 "isOpen": {
190 "description": "Whether the overlay is open by default (controlled).",
191 "required": false,
192 "tsType": {
193 "name": "boolean"
194 }
195 },
196 "isReadOnly": {
197 "description": "Whether the input can be selected but not changed by the user.",
198 "required": false,
199 "tsType": {
200 "name": "boolean"
201 }
202 },
203 "isRequired": {
204 "description": "Whether user input is required on the input before form submission.",
205 "required": false,
206 "tsType": {
207 "name": "boolean"
208 }
209 },
210 "label": {
211 "description": "The content to display as the label.",
212 "required": false,
213 "tsType": {
214 "name": "ReactNode",
215 "elements": [],
216 "raw": "ReactNode"
217 }
218 },
219 "name": {
220 "description": "The name of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).",
221 "required": false,
222 "tsType": {
223 "name": "string"
224 }
225 },
226 "onBlur": {
227 "description": "Handler that is called when the element loses focus.",
228 "required": false,
229 "tsType": {
230 "name": "signature",
231 "type": "function",
232 "raw": "(e: FocusEvent&#60;Element&#62;) => void",
233 "signature": {
234 "arguments": [
235 {
236 "name": "e",
237 "type": {
238 "name": "FocusEvent",
239 "elements": [
240 {
241 "name": "Element"
242 },
243 {
244 "name": "Element"
245 }
246 ]
247 },
248 "rest": false
249 }
250 ],
251 "return": {
252 "name": "void"
253 }
254 }
255 }
256 },
257 "onFocus": {
258 "description": "Handler that is called when the element receives focus.",
259 "required": false,
260 "tsType": {
261 "name": "signature",
262 "type": "function",
263 "raw": "(e: FocusEvent&#60;Element&#62;) => void",
264 "signature": {
265 "arguments": [
266 {
267 "name": "e",
268 "type": {
269 "name": "FocusEvent",
270 "elements": [
271 {
272 "name": "Element"
273 },
274 {
275 "name": "Element"
276 }
277 ]
278 },
279 "rest": false
280 }
281 ],
282 "return": {
283 "name": "void"
284 }
285 }
286 }
287 },
288 "onFocusChange": {
289 "description": "Handler that is called when the element's focus status changes.",
290 "required": false,
291 "tsType": {
292 "name": "signature",
293 "type": "function",
294 "raw": "(isFocused: boolean) => void",
295 "signature": {
296 "arguments": [
297 {
298 "name": "isFocused",
299 "type": {
300 "name": "boolean"
301 },
302 "rest": false
303 }
304 ],
305 "return": {
306 "name": "void"
307 }
308 }
309 }
310 },
311 "onKeyDown": {
312 "description": "Handler that is called when a key is pressed.",
313 "required": false,
314 "tsType": {
315 "name": "signature",
316 "type": "function",
317 "raw": "(e: KeyboardEvent) => void",
318 "signature": {
319 "arguments": [
320 {
321 "name": "e",
322 "type": {
323 "name": "KeyboardEvent",
324 "raw": "KeyboardEvent",
325 "elements": []
326 },
327 "rest": false
328 }
329 ],
330 "return": {
331 "name": "void"
332 }
333 }
334 }
335 },
336 "onKeyUp": {
337 "description": "Handler that is called when a key is released.",
338 "required": false,
339 "tsType": {
340 "name": "signature",
341 "type": "function",
342 "raw": "(e: KeyboardEvent) => void",
343 "signature": {
344 "arguments": [
345 {
346 "name": "e",
347 "type": {
348 "name": "KeyboardEvent",
349 "raw": "KeyboardEvent",
350 "elements": []
351 },
352 "rest": false
353 }
354 ],
355 "return": {
356 "name": "void"
357 }
358 }
359 }
360 },
361 "onOpenChange": {
362 "description": "Handler that is called when the overlay's open state changes.",
363 "required": false,
364 "tsType": {
365 "name": "signature",
366 "type": "function",
367 "raw": "(isOpen: boolean) => void",
368 "signature": {
369 "arguments": [
370 {
371 "name": "isOpen",
372 "type": {
373 "name": "boolean"
374 },
375 "rest": false
376 }
377 ],
378 "return": {
379 "name": "void"
380 }
381 }
382 }
383 },
384 "pageBehavior": {
385 "description": "Controls the behavior of paging. Pagination either works by advancing the visible page by visibleDuration (default) or one unit of visibleDuration.",
386 "required": false,
387 "tsType": {
388 "name": "PageBehavior",
389 "elements": [],
390 "raw": "PageBehavior"
391 }
392 },
393 "placeholderValue": {
394 "description": "A placeholder date that influences the format of the placeholder shown when no value is selected. Defaults to today's date at midnight.",
395 "required": false,
396 "tsType": {
397 "name": "union",
398 "raw": "null \\| CalendarDate \\| CalendarDateTime",
399 "elements": [
400 {
401 "name": "null"
402 },
403 {
404 "name": "CalendarDate",
405 "elements": [],
406 "raw": "CalendarDate"
407 },
408 {
409 "name": "CalendarDateTime",
410 "elements": [],
411 "raw": "CalendarDateTime"
412 }
413 ]
414 }
415 },
416 "shouldForceLeadingZeros": {
417 "description": "Whether to always show leading zeros in the month, day, and hour fields.\nBy default, this is determined by the user's locale.",
418 "required": false,
419 "tsType": {
420 "name": "boolean"
421 }
422 },
423 "validate": {
424 "description": "A function that returns an error message if a given value is invalid.\nValidation errors are displayed to the user when the form is submitted\nif `validationBehavior=\"native\"`. For realtime validation, use the `isInvalid`\nprop instead.",
425 "required": false,
426 "tsType": {
427 "name": "signature",
428 "type": "function",
429 "raw": "(value: CalendarDate \\| CalendarDateTime) => undefined \\| null \\| true \\| ValidationError",
430 "signature": {
431 "arguments": [
432 {
433 "name": "value",
434 "type": {
435 "name": "union",
436 "raw": "CalendarDate \\| CalendarDateTime",
437 "elements": [
438 {
439 "name": "CalendarDate"
440 },
441 {
442 "name": "CalendarDateTime"
443 }
444 ]
445 },
446 "rest": false
447 }
448 ],
449 "return": {
450 "name": "union",
451 "raw": "undefined \\| null \\| true \\| ValidationError",
452 "elements": [
453 {
454 "name": "undefined"
455 },
456 {
457 "name": "null"
458 },
459 {
460 "name": "true"
461 },
462 {
463 "name": "ValidationError"
464 }
465 ]
466 }
467 }
468 }
469 },
470 "validationBehavior": {
471 "description": "Whether to use native HTML form validation to prevent form submission\nwhen the value is missing or invalid, or mark the field as required\nor invalid via ARIA.",
472 "required": false,
473 "tsType": {
474 "name": "union",
475 "raw": "\"aria\" \\| \"native\"",
476 "elements": [
477 {
478 "name": "literal",
479 "value": "\"aria\""
480 },
481 {
482 "name": "literal",
483 "value": "\"native\""
484 }
485 ]
486 }
487 }
488 },
489 "composes": [
490 "Omit"
491 ]
492 }