diff --git a/.changeset/README.md b/.changeset/README.md index 183b070e2a..c1dd67b69b 100644 --- a/.changeset/README.md +++ b/.changeset/README.md @@ -13,10 +13,10 @@ This repo keeps the publishable packages versioned together: Private apps are ignored by Changesets. `shadcn-app-v9` intentionally depends on the published v9 package, so Changesets may print a dependency graph warning about that package during `status` or `version`. Keep `bumpVersionsWithWorkspaceProtocolOnly` disabled so the calendar package peer dependencies on `react-day-picker` are updated during versioning. -The current package version is a `next` prerelease. To continue the `next` train with Changesets, enter prerelease mode before running `changeset version`: +To publish a prerelease train with Changesets, enter prerelease mode with the desired tag before running `changeset version`: ```sh -pnpm changeset pre enter next +pnpm changeset pre enter ``` Publishing runs from [`.github/workflows/release.yml`](../.github/workflows/release.yml): diff --git a/.changeset/calendar-datelib-overrides.md b/.changeset/calendar-datelib-overrides.md deleted file mode 100644 index cd9e1ff82d..0000000000 --- a/.changeset/calendar-datelib-overrides.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@daypicker/buddhist": patch -"@daypicker/ethiopic": patch -"@daypicker/hebrew": patch ---- - -Respect custom `dateLib` overrides in calendar wrappers. diff --git a/.changeset/calendar-readmes.md b/.changeset/calendar-readmes.md deleted file mode 100644 index dfb9f17a85..0000000000 --- a/.changeset/calendar-readmes.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@daypicker/buddhist": patch -"@daypicker/ethiopic": patch -"@daypicker/hebrew": patch -"@daypicker/hijri": patch -"@daypicker/persian": patch ---- - -docs: simplify standalone calendar package READMEs. diff --git a/.changeset/ethiopic-amet-locale.md b/.changeset/ethiopic-amet-locale.md deleted file mode 100644 index 721b6e28f6..0000000000 --- a/.changeset/ethiopic-amet-locale.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@daypicker/ethiopic": patch -"react-day-picker": patch ---- - -Move the `amET` locale export to `@daypicker/ethiopic`. diff --git a/.changeset/multi-month-dropdown-navigation.md b/.changeset/multi-month-dropdown-navigation.md deleted file mode 100644 index f06c6e8773..0000000000 --- a/.changeset/multi-month-dropdown-navigation.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"react-day-picker": patch -"@daypicker/react": patch ---- - -fix: keep multi-month dropdown selections on the edited calendar. diff --git a/.changeset/olive-crabs-juggle.md b/.changeset/olive-crabs-juggle.md deleted file mode 100644 index 1555847411..0000000000 --- a/.changeset/olive-crabs-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-day-picker": patch ---- - -Clarify how to install the standalone calendar packages in the v10 prerelease README. diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 2ad5bb6059..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "mode": "exit", - "tag": "next", - "initialVersions": { - "examples-app": "0.0.0", - "shadcn-app-v9": "0.0.0", - "shadcn-app-workspace": "0.0.0", - "website": "0.0.0", - "@daypicker/buddhist": "10.0.0-next.1", - "@daypicker/ethiopic": "10.0.0-next.1", - "@daypicker/hebrew": "10.0.0-next.1", - "@daypicker/hijri": "10.0.0-next.1", - "@daypicker/persian": "10.0.0-next.1", - "react-day-picker": "10.0.0-next.1", - "@daypicker/react": "10.0.0-next.5" - }, - "changesets": [ - "calendar-datelib-overrides", - "calendar-readmes", - "ethiopic-amet-locale", - "olive-crabs-juggle", - "scoped-react-alias", - "serious-snakes-fix" - ] -} diff --git a/.changeset/scoped-react-alias.md b/.changeset/scoped-react-alias.md deleted file mode 100644 index 44903b64f3..0000000000 --- a/.changeset/scoped-react-alias.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"react-day-picker": patch -"@daypicker/react": patch -"@daypicker/buddhist": patch -"@daypicker/ethiopic": patch -"@daypicker/hebrew": patch -"@daypicker/hijri": patch -"@daypicker/persian": patch ---- - -Add `@daypicker/react` as the React package for DayPicker and update calendar packages to consume it. diff --git a/.changeset/serious-snakes-fix.md b/.changeset/serious-snakes-fix.md deleted file mode 100644 index 0ba94743c7..0000000000 --- a/.changeset/serious-snakes-fix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-day-picker": patch ---- - -Clarify the public `useCalendar` API documentation. diff --git a/apps/website/versioned_docs/version-next/api/buddhist/functions/DayPicker.md b/apps/website/docs/api/buddhist/functions/DayPicker.md similarity index 81% rename from apps/website/versioned_docs/version-next/api/buddhist/functions/DayPicker.md rename to apps/website/docs/api/buddhist/functions/DayPicker.md index 50153221f6..de053feaaa 100644 --- a/apps/website/versioned_docs/version-next/api/buddhist/functions/DayPicker.md +++ b/apps/website/docs/api/buddhist/functions/DayPicker.md @@ -2,7 +2,7 @@ > **DayPicker**(`props`): `Element` -Defined in: [packages/buddhist/src/buddhist/index.tsx:38](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/buddhist/src/buddhist/index.tsx#L38) +Defined in: [packages/buddhist/src/buddhist/index.tsx:38](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/buddhist/src/buddhist/index.tsx#L38) Render the Buddhist (Thai) calendar. diff --git a/apps/website/versioned_docs/version-next/api/buddhist/functions/getDateLib.md b/apps/website/docs/api/buddhist/functions/getDateLib.md similarity index 73% rename from apps/website/versioned_docs/version-next/api/buddhist/functions/getDateLib.md rename to apps/website/docs/api/buddhist/functions/getDateLib.md index e396656ca6..fc0a7ca3e0 100644 --- a/apps/website/versioned_docs/version-next/api/buddhist/functions/getDateLib.md +++ b/apps/website/docs/api/buddhist/functions/getDateLib.md @@ -2,7 +2,7 @@ > **getDateLib**(`options?`): `DateLib` -Defined in: [packages/buddhist/src/buddhist/index.tsx:69](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/buddhist/src/buddhist/index.tsx#L69) +Defined in: [packages/buddhist/src/buddhist/index.tsx:69](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/buddhist/src/buddhist/index.tsx#L69) Returns the date library used in the Buddhist calendar. diff --git a/apps/website/versioned_docs/version-next/api/buddhist/index.md b/apps/website/docs/api/buddhist/index.md similarity index 90% rename from apps/website/versioned_docs/version-next/api/buddhist/index.md rename to apps/website/docs/api/buddhist/index.md index f6812b5159..61d8296abb 100644 --- a/apps/website/versioned_docs/version-next/api/buddhist/index.md +++ b/apps/website/docs/api/buddhist/index.md @@ -1,4 +1,4 @@ -# `@daypicker/buddhist` v10.0.0-next.6 +# `@daypicker/buddhist` v10.0.0 ## Functions diff --git a/apps/website/versioned_docs/version-next/api/buddhist/typedoc-sidebar.cjs b/apps/website/docs/api/buddhist/typedoc-sidebar.cjs similarity index 100% rename from apps/website/versioned_docs/version-next/api/buddhist/typedoc-sidebar.cjs rename to apps/website/docs/api/buddhist/typedoc-sidebar.cjs diff --git a/apps/website/versioned_docs/version-next/api/buddhist/variables/enUS.md b/apps/website/docs/api/buddhist/variables/enUS.md similarity index 52% rename from apps/website/versioned_docs/version-next/api/buddhist/variables/enUS.md rename to apps/website/docs/api/buddhist/variables/enUS.md index d7d9cced01..314a648c3a 100644 --- a/apps/website/versioned_docs/version-next/api/buddhist/variables/enUS.md +++ b/apps/website/docs/api/buddhist/variables/enUS.md @@ -2,4 +2,4 @@ > `const` **enUS**: *typeof* `enUSLocale` = `enUSLocale` -Defined in: [packages/buddhist/src/buddhist/index.tsx:24](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/buddhist/src/buddhist/index.tsx#L24) +Defined in: [packages/buddhist/src/buddhist/index.tsx:24](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/buddhist/src/buddhist/index.tsx#L24) diff --git a/apps/website/versioned_docs/version-next/api/buddhist/variables/th.md b/apps/website/docs/api/buddhist/variables/th.md similarity index 50% rename from apps/website/versioned_docs/version-next/api/buddhist/variables/th.md rename to apps/website/docs/api/buddhist/variables/th.md index 808c768e98..a8f0ab6260 100644 --- a/apps/website/versioned_docs/version-next/api/buddhist/variables/th.md +++ b/apps/website/docs/api/buddhist/variables/th.md @@ -2,4 +2,4 @@ > `const` **th**: *typeof* `thLocale` = `thLocale` -Defined in: [packages/buddhist/src/buddhist/index.tsx:23](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/buddhist/src/buddhist/index.tsx#L23) +Defined in: [packages/buddhist/src/buddhist/index.tsx:23](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/buddhist/src/buddhist/index.tsx#L23) diff --git a/apps/website/versioned_docs/version-next/api/ethiopic/functions/DayPicker.md b/apps/website/docs/api/ethiopic/functions/DayPicker.md similarity index 86% rename from apps/website/versioned_docs/version-next/api/ethiopic/functions/DayPicker.md rename to apps/website/docs/api/ethiopic/functions/DayPicker.md index 13fbf20646..58146b8618 100644 --- a/apps/website/versioned_docs/version-next/api/ethiopic/functions/DayPicker.md +++ b/apps/website/docs/api/ethiopic/functions/DayPicker.md @@ -2,7 +2,7 @@ > **DayPicker**(`props`): `Element` -Defined in: [packages/ethiopic/src/ethiopic/index.tsx:30](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/ethiopic/src/ethiopic/index.tsx#L30) +Defined in: [packages/ethiopic/src/ethiopic/index.tsx:30](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/ethiopic/src/ethiopic/index.tsx#L30) Render the Ethiopic calendar. diff --git a/apps/website/versioned_docs/version-next/api/ethiopic/functions/getDateLib.md b/apps/website/docs/api/ethiopic/functions/getDateLib.md similarity index 72% rename from apps/website/versioned_docs/version-next/api/ethiopic/functions/getDateLib.md rename to apps/website/docs/api/ethiopic/functions/getDateLib.md index 0869c45bdb..a22b7b8c6d 100644 --- a/apps/website/versioned_docs/version-next/api/ethiopic/functions/getDateLib.md +++ b/apps/website/docs/api/ethiopic/functions/getDateLib.md @@ -2,7 +2,7 @@ > **getDateLib**(`options?`): `DateLib` -Defined in: [packages/ethiopic/src/ethiopic/index.tsx:63](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/ethiopic/src/ethiopic/index.tsx#L63) +Defined in: [packages/ethiopic/src/ethiopic/index.tsx:63](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/ethiopic/src/ethiopic/index.tsx#L63) Returns the date library used in the calendar. diff --git a/apps/website/versioned_docs/version-next/api/ethiopic/index.md b/apps/website/docs/api/ethiopic/index.md similarity index 92% rename from apps/website/versioned_docs/version-next/api/ethiopic/index.md rename to apps/website/docs/api/ethiopic/index.md index 12c36dd56c..f4a7244a5a 100644 --- a/apps/website/versioned_docs/version-next/api/ethiopic/index.md +++ b/apps/website/docs/api/ethiopic/index.md @@ -1,4 +1,4 @@ -# `@daypicker/ethiopic` v10.0.0-next.6 +# `@daypicker/ethiopic` v10.0.0 ## Functions diff --git a/apps/website/versioned_docs/version-next/api/ethiopic/typedoc-sidebar.cjs b/apps/website/docs/api/ethiopic/typedoc-sidebar.cjs similarity index 100% rename from apps/website/versioned_docs/version-next/api/ethiopic/typedoc-sidebar.cjs rename to apps/website/docs/api/ethiopic/typedoc-sidebar.cjs diff --git a/apps/website/versioned_docs/version-next/api/ethiopic/variables/amET.md b/apps/website/docs/api/ethiopic/variables/amET.md similarity index 62% rename from apps/website/versioned_docs/version-next/api/ethiopic/variables/amET.md rename to apps/website/docs/api/ethiopic/variables/amET.md index 8aceb74123..b0aa6c7350 100644 --- a/apps/website/versioned_docs/version-next/api/ethiopic/variables/amET.md +++ b/apps/website/docs/api/ethiopic/variables/amET.md @@ -2,7 +2,7 @@ > `const` **amET**: `DayPickerLocale` -Defined in: [packages/ethiopic/src/locale/am-ET.ts:104](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/ethiopic/src/locale/am-ET.ts#L104) +Defined in: [packages/ethiopic/src/locale/am-ET.ts:104](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/ethiopic/src/locale/am-ET.ts#L104) Amharic (Ethiopia) locale backed by Intl for core names plus DayPicker labels. diff --git a/apps/website/versioned_docs/version-next/api/hebrew/variables/enUS.md b/apps/website/docs/api/ethiopic/variables/enUS.md similarity index 62% rename from apps/website/versioned_docs/version-next/api/hebrew/variables/enUS.md rename to apps/website/docs/api/ethiopic/variables/enUS.md index ac9c14528a..403aa7af7c 100644 --- a/apps/website/versioned_docs/version-next/api/hebrew/variables/enUS.md +++ b/apps/website/docs/api/ethiopic/variables/enUS.md @@ -2,6 +2,6 @@ > `const` **enUS**: `DayPickerLocale` -Defined in: [packages/react-day-picker/src/locale/en-US.ts:12](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/react-day-picker/src/locale/en-US.ts#L12) +Defined in: [packages/react-day-picker/src/locale/en-US.ts:12](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/react-day-picker/src/locale/en-US.ts#L12) English (United States) locale extended with DayPicker-specific translations. diff --git a/apps/website/versioned_docs/version-next/api/hebrew/functions/DayPicker.md b/apps/website/docs/api/hebrew/functions/DayPicker.md similarity index 83% rename from apps/website/versioned_docs/version-next/api/hebrew/functions/DayPicker.md rename to apps/website/docs/api/hebrew/functions/DayPicker.md index 4bcc7e4edf..b38dac5e9b 100644 --- a/apps/website/versioned_docs/version-next/api/hebrew/functions/DayPicker.md +++ b/apps/website/docs/api/hebrew/functions/DayPicker.md @@ -2,7 +2,7 @@ > **DayPicker**(`props`): `Element` -Defined in: [packages/hebrew/src/hebrew/index.tsx:24](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/hebrew/src/hebrew/index.tsx#L24) +Defined in: [packages/hebrew/src/hebrew/index.tsx:24](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/hebrew/src/hebrew/index.tsx#L24) Render the Hebrew (lunisolar) calendar. diff --git a/apps/website/versioned_docs/version-next/api/hebrew/functions/getDateLib.md b/apps/website/docs/api/hebrew/functions/getDateLib.md similarity index 74% rename from apps/website/versioned_docs/version-next/api/hebrew/functions/getDateLib.md rename to apps/website/docs/api/hebrew/functions/getDateLib.md index fd60a10cfd..a0f4c0ebff 100644 --- a/apps/website/versioned_docs/version-next/api/hebrew/functions/getDateLib.md +++ b/apps/website/docs/api/hebrew/functions/getDateLib.md @@ -2,7 +2,7 @@ > **getDateLib**(`options?`): `DateLib` -Defined in: [packages/hebrew/src/hebrew/index.tsx:55](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/hebrew/src/hebrew/index.tsx#L55) +Defined in: [packages/hebrew/src/hebrew/index.tsx:55](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/hebrew/src/hebrew/index.tsx#L55) Returns the date library used in the Hebrew calendar. diff --git a/apps/website/versioned_docs/version-next/api/hebrew/index.md b/apps/website/docs/api/hebrew/index.md similarity index 93% rename from apps/website/versioned_docs/version-next/api/hebrew/index.md rename to apps/website/docs/api/hebrew/index.md index 02a6d792dd..d70e88eb61 100644 --- a/apps/website/versioned_docs/version-next/api/hebrew/index.md +++ b/apps/website/docs/api/hebrew/index.md @@ -1,4 +1,4 @@ -# `@daypicker/hebrew` v10.0.0-next.6 +# `@daypicker/hebrew` v10.0.0 ## Functions diff --git a/apps/website/versioned_docs/version-next/api/hebrew/typedoc-sidebar.cjs b/apps/website/docs/api/hebrew/typedoc-sidebar.cjs similarity index 100% rename from apps/website/versioned_docs/version-next/api/hebrew/typedoc-sidebar.cjs rename to apps/website/docs/api/hebrew/typedoc-sidebar.cjs diff --git a/apps/website/versioned_docs/version-next/api/ethiopic/variables/enUS.md b/apps/website/docs/api/hebrew/variables/enUS.md similarity index 62% rename from apps/website/versioned_docs/version-next/api/ethiopic/variables/enUS.md rename to apps/website/docs/api/hebrew/variables/enUS.md index ac9c14528a..403aa7af7c 100644 --- a/apps/website/versioned_docs/version-next/api/ethiopic/variables/enUS.md +++ b/apps/website/docs/api/hebrew/variables/enUS.md @@ -2,6 +2,6 @@ > `const` **enUS**: `DayPickerLocale` -Defined in: [packages/react-day-picker/src/locale/en-US.ts:12](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/react-day-picker/src/locale/en-US.ts#L12) +Defined in: [packages/react-day-picker/src/locale/en-US.ts:12](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/react-day-picker/src/locale/en-US.ts#L12) English (United States) locale extended with DayPicker-specific translations. diff --git a/apps/website/versioned_docs/version-next/api/hebrew/variables/he.md b/apps/website/docs/api/hebrew/variables/he.md similarity index 58% rename from apps/website/versioned_docs/version-next/api/hebrew/variables/he.md rename to apps/website/docs/api/hebrew/variables/he.md index 5ed6241469..715a4f7c6f 100644 --- a/apps/website/versioned_docs/version-next/api/hebrew/variables/he.md +++ b/apps/website/docs/api/hebrew/variables/he.md @@ -2,6 +2,6 @@ > `const` **he**: `DayPickerLocale` -Defined in: [packages/react-day-picker/src/locale/he.ts:8](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/react-day-picker/src/locale/he.ts#L8) +Defined in: [packages/react-day-picker/src/locale/he.ts:8](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/react-day-picker/src/locale/he.ts#L8) Hebrew locale extended with DayPicker-specific translations. diff --git a/apps/website/versioned_docs/version-next/api/hijri/functions/DayPicker.md b/apps/website/docs/api/hijri/functions/DayPicker.md similarity index 84% rename from apps/website/versioned_docs/version-next/api/hijri/functions/DayPicker.md rename to apps/website/docs/api/hijri/functions/DayPicker.md index 94ce75e442..2538966dcb 100644 --- a/apps/website/versioned_docs/version-next/api/hijri/functions/DayPicker.md +++ b/apps/website/docs/api/hijri/functions/DayPicker.md @@ -2,7 +2,7 @@ > **DayPicker**(`props`): `Element` -Defined in: [packages/hijri/src/hijri/index.tsx:38](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/hijri/src/hijri/index.tsx#L38) +Defined in: [packages/hijri/src/hijri/index.tsx:38](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/hijri/src/hijri/index.tsx#L38) Render the Hijri (Umm al-Qura) calendar. diff --git a/apps/website/versioned_docs/version-next/api/hijri/functions/getDateLib.md b/apps/website/docs/api/hijri/functions/getDateLib.md similarity index 72% rename from apps/website/versioned_docs/version-next/api/hijri/functions/getDateLib.md rename to apps/website/docs/api/hijri/functions/getDateLib.md index 3b549fffbd..897f8cc7e6 100644 --- a/apps/website/versioned_docs/version-next/api/hijri/functions/getDateLib.md +++ b/apps/website/docs/api/hijri/functions/getDateLib.md @@ -2,7 +2,7 @@ > **getDateLib**(`options?`): `DateLib` -Defined in: [packages/hijri/src/hijri/index.tsx:75](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/hijri/src/hijri/index.tsx#L75) +Defined in: [packages/hijri/src/hijri/index.tsx:75](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/hijri/src/hijri/index.tsx#L75) Returns the date library used in the Hijri calendar. diff --git a/apps/website/versioned_docs/version-next/api/hijri/index.md b/apps/website/docs/api/hijri/index.md similarity index 93% rename from apps/website/versioned_docs/version-next/api/hijri/index.md rename to apps/website/docs/api/hijri/index.md index b161fed1d5..1b981c9836 100644 --- a/apps/website/versioned_docs/version-next/api/hijri/index.md +++ b/apps/website/docs/api/hijri/index.md @@ -1,4 +1,4 @@ -# `@daypicker/hijri` v10.0.0-next.6 +# `@daypicker/hijri` v10.0.0 ## Functions diff --git a/apps/website/versioned_docs/version-next/api/hijri/typedoc-sidebar.cjs b/apps/website/docs/api/hijri/typedoc-sidebar.cjs similarity index 100% rename from apps/website/versioned_docs/version-next/api/hijri/typedoc-sidebar.cjs rename to apps/website/docs/api/hijri/typedoc-sidebar.cjs diff --git a/apps/website/versioned_docs/version-next/api/hijri/variables/arSA.md b/apps/website/docs/api/hijri/variables/arSA.md similarity index 61% rename from apps/website/versioned_docs/version-next/api/hijri/variables/arSA.md rename to apps/website/docs/api/hijri/variables/arSA.md index 053d568f34..0176196c84 100644 --- a/apps/website/versioned_docs/version-next/api/hijri/variables/arSA.md +++ b/apps/website/docs/api/hijri/variables/arSA.md @@ -2,6 +2,6 @@ > `const` **arSA**: `DayPickerLocale` -Defined in: [packages/react-day-picker/src/locale/ar-SA.ts:8](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/react-day-picker/src/locale/ar-SA.ts#L8) +Defined in: [packages/react-day-picker/src/locale/ar-SA.ts:8](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/react-day-picker/src/locale/ar-SA.ts#L8) Arabic (Saudi Arabia) locale extended with DayPicker-specific translations. diff --git a/apps/website/versioned_docs/version-next/api/hijri/variables/enUS.md b/apps/website/docs/api/hijri/variables/enUS.md similarity index 62% rename from apps/website/versioned_docs/version-next/api/hijri/variables/enUS.md rename to apps/website/docs/api/hijri/variables/enUS.md index ac9c14528a..403aa7af7c 100644 --- a/apps/website/versioned_docs/version-next/api/hijri/variables/enUS.md +++ b/apps/website/docs/api/hijri/variables/enUS.md @@ -2,6 +2,6 @@ > `const` **enUS**: `DayPickerLocale` -Defined in: [packages/react-day-picker/src/locale/en-US.ts:12](https://github.com/gpbl/react-day-picker/blob/4f05162215b4f525bb715406bc3c84dac5de42bb/packages/react-day-picker/src/locale/en-US.ts#L12) +Defined in: [packages/react-day-picker/src/locale/en-US.ts:12](https://github.com/gpbl/react-day-picker/blob/88d4318764b878667a386ffb8b3f9683358c8564/packages/react-day-picker/src/locale/en-US.ts#L12) English (United States) locale extended with DayPicker-specific translations. diff --git a/apps/website/docs/api/index.md b/apps/website/docs/api/index.md index bab52f7946..76c1b5736c 100644 --- a/apps/website/docs/api/index.md +++ b/apps/website/docs/api/index.md @@ -1,193 +1,25 @@ -# API v9.14.0 +# API Reference -## DayPicker +Use this reference to inspect the exported APIs for DayPicker and its calendar packages. Start with [@daypicker/react](react/index.md) for the core component API, then use the calendar package pages when you import a calendar-specific DayPicker. -| Name | Description | -| ------ | ------ | -| [DayPicker](functions/DayPicker.md) | Renders the DayPicker calendar component. | -| [DayPickerProps](type-aliases/DayPickerProps.md) | The props for the `` component. | -| [PropsBase](interfaces/PropsBase.md) | Props for customizing the calendar, handling localization, and managing events. These exclude the selection mode props. | -| [PropsMulti](interfaces/PropsMulti.md) | The props when the multiple selection is optional. | -| [PropsMultiRequired](interfaces/PropsMultiRequired.md) | The props when the multiple selection is required. | -| [PropsRange](interfaces/PropsRange.md) | The props when the range selection is optional. | -| [PropsRangeRequired](interfaces/PropsRangeRequired.md) | The props when the range selection is required. | -| [PropsSingle](interfaces/PropsSingle.md) | The props when the single selection is optional. | -| [PropsSingleRequired](interfaces/PropsSingleRequired.md) | The props when the single selection is required. | +## Packages -## Classes +| Package | Use it for | +| --- | --- | +| [@daypicker/react](react/index.md) | Core DayPicker exports: the React component, props, custom component contracts, hooks, utilities, formatters, labels, and shared types. | +| [@daypicker/buddhist](buddhist/index.md) | Buddhist calendar exports, including the Thai calendar DayPicker component, locale constants, and date-library helpers. | +| [@daypicker/ethiopic](ethiopic/index.md) | Ethiopic calendar exports, including the Ethiopic DayPicker component, locale constants, and date-library helpers. | +| [@daypicker/hebrew](hebrew/index.md) | Hebrew calendar exports, including the Hebrew DayPicker component, locale constants, and date-library helpers. | +| [@daypicker/hijri](hijri/index.md) | Hijri calendar exports, including the Umm al-Qura DayPicker component, locale constants, and date-library helpers. | +| [@daypicker/persian](persian/index.md) | Persian calendar exports, including the Jalali DayPicker component, locale constants, and date-library helpers. | -| Class | Description | -| ------ | ------ | -| [CalendarDay](classes/CalendarDay.md) | Represents a day displayed in the calendar. | -| [CalendarMonth](classes/CalendarMonth.md) | Represents a month in a calendar year. | -| [CalendarWeek](classes/CalendarWeek.md) | Represents a week in a calendar month. | -| [DateLib](classes/DateLib.md) | A wrapper class around [date-fns](http://date-fns.org) that provides utility methods for date manipulation and formatting. | +## Common Tasks -## Components - -| Function | Description | -| ------ | ------ | -| [CaptionLabel](functions/CaptionLabel.md) | Render the label in the month caption. | -| [Chevron](functions/Chevron.md) | Render the chevron icon used in the navigation buttons and dropdowns. | -| [Day](functions/Day.md) | Render a grid cell for a specific day in the calendar. | -| [DayButton](functions/DayButton.md) | Render a button for a specific day in the calendar. | -| [Dropdown](functions/Dropdown.md) | Render a dropdown component for navigation in the calendar. | -| [DropdownNav](functions/DropdownNav.md) | Render the navigation dropdowns for the calendar. | -| [Footer](functions/Footer.md) | Render the footer of the calendar. | -| [Month](functions/Month.md) | Render the grid with the weekday header row and the weeks for a specific month. | -| [MonthCaption](functions/MonthCaption.md) | Render the caption for a month in the calendar. | -| [MonthGrid](functions/MonthGrid.md) | Render the grid of days for a specific month. | -| [Months](functions/Months.md) | Render a container wrapping the month grids. | -| [MonthsDropdown](functions/MonthsDropdown.md) | Render a dropdown to navigate between months in the calendar. | -| [Nav](functions/Nav.md) | Render the navigation toolbar with buttons to navigate between months. | -| [NextMonthButton](functions/NextMonthButton.md) | Render the button to navigate to the next month in the calendar. | -| [Option](functions/Option.md) | Render an `option` element. | -| [PreviousMonthButton](functions/PreviousMonthButton.md) | Render the button to navigate to the previous month in the calendar. | -| [Root](functions/Root.md) | Render the root element of the calendar. | -| [Select](functions/Select.md) | Render a `select` element. | -| [Week](functions/Week.md) | Render a table row representing a week in the calendar. | -| [Weekday](functions/Weekday.md) | Render a table header cell with the name of a weekday (e.g., "Mo", "Tu"). | -| [Weekdays](functions/Weekdays.md) | Render the table row containing the weekday names. | -| [WeekNumber](functions/WeekNumber.md) | Render a table cell displaying the number of the week. | -| [WeekNumberHeader](functions/WeekNumberHeader.md) | Render the header cell for the week numbers column. | -| [Weeks](functions/Weeks.md) | Render the container for the weeks in the month grid. | -| [YearsDropdown](functions/YearsDropdown.md) | Render a dropdown to navigate between years in the calendar. | - -## Formatters - -| Function | Description | -| ------ | ------ | -| [formatCaption](functions/formatCaption.md) | Formats the caption of the month. | -| [formatDay](functions/formatDay.md) | Formats the day date shown in the day cell. | -| [formatMonthDropdown](functions/formatMonthDropdown.md) | Formats the month for the dropdown option label. | -| [formatWeekdayName](functions/formatWeekdayName.md) | Formats the name of a weekday to be displayed in the weekdays header. | -| [formatWeekNumber](functions/formatWeekNumber.md) | Formats the week number. | -| [formatWeekNumberHeader](functions/formatWeekNumberHeader.md) | Formats the header for the week number column. | -| [formatYearDropdown](functions/formatYearDropdown.md) | Formats the year for the dropdown option label. | - -## Labels - -| Function | Description | -| ------ | ------ | -| [labelDayButton](functions/labelDayButton.md) | Generates the ARIA label for a day button. | -| [labelGrid](functions/labelGrid.md) | Generates the ARIA label for the month grid, which is announced when entering the grid. | -| [labelGridcell](functions/labelGridcell.md) | Generates the label for a day grid cell when the calendar is not interactive. | -| [labelMonthDropdown](functions/labelMonthDropdown.md) | Generates the ARIA label for the months dropdown. | -| [labelNav](functions/labelNav.md) | Generates the ARIA label for the navigation toolbar. | -| [labelNext](functions/labelNext.md) | Generates the ARIA label for the "next month" button. | -| [labelPrevious](functions/labelPrevious.md) | Generates the ARIA label for the "previous month" button. | -| [labelWeekday](functions/labelWeekday.md) | Generates the ARIA label for a weekday column header. | -| [labelWeekNumber](functions/labelWeekNumber.md) | Generates the ARIA label for the week number cell (the first cell in a row). | -| [labelWeekNumberHeader](functions/labelWeekNumberHeader.md) | Generates the ARIA label for the week number header element. | -| [labelYearDropdown](functions/labelYearDropdown.md) | Generates the ARIA label for the years dropdown. | - -## Utilities - -| Function | Description | -| ------ | ------ | -| [addToRange](functions/addToRange.md) | Adds a date to an existing range, considering constraints like minimum and maximum range size. | -| [dateMatchModifiers](functions/dateMatchModifiers.md) | Checks if a given date matches at least one of the specified [Matcher](type-aliases/Matcher.md). | -| [getDefaultClassNames](functions/getDefaultClassNames.md) | Returns the default class names for the UI elements. | -| [isDateAfterType](functions/isDateAfterType.md) | Checks if the given value is of type [DateAfter](type-aliases/DateAfter.md). | -| [isDateBeforeType](functions/isDateBeforeType.md) | Checks if the given value is of type [DateBefore](type-aliases/DateBefore.md). | -| [isDateInterval](functions/isDateInterval.md) | Checks if the given value is of type [DateInterval](type-aliases/DateInterval.md). | -| [isDateRange](functions/isDateRange.md) | Checks if the given value is of type [DateRange](type-aliases/DateRange.md). | -| [isDayOfWeekType](functions/isDayOfWeekType.md) | Checks if the given value is of type [DayOfWeek](type-aliases/DayOfWeek.md). | -| [rangeContainsDayOfWeek](functions/rangeContainsDayOfWeek.md) | Checks if a date range contains one or more specified days of the week. | -| [rangeContainsModifiers](functions/rangeContainsModifiers.md) | Checks if a date range contains dates that match the given modifiers. | -| [rangeIncludesDate](functions/rangeIncludesDate.md) | Checks if a given date is within a specified date range. | -| [rangeOverlaps](functions/rangeOverlaps.md) | Determines if two date ranges overlap. | - -## Hooks +- Configure the calendar with [DayPicker](react/functions/DayPicker.md) and [DayPickerProps](react/type-aliases/DayPickerProps.md). +- Customize rendered elements with [Components](react/index.md#components) and [CustomComponents](react/type-aliases/CustomComponents.md). +- Translate labels and formatted text with [Labels](react/type-aliases/Labels.md) and [Formatters](react/type-aliases/Formatters.md). +- Use a calendar package when you need its calendar-specific DayPicker, locales, or date-library helpers. -| Function | Description | -| ------ | ------ | -| [useDayPicker](functions/useDayPicker.md) | Provides access to the DayPicker context, which includes properties and methods to interact with the DayPicker component. This hook must be used within a custom component. | - -## Enumerations - -| Enumeration | Description | -| ------ | ------ | -| [Animation](enumerations/Animation.md) | Enum representing different animation states for transitioning between months. | -| [DayFlag](enumerations/DayFlag.md) | Enum representing flags for the [UI.Day](enumerations/UI.md) element. | -| [SelectionState](enumerations/SelectionState.md) | Enum representing selection states that can be applied to the [UI.Day](enumerations/UI.md) element in selection mode. | -| [UI](enumerations/UI.md) | Enum representing the UI elements composing DayPicker. These elements are mapped to [CustomComponents](type-aliases/CustomComponents.md), [ClassNames](type-aliases/ClassNames.md), and [Styles](type-aliases/Styles.md). | - -## Interfaces - -| Interface | Description | -| ------ | ------ | -| [DateLibOptions](interfaces/DateLibOptions.md) | The options for the `DateLib` class. | -| [DayPickerLocale](interfaces/DayPickerLocale.md) | Locale type used by DayPicker. | - -## Type Aliases - -| Type Alias | Description | -| ------ | ------ | -| [ButtonProps](type-aliases/ButtonProps.md) | - | -| [CaptionLabelProps](type-aliases/CaptionLabelProps.md) | - | -| [ChevronProps](type-aliases/ChevronProps.md) | - | -| [ClassNames](type-aliases/ClassNames.md) | The CSS classnames to use for the [UI](enumerations/UI.md) elements, the [SelectionState](enumerations/SelectionState.md) and the [DayFlag](enumerations/DayFlag.md). | -| [CustomComponents](type-aliases/CustomComponents.md) | The components that can be customized using the `components` prop. | -| [DateAfter](type-aliases/DateAfter.md) | Match a day falling after the specified date (exclusive). | -| [DateBefore](type-aliases/DateBefore.md) | Match a day falling before the specified date (exclusive). | -| [DateInterval](type-aliases/DateInterval.md) | An interval of dates. Unlike [DateRange](type-aliases/DateRange.md), the range ends are not included. | -| [DateRange](type-aliases/DateRange.md) | A range of dates. Unlike [DateInterval](type-aliases/DateInterval.md), the range ends are included. | -| [DayButtonProps](type-aliases/DayButtonProps.md) | - | -| [DayEventHandler](type-aliases/DayEventHandler.md) | The event handler triggered when clicking or interacting with a day. | -| [DayOfWeek](type-aliases/DayOfWeek.md) | Match days of the week (`0-6`, where `0` is Sunday). | -| [DayPickerContext](type-aliases/DayPickerContext.md) | Represents the context for the DayPicker component, providing various properties and methods to interact with the calendar. | -| [DayPickerLocaleLabels](type-aliases/DayPickerLocaleLabels.md) | Translations for DayPicker-specific labels. | -| [DayProps](type-aliases/DayProps.md) | - | -| [~~DeprecatedUI~~](type-aliases/DeprecatedUI.md) | Deprecated UI elements and flags from previous versions of DayPicker. | -| [DropdownNavProps](type-aliases/DropdownNavProps.md) | - | -| [DropdownOption](type-aliases/DropdownOption.md) | An option to use in the dropdown. Maps to the `