@devtron-labs/devtron-fe-common-lib 1.17.1 → 1.18.0-pre-0

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 (109) hide show
  1. package/dist/{@code-editor-CXQ0yUkc.js → @code-editor-BDktoNH9.js} +12111 -11264
  2. package/dist/@common-rjsf-B-rBhlAg.js +598 -0
  3. package/dist/{@framer-motion-j6RIjEIR.js → @framer-motion-BcOlP2tv.js} +1 -1
  4. package/dist/{@react-dates-BVyHiOGU.js → @react-dates-BkJF0N9I.js} +213 -213
  5. package/dist/{@react-select-BQNFZu0Y.js → @react-select-Dw-yFFvz.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-CuElh0mS.js → @react-virtualized-sticky-tree-YTxUTwpg.js} +1 -1
  7. package/dist/{@vendor-DbxoIktR.js → @vendor-Dkf3d5cm.js} +17434 -14725
  8. package/dist/Common/API/CoreAPI.d.ts +11 -0
  9. package/dist/Common/API/QueryClientProvider.d.ts +2 -0
  10. package/dist/Common/API/index.d.ts +2 -0
  11. package/dist/Common/API/reactQueryHooks.d.ts +6 -0
  12. package/dist/Common/Drawer/Drawer.d.ts +3 -2
  13. package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -1
  14. package/dist/Common/Hooks/UseIsTextTruncated/UseIsTextTruncated.d.ts +5 -0
  15. package/dist/Common/Hooks/UseIsTextTruncated/constants.d.ts +1 -0
  16. package/dist/Common/Hooks/UseIsTextTruncated/index.d.ts +1 -0
  17. package/dist/Common/Hooks/index.d.ts +1 -0
  18. package/dist/Common/Modals/Modal.d.ts +1 -2
  19. package/dist/Common/Modals/VisibleModal.d.ts +6 -8
  20. package/dist/Common/Modals/VisibleModal2.d.ts +4 -7
  21. package/dist/Common/RJSF/Form.d.ts +1 -1
  22. package/dist/Common/RJSF/constants.d.ts +1 -0
  23. package/dist/Common/RJSF/utils.d.ts +1 -1
  24. package/dist/Common/Tooltip/constants.d.ts +0 -1
  25. package/dist/Common/Types.d.ts +2 -0
  26. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -1
  27. package/dist/Shared/Components/ActionMenu/types.d.ts +2 -33
  28. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
  29. package/dist/Shared/Components/Backdrop/types.d.ts +2 -10
  30. package/dist/Shared/Components/Button/Button.component.d.ts +24 -12
  31. package/dist/Shared/Components/Button/types.d.ts +4 -0
  32. package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +3 -0
  33. package/dist/Shared/Components/ContextSwitcher/ContextSwitcher.d.ts +2 -0
  34. package/dist/Shared/Components/ContextSwitcher/index.d.ts +3 -0
  35. package/dist/Shared/Components/ContextSwitcher/types.d.ts +14 -0
  36. package/dist/Shared/Components/ContextSwitcher/utils.d.ts +5 -0
  37. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +3 -0
  38. package/dist/Shared/Components/DTFocusTrap/index.d.ts +2 -0
  39. package/dist/Shared/Components/DTFocusTrap/types.d.ts +33 -0
  40. package/dist/Shared/Components/DocLink/types.d.ts +4 -0
  41. package/dist/Shared/Components/DocLink/utils.d.ts +2 -1
  42. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  43. package/dist/Shared/Components/Header/types.d.ts +2 -0
  44. package/dist/Shared/Components/Icon/Icon.d.ts +5 -0
  45. package/dist/Shared/Components/Illustration/Illustration.d.ts +15 -0
  46. package/dist/Shared/Components/Illustration/IllustrationBase.d.ts +2 -0
  47. package/dist/Shared/Components/Illustration/index.d.ts +1 -0
  48. package/dist/Shared/Components/Illustration/types.d.ts +27 -0
  49. package/dist/Shared/Components/Popover/types.d.ts +4 -0
  50. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
  51. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  52. package/dist/Shared/Components/PortalContainer/PortalContainer.d.ts +5 -0
  53. package/dist/Shared/Components/PortalContainer/index.d.ts +1 -0
  54. package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +6 -3
  55. package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +1 -1
  56. package/dist/Shared/Components/Security/SecurityModal/index.d.ts +2 -2
  57. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +0 -6
  58. package/dist/Shared/Components/Security/types.d.ts +5 -1
  59. package/dist/Shared/Components/SelectPicker/GroupedFilterSelectPicker.d.ts +2 -0
  60. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  61. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
  62. package/dist/Shared/Components/SelectPicker/type.d.ts +7 -2
  63. package/dist/Shared/Components/Table/InternalTable.d.ts +2 -2
  64. package/dist/Shared/Components/Table/Table.component.d.ts +2 -2
  65. package/dist/Shared/Components/Table/TableContent.d.ts +2 -2
  66. package/dist/Shared/Components/Table/index.d.ts +1 -1
  67. package/dist/Shared/Components/Table/types.d.ts +56 -67
  68. package/dist/Shared/Components/Table/useTableWithKeyboardShortcuts.d.ts +2 -2
  69. package/dist/Shared/Components/Table/utils.d.ts +6 -6
  70. package/dist/Shared/Components/TempAppWindow/TempAppWindow.d.ts +1 -0
  71. package/dist/Shared/Components/TempAppWindow/index.d.ts +1 -0
  72. package/dist/Shared/Components/TrailingItem/TrailingItem.component.d.ts +3 -0
  73. package/dist/Shared/Components/TrailingItem/index.d.ts +2 -0
  74. package/dist/Shared/Components/TrailingItem/types.d.ts +39 -0
  75. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +3 -0
  76. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +3 -0
  77. package/dist/Shared/Components/TreeView/constants.d.ts +4 -0
  78. package/dist/Shared/Components/TreeView/index.d.ts +2 -0
  79. package/dist/Shared/Components/TreeView/types.d.ts +204 -0
  80. package/dist/Shared/Components/TreeView/utils.d.ts +22 -0
  81. package/dist/Shared/Components/UserIdentifier/UserIdentifier.d.ts +1 -1
  82. package/dist/Shared/Components/UserIdentifier/types.d.ts +5 -0
  83. package/dist/Shared/Components/index.d.ts +5 -0
  84. package/dist/Shared/Helpers.d.ts +2 -2
  85. package/dist/Shared/Hooks/useUserPreferences/constants.d.ts +2 -0
  86. package/dist/Shared/Hooks/useUserPreferences/index.d.ts +1 -1
  87. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +22 -2
  88. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +24 -11
  89. package/dist/Shared/Hooks/useUserPreferences/useUserPrefrences.d.ts +5 -3
  90. package/dist/Shared/Hooks/useUserPreferences/utils.d.ts +3 -4
  91. package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
  92. package/dist/Shared/Providers/MainContextProvider/types.d.ts +18 -0
  93. package/dist/Shared/types.d.ts +0 -8
  94. package/dist/assets/@code-editor.css +1 -1
  95. package/dist/assets/@common-rjsf.css +1 -1
  96. package/dist/assets/ic-activity.abf111c7.svg +3 -0
  97. package/dist/assets/ic-folder.8038c019.svg +3 -0
  98. package/dist/assets/ic-helm-app.a20cfeb3.svg +4 -0
  99. package/dist/assets/ic-list-bullets.91aab240.svg +4 -0
  100. package/dist/assets/ic-namespace.8980221f.svg +3 -0
  101. package/dist/assets/img-code.fa00ae8e.webp +0 -0
  102. package/dist/assets/img-man-on-rocket.ab6bef97.webp +0 -0
  103. package/dist/assets/img-no-result.51284acb.webp +0 -0
  104. package/dist/index.d.ts +22 -0
  105. package/dist/index.js +811 -793
  106. package/package.json +7 -3
  107. package/dist/@common-rjsf-CDMxkHD5.js +0 -609
  108. package/dist/assets/empty-noresult@2x.022ec87c.png +0 -0
  109. package/dist/assets/ic-errorInfo.d8d674b8.svg +0 -23
@@ -7,6 +7,17 @@ declare class CoreAPI {
7
7
  timeout: number;
8
8
  constructor({ handleLogout, host, timeout, handleRedirectToLicenseActivation }: CoreAPIConstructorParamsType);
9
9
  private fetchAPI;
10
+ /**
11
+ * Merges multiple AbortSignals into a single AbortSignal that aborts
12
+ * as soon as any of the input signals abort.
13
+ *
14
+ * This is useful when you want to race multiple async cancellation signals,
15
+ * for example, to support both a global timeout and a user-triggered abort.
16
+ *
17
+ * @param signals - AbortSignals to merge.
18
+ * @returns An AbortSignal that aborts if any input signal aborts.
19
+ */
20
+ private static mergeAbortSignals;
10
21
  private fetchInTime;
11
22
  post: <T = any, K = object>(url: string, data: K, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType<T>>;
12
23
  put: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
@@ -0,0 +1,2 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const QueryClientProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
@@ -1,3 +1,5 @@
1
1
  export declare const post: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions, isMultipartRequest?: boolean) => Promise<import('..').ResponseType<T>>, put: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, patch: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, get: <T = any>(url: string, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, trash: <T = any, K = object>(url: string, data?: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>;
2
2
  export { default as CoreAPI } from './CoreAPI';
3
+ export { QueryClientProvider } from './QueryClientProvider';
4
+ export * from './reactQueryHooks';
3
5
  export { abortPreviousRequests, getIsRequestAborted, handleRedirectToLicenseActivation } from './utils';
@@ -0,0 +1,6 @@
1
+ import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { ServerErrors } from '../ServerError';
3
+ import { ResponseType } from '../Types';
4
+ export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<TQueryFnData>, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
5
+ export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
6
+ export { useQueryClient };
@@ -1,4 +1,5 @@
1
- export interface DrawerProps {
1
+ import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
2
+ export interface DrawerProps extends Pick<DTFocusTrapType, 'initialFocus'> {
2
3
  position: 'left' | 'right' | 'bottom' | 'top';
3
4
  children?: any;
4
5
  backdrop?: boolean;
@@ -11,4 +12,4 @@ export interface DrawerProps {
11
12
  onEscape?: (e?: any) => void;
12
13
  disableTransition?: boolean;
13
14
  }
14
- export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, onClose, disableTransition, }: DrawerProps) => JSX.Element;
15
+ export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, onClose, disableTransition, initialFocus, }: DrawerProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { GenericEmptyStateType } from '../Types';
2
- declare const GenericEmptyState: ({ title, image, subTitle, isButtonAvailable, classname, styles, imageType, renderButton, imageClassName, children, SvgImage, noImage, layout, contentClassName, imageStyles, }: GenericEmptyStateType) => JSX.Element;
2
+ declare const GenericEmptyState: ({ title, image, subTitle, isButtonAvailable, classname, styles, imageType, renderButton, imageClassName, children, SvgImage, noImage, layout, contentClassName, imageStyles, imgName, }: GenericEmptyStateType) => JSX.Element;
3
3
  export default GenericEmptyState;
@@ -0,0 +1,5 @@
1
+ declare const useIsTextTruncated: () => {
2
+ isTextTruncated: boolean;
3
+ handleMouseEnterEvent: import('react').MouseEventHandler<Element>;
4
+ };
5
+ export default useIsTextTruncated;
@@ -0,0 +1 @@
1
+ export declare const SUB_PIXEL_ERROR = 1;
@@ -0,0 +1 @@
1
+ export { default as useIsTextTruncated } from './UseIsTextTruncated';
@@ -1,5 +1,6 @@
1
1
  export { useClickOutside } from './UseClickOutside/UseClickOutside';
2
2
  export { useGetUserRoles } from './UseGetUserRoles';
3
+ export { useIsTextTruncated } from './UseIsTextTruncated';
3
4
  export * from './UseRegisterShortcut';
4
5
  export * from './useStateFilters';
5
6
  export * from './useUrlFilters';
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ModalType } from '../Types';
3
2
  /**
4
3
  * @deprecated Use VisibleModal instead
5
4
  */
6
- export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
5
+ export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => JSX.Element;
@@ -1,17 +1,15 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
+ import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
2
3
  export declare class VisibleModal extends React.Component<{
3
4
  className?: string;
4
5
  parentClassName?: string;
5
6
  noBackground?: boolean;
6
- close?: (e: any) => void;
7
- onEscape?: (e: any) => void;
7
+ close?: (e?: any) => void;
8
+ onEscape?: (e?: any) => void;
9
+ initialFocus?: DTFocusTrapType['initialFocus'];
8
10
  }> {
9
- modalRef: HTMLElement;
10
- previousActiveElement: HTMLElement | null;
11
11
  constructor(props: any);
12
- escFunction(event: any): void;
13
- componentDidMount(): void;
14
- componentWillUnmount(): void;
12
+ escFunction(): void;
15
13
  handleBodyClick: (e: SyntheticEvent) => void;
16
- render(): React.ReactPortal;
14
+ render(): JSX.Element;
17
15
  }
@@ -1,14 +1,11 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
+ import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
2
3
  export declare class VisibleModal2 extends React.Component<{
3
4
  className?: string;
4
- close?: (e: any) => void;
5
+ close?: (e?: any) => void;
6
+ initialFocus?: DTFocusTrapType['initialFocus'];
5
7
  }> {
6
- modalRef: HTMLElement;
7
- previousActiveElement: HTMLElement | null;
8
8
  constructor(props: any);
9
- escFunction(event: any): void;
10
- componentDidMount(): void;
11
- componentWillUnmount(): void;
12
9
  handleBodyClick: (e: SyntheticEvent) => void;
13
- render(): React.ReactPortal;
10
+ render(): JSX.Element;
14
11
  }
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "method" | "action" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "acceptCharset" | "action" | "method" | "noValidate" | "tagName" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
@@ -9,3 +9,4 @@ export declare const HIDE_SUBMIT_BUTTON_UI_SCHEMA: {
9
9
  norender: boolean;
10
10
  };
11
11
  };
12
+ export declare const RJSF_FORM_SELECT_PORTAL_TARGET_ID = "rjsf-form-select-portal-target";
@@ -13,7 +13,7 @@ export declare const getRedirectionProps: (url: string) => React.AnchorHTMLAttri
13
13
  /**
14
14
  * Infers the type for json schema from value type
15
15
  */
16
- export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
16
+ export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "null" | "array";
17
17
  export declare const conformPathToPointers: (path: string) => string;
18
18
  export declare const parseSchemaHiddenType: (hiddenSchema: HiddenType) => MetaHiddenType;
19
19
  export declare const getSchemaPathToUpdatePathMap: (schema: RJSFFormSchema) => Record<string, string>;
@@ -1,4 +1,3 @@
1
1
  export declare const TOOLTIP_CONTENTS: {
2
2
  INVALID_INPUT: string;
3
3
  };
4
- export declare const SUB_PIXEL_ERROR = 1;
@@ -4,6 +4,7 @@ import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
5
  import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType } from '../Shared';
6
6
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
7
+ import { IllustrationName } from '../Shared/Components';
7
8
  /**
8
9
  * Generic response type object with support for overriding the result type
9
10
  *
@@ -118,6 +119,7 @@ export interface InfoIconTippyProps<T extends boolean = false> extends Pick<Tipp
118
119
  }
119
120
  export interface GenericEmptyStateType {
120
121
  title: ReactNode;
122
+ imgName?: IllustrationName;
121
123
  image?: any;
122
124
  classname?: string;
123
125
  subTitle?: ReactNode;
@@ -17,7 +17,6 @@ export interface ApiResourceType {
17
17
  }
18
18
  export interface K8SObjectBaseType {
19
19
  name: string;
20
- isExpanded: boolean;
21
20
  }
22
21
  interface K8sRequestResourceIdentifierType {
23
22
  groupVersionKind: GVKType;
@@ -1,12 +1,8 @@
1
- import { LegacyRef, MouseEvent, ReactElement, Ref } from 'react';
1
+ import { LegacyRef, MouseEvent, Ref } from 'react';
2
2
  import { LinkProps } from 'react-router-dom';
3
- import { OmitNever } from '../../types';
4
- import { ButtonProps } from '../Button';
5
- import { IconsProps } from '../Icon';
6
- import { NumbersCountProps } from '../NumbersCount';
7
3
  import { PopoverProps, UsePopoverProps } from '../Popover';
8
4
  import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
9
- import { DTSwitchProps } from '../Switch';
5
+ import { ActionMenuItemIconType, TrailingItemType } from '../TrailingItem';
10
6
  type ConditionalActionMenuComponentType = {
11
7
  /**
12
8
  * @default 'button'
@@ -25,33 +21,6 @@ type ConditionalActionMenuComponentType = {
25
21
  to: LinkProps['to'];
26
22
  href?: never;
27
23
  };
28
- type ActionMenuItemIconType = Pick<IconsProps, 'name'> & {
29
- /** @default 'N800' */
30
- color?: IconsProps['color'];
31
- };
32
- type TrailingItemType = {
33
- type: 'icon';
34
- config: ActionMenuItemIconType;
35
- } | {
36
- type: 'text';
37
- config: {
38
- value: string;
39
- icon?: ActionMenuItemIconType;
40
- };
41
- } | {
42
- type: 'counter';
43
- config: {
44
- value: NumbersCountProps['count'];
45
- };
46
- } | {
47
- type: 'switch';
48
- config: Pick<DTSwitchProps, 'ariaLabel' | 'isChecked' | 'indeterminate' | 'isDisabled' | 'isLoading' | 'name' | 'onChange' | 'tooltipContent'>;
49
- } | {
50
- type: 'button';
51
- config: OmitNever<Omit<Extract<ButtonProps, {
52
- icon: ReactElement;
53
- }>, 'size' | 'variant'>>;
54
- };
55
24
  export type ActionMenuItemType<T extends string | number = string | number> = Omit<SelectPickerOptionType, 'label' | 'value' | 'endIcon' | 'startIcon'> & {
56
25
  /** A unique identifier for the action menu item. */
57
26
  id: T;
@@ -1,3 +1,3 @@
1
1
  import { BackdropProps } from './types';
2
- declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount }: BackdropProps) => import('react').ReactPortal;
2
+ declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount, deactivateFocusOnEscape, initialFocus, }: BackdropProps) => import('react').ReactPortal;
3
3
  export default Backdrop;
@@ -1,18 +1,10 @@
1
1
  import { MouseEvent, ReactNode } from 'react';
2
- export interface BackdropProps {
2
+ import { DTFocusTrapType } from '../DTFocusTrap';
3
+ export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape'> {
3
4
  /**
4
5
  * The content to be rendered within the backdrop component.
5
6
  */
6
7
  children: ReactNode;
7
- /**
8
- * Callback function that gets triggered when the Escape key is pressed. \
9
- * Should be wrapped in useCallback to prevent unnecessary re-renders.
10
- * @example
11
- * const handleEscape = useCallback(() => {
12
- * // Handle escape key press
13
- * }, []);
14
- */
15
- onEscape: () => void;
16
8
  /**
17
9
  * Callback function that gets triggered when the backdrop is clicked.
18
10
  * Useful for dismissing modals or other overlay content.
@@ -73,6 +73,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
73
73
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
74
74
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
75
75
  } & {
76
+ id?: string;
76
77
  variant?: ButtonVariantType;
77
78
  size?: ComponentSizeType;
78
79
  style?: ButtonStyleType;
@@ -99,7 +100,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
99
100
  startIcon?: import('react').ReactElement;
100
101
  endIcon?: import('react').ReactElement;
101
102
  fontWeight?: "bold" | "normal";
102
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
103
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
103
104
  ref?: import('react').Ref<HTMLAnchorElement>;
104
105
  component: ButtonComponentType.anchor;
105
106
  linkProps?: never;
@@ -107,6 +108,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
107
108
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
108
109
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
109
110
  } & {
111
+ id?: string;
110
112
  variant?: ButtonVariantType;
111
113
  size?: ComponentSizeType;
112
114
  style?: ButtonStyleType;
@@ -133,7 +135,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
133
135
  startIcon?: never;
134
136
  endIcon?: never;
135
137
  fontWeight?: never;
136
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
138
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
137
139
  ref?: import('react').Ref<HTMLAnchorElement>;
138
140
  component: ButtonComponentType.anchor;
139
141
  linkProps?: never;
@@ -141,6 +143,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
141
143
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
142
144
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
143
145
  } & {
146
+ id?: string;
144
147
  variant?: ButtonVariantType;
145
148
  size?: ComponentSizeType;
146
149
  style?: ButtonStyleType;
@@ -161,7 +164,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
161
164
  startIcon?: import('react').ReactElement;
162
165
  endIcon?: import('react').ReactElement;
163
166
  fontWeight?: "bold" | "normal";
164
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
167
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
165
168
  ref?: import('react').Ref<HTMLAnchorElement>;
166
169
  component: ButtonComponentType.anchor;
167
170
  linkProps?: never;
@@ -169,6 +172,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
169
172
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
170
173
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
171
174
  } & {
175
+ id?: string;
172
176
  variant?: ButtonVariantType;
173
177
  size?: ComponentSizeType;
174
178
  style?: ButtonStyleType;
@@ -189,7 +193,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
189
193
  startIcon?: never;
190
194
  endIcon?: never;
191
195
  fontWeight?: never;
192
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
196
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
193
197
  ref?: import('react').Ref<HTMLButtonElement>;
194
198
  component?: ButtonComponentType.button;
195
199
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -197,6 +201,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
197
201
  anchorProps?: never;
198
202
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
199
203
  } & {
204
+ id?: string;
200
205
  variant?: ButtonVariantType;
201
206
  size?: ComponentSizeType;
202
207
  style?: ButtonStyleType;
@@ -223,7 +228,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
223
228
  startIcon?: import('react').ReactElement;
224
229
  endIcon?: import('react').ReactElement;
225
230
  fontWeight?: "bold" | "normal";
226
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
231
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
227
232
  ref?: import('react').Ref<HTMLButtonElement>;
228
233
  component?: ButtonComponentType.button;
229
234
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -231,6 +236,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
231
236
  anchorProps?: never;
232
237
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
233
238
  } & {
239
+ id?: string;
234
240
  variant?: ButtonVariantType;
235
241
  size?: ComponentSizeType;
236
242
  style?: ButtonStyleType;
@@ -257,7 +263,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
257
263
  startIcon?: never;
258
264
  endIcon?: never;
259
265
  fontWeight?: never;
260
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
266
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
261
267
  ref?: import('react').Ref<HTMLButtonElement>;
262
268
  component?: ButtonComponentType.button;
263
269
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -265,6 +271,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
265
271
  anchorProps?: never;
266
272
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
267
273
  } & {
274
+ id?: string;
268
275
  variant?: ButtonVariantType;
269
276
  size?: ComponentSizeType;
270
277
  style?: ButtonStyleType;
@@ -285,7 +292,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
285
292
  startIcon?: import('react').ReactElement;
286
293
  endIcon?: import('react').ReactElement;
287
294
  fontWeight?: "bold" | "normal";
288
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
295
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
289
296
  ref?: import('react').Ref<HTMLButtonElement>;
290
297
  component?: ButtonComponentType.button;
291
298
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -293,6 +300,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
293
300
  anchorProps?: never;
294
301
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
295
302
  } & {
303
+ id?: string;
296
304
  variant?: ButtonVariantType;
297
305
  size?: ComponentSizeType;
298
306
  style?: ButtonStyleType;
@@ -313,7 +321,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
313
321
  startIcon?: never;
314
322
  endIcon?: never;
315
323
  fontWeight?: never;
316
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
324
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
317
325
  ref?: import('react').Ref<HTMLAnchorElement>;
318
326
  component: ButtonComponentType.link;
319
327
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -321,6 +329,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
321
329
  anchorProps?: never;
322
330
  onClick?: import('react-router-dom').LinkProps["onClick"];
323
331
  } & {
332
+ id?: string;
324
333
  variant?: ButtonVariantType;
325
334
  size?: ComponentSizeType;
326
335
  style?: ButtonStyleType;
@@ -347,7 +356,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
347
356
  startIcon?: import('react').ReactElement;
348
357
  endIcon?: import('react').ReactElement;
349
358
  fontWeight?: "bold" | "normal";
350
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
359
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
351
360
  ref?: import('react').Ref<HTMLAnchorElement>;
352
361
  component: ButtonComponentType.link;
353
362
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -355,6 +364,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
355
364
  anchorProps?: never;
356
365
  onClick?: import('react-router-dom').LinkProps["onClick"];
357
366
  } & {
367
+ id?: string;
358
368
  variant?: ButtonVariantType;
359
369
  size?: ComponentSizeType;
360
370
  style?: ButtonStyleType;
@@ -381,7 +391,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
381
391
  startIcon?: never;
382
392
  endIcon?: never;
383
393
  fontWeight?: never;
384
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
394
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
385
395
  ref?: import('react').Ref<HTMLAnchorElement>;
386
396
  component: ButtonComponentType.link;
387
397
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -389,6 +399,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
389
399
  anchorProps?: never;
390
400
  onClick?: import('react-router-dom').LinkProps["onClick"];
391
401
  } & {
402
+ id?: string;
392
403
  variant?: ButtonVariantType;
393
404
  size?: ComponentSizeType;
394
405
  style?: ButtonStyleType;
@@ -409,7 +420,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
409
420
  startIcon?: import('react').ReactElement;
410
421
  endIcon?: import('react').ReactElement;
411
422
  fontWeight?: "bold" | "normal";
412
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
423
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
413
424
  ref?: import('react').Ref<HTMLAnchorElement>;
414
425
  component: ButtonComponentType.link;
415
426
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -417,6 +428,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
417
428
  anchorProps?: never;
418
429
  onClick?: import('react-router-dom').LinkProps["onClick"];
419
430
  } & {
431
+ id?: string;
420
432
  variant?: ButtonVariantType;
421
433
  size?: ComponentSizeType;
422
434
  style?: ButtonStyleType;
@@ -437,5 +449,5 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
437
449
  startIcon?: never;
438
450
  endIcon?: never;
439
451
  fontWeight?: never;
440
- }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy">) & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
452
+ }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy">) & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
441
453
  export default Button;
@@ -61,6 +61,10 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
61
61
  anchorProps?: never;
62
62
  onClick?: ButtonHTMLAttributes<HTMLButtonElement>['onClick'];
63
63
  }) & {
64
+ /**
65
+ * id of button
66
+ */
67
+ id?: string;
64
68
  /**
65
69
  * Variant of the button
66
70
  *
@@ -1,2 +1,5 @@
1
1
  import { CollapsibleListProps, TabOptions } from './CollapsibleList.types';
2
+ /**
3
+ * @deprecated - Please use `TreeView` component instead.
4
+ */
2
5
  export declare const CollapsibleList: <TabType extends TabOptions>({ config, tabType, onCollapseBtnClick, }: CollapsibleListProps<TabType>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ContextSwitcherTypes } from './types';
2
+ export declare const ContextSwitcher: ({ inputId, options, inputValue, onInputChange, isLoading, value, onChange, placeholder, filterOption, formatOptionLabel, optionListError, reloadOptionList, classNamePrefix, }: ContextSwitcherTypes) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { ContextSwitcher } from './ContextSwitcher';
2
+ export type { ContextSwitcherTypes, RecentlyVisitedGroupedOptionsType, RecentlyVisitedOptions } from './types';
3
+ export { getMinCharSearchPlaceholderGroup } from './utils';
@@ -0,0 +1,14 @@
1
+ import { GroupBase } from 'react-select';
2
+ import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
3
+ export interface ContextSwitcherTypes extends Pick<SelectPickerProps, 'placeholder' | 'onChange' | 'value' | 'isLoading' | 'onInputChange' | 'inputValue' | 'inputId' | 'formatOptionLabel' | 'filterOption' | 'optionListError' | 'reloadOptionList' | 'classNamePrefix'> {
4
+ options: GroupBase<SelectPickerOptionType<string | number>>[];
5
+ isAppDataAvailable?: boolean;
6
+ }
7
+ export interface RecentlyVisitedOptions extends SelectPickerOptionType<number> {
8
+ isDisabled?: boolean;
9
+ isRecentlyVisited?: boolean;
10
+ }
11
+ export interface RecentlyVisitedGroupedOptionsType extends GroupBase<SelectPickerOptionType<number>> {
12
+ label: string;
13
+ options: RecentlyVisitedOptions[];
14
+ }
@@ -0,0 +1,5 @@
1
+ import { SelectPickerProps } from '../SelectPicker';
2
+ import { RecentlyVisitedGroupedOptionsType, RecentlyVisitedOptions } from './types';
3
+ export declare const getDisabledOptions: (option: RecentlyVisitedOptions) => SelectPickerProps["isDisabled"];
4
+ export declare const customSelectFilterOption: SelectPickerProps['filterOption'];
5
+ export declare const getMinCharSearchPlaceholderGroup: (resourceKind: string) => RecentlyVisitedGroupedOptionsType;
@@ -0,0 +1,3 @@
1
+ import { DTFocusTrapType } from './types';
2
+ declare const DTFocusTrap: ({ onEscape, deactivateFocusOnEscape, children, initialFocus, }: DTFocusTrapType) => JSX.Element;
3
+ export default DTFocusTrap;
@@ -0,0 +1,2 @@
1
+ export { default as DTFocusTrap } from './DTFocusTrap';
2
+ export type { DTFocusTrapType } from './types';
@@ -0,0 +1,33 @@
1
+ import { ReactNode } from 'react';
2
+ type FocusTargetValue = HTMLElement | SVGElement | string;
3
+ type FocusTargetValueOrFalse = FocusTargetValue | false;
4
+ /**
5
+ * A DOM node, a selector string (which will be passed to
6
+ * `document.querySelector()` to find the DOM node), `false` to explicitly indicate
7
+ * an opt-out, or a function that returns a DOM node or `false`.
8
+ */
9
+ type FocusTargetOrFalse = FocusTargetValueOrFalse | (() => FocusTargetValueOrFalse);
10
+ export interface DTFocusTrapType {
11
+ /**
12
+ * Callback function that gets triggered when the Escape key is pressed. \
13
+ * Should be wrapped in useCallback to prevent unnecessary re-renders.
14
+ * @example
15
+ * const handleEscape = useCallback(() => {
16
+ * // Handle escape key press
17
+ * }, []);
18
+ */
19
+ onEscape: (e?: KeyboardEvent | MouseEvent) => void;
20
+ /**
21
+ * If focus should be deactivated on escape, pass false when escape is disabled or has no action
22
+ * true for cases when we are closing modals or dialogs
23
+ * @default true
24
+ */
25
+ deactivateFocusOnEscape?: boolean;
26
+ children: ReactNode;
27
+ /**
28
+ * With this option, you can specify an element to receive the initial focus, or use false for no initially focused element at all.
29
+ * Setting this option to undefined (or to a function that returns undefined) will result in the first element in the focus trap's tab order receiving focus.
30
+ */
31
+ initialFocus?: FocusTargetOrFalse | undefined | (() => void);
32
+ }
33
+ export {};
@@ -17,3 +17,7 @@ export type DocLinkProps<T extends boolean = false> = Pick<ButtonProps<ButtonCom
17
17
  */
18
18
  openInNewTab?: boolean;
19
19
  };
20
+ export interface URLWithUTMSource {
21
+ isEnterprise: BaseDocLink<false>['isEnterprise'];
22
+ link?: string;
23
+ }
@@ -1,2 +1,3 @@
1
- import { BaseDocLink } from './types';
1
+ import { BaseDocLink, URLWithUTMSource } from './types';
2
+ export declare const getUTMPathAppended: ({ isEnterprise, link }: URLWithUTMSource) => string;
2
3
  export declare const getDocumentationUrl: <T extends boolean = false>({ docLinkKey, isEnterprise, isExternalLink, isLicenseDashboard, }: BaseDocLink<T>) => string;
@@ -1,3 +1,3 @@
1
1
  import { PageHeaderType } from './types';
2
- declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, tippyProps, }: PageHeaderType) => JSX.Element;
2
+ declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, }: PageHeaderType) => JSX.Element;
3
3
  export default PageHeader;
@@ -4,6 +4,7 @@ import { ActionMenuProps } from '../ActionMenu';
4
4
  import { DOCUMENTATION } from '../DocLink';
5
5
  export interface PageHeaderType {
6
6
  headerName?: string;
7
+ headerImage?: string;
7
8
  showTabs?: boolean;
8
9
  additionalHeaderInfo?: () => JSX.Element;
9
10
  renderHeaderTabs?: () => JSX.Element;
@@ -17,6 +18,7 @@ export interface PageHeaderType {
17
18
  tippyMessage?: string;
18
19
  onClickTippyButton?: () => void;
19
20
  };
21
+ onClose?: () => void;
20
22
  }
21
23
  export interface ServerInfo {
22
24
  currentVersion: string;