@devtron-labs/devtron-fe-common-lib 0.0.26-beta-2 → 0.0.26-beta-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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ResizableTagTextAreaProps } from './Types';
3
- export declare function ResizableTagTextArea({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, handleKeyDown, }: ResizableTagTextAreaProps): JSX.Element;
3
+ export declare function ResizableTagTextArea({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, }: ResizableTagTextAreaProps): JSX.Element;
@@ -64,5 +64,4 @@ export interface ResizableTagTextAreaProps {
64
64
  refVar?: React.MutableRefObject<HTMLTextAreaElement>;
65
65
  dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
66
66
  dataTestId?: string;
67
- handleKeyDown?: any;
68
67
  }
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { DebouncedSearchProps } from './Types';
3
+ /**
4
+ * @param onSearch - Callback function to be called on search
5
+ * @param Icon - (Optional) Icon to be shown before the input
6
+ * @param iconClass - (Optional) Class for the icon
7
+ * @param children - (Optional) In case we want to add another button or any other element
8
+ * @param placeholder - (Optional) Placeholder for the input
9
+ * @param containerClass - (Optional) Class for the container
10
+ * @param inputClass - (Optional) Class for the input field
11
+ * @param debounceTimeout - (Optional) Timeout for the debounce with default value of 500ms
12
+ * @param clearSearch - (Optional) To clear the search text
13
+ * @param showClearIcon - (Optional) To show the clear icon default value is true
14
+ */
15
+ export default function DebouncedSearch({ onSearch, Icon, children, placeholder, containerClass, iconClass, inputClass, debounceTimeout, clearSearch, showClearIcon, }: DebouncedSearchProps): JSX.Element;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export interface DebouncedSearchProps {
3
+ onSearch: (query: string) => void;
4
+ Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
5
+ placeholder?: string;
6
+ inputClass?: string;
7
+ containerClass?: string;
8
+ iconClass?: string;
9
+ children?: React.ReactNode;
10
+ debounceTimeout?: number;
11
+ clearSearch?: boolean;
12
+ showClearIcon?: boolean;
13
+ }
@@ -0,0 +1 @@
1
+ export declare function useDebouncedEffect(callback: any, delay: any, deps?: unknown[]): void;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { GridProps } from './types';
3
+ export default function Grid({ container, spacing, item, xs, containerClass, itemClass, children, }: GridProps): JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export interface GridProps {
3
+ container?: boolean;
4
+ spacing?: number;
5
+ item?: boolean;
6
+ xs?: number;
7
+ containerClass?: string;
8
+ itemClass?: string;
9
+ children?: React.ReactNode;
10
+ }
@@ -35,3 +35,5 @@ export { default as DeleteComponent } from './DeleteComponentModal/DeleteCompone
35
35
  export * from './ImageTags';
36
36
  export * from './ImageTags.Types';
37
37
  export * from './ResizableTextarea';
38
+ export { default as DebouncedSearch } from './DebouncedSearch/DebouncedSearch';
39
+ export { default as Grid } from './Grid/Grid';