@stenajs-webui/filter 17.18.2 → 17.18.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v17.18.3 (Thu Sep 29 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Refine filter drawer (AB#97356) [#513](https://github.com/StenaIT/stenajs-webui/pull/513) ([@AugustasFriend](https://github.com/AugustasFriend))
6
+
7
+ #### Authors: 1
8
+
9
+ - Augustas ([@AugustasFriend](https://github.com/AugustasFriend))
10
+
11
+ ---
12
+
1
13
  # v17.13.3 (Tue Aug 30 2022)
2
14
 
3
15
  #### 🏠 Internal
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ interface ClearFiltersButtonProps {
3
+ label?: string;
4
+ onClick?: () => void;
5
+ }
6
+ export declare const ClearFiltersButton: React.VFC<ClearFiltersButtonProps>;
7
+ export {};
@@ -4,5 +4,5 @@ interface SearchFilterDrawerButtonProps {
4
4
  label?: string;
5
5
  leftIcon?: IconDefinition;
6
6
  }
7
- export declare const SearchFilterButton: React.VFC<SearchFilterDrawerButtonProps>;
7
+ export declare const SearchFilterButton: React.FC<SearchFilterDrawerButtonProps>;
8
8
  export {};
@@ -1,9 +1,11 @@
1
1
  import * as React from "react";
2
+ import { ReactNode } from "react";
2
3
  import { DrawerProps } from "@stenajs-webui/modal";
3
4
  import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
4
5
  interface SearchFilterDrawerProps extends Omit<DrawerProps, "isOpen" | "onRequestClose"> {
5
6
  header?: string;
6
7
  headerIcon?: IconDefinition;
8
+ headerContentRight?: ReactNode;
7
9
  }
8
10
  export declare const SearchFilterDrawer: React.FC<SearchFilterDrawerProps>;
9
11
  export {};
@@ -1,9 +1,11 @@
1
1
  import * as React from "react";
2
+ import { ReactNode } from "react";
2
3
  import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
3
4
  interface SearchFilterPanelHeaderProps {
4
5
  onRequestClose: () => void;
5
6
  header?: string;
6
7
  headerIcon?: IconDefinition;
8
+ contentRight?: ReactNode;
7
9
  }
8
10
  export declare const SearchFilterPanelHeader: React.FC<SearchFilterPanelHeaderProps>;
9
11
  export {};
@@ -2,7 +2,7 @@
2
2
  import { DateRangeCalendarProps, DateStringRange } from "@stenajs-webui/calendar";
3
3
  import { SearchFilterSectionProps } from "../../../components/SearchFilterSection";
4
4
  import { SearchFilterActions, SearchFilterDispatch } from "../../../redux/SearchFilterRedux";
5
- export interface DateRangeCalendarSectionProps<TFormModel, TSectionKey extends string> extends SearchFilterSectionProps<TSectionKey>, Omit<DateRangeCalendarProps<{}>, "value" | "onValueChange" | "focusedInput" | "setFocusedInput"> {
5
+ export interface DateRangeCalendarSectionProps<TFormModel, TSectionKey extends string> extends Omit<SearchFilterSectionProps<TSectionKey>, "label" | "onRetry" | "error" | "loading">, Omit<DateRangeCalendarProps<{}>, "value" | "onValueChange" | "focusedInput" | "setFocusedInput"> {
6
6
  value: DateStringRange;
7
7
  onValueChange: (value: DateStringRange, options: SetDateOptions<TFormModel, TSectionKey>) => void;
8
8
  }
@@ -10,4 +10,4 @@ export interface SetDateOptions<TFormModel, TSectionKey extends string> {
10
10
  dispatch: SearchFilterDispatch<TFormModel>;
11
11
  actions: SearchFilterActions<TFormModel, TSectionKey>;
12
12
  }
13
- export declare const DateRangeCalendarSection: <TFormModel, TSectionKey extends string>({ value, onValueChange, sectionId, ...dateRangeCalendarProps }: DateRangeCalendarSectionProps<TFormModel, TSectionKey>) => JSX.Element;
13
+ export declare const DateRangeCalendarSection: <TFormModel, TSectionKey extends string>({ value, onValueChange, sectionId, contentLeft, contentRight, disableContentPadding, ...dateRangeCalendarProps }: DateRangeCalendarSectionProps<TFormModel, TSectionKey>) => JSX.Element;