@databrainhq/plugin 0.14.66 → 0.14.67

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.
@@ -4,5 +4,7 @@ export type AlertProps = {
4
4
  children?: React.ReactNode;
5
5
  variant?: 'primary' | 'warning' | 'error' | 'success' | 'info';
6
6
  hideInfoIcon?: boolean;
7
+ className?: string;
8
+ childrenClassName?: string;
7
9
  };
8
- export declare const Alert: ({ variant, text, children, hideInfoIcon, }: AlertProps) => React.JSX.Element;
10
+ export declare const Alert: ({ variant, text, children, hideInfoIcon, className, childrenClassName, }: AlertProps) => React.JSX.Element;
@@ -3,6 +3,7 @@ import { Ui } from '@databrainhq/plugin';
3
3
  import { FloatingDropDownOption, OnChangeAliasParams, OnChangeHelperFunctionParams, SelectedColumn } from '@/types';
4
4
  export type AutoCompleteDropdownProps = {
5
5
  setSelectedOptions: React.Dispatch<React.SetStateAction<SelectedColumn[]>>;
6
+ onSubmitSearch?: () => void;
6
7
  selectedOption: SelectedColumn[];
7
8
  options: SelectedColumn[];
8
9
  label?: string;
@@ -11,7 +12,10 @@ export type AutoCompleteDropdownProps = {
11
12
  functionOptions?: (col?: SelectedColumn | undefined, colDatatype?: string | undefined) => FloatingDropDownOption[];
12
13
  onChangeHelperFunction?: ({ column, helperFunction, functionConfiguration, type, }: OnChangeHelperFunctionParams) => void;
13
14
  onChangeAlias: ({ alias, column }: OnChangeAliasParams) => void;
14
- isRef?: boolean;
15
- setRef?: React.Dispatch<React.SetStateAction<boolean>>;
15
+ position?: 'top' | 'bottom';
16
+ setKeyWords?: React.Dispatch<React.SetStateAction<string[]>>;
17
+ isSaveKeyword?: boolean;
18
+ setSaveKeyword?: React.Dispatch<React.SetStateAction<boolean>>;
19
+ setSearchQuestion?: React.Dispatch<React.SetStateAction<string>>;
16
20
  };
17
- export declare const AutoCompleteDropdown: ({ label, selectedOption, setSelectedOptions, options, isDisabled, placeholder, functionOptions, onChangeHelperFunction, onChangeAlias, isRef, setRef, }: AutoCompleteDropdownProps) => React.JSX.Element;
21
+ export declare const AutoCompleteDropdown: ({ label, selectedOption, setSelectedOptions, options, isDisabled, placeholder, functionOptions, onChangeHelperFunction, onChangeAlias, position, setKeyWords, isSaveKeyword, setSaveKeyword, onSubmitSearch, setSearchQuestion, }: AutoCompleteDropdownProps) => React.JSX.Element;
@@ -14,8 +14,10 @@ export type ChartPopupProps = React.PropsWithChildren & {
14
14
  event: any;
15
15
  };
16
16
  isSingleValueChart: boolean;
17
+ isGaugeChart: boolean;
18
+ chartValue: any;
17
19
  position?: 'left' | 'right' | 'top' | 'bottom' | 'left-bottom-end' | 'right-bottom-end' | 'left-top-end' | 'right-top-end' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top' | 'center' | 'dynamic';
18
20
  };
19
- export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, }: ChartPopupProps) => React.JSX.Element;
20
- declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, }: ChartPopupProps) => React.JSX.Element>;
21
+ export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, chartValue, isGaugeChart, }: ChartPopupProps) => React.JSX.Element;
22
+ declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, chartValue, isGaugeChart, }: ChartPopupProps) => React.JSX.Element>;
21
23
  export default _default;
@@ -16,7 +16,9 @@ type Props = {
16
16
  }>>;
17
17
  comparisonLagProps?: ComparisonLagProps;
18
18
  setResetPallete?: React.Dispatch<React.SetStateAction<boolean>>;
19
- onChangeTimeseriesFormat: (value: FloatingDropDownOption) => void;
19
+ onChangeTimeseriesFormat?: (value: FloatingDropDownOption) => void;
20
+ isChatMode?: boolean;
21
+ onChange?: (chartSettings: ChartSettingsType) => void;
20
22
  };
21
- export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps, setResetPallete, onChangeTimeseriesFormat, }: Props) => React.JSX.Element;
23
+ export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps, setResetPallete, onChangeTimeseriesFormat, isChatMode, onChange, }: Props) => React.JSX.Element;
22
24
  export {};
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import { IconSizes } from '@/types';
2
3
  type Props = {
3
4
  datatype: string;
4
5
  className?: string;
6
+ size?: IconSizes;
5
7
  };
6
- export declare const DataType: ({ datatype, className }: Props) => React.JSX.Element;
8
+ export declare const DataType: ({ datatype, className, size, }: Props) => React.JSX.Element;
7
9
  export {};
@@ -11,7 +11,6 @@ export type FloatingDropDownProps = {
11
11
  isSearchEnabled?: boolean;
12
12
  icon?: JSX.Element;
13
13
  buttonWidth?: string;
14
- buttonHeight?: string;
15
14
  menuWidth?: string;
16
15
  searchPlaceholder?: string;
17
16
  placeholder?: string;
@@ -21,6 +20,8 @@ export type FloatingDropDownProps = {
21
20
  radius?: string;
22
21
  isFilter?: boolean;
23
22
  isClearEnabled?: boolean;
23
+ size?: 'sm' | 'md' | 'lg' | 'xl';
24
+ buttonHeight?: string;
24
25
  };
25
- export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, buttonHeight, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, }: FloatingDropDownProps) => React.JSX.Element;
26
+ export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, buttonHeight, menuWidth, size, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, }: FloatingDropDownProps) => React.JSX.Element;
26
27
  export declare const FloatingDropDownWithSubValues: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, }: FloatingDropDownProps) => React.JSX.Element;