@rio-cloud/uikit-mcp 1.1.10 → 1.1.12
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.
- package/README.md +2 -1
- package/dist/doc-metadata.json +92 -92
- package/dist/docs/components/accentBar.md +1 -1
- package/dist/docs/components/activity.md +1 -1
- package/dist/docs/components/analyticsAnalysisOverlay.md +3 -1
- package/dist/docs/components/animatedNumber.md +2 -2
- package/dist/docs/components/animatedTextReveal.md +6 -6
- package/dist/docs/components/animations.md +22 -22
- package/dist/docs/components/appHeader.md +1 -1
- package/dist/docs/components/appLayout.md +31 -65
- package/dist/docs/components/appNavigationBar.md +1 -1
- package/dist/docs/components/areaCharts.md +7 -5
- package/dist/docs/components/aspectRatioPlaceholder.md +1 -1
- package/dist/docs/components/assetTree.md +160 -142
- package/dist/docs/components/autosuggests.md +1 -1
- package/dist/docs/components/avatar.md +1 -1
- package/dist/docs/components/banner.md +2 -2
- package/dist/docs/components/barCharts.md +16 -14
- package/dist/docs/components/barList.md +9 -9
- package/dist/docs/components/basicMap.md +45 -1
- package/dist/docs/components/bottomSheet.md +1 -1
- package/dist/docs/components/button.md +1 -1
- package/dist/docs/components/buttonToolbar.md +1 -1
- package/dist/docs/components/calendarStripe.md +56 -56
- package/dist/docs/components/card.md +1 -1
- package/dist/docs/components/carousel.md +1 -1
- package/dist/docs/components/chartColors.md +3 -1
- package/dist/docs/components/chartsGettingStarted.md +3 -1
- package/dist/docs/components/chat.md +1 -1
- package/dist/docs/components/checkbox.md +3 -1
- package/dist/docs/components/circularProgress.md +5 -5
- package/dist/docs/components/clearableInput.md +1 -1
- package/dist/docs/components/collapse.md +4 -2
- package/dist/docs/components/composedCharts.md +17 -15
- package/dist/docs/components/contentLoader.md +1 -1
- package/dist/docs/components/dataTabs.md +1 -1
- package/dist/docs/components/datepickers.md +662 -660
- package/dist/docs/components/dayPicker.md +55 -5
- package/dist/docs/components/dayPickerCalendar.md +488 -468
- package/dist/docs/components/dialogs.md +1 -1
- package/dist/docs/components/divider.md +1 -1
- package/dist/docs/components/dropdowns.md +3270 -3244
- package/dist/docs/components/editableContent.md +1 -1
- package/dist/docs/components/expander.md +1 -1
- package/dist/docs/components/fade.md +1 -1
- package/dist/docs/components/fadeExpander.md +1 -1
- package/dist/docs/components/fadeUp.md +2 -2
- package/dist/docs/components/feedback.md +1 -1
- package/dist/docs/components/filePickers.md +1 -1
- package/dist/docs/components/formLabel.md +1 -1
- package/dist/docs/components/groupedItemList.md +1 -1
- package/dist/docs/components/htmlTable.md +113 -115
- package/dist/docs/components/iconList.md +3 -3
- package/dist/docs/components/imagePreloader.md +1 -1
- package/dist/docs/components/labeledElement.md +1 -1
- package/dist/docs/components/licensePlate.md +1 -1
- package/dist/docs/components/lineCharts.md +6 -4
- package/dist/docs/components/listMenu.md +1 -1
- package/dist/docs/components/loadMore.md +1 -1
- package/dist/docs/components/mainNavigation.md +1 -1
- package/dist/docs/components/mapCircle.md +1 -1
- package/dist/docs/components/mapCluster.md +3 -1
- package/dist/docs/components/mapContext.md +1 -1
- package/dist/docs/components/mapDraggableMarker.md +1 -1
- package/dist/docs/components/mapGettingStarted.md +39 -1
- package/dist/docs/components/mapInfoBubble.md +1 -1
- package/dist/docs/components/mapLayerGroup.md +1 -1
- package/dist/docs/components/mapMarker.md +3 -1
- package/dist/docs/components/mapPolygon.md +1 -1
- package/dist/docs/components/mapRoute.md +1 -1
- package/dist/docs/components/mapSettings.md +36 -9
- package/dist/docs/components/mapUtils.md +65 -2
- package/dist/docs/components/mapViewportHistory.md +287 -0
- package/dist/docs/components/multiselects.md +171 -1
- package/dist/docs/components/noData.md +1 -1
- package/dist/docs/components/notifications.md +1 -1
- package/dist/docs/components/numbercontrol.md +1 -1
- package/dist/docs/components/onboarding.md +1 -1
- package/dist/docs/components/page.md +1 -1
- package/dist/docs/components/pager.md +1 -1
- package/dist/docs/components/pieCharts.md +38 -36
- package/dist/docs/components/popover.md +1 -1
- package/dist/docs/components/position.md +1 -1
- package/dist/docs/components/radialBarCharts.md +27 -25
- package/dist/docs/components/radioCardGroup.md +1 -1
- package/dist/docs/components/radiobutton.md +3 -1
- package/dist/docs/components/releaseNotes.md +1 -1
- package/dist/docs/components/resizer.md +3 -1
- package/dist/docs/components/responsiveColumnStripe.md +3 -1
- package/dist/docs/components/responsiveVideo.md +1 -1
- package/dist/docs/components/rioglyph.md +1 -1
- package/dist/docs/components/rules.md +1 -1
- package/dist/docs/components/saveableInput.md +247 -247
- package/dist/docs/components/selects.md +168 -51
- package/dist/docs/components/sidebar.md +1 -1
- package/dist/docs/components/sliders.md +1 -1
- package/dist/docs/components/smoothScrollbars.md +3 -1
- package/dist/docs/components/spinners.md +1 -1
- package/dist/docs/components/states.md +15 -1
- package/dist/docs/components/statsWidgets.md +1 -1
- package/dist/docs/components/statusBar.md +3 -1
- package/dist/docs/components/stepButton.md +1 -1
- package/dist/docs/components/steppedProgressBars.md +1 -1
- package/dist/docs/components/subNavigation.md +1 -1
- package/dist/docs/components/supportMarker.md +1 -1
- package/dist/docs/components/svgImage.md +1 -1
- package/dist/docs/components/switch.md +3 -1
- package/dist/docs/components/table.md +1998 -221
- package/dist/docs/components/tableControls.md +51 -51
- package/dist/docs/components/tagManager.md +1 -1
- package/dist/docs/components/tags.md +1 -1
- package/dist/docs/components/teaser.md +3 -1
- package/dist/docs/components/textTruncateMiddle.md +1 -1
- package/dist/docs/components/timeline.md +1 -1
- package/dist/docs/components/timepicker.md +3 -1
- package/dist/docs/components/toggleButton.md +1 -1
- package/dist/docs/components/tooltip.md +5 -1
- package/dist/docs/components/tracker.md +1 -1
- package/dist/docs/components/virtualList.md +58 -56
- package/dist/docs/foundations.md +271 -105
- package/dist/docs/start/changelog.md +44 -212
- package/dist/docs/start/goodtoknow.md +8 -2
- package/dist/docs/start/guidelines/color-combinations.md +5 -1
- package/dist/docs/start/guidelines/custom-css.md +26 -2
- package/dist/docs/start/guidelines/custom-rioglyph.md +20 -2
- package/dist/docs/start/guidelines/formatting.md +2256 -249
- package/dist/docs/start/guidelines/iframe.md +37 -1
- package/dist/docs/start/guidelines/obfuscate-data.md +26 -2
- package/dist/docs/start/guidelines/print-css.md +16 -2
- package/dist/docs/start/guidelines/spinner.md +1 -1
- package/dist/docs/start/guidelines/state-in-url.md +1138 -11
- package/dist/docs/start/guidelines/supported-browsers.md +9 -2
- package/dist/docs/start/guidelines/writing.md +228 -2
- package/dist/docs/start/howto.md +160 -10
- package/dist/docs/start/intro.md +40 -2
- package/dist/docs/start/responsiveness.md +29 -1
- package/dist/docs/templates/ai-assistant.md +1 -1
- package/dist/docs/templates/common-table.md +55 -55
- package/dist/docs/templates/detail-views.md +2 -2
- package/dist/docs/templates/expandable-details.md +1 -1
- package/dist/docs/templates/feature-cards.md +37 -37
- package/dist/docs/templates/form-summary.md +15 -15
- package/dist/docs/templates/form-toggle.md +1 -1
- package/dist/docs/templates/list-blocks.md +137 -137
- package/dist/docs/templates/loading-progress.md +1 -1
- package/dist/docs/templates/options-panel.md +1 -1
- package/dist/docs/templates/panel-variants.md +1 -1
- package/dist/docs/templates/progress-cards.md +1 -1
- package/dist/docs/templates/progress-success.md +1 -1
- package/dist/docs/templates/settings-form.md +18 -18
- package/dist/docs/templates/stats-blocks.md +10 -10
- package/dist/docs/templates/table-panel.md +1 -1
- package/dist/docs/templates/usage-cards.md +1 -1
- package/dist/docs/utilities/classNames.md +89 -1
- package/dist/docs/utilities/deviceUtils.md +1 -1
- package/dist/docs/utilities/featureToggles.md +182 -2
- package/dist/docs/utilities/fuelTypeUtils.md +1 -1
- package/dist/docs/utilities/getTrackingAttributes.md +46 -1
- package/dist/docs/utilities/routeUtils.md +210 -2
- package/dist/docs/utilities/useAfterMount.md +1 -1
- package/dist/docs/utilities/useAutoAnimate.md +1 -1
- package/dist/docs/utilities/useAverage.md +1 -1
- package/dist/docs/utilities/useClickOutside.md +1 -1
- package/dist/docs/utilities/useClipboard.md +2 -2
- package/dist/docs/utilities/useCookies.md +1 -1
- package/dist/docs/utilities/useCount.md +1 -1
- package/dist/docs/utilities/useDarkMode.md +1 -1
- package/dist/docs/utilities/useDebugInfo.md +3 -3
- package/dist/docs/utilities/useDraggableElement.md +1 -1
- package/dist/docs/utilities/useEffectOnce.md +1 -1
- package/dist/docs/utilities/useElapsedTime.md +1 -1
- package/dist/docs/utilities/useElementSize.md +1 -1
- package/dist/docs/utilities/useEsc.md +1 -1
- package/dist/docs/utilities/useEvent.md +1 -1
- package/dist/docs/utilities/useFocusTrap.md +1 -1
- package/dist/docs/utilities/useFullscreen.md +1 -1
- package/dist/docs/utilities/useHover.md +1 -1
- package/dist/docs/utilities/useIncomingPostMessages.md +1 -1
- package/dist/docs/utilities/useInterval.md +1 -1
- package/dist/docs/utilities/useIsFocusWithin.md +1 -1
- package/dist/docs/utilities/useKey.md +1 -1
- package/dist/docs/utilities/useLocalStorage.md +1 -1
- package/dist/docs/utilities/useLocationSuggestions.md +1 -1
- package/dist/docs/utilities/useMax.md +1 -1
- package/dist/docs/utilities/useMin.md +1 -1
- package/dist/docs/utilities/useMutationObserver.md +1 -1
- package/dist/docs/utilities/useOnScreen.md +1 -1
- package/dist/docs/utilities/useOnlineStatus.md +1 -1
- package/dist/docs/utilities/usePostMessage.md +1 -1
- package/dist/docs/utilities/usePostMessageSender.md +1 -1
- package/dist/docs/utilities/usePrevious.md +111 -1
- package/dist/docs/utilities/useResizeObserver.md +1 -1
- package/dist/docs/utilities/useRioCookieConsent.md +1 -1
- package/dist/docs/utilities/useScrollPosition.md +1 -1
- package/dist/docs/utilities/useSearch.md +1 -1
- package/dist/docs/utilities/useSearchHighlight.md +1 -1
- package/dist/docs/utilities/useSorting.md +1 -1
- package/dist/docs/utilities/useStateWithValidation.md +1 -1
- package/dist/docs/utilities/useSum.md +1 -1
- package/dist/docs/utilities/useTableExport.md +61 -61
- package/dist/docs/utilities/useTableSelection.md +72 -72
- package/dist/docs/utilities/useTimeout.md +1 -1
- package/dist/docs/utilities/useToggle.md +1 -1
- package/dist/docs/utilities/useUrlState.md +1 -1
- package/dist/docs/utilities/useWindowResize.md +1 -1
- package/dist/index.mjs +174 -70
- package/dist/search-synonyms.json +214 -76
- package/dist/version.json +2 -2
- package/package.json +8 -6
- package/dist/docs/components/mapRouteGenerator.md +0 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Pickers
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/dayPicker
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:01.526Z
|
|
7
7
|
|
|
8
8
|
DayPicker is the composable input and dropdown wrapper that should replace the legacy DatePicker. It keeps the UIKIT API small while still allowing presets, footer actions, and additional controls to be injected from the outside.
|
|
9
9
|
|
|
@@ -13,6 +13,8 @@ Use this component for form fields, filters, and composed dropdown workflows. Th
|
|
|
13
13
|
|
|
14
14
|
## Single day picker
|
|
15
15
|
|
|
16
|
+
The default entry point wraps an input and dropdown around the calendar for the common single-date case.
|
|
17
|
+
|
|
16
18
|
### Example: Example 1
|
|
17
19
|
|
|
18
20
|
Single day picker
|
|
@@ -190,6 +192,8 @@ export default DayPickerInputExample;
|
|
|
190
192
|
|
|
191
193
|
## Single day with dateFormat
|
|
192
194
|
|
|
195
|
+
Use dateFormat when you want a migration-friendly custom input format similar to the legacyDatePicker.
|
|
196
|
+
|
|
193
197
|
### Example: Example 2
|
|
194
198
|
|
|
195
199
|
Single day with custom format
|
|
@@ -367,6 +371,8 @@ export default DayPickerDateFormatExample;
|
|
|
367
371
|
|
|
368
372
|
## Localization
|
|
369
373
|
|
|
374
|
+
Switch the locale to see how the default input formatting changes between localized date conventions.
|
|
375
|
+
|
|
370
376
|
### Example: Example 3
|
|
371
377
|
|
|
372
378
|
Localized input formatting en-GB bg-BG
|
|
@@ -742,6 +748,8 @@ export default DayPickerLocalizationExample;
|
|
|
742
748
|
|
|
743
749
|
## Custom triggers
|
|
744
750
|
|
|
751
|
+
The dropdown does not depend on an editable input. You can swap in custom triggers like icon buttons or compact labels for places with limited space.
|
|
752
|
+
|
|
745
753
|
### Example: Example 4
|
|
746
754
|
|
|
747
755
|
Icon button trigger
|
|
@@ -970,6 +978,8 @@ export default DayPickerCustomTriggerExample;
|
|
|
970
978
|
|
|
971
979
|
## Range picker
|
|
972
980
|
|
|
981
|
+
Range mode keeps the same input shell but changes the calendar selection behavior and the rendered value. It can also show two visible months for faster range selection.
|
|
982
|
+
|
|
973
983
|
### Example: Example 5
|
|
974
984
|
|
|
975
985
|
Range picker
|
|
@@ -1162,6 +1172,8 @@ export default DayPickerRangeInputExample;
|
|
|
1162
1172
|
|
|
1163
1173
|
## Week selection
|
|
1164
1174
|
|
|
1175
|
+
Set selectionVariant='week' to select the whole week of the clicked day while keeping the same range value shape.
|
|
1176
|
+
|
|
1165
1177
|
### Example: Weeks start on Monday. You can click a day or the calendar week number.
|
|
1166
1178
|
|
|
1167
1179
|
Week selection
|
|
@@ -1360,6 +1372,8 @@ export default DayPickerWeekSelectionExample;
|
|
|
1360
1372
|
|
|
1361
1373
|
## Month selection
|
|
1362
1374
|
|
|
1375
|
+
Set selectionVariant='month' to select the whole month of the clicked day as one range.
|
|
1376
|
+
|
|
1363
1377
|
### Example: Example 7
|
|
1364
1378
|
|
|
1365
1379
|
Month selection
|
|
@@ -1567,6 +1581,8 @@ export default DayPickerMonthSelectionExample;
|
|
|
1567
1581
|
|
|
1568
1582
|
## Rolling range
|
|
1569
1583
|
|
|
1584
|
+
Set selectionVariant='rolling' with rollingDays to create a fixed-length range starting from the clicked day.
|
|
1585
|
+
|
|
1570
1586
|
### Example: Example 8
|
|
1571
1587
|
|
|
1572
1588
|
Rolling 7-day window
|
|
@@ -1759,6 +1775,8 @@ export default DayPickerRollingSelectionExample;
|
|
|
1759
1775
|
|
|
1760
1776
|
## Footer actions
|
|
1761
1777
|
|
|
1778
|
+
Footer actions can also select values directly, for example a Today button for single-date workflows.
|
|
1779
|
+
|
|
1762
1780
|
### Example: Example 9
|
|
1763
1781
|
|
|
1764
1782
|
Single date with Today action
|
|
@@ -1954,6 +1972,8 @@ export default DayPickerTodayFooterExample;
|
|
|
1954
1972
|
|
|
1955
1973
|
## Range picker with presets and footer actions
|
|
1956
1974
|
|
|
1975
|
+
Sidebar presets and footer controls are passed in from the outside. The picker keeps draft state internally, but the surrounding UI remains fully composable.
|
|
1976
|
+
|
|
1957
1977
|
### Example: Example 10
|
|
1958
1978
|
|
|
1959
1979
|
Range with presets and footer actions
|
|
@@ -2206,6 +2226,8 @@ export default DayPickerControlledRangeInputExample;
|
|
|
2206
2226
|
|
|
2207
2227
|
## Presets with external select
|
|
2208
2228
|
|
|
2229
|
+
The same preset ranges can be offered both inside the dropdown and through a separate Select outside the picker.
|
|
2230
|
+
|
|
2209
2231
|
### Example: Example 11
|
|
2210
2232
|
|
|
2211
2233
|
Range picker with synced presets Last 14 days Today
|
|
@@ -2415,7 +2437,7 @@ export default DayPickerPresetSelectExample;
|
|
|
2415
2437
|
</span>
|
|
2416
2438
|
<div class="form-control-feedback-wrapper flex-1-1">
|
|
2417
2439
|
<div class="ClearableInput input-group">
|
|
2418
|
-
<input placeholder="Please select a range" id="day-picker-preset-range" class="form-control bg-white cursor-pointer withClearButton" autocomplete="off" type="text" readonly="" tabindex="0" value="
|
|
2440
|
+
<input placeholder="Please select a range" id="day-picker-preset-range" class="form-control bg-white cursor-pointer withClearButton" autocomplete="off" type="text" readonly="" tabindex="0" value="23/04/2026 - 06/05/2026">
|
|
2419
2441
|
<span class="clearButton">
|
|
2420
2442
|
<span class="clearButtonIcon rioglyph rioglyph-remove-sign">
|
|
2421
2443
|
</span>
|
|
@@ -2539,6 +2561,8 @@ export default DayPickerPresetSelectExample;
|
|
|
2539
2561
|
|
|
2540
2562
|
## Date and time footer
|
|
2541
2563
|
|
|
2564
|
+
The footer slot can host a TimePicker while renderValue shows the combined date and time in the trigger. The examples use the existing 24-hour TimePicker; AM/PM is currently not part of the default UIKIT time input.
|
|
2565
|
+
|
|
2542
2566
|
### Example: Example 12
|
|
2543
2567
|
|
|
2544
2568
|
Date and time
|
|
@@ -2752,11 +2776,13 @@ export default DayPickerTimeFooterExample;
|
|
|
2752
2776
|
|
|
2753
2777
|
## Range with start and end times
|
|
2754
2778
|
|
|
2779
|
+
For range selection, the footer can render two independent TimePicker controls for start and end times while the trigger displays the final combined value. The examples use the existing 24-hour TimePicker; AM/PM is currently not part of the default UIKIT time input.
|
|
2780
|
+
|
|
2755
2781
|
### Example: Example 13
|
|
2756
2782
|
|
|
2757
2783
|
Range with start and end times
|
|
2758
2784
|
|
|
2759
|
-
You picked: 03.
|
|
2785
|
+
You picked: 03.05.2026 09:00 - 06.05.2026 17:30
|
|
2760
2786
|
|
|
2761
2787
|
#### React (tsx)
|
|
2762
2788
|
|
|
@@ -2889,7 +2915,7 @@ export default DayPickerRangeTimeFooterExample;
|
|
|
2889
2915
|
</span>
|
|
2890
2916
|
<div class="form-control-feedback-wrapper flex-1-1">
|
|
2891
2917
|
<div class="ClearableInput input-group">
|
|
2892
|
-
<input placeholder="Please select a range" id="day-picker-range-time-footer" class="form-control bg-white cursor-pointer withClearButton" autocomplete="off" type="text" readonly="" tabindex="0" value="03.
|
|
2918
|
+
<input placeholder="Please select a range" id="day-picker-range-time-footer" class="form-control bg-white cursor-pointer withClearButton" autocomplete="off" type="text" readonly="" tabindex="0" value="03.05.2026 09:00 - 06.05.2026 17:30">
|
|
2893
2919
|
<span class="clearButton">
|
|
2894
2920
|
<span class="clearButtonIcon rioglyph rioglyph-remove-sign">
|
|
2895
2921
|
</span>
|
|
@@ -2900,7 +2926,7 @@ export default DayPickerRangeTimeFooterExample;
|
|
|
2900
2926
|
</div>
|
|
2901
2927
|
</div>
|
|
2902
2928
|
<div class="padding-top-5">
|
|
2903
|
-
<b>You picked:</b> 03.
|
|
2929
|
+
<b>You picked:</b> 03.05.2026 09:00 - 06.05.2026 17:30
|
|
2904
2930
|
</div>
|
|
2905
2931
|
</div>
|
|
2906
2932
|
```
|
|
@@ -3015,6 +3041,8 @@ export default DayPickerRangeTimeFooterExample;
|
|
|
3015
3041
|
|
|
3016
3042
|
## Available times in a sidebar
|
|
3017
3043
|
|
|
3044
|
+
Instead of a free-form time input, the dropdown can also render a curated list of available time slots in a sidebar.
|
|
3045
|
+
|
|
3018
3046
|
### Example: Example 14
|
|
3019
3047
|
|
|
3020
3048
|
Date with available times
|
|
@@ -3239,6 +3267,8 @@ export default DayPickerAvailableTimesSidebarExample;
|
|
|
3239
3267
|
|
|
3240
3268
|
## Multiple dates
|
|
3241
3269
|
|
|
3270
|
+
The same dropdown shell also supports multiple independent dates and renders the current selection as a compact list in the input.
|
|
3271
|
+
|
|
3242
3272
|
### Example: Example 15
|
|
3243
3273
|
|
|
3244
3274
|
Multiple dates
|
|
@@ -3420,6 +3450,8 @@ export default DayPickerMultipleInputExample;
|
|
|
3420
3450
|
|
|
3421
3451
|
## Calendar weeks
|
|
3422
3452
|
|
|
3453
|
+
If you need ISO calendar weeks in the dropdown, enable showWeekNumber. The input still keeps the regular date display.
|
|
3454
|
+
|
|
3423
3455
|
### Example: Example 16
|
|
3424
3456
|
|
|
3425
3457
|
Calendar weeks in dropdown
|
|
@@ -3598,6 +3630,8 @@ export default DayPickerCalendarWeekDropdownExample;
|
|
|
3598
3630
|
|
|
3599
3631
|
## Restricted month range
|
|
3600
3632
|
|
|
3633
|
+
Use startMonth and endMonth to limit the dropdown to a fixed month interval. This example only allows choosing from two visible months.
|
|
3634
|
+
|
|
3601
3635
|
### Example: Example 17
|
|
3602
3636
|
|
|
3603
3637
|
Limited to two months
|
|
@@ -3782,6 +3816,8 @@ export default DayPickerLimitedMonthRangeExample;
|
|
|
3782
3816
|
|
|
3783
3817
|
## Disabled days
|
|
3784
3818
|
|
|
3819
|
+
Use disabledDays to block individual dates from being selected while keeping the normal input behavior.
|
|
3820
|
+
|
|
3785
3821
|
### Example: Disabled: 10/04/2026, 14/04/2026, 22/04/2026
|
|
3786
3822
|
|
|
3787
3823
|
Disabled days
|
|
@@ -3968,6 +4004,8 @@ export default DayPickerDisabledDaysDropdownExample;
|
|
|
3968
4004
|
|
|
3969
4005
|
## Hidden days
|
|
3970
4006
|
|
|
4007
|
+
Use hiddenDays to remove matching dates from the dropdown calendar grid entirely.
|
|
4008
|
+
|
|
3971
4009
|
### Example: Hidden: 10/05/2026, 11/05/2026, 20/05/2026
|
|
3972
4010
|
|
|
3973
4011
|
Hidden days in a month
|
|
@@ -4155,6 +4193,8 @@ export default DayPickerHiddenDaysDropdownExample;
|
|
|
4155
4193
|
|
|
4156
4194
|
## Filter icon for date ranges
|
|
4157
4195
|
|
|
4196
|
+
Use iconName on the default trigger to turn a range picker into a filter control. This example switches from rioglyph-filter to rioglyph-filter-active once a complete range is selected.
|
|
4197
|
+
|
|
4158
4198
|
### Example: Example 20
|
|
4159
4199
|
|
|
4160
4200
|
Date range filter
|
|
@@ -4337,6 +4377,8 @@ export default DayPickerRangeFilterIconExample;
|
|
|
4337
4377
|
|
|
4338
4378
|
## ISO date format
|
|
4339
4379
|
|
|
4380
|
+
A common integration pattern is to keep the value as a date-only ISO string like 2026-05-10 and only map it to Date for the picker UI.
|
|
4381
|
+
|
|
4340
4382
|
### Example: The demo keeps the value as a date-only ISO string and only maps it to Date for the picker.
|
|
4341
4383
|
|
|
4342
4384
|
ISO date format
|
|
@@ -4552,6 +4594,8 @@ export default DayPickerIsoFormatExample;
|
|
|
4552
4594
|
|
|
4553
4595
|
## Timezones and UTC payloads
|
|
4554
4596
|
|
|
4597
|
+
Additional form elements like timezone selectors can be rendered into the dropdown from the outside. This example combines a date, time, and timezone and shows the resulting full UTC datetime string.
|
|
4598
|
+
|
|
4555
4599
|
### Example: Example 22
|
|
4556
4600
|
|
|
4557
4601
|
Date, time and timezone
|
|
@@ -4869,6 +4913,8 @@ export default DayPickerTimeZoneExample;
|
|
|
4869
4913
|
|
|
4870
4914
|
## Validation and error states
|
|
4871
4915
|
|
|
4916
|
+
DayPicker includes the common feedback markup directly via errorMessage and warningMessage. For custom validation flows, especially manual input parsing, use onInputChange to drive the messages from outside.
|
|
4917
|
+
|
|
4872
4918
|
### Example: Example 23
|
|
4873
4919
|
|
|
4874
4920
|
Static error styling with built-in feedback props This is an error message
|
|
@@ -5147,6 +5193,8 @@ export default DayPickerValidationExample;
|
|
|
5147
5193
|
|
|
5148
5194
|
## React Hook Form
|
|
5149
5195
|
|
|
5196
|
+
The component works well with Controller by passing through name and onBlur while using the built-in feedback props for form errors.
|
|
5197
|
+
|
|
5150
5198
|
### Example: Example 24
|
|
5151
5199
|
|
|
5152
5200
|
Delivery date
|
|
@@ -5386,6 +5434,8 @@ export default DayPickerReactHookFormExample;
|
|
|
5386
5434
|
|
|
5387
5435
|
## Custom renderValue and parseInput
|
|
5388
5436
|
|
|
5437
|
+
For specialized cases, you can override both how the value is shown in the input and how manual input gets parsed, without exposing the full third-party picker API.
|
|
5438
|
+
|
|
5389
5439
|
### Example: Example 25
|
|
5390
5440
|
|
|
5391
5441
|
Custom parsing and rendering
|