@6thbridge/hexa 0.0.0-pr79-147 → 0.0.0-pr80-149

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.mts CHANGED
@@ -552,6 +552,7 @@ type TableProps<T extends RowData> = {
552
552
  FilterMenu?: ReactNode;
553
553
  setAppliedFilters?: (values: Record<string, any>) => void;
554
554
  filterListOptions?: FilterListItem[];
555
+ filterValues?: Record<string, any>;
555
556
  buttonClassName?: string;
556
557
  download?: TableDownloadProps;
557
558
  id?: string;
@@ -571,7 +572,7 @@ type TableProps<T extends RowData> = {
571
572
  };
572
573
  emptyDataMessage?: ReactNode;
573
574
  };
574
- declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, tableBulkActions, emptyDataMessage, }: TableProps<T>) => React$1.JSX.Element;
575
+ declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, filterValues, setAppliedFilters, onFilterChange, tableBulkActions, emptyDataMessage, }: TableProps<T>) => React$1.JSX.Element;
575
576
 
576
577
  type PageDataToolbarProps = {
577
578
  onRefetch?: () => void;
@@ -583,10 +584,11 @@ type PageDataToolbarProps = {
583
584
  isRefetching?: boolean;
584
585
  setAppliedFilters?: (values: Record<string, any>) => void;
585
586
  onFilterChange?: (values: Record<string, any>) => void;
587
+ filterValues?: Record<string, any>;
586
588
  filterListOptions?: FilterListItem[];
587
589
  id?: string;
588
590
  };
589
- declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
591
+ declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, filterValues, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
590
592
 
591
593
  declare const PermissionsContext: React$1.Context<ResourcePermissions | undefined>;
592
594
  declare const PermissionsProvider: ({ permissions, children, }: {
@@ -637,7 +639,7 @@ type FilterPopoverProps = FilterContentProps & {
637
639
  id?: string;
638
640
  onChange?: (values: Record<string, any>) => void;
639
641
  };
640
- declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, id, }: FilterPopoverProps) => React$1.JSX.Element | null;
642
+ declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, values, id, }: FilterPopoverProps) => React$1.JSX.Element | null;
641
643
 
642
644
  interface FilterSliceType {
643
645
  filters: Record<string, any> | null;
package/dist/index.d.ts CHANGED
@@ -552,6 +552,7 @@ type TableProps<T extends RowData> = {
552
552
  FilterMenu?: ReactNode;
553
553
  setAppliedFilters?: (values: Record<string, any>) => void;
554
554
  filterListOptions?: FilterListItem[];
555
+ filterValues?: Record<string, any>;
555
556
  buttonClassName?: string;
556
557
  download?: TableDownloadProps;
557
558
  id?: string;
@@ -571,7 +572,7 @@ type TableProps<T extends RowData> = {
571
572
  };
572
573
  emptyDataMessage?: ReactNode;
573
574
  };
574
- declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, tableBulkActions, emptyDataMessage, }: TableProps<T>) => React$1.JSX.Element;
575
+ declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, filterValues, setAppliedFilters, onFilterChange, tableBulkActions, emptyDataMessage, }: TableProps<T>) => React$1.JSX.Element;
575
576
 
576
577
  type PageDataToolbarProps = {
577
578
  onRefetch?: () => void;
@@ -583,10 +584,11 @@ type PageDataToolbarProps = {
583
584
  isRefetching?: boolean;
584
585
  setAppliedFilters?: (values: Record<string, any>) => void;
585
586
  onFilterChange?: (values: Record<string, any>) => void;
587
+ filterValues?: Record<string, any>;
586
588
  filterListOptions?: FilterListItem[];
587
589
  id?: string;
588
590
  };
589
- declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
591
+ declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, filterValues, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
590
592
 
591
593
  declare const PermissionsContext: React$1.Context<ResourcePermissions | undefined>;
592
594
  declare const PermissionsProvider: ({ permissions, children, }: {
@@ -637,7 +639,7 @@ type FilterPopoverProps = FilterContentProps & {
637
639
  id?: string;
638
640
  onChange?: (values: Record<string, any>) => void;
639
641
  };
640
- declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, id, }: FilterPopoverProps) => React$1.JSX.Element | null;
642
+ declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, values, id, }: FilterPopoverProps) => React$1.JSX.Element | null;
641
643
 
642
644
  interface FilterSliceType {
643
645
  filters: Record<string, any> | null;