@hybr1d-tech/charizard 1.1.60 → 1.1.62

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
@@ -1632,6 +1632,12 @@ declare interface InputV2Props extends React.InputHTMLAttributes<HTMLInputElemen
1632
1632
  /* Excluded from this release type: onErrorHeightChange */
1633
1633
  }
1634
1634
 
1635
+ declare type InternalTableFilters = {
1636
+ key: string;
1637
+ values: string[] | string;
1638
+ type?: FILTER_TYPE;
1639
+ };
1640
+
1635
1641
  export declare const isArrayOfString: (arr: unknown) => arr is string[];
1636
1642
 
1637
1643
  export declare const isDatePassed: (date?: string) => boolean;
@@ -2638,6 +2644,8 @@ export declare interface SelectV2Props extends Props<any, boolean> {
2638
2644
 
2639
2645
  export declare type SelectValue = SelectMultiValue | SelectSingleValue;
2640
2646
 
2647
+ export declare const SINGLE_VALUE_FILTER_TYPES: FILTER_TYPE[];
2648
+
2641
2649
  export declare function Skeleton({ className, ...props }: SkeletonProps): JSX_2.Element;
2642
2650
 
2643
2651
  declare type SkeletonProps = React.HTMLAttributes<HTMLDivElement>;
@@ -3053,6 +3061,16 @@ export declare interface TableStore<TQuery> {
3053
3061
  }) => void;
3054
3062
  }
3055
3063
 
3064
+ declare interface TableStore_2 {
3065
+ filters: InternalTableFilters[];
3066
+ setDefaultFilters: (filters: InternalTableFilters[]) => void;
3067
+ addFilters: (filterKey: string, value: string, filterDispatch: any) => void;
3068
+ changeFiltersDrawer: (filterKey: string, value: string[], filterDispatch: any) => void;
3069
+ removeFilters: (filterKey: string, value: string, filterDispatch: any) => void;
3070
+ resetFilters: (filterKey: string, filterDispatch: any) => void;
3071
+ resetAllFilters: (filterReset?: any) => void;
3072
+ }
3073
+
3056
3074
  declare interface TableTagItem {
3057
3075
  id: string;
3058
3076
  name: string;
@@ -3496,6 +3514,21 @@ export declare interface UsersChipUser {
3496
3514
  user_position?: string | null;
3497
3515
  }
3498
3516
 
3517
+ export declare const useTableStore: UseBoundStore<Omit<StoreApi<TableStore_2>, "setState"> & {
3518
+ setState(partial: TableStore_2 | Partial<TableStore_2> | ((state: TableStore_2) => TableStore_2 | Partial<TableStore_2>), replace?: false | undefined, action?: (string | {
3519
+ [x: string]: unknown;
3520
+ [x: number]: unknown;
3521
+ [x: symbol]: unknown;
3522
+ type: string;
3523
+ }) | undefined): void;
3524
+ setState(state: TableStore_2 | ((state: TableStore_2) => TableStore_2), replace: true, action?: (string | {
3525
+ [x: string]: unknown;
3526
+ [x: number]: unknown;
3527
+ [x: symbol]: unknown;
3528
+ type: string;
3529
+ }) | undefined): void;
3530
+ }>;
3531
+
3499
3532
  export declare const ZENADMIN_CONTACT = "mailto:customersuccess@zenadmin.ai";
3500
3533
 
3501
3534
  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.60",
3
+ "version": "1.1.62",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -73,7 +73,7 @@
73
73
  "storybook": "^8.5.0",
74
74
  "storybook-css-modules-preset": "^1.1.1",
75
75
  "typescript": "5.7.3",
76
- "vite": "^6.0.7",
76
+ "vite": "^6.0.10",
77
77
  "vite-plugin-checker": "^0.8.0",
78
78
  "vite-plugin-dts": "4.5.0",
79
79
  "vite-plugin-libcss": "^1.1.1"