@hybr1d-tech/charizard 0.4.45 → 0.4.47

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.
@@ -97,13 +97,15 @@ export interface TableV2Props {
97
97
  };
98
98
  headerText?: string;
99
99
  tableStyleConfig?: {
100
- maxHeight: string;
100
+ maxHeight?: string;
101
101
  stickyIds?: string[];
102
102
  };
103
103
  /**
104
104
  * custom columns
105
105
  */
106
- customColumnConfig?: {};
106
+ customColumnConfig?: {
107
+ description?: string;
108
+ };
107
109
  /**
108
110
  * export config (csv)
109
111
  */
@@ -3,6 +3,7 @@ type CustomColCheckboxProps = Pick<OptionsProp, 'setCheckedState'> & {
3
3
  id: string;
4
4
  label: string;
5
5
  checked: boolean;
6
+ disabled?: boolean;
6
7
  };
7
- export default function CustomColCheckbox({ id, label, checked, setCheckedState, }: CustomColCheckboxProps): import("react/jsx-runtime").JSX.Element;
8
+ export default function CustomColCheckbox({ id, label, checked, setCheckedState, disabled, }: CustomColCheckboxProps): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -4,13 +4,15 @@ import { TableV2Props } from '../TableV2';
4
4
  interface TableCustomColsProps {
5
5
  customColumnConfig: TableV2Props['customColumnConfig'];
6
6
  table: Table<any>;
7
+ isCheckbox?: boolean;
8
+ isDropdownActions?: boolean;
7
9
  }
8
10
  export type CheckedState = {
9
11
  id: string;
10
12
  label: string;
11
13
  checked: boolean;
12
14
  };
13
- export default function TableCustomCols({ customColumnConfig, table }: TableCustomColsProps): import("react/jsx-runtime").JSX.Element;
15
+ export default function TableCustomCols({ customColumnConfig, table, isCheckbox, isDropdownActions, }: TableCustomColsProps): import("react/jsx-runtime").JSX.Element;
14
16
  export interface OptionsProp {
15
17
  cols: CheckedState[];
16
18
  text: string;
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { SortableItem } from './SortableItem';
3
3
  import type { UniqueIdentifier } from '@dnd-kit/core';
4
+ import { CheckedState } from '../TableCustomCols';
4
5
  interface BaseItem {
5
6
  id: UniqueIdentifier;
6
7
  }
7
8
  interface Props<T extends BaseItem> {
8
9
  items: T[];
9
- onChange(items: T[]): void;
10
+ onChange: React.Dispatch<React.SetStateAction<CheckedState[]>>;
10
11
  renderItem(item: T): React.ReactNode;
11
12
  }
12
13
  export declare function SortableList<T extends BaseItem>({ items: _items, onChange, renderItem }: Props<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export default function FilterDrawerCheckbox({ label, value, checked, filterKey, countryCode, customName, setFilterCheckedState, idx, }: {
1
+ export default function FilterDrawerCheckbox({ label, value, checked, filterKey, countryCode, customName, setFilterCheckedState, idx, setCurrFilter, }: {
2
2
  label: string;
3
3
  value: string;
4
4
  checked: boolean;
@@ -7,4 +7,5 @@ export default function FilterDrawerCheckbox({ label, value, checked, filterKey,
7
7
  customName?: string;
8
8
  setFilterCheckedState: any;
9
9
  idx: number;
10
+ setCurrFilter?: any;
10
11
  }): import("react/jsx-runtime").JSX.Element;
@@ -11,6 +11,8 @@ interface TableMetaHeaderProps {
11
11
  rowSelection: {};
12
12
  setRowSelection: React.Dispatch<React.SetStateAction<{}>>;
13
13
  table: Table<any>;
14
+ isCheckbox?: boolean;
15
+ isDropdownActions?: boolean;
14
16
  }
15
- export default function TableMetaHeader({ rowSelectionConfig, totalText, searchConfig, filterConfig, customColumnConfig, exportConfig, rowSelection, setRowSelection, table, }: TableMetaHeaderProps): import("react/jsx-runtime").JSX.Element;
17
+ export default function TableMetaHeader({ rowSelectionConfig, totalText, searchConfig, filterConfig, customColumnConfig, exportConfig, rowSelection, setRowSelection, table, isCheckbox, isDropdownActions, }: TableMetaHeaderProps): import("react/jsx-runtime").JSX.Element;
16
18
  export {};