@umituz/web-design-system 2.4.0 → 2.4.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/package.json
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* @description Desktop sidebar with search, categories, tags, and sort options
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import type { BaseProps } from '../../domain/types';
|
|
7
8
|
|
|
8
9
|
export interface Category {
|
|
9
10
|
id: string;
|
|
@@ -17,7 +18,7 @@ export interface SortOption {
|
|
|
17
18
|
name: string;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
export interface FilterSidebarProps extends BaseProps
|
|
21
|
+
export interface FilterSidebarProps extends BaseProps {
|
|
21
22
|
searchQuery: string;
|
|
22
23
|
setSearchQuery: (query: string) => void;
|
|
23
24
|
selectedCategory: string | null;
|
|
@@ -31,6 +32,7 @@ export interface FilterSidebarProps extends BaseProps, ChildrenProps {
|
|
|
31
32
|
sortOptions: readonly SortOption[] | SortOption[];
|
|
32
33
|
hasActiveFilters: boolean;
|
|
33
34
|
onClearFilters: () => void;
|
|
35
|
+
children?: React.ReactNode;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
export const FilterSidebar = ({
|