@databrainhq/plugin 0.8.5 → 0.8.7
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/README.md +26 -26
- package/dist/components/FloatingDropDown/index.d.ts +2 -1
- package/dist/components/MetricList/components/{DeleteMetricModal.d.ts → ArchiveMetricModal.d.ts} +2 -2
- package/dist/components/MetricList/components/MetricCard.d.ts +1 -1
- package/dist/components/MetricList/index.d.ts +1 -1
- package/dist/index.es.js +314 -315
- package/dist/index.umd.js +47 -53
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +17 -17
- package/dist/utils/generated/graphql.d.ts +22 -25
- package/package.json +98 -98
package/README.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# @databrainhq/plugin
|
|
2
|
-
|
|
3
|
-
> Databrain app ui plugin.
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/@databrainhq/plugin) [](https://standardjs.com)
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @databrainhq/plugin
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
import { Dashboard } from '@databrainhq/plugin';
|
|
17
|
-
import '@databrainhq/plugin/dist/style.css';
|
|
18
|
-
|
|
19
|
-
const Example = () => {
|
|
20
|
-
return <Dashboard token={/* Your Guest Token */} />;
|
|
21
|
-
};
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## License
|
|
25
|
-
|
|
26
|
-
MIT © [databrainhq](https://github.com/databrainhq)
|
|
1
|
+
# @databrainhq/plugin
|
|
2
|
+
|
|
3
|
+
> Databrain app ui plugin.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@databrainhq/plugin) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @databrainhq/plugin
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Dashboard } from '@databrainhq/plugin';
|
|
17
|
+
import '@databrainhq/plugin/dist/style.css';
|
|
18
|
+
|
|
19
|
+
const Example = () => {
|
|
20
|
+
return <Dashboard token={/* Your Guest Token */} />;
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
MIT © [databrainhq](https://github.com/databrainhq)
|
|
@@ -14,8 +14,9 @@ export declare type FloatingDropDownProps = {
|
|
|
14
14
|
closeControl?: {
|
|
15
15
|
close: boolean;
|
|
16
16
|
};
|
|
17
|
+
labelDesign?: string;
|
|
17
18
|
};
|
|
18
|
-
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, icon, isSearchEnabled, closeControl, }: FloatingDropDownProps) => JSX.Element;
|
|
19
|
+
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, icon, isSearchEnabled, closeControl, labelDesign, }: FloatingDropDownProps) => JSX.Element;
|
|
19
20
|
export declare type MultiFloatingDropDownProps = Omit<FloatingDropDownProps, 'selectedOption' | 'onChange'> & {
|
|
20
21
|
selectedOptions: FloatingDropDownOption[];
|
|
21
22
|
onChange: (options: FloatingDropDownOption[]) => void;
|
package/dist/components/MetricList/components/{DeleteMetricModal.d.ts → ArchiveMetricModal.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ModalProps } from '@/components/Modal';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ArchiveMetricModalProps extends Omit<ModalProps, 'headerTitle'> {
|
|
4
4
|
onSuccess: () => void;
|
|
5
5
|
metricId: string;
|
|
6
6
|
dashboardId: string;
|
|
7
7
|
clientId: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const ArchiveMetricModal: React.FC<ArchiveMetricModalProps>;
|
|
@@ -14,6 +14,6 @@ export declare type MetricCardProps = {
|
|
|
14
14
|
param?: any;
|
|
15
15
|
companyTenancyType: string;
|
|
16
16
|
renderHeaderName?: (name: string) => JSX.Element;
|
|
17
|
-
|
|
17
|
+
onArchive?: (metricId: string) => void;
|
|
18
18
|
};
|
|
19
19
|
export declare const MetricCard: React.FC<MetricCardProps>;
|