@ceed/ads 1.39.0 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,7 +100,7 @@ Set `error` to `true` and combine with `helperText` to communicate validation fa
|
|
|
100
100
|
|
|
101
101
|
## Disabled and Read-Only States
|
|
102
102
|
|
|
103
|
-
The `disabled` prop prevents all interaction. The `readOnly` prop displays the value but blocks changes, while `inputReadOnly` disables keyboard typing but still allows calendar selection -- useful for mobile scenarios.
|
|
103
|
+
The `disabled` prop prevents all interaction. The `readOnly` prop displays the value but blocks changes, while `inputReadOnly` disables keyboard typing but still allows calendar selection -- useful for mobile scenarios. When `inputReadOnly` is set, clicking the input opens the calendar (not just the calendar button).
|
|
104
104
|
|
|
105
105
|
```tsx
|
|
106
106
|
<DatePicker
|
|
@@ -620,7 +620,7 @@ function RegionalDateField({ locale }: { locale: string }) {
|
|
|
620
620
|
| `disableFuture` | `boolean` | `false` | Disables all future dates |
|
|
621
621
|
| `disablePast` | `boolean` | `false` | Disables all past dates |
|
|
622
622
|
| `shouldDisableDate` | `(date: string) => boolean` | - | Custom function to disable specific dates. Receives date in `format`. Return `true` to disable |
|
|
623
|
-
| `inputReadOnly` | `boolean` | `false` | Prevents keyboard typing in the input
|
|
623
|
+
| `inputReadOnly` | `boolean` | `false` | Prevents keyboard typing in the input; users select via the calendar, which opens on clicking either the input or the calendar button |
|
|
624
624
|
| `hideClearButton` | `boolean` | `false` | Hides the clear button in the calendar popup |
|
|
625
625
|
|
|
626
626
|
### format vs displayFormat
|
|
@@ -741,7 +741,7 @@ const getDuration = (value) => {
|
|
|
741
741
|
| `maxDate` | `string` | - | Maximum selectable date (in `format`) |
|
|
742
742
|
| `disableFuture` | `boolean` | `false` | Disables all future dates |
|
|
743
743
|
| `disablePast` | `boolean` | `false` | Disables all past dates |
|
|
744
|
-
| `inputReadOnly` | `boolean` | `false` | Prevents keyboard typing
|
|
744
|
+
| `inputReadOnly` | `boolean` | `false` | Prevents keyboard typing; calendar-only input that opens on clicking either the input or the calendar button |
|
|
745
745
|
| `hideClearButton` | `boolean` | `false` | Hides the clear button in the calendar popup |
|
|
746
746
|
| `numberOfMonths` | `number` | `1` | Number of calendar months to show side by side in the popup |
|
|
747
747
|
|