@devtron-labs/devtron-fe-common-lib 1.0.8-beta-1 → 1.0.9-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.
Files changed (26) hide show
  1. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
  2. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  3. package/dist/Shared/Components/index.d.ts +0 -1
  4. package/dist/assets/index.css +1 -1
  5. package/dist/{cssMode-BtDX6tx8.js → cssMode-E0Q0NeRN.js} +1 -1
  6. package/dist/{freemarker2-CIqpK300.js → freemarker2-BVJ5rfzo.js} +1 -1
  7. package/dist/{handlebars-BO9B9mJC.js → handlebars-zJfY3EHn.js} +1 -1
  8. package/dist/{html-DzUwnFEn.js → html-GN3l9i-a.js} +1 -1
  9. package/dist/{htmlMode--xSXm_jO.js → htmlMode-wfdONzDf.js} +1 -1
  10. package/dist/{index-BrWMaZwr.js → index-C2LGWQEs.js} +20653 -20760
  11. package/dist/index.js +520 -522
  12. package/dist/{javascript-CKOQQKxO.js → javascript-B0PQzNZZ.js} +1 -1
  13. package/dist/{jsonMode-DcP4I2wb.js → jsonMode-C3f15181.js} +1 -1
  14. package/dist/{liquid-BhkqQXcl.js → liquid-BgxXN374.js} +1 -1
  15. package/dist/{mdx-C6qOmkV2.js → mdx-DtO8QEXl.js} +1 -1
  16. package/dist/{python-BzVbo4Vk.js → python-CKDl1ulC.js} +1 -1
  17. package/dist/{razor-CLwAOvRB.js → razor-A5-xr4Mr.js} +1 -1
  18. package/dist/{tsMode-C3EbcqJu.js → tsMode-CTyJp-mF.js} +1 -1
  19. package/dist/{typescript-BLUbXBDZ.js → typescript-DzrUqikv.js} +1 -1
  20. package/dist/{xml-CerIzBL3.js → xml-MUFSywMF.js} +1 -1
  21. package/dist/{yaml-DI00yzSv.js → yaml-DcsjINbA.js} +1 -1
  22. package/package.json +1 -1
  23. package/dist/Shared/Components/ConfirmationModal/ConfirmationModal.d.ts +0 -3
  24. package/dist/Shared/Components/ConfirmationModal/index.d.ts +0 -2
  25. package/dist/Shared/Components/ConfirmationModal/types.d.ts +0 -50
  26. package/dist/Shared/Components/ConfirmationModal/utils.d.ts +0 -6
@@ -1,4 +1,4 @@
1
- import { conf as t, language as e } from "./typescript-BLUbXBDZ.js";
1
+ import { conf as t, language as e } from "./typescript-DzrUqikv.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-BrWMaZwr.js";
4
+ import { m as Qe } from "./index-C2LGWQEs.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-BrWMaZwr.js";
1
+ import { m as l } from "./index-C2LGWQEs.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-BrWMaZwr.js";
1
+ import { m as s } from "./index-C2LGWQEs.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-BrWMaZwr.js";
1
+ import { m as i } from "./index-C2LGWQEs.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-BrWMaZwr.js";
1
+ import { m } from "./index-C2LGWQEs.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-BrWMaZwr.js";
4
+ import { t as R, m as K } from "./index-C2LGWQEs.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-BrWMaZwr.js";
1
+ import { m as s } from "./index-C2LGWQEs.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-BrWMaZwr.js";
1
+ import { m as r } from "./index-C2LGWQEs.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-BrWMaZwr.js";
1
+ import { m as l } from "./index-C2LGWQEs.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.0.8-beta-1",
3
+ "version": "1.0.9-beta-1",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,3 +0,0 @@
1
- import { ConfirmationModalProps } from './types';
2
- declare const ConfirmationModal: ({ title, subtitle, Icon, variant, buttonConfig, customInputConfig, children, handleClose, }: ConfirmationModalProps) => JSX.Element;
3
- export default ConfirmationModal;
@@ -1,2 +0,0 @@
1
- export { default as ConfirmationModal } from './ConfirmationModal';
2
- export { ConfirmationModalVariantType } from './types';
@@ -1,50 +0,0 @@
1
- import { FunctionComponent, ReactNode, SVGProps } from 'react';
2
- import { ButtonProps } from '../Button';
3
- export declare enum ConfirmationModalVariantType {
4
- info = "info",
5
- delete = "delete",
6
- warning = "warning",
7
- custom = "custom"
8
- }
9
- interface CommonButtonProps extends Pick<ButtonProps, 'dataTestId' | 'onClick' | 'text'>, Partial<Pick<ButtonProps, 'startIcon' | 'endIcon'>> {
10
- }
11
- interface CustomInputConfig {
12
- identifier: string;
13
- confirmationKeyword: string;
14
- }
15
- type ButtonConfig<PrimaryButtonConfig, SecondaryButtonConfig> = {
16
- primaryButtonConfig: PrimaryButtonConfig & CommonButtonProps;
17
- secondaryButtonConfig: SecondaryButtonConfig & CommonButtonProps;
18
- } | {
19
- primaryButtonConfig: PrimaryButtonConfig & CommonButtonProps;
20
- secondaryButtonConfig?: never;
21
- } | {
22
- primaryButtonConfig?: never;
23
- secondaryButtonConfig?: SecondaryButtonConfig & CommonButtonProps;
24
- };
25
- type CustomInputConfigOrChildrenType = {
26
- customInputConfig: CustomInputConfig;
27
- children?: never;
28
- } | {
29
- customInputConfig?: never;
30
- children: ReactNode;
31
- } | {
32
- customInputConfig?: never;
33
- children?: never;
34
- };
35
- export type ConfirmationModalProps = {
36
- title: ReactNode;
37
- subtitle: ReactNode;
38
- handleClose: (e?: any) => void;
39
- } & ({
40
- variant: Exclude<ConfirmationModalVariantType, ConfirmationModalVariantType.custom>;
41
- Icon?: never;
42
- buttonConfig: ButtonConfig<Pick<ButtonProps, 'isLoading' | 'disabled'>, Pick<ButtonProps, 'disabled'>>;
43
- } | {
44
- variant: ConfirmationModalVariantType.custom;
45
- Icon: FunctionComponent<SVGProps<SVGSVGElement>>;
46
- customInputConfig?: never;
47
- children?: ReactNode;
48
- buttonConfig: ButtonConfig<Pick<ButtonProps, 'isLoading' | 'disabled' | 'style'>, Pick<ButtonProps, 'disabled' | 'style'>>;
49
- }) & CustomInputConfigOrChildrenType;
50
- export {};
@@ -1,6 +0,0 @@
1
- import { FunctionComponent, ReactNode, SVGProps } from 'react';
2
- import { ConfirmationModalVariantType } from './types';
3
- import { ButtonStyleType } from '../Button';
4
- export declare const getIconFromVariant: (variant: ConfirmationModalVariantType) => FunctionComponent<SVGProps<SVGSVGElement>>;
5
- export declare const getConfirmationLabel: (confirmationKeyword: string) => ReactNode;
6
- export declare const getPrimaryButtonStyleFromVariant: (variant: ConfirmationModalVariantType) => ButtonStyleType;