Skip to content

Commit 75dfd44

Browse files
[6.x] DatePicker dates can't be strings (#14295)
* Dates can't be strings * Update in DateRangePicker too --------- Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>
1 parent 4a357d0 commit 75dfd44

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

resources/js/components/ui/DatePicker/DatePicker.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const props = defineProps({
3131
/** Badge text to display. */
3232
badge: { type: String, default: null },
3333
required: { type: Boolean, default: false },
34-
/** The controlled date value. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates) or an ISO 8601 datetime string with a UTC offset. */
34+
/** The controlled date value. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates) */
3535
modelValue: { type: [Object, String], default: null },
36-
/** The minimum selectable date. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates) or an ISO 8601 datetime string with a UTC offset. */
36+
/** The minimum selectable date. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates) */
3737
min: { type: [String, Object], default: null },
38-
/** The maximum selectable date. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates) or an ISO 8601 datetime string with a UTC offset. */
38+
/** The maximum selectable date. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates) */
3939
max: { type: [String, Object], default: null },
4040
/** The granularity of the date picker. <br><br> Options: `day`, `hour`, `minute`, `second` */
4141
granularity: { type: String, default: null },

resources/js/components/ui/DateRangePicker/DateRangePicker.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const props = defineProps({
3131
/** Badge text to display. */
3232
badge: { type: String, default: null },
3333
required: { type: Boolean, default: false },
34-
/** The controlled date range value. <br><br> Should be a [`DateRange` object](https://reka-ui.com/docs/guides/dates) or an object with `start` and `end` keys, where each value is an ISO 8601 datetime string with a UTC offset. */
34+
/** The controlled date range value. <br><br> Should be a [`DateRange` object](https://reka-ui.com/docs/guides/dates). */
3535
modelValue: { type: [Object, String], default: null },
36-
/** The minimum selectable date. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates) or an ISO 8601 datetime string with a UTC offset. */
36+
/** The minimum selectable date. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates). */
3737
min: { type: [String, Object], default: null },
38-
/** The maximum selectable date. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates) or an ISO 8601 datetime string with a UTC offset. */
38+
/** The maximum selectable date. <br><br> Should be a [`DateValue` object](https://reka-ui.com/docs/guides/dates). */
3939
max: { type: [String, Object], default: null },
4040
/** The granularity of the date range picker. <br><br> Options: `day`, `hour`, `minute`, `second` */
4141
granularity: { type: String, default: null },
@@ -176,4 +176,4 @@ const calendarEvents = computed(() => ({
176176
</Card>
177177
</DateRangePickerRoot>
178178
</div>
179-
</template>
179+
</template>

0 commit comments

Comments
 (0)