@devtron-labs/devtron-fe-common-lib 0.0.86-beta-3 → 0.0.86-beta-5

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.
Files changed (40) hide show
  1. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
  2. package/dist/Common/BreadCrumb/Types.d.ts +4 -0
  3. package/dist/Common/Hooks/useStateFilters/types.d.ts +6 -1
  4. package/dist/Common/MultiSelectCustomization.d.ts +8 -0
  5. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  6. package/dist/Common/SearchBar/types.d.ts +4 -0
  7. package/dist/Common/Types.d.ts +2 -1
  8. package/dist/Common/index.d.ts +1 -1
  9. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
  10. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
  11. package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
  12. package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
  13. package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
  14. package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
  15. package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
  16. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
  17. package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -0
  18. package/dist/Shared/Components/index.d.ts +1 -0
  19. package/dist/Shared/Helpers.d.ts +0 -1
  20. package/dist/Shared/constants.d.ts +0 -1
  21. package/dist/Shared/types.d.ts +0 -11
  22. package/dist/assets/index.css +1 -1
  23. package/dist/{cssMode-a93292aa.js → cssMode-c1dac4b3.js} +1 -1
  24. package/dist/{freemarker2-4f96513b.js → freemarker2-e42fcd3d.js} +1 -1
  25. package/dist/{handlebars-91b316ea.js → handlebars-9af9da18.js} +1 -1
  26. package/dist/{html-0ef96b7f.js → html-e085626a.js} +1 -1
  27. package/dist/{htmlMode-c7cb128e.js → htmlMode-0abe6afc.js} +1 -1
  28. package/dist/{index-f6d97633.js → index-d66e1356.js} +14363 -14131
  29. package/dist/index.js +315 -312
  30. package/dist/{javascript-54347635.js → javascript-e4855ccd.js} +1 -1
  31. package/dist/{jsonMode-dc66e4c8.js → jsonMode-62def64b.js} +1 -1
  32. package/dist/{liquid-a17f188e.js → liquid-9dfe0373.js} +1 -1
  33. package/dist/{mdx-56f6f7e8.js → mdx-2ac63bce.js} +1 -1
  34. package/dist/{python-fc7c0e5b.js → python-40e56d1c.js} +1 -1
  35. package/dist/{razor-e2d1ee22.js → razor-a701df24.js} +1 -1
  36. package/dist/{tsMode-17e4e4af.js → tsMode-520ce25d.js} +1 -1
  37. package/dist/{typescript-e54ac274.js → typescript-c7da4c29.js} +1 -1
  38. package/dist/{xml-951b0bf6.js → xml-fdd30d3b.js} +1 -1
  39. package/dist/{yaml-98a14e5e.js → yaml-cb66b2c5.js} +1 -1
  40. package/package.json +1 -1
@@ -1,5 +1,7 @@
1
+ import { BreadcrumbTextProps } from './Types';
1
2
  import { default as React } from 'react';
2
3
 
4
+ export declare const BreadcrumbText: ({ heading, isActive }: BreadcrumbTextProps) => JSX.Element;
3
5
  declare const Store: ({ children }: {
4
6
  children: any;
5
7
  }) => JSX.Element;
@@ -26,3 +26,7 @@ export interface Breadcrumbs {
26
26
  className?: string;
27
27
  }
28
28
  export type UseBreadcrumbOptionalProps = UseBreadcrumbProps | null;
29
+ export interface BreadcrumbTextProps {
30
+ heading: string;
31
+ isActive?: boolean;
32
+ }
@@ -2,5 +2,10 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
2
2
 
3
3
  export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
4
4
  }
5
- export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
5
+ export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize'> {
6
+ resetPagination: () => void;
7
+ }
8
+ export interface PaginationType {
9
+ pageSize: number;
10
+ offset: number;
6
11
  }
@@ -2,7 +2,15 @@ import { default as React } from 'react';
2
2
 
3
3
  export declare const Option: (props: any) => JSX.Element;
4
4
  export declare const SingleSelectOption: (props: any) => JSX.Element;
5
+ /**
6
+ * Multi value container
7
+ */
5
8
  export declare const MultiValueContainer: (props: any) => JSX.Element;
9
+ /**
10
+ *
11
+ * Multi value container with count
12
+ */
13
+ export declare const MultiValueContainerWithCount: (props: any) => JSX.Element;
6
14
  export declare const ClearIndicator: (props: any) => JSX.Element;
7
15
  export declare const MultiValueRemove: (props: any) => JSX.Element;
8
16
  export declare const MultiValueChipContainer: ({ validator, isAllSelected, ...props }: {
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
34
34
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
35
35
  * ```
36
36
  */
37
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -32,6 +32,10 @@ export interface SearchBarProps {
32
32
  * Timeout for the debounce handler to be triggered
33
33
  */
34
34
  debounceTimeout?: number;
35
+ /**
36
+ * Data test id for the search input
37
+ */
38
+ dataTestId?: string;
35
39
  /**
36
40
  * Hide the background and border of the search
37
41
  */
@@ -140,7 +140,8 @@ export interface ErrorScreenNotAuthorizedProps {
140
140
  }
141
141
  export declare enum ImageType {
142
142
  Large = "large",
143
- Medium = "medium"
143
+ Medium = "medium",
144
+ SMALL = "small"
144
145
  }
145
146
  export interface InfoColourBarType {
146
147
  message: React.ReactNode;
@@ -14,7 +14,7 @@ export * from './Modals/OpaqueModal';
14
14
  export * from './Modals/VisibleModal';
15
15
  export * from './Modals/VisibleModal2';
16
16
  export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
17
- export { default as BreadcrumbStore } from './BreadCrumb/BreadcrumbStore';
17
+ export { default as BreadcrumbStore, BreadcrumbText } from './BreadCrumb/BreadcrumbStore';
18
18
  export { default as RadioGroup } from './RadioGroup';
19
19
  export { default as RadioGroupItem } from './RadioGroupItem';
20
20
  export { default as PopupMenu } from './PopupMenu';
@@ -0,0 +1,3 @@
1
+ import { FeatureDescriptionModalProps } from './types';
2
+
3
+ export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { DescriptorProps } from './types';
2
+
3
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
4
+ export default FeatureTitleWithInfo;
@@ -0,0 +1,8 @@
1
+ export declare enum BUTTON_TEXT {
2
+ GOT_IT = "Got it",
3
+ VIEW_DOCUMENTATION = "View Documentation"
4
+ }
5
+ export declare enum IMAGE_VARIANT {
6
+ SMALL = "small",
7
+ LARGE = "large"
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './FeatureDescriptionModal';
2
+ export { default as FeatureTitleWithInfo } from './FeatureTitleWithInfo';
@@ -0,0 +1,19 @@
1
+ import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
2
+ import { ImageType } from '../../../Common';
3
+
4
+ export interface FeatureDescriptionModalProps {
5
+ title: string;
6
+ renderDescriptionContent?: () => JSX.Element;
7
+ closeModalText?: string;
8
+ docLink?: string;
9
+ closeModal?: () => void;
10
+ imageVariant?: ImageType;
11
+ SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
12
+ imageStyles?: React.CSSProperties;
13
+ }
14
+ export interface DescriptorProps extends FeatureDescriptionModalProps {
15
+ breadCrumbs: Breadcrumb[];
16
+ additionalContainerClasses?: string;
17
+ iconClassName?: string;
18
+ children?: React.ReactNode;
19
+ }
@@ -0,0 +1,6 @@
1
+ import { ImageType } from '../../../Common';
2
+
3
+ export declare const getImageSize: (imageType: ImageType) => {
4
+ width: string;
5
+ height: string;
6
+ };
@@ -0,0 +1,14 @@
1
+ export declare const CommonGroupedDropdownStyles: {
2
+ container: (base: any, state: any) => any;
3
+ control: (base: any, state: any) => any;
4
+ singleValue: (base: any) => any;
5
+ option: (base: any, state: any) => any;
6
+ valueContainer: (base: any) => any;
7
+ dropdownIndicator: (base: any, state: any) => any;
8
+ group: (base: any) => any;
9
+ groupHeading: (base: any) => any;
10
+ menuList: (base: any) => any;
11
+ multiValue: (base: any) => any;
12
+ multiValueLabel: (base: any) => any;
13
+ placeholder: (base: any) => any;
14
+ };
@@ -1 +1,2 @@
1
1
  export * from './utils';
2
+ export * from './constants';
@@ -13,6 +13,7 @@ export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (ba
13
13
  export declare const SelectOption: (props: any) => JSX.Element;
14
14
  export declare const LoadingIndicator: () => JSX.Element;
15
15
  export declare const GroupHeading: (props: any) => JSX.Element;
16
+ export declare const DropdownIndicator: (props: any) => JSX.Element;
16
17
  export declare const commonSelectStyles: {
17
18
  container: (base: any, state: any) => any;
18
19
  menuList: (base: any) => any;
@@ -17,3 +17,4 @@ export * from './Header';
17
17
  export * from './AnnouncementBanner';
18
18
  export * from './ButtonWithLoader';
19
19
  export * from './ButtonWithSelector';
20
+ export * from './FeatureDescription';
@@ -23,6 +23,5 @@ export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrd
23
23
  export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
24
24
  export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
25
25
  export declare const isNullOrUndefined: (value: unknown) => boolean;
26
- export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
27
26
  export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
28
27
  export {};
@@ -29,7 +29,6 @@ export declare const ModuleNameMap: {
29
29
  };
30
30
  export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
31
31
  export declare const API_TOKEN_PREFIX = "API-TOKEN:";
32
- export declare const DEFAULT_SECRET_PLACEHOLDER = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
33
32
  export declare enum PatchOperationType {
34
33
  replace = "replace",
35
34
  remove = "remove"
@@ -265,14 +265,3 @@ export declare enum AggregationKeys {
265
265
  Namespaces = "Namespaces"
266
266
  }
267
267
  export type AggregationKeysType = keyof typeof AggregationKeys;
268
- export declare enum GitOpsAuthModeType {
269
- SSH = "SSH",
270
- PASSWORD = "PASSWORD"
271
- }
272
- export interface BaseGitOpsType {
273
- authMode: GitOpsAuthModeType;
274
- sshKey: string;
275
- sshHost: string;
276
- username: string;
277
- }
278
- export type GitOpsFieldKeyType = 'host' | 'username' | 'token' | 'gitHubOrgId' | 'azureProjectName' | 'gitLabGroupId' | 'bitBucketWorkspaceId' | 'bitBucketProjectKey' | 'sshHost' | 'sshKey';