uikit-react-public 0.38.1 → 0.39.1

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.
Files changed (96) hide show
  1. package/dist/components/Accordion/Accordion.Heading.d.ts +2 -1
  2. package/dist/components/Accordion/Accordion.d.ts +8 -2
  3. package/dist/components/Accordion/Accordion.stories.d.ts +2 -2
  4. package/dist/components/Alert/Alert.d.ts +2 -2
  5. package/dist/components/Alert/Alert.stories.d.ts +2 -2
  6. package/dist/components/Alert/AlertMessage.d.ts +1 -1
  7. package/dist/components/Alert/AlertTitle.d.ts +1 -1
  8. package/dist/components/Calendar/Calendar.d.ts +1 -1
  9. package/dist/components/Calendar/Calendar.stories.d.ts +1 -1
  10. package/dist/components/Calendar/Calendar.types.d.ts +2 -0
  11. package/dist/components/Calendar/subcomponents/Controls.d.ts +5 -1
  12. package/dist/components/Calendar/subcomponents/ControlsSelect.d.ts +9 -0
  13. package/dist/components/Calendar/utils/index.d.ts +2 -0
  14. package/dist/components/Calendar/utils/months/months.d.ts +6 -0
  15. package/dist/components/Calendar/utils/months/months.test.d.ts +1 -0
  16. package/dist/components/Datepicker/Datepicker.d.ts +1 -1
  17. package/dist/components/Datepicker/Datepicker.stories.d.ts +1 -1
  18. package/dist/components/Datepicker/Datepicker.types.d.ts +2 -0
  19. package/dist/components/Datepicker/subcomponents/CustomDatepicker.d.ts +3 -1
  20. package/dist/components/Field/HelperText.d.ts +1 -1
  21. package/dist/components/Select/Select.types.d.ts +12 -0
  22. package/dist/components/Select/subcomponents/CustomSelect.d.ts +1 -1
  23. package/dist/components/Select/subcomponents/VisibleField.d.ts +3 -1
  24. package/dist/components/WeekPicker/WeekPicker.d.ts +1 -1
  25. package/dist/components/WeekPicker/WeekPicker.stories.d.ts +1 -1
  26. package/dist/components/WeekPicker/WeekPicker.types.d.ts +2 -0
  27. package/dist/components/WeekPicker/subcomponents/CustomDatepicker.d.ts +3 -1
  28. package/dist/index.js +6296 -6089
  29. package/lib/components/Accordion/Accordion.Heading.tsx +24 -8
  30. package/lib/components/Accordion/Accordion.Panel.tsx +7 -4
  31. package/lib/components/Accordion/Accordion.stories.tsx +8 -8
  32. package/lib/components/Accordion/Accordion.tsx +17 -23
  33. package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +14 -14
  34. package/lib/components/Alert/Alert.tsx +0 -1
  35. package/lib/components/Alert/AlertMessage.tsx +10 -14
  36. package/lib/components/Alert/AlertTitle.tsx +11 -8
  37. package/lib/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +29 -14
  38. package/lib/components/AppHeader/AppHeader.tsx +0 -1
  39. package/lib/components/AppHeader/__tests__/__snapshots__/AppHeader.test.tsx.snap +1 -1
  40. package/lib/components/AppMenu/AppMenu.tsx +2 -9
  41. package/lib/components/AppMenu/AppMenuItem.tsx +6 -2
  42. package/lib/components/AppMenu/__tests__/__snapshots__/AppMenu.test.tsx.snap +6 -6
  43. package/lib/components/Breadcrumbs/Breadcrumbs.tsx +0 -4
  44. package/lib/components/Breadcrumbs/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +10 -10
  45. package/lib/components/Calendar/Calendar.tsx +57 -9
  46. package/lib/components/Calendar/Calendar.types.ts +2 -0
  47. package/lib/components/Calendar/__tests__/Calendar.test.tsx +111 -23
  48. package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +363 -167
  49. package/lib/components/Calendar/subcomponents/Controls.tsx +80 -34
  50. package/lib/components/Calendar/subcomponents/ControlsSelect.tsx +83 -0
  51. package/lib/components/Calendar/subcomponents/Day.tsx +7 -3
  52. package/lib/components/Calendar/utils/index.ts +2 -0
  53. package/lib/components/Calendar/utils/months/months.test.ts +21 -0
  54. package/lib/components/Calendar/utils/months/months.ts +27 -0
  55. package/lib/components/Datepicker/Datepicker.tsx +4 -0
  56. package/lib/components/Datepicker/Datepicker.types.ts +3 -2
  57. package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +2 -2
  58. package/lib/components/Datepicker/subcomponents/CustomDatepicker.tsx +6 -0
  59. package/lib/components/Datepicker/subcomponents/DatepickerInput.tsx +6 -3
  60. package/lib/components/Dialog/BaseDialog.tsx +6 -2
  61. package/lib/components/FeedbackDialog/FeedbackDialog.tsx +3 -4
  62. package/lib/components/Field/HelperText.tsx +9 -10
  63. package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +25 -25
  64. package/lib/components/FooterNew/__tests__/__snapshots__/Footer.test.tsx.snap +28 -28
  65. package/lib/components/Header/Header.tsx +6 -3
  66. package/lib/components/Header/__tests__/__snapshots__/Header.test.tsx.snap +4 -4
  67. package/lib/components/HeaderNew/Header.tsx +0 -1
  68. package/lib/components/HeaderNew/__tests__/__snapshots__/Header.test.tsx.snap +2 -2
  69. package/lib/components/Input/Input.tsx +6 -3
  70. package/lib/components/Input/__tests__/__snapshots__/Input.test.tsx.snap +4 -4
  71. package/lib/components/Label/Label.tsx +7 -7
  72. package/lib/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +7 -7
  73. package/lib/components/Link/BaseLink.tsx +8 -16
  74. package/lib/components/Link/__tests__/__snapshots__/link.test.tsx.snap +2 -2
  75. package/lib/components/Menu/Menu.tsx +0 -4
  76. package/lib/components/Menu/MenuItem.tsx +7 -5
  77. package/lib/components/Search/__tests__/__snapshots__/Search.test.tsx.snap +2 -2
  78. package/lib/components/Select/Select.tsx +21 -0
  79. package/lib/components/Select/Select.types.ts +12 -0
  80. package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +2 -2
  81. package/lib/components/Select/subcomponents/CustomOption.tsx +6 -3
  82. package/lib/components/Select/subcomponents/CustomSelect.tsx +67 -26
  83. package/lib/components/Select/subcomponents/NativeSelect.tsx +6 -3
  84. package/lib/components/Select/subcomponents/VisibleField.tsx +13 -3
  85. package/lib/components/Sidebar/Sidebar.tsx +0 -1
  86. package/lib/components/Sidebar/__tests__/__snapshots__/Sidebar.test.tsx.snap +2 -2
  87. package/lib/components/StandaloneLink/__tests__/__snapshots__/StandaloneLink.test.tsx.snap +2 -2
  88. package/lib/components/Textarea/Textarea.tsx +6 -3
  89. package/lib/components/Textarea/__tests__/__snapshots__/Textarea.test.tsx.snap +4 -4
  90. package/lib/components/Timepicker/Timepicker.tsx +6 -2
  91. package/lib/components/Timepicker/__tests__/__snapshots__/Timepicker.test.tsx.snap +2 -2
  92. package/lib/components/WeekPicker/WeekPicker.tsx +4 -0
  93. package/lib/components/WeekPicker/WeekPicker.types.ts +2 -0
  94. package/lib/components/WeekPicker/subcomponents/CustomDatepicker.tsx +6 -0
  95. package/lib/components/WeekPicker/subcomponents/DatepickerInput.tsx +6 -3
  96. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
1
  import { default as React, HTMLAttributes } from 'react';
2
+ import { HeadingProps } from '../Heading';
2
3
  export declare const NAME = "ucl-uikit-accordion__heading";
3
4
  export declare const ICON_NAME = "ucl-uikit-accordion__heading__icon";
4
5
  export interface AccordionHeadingProps extends HTMLAttributes<HTMLElement> {
5
- as?: keyof HTMLElementTagNameMap;
6
+ as?: HeadingProps['as'];
6
7
  testId?: string;
7
8
  }
8
9
  declare const AccordionHeading: React.FC<AccordionHeadingProps>;
@@ -2,16 +2,22 @@ import { default as React, HTMLAttributes } from 'react';
2
2
  import { default as AccordionHeading } from './Accordion.Heading';
3
3
  import { default as AccordionPanel } from './Accordion.Panel';
4
4
  export declare const NAME = "ucl-uikit-accordion";
5
+ export type AccordionSize = 'default' | 'large'
6
+ /** @deprecated Use `default` instead. */
7
+ | 'small'
8
+ /** @deprecated Use `large` instead. */
9
+ | 'medium';
10
+ type NormalizedAccordionSize = Exclude<AccordionSize, 'small' | 'medium'>;
5
11
  interface AccordionContextProps {
6
12
  isOpen: boolean;
7
13
  toggleAccordion: () => void;
8
14
  disabled: boolean;
9
- size: 'small' | 'medium';
15
+ size: NormalizedAccordionSize;
10
16
  }
11
17
  export declare const useAccordionContext: () => AccordionContextProps;
12
18
  export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
13
19
  testId?: string;
14
- size?: 'small' | 'medium';
20
+ size?: AccordionSize;
15
21
  disabled?: boolean;
16
22
  isOpen?: boolean;
17
23
  }
@@ -44,7 +44,7 @@ declare const meta: {
44
44
  args: {
45
45
  isOpen: false;
46
46
  disabled: false;
47
- size: "medium";
47
+ size: "default";
48
48
  };
49
49
  tags: string[];
50
50
  };
@@ -52,6 +52,6 @@ export default meta;
52
52
  type Story = StoryObj<typeof meta>;
53
53
  export declare const Default: Story;
54
54
  export declare const Disabled: Story;
55
- export declare const SmallSize: Story;
55
+ export declare const LargeSize: Story;
56
56
  export declare const CustomHeadingElement: Story;
57
57
  export declare const MultipleAccordions: Story;
@@ -16,8 +16,8 @@ export interface AlertBaseProps extends HTMLAttributes<HTMLDivElement> {
16
16
  export type AlertProps = AlertBaseProps & MarginProps;
17
17
  declare const Alert: {
18
18
  ({ type, children, testId, className, ...props }: AlertProps): import("react").JSX.Element;
19
- Title: ({ children, testId }: import('./AlertTitle').AlertTitleProps) => import("react").JSX.Element;
20
- Message: ({ testId, className, children, }: import('./AlertMessage').AlertMessageProps) => import("react").JSX.Element;
19
+ Title: ({ children, testId, className, ...props }: import('./AlertTitle').AlertTitleProps) => import("react").JSX.Element;
20
+ Message: ({ testId, className, children, ...props }: import('./AlertMessage').AlertMessageProps) => import("react").JSX.Element;
21
21
  };
22
22
  export interface IAlertSubComponents {
23
23
  Title: typeof AlertTitle;
@@ -3,8 +3,8 @@ declare const meta: {
3
3
  title: string;
4
4
  component: {
5
5
  ({ type, children, testId, className, ...props }: import('./Alert').AlertProps): import("react").JSX.Element;
6
- Title: ({ children, testId }: import('./AlertTitle').AlertTitleProps) => import("react").JSX.Element;
7
- Message: ({ testId, className, children, }: import('./AlertMessage').AlertMessageProps) => import("react").JSX.Element;
6
+ Title: ({ children, testId, className, ...props }: import('./AlertTitle').AlertTitleProps) => import("react").JSX.Element;
7
+ Message: ({ testId, className, children, ...props }: import('./AlertMessage').AlertMessageProps) => import("react").JSX.Element;
8
8
  } & import('./Alert').IAlertSubComponents;
9
9
  parameters: {
10
10
  layout: string;
@@ -3,5 +3,5 @@ export declare const NAME = "ucl-uikit-alert__message";
3
3
  export interface AlertMessageProps extends HTMLAttributes<HTMLParagraphElement> {
4
4
  testId?: string;
5
5
  }
6
- declare const AlertMessage: ({ testId, className, children, }: AlertMessageProps) => import("react").JSX.Element;
6
+ declare const AlertMessage: ({ testId, className, children, ...props }: AlertMessageProps) => import("react").JSX.Element;
7
7
  export default AlertMessage;
@@ -3,5 +3,5 @@ export declare const NAME = "ucl-uikit-alert__title";
3
3
  export interface AlertTitleProps extends HTMLAttributes<HTMLHeadingElement> {
4
4
  testId?: string;
5
5
  }
6
- declare const AlertTitle: ({ children, testId }: AlertTitleProps) => import("react").JSX.Element;
6
+ declare const AlertTitle: ({ children, testId, className, ...props }: AlertTitleProps) => import("react").JSX.Element;
7
7
  export default AlertTitle;
@@ -1,3 +1,3 @@
1
1
  import { CalendarProps } from './Calendar.types';
2
- declare const Calendar: ({ pickedDate, onDatePick, minDate, maxDate, events, showAcademicWeeks, academicWeeks, testId, className, }: CalendarProps) => import("react").JSX.Element;
2
+ declare const Calendar: ({ pickedDate, 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, events, showAcademicWeeks, academicWeeks, testId, className, }: import('./Calendar.types').CalendarProps) => import("react").JSX.Element;
4
+ component: ({ pickedDate, 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
  };
@@ -10,6 +10,8 @@ export interface CalendarProps {
10
10
  onDatePick?: (date: Date | null, event?: React.SyntheticEvent) => void;
11
11
  minDate?: string | null;
12
12
  maxDate?: string | null;
13
+ minYear?: number;
14
+ maxYear?: number;
13
15
  events?: CalendarEvent[];
14
16
  showAcademicWeeks?: boolean;
15
17
  academicWeeks?: AcademicWeek[];
@@ -1,6 +1,10 @@
1
1
  interface ControlsProps {
2
2
  month: Date;
3
3
  changeMonth: (change: number) => void;
4
+ onMonthSelect: (monthIndex: number) => void;
5
+ onYearSelect: (year: number) => void;
6
+ minYear: number;
7
+ maxYear: number;
4
8
  }
5
- declare const Controls: ({ month, changeMonth }: ControlsProps) => import("react").JSX.Element;
9
+ declare const Controls: ({ month, changeMonth, onMonthSelect, onYearSelect, minYear, maxYear, }: ControlsProps) => import("react").JSX.Element;
6
10
  export default Controls;
@@ -0,0 +1,9 @@
1
+ import { OptionData } from '../../Select';
2
+ interface ControlsSelectProps<T extends string | number> {
3
+ label: string;
4
+ value: T;
5
+ options: OptionData<T>[];
6
+ onValueChange: (value: T, event: React.SyntheticEvent) => void;
7
+ }
8
+ declare const ControlsSelect: <T extends string | number>({ label, value, options, onValueChange, }: ControlsSelectProps<T>) => import("react").JSX.Element;
9
+ export default ControlsSelect;
@@ -2,3 +2,5 @@ export { default as normaliseMonth } from './normaliseMonth/normaliseMonth';
2
2
  export { default as parseDateFromString } from './parseDateFromString/parseDateFromString';
3
3
  export { default as getAcademicWeekNumbers } from './getAcademicWeekNumbers/getAcademicWeekNumbers';
4
4
  export { default as getDatesForCalendarGrid } from './getDatesForCalendarGrid/getDatesForCalendarGrid';
5
+ export { default as months } from './months/months';
6
+ export type { CalendarMonth } from './months/months';
@@ -0,0 +1,6 @@
1
+ export type CalendarMonth = {
2
+ name: string;
3
+ index: number;
4
+ };
5
+ declare const months: () => CalendarMonth[];
6
+ export default months;
@@ -1,3 +1,3 @@
1
1
  import { DatepickerProps } from './Datepicker.types';
2
- declare const Datepicker: ({ value, onValueChange, minDate, maxDate, disabled, className, clearable, ...props }: DatepickerProps) => import("react").JSX.Element;
2
+ declare const Datepicker: ({ value, onValueChange, minDate, maxDate, minYear, maxYear, disabled, className, clearable, ...props }: DatepickerProps) => import("react").JSX.Element;
3
3
  export default Datepicker;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ value, onValueChange, minDate, maxDate, disabled, className, clearable, ...props }: import('./Datepicker.types').DatepickerProps) => import("react").JSX.Element;
4
+ component: ({ value, onValueChange, minDate, maxDate, minYear, maxYear, disabled, className, clearable, ...props }: import('./Datepicker.types').DatepickerProps) => import("react").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -7,6 +7,8 @@ interface BaseDatepickerProps {
7
7
  onValueChange?: (value: DatepickerValue, event?: React.SyntheticEvent) => void;
8
8
  minDate?: string | null;
9
9
  maxDate?: string | null;
10
+ minYear?: number;
11
+ maxYear?: number;
10
12
  events?: CalendarEvent[];
11
13
  showAcademicWeeks?: boolean;
12
14
  academicWeeks?: AcademicWeek[];
@@ -6,6 +6,8 @@ interface CustomDatepickerProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  onValueChange?: (value: DatepickerValue, event?: React.SyntheticEvent) => void;
7
7
  minDate?: string | null;
8
8
  maxDate?: string | null;
9
+ minYear?: number;
10
+ maxYear?: number;
9
11
  disabled?: boolean;
10
12
  clearable?: boolean;
11
13
  events?: CalendarEvent[];
@@ -16,5 +18,5 @@ interface CustomDatepickerProps extends React.HTMLAttributes<HTMLDivElement> {
16
18
  inputRef?: React.RefObject<HTMLInputElement>;
17
19
  inputProps?: InputProps;
18
20
  }
19
- declare const CustomDatepicker: ({ value, onValueChange, minDate, maxDate, disabled, clearable, events, showAcademicWeeks, academicWeeks, testId, className, ref, inputRef, inputProps, ...props }: CustomDatepickerProps) => import("react").JSX.Element;
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;
20
22
  export default CustomDatepicker;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export interface HelperTextProps extends HTMLAttributes<HTMLDivElement> {
2
+ export interface HelperTextProps extends HTMLAttributes<HTMLSpanElement> {
3
3
  testId?: string;
4
4
  }
5
5
  declare const HelperText: ({ testId, className, children, ...props }: HelperTextProps) => import("react").JSX.Element;
@@ -92,6 +92,18 @@ type SelectBaseProps<T = string | number> = Omit<React.HTMLAttributes<HTMLElemen
92
92
  * Custom className for the options panel
93
93
  */
94
94
  panelClassName?: string;
95
+ /**
96
+ * Custom className for the custom select visible field
97
+ */
98
+ visibleFieldClassName?: string;
99
+ /**
100
+ * Custom className for each custom select option
101
+ */
102
+ optionClassName?: string;
103
+ /**
104
+ * Custom className for the custom select chevron icon
105
+ */
106
+ chevronIconClassName?: string;
95
107
  /**
96
108
  * Ref forwarded to the rendered element
97
109
  * (div for custom, select for native)
@@ -1,4 +1,4 @@
1
1
  import { InternalSelectProps } from '../Select.types';
2
2
  type CustomSelectProps<T> = Omit<InternalSelectProps<T>, 'native' | 'nativeHtmlAttributes'>;
3
- declare const CustomSelect: <T extends string | number>({ selectionBehaviour, value, options, onValueChange, disabled, clearable, placeholder, lineBreak, dropdownWidth, filterInputProps, width, testId, className, panelClassName, filterable, ref, ...props }: CustomSelectProps<T>) => import("react").JSX.Element;
3
+ declare const CustomSelect: <T extends string | number>({ selectionBehaviour, value, options, onValueChange, disabled, clearable, placeholder, lineBreak, dropdownWidth, filterInputProps, width, testId, className, panelClassName, visibleFieldClassName, optionClassName, chevronIconClassName, filterable, ref, ...props }: CustomSelectProps<T>) => import("react").JSX.Element;
4
4
  export default CustomSelect;
@@ -8,7 +8,9 @@ interface VisibleFieldProps<T> {
8
8
  clearable?: boolean;
9
9
  onClear?: (event: React.MouseEvent | React.KeyboardEvent) => void;
10
10
  clearButtonRef?: React.RefObject<HTMLButtonElement | null>;
11
+ className?: string;
12
+ chevronIconClassName?: string;
11
13
  children?: React.ReactNode;
12
14
  }
13
- declare const VisibleField: <T extends string | number>({ selectedOption, isOpen, placeholder, disabled, filterable, clearable, onClear, clearButtonRef, children, }: VisibleFieldProps<T>) => import("react").JSX.Element;
15
+ declare const VisibleField: <T extends string | number>({ selectedOption, isOpen, placeholder, disabled, filterable, clearable, onClear, clearButtonRef, className, chevronIconClassName, children, }: VisibleFieldProps<T>) => import("react").JSX.Element;
14
16
  export default VisibleField;
@@ -1,3 +1,3 @@
1
1
  import { WeekPickerProps } from './WeekPicker.types';
2
- declare const WeekPicker: ({ value, onValueChange, minDate, maxDate, disabled, className, ...props }: WeekPickerProps) => import("react").JSX.Element;
2
+ declare const WeekPicker: ({ value, onValueChange, minDate, maxDate, minYear, maxYear, disabled, className, ...props }: WeekPickerProps) => import("react").JSX.Element;
3
3
  export default WeekPicker;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ value, onValueChange, minDate, maxDate, disabled, className, ...props }: import('./WeekPicker.types').WeekPickerProps) => import("react").JSX.Element;
4
+ component: ({ value, onValueChange, minDate, maxDate, minYear, maxYear, disabled, className, ...props }: import('./WeekPicker.types').WeekPickerProps) => import("react").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -6,6 +6,8 @@ export interface WeekPickerProps extends HTMLAttributes<HTMLDivElement> {
6
6
  onValueChange?: (value: DatepickerValue, event?: React.SyntheticEvent) => void;
7
7
  minDate?: string | null;
8
8
  maxDate?: string | null;
9
+ minYear?: number;
10
+ maxYear?: number;
9
11
  disabled?: boolean;
10
12
  events?: CalendarEvent[];
11
13
  showAcademicWeeks?: boolean;
@@ -5,6 +5,8 @@ interface CustomDatepickerProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  onValueChange?: (value: DatepickerValue, event?: React.SyntheticEvent) => void;
6
6
  minDate?: string | null;
7
7
  maxDate?: string | null;
8
+ minYear?: number;
9
+ maxYear?: number;
8
10
  disabled?: boolean;
9
11
  events?: CalendarEvent[];
10
12
  showAcademicWeeks?: boolean;
@@ -13,5 +15,5 @@ interface CustomDatepickerProps extends React.HTMLAttributes<HTMLDivElement> {
13
15
  ref?: React.RefObject<HTMLDivElement>;
14
16
  inputRef?: React.RefObject<HTMLInputElement>;
15
17
  }
16
- declare const CustomDatepicker: ({ value, onValueChange, minDate, maxDate, disabled, events, showAcademicWeeks, academicWeeks, testId, className, ref, inputRef, ...props }: CustomDatepickerProps) => import("react").JSX.Element;
18
+ declare const CustomDatepicker: ({ value, onValueChange, minDate, maxDate, minYear, maxYear, disabled, events, showAcademicWeeks, academicWeeks, testId, className, ref, inputRef, ...props }: CustomDatepickerProps) => import("react").JSX.Element;
17
19
  export default CustomDatepicker;