hplx-react-elements-dev 1.2.43 → 1.2.45

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.
@@ -33,6 +33,9 @@ export interface ITableColDef<T> {
33
33
  pinned?: typeof PinnableValues[keyof typeof PinnableValues];
34
34
  renderCell?: (value: unknown, row: T, column: ITableColDef<T>, rowIndex: number) => React.ReactNode;
35
35
  valueFormatter?: (value: unknown, row: T, column: ITableColDef<T>, rowIndex: number) => React.ReactNode;
36
+ enableFilter?: boolean;
37
+ filterValues?: ITableDropdown[];
38
+ onFilterCheck?: (value: string) => void;
36
39
  }
37
40
  export declare const PinnableValues: {
38
41
  Left: string;
@@ -53,3 +56,7 @@ export interface ITableRowProps {
53
56
  export interface ITableHeadProps<T> {
54
57
  columns: ITableColDef<T>[];
55
58
  }
59
+ export interface ITableDropdown {
60
+ name: string;
61
+ isSelected: boolean;
62
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface FilterCheckboxProps {
3
+ label: string;
4
+ onCheck: (value: string) => void;
5
+ isSelected: boolean;
6
+ }
7
+ declare function FilterCheckbox(props: FilterCheckboxProps): JSX.Element;
8
+ export default FilterCheckbox;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ITableDropdown } from "../ReusableTableTypes";
3
+ interface FilterDropdown {
4
+ options: ITableDropdown[];
5
+ onCheck: (name: string) => void;
6
+ dropdownRef: React.Ref<HTMLUListElement>;
7
+ }
8
+ declare function FilterDropdown(props: FilterDropdown): JSX.Element;
9
+ export default FilterDropdown;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { SetStateAction } from "react";
2
2
  import { ITableColDef } from "../ReusableTableTypes";
3
3
  import { IPaginationProps } from "../components/Pagination";
4
4
  interface TableContextProps<T> {
@@ -17,6 +17,8 @@ interface TableContextProps<T> {
17
17
  paginationState: IPaginationProps;
18
18
  setPaginationState: React.Dispatch<React.SetStateAction<IPaginationProps>>;
19
19
  onPaginationClick: ((activePage: number) => void) | undefined;
20
+ showDropdown: string | null;
21
+ setShowDropdown: React.Dispatch<SetStateAction<string | null>>;
20
22
  }
21
23
  export declare const useTableContext: <T>() => TableContextProps<T>;
22
24
  export declare const TableProvider: <T>({ children, initialColumns, rowData, headerRowClasses, rowClassesForSpecificIndex, tableBodyClassesToOverride, hideHeader, paginationProps, onPaginationClick, }: {
@@ -10,6 +10,7 @@ interface TimePickerProps {
10
10
  value: string;
11
11
  onChange: (newTime: string) => void;
12
12
  placeholder?: string;
13
+ start_icon?: string;
13
14
  }
14
15
  declare const TimePicker: React.FC<TimePickerProps>;
15
16
  export default TimePicker;
@@ -218,6 +218,7 @@ export interface CheckboxProps {
218
218
  onClick?: (id: CheckboxProps) => void;
219
219
  isMarked?: boolean;
220
220
  id?: any;
221
+ checkboxClasses?: string;
221
222
  }
222
223
  type ButtonGroupOptionType = {
223
224
  value?: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.2.43",
12
+ "version": "1.2.45",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",