@devtron-labs/devtron-fe-common-lib 1.1.7-beta-5 → 1.1.7-beta-7

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.
@@ -1,2 +1,2 @@
1
1
  import { DynamicDataTableHeaderProps } from './types';
2
- export declare const DynamicDataTableHeader: <K extends string>({ headers, rows, sortingConfig, onRowAdd, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, headerComponent, actionButtonConfig, }: DynamicDataTableHeaderProps<K>) => JSX.Element;
2
+ export declare const DynamicDataTableHeader: <K extends string>({ headers, rows, sortingConfig, onRowAdd, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, headerComponent, actionButtonConfig, renderHelpTextForHeader, }: DynamicDataTableHeaderProps<K>) => JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { DetailedHTMLProps, ReactNode } from 'react';
2
2
  import { SortingOrder } from '../../../Common/Constants';
3
3
  import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
4
+ import { InfoIconTippyProps } from '../../../Common/Types';
4
5
  import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
5
6
  import { SelectTextAreaProps } from '../SelectTextArea';
6
7
  /**
@@ -18,6 +19,8 @@ export type DynamicDataTableHeaderType<K extends string> = {
18
19
  isSortable?: boolean;
19
20
  /** An optional boolean to control the visibility of the column. */
20
21
  isHidden?: boolean;
22
+ /** An optional boolean to show the column */
23
+ renderHelpTextForHeader?: () => ReactNode;
21
24
  };
22
25
  export declare enum DynamicDataTableRowDataType {
23
26
  TEXT = "text",
@@ -167,8 +170,12 @@ export type DynamicDataTableProps<K extends string> = {
167
170
  isValid: boolean;
168
171
  errorMessages: string[];
169
172
  };
173
+ /**
174
+ * Indicates whether to show the info icon.
175
+ */
176
+ renderHelpTextForHeader?: () => ReactNode;
170
177
  };
171
- export interface DynamicDataTableHeaderProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'> {
178
+ export interface DynamicDataTableHeaderProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig' | 'renderHelpTextForHeader'>, Pick<InfoIconTippyProps, 'heading' | 'additionalContent'> {
172
179
  }
173
180
  export interface DynamicDataTableRowProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'rows' | 'headers' | 'maskValue' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | 'showError' | 'validationSchema' | 'leadingCellIcon' | 'trailingCellIcon'> {
174
181
  }
@@ -1,7 +1,7 @@
1
1
  var Fe = Object.defineProperty;
2
2
  var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as je } from "./index-C8nHuOF3.js";
4
+ import { m as je } from "./index-DiUOKeIr.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 f } from "./index-C8nHuOF3.js";
1
+ import { m as f } from "./index-DiUOKeIr.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-C8nHuOF3.js";
1
+ import { m as l } from "./index-DiUOKeIr.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-C8nHuOF3.js";
1
+ import { m as s } from "./index-DiUOKeIr.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 Be = Object.defineProperty;
2
2
  var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as qe } from "./index-C8nHuOF3.js";
4
+ import { m as qe } from "./index-DiUOKeIr.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)