@databrainhq/plugin 0.14.64 → 0.14.66
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/Accordion/index.d.ts +5 -0
- package/dist/components/AutoCompleteDropdown/index.d.ts +1 -0
- package/dist/components/Badge/index.d.ts +2 -1
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/FloatingDropDown/index.d.ts +3 -1
- package/dist/components/Icons/icons.d.ts +1 -1
- package/dist/components/List/index.d.ts +7 -2
- package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +3 -1
- package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +2 -1
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Tab/index.d.ts +3 -1
- package/dist/components/TagInputField/index.d.ts +4 -3
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/consts/app.d.ts +3 -1
- package/dist/consts/metricOptions.d.ts +32 -0
- package/dist/containers/index.d.ts +3 -0
- package/dist/helpers/autoCompleteHelpers.d.ts +38 -0
- package/dist/helpers/createMetric.d.ts +3 -1
- package/dist/helpers/getNextScheduledTime.d.ts +1 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/timeseriesOption.d.ts +12 -9
- package/dist/index.d.ts +8 -0
- package/dist/types/app.d.ts +10 -1
- package/dist/types/metricCreate.d.ts +20 -1
- package/dist/utils/fetcher.d.ts +1 -0
- package/dist/webcomponents.es.js +42389 -40772
- package/dist/webcomponents.umd.js +243 -205
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ type AccordionV2Props = {
|
|
|
13
13
|
footer?: React.ReactNode;
|
|
14
14
|
isEnableEditBtn?: boolean;
|
|
15
15
|
editBtnOnClick?: () => void;
|
|
16
|
+
isNoPadding?: boolean;
|
|
16
17
|
} & AccordionProps;
|
|
17
18
|
export declare const AccordionV2: React.FC<AccordionV2Props>;
|
|
18
19
|
type AccordionV3Props = {
|
|
@@ -25,4 +26,8 @@ type AccordionV3Props = {
|
|
|
25
26
|
setIsOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
26
27
|
};
|
|
27
28
|
export declare const AccordionV3: ({ content, footer, header, isOpen, width, setIsOpen, headerButton, }: AccordionV3Props) => React.JSX.Element;
|
|
29
|
+
type AccordionV4Props = {
|
|
30
|
+
headerIcon?: React.ReactNode;
|
|
31
|
+
} & AccordionV3Props;
|
|
32
|
+
export declare const AccordionV4: ({ content, footer, header, headerIcon, isOpen, width, setIsOpen, headerButton, }: AccordionV4Props) => React.JSX.Element;
|
|
28
33
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Ui } from '@databrainhq/plugin';
|
|
2
3
|
import { FloatingDropDownOption, OnChangeAliasParams, OnChangeHelperFunctionParams, SelectedColumn } from '@/types';
|
|
3
4
|
export type AutoCompleteDropdownProps = {
|
|
4
5
|
setSelectedOptions: React.Dispatch<React.SetStateAction<SelectedColumn[]>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
label: string | number;
|
|
4
|
-
varaint?: 'warning' | 'success' | 'danger' | 'primary' | 'secondary' | 'info';
|
|
4
|
+
varaint?: 'warning' | 'success' | 'danger' | 'primary' | 'secondary' | 'info' | 'xs';
|
|
5
5
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
6
6
|
onClick?: () => void;
|
|
7
|
+
indicator?: JSX.Element;
|
|
7
8
|
};
|
|
8
9
|
export declare const Badge: React.FC<Props>;
|
|
9
10
|
export {};
|
|
@@ -5,7 +5,8 @@ interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
5
5
|
leftIcon?: JSX.Element;
|
|
6
6
|
rightIcon?: JSX.Element;
|
|
7
7
|
fitContainer?: boolean;
|
|
8
|
+
size?: 'small' | 'regular';
|
|
8
9
|
}
|
|
9
10
|
/** A basic button. Any props that are not explicitly called out below will be passed through to the native Button component. */
|
|
10
|
-
export declare const Button: ({ isDisabled, type, children, variant, onClick, title, leftIcon, rightIcon, fitContainer, className, ...props }: Props) => React.JSX.Element;
|
|
11
|
+
export declare const Button: ({ isDisabled, type, children, variant, onClick, size, title, leftIcon, rightIcon, fitContainer, className, ...props }: Props) => React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -11,6 +11,7 @@ export type FloatingDropDownProps = {
|
|
|
11
11
|
isSearchEnabled?: boolean;
|
|
12
12
|
icon?: JSX.Element;
|
|
13
13
|
buttonWidth?: string;
|
|
14
|
+
buttonHeight?: string;
|
|
14
15
|
menuWidth?: string;
|
|
15
16
|
searchPlaceholder?: string;
|
|
16
17
|
placeholder?: string;
|
|
@@ -21,4 +22,5 @@ export type FloatingDropDownProps = {
|
|
|
21
22
|
isFilter?: boolean;
|
|
22
23
|
isClearEnabled?: boolean;
|
|
23
24
|
};
|
|
24
|
-
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, }: FloatingDropDownProps) => React.JSX.Element;
|
|
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 FloatingDropDownWithSubValues: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, }: FloatingDropDownProps) => React.JSX.Element;
|