@devtron-labs/devtron-fe-common-lib 1.18.0 → 1.18.1-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.
- package/dist/{@code-editor-Cmi_dLiG.js → @code-editor-DMWjznh4.js} +8476 -8270
- package/dist/{@common-rjsf-DTSwvp93.js → @common-rjsf-BE1x3bxN.js} +2 -2
- package/dist/{@framer-motion-j6RIjEIR.js → @framer-motion-DZveCoIL.js} +1 -1
- package/dist/{@react-dates-BVyHiOGU.js → @react-dates-CZ1bNWJM.js} +213 -213
- package/dist/{@react-select-BQNFZu0Y.js → @react-select-DS68hCUM.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CuElh0mS.js → @react-virtualized-sticky-tree-V-8klKy9.js} +1 -1
- package/dist/{@vendor-DbxoIktR.js → @vendor-3ORIJA0h.js} +22139 -16828
- package/dist/Common/API/CoreAPI.d.ts +11 -0
- package/dist/Common/API/QueryClientProvider.d.ts +2 -0
- package/dist/Common/API/index.d.ts +2 -0
- package/dist/Common/API/reactQueryHooks.d.ts +6 -0
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Common/Drawer/Drawer.d.ts +3 -2
- package/dist/Common/Modals/Modal.d.ts +1 -2
- package/dist/Common/Modals/VisibleModal.d.ts +6 -8
- package/dist/Common/Modals/VisibleModal2.d.ts +4 -7
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +6 -0
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +2 -10
- package/dist/Shared/Components/Button/Button.component.d.ts +24 -12
- package/dist/Shared/Components/Button/types.d.ts +4 -0
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +3 -0
- package/dist/Shared/Components/DTFocusTrap/index.d.ts +2 -0
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +33 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -0
- package/dist/Shared/Components/Popover/types.d.ts +4 -0
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/constants.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +13 -2
- package/dist/Shared/Components/Table/types.d.ts +1 -0
- package/dist/Shared/Components/TempAppWindow/TempAppWindow.d.ts +1 -0
- package/dist/Shared/Components/TempAppWindow/index.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +1 -2
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +18 -0
- package/dist/Shared/types.d.ts +0 -4
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.d.ts +21 -0
- package/dist/index.js +549 -544
- package/package.json +6 -2
@@ -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>>;
|
@@ -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 };
|
@@ -2,7 +2,7 @@ export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
|
|
2
2
|
export declare const Host: string;
|
3
3
|
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
4
4
|
export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
|
5
|
-
export declare const DOCUMENTATION_VERSION = "/devtron/
|
5
|
+
export declare const DOCUMENTATION_VERSION = "/devtron/v1.7";
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
7
7
|
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
8
8
|
export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/dashboard";
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
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,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) =>
|
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
|
7
|
-
onEscape?: (e
|
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(
|
13
|
-
componentDidMount(): void;
|
14
|
-
componentWillUnmount(): void;
|
12
|
+
escFunction(): void;
|
15
13
|
handleBodyClick: (e: SyntheticEvent) => void;
|
16
|
-
render():
|
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
|
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():
|
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" | "
|
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>>>;
|
@@ -33,5 +33,5 @@ import { SearchBarProps } from './types';
|
|
33
33
|
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
34
34
|
* ```
|
35
35
|
*/
|
36
|
-
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, }: SearchBarProps) => JSX.Element;
|
36
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, keyboardShortcut, }: SearchBarProps) => JSX.Element;
|
37
37
|
export default SearchBar;
|
@@ -46,4 +46,10 @@ export interface SearchBarProps {
|
|
46
46
|
* @default 'ComponentSizeType.medium'
|
47
47
|
*/
|
48
48
|
size?: ComponentSizeType.medium | ComponentSizeType.large;
|
49
|
+
/**
|
50
|
+
* Renders the keyboard shortcut key that opens the select picker \
|
51
|
+
* Shortcut key needs to be defined first in order to use it.
|
52
|
+
* @note This is displayed in place of the dropdown indicator
|
53
|
+
*/
|
54
|
+
keyboardShortcut?: string;
|
49
55
|
}
|
@@ -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
|
-
|
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
|
*
|
@@ -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 {};
|
@@ -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;
|
@@ -56,6 +56,10 @@ export interface UsePopoverProps {
|
|
56
56
|
* @default 'menu'
|
57
57
|
*/
|
58
58
|
variant?: 'menu' | 'overlay';
|
59
|
+
/**
|
60
|
+
* Disable popover close
|
61
|
+
*/
|
62
|
+
disableClose?: boolean;
|
59
63
|
}
|
60
64
|
/**
|
61
65
|
* Represents the return type of the `usePopover` hook, providing properties and methods
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { UsePopoverProps, UsePopoverReturnType } from './types';
|
2
|
-
export declare const usePopover: ({ id, position, alignment, width, variant, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
|
2
|
+
export declare const usePopover: ({ id, position, alignment, width, variant, onOpen, onPopoverKeyDown, onTriggerKeyDown, disableClose, }: UsePopoverProps) => UsePopoverReturnType;
|
@@ -88,5 +88,5 @@ export declare const getPopoverActualPositionAlignment: ({ position, alignment,
|
|
88
88
|
popoverRect: DOMRect;
|
89
89
|
}) => {
|
90
90
|
fallbackPosition: "top" | "bottom" | "right" | "left";
|
91
|
-
fallbackAlignment: "
|
91
|
+
fallbackAlignment: "start" | "middle" | "end";
|
92
92
|
};
|
@@ -133,5 +133,5 @@ import { SelectPickerProps } from './type';
|
|
133
133
|
* />
|
134
134
|
* ```
|
135
135
|
*/
|
136
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef: refFromConsumer, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, menuListFooterConfig, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, borderConfig, borderRadiusConfig, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, autoFocus, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
136
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, keyboardShortcut, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef: refFromConsumer, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, menuListFooterConfig, isCreatable, onCreateOption, closeMenuOnSelect: _closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, borderConfig, borderRadiusConfig, labelTippyCustomizedConfig, labelTooltipConfig, hideFormFieldInfo, autoFocus, showCheckboxForMultiSelect, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
137
137
|
export default SelectPicker;
|
@@ -3,3 +3,4 @@ import { SelectPickerProps } from './type';
|
|
3
3
|
export declare const SELECT_PICKER_FONT_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['fontSize']>;
|
4
4
|
export declare const SELECT_PICKER_ICON_SIZE_MAP: Record<SelectPickerProps['size'], Pick<CSSProperties, 'width' | 'height'>>;
|
5
5
|
export declare const SELECT_PICKER_CONTROL_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['minHeight']>;
|
6
|
+
export declare const SELECT_PICKER_MULTI_VALUE_LABEL_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['lineHeight']>;
|
@@ -70,6 +70,17 @@ declare module 'react-select/base' {
|
|
70
70
|
* Icon to be rendered in the control
|
71
71
|
*/
|
72
72
|
icon?: ReactElement;
|
73
|
+
/**
|
74
|
+
* Renders the keyboard shortcut key that opens the select picker \
|
75
|
+
* Shortcut key needs to be defined first in order to use it.
|
76
|
+
* @note This is displayed in place of the dropdown indicator
|
77
|
+
*/
|
78
|
+
keyboardShortcut?: string;
|
79
|
+
/**
|
80
|
+
* If true, checkboxes are shown for options in multi-select mode.
|
81
|
+
* @default true
|
82
|
+
*/
|
83
|
+
showCheckboxForMultiSelect?: boolean;
|
73
84
|
/**
|
74
85
|
* If true, the selected option icon is shown in the container.
|
75
86
|
* startIcon has higher priority than endIcon.
|
@@ -101,7 +112,7 @@ export declare enum SelectPickerVariantType {
|
|
101
112
|
BORDER_LESS = "border-less",
|
102
113
|
COMPACT = "compact"
|
103
114
|
}
|
104
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption' | 'noOptionsMessage' | 'defaultMenuIsOpen' | 'onFocus'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
115
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption' | 'noOptionsMessage' | 'defaultMenuIsOpen' | 'onFocus'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea' | 'keyboardShortcut' | 'showCheckboxForMultiSelect'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
105
116
|
/**
|
106
117
|
* Config for the footer at the bottom of menu list. It is sticky by default
|
107
118
|
*
|
@@ -223,6 +234,6 @@ export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps
|
|
223
234
|
export type SelectPickerTextAreaProps = Omit<SelectPickerProps<string, false>, 'selectRef' | 'inputValue' | 'onInputChange' | 'controlShouldRenderValue' | 'onKeyDown' | 'onCreateOption' | 'shouldRenderTextArea'> & Pick<ResizableTagTextAreaProps, 'maxHeight' | 'minHeight' | 'refVar' | 'dependentRefs'>;
|
224
235
|
export interface GroupedFilterSelectPickerProps<T extends string | number = string | number> extends Omit<ActionMenuProps<T>, 'onClick' | 'disableDescriptionEllipsis' | 'children' | 'buttonProps' | 'isSearchable'> {
|
225
236
|
isFilterApplied?: boolean;
|
226
|
-
filterSelectPickerPropsMap: Record<T, Omit<FilterSelectPickerProps, 'autoFocus' | 'menuIsOpen' | 'onMenuClose' | 'onKeyDown'>>;
|
237
|
+
filterSelectPickerPropsMap: Record<T, Omit<FilterSelectPickerProps, 'autoFocus' | 'menuIsOpen' | 'onMenuClose' | 'onKeyDown' | 'selectRef'>>;
|
227
238
|
}
|
228
239
|
export {};
|
@@ -108,6 +108,7 @@ type AdditionalFilterPropsType<T extends FiltersTypeEnum> = T extends FiltersTyp
|
|
108
108
|
export type ViewWrapperProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = PropsWithChildren<(FilterVariant extends FiltersTypeEnum.NONE ? {} : Pick<UseFiltersReturnType, 'offset' | 'handleSearch' | 'searchKey' | 'sortBy' | 'sortOrder' | 'clearFilters'>) & AdditionalProps & Partial<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>> & {
|
109
109
|
areRowsLoading: boolean;
|
110
110
|
filteredRows: RowsType<RowData> | null;
|
111
|
+
rows: RowsType<RowData> | null;
|
111
112
|
} & (FilterVariant extends FiltersTypeEnum.URL ? Pick<UseUrlFiltersReturnType<string>, 'updateSearchParams'> : {})>;
|
112
113
|
type FilterConfig<FilterVariant extends FiltersTypeEnum, RowData extends unknown> = {
|
113
114
|
filtersVariant: FilterVariant;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const TempAppWindow: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './TempAppWindow';
|
@@ -85,6 +85,7 @@ export * from './TabGroup';
|
|
85
85
|
export * from './Table';
|
86
86
|
export * from './TagsKeyValueTable';
|
87
87
|
export * from './TargetPlatforms';
|
88
|
+
export * from './TempAppWindow';
|
88
89
|
export * from './Textarea';
|
89
90
|
export * from './ThemeSwitcher';
|
90
91
|
export * from './ToggleResolveScopedVariables';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { Pair } from 'yaml';
|
|
5
5
|
import { MaterialHistoryType } from './Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
7
|
import { AggregatedNodes, PodMetadatum } from './Components';
|
8
|
-
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, Node,
|
8
|
+
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, Node, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
11
11
|
* The text to be highlighted
|
@@ -23,7 +23,6 @@ interface HighlightSearchTextProps {
|
|
23
23
|
export declare const escapeRegExp: (text: string) => string;
|
24
24
|
export declare const highlightSearchText: ({ searchText, text, highlightClasses }: HighlightSearchTextProps) => string;
|
25
25
|
export declare const preventBodyScroll: (lock: boolean) => void;
|
26
|
-
export declare const preventOutsideFocus: ({ identifier, preventFocus }: PreventOutsideFocusProps) => void;
|
27
26
|
export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[]) => boolean;
|
28
27
|
export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
|
29
28
|
export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export * from './MainContextProvider';
|
2
|
-
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
2
|
+
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig, TempAppWindowConfig } from './types';
|
3
3
|
export { SidePanelTab } from './types';
|