@stenajs-webui/calendar 17.13.0 → 17.13.3
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/CHANGELOG.md +12 -0
- package/dist/components/calendar/Calendar.d.ts +1 -1
- package/dist/components/calendar/CalendarTheme.d.ts +3 -3
- package/dist/components/calendar/DisabledDayWrapper.d.ts +1 -1
- package/dist/components/calendar/renderers/CalendarDay.d.ts +1 -1
- package/dist/components/calendar-types/date-range-calendar/DateRangeCalendar.d.ts +1 -1
- package/dist/components/calendar-types/date-range-exclusion-calendar/DateRangeExclusionCalendar.d.ts +1 -1
- package/dist/components/calendar-types/multi-date-calendar/MultiDateCalendar.d.ts +1 -1
- package/dist/components/calendar-types/single-date-calendar/SingleDateCalendar.d.ts +1 -1
- package/dist/components/input-types/date-range-dual-text-input/DateRangeDualTextInput.d.ts +1 -1
- package/dist/components/input-types/date-range-input/DateRangeInput.d.ts +1 -1
- package/dist/index.es.js +1947 -2434
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v17.13.3 (Tue Aug 30 2022)
|
|
2
|
+
|
|
3
|
+
#### 🏠 Internal
|
|
4
|
+
|
|
5
|
+
- Upgrade storybook, vite and ts [#502](https://github.com/StenaIT/stenajs-webui/pull/502) ([@lindskogen](https://github.com/lindskogen))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Johan Lindskogen ([@lindskogen](https://github.com/lindskogen))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v17.9.0 (Fri Jul 01 2022)
|
|
2
14
|
|
|
3
15
|
#### 🏠 Internal
|
|
@@ -3,7 +3,7 @@ import { TextProps } from "@stenajs-webui/core";
|
|
|
3
3
|
import { CSSProperties } from "react";
|
|
4
4
|
import { DayState, DayStateHighlight } from "../../types/CalendarTypes";
|
|
5
5
|
import { DayData, MonthData, WeekData } from "../../util/calendar/CalendarDataFactory";
|
|
6
|
-
export interface CalendarTheme<TUserData =
|
|
6
|
+
export interface CalendarTheme<TUserData = unknown> {
|
|
7
7
|
width: string;
|
|
8
8
|
height: string;
|
|
9
9
|
WeekNumber: WeekNumberTheme;
|
|
@@ -44,14 +44,14 @@ export interface CalendarDefaultWrapperColors {
|
|
|
44
44
|
borderRadius?: string;
|
|
45
45
|
rangeBorderRadius?: string;
|
|
46
46
|
}
|
|
47
|
-
export declare const defaultWrapperStyleProvider: ({ selectedBackground, todayBackground, rangeBackground, borderColor, }: CalendarDefaultWrapperColors) => CalendarWrapperStyleProvider<
|
|
47
|
+
export declare const defaultWrapperStyleProvider: ({ selectedBackground, todayBackground, rangeBackground, borderColor, }: CalendarDefaultWrapperColors) => CalendarWrapperStyleProvider<unknown>;
|
|
48
48
|
interface DefaultTextColors {
|
|
49
49
|
disabledColor: string;
|
|
50
50
|
inOtherMonthColor: string;
|
|
51
51
|
selectedColor: string;
|
|
52
52
|
rangeTextColor?: string;
|
|
53
53
|
}
|
|
54
|
-
export declare const defaultTextPropsProvider: ({ selectedColor, disabledColor, inOtherMonthColor, rangeTextColor, }: DefaultTextColors) => TextPropsProvider<
|
|
54
|
+
export declare const defaultTextPropsProvider: ({ selectedColor, disabledColor, inOtherMonthColor, rangeTextColor, }: DefaultTextColors) => TextPropsProvider<unknown>;
|
|
55
55
|
export declare const defaultCalendarTheme: CalendarTheme;
|
|
56
56
|
export declare const extranetCalendarTheme: CalendarTheme;
|
|
57
57
|
export {};
|
|
@@ -3,5 +3,5 @@ import { CalendarDayProps, OptionalMinMaxDates } from "../../types/CalendarTypes
|
|
|
3
3
|
interface DisabledDayWrapperProps<T> extends CalendarDayProps<T>, OptionalMinMaxDates {
|
|
4
4
|
dayComponent: React.ComponentType<CalendarDayProps<T>>;
|
|
5
5
|
}
|
|
6
|
-
export declare const DisabledDayWrapper: <T>({ dayComponent
|
|
6
|
+
export declare const DisabledDayWrapper: <T>({ dayComponent, minDate, maxDate, dayState, day, ...props }: DisabledDayWrapperProps<T>) => JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CalendarDayProps } from "../../../types/CalendarTypes";
|
|
3
|
-
export declare const CalendarDay: <T
|
|
3
|
+
export declare const CalendarDay: <T>({ day, week, month, dayState, userData, onClickDay, theme, extraDayContent, defaultHighlights, }: CalendarDayProps<T>) => JSX.Element;
|
|
@@ -7,5 +7,5 @@ export interface DateRangeCalendarProps<T> extends InternalPanelAndFocusStatePro
|
|
|
7
7
|
focusedInput?: DateRangeFocusedInput;
|
|
8
8
|
setFocusedInput: (focusedInput: DateRangeFocusedInput) => void;
|
|
9
9
|
}
|
|
10
|
-
export declare function DateRangeCalendar<T
|
|
10
|
+
export declare function DateRangeCalendar<T>(props: DateRangeCalendarProps<T>): JSX.Element;
|
|
11
11
|
export declare type DateRangeInputCalendarProps<T> = Omit<DateRangeCalendarProps<T>, "startDateInFocus" | "value" | "onValueChange" | "focusedInput" | "setFocusedInput" | "theme" | "currentPanel" | "setCurrentPanel">;
|
package/dist/components/calendar-types/date-range-exclusion-calendar/DateRangeExclusionCalendar.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { InternalPanelAndFocusStateProps } from "../../../types/InternalPanelAnd
|
|
|
4
4
|
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
5
5
|
export interface DateRangeExclusionCalendarProps<T> extends InternalPanelAndFocusStateProps<T>, UseInternalPanelStateProps, ValueAndOnValueChangeProps<Array<Date>> {
|
|
6
6
|
}
|
|
7
|
-
export declare function DateRangeExclusionCalendar<T
|
|
7
|
+
export declare function DateRangeExclusionCalendar<T>(props: DateRangeExclusionCalendarProps<T>): JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface MultiDateCalendarProps<T> extends InternalPanelAndFocusStatePro
|
|
|
5
5
|
value?: Array<Date>;
|
|
6
6
|
onChange?: (value: Array<Date>) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function MultiDateCalendar<T
|
|
8
|
+
export declare function MultiDateCalendar<T>(props: MultiDateCalendarProps<T>): JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface SingleDateCalendarProps<T> extends InternalPanelAndFocusStatePr
|
|
|
4
4
|
value: Date | undefined;
|
|
5
5
|
onChange: (value: Date | undefined) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare function SingleDateCalendar<T
|
|
7
|
+
export declare function SingleDateCalendar<T>(props: SingleDateCalendarProps<T>): JSX.Element;
|
|
@@ -12,4 +12,4 @@ export interface DateRangeDualTextInputProps<TData = unknown> extends ValueAndOn
|
|
|
12
12
|
calendarProps?: DateRangeInputCalendarProps<TData>;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare function DateRangeDualTextInput<TData>({ value, onValueChange, autoFocus, onBlur, onEnter, onEsc, minDate, maxDate, calendarProps, widthLeft, widthRight, variant, disabled, }: DateRangeDualTextInputProps<TData>): JSX.Element;
|
|
@@ -48,4 +48,4 @@ export interface DateRangeInputProps<T> extends OptionalMinMaxDatesAsString, Val
|
|
|
48
48
|
/**
|
|
49
49
|
* @deprecated Please use DateRangeDualTextInput instead.
|
|
50
50
|
*/
|
|
51
|
-
export declare
|
|
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>>;
|