Skip to content

Commit

Permalink
chore: rm parse from date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo authored and colinlienard committed Jun 18, 2024
1 parent 823c3c1 commit 959a398
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-spiders-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zag-js/date-picker": minor
---

Remove unused `parse` function
4 changes: 0 additions & 4 deletions packages/docs/data/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1010,10 +1010,6 @@
"type": "(date: DateValue) => string",
"description": "The format of the date to display in the input."
},
"parse": {
"type": "(value: string) => DateValue",
"description": "The format of the date to display in the input."
},
"view": {
"type": "DateView",
"description": "The view of the calendar",
Expand Down
4 changes: 0 additions & 4 deletions packages/machines/date-picker/src/date-picker.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ interface PublicContext extends DirectionProperty, CommonProperties {
* The format of the date to display in the input.
*/
format?: (date: DateValue) => string
/**
* The format of the date to display in the input.
*/
parse?: (value: string) => DateValue
/**
* The view of the calendar
* @default "day"
Expand Down

0 comments on commit 959a398

Please sign in to comment.