@devtron-labs/devtron-fe-common-lib 0.2.24-beta-4 → 0.2.24-beta-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +2 -5
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/constants.d.ts +1 -3
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-BM3TJwTG.js → cssMode-CFuBevFT.js} +1 -1
- package/dist/{freemarker2-dS6_f7Zy.js → freemarker2-DYqMf6XK.js} +1 -1
- package/dist/{handlebars-7til6fre.js → handlebars-CUYyqJCI.js} +1 -1
- package/dist/{html-BpqEp2M_.js → html-DM-YFZSs.js} +1 -1
- package/dist/{htmlMode-3AItzs-r.js → htmlMode--IiQkOVX.js} +1 -1
- package/dist/{index-Db8NZveA.js → index-CzRnPfhm.js} +20340 -20429
- package/dist/index.js +492 -495
- package/dist/{javascript-5qQ_SfZW.js → javascript-C4hJF7h2.js} +1 -1
- package/dist/{jsonMode-BINBC73A.js → jsonMode-CL5rJMy5.js} +1 -1
- package/dist/{liquid-hZ5oSBzU.js → liquid-D6xDzV83.js} +1 -1
- package/dist/{mdx-Du65d2v6.js → mdx-gacsF-PQ.js} +1 -1
- package/dist/{python-C_uGu4kI.js → python-2bG5d3sT.js} +1 -1
- package/dist/{razor-Co4-vOmv.js → razor-Dn2PRpu8.js} +1 -1
- package/dist/{tsMode-B3MLtu4W.js → tsMode-C6nsJ-lK.js} +1 -1
- package/dist/{typescript-XY2lJb2K.js → typescript-PHweVQcZ.js} +1 -1
- package/dist/{xml-DNzwh9ho.js → xml-BMYrzLD0.js} +1 -1
- package/dist/{yaml-BpoNPhw5.js → yaml-yhks_snX.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/Button/Button.component.d.ts +0 -53
- package/dist/Shared/Components/Button/constants.d.ts +0 -5
- package/dist/Shared/Components/Button/index.d.ts +0 -2
- package/dist/Shared/Components/Button/types.d.ts +0 -64
- package/dist/Shared/Components/Button/utils.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
|
1
|
+
import { conf as t, language as e } from "./typescript-PHweVQcZ.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var Ge = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var C = (e, n, i) => Ge(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-CzRnPfhm.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l } from "./index-
|
|
1
|
+
import { m as l } from "./index-CzRnPfhm.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-CzRnPfhm.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i } from "./index-
|
|
1
|
+
import { m as i } from "./index-CzRnPfhm.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m } from "./index-
|
|
1
|
+
import { m } from "./index-CzRnPfhm.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var N = Object.defineProperty;
|
|
2
2
|
var M = (e, t, r) => t in e ? N(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var _ = (e, t, r) => M(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { t as R, m as K } from "./index-
|
|
4
|
+
import { t as R, m as K } from "./index-CzRnPfhm.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-CzRnPfhm.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as r } from "./index-
|
|
1
|
+
import { m as r } from "./index-CzRnPfhm.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l } from "./index-
|
|
1
|
+
import { m as l } from "./index-CzRnPfhm.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
package/package.json
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Generic component for Button.
|
|
4
|
-
* Should be used in combination of variant, size and style.
|
|
5
|
-
*
|
|
6
|
-
* @example Default button
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <Button text="Hello World" />
|
|
9
|
-
* ```
|
|
10
|
-
*
|
|
11
|
-
* @example Custom variant
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <Button text="Hello World" variant={ButtonVariantType.secondary} />
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @example Custom size
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <Button text="Hello World" size={ComponentSizeType.medium} />
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @example Custom style
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <Button text="Hello World" style={ButtonStyleType.positive} />
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @example Disabled state
|
|
27
|
-
* ```tsx
|
|
28
|
-
* <Button text="Hello World" disabled />
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @example Loading state
|
|
32
|
-
* ```tsx
|
|
33
|
-
* <Button text="Hello World" isLoading />
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @example With start icon
|
|
37
|
-
* ```tsx
|
|
38
|
-
* <Button text="Hello World" startIcon={<ICCube />} />
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @example With end icon
|
|
42
|
-
* ```tsx
|
|
43
|
-
* <Button text="Hello World" endIcon={<ICCube />} />
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @example With tippy
|
|
47
|
-
* ```tsx
|
|
48
|
-
* <Button text="Hello World" showTippy tippyContent="Tippy content" />
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
declare const Button: ({ variant, size, style, text, startIcon, endIcon, disabled, isLoading, showTippy, tippyContent, type, ...props }: ButtonProps) => JSX.Element;
|
|
53
|
-
export default Button;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ProgressingProps } from '../../../Common/Types';
|
|
2
|
-
import { ButtonProps } from './types';
|
|
3
|
-
export declare const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
|
4
|
-
export declare const BUTTON_SIZE_TO_ICON_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
|
5
|
-
export declare const BUTTON_SIZE_TO_LOADER_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { TooltipProps } from '@Common/Tooltip/types';
|
|
2
|
-
import { ComponentSizeType } from '../../constants';
|
|
3
|
-
import { ButtonHTMLAttributes, ReactElement } from 'react';
|
|
4
|
-
export declare enum ButtonVariantType {
|
|
5
|
-
primary = "primary",
|
|
6
|
-
secondary = "secondary",
|
|
7
|
-
text = "text",
|
|
8
|
-
link = "link"
|
|
9
|
-
}
|
|
10
|
-
export declare enum ButtonStyleType {
|
|
11
|
-
default = "default",
|
|
12
|
-
negative = "negative",
|
|
13
|
-
positive = "positive",
|
|
14
|
-
warning = "warning",
|
|
15
|
-
neutral = "neutral"
|
|
16
|
-
}
|
|
17
|
-
export type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'styles' | 'className'> & {
|
|
18
|
-
/**
|
|
19
|
-
* Variant of the button
|
|
20
|
-
*
|
|
21
|
-
* @default 'ButtonVariantType.primary'
|
|
22
|
-
*/
|
|
23
|
-
variant?: ButtonVariantType;
|
|
24
|
-
/**
|
|
25
|
-
* Size of the button
|
|
26
|
-
*
|
|
27
|
-
* @default 'ComponentSizeType.large'
|
|
28
|
-
*/
|
|
29
|
-
size?: ComponentSizeType;
|
|
30
|
-
/**
|
|
31
|
-
* Style to be applied on the button
|
|
32
|
-
*
|
|
33
|
-
* @default 'ButtonStyleType.default'
|
|
34
|
-
*/
|
|
35
|
-
style?: ButtonStyleType;
|
|
36
|
-
/**
|
|
37
|
-
* Text to be displayed in the button
|
|
38
|
-
*/
|
|
39
|
-
text: string;
|
|
40
|
-
/**
|
|
41
|
-
* If provided, icon to be displayed at the start of the button
|
|
42
|
-
*/
|
|
43
|
-
startIcon?: ReactElement;
|
|
44
|
-
/**
|
|
45
|
-
* If provided, icon to be displayed at the end of the button
|
|
46
|
-
*/
|
|
47
|
-
endIcon?: ReactElement;
|
|
48
|
-
/**
|
|
49
|
-
* If true, the loading state is shown for the button with disabled
|
|
50
|
-
*/
|
|
51
|
-
isLoading?: boolean;
|
|
52
|
-
} & ({
|
|
53
|
-
/**
|
|
54
|
-
* If true, the tippy is shown for the button
|
|
55
|
-
*/
|
|
56
|
-
showTippy: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Tippy content to be shown for use cases like disabled etc
|
|
59
|
-
*/
|
|
60
|
-
tippyContent: TooltipProps['content'];
|
|
61
|
-
} | {
|
|
62
|
-
showTippy?: never;
|
|
63
|
-
tippyContent?: never;
|
|
64
|
-
});
|