@bigbinary/neeto-molecules 1.0.37 → 1.0.38
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IconProps } from "neetoicons";
|
|
2
|
+
import React, { ReactElement } from "react";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* A common component used for integrations across neeto products.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
*
|
|
9
|
+
* import IntegrationCard from "@bigbinary/neeto-molecules/IntegrationCard";
|
|
10
|
+
*
|
|
11
|
+
* return (
|
|
12
|
+
* <IntegrationCard
|
|
13
|
+
* Icon={SlackIcon}
|
|
14
|
+
* description="Integrate with Slack"
|
|
15
|
+
* isConnected={isConnected}
|
|
16
|
+
* label="Slack"
|
|
17
|
+
* customDropdown={
|
|
18
|
+
* <Dropdown buttonStyle="text" icon={MenuVertical}>
|
|
19
|
+
* <Menu>
|
|
20
|
+
* <MenuItem.Button>Custom Option</MenuItem.Button>
|
|
21
|
+
* </Menu>
|
|
22
|
+
* </Dropdown>
|
|
23
|
+
* }
|
|
24
|
+
* onConnect={handleConnect}
|
|
25
|
+
* onDisconnect={handleDisconnect}
|
|
26
|
+
* onManage={handleManage}
|
|
27
|
+
* />
|
|
28
|
+
* );
|
|
29
|
+
* @endexample
|
|
30
|
+
*/
|
|
31
|
+
const IntegrationCard: React.FC<{
|
|
32
|
+
label: string;
|
|
33
|
+
description: string;
|
|
34
|
+
Icon: React.FC<IconProps>;
|
|
35
|
+
className?: string;
|
|
36
|
+
isConnected: boolean;
|
|
37
|
+
isStatusLoading?: boolean;
|
|
38
|
+
customDropdown?: React.ReactNode;
|
|
39
|
+
onDisconnect?: (...args: any[]) => any;
|
|
40
|
+
onConnect: (...args: any[]) => any;
|
|
41
|
+
onManage?: (...args: any[]) => any;
|
|
42
|
+
}>;
|
|
43
|
+
export default IntegrationCard;
|
package/types/Integration.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IconProps } from "neetoicons";
|
|
2
|
-
import React, { ReactElement } from "react";
|
|
3
|
-
|
|
4
|
-
export const Card: React.FC<{
|
|
5
|
-
label: string;
|
|
6
|
-
description: string;
|
|
7
|
-
Icon: React.FC<IconProps>;
|
|
8
|
-
className?: string;
|
|
9
|
-
isConnected: boolean;
|
|
10
|
-
isStatusLoading?: boolean;
|
|
11
|
-
customDropdown?: React.ReactNode;
|
|
12
|
-
onDisconnect?: (...args: any[]) => any;
|
|
13
|
-
onConnect: (...args: any[]) => any;
|
|
14
|
-
onManage?: (...args: any[]) => any;
|
|
15
|
-
}>;
|