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.
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +6 -1
- package/dist/components/Calendar/Calendar.types.d.ts +1 -0
- package/dist/components/Datepicker/Datepicker.stories.d.ts +5 -0
- package/dist/components/Datepicker/Datepicker.types.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/CustomDatepicker.d.ts +2 -1
- package/dist/index.js +1747 -1743
- package/lib/components/Calendar/Calendar.stories.tsx +13 -0
- package/lib/components/Calendar/Calendar.tsx +25 -20
- package/lib/components/Calendar/Calendar.types.ts +2 -1
- package/lib/components/Calendar/__tests__/Calendar.test.tsx +39 -0
- package/lib/components/Datepicker/Datepicker.stories.tsx +26 -18
- package/lib/components/Datepicker/Datepicker.types.ts +1 -0
- package/lib/components/Datepicker/__tests__/Datepicker.test.tsx +64 -0
- package/lib/components/Datepicker/subcomponents/CustomDatepicker.tsx +8 -0
- package/package.json +1 -1
|
@@ -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";
|
|
@@ -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;
|