Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action --- > [!NOTE] > Bumps Medusa UI-related dependencies across apps/packages and updates DatePicker prop type metadata in UI specs. > > - **Dependencies**: > - Upgrade `@medusajs/icons` to `2.12.0` across apps/packages. > - Upgrade `@medusajs/ui` to `4.0.28` in `apps/api-reference`, `apps/ui`, and `packages/docs-ui`. > - Upgrade `@medusajs/ui-preset` to `2.12.0` in `apps/ui` and `packages/tailwind`. > - Update `yarn.lock` accordingly. > - **UI Reference**: > - Update `DatePicker` prop type metadata for `onBlur`, `onFocus`, `onKeyDown`, and `onKeyUp` in `apps/ui/specs/components/DatePicker/DatePicker.json`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 222e08dc7d3aa920103aa9b35c50207dca4dd32f. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
489 lines
13 KiB
JSON
489 lines
13 KiB
JSON
{
|
|
"description": "",
|
|
"methods": [],
|
|
"displayName": "DatePicker",
|
|
"props": {
|
|
"aria-describedby": {
|
|
"description": "Identifies the element (or elements) that describes the object.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"aria-details": {
|
|
"description": "Identifies the element (or elements) that provide a detailed, extended description for the object.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"aria-label": {
|
|
"description": "Defines a string value that labels the current element.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"aria-labelledby": {
|
|
"description": "Identifies the element (or elements) that labels the current element.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"autoComplete": {
|
|
"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).",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"autoFocus": {
|
|
"description": "Whether the element should receive focus on render.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"defaultOpen": {
|
|
"description": "Whether the overlay is open by default (uncontrolled).",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"description": {
|
|
"description": "A description for the field. Provides a hint such as specific requirements for what to choose.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "ReactNode",
|
|
"elements": [],
|
|
"raw": "ReactNode"
|
|
}
|
|
},
|
|
"errorMessage": {
|
|
"description": "An error message for the field.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "union",
|
|
"raw": "ReactNode \\| (v: ValidationResult) => ReactNode",
|
|
"elements": [
|
|
{
|
|
"name": "ReactNode",
|
|
"elements": [],
|
|
"raw": "ReactNode"
|
|
},
|
|
{
|
|
"name": "signature",
|
|
"type": "function",
|
|
"raw": "(v: ValidationResult) => ReactNode",
|
|
"signature": {
|
|
"arguments": [
|
|
{
|
|
"name": "v",
|
|
"type": {
|
|
"name": "ValidationResult"
|
|
},
|
|
"rest": false
|
|
}
|
|
],
|
|
"return": {
|
|
"name": "ReactNode"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"firstDayOfWeek": {
|
|
"description": "The day that starts the week.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "union",
|
|
"raw": "\"sun\" \\| \"mon\" \\| \"tue\" \\| \"wed\" \\| \"thu\" \\| \"fri\" \\| \"sat\"",
|
|
"elements": [
|
|
{
|
|
"name": "literal",
|
|
"value": "\"sun\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"mon\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"tue\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"wed\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"thu\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"fri\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"sat\""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"form": {
|
|
"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).",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"hideTimeZone": {
|
|
"description": "Whether to hide the time zone abbreviation.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"hourCycle": {
|
|
"description": "Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "union",
|
|
"raw": "12 \\| 24",
|
|
"elements": [
|
|
{
|
|
"name": "literal",
|
|
"value": "12"
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "24"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"isDisabled": {
|
|
"description": "Whether the input is disabled.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"isInvalid": {
|
|
"description": "Whether the input value is invalid.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"isOpen": {
|
|
"description": "Whether the overlay is open by default (controlled).",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"isReadOnly": {
|
|
"description": "Whether the input can be selected but not changed by the user.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"isRequired": {
|
|
"description": "Whether user input is required on the input before form submission.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"label": {
|
|
"description": "The content to display as the label.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "ReactNode",
|
|
"elements": [],
|
|
"raw": "ReactNode"
|
|
}
|
|
},
|
|
"name": {
|
|
"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).",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"onBlur": {
|
|
"description": "Handler that is called when the element loses focus.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "signature",
|
|
"type": "function",
|
|
"raw": "(e: FocusEvent<Element, Element>) => void",
|
|
"signature": {
|
|
"arguments": [
|
|
{
|
|
"name": "e",
|
|
"type": {
|
|
"name": "FocusEvent",
|
|
"elements": [
|
|
{
|
|
"name": "Element"
|
|
},
|
|
{
|
|
"name": "Element"
|
|
}
|
|
]
|
|
},
|
|
"rest": false
|
|
}
|
|
],
|
|
"return": {
|
|
"name": "void"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"onFocus": {
|
|
"description": "Handler that is called when the element receives focus.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "signature",
|
|
"type": "function",
|
|
"raw": "(e: FocusEvent<Element, Element>) => void",
|
|
"signature": {
|
|
"arguments": [
|
|
{
|
|
"name": "e",
|
|
"type": {
|
|
"name": "FocusEvent",
|
|
"elements": [
|
|
{
|
|
"name": "Element"
|
|
},
|
|
{
|
|
"name": "Element"
|
|
}
|
|
]
|
|
},
|
|
"rest": false
|
|
}
|
|
],
|
|
"return": {
|
|
"name": "void"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"onFocusChange": {
|
|
"description": "Handler that is called when the element's focus status changes.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "signature",
|
|
"type": "function",
|
|
"raw": "(isFocused: boolean) => void",
|
|
"signature": {
|
|
"arguments": [
|
|
{
|
|
"name": "isFocused",
|
|
"type": {
|
|
"name": "boolean"
|
|
},
|
|
"rest": false
|
|
}
|
|
],
|
|
"return": {
|
|
"name": "void"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"onKeyDown": {
|
|
"description": "Handler that is called when a key is pressed.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "signature",
|
|
"type": "function",
|
|
"raw": "(e: KeyboardEvent) => void",
|
|
"signature": {
|
|
"arguments": [
|
|
{
|
|
"name": "e",
|
|
"type": {
|
|
"name": "KeyboardEvent",
|
|
"raw": "KeyboardEvent",
|
|
"elements": []
|
|
},
|
|
"rest": false
|
|
}
|
|
],
|
|
"return": {
|
|
"name": "void"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"onKeyUp": {
|
|
"description": "Handler that is called when a key is released.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "signature",
|
|
"type": "function",
|
|
"raw": "(e: KeyboardEvent) => void",
|
|
"signature": {
|
|
"arguments": [
|
|
{
|
|
"name": "e",
|
|
"type": {
|
|
"name": "KeyboardEvent",
|
|
"raw": "KeyboardEvent",
|
|
"elements": []
|
|
},
|
|
"rest": false
|
|
}
|
|
],
|
|
"return": {
|
|
"name": "void"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"onOpenChange": {
|
|
"description": "Handler that is called when the overlay's open state changes.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "signature",
|
|
"type": "function",
|
|
"raw": "(isOpen: boolean) => void",
|
|
"signature": {
|
|
"arguments": [
|
|
{
|
|
"name": "isOpen",
|
|
"type": {
|
|
"name": "boolean"
|
|
},
|
|
"rest": false
|
|
}
|
|
],
|
|
"return": {
|
|
"name": "void"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"pageBehavior": {
|
|
"description": "Controls the behavior of paging. Pagination either works by advancing the visible page by visibleDuration (default) or one unit of visibleDuration.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "PageBehavior",
|
|
"elements": [],
|
|
"raw": "PageBehavior"
|
|
}
|
|
},
|
|
"placeholderValue": {
|
|
"description": "A placeholder date that influences the format of the placeholder shown when no value is selected. Defaults to today's date at midnight.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "union",
|
|
"raw": "null \\| CalendarDate \\| CalendarDateTime",
|
|
"elements": [
|
|
{
|
|
"name": "null"
|
|
},
|
|
{
|
|
"name": "CalendarDate",
|
|
"elements": [],
|
|
"raw": "CalendarDate"
|
|
},
|
|
{
|
|
"name": "CalendarDateTime",
|
|
"elements": [],
|
|
"raw": "CalendarDateTime"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"shouldForceLeadingZeros": {
|
|
"description": "Whether to always show leading zeros in the month, day, and hour fields.\nBy default, this is determined by the user's locale.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
}
|
|
},
|
|
"validate": {
|
|
"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.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "signature",
|
|
"type": "function",
|
|
"raw": "(value: CalendarDate \\| CalendarDateTime) => undefined \\| null \\| true \\| ValidationError",
|
|
"signature": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"type": {
|
|
"name": "union",
|
|
"raw": "CalendarDate \\| CalendarDateTime",
|
|
"elements": [
|
|
{
|
|
"name": "CalendarDate"
|
|
},
|
|
{
|
|
"name": "CalendarDateTime"
|
|
}
|
|
]
|
|
},
|
|
"rest": false
|
|
}
|
|
],
|
|
"return": {
|
|
"name": "union",
|
|
"raw": "undefined \\| null \\| true \\| ValidationError",
|
|
"elements": [
|
|
{
|
|
"name": "undefined"
|
|
},
|
|
{
|
|
"name": "null"
|
|
},
|
|
{
|
|
"name": "true"
|
|
},
|
|
{
|
|
"name": "ValidationError"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"validationBehavior": {
|
|
"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.",
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "union",
|
|
"raw": "\"aria\" \\| \"native\"",
|
|
"elements": [
|
|
{
|
|
"name": "literal",
|
|
"value": "\"aria\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"native\""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |