@devtron-labs/devtron-fe-common-lib 0.6.4 → 0.6.5-beta-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.
@@ -1,6 +1,6 @@
1
1
  import { ConfirmationDialogBodyType, ConfirmationDialogButtonGroupType, ConfirmationDialogIconType, ConfirmationDialogType } from './Types';
2
2
  declare const ConfirmationDialog: {
3
- ({ className, children }: ConfirmationDialogType): JSX.Element;
3
+ ({ className, children, close }: ConfirmationDialogType): JSX.Element;
4
4
  Icon: ({ src, className }: ConfirmationDialogIconType) => JSX.Element;
5
5
  Body: ({ title, subtitle, children }: ConfirmationDialogBodyType) => JSX.Element;
6
6
  ButtonGroup: ({ children }: ConfirmationDialogButtonGroupType) => JSX.Element;
@@ -35,6 +35,7 @@ export interface ForceDeleteDialogType {
35
35
  export interface ConfirmationDialogType {
36
36
  className?: string;
37
37
  children: any;
38
+ close?: (e: any) => void;
38
39
  }
39
40
  export interface ConfirmationDialogIconType {
40
41
  src: string;
@@ -8,6 +8,7 @@ export interface UseUrlFiltersProps<T, K> {
8
8
  * Callback function for parsing the search params
9
9
  */
10
10
  parseSearchParams?: (searchParams: URLSearchParams) => K;
11
+ localStorageKey?: `${string}__${string}`;
11
12
  }
12
13
  export type UseUrlFiltersReturnType<T, K = unknown> = K & {
13
14
  /**
@@ -16,5 +16,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
16
16
  * ```
17
17
  *
18
18
  */
19
- declare const useUrlFilters: <T = string, K = unknown>({ initialSortKey, parseSearchParams, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
19
+ declare const useUrlFilters: <T = string, K = unknown>({ initialSortKey, parseSearchParams, localStorageKey, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
20
20
  export default useUrlFilters;
@@ -0,0 +1 @@
1
+ export declare const setItemInLocalStorageIfKeyExists: (localStorageKey: string, value: string) => void;
@@ -168,7 +168,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
168
168
  export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
169
169
  isGroupHeadingSelectable: boolean;
170
170
  };
171
- export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList'> {
171
+ export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'isOptionDisabled'> {
172
172
  appliedFilterOptions: SelectPickerOptionType[];
173
173
  handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
174
174
  }