diff --git a/changelog.txt b/changelog.txt index f2cabda8..bee2976d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,8 @@ Version 1.3.4 - 27th December, 2024 - Improvement - Enhanced the UI of the Table and Line chart component for responsive design. - Improvement - Added option group to the Select component. - Improvement - Updated the Table component design. +- Improvement - Added support for controlling selected dates through the 'selected' prop in DatePicker component. +- Fixed - DatePicker component crash when navigating through years. Version 1.3.3 - 20th December, 2024 - Fixed - React `Each child in a list should have a unique "key" prop` console warning. diff --git a/src/components/accordion/accordion.stories.tsx b/src/components/accordion/accordion.stories.tsx index 60b80704..890dc4d0 100644 --- a/src/components/accordion/accordion.stories.tsx +++ b/src/components/accordion/accordion.stories.tsx @@ -11,9 +11,9 @@ export default { }, tags: [ 'autodocs' ], subcomponents: { - Item: Accordion.Item, - Trigger: Accordion.Trigger, - Content: Accordion.Content, + 'Accordion.Item': Accordion.Item, + 'Accordion.Trigger': Accordion.Trigger, + 'Accordion.Content': Accordion.Content, }, decorators: [ ( Story ) => ( diff --git a/src/components/datepicker/datepicker-component.tsx b/src/components/datepicker/datepicker-component.tsx index 4c45f865..340260f4 100644 --- a/src/components/datepicker/datepicker-component.tsx +++ b/src/components/datepicker/datepicker-component.tsx @@ -175,7 +175,7 @@ const DatePickerComponent = ( { } }; - const handleYearClick = ( { yearValue }: { yearValue: number } ) => { + const handleYearClick = ( yearValue: number ) => { setSelectedYear( yearValue ); setShowYearSelect( false ); setShowMonthSelect( true ); @@ -245,13 +245,7 @@ const DatePickerComponent = ( {