improvement: rtl direction, solar calendar and persian formatting added for persian users.
This commit is contained in:
@@ -51,3 +51,14 @@ Reference: `app/.../treatment/page.tsx` + `components/ui/treatment/TreatmentWork
|
||||
1. Check `components/ui/shared/` for an existing primitive.
|
||||
2. Check the feature's `ui/{feature}/` folder for an existing pattern.
|
||||
3. Add i18n keys to en, fa, and nl.
|
||||
|
||||
## Shared form & table primitives
|
||||
|
||||
| Need | Use |
|
||||
|------|-----|
|
||||
| Date filter / due date field | `AppDateInput` (`ui/shared/`) — not `<input type="date">` |
|
||||
| Filter or inline `<select>` | `FORM_SELECT_CLASS` from `components/shared/formSelectStyles.ts` |
|
||||
| Tiny select (sort dir, etc.) | `FORM_SELECT_COMPACT_CLASS` |
|
||||
| Desktop data table | `Table` (`ui/shared/Table.tsx`) — logical alignment only |
|
||||
|
||||
Styles for `.form-select` chevrons live in `styles/globals.css`. Do not duplicate chevron icons on raw selects.
|
||||
|
||||
Reference in New Issue
Block a user