uikit-react-public 0.44.0 → 0.44.2

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,3 +1,3 @@
1
1
  import { CalendarProps } from './Calendar.types';
2
- declare const Calendar: ({ pickedDate, onDatePick, minDate, maxDate, minYear, maxYear, events, showAcademicWeeks, academicWeeks, testId, className, }: CalendarProps) => import("react").JSX.Element;
2
+ declare const Calendar: ({ pickedDate, pickedMonth, onDatePick, minDate, maxDate, minYear, maxYear, events, showAcademicWeeks, academicWeeks, testId, className, }: CalendarProps) => import("react").JSX.Element;
3
3
  export default Calendar;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ pickedDate, onDatePick, minDate, maxDate, minYear, maxYear, events, showAcademicWeeks, academicWeeks, testId, className, }: import('./Calendar.types').CalendarProps) => import("react").JSX.Element;
4
+ component: ({ pickedDate, pickedMonth, onDatePick, minDate, maxDate, minYear, maxYear, events, showAcademicWeeks, academicWeeks, testId, className, }: import('./Calendar.types').CalendarProps) => import("react").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -11,6 +11,11 @@ declare const meta: {
11
11
  type: "date";
12
12
  };
13
13
  };
14
+ pickedMonth: {
15
+ control: {
16
+ type: "date";
17
+ };
18
+ };
14
19
  minDate: {
15
20
  control: {
16
21
  type: "date";
@@ -7,6 +7,7 @@ export type AcademicWeek = {
7
7
  };
8
8
  export interface CalendarProps {
9
9
  pickedDate?: Date | null;
10
+ pickedMonth?: Date | null;
10
11
  onDatePick?: (date: Date | null, event?: React.SyntheticEvent) => void;
11
12
  minDate?: string | null;
12
13
  maxDate?: string | null;
@@ -21,6 +21,11 @@ declare const meta: {
21
21
  type: "date";
22
22
  };
23
23
  };
24
+ pickedMonth: {
25
+ control: {
26
+ type: "date";
27
+ };
28
+ };
24
29
  disabled: {
25
30
  control: {
26
31
  type: "boolean";
@@ -9,6 +9,7 @@ interface BaseDatepickerProps {
9
9
  maxDate?: string | null;
10
10
  minYear?: number;
11
11
  maxYear?: number;
12
+ pickedMonth?: Date | null;
12
13
  events?: CalendarEvent[];
13
14
  showAcademicWeeks?: boolean;
14
15
  academicWeeks?: AcademicWeek[];
@@ -8,6 +8,7 @@ interface CustomDatepickerProps extends React.HTMLAttributes<HTMLDivElement> {
8
8
  maxDate?: string | null;
9
9
  minYear?: number;
10
10
  maxYear?: number;
11
+ pickedMonth?: Date | null;
11
12
  disabled?: boolean;
12
13
  clearable?: boolean;
13
14
  events?: CalendarEvent[];
@@ -18,5 +19,5 @@ interface CustomDatepickerProps extends React.HTMLAttributes<HTMLDivElement> {
18
19
  inputRef?: React.RefObject<HTMLInputElement>;
19
20
  inputProps?: InputProps;
20
21
  }
21
- declare const CustomDatepicker: ({ value, onValueChange, minDate, maxDate, minYear, maxYear, disabled, clearable, events, showAcademicWeeks, academicWeeks, testId, className, ref, inputRef, inputProps, ...props }: CustomDatepickerProps) => import("react").JSX.Element;
22
+ declare const CustomDatepicker: ({ value, onValueChange, minDate, maxDate, minYear, maxYear, pickedMonth, disabled, clearable, events, showAcademicWeeks, academicWeeks, testId, className, ref, inputRef, inputProps, ...props }: CustomDatepickerProps) => import("react").JSX.Element;
22
23
  export default CustomDatepicker;