@bigbinary/neeto-molecules 1.1.21 → 1.1.23
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/Builder.js +60 -19
- package/dist/Builder.js.map +1 -1
- package/dist/CustomDomain.js +79 -57
- package/dist/CustomDomain.js.map +1 -1
- package/dist/CustomDomainDashboard.js +92 -71
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/IntegrationCard.js +57 -16
- package/dist/IntegrationCard.js.map +1 -1
- package/dist/IpRestriction.js +69 -40
- package/dist/IpRestriction.js.map +1 -1
- package/dist/MoreDropdown.js +57 -16
- package/dist/MoreDropdown.js.map +1 -1
- package/dist/NavigationHeader.js +60 -19
- package/dist/NavigationHeader.js.map +1 -1
- package/dist/Rename.js +57 -16
- package/dist/Rename.js.map +1 -1
- package/dist/Schedule.js +60 -19
- package/dist/Schedule.js.map +1 -1
- package/dist/Settings.js +57 -16
- package/dist/Settings.js.map +1 -1
- package/dist/ShareViaLink.js +57 -16
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/ThemeSidebar.js +63 -22
- package/dist/ThemeSidebar.js.map +1 -1
- package/package.json +1 -1
- package/types/MoreDropdown.d.ts +28 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.23",
|
|
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>",
|
package/types/MoreDropdown.d.ts
CHANGED
|
@@ -5,54 +5,44 @@ type MenuItems = {
|
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
key: string;
|
|
7
7
|
isVisible?: boolean;
|
|
8
|
+
hasSubItems?: boolean;
|
|
9
|
+
dropdownProps?: DropdownProps;
|
|
10
|
+
menuItems?: MenuItems[];
|
|
8
11
|
};
|
|
9
12
|
/**
|
|
10
13
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* the title in the Header component and provides props for additional actions with
|
|
14
|
-
*
|
|
15
|
-
* the dropdown.
|
|
14
|
+
* Dropdown menu with a 3 dot trigger button, can be used as a more menu.
|
|
16
15
|
*
|
|
17
16
|
* @example
|
|
18
17
|
*
|
|
19
|
-
* import
|
|
18
|
+
* import React from "react";
|
|
19
|
+
* import MoreDropdown from "@bigbinary/neeto-molecules/MoreDropdown";
|
|
20
20
|
*
|
|
21
|
-
* const
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* link: "home",
|
|
38
|
-
* },
|
|
39
|
-
* {
|
|
40
|
-
* label: "Contacts",
|
|
41
|
-
* link: "contacts",
|
|
42
|
-
* },
|
|
43
|
-
* ]}
|
|
44
|
-
* />
|
|
45
|
-
* );
|
|
46
|
-
* };
|
|
21
|
+
* const Component = () => (
|
|
22
|
+
* <MoreDropdown
|
|
23
|
+
* menuItems={[
|
|
24
|
+
* {
|
|
25
|
+
* key: "edit-menu",
|
|
26
|
+
* label: "Edit",
|
|
27
|
+
* onClick: () => setIsEditMenuVisible(true),
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* key: "delete-menu",
|
|
31
|
+
* label: "Delete",
|
|
32
|
+
* onClick: () => setIsDeleteMenuVisible(true),
|
|
33
|
+
* },
|
|
34
|
+
* ]}
|
|
35
|
+
* />
|
|
36
|
+
* );
|
|
47
37
|
* @endexample
|
|
48
38
|
*/
|
|
49
|
-
const
|
|
50
|
-
dropdownButtonProps
|
|
51
|
-
isVertical
|
|
52
|
-
isDisabled
|
|
53
|
-
dropdownProps
|
|
39
|
+
const MoreDropdown: React.FC<{
|
|
40
|
+
dropdownButtonProps?: ButtonProps;
|
|
41
|
+
isVertical?: boolean;
|
|
42
|
+
isDisabled?: boolean;
|
|
43
|
+
dropdownProps?: DropdownProps;
|
|
54
44
|
menuTopChildren: React.ReactNode;
|
|
55
45
|
menuBottomChildren: React.ReactNode;
|
|
56
46
|
menuItems: MenuItems[];
|
|
57
47
|
}>;
|
|
58
|
-
export default
|
|
48
|
+
export default MoreDropdown;
|