@bigbinary/neeto-molecules 1.15.22 → 1.15.24-beta

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.15.22",
3
+ "version": "1.15.24-beta",
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>",
@@ -37,6 +37,7 @@ export
37
37
  * ElementsPanel,
38
38
  * PropertiesPanel,
39
39
  * } from "@bigbinary/neeto-molecules/Builder";
40
+ * import Configure from "./Configure";
40
41
  *
41
42
  * const Component = () => (
42
43
  * <Container isHeaderFixed>
@@ -63,8 +64,11 @@ export
63
64
  * },
64
65
  * ]}
65
66
  * />
66
- * <PropertiesPanel>
67
- * <PropertiesPanel.EmptyProperty />
67
+ * <PropertiesPanel
68
+ * onClose={id => alert("The panel is closed :", id)}
69
+ * id={selectedRecord.id}
70
+ * >
71
+ * {selectedRecord.id ? <Configure /> : <PropertiesPanel.EmptyProperty />}
68
72
  * </PropertiesPanel>
69
73
  * </div>
70
74
  * </Container>
@@ -93,4 +97,6 @@ const ElementsPanel: React.FC<{
93
97
  }>;
94
98
  export const PropertiesPanel: React.FC<{
95
99
  children: React.ReactNode;
100
+ id: string;
101
+ onClose?: (id: string) => void;
96
102
  }>;
@@ -2,8 +2,13 @@ import React, { ReactNode } from "react";
2
2
  import { IntegrationCardProps } from "./IntegrationCard";
3
3
  type SettingItem = {
4
4
  label: string;
5
+ description: string;
5
6
  path: string;
6
- } & Partial<IntegrationCardProps>;
7
+ children: ReactNode;
8
+ icon: ReactNode;
9
+ dataCy?: string;
10
+ isConnected?: boolean;
11
+ };
7
12
  type SettingCategory = {
8
13
  id: string;
9
14
  label: string;
@@ -44,13 +49,10 @@ type SettingCategory = {
44
49
  * {
45
50
  * label: 'Github',
46
51
  * description: 'Connect with github',
47
- * icon: GithubIcon
48
- * onConnect: () => setIsIntegrationModalOpen(true)
49
- * onDisconnect: ()=> setIsIntegrationDisconnectModalOpen(true)
50
- * ...
51
- * ...
52
- * //rest of the props for IntegrationCard should be passed here.
53
- * // other props will be passed on to the integration card.
52
+ * icon: GithubIcon,
53
+ * path: routes.settings.integrations.github.index,
54
+ * isConnected: true,
55
+ * // other props will be spread on the Link element in the settings card.
54
56
  * }
55
57
  * ],
56
58
  * },
@@ -81,7 +83,7 @@ type SettingCategory = {
81
83
  *
82
84
  * return (
83
85
  * <div>
84
- * <Settings categories={getCategories({setIsIntegrationModalOpen: setIsOpen})} />
86
+ * <Settings categories={getCategories()} />
85
87
  * <IntegrationModal isOpen={isOpen}>
86
88
  * </div>
87
89
  * );