@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.
- package/dist/components/Charts/SingleValueChart/index.d.ts +1 -1
- package/dist/components/GlobalFilters/index.d.ts +1 -0
- package/dist/components/InfoTooltip/index.d.ts +7 -1
- package/dist/components/InputField/index.d.ts +4 -14
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricList/components/MetricCard.d.ts +1 -0
- package/dist/index.es.js +1786 -1329
- package/dist/index.umd.js +56 -56
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +6 -0
- package/dist/types/metricCreate.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
12
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
23
13
|
}
|
|
24
|
-
export declare const InputField: ({
|
|
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;
|