@databrainhq/plugin 0.9.2 → 0.9.4
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 +1 -2
- package/dist/components/Select/index.d.ts +3 -2
- package/dist/index.es.js +405 -385
- package/dist/index.umd.js +112 -112
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +17 -17
- package/package.json +96 -96
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,9 +14,8 @@ export declare type FloatingDropDownProps = {
|
|
|
14
14
|
closeControl?: {
|
|
15
15
|
close: boolean;
|
|
16
16
|
};
|
|
17
|
-
labelDesign?: string;
|
|
18
17
|
};
|
|
19
|
-
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, icon, isSearchEnabled, closeControl,
|
|
18
|
+
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, icon, isSearchEnabled, closeControl, }: FloatingDropDownProps) => JSX.Element;
|
|
20
19
|
export declare type MultiFloatingDropDownProps = Omit<FloatingDropDownProps, 'selectedOption' | 'onChange'> & {
|
|
21
20
|
selectedOptions: FloatingDropDownOption[];
|
|
22
21
|
onChange: (options: FloatingDropDownOption[]) => void;
|
|
@@ -17,13 +17,13 @@ declare type SelectInput = {
|
|
|
17
17
|
containerClass?: string;
|
|
18
18
|
isSearchEnabled?: boolean;
|
|
19
19
|
textSize?: string;
|
|
20
|
-
|
|
20
|
+
labelVariant?: 'floating' | 'static';
|
|
21
21
|
};
|
|
22
22
|
declare type HookSelectInput = Omit<SelectInput, 'value'> & {
|
|
23
23
|
control: Control;
|
|
24
24
|
name: string;
|
|
25
25
|
};
|
|
26
|
-
export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize,
|
|
26
|
+
export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, labelVariant, }: SelectInput) => JSX.Element;
|
|
27
27
|
export declare const HookSelect: ({ control, name, ...rest }: HookSelectInput) => JSX.Element;
|
|
28
28
|
export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => JSX.Element;
|
|
29
29
|
export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
|
|
@@ -39,6 +39,7 @@ declare type MultiSelectProps = {
|
|
|
39
39
|
children?: React.ReactNode;
|
|
40
40
|
placeHolder?: string;
|
|
41
41
|
onClick?: any;
|
|
42
|
+
labelVariant?: 'floating' | 'static';
|
|
42
43
|
isSearchEnabled?: boolean;
|
|
43
44
|
};
|
|
44
45
|
export declare const MultiSelect: React.FC<MultiSelectProps>;
|