@devtron-labs/devtron-fe-common-lib 0.0.26-beta1 → 0.0.27
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/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +15 -0
- package/dist/Common/DebouncedSearch/Types.d.ts +13 -0
- package/dist/Common/DebouncedSearch/Utils.d.ts +1 -0
- package/dist/Common/Grid/Grid.d.ts +3 -0
- package/dist/Common/Grid/types.d.ts +10 -0
- package/dist/Common/ImageTags.Types.d.ts +0 -1
- package/dist/Common/ImageTags.d.ts +1 -1
- package/dist/Common/index.d.ts +2 -0
- package/dist/index.js +232 -114
- package/package.json +1 -1
- package/src/Assets/Icon/ic-error-cross.svg +8 -0
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +75 -0
- package/src/Common/DebouncedSearch/Types.ts +12 -0
- package/src/Common/DebouncedSearch/Utils.ts +19 -0
- package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +61 -0
- package/src/Common/Grid/Grid.tsx +39 -0
- package/src/Common/Grid/types.ts +9 -0
- package/src/Common/Helper.tsx +1 -1
- package/src/Common/ImageTags.Types.ts +0 -1
- package/src/Common/ImageTags.tsx +14 -1
- package/src/Common/index.ts +3 -1
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ImageButtonType, ImageTaggingContainerType } from './ImageTags.Types';
|
|
3
|
-
export declare const ImageTagsContainer: ({ ciPipelineId, artifactId, imageComment, imageReleaseTags, updateCurrentAppMaterial, appReleaseTagNames, setAppReleaseTagNames, tagsEditable, setTagsEditable, toggleCardMode, hideHardDelete, forceReInit,
|
|
3
|
+
export declare const ImageTagsContainer: ({ ciPipelineId, artifactId, imageComment, imageReleaseTags, updateCurrentAppMaterial, appReleaseTagNames, setAppReleaseTagNames, tagsEditable, setTagsEditable, toggleCardMode, hideHardDelete, forceReInit, }: ImageTaggingContainerType) => JSX.Element;
|
|
4
4
|
export declare const ImageTagButton: ({ text, isSoftDeleted, isEditing, onSoftDeleteClick, onHardDeleteClick, tagId, softDeleteTags, isSuperAdmin, duplicateTag, hideHardDelete, }: ImageButtonType) => JSX.Element;
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -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';
|