@isettingkit/business-rules 1.0.20 → 1.0.22

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.
@@ -26,6 +26,10 @@ export declare const convertRangeToString: (value: {
26
26
  to: number;
27
27
  }) => string;
28
28
 
29
+ export declare const DropdownMenu: (props: IDropdownMenu) => JSX.Element;
30
+
31
+ export declare const DropdownMenuContainer: (props: IDropdownMenuContainer) => JSX.Element;
32
+
29
33
  export declare const Filter: (props: IFilter) => JSX.Element;
30
34
 
31
35
  export declare const FilterModal: (props: IFilterModal) => ReactPortal;
@@ -131,6 +135,26 @@ export declare interface ICheckpickerField {
131
135
  invalid?: boolean;
132
136
  }
133
137
 
138
+ export declare interface IDropdownMenu {
139
+ isOpen: boolean;
140
+ links: TLinkItem[];
141
+ onClick: () => void;
142
+ title: string;
143
+ activeId?: string;
144
+ }
145
+
146
+ export declare interface IDropdownMenuContainer {
147
+ collapseOnNavigate?: boolean;
148
+ defaultOpenId?: string | null;
149
+ groups: IDropdownMenuGroup[];
150
+ }
151
+
152
+ export declare interface IDropdownMenuGroup {
153
+ id: string;
154
+ title: string;
155
+ links: TLinkItem[];
156
+ }
157
+
134
158
  export declare interface IFilter {
135
159
  appliedFilters?: IFilterTag[];
136
160
  onClear: () => void;
@@ -290,6 +314,12 @@ export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedDat
290
314
 
291
315
  export declare const sortDisplayDataSwitchPlaces: (props: IRevertSortedData) => IRuleDecision[] | undefined;
292
316
 
317
+ export declare type TLinkItem = {
318
+ id: string;
319
+ label: string;
320
+ path: string;
321
+ };
322
+
293
323
  export declare const translateObject: (data: Record<string, any>, targetLang: string, options: ITranslateOptions) => Promise<Record<string, any>>;
294
324
 
295
325
  export declare const translateText: (text: string, targetLang: string, { url, apiKey }: ITranslateOptions) => Promise<string>;