π Date Picker Components
Date selection components built on a shared CalendarMonth grid.
graph TD
CAL["CalendarMonth<br/><small>Monthly grid Β· Keyboard nav<br/>Locale-aware Β· Highlights</small>"]
CAL --> SDP["SingleDatePicker<br/><small>Single date dropdown</small>"]
CAL --> DRP["DateRangePicker<br/><small>Start/end range with presets</small>"]
SDP -.->|used by| DE["DataEditor"]
SDP -.->|used by| CTM["CashTransactionModal"]
DRP -.->|used by| CT["Chart Toolbar"]
DRP -.->|used by| RF["Report Filters"]
style CAL fill:#e3f2fd,stroke:#1565c0
style SDP fill:#e3f2fd,stroke:#1565c0
style DRP fill:#e3f2fd,stroke:#1565c0
π CalendarMonth
A monthly calendar grid component β the visual building block for date pickers.
- Displays a single month with day cells
- Highlights today, selected date, and date range
- Keyboard navigation within the grid
- Locale-aware (week starts on Monday for most locales)
Used by: SingleDatePicker, DateRangePicker.
π SingleDatePicker
A single-date picker dropdown with calendar.
- Opens a
CalendarMonthin a dropdown - Manual text input with date parsing
- Month/year navigation with arrows
- Formats date according to locale
Used by: DataEditor (FX rate date), CashTransactionModal, transaction forms.
π DateRangePicker
A date range picker with start and end dates.
- Two
CalendarMonthgrids side by side (current + next month) - Visual highlight of selected range
- Preset ranges: Last 7 days, Last 30 days, Last year, All time
- Start and end date text inputs
Used by: Chart toolbar (FX detail page), report filters.