@devtron-labs/devtron-fe-common-lib 0.3.3 → 0.3.5-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Drawer/Drawer.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -1
- package/dist/Common/utils.d.ts +1 -0
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +7 -0
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +6 -1
- package/dist/Shared/Components/TabGroup/TabGroup.utils.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-aNksqgjt.js → cssMode-D66JTW_V.js} +1 -1
- package/dist/{freemarker2-CoZumCtw.js → freemarker2-CY4JSAnd.js} +1 -1
- package/dist/{handlebars-D6zOQIJP.js → handlebars-BdiSWeoR.js} +1 -1
- package/dist/{html-CKxzhF30.js → html-Dox8CHQk.js} +1 -1
- package/dist/{htmlMode-d5vIrXBw.js → htmlMode-DK5fOy44.js} +1 -1
- package/dist/{index-CvrbM9GP.js → index-BFMaIgeF.js} +18200 -18168
- package/dist/index.js +1 -1
- package/dist/{javascript-DZsiPaHI.js → javascript-BENpilKz.js} +1 -1
- package/dist/{jsonMode-CYzg-jAD.js → jsonMode-CaV7ZBKe.js} +1 -1
- package/dist/{liquid-DiquhyEU.js → liquid-DXpc-UyL.js} +1 -1
- package/dist/{mdx-m8ong6y2.js → mdx-CTKVUr6n.js} +1 -1
- package/dist/{python-Bx5P8SPS.js → python-Gh-QVJAm.js} +1 -1
- package/dist/{razor-D5ULi-C5.js → razor-CRsts3uU.js} +1 -1
- package/dist/{tsMode-DETll8fq.js → tsMode-Be0FzPJg.js} +1 -1
- package/dist/{typescript-DxOGMq74.js → typescript-BYQLkHCK.js} +1 -1
- package/dist/{xml-BO7XMfFO.js → xml-D4wjO4IJ.js} +1 -1
- package/dist/{yaml--O1380j9.js → yaml-Ck4Ls2ov.js} +1 -1
- package/package.json +1 -1
|
@@ -10,5 +10,5 @@ interface drawerInterface {
|
|
|
10
10
|
parentClassName?: string;
|
|
11
11
|
onEscape?: (e?: any) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, }: drawerInterface) => JSX.Element;
|
|
13
|
+
export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, onClose, }: drawerInterface) => JSX.Element;
|
|
14
14
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, ReactNode, CSSProperties } from 'react';
|
|
1
|
+
import { default as React, ReactNode, CSSProperties, ReactElement } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
@@ -620,6 +620,7 @@ export interface RegistryTypeDetailType {
|
|
|
620
620
|
registryURL: InputDetailType;
|
|
621
621
|
id: InputDetailType;
|
|
622
622
|
password: InputDetailType;
|
|
623
|
+
startIcon: ReactElement;
|
|
623
624
|
}
|
|
624
625
|
export interface UseSearchString {
|
|
625
626
|
queryParams: URLSearchParams;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getContainerRegistryIcon: (registryValue: string) => JSX.Element;
|
|
@@ -63,5 +63,5 @@ import { ButtonProps } from './types';
|
|
|
63
63
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
|
-
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, ...props }: ButtonProps) => JSX.Element;
|
|
66
|
+
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, ...props }: ButtonProps) => JSX.Element;
|
|
67
67
|
export default Button;
|
|
@@ -89,6 +89,7 @@ export type ButtonProps = ({
|
|
|
89
89
|
}) & ({
|
|
90
90
|
icon?: never;
|
|
91
91
|
ariaLabel?: never;
|
|
92
|
+
showAriaLabelInTippy?: never;
|
|
92
93
|
/**
|
|
93
94
|
* Text to be displayed in the button
|
|
94
95
|
*/
|
|
@@ -106,6 +107,12 @@ export type ButtonProps = ({
|
|
|
106
107
|
* If provided, icon button is rendered
|
|
107
108
|
*/
|
|
108
109
|
icon: ReactElement;
|
|
110
|
+
/**
|
|
111
|
+
* If false, the ariaLabel is not shown in tippy
|
|
112
|
+
*
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
showAriaLabelInTippy?: boolean;
|
|
109
116
|
/**
|
|
110
117
|
* Label for the icon button for accessibility.
|
|
111
118
|
* Shown on hover in tooltip if tippy is not provided explicitly
|
|
@@ -51,6 +51,11 @@ export type TabProps = {
|
|
|
51
51
|
* Text label for the tab.
|
|
52
52
|
*/
|
|
53
53
|
label: string;
|
|
54
|
+
/**
|
|
55
|
+
* Description for the tab.
|
|
56
|
+
* @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
|
|
57
|
+
*/
|
|
58
|
+
description?: string | string[];
|
|
54
59
|
/**
|
|
55
60
|
* Icon component to be displayed in the tab.
|
|
56
61
|
* This should be a functional component that renders an SVG.
|
|
@@ -92,7 +97,7 @@ export interface TabGroupProps {
|
|
|
92
97
|
* Size of the tabs.
|
|
93
98
|
* @default ComponentSizeType.large
|
|
94
99
|
*/
|
|
95
|
-
size?: ComponentSizeType.large | ComponentSizeType.medium;
|
|
100
|
+
size?: ComponentSizeType.large | ComponentSizeType.medium | ComponentSizeType.xl;
|
|
96
101
|
/**
|
|
97
102
|
* Optional component to be rendered on the right side of the tab list.
|
|
98
103
|
*/
|
|
@@ -5,3 +5,4 @@ export declare const getClassNameBySizeMap: ({ hideTopPadding, alignActiveBorder
|
|
|
5
5
|
badgeClassName: string;
|
|
6
6
|
}>;
|
|
7
7
|
export declare const getIconColorClassMap: ({ active }: Pick<TabProps, "active">) => Record<TabProps["iconType"], string>;
|
|
8
|
+
export declare const tabGroupClassMap: Record<TabGroupProps['size'], string>;
|