Skip to content

docs(DateInput): deprecate nativePicker shorthands - #6239

Merged
cixzhang merged 1 commit into
feat/date-picker-adaptationsfrom
deprecate-date-native-picker
Sep 11, 2026
Merged

cixzhang merged 1 commit into
feat/date-picker-adaptationsfrom
deprecate-date-native-picker

Conversation

@cixzhang

@cixzhang cixzhang commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Why

adaptations now expresses the full picker-surface policy for DateInput and DateTimeInput, including SSR and ordered width/pointer rules. Keeping nativePicker as a recommended shorthand would leave two public ways to own the same decision.

What

  • mark both nativePicker props and their exported value types as deprecated while preserving every existing runtime behavior
  • make consumer docs and stories adaptations-first
  • document the initial/idle mappings for touch, always, and never, the intentional active-interaction latching difference, and legacy mixed-surface cases that cannot migrate exactly
  • record the deprecation decision in the draft AST-031 proposal and add migration-parity coverage
  • add a patch changeset attributed to this PR

No codemod is included because no prop is renamed or removed; the release policy requires one when a deprecated prop is removed.

This PR is stacked on #6133 and targets its feature branch. It updates that proposal stack only; #6133 still requires AST-031 approval before it can merge to main.

Risk

Low. Runtime selection code is unchanged. Existing nativePicker calls remain supported; consumers receive editor and docs guidance only.

Testing

  • focused DateInput and DateTimeInput adaptation suites
  • component-doc and adaptation-story suites
  • Core typecheck and build
  • repository checks, including knowledge and changeset validation

@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Sep 11, 2026 1:59am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 11, 2026
@astracat-bot

astracat-bot Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Sep 11, 2026, 1:59 AM UTC

@cixzhang
cixzhang force-pushed the deprecate-date-native-picker branch from dda28d3 to 9da925e Compare September 11, 2026 01:54
@cixzhang
cixzhang merged commit c96315e into feat/date-picker-adaptations Sep 11, 2026
3 checks passed
@cixzhang
cixzhang deleted the deprecate-date-native-picker branch September 11, 2026 02:00

This branch was successfully deployed

1 active deployment
Preview — 9da925ef Deployed Sep 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant