-
Notifications
You must be signed in to change notification settings - Fork 346
feat: add new DatePicker component #3139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍(Review updated until commit c0ce873)Here are some key observations to aid the review process:
|
|
📦 Bundle Size Analysis ✅ No bundle size changes detected. Unchanged Components
📊 Summary:
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
User description
https://monday.monday.com/boards/3532714909/pulses/4640584267
PR Type
Enhancement, Documentation
Description
Add new standalone
DatePickercomponent package with single and range modesDeprecate old
DatePickercomponent in core packageConfigure Storybook to support new date-picker package
Add comprehensive tests and documentation for new component
Diagram Walkthrough
File Walkthrough
11 files
Main DatePicker component with single and range modesTypeScript type definitions for DatePicker propsDate range selection logic and modifiersHeader component with month/year navigation dropdownsComprehensive styling for calendar and date rangesStyling for header navigation and dropdownsDay content renderer for range mode with hoverDay content renderer for single date modeReact context for managing hover state in range modeCustom hooks for month and year dropdown optionsPackage exports for DatePicker component and types2 files
Component tests for date selection and navigationUnit tests for date range utility functions4 files
Storybook stories for component variants and examplesDocumentation with usage guidelines and examplesMark old DatePicker story as deprecatedAdd deprecation warning with link to new component10 files
Package configuration with dependencies and scriptsTypeScript configuration for date-picker packageVitest test configuration setupTest environment setup with mocksESLint configuration for code qualityRollup build configurationTypeScript declarations for asset importsUpdate Storybook to include all packages and add aliasesFix TypeScript config extends pathFix TypeScript config extends path