@teambit/sidebar 0.0.549 → 0.0.555
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.
|
@@ -12,7 +12,13 @@ export declare type DrawerSlot = SlotRegistry<DrawerType>;
|
|
|
12
12
|
export declare class SidebarUI {
|
|
13
13
|
private drawerSlot;
|
|
14
14
|
constructor(drawerSlot: DrawerSlot);
|
|
15
|
+
/**
|
|
16
|
+
* register a new drawer into the component sidebar.
|
|
17
|
+
*/
|
|
15
18
|
registerDrawer(drawer: DrawerType): this;
|
|
19
|
+
/**
|
|
20
|
+
* render the sidebar.
|
|
21
|
+
*/
|
|
16
22
|
render: (props: Partial<SideBarProps>) => JSX.Element;
|
|
17
23
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
18
24
|
static slots: ((registerFn: () => string) => SlotRegistry<DrawerType>)[];
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawerSlot, SidebarItemSlot } from '../../sidebar.ui.runtime';
|
|
3
3
|
export declare type SideBarProps = {
|
|
4
|
+
/**
|
|
5
|
+
* slot of registered drawers.
|
|
6
|
+
*/
|
|
4
7
|
drawerSlot: DrawerSlot;
|
|
5
8
|
itemSlot?: SidebarItemSlot;
|
|
6
9
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
/**
|
|
11
|
+
* side bar component.
|
|
12
|
+
*/
|
|
7
13
|
export declare function SideBar({ drawerSlot, itemSlot, ...rest }: SideBarProps): JSX.Element;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/sidebar",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.555",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/ui-foundation/sidebar",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "sidebar",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.555"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.2.11",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@teambit/base-ui.routing.nav-link": "1.0.0",
|
|
18
18
|
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
19
19
|
"@teambit/documenter.ui.separator": "4.1.1",
|
|
20
|
-
"@teambit/component": "0.0.
|
|
21
|
-
"@teambit/ui-foundation.ui.tree.drawer": "0.0.
|
|
22
|
-
"@teambit/ui": "0.0.
|
|
20
|
+
"@teambit/component": "0.0.555",
|
|
21
|
+
"@teambit/ui-foundation.ui.tree.drawer": "0.0.463",
|
|
22
|
+
"@teambit/ui": "0.0.555",
|
|
23
23
|
"@teambit/design.ui.surfaces.menu.section": "0.0.347"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/node": "12.20.4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@teambit/legacy": "1.0.
|
|
36
|
+
"@teambit/legacy": "1.0.172",
|
|
37
37
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
38
38
|
"react": "^16.8.0 || ^17.0.0"
|
|
39
39
|
},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react": "-"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@teambit/legacy": "1.0.
|
|
64
|
+
"@teambit/legacy": "1.0.172",
|
|
65
65
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
66
66
|
"react": "^16.8.0 || ^17.0.0"
|
|
67
67
|
}
|
package/tsconfig.json
CHANGED
|
Binary file
|