@hybr1d-tech/charizard 1.1.70 → 1.1.72

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/index.d.ts CHANGED
@@ -467,7 +467,7 @@ export declare interface CreatableSelectV2Props extends SelectV2Props {
467
467
  onCreateOption: (value: string) => Promise<void> | void;
468
468
  }
469
469
 
470
- export declare const createTableStore: <TQuery extends TBaseQuery>(initialQueries: TQuery) => UseBoundStore<StoreApi<TableStore<TQuery>>>;
470
+ export declare const createTableStore: <TQuery extends TBaseQuery>(initialQueries: TQuery) => UseBoundStore<StoreApi<TableStore_2<TQuery>>>;
471
471
 
472
472
  declare type CustomColCheckedState = {
473
473
  id: string;
@@ -1598,6 +1598,12 @@ declare interface InputV2Props extends React.InputHTMLAttributes<HTMLInputElemen
1598
1598
  /* Excluded from this release type: onErrorHeightChange */
1599
1599
  }
1600
1600
 
1601
+ declare type InternalTableFilters = {
1602
+ key: string;
1603
+ values: string[] | string;
1604
+ type?: FILTER_TYPE;
1605
+ };
1606
+
1601
1607
  export declare const isArrayOfString: (arr: unknown) => arr is string[];
1602
1608
 
1603
1609
  export declare const isDatePassed: (date?: string) => boolean;
@@ -2604,6 +2610,8 @@ export declare interface SelectV2Props extends Props<any, boolean> {
2604
2610
 
2605
2611
  export declare type SelectValue = SelectMultiValue | SelectSingleValue;
2606
2612
 
2613
+ export declare const SINGLE_VALUE_FILTER_TYPES: FILTER_TYPE[];
2614
+
2607
2615
  export declare function Skeleton({ className, ...props }: SkeletonProps): JSX_2.Element;
2608
2616
 
2609
2617
  declare type SkeletonProps = React.HTMLAttributes<HTMLDivElement>;
@@ -2897,7 +2905,17 @@ export declare interface TableProps {
2897
2905
  customActionItems?: JSX.Element[];
2898
2906
  }
2899
2907
 
2900
- declare interface TableStore<TQuery> {
2908
+ export declare interface TableStore {
2909
+ filters: InternalTableFilters[];
2910
+ setDefaultFilters: (filters: InternalTableFilters[]) => void;
2911
+ addFilters: (filterKey: string, value: string, filterDispatch: any) => void;
2912
+ changeFiltersDrawer: (filterKey: string, value: string[], filterDispatch: any) => void;
2913
+ removeFilters: (filterKey: string, value: string, filterDispatch: any) => void;
2914
+ resetFilters: (filterKey: string, filterDispatch: any) => void;
2915
+ resetAllFilters: (filterReset?: any) => void;
2916
+ }
2917
+
2918
+ declare interface TableStore_2<TQuery> {
2901
2919
  query: TQuery;
2902
2920
  dispatch: (action: {
2903
2921
  type: TABLE_ACTION_TYPES;
@@ -3348,6 +3366,21 @@ export declare interface UsersChipUser {
3348
3366
  user_position?: string | null;
3349
3367
  }
3350
3368
 
3369
+ export declare const useTableStore: UseBoundStore<Omit<StoreApi<TableStore>, "setState"> & {
3370
+ setState(partial: TableStore | Partial<TableStore> | ((state: TableStore) => TableStore | Partial<TableStore>), replace?: false | undefined, action?: (string | {
3371
+ [x: string]: unknown;
3372
+ [x: number]: unknown;
3373
+ [x: symbol]: unknown;
3374
+ type: string;
3375
+ }) | undefined): void;
3376
+ setState(state: TableStore | ((state: TableStore) => TableStore), replace: true, action?: (string | {
3377
+ [x: string]: unknown;
3378
+ [x: number]: unknown;
3379
+ [x: symbol]: unknown;
3380
+ type: string;
3381
+ }) | undefined): void;
3382
+ }>;
3383
+
3351
3384
  export declare const ZENADMIN_CONTACT = "mailto:customersuccess@zenadmin.ai";
3352
3385
 
3353
3386
  export declare const ZENADMIN_URL = "https://www.zenadmin.ai";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "1.1.70",
3
+ "version": "1.1.72",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"