@databrainhq/plugin 0.9.35 → 0.9.37

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.
@@ -12,6 +12,7 @@ type Props = {
12
12
  endDate: Date;
13
13
  timeGrainValue: string;
14
14
  };
15
+ className?: string;
15
16
  };
16
17
  declare const DateRangePicker: React.FC<Props>;
17
18
  export default DateRangePicker;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { FilterFieldType } from '@/components/FilterField';
3
+ import { FilterType } from '@/types/app';
4
+ import { CompanyIntegrationQuery } from '@/utils/generated/graphql';
5
+ export type FilterColumn = {
6
+ as: string;
7
+ dataType: string;
8
+ name: string;
9
+ isDefault?: boolean;
10
+ isShowHorizontal?: boolean;
11
+ label?: string;
12
+ };
13
+ type FiltersProps = {
14
+ filterList: FilterColumn[];
15
+ setFilterList: React.Dispatch<React.SetStateAction<FilterColumn[]>>;
16
+ appliedfilters: FilterFieldType[];
17
+ setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
18
+ data: CompanyIntegrationQuery | undefined;
19
+ companyId: string;
20
+ filters: FilterType[];
21
+ };
22
+ export declare const Filters: React.FC<FiltersProps>;
23
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { FilterFieldType } from '@/components/FilterField';
3
+ import { FilterType } from '@/types/app';
4
+ import { CompanyIntegrationQuery } from '@/utils/generated/graphql';
5
+ type HorizontalFiltersProps = {
6
+ appliedfilters: FilterFieldType[];
7
+ setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
8
+ data: CompanyIntegrationQuery | undefined;
9
+ companyId: string;
10
+ filters: FilterType[];
11
+ };
12
+ export declare const HorizontalFilters: React.FC<HorizontalFiltersProps>;
13
+ export {};
@@ -12,6 +12,7 @@ type NumberFieldProps = {
12
12
  min: number;
13
13
  max: number;
14
14
  };
15
+ className?: string;
15
16
  };
16
- declare const NumberFilterField: ({ setAppliedFilters, column, defaultValues, }: NumberFieldProps) => JSX.Element;
17
+ declare const NumberFilterField: ({ setAppliedFilters, column, defaultValues, className, }: NumberFieldProps) => JSX.Element;
17
18
  export default NumberFilterField;
@@ -18,5 +18,6 @@ export type MetricCardProps = {
18
18
  companyTenancyType: string;
19
19
  renderHeaderName?: (name: string) => JSX.Element;
20
20
  onArchive?: (metricId: string) => void;
21
+ isDisableCardClick?: boolean;
21
22
  };
22
23
  export declare const MetricCard: React.FC<MetricCardProps>;