@databrainhq/plugin 0.7.1 → 0.7.3

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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const SingleValueChart: ({ data }: any) => JSX.Element;
2
+ declare const SingleValueChart: ({ data, customSettings }: any) => JSX.Element;
3
3
  export default SingleValueChart;
@@ -5,6 +5,7 @@ declare type GlobalFiltersProps = {
5
5
  filters: FilterType[];
6
6
  companyId: string;
7
7
  onApply: (filters: MetricCardProps['globalFilters']) => void;
8
+ renderAdditionalHeaderContent?: () => JSX.Element;
8
9
  };
9
10
  export declare const GlobalFilters: React.FC<GlobalFiltersProps>;
10
11
  export {};
@@ -1,2 +1,8 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
- export declare const InfoTooltip: React.FC<PropsWithChildren>;
2
+ declare type TooltipProps = PropsWithChildren & {
3
+ content: JSX.Element;
4
+ className?: string;
5
+ };
6
+ export declare const Tooltip: React.FC<TooltipProps>;
7
+ export declare const InfoTooltip: React.FC<Omit<TooltipProps, 'content'>>;
8
+ export {};
@@ -1,25 +1,15 @@
1
1
  import { UseFormRegisterReturn } from 'react-hook-form';
2
2
  import React from 'react';
3
- interface Props {
4
- id?: string;
5
- value?: string;
6
- name?: string;
7
- placeholder?: string;
3
+ interface Props extends React.HTMLProps<HTMLInputElement> {
8
4
  label?: string;
9
- type: string;
10
- onBlur?: () => void;
11
- onFocus?: () => void;
12
- onKeyDown?: () => void;
13
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
+ labelVariant?: 'floating' | 'static';
14
6
  register?: UseFormRegisterReturn;
15
- defaultValue?: string | number | readonly string[] | undefined;
16
7
  error?: any;
17
8
  icon?: any;
18
- checked?: boolean;
19
9
  isDisabled?: boolean;
20
10
  labelClass?: string;
21
11
  inputClass?: string;
22
- className?: string;
12
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
23
13
  }
24
- export declare const InputField: ({ id, name, value, placeholder, label, type, onBlur, onFocus, onChange, onKeyDown, defaultValue, register, error, icon, checked, isDisabled, labelClass, inputClass, className, }: Props) => JSX.Element;
14
+ export declare const InputField: ({ type, register, error, icon, label, isDisabled, labelClass, inputClass, className, labelVariant, ...rest }: Props) => JSX.Element;
25
15
  export {};
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { MetricOutputProps } from '@/types/metricCreate';
3
- export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, }: MetricOutputProps) => JSX.Element;
3
+ export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, moreTabs, }: MetricOutputProps) => JSX.Element;
@@ -13,5 +13,6 @@ export declare type MetricCardProps = {
13
13
  colors?: string[];
14
14
  param?: any;
15
15
  companyTenancyType: string;
16
+ renderHeaderName?: (name: string) => JSX.Element;
16
17
  };
17
18
  export declare const MetricCard: React.FC<MetricCardProps>;