Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export function RelativeRangeDatePicker(props: RelativeRangeDatePickerProps) {
popupClassName={props.popupClassName}
popupStyle={props.popupStyle}
popupPlacement={props.popupPlacement}
calendarPopupPlacement={props.calendarPopupPlacement}
popupOffset={props.popupOffset}
isMobile={isMobile}
size={props.size}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export interface PickerFormProps extends RelativeRangeDatePickerStateOptions, Do
readOnly?: boolean;
/** Format of the date when rendered in the input. [Available formats](https://day.js.org/docs/en/display/format) */
format?: string;
/** Placement of calendar popups inside the range picker dialog. */
calendarPopupPlacement?: RelativeDatePickerProps['popupPlacement'];
/** A placeholder date that controls the default values of each segment when the user first interacts with them. Defaults to today's date at midnight. */
placeholderValue?: DateTime;
/** Apply changes with button */
Expand Down Expand Up @@ -87,6 +89,7 @@ export function PickerForm(
readOnly: props.readOnly,
size: props.size,
errorPlacement: 'inside',
popupPlacement: props.calendarPopupPlacement,
};
const {isDateUnavailable, withHeader = false} = props;
const {t} = i18n.useTranslation();
Expand Down
4 changes: 3 additions & 1 deletion src/components/RelativeRangeDatePicker/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {DateTime} from '@gravity-ui/date-utils';

import type {Value} from '../RelativeDatePicker';
import type {RelativeDatePickerProps, Value} from '../RelativeDatePicker';
import type {
AccessibilityProps,
DomProps,
Expand Down Expand Up @@ -63,6 +63,8 @@ export interface RelativeRangeDatePickerProps
PopupStyleProps {
/** Format of the date when rendered in the input. [Available formats](https://day.js.org/docs/en/display/format) */
format?: string;
/** Placement of calendar popups inside the range picker dialog. */
calendarPopupPlacement?: RelativeDatePickerProps['popupPlacement'];
/** A placeholder date that controls the default values of each segment when the user first interacts with them. Defaults to today's date at midnight. */
placeholderValue?: DateTime;
/** Apply changes with button */
Expand Down
Loading