fix(docs): incorrect date value type in api (#5936)

* fix(docs): incorrect date value type in api

* chore(docs): revise types
This commit is contained in:
WK 2025-11-25 01:23:45 +08:00 committed by GitHub
parent 8b2ec9fa46
commit 217e88d58e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -329,7 +329,7 @@ import {I18nProvider} from "@react-aria/i18n";
},
{
attribute: "value",
type: "ZonedDateTime | CalendarDate | CalendarDateTime | undefined | null",
type: "DateValue | null",
description: "The current value of the date-picker (controlled).",
default: "-"
},
@ -359,13 +359,13 @@ import {I18nProvider} from "@react-aria/i18n";
},
{
attribute: "defaultValue",
type: "string",
type: "DateValue | null",
description: "The default value of the date-picker (uncontrolled).",
default: "-"
},
{
attribute: "placeholderValue",
type: "ZonedDateTime | CalendarDate | CalendarDateTime | undefined | null",
type: "DateValue | null",
description: "The placeholder of the date-picker.",
default: "-"
},

View File

@ -376,7 +376,7 @@ You can customize the `DateRangePicker` component by passing custom Tailwind CSS
},
{
attribute: "value",
type: "RangeValue<CalendarDate | CalendarDateTime | ZonedDateTime> | undefined | null",
type: "RangeValue<DateValue> | null",
description: "The current value of the date-range-picker (controlled).",
default: "-"
},
@ -406,25 +406,25 @@ You can customize the `DateRangePicker` component by passing custom Tailwind CSS
},
{
attribute: "minValue",
type: "RangeValue<CalendarDate | CalendarDateTime | ZonedDateTime> | undefined | null",
type: "DateValue | null",
description: "The minimum value of the date-range-picker.",
default: "-"
},
{
attribute: "maxValue",
type: "RangeValue<CalendarDate | CalendarDateTime | ZonedDateTime> | undefined | null",
type: "DateValue | null",
description: "The maximum value of the date-range-picker.",
default: "-"
},
{
attribute: "defaultValue",
type: "string",
type: "RangeValue<DateValue> | null",
description: "The default value of the date-range-picker (uncontrolled).",
default: "-"
},
{
attribute: "placeholderValue",
type: "ZonedDateTime | CalendarDate | CalendarDateTime | undefined | null",
type: "DateValue | null",
description: "The placeholder of the date-range-picker.",
default: "-"
},