From 959a39804e7ebda43e59007906a7d9dcc2c2ae7d Mon Sep 17 00:00:00 2001 From: Segun Adebayo Date: Thu, 14 Mar 2024 13:33:56 +0000 Subject: [PATCH] chore: rm parse from date picker --- .changeset/many-spiders-call.md | 5 +++++ packages/docs/data/api.json | 4 ---- packages/machines/date-picker/src/date-picker.types.ts | 4 ---- 3 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 .changeset/many-spiders-call.md diff --git a/.changeset/many-spiders-call.md b/.changeset/many-spiders-call.md new file mode 100644 index 0000000000..8718bad078 --- /dev/null +++ b/.changeset/many-spiders-call.md @@ -0,0 +1,5 @@ +--- +"@zag-js/date-picker": minor +--- + +Remove unused `parse` function diff --git a/packages/docs/data/api.json b/packages/docs/data/api.json index abfc6671d4..8ca076c196 100644 --- a/packages/docs/data/api.json +++ b/packages/docs/data/api.json @@ -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", diff --git a/packages/machines/date-picker/src/date-picker.types.ts b/packages/machines/date-picker/src/date-picker.types.ts index 9922bb0e3c..1a8c502a61 100644 --- a/packages/machines/date-picker/src/date-picker.types.ts +++ b/packages/machines/date-picker/src/date-picker.types.ts @@ -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"