Date range
canonPaired inputs for a from–to date span with presets.
Used in 4 files · 3 areas · 5× — components/clen-tymu, components/segment, pages/DovolenePage
@acrm/ui <DateRangeField>.dp-field .dp-entry .dp-sep .dp-presets +1SourceStoryLegacy card dates.htmlImport
import { DateRangeField } from '@acrm/ui'
Props
DateRangeField packages/ui/src/components/DateRangeField.tsx
| Name | Type | Default | Description |
|---|---|---|---|
value * | DateRangeValue | — | — |
onChange * | (value: DateRangeValue) => void | — | — |
min | string | — | — |
max | string | — | — |
futureBias | boolean | false | 1.9. v minulosti → příští rok. Filtry do minulosti nechávají false. |
disabled | boolean | false | — |
error | boolean | false | — |
locale | string | DEFAULT_LOCALE_TAG | — |
today | Date | — | Referenční „dnešek" — pro testy a ukotvené výpisy. |
presets | CalendarPreset[] | — | Vlastní presety; výchozí = rozsahy do minulosti (reporty, filtry). |
fromLabel | string | 'Od' | — |
toLabel | string | 'Do' | — |
CSS classes
.dp-field.dp-entry.dp-sep.dp-presets.dp-preset