@stenajs-webui/calendar 20.17.3 → 21.0.0

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.
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
+ import { ReactNode } from "react";
2
3
  import { CalendarDayProps, CalendarOnClicks, CalendarUserMonthData, DayState, DayStateHighlight, ExtraDayContentProps, OptionalMinMaxDates, Renderers } from "../../types/CalendarTypes";
3
4
  import { MonthData } from "../../util/calendar/CalendarDataFactory";
4
5
  import { CalendarTheme } from "./CalendarTheme";
5
- import { ReactNode } from "react";
6
6
  export interface CalendarMonthProps<T> extends CalendarOnClicks<T>, Renderers, OptionalMinMaxDates {
7
7
  month: MonthData;
8
8
  dayComponent?: React.ComponentType<CalendarDayProps<T>>;
@@ -27,16 +27,6 @@ export interface DateInputProps<T = unknown> extends OptionalMinMaxDatesAsString
27
27
  /**
28
28
  * Portal target, HTML element. If not set, portal is not used.
29
29
  */
30
- portalTarget?: HTMLElement | null;
31
- /**
32
- * Z-index of the calendar overlay.
33
- * @default 100
34
- */
35
- zIndex?: number;
36
- /**
37
- * Width of the input element.
38
- * * @default 125px
39
- */
40
30
  width?: string;
41
31
  /**
42
32
  * The calendar theme to use.
@@ -20,15 +20,6 @@ export interface DateRangeInputProps<T> extends OptionalMinMaxDatesAsString, Val
20
20
  * @default End date
21
21
  */
22
22
  placeholderEndDate?: string;
23
- /**
24
- * Portal target, HTML element. If not set, portal is not used.
25
- */
26
- portalTarget?: HTMLElement | null;
27
- /**
28
- * Z-index of the calendar overlay.
29
- * @default 100
30
- */
31
- zIndex?: number;
32
23
  /**
33
24
  * Width of the input element.
34
25
  * * @default 125px
@@ -48,4 +39,4 @@ export interface DateRangeInputProps<T> extends OptionalMinMaxDatesAsString, Val
48
39
  /**
49
40
  * @deprecated Please use DateRangeDualTextInput instead.
50
41
  */
51
- export declare function DateRangeInput<T>({ displayFormat, placeholderStartDate, placeholderEndDate, portalTarget, value, onValueChange, zIndex, width, calendarTheme, calendarProps, minDate, maxDate, disabled, }: DateRangeInputProps<T>): React.ReactElement<DateRangeInputProps<T>>;
42
+ export declare function DateRangeInput<T>({ displayFormat, placeholderStartDate, placeholderEndDate, value, onValueChange, width, calendarTheme, calendarProps, minDate, maxDate, disabled, }: DateRangeInputProps<T>): React.ReactElement<DateRangeInputProps<T>>;
@@ -18,10 +18,6 @@ export interface DateTextInputProps<T> extends Omit<TextInputProps, "onChange" |
18
18
  hideCalenderIcon?: boolean;
19
19
  /** Placeholder for the input, @default YYYY-MM-DD */
20
20
  placeholder?: string;
21
- /** Portal target, HTML element. If not set, portal is not used. */
22
- portalTarget?: HTMLElement | null;
23
- /** Z-index of the calendar overlay, @default 100 */
24
- zIndex?: number;
25
21
  /** The date text input theme to use. */
26
22
  calendarTheme?: CalendarTheme;
27
23
  }
@@ -1,2 +1 @@
1
- import { PopoverPlacement } from "@stenajs-webui/tooltip";
2
- export declare const defaultPopoverPlacement: PopoverPlacement;
1
+ export declare const defaultPopoverPlacement = "bottom";