@rio-cloud/uikit-mcp 1.1.10 → 1.1.11
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 +90 -90
- 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 +1 -1
- 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 +27 -77
- 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 +418 -364
- 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 +4 -2
- package/dist/docs/components/barList.md +10 -10
- 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 +39 -35
- 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 +2 -2
- package/dist/docs/components/checkbox.md +3 -1
- package/dist/docs/components/circularProgress.md +8 -8
- 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 +30 -28
- package/dist/docs/components/dayPicker.md +52 -2
- package/dist/docs/components/dayPickerCalendar.md +44 -24
- package/dist/docs/components/dialogs.md +1 -1
- package/dist/docs/components/divider.md +1 -1
- package/dist/docs/components/dropdowns.md +3253 -3241
- 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 +69 -69
- package/dist/docs/components/iconList.md +4 -4
- 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 +5 -3
- 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 +6 -1
- package/dist/docs/components/mapUtils.md +1 -1
- package/dist/docs/components/mapViewportHistory.md +287 -0
- package/dist/docs/components/multiselects.md +7 -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 +17 -17
- 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 +5 -5
- 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 +57 -57
- package/dist/docs/foundations.md +276 -110
- package/dist/docs/start/changelog.md +21 -1
- 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 +9 -9
- 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 +135 -135
- 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 +12 -12
- 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 +173 -69
- package/dist/search-synonyms.json +214 -76
- package/dist/version.json +2 -2
- package/package.json +4 -5
- 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-04-
|
|
6
|
+
*Captured:* 2026-04-27T14:57:59.725Z
|
|
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="14/04/2026 - 27/04/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,6 +2776,8 @@ 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
|
|
@@ -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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Pickers
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/dayPickerCalendar
|
|
6
|
-
*Captured:* 2026-04-
|
|
6
|
+
*Captured:* 2026-04-27T14:57:50.733Z
|
|
7
7
|
|
|
8
8
|
DayPickerCalendar is the lower-level calendar wrapper without input or dropdown. Use it when you only need calendar selection or when you want to build your own shell around it.
|
|
9
9
|
|
|
@@ -13,6 +13,8 @@ It keeps the public API small while still supporting custom selection variants,
|
|
|
13
13
|
|
|
14
14
|
## Single selection
|
|
15
15
|
|
|
16
|
+
The calendar wrapper exposes the supported selection modes without coupling consumers to the rawreact-day-picker component API.
|
|
17
|
+
|
|
16
18
|
### Example: Single date
|
|
17
19
|
|
|
18
20
|
Single date
|
|
@@ -292,8 +294,8 @@ export default DayPickerCalendarSingleSelectionExample;
|
|
|
292
294
|
</td>
|
|
293
295
|
</tr>
|
|
294
296
|
<tr class="rdp-week">
|
|
295
|
-
<td class="rdp-day
|
|
296
|
-
<button class="rdp-day_button" type="button" tabindex="
|
|
297
|
+
<td class="rdp-day" role="gridcell" data-day="2026-04-20">
|
|
298
|
+
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Monday, 20 April 2026">20</button>
|
|
297
299
|
</td>
|
|
298
300
|
<td class="rdp-day" role="gridcell" data-day="2026-04-21">
|
|
299
301
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 21 April 2026">21</button>
|
|
@@ -315,8 +317,8 @@ export default DayPickerCalendarSingleSelectionExample;
|
|
|
315
317
|
</td>
|
|
316
318
|
</tr>
|
|
317
319
|
<tr class="rdp-week">
|
|
318
|
-
<td class="rdp-day" role="gridcell" data-day="2026-04-27">
|
|
319
|
-
<button class="rdp-day_button" type="button" tabindex="
|
|
320
|
+
<td class="rdp-day rdp-today" role="gridcell" data-day="2026-04-27" data-today="true">
|
|
321
|
+
<button class="rdp-day_button" type="button" tabindex="0" aria-label="Today, Monday, 27 April 2026">27</button>
|
|
320
322
|
</td>
|
|
321
323
|
<td class="rdp-day" role="gridcell" data-day="2026-04-28">
|
|
322
324
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 28 April 2026">28</button>
|
|
@@ -433,6 +435,8 @@ export default DayPickerCalendarSingleSelectionExample;
|
|
|
433
435
|
|
|
434
436
|
## Calendar sizes
|
|
435
437
|
|
|
438
|
+
Use size to adjust the density of the day grid. The size variant changes the spacing and dimensions of the day cells themselves.
|
|
439
|
+
|
|
436
440
|
### Example: Small
|
|
437
441
|
|
|
438
442
|
Small
|
|
@@ -779,8 +783,8 @@ export default DayPickerCalendarSizesExample;
|
|
|
779
783
|
</td>
|
|
780
784
|
</tr>
|
|
781
785
|
<tr class="rdp-week">
|
|
782
|
-
<td class="rdp-day
|
|
783
|
-
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="
|
|
786
|
+
<td class="rdp-day" role="gridcell" data-day="2026-04-20">
|
|
787
|
+
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Monday, 20 April 2026">20</button>
|
|
784
788
|
</td>
|
|
785
789
|
<td class="rdp-day" role="gridcell" data-day="2026-04-21">
|
|
786
790
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 21 April 2026">21</button>
|
|
@@ -802,8 +806,8 @@ export default DayPickerCalendarSizesExample;
|
|
|
802
806
|
</td>
|
|
803
807
|
</tr>
|
|
804
808
|
<tr class="rdp-week">
|
|
805
|
-
<td class="rdp-day" role="gridcell" data-day="2026-04-27">
|
|
806
|
-
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Monday, 27 April 2026">27</button>
|
|
809
|
+
<td class="rdp-day rdp-today" role="gridcell" data-day="2026-04-27" data-today="true">
|
|
810
|
+
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Today, Monday, 27 April 2026">27</button>
|
|
807
811
|
</td>
|
|
808
812
|
<td class="rdp-day" role="gridcell" data-day="2026-04-28">
|
|
809
813
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 28 April 2026">28</button>
|
|
@@ -1089,8 +1093,8 @@ export default DayPickerCalendarSizesExample;
|
|
|
1089
1093
|
</td>
|
|
1090
1094
|
</tr>
|
|
1091
1095
|
<tr class="rdp-week">
|
|
1092
|
-
<td class="rdp-day
|
|
1093
|
-
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="
|
|
1096
|
+
<td class="rdp-day" role="gridcell" data-day="2026-04-20">
|
|
1097
|
+
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Monday, 20 April 2026">20</button>
|
|
1094
1098
|
</td>
|
|
1095
1099
|
<td class="rdp-day" role="gridcell" data-day="2026-04-21">
|
|
1096
1100
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 21 April 2026">21</button>
|
|
@@ -1112,8 +1116,8 @@ export default DayPickerCalendarSizesExample;
|
|
|
1112
1116
|
</td>
|
|
1113
1117
|
</tr>
|
|
1114
1118
|
<tr class="rdp-week">
|
|
1115
|
-
<td class="rdp-day" role="gridcell" data-day="2026-04-27">
|
|
1116
|
-
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Monday, 27 April 2026">27</button>
|
|
1119
|
+
<td class="rdp-day rdp-today" role="gridcell" data-day="2026-04-27" data-today="true">
|
|
1120
|
+
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Today, Monday, 27 April 2026">27</button>
|
|
1117
1121
|
</td>
|
|
1118
1122
|
<td class="rdp-day" role="gridcell" data-day="2026-04-28">
|
|
1119
1123
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 28 April 2026">28</button>
|
|
@@ -1399,8 +1403,8 @@ export default DayPickerCalendarSizesExample;
|
|
|
1399
1403
|
</td>
|
|
1400
1404
|
</tr>
|
|
1401
1405
|
<tr class="rdp-week">
|
|
1402
|
-
<td class="rdp-day
|
|
1403
|
-
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="
|
|
1406
|
+
<td class="rdp-day" role="gridcell" data-day="2026-04-20">
|
|
1407
|
+
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Monday, 20 April 2026">20</button>
|
|
1404
1408
|
</td>
|
|
1405
1409
|
<td class="rdp-day" role="gridcell" data-day="2026-04-21">
|
|
1406
1410
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 21 April 2026">21</button>
|
|
@@ -1422,8 +1426,8 @@ export default DayPickerCalendarSizesExample;
|
|
|
1422
1426
|
</td>
|
|
1423
1427
|
</tr>
|
|
1424
1428
|
<tr class="rdp-week">
|
|
1425
|
-
<td class="rdp-day" role="gridcell" data-day="2026-04-27">
|
|
1426
|
-
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Monday, 27 April 2026">27</button>
|
|
1429
|
+
<td class="rdp-day rdp-today" role="gridcell" data-day="2026-04-27" data-today="true">
|
|
1430
|
+
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Today, Monday, 27 April 2026">27</button>
|
|
1427
1431
|
</td>
|
|
1428
1432
|
<td class="rdp-day" role="gridcell" data-day="2026-04-28">
|
|
1429
1433
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 28 April 2026">28</button>
|
|
@@ -1538,6 +1542,8 @@ export default DayPickerCalendarSizesExample;
|
|
|
1538
1542
|
|
|
1539
1543
|
## Range selection
|
|
1540
1544
|
|
|
1545
|
+
Range mode keeps a two-step selection flow, can show two months at once, and can optionally be constrained to a specific month interval.
|
|
1546
|
+
|
|
1541
1547
|
### Example: Date ranges
|
|
1542
1548
|
|
|
1543
1549
|
Date ranges
|
|
@@ -2072,6 +2078,8 @@ export default DayPickerRangeSelectionExample;
|
|
|
2072
2078
|
|
|
2073
2079
|
## Calendar in a dialog
|
|
2074
2080
|
|
|
2081
|
+
The calendar wrapper also works well inside larger dialog layouts, where the selection is combined with additional form controls and only committed on apply.
|
|
2082
|
+
|
|
2075
2083
|
### Example: Example 4
|
|
2076
2084
|
|
|
2077
2085
|
Open event calendar dialog Scheduled delivery slot: 15.04.2026 09:00 - 21.04.2026 09:00
|
|
@@ -2513,6 +2521,8 @@ export default DayPickerCalendarDialogExample;
|
|
|
2513
2521
|
|
|
2514
2522
|
## Multiple selection
|
|
2515
2523
|
|
|
2524
|
+
Multiple mode is useful for scenarios like booking, planning, or marking several independent dates.
|
|
2525
|
+
|
|
2516
2526
|
### Example: Multiple dates
|
|
2517
2527
|
|
|
2518
2528
|
Multiple dates
|
|
@@ -2525,7 +2535,7 @@ January February March April May June July August September October November Dec
|
|
|
2525
2535
|
27 28 29 30 1 2 3
|
|
2526
2536
|
4 5 6 7 8 9 10
|
|
2527
2537
|
|
|
2528
|
-
You picked:
|
|
2538
|
+
You picked: 27/04/2026
|
|
2529
2539
|
|
|
2530
2540
|
#### React (tsx)
|
|
2531
2541
|
|
|
@@ -2796,8 +2806,8 @@ export default DayPickerMultipleSelectionExample;
|
|
|
2796
2806
|
</td>
|
|
2797
2807
|
</tr>
|
|
2798
2808
|
<tr class="rdp-week">
|
|
2799
|
-
<td class="rdp-day
|
|
2800
|
-
<button class="rdp-day_button" type="button" tabindex="
|
|
2809
|
+
<td class="rdp-day" role="gridcell" data-day="2026-04-20">
|
|
2810
|
+
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Monday, 20 April 2026">20</button>
|
|
2801
2811
|
</td>
|
|
2802
2812
|
<td class="rdp-day" role="gridcell" data-day="2026-04-21">
|
|
2803
2813
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 21 April 2026">21</button>
|
|
@@ -2819,8 +2829,8 @@ export default DayPickerMultipleSelectionExample;
|
|
|
2819
2829
|
</td>
|
|
2820
2830
|
</tr>
|
|
2821
2831
|
<tr class="rdp-week">
|
|
2822
|
-
<td class="rdp-day" role="gridcell" data-day="2026-04-27">
|
|
2823
|
-
<button class="rdp-day_button" type="button" tabindex="
|
|
2832
|
+
<td class="rdp-day rdp-today rdp-selected" role="gridcell" aria-selected="true" data-day="2026-04-27" data-selected="true" data-today="true">
|
|
2833
|
+
<button class="rdp-day_button" type="button" tabindex="0" aria-label="Today, Monday, 27 April 2026, selected">27</button>
|
|
2824
2834
|
</td>
|
|
2825
2835
|
<td class="rdp-day" role="gridcell" data-day="2026-04-28">
|
|
2826
2836
|
<button class="rdp-day_button" type="button" tabindex="-1" aria-label="Tuesday, 28 April 2026">28</button>
|
|
@@ -2874,7 +2884,7 @@ export default DayPickerMultipleSelectionExample;
|
|
|
2874
2884
|
</div>
|
|
2875
2885
|
</div>
|
|
2876
2886
|
<div class="padding-top-15">
|
|
2877
|
-
<b>You picked:</b>
|
|
2887
|
+
<b>You picked:</b> 27/04/2026
|
|
2878
2888
|
</div>
|
|
2879
2889
|
</div>
|
|
2880
2890
|
```
|
|
@@ -2941,6 +2951,8 @@ export default DayPickerMultipleSelectionExample;
|
|
|
2941
2951
|
|
|
2942
2952
|
## Modifiers and custom marked days
|
|
2943
2953
|
|
|
2954
|
+
Modifiers let you attach domain-specific meaning like booked or available dates and style them separately.
|
|
2955
|
+
|
|
2944
2956
|
### Example: Single date with modifiers
|
|
2945
2957
|
|
|
2946
2958
|
Single date with modifiers
|
|
@@ -3390,6 +3402,8 @@ export default DayPickerCalendarModifiersExample;
|
|
|
3390
3402
|
|
|
3391
3403
|
## Reserved days
|
|
3392
3404
|
|
|
3405
|
+
Reserved days can be modeled with disabledDays plus custom modifiers and CSS classes from the outside.
|
|
3406
|
+
|
|
3393
3407
|
### Example: Reserved days
|
|
3394
3408
|
|
|
3395
3409
|
Reserved days
|
|
@@ -3812,6 +3826,8 @@ export default DayPickerCalendarReservedDaysExample;
|
|
|
3812
3826
|
|
|
3813
3827
|
## Hidden days
|
|
3814
3828
|
|
|
3829
|
+
Hidden days are not rendered at all, which is useful for compact calendars that should only expose certain weekdays.
|
|
3830
|
+
|
|
3815
3831
|
### Example: Hidden days in a month
|
|
3816
3832
|
|
|
3817
3833
|
Hidden days in a month
|
|
@@ -4034,7 +4050,7 @@ export default DayPickerCalendarHiddenDaysExample;
|
|
|
4034
4050
|
</thead>
|
|
4035
4051
|
<tbody data-animated-weeks="true" class="rdp-weeks">
|
|
4036
4052
|
<tr class="rdp-week">
|
|
4037
|
-
<td class="rdp-day rdp-hidden rdp-outside" role="gridcell" data-day="2026-04-27" data-month="2026-04" data-hidden="true" data-outside="true">
|
|
4053
|
+
<td class="rdp-day rdp-hidden rdp-outside rdp-today" role="gridcell" data-day="2026-04-27" data-month="2026-04" data-hidden="true" data-outside="true" data-today="true">
|
|
4038
4054
|
</td>
|
|
4039
4055
|
<td class="rdp-day rdp-hidden rdp-outside" role="gridcell" data-day="2026-04-28" data-month="2026-04" data-hidden="true" data-outside="true">
|
|
4040
4056
|
</td>
|
|
@@ -4231,6 +4247,8 @@ export default DayPickerCalendarHiddenDaysExample;
|
|
|
4231
4247
|
|
|
4232
4248
|
## Marker dots
|
|
4233
4249
|
|
|
4250
|
+
Marker dots can be rendered with custom day content to visualize additional events or statuses per day.
|
|
4251
|
+
|
|
4234
4252
|
### Example: Marker dots
|
|
4235
4253
|
|
|
4236
4254
|
Marker dots
|
|
@@ -4814,6 +4832,8 @@ export default DayPickerCalendarMarkersExample;
|
|
|
4814
4832
|
|
|
4815
4833
|
## Custom day icons
|
|
4816
4834
|
|
|
4835
|
+
Use renderDayContent to render optional React nodes inside specific day cells, for example custom icons or tooltip anchors.
|
|
4836
|
+
|
|
4817
4837
|
### Example: Custom day content
|
|
4818
4838
|
|
|
4819
4839
|
Custom day content
|