@teambit/ui-foundation.ui.side-bar 0.0.490 → 0.0.495
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/__preview-1643340137110.js +1 -0
- package/component-tree/component-tree.tsx +16 -16
- package/component-tree/namespace-tree-node/namespace-tree-node.module.scss +5 -0
- package/component-tree/namespace-tree-node/namespace-tree-node.tsx +33 -10
- package/component-tree/scope-tree-node/scope-tree-node.module.scss +6 -1
- package/component-tree/scope-tree-node/scope-tree-node.tsx +37 -9
- package/dist/component-tree/component-tree.d.ts +4 -5
- package/dist/component-tree/component-tree.js +13 -7
- package/dist/component-tree/component-tree.js.map +1 -1
- package/dist/component-tree/component-view/component-view.d.ts +1 -0
- package/dist/component-tree/default-tree-node-renderer/default-tree-node-renderer.d.ts +1 -0
- package/dist/component-tree/namespace-tree-node/namespace-tree-node.d.ts +4 -2
- package/dist/component-tree/namespace-tree-node/namespace-tree-node.js +26 -7
- package/dist/component-tree/namespace-tree-node/namespace-tree-node.js.map +1 -1
- package/dist/component-tree/namespace-tree-node/namespace-tree-node.module.scss +5 -0
- package/dist/component-tree/scope-tree-node/scope-tree-node.d.ts +4 -2
- package/dist/component-tree/scope-tree-node/scope-tree-node.js +27 -8
- package/dist/component-tree/scope-tree-node/scope-tree-node.js.map +1 -1
- package/dist/component-tree/scope-tree-node/scope-tree-node.module.scss +6 -1
- package/dist/overview-link/overview-link.d.ts +1 -0
- package/package-tar/teambit-ui-foundation.ui.side-bar-0.0.495.tgz +0 -0
- package/package.json +9 -10
- package/package-tar/teambit-ui-foundation.ui.side-bar-0.0.490.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { ComponentModel } from '@teambit/component';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useLocation } from '@teambit/base-ui.routing.routing-provider';
|
|
4
4
|
import { indentStyle } from '@teambit/base-ui.graph.tree.indent';
|
|
5
5
|
import { inflateToTree, attachPayload } from '@teambit/base-ui.graph.tree.inflate-paths';
|
|
6
|
-
import {
|
|
7
|
-
import { RootNode } from '@teambit/base-ui.graph.tree.root-node';
|
|
6
|
+
import { Tree, TreeNodeRenderer } from '@teambit/design.ui.tree';
|
|
8
7
|
import { PayloadType, ScopePayload } from './payload-type';
|
|
9
8
|
import { DefaultTreeNodeRenderer } from './default-tree-node-renderer';
|
|
10
9
|
|
|
11
10
|
type ComponentTreeProps = {
|
|
12
|
-
onSelect?: (id: string, event?: React.MouseEvent) => void;
|
|
13
|
-
selected?: string;
|
|
14
11
|
components: ComponentModel[];
|
|
15
12
|
TreeNode?: TreeNodeRenderer<PayloadType>;
|
|
13
|
+
isCollapsed?: boolean;
|
|
16
14
|
};
|
|
17
15
|
|
|
18
|
-
export function ComponentTree({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
export function ComponentTree({ components, isCollapsed, TreeNode = DefaultTreeNodeRenderer }: ComponentTreeProps) {
|
|
17
|
+
const { pathname } = useLocation();
|
|
18
|
+
|
|
19
|
+
const activeComponent = useMemo(() => {
|
|
20
|
+
const path = pathname?.startsWith('/') ? pathname.substring(1) : pathname;
|
|
21
|
+
const active = components.find((x) => {
|
|
22
|
+
// TODO - reuse logic from component.route.ts
|
|
23
|
+
return path && path === x.id.fullName;
|
|
24
|
+
});
|
|
25
|
+
return active?.id.toString({ ignoreVersion: true });
|
|
26
|
+
}, [components, pathname]);
|
|
27
|
+
|
|
24
28
|
const rootNode = useMemo(() => {
|
|
25
29
|
const tree = inflateToTree<ComponentModel, PayloadType>(components, (c) => c.id.toString({ ignoreVersion: true }));
|
|
26
30
|
|
|
@@ -33,11 +37,7 @@ export function ComponentTree({
|
|
|
33
37
|
|
|
34
38
|
return (
|
|
35
39
|
<div style={indentStyle(1)}>
|
|
36
|
-
<
|
|
37
|
-
<TreeContextProvider onSelect={onSelect} selected={selected}>
|
|
38
|
-
<RootNode node={rootNode} depth={1} />
|
|
39
|
-
</TreeContextProvider>
|
|
40
|
-
</TreeNodeContext.Provider>
|
|
40
|
+
<Tree TreeNode={TreeNode} activePath={activeComponent} tree={rootNode} isCollapsed={isCollapsed} />
|
|
41
41
|
</div>
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
font-size: inherit;
|
|
12
12
|
padding-right: 8px;
|
|
13
13
|
font-size: var(--bit-p-xs);
|
|
14
|
+
cursor: pointer;
|
|
14
15
|
&:hover {
|
|
15
16
|
background: var(--bit-bg-heavy, #f6f6f6);
|
|
16
17
|
}
|
|
@@ -27,6 +28,10 @@
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
.highlighted {
|
|
32
|
+
color: var(--bit-accent-heavy, #5d4aec);
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
.left {
|
|
31
36
|
display: flex;
|
|
32
37
|
align-items: center;
|
|
@@ -1,31 +1,54 @@
|
|
|
1
1
|
import { Icon } from '@teambit/evangelist.elements.icon';
|
|
2
|
-
import { clickable } from '@teambit/legacy/dist/to-eject/css-components/clickable';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
|
-
import React, { useState } from 'react';
|
|
3
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
5
4
|
import AnimateHeight from 'react-animate-height';
|
|
6
|
-
|
|
7
5
|
import { indentClass, indentStyle } from '@teambit/base-ui.graph.tree.indent';
|
|
8
|
-
import { TreeNodeProps, TreeLayer } from '@teambit/
|
|
6
|
+
import { useTree, TreeNodeProps, TreeLayer } from '@teambit/design.ui.tree';
|
|
9
7
|
import { PayloadType } from '../payload-type';
|
|
10
8
|
import { getName } from '../utils/get-name';
|
|
11
9
|
import styles from './namespace-tree-node.module.scss';
|
|
12
10
|
|
|
13
|
-
export
|
|
14
|
-
const [collapsed, collapse] = useState(false);
|
|
11
|
+
export type NamespaceTreeNodeProps = {} & TreeNodeProps<PayloadType>;
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
export function NamespaceTreeNode({ node, depth }: NamespaceTreeNodeProps) {
|
|
14
|
+
const { isCollapsed, activePath } = useTree();
|
|
15
|
+
const isActive = activePath?.startsWith(node.id);
|
|
16
|
+
|
|
17
|
+
const initialOpen = isActive || !isCollapsed;
|
|
18
|
+
const [open, toggle] = useState<boolean | void>(initialOpen);
|
|
19
|
+
|
|
20
|
+
const firstRun = useRef(true);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
const current = firstRun.current;
|
|
23
|
+
if (current) return;
|
|
24
|
+
if (isActive === true) toggle(true);
|
|
25
|
+
}, [isActive]);
|
|
17
26
|
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (firstRun.current) return;
|
|
29
|
+
toggle(!isCollapsed);
|
|
30
|
+
}, [isCollapsed]);
|
|
31
|
+
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
firstRun.current = false;
|
|
34
|
+
}, []);
|
|
35
|
+
|
|
36
|
+
const displayName = getName(node.id.replace(/\/$/, ''));
|
|
37
|
+
const highlighted = !open && isActive;
|
|
18
38
|
return (
|
|
19
39
|
<div>
|
|
20
40
|
{node.id && (
|
|
21
|
-
<div
|
|
41
|
+
<div
|
|
42
|
+
className={classNames(indentClass, styles.namespace, highlighted && styles.highlighted)}
|
|
43
|
+
onClick={() => toggle(!open)}
|
|
44
|
+
>
|
|
22
45
|
<div className={styles.left}>
|
|
23
|
-
<Icon className={classNames(styles.arrow,
|
|
46
|
+
<Icon className={classNames(styles.arrow, !open && styles.collapsed)} of="fat-arrow-down" />
|
|
24
47
|
<span className={styles.name}>{displayName}</span>
|
|
25
48
|
</div>
|
|
26
49
|
</div>
|
|
27
50
|
)}
|
|
28
|
-
<AnimateHeight height={
|
|
51
|
+
<AnimateHeight height={open ? 'auto' : 0}>
|
|
29
52
|
<div style={indentStyle(depth + 1)} className={classNames(styles.componentTree)}>
|
|
30
53
|
{node.children && <TreeLayer childNodes={node.children} depth={depth} />}
|
|
31
54
|
</div>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@import '~@teambit/base-ui.theme.colors/colors.module.scss';
|
|
2
2
|
|
|
3
|
-
.
|
|
3
|
+
.scope {
|
|
4
4
|
position: relative;
|
|
5
5
|
height: 32px;
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
user-select: none;
|
|
10
|
+
cursor: pointer;
|
|
10
11
|
font-weight: bold;
|
|
11
12
|
font-size: inherit;
|
|
12
13
|
padding-right: 8px;
|
|
@@ -27,6 +28,10 @@
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
.highlighted {
|
|
32
|
+
color: var(--bit-accent-heavy, #5d4aec);
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
.left {
|
|
31
36
|
display: flex;
|
|
32
37
|
align-items: center;
|
|
@@ -1,31 +1,59 @@
|
|
|
1
1
|
import { Icon } from '@teambit/evangelist.elements.icon';
|
|
2
|
-
import { clickable } from '@teambit/legacy/dist/to-eject/css-components/clickable';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
|
-
import React, { useState } from 'react';
|
|
3
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
5
4
|
import AnimateHeight from 'react-animate-height';
|
|
6
5
|
|
|
7
|
-
import { indentClass, indentStyle } from '@teambit/
|
|
8
|
-
import { TreeLayer, TreeNodeProps } from '@teambit/base-ui.graph.tree.recursive-tree';
|
|
6
|
+
import { indentClass, indentStyle, TreeNodeProps, TreeLayer, useTree } from '@teambit/design.ui.tree';
|
|
9
7
|
import { PayloadType } from '../payload-type';
|
|
10
8
|
import { getName } from '../utils/get-name';
|
|
11
9
|
import styles from './scope-tree-node.module.scss';
|
|
12
10
|
|
|
13
|
-
export
|
|
14
|
-
|
|
11
|
+
export type ScopeTreeNodeProps = {} & TreeNodeProps<PayloadType>;
|
|
12
|
+
|
|
13
|
+
export function ScopeTreeNode({ node, depth }: ScopeTreeNodeProps) {
|
|
14
|
+
const { isCollapsed, activePath } = useTree();
|
|
15
|
+
const isActive = activePath?.startsWith(node.id);
|
|
16
|
+
|
|
17
|
+
const initialOpen = isActive || !isCollapsed;
|
|
18
|
+
|
|
19
|
+
const [open, toggle] = useState<boolean | void>(initialOpen);
|
|
20
|
+
|
|
15
21
|
const displayName = getName(node.id.replace(/\/$/, ''));
|
|
16
22
|
|
|
23
|
+
const firstRun = useRef(true);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
const current = firstRun.current;
|
|
26
|
+
if (current) return;
|
|
27
|
+
if (isActive === true) toggle(true);
|
|
28
|
+
}, [isActive]);
|
|
29
|
+
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const current = firstRun.current;
|
|
32
|
+
if (current) return;
|
|
33
|
+
toggle(!isCollapsed);
|
|
34
|
+
}, [isCollapsed]);
|
|
35
|
+
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
firstRun.current = false;
|
|
38
|
+
}, []);
|
|
39
|
+
|
|
40
|
+
const highlighted = !open && isActive;
|
|
41
|
+
|
|
17
42
|
return (
|
|
18
43
|
<div>
|
|
19
44
|
{node.id && (
|
|
20
|
-
<div
|
|
45
|
+
<div
|
|
46
|
+
className={classNames(indentClass, styles.scope, highlighted && styles.highlighted)}
|
|
47
|
+
onClick={() => toggle(!open)}
|
|
48
|
+
>
|
|
21
49
|
<div className={styles.left}>
|
|
22
|
-
<Icon className={classNames(styles.arrow,
|
|
50
|
+
<Icon className={classNames(styles.arrow, !open && styles.collapsed)} of="fat-arrow-down" />
|
|
23
51
|
<Icon className={styles.arrow} of="collection-full" />
|
|
24
52
|
<span className={styles.name}>{displayName}</span>
|
|
25
53
|
</div>
|
|
26
54
|
</div>
|
|
27
55
|
)}
|
|
28
|
-
<AnimateHeight height={
|
|
56
|
+
<AnimateHeight height={open ? 'auto' : 0}>
|
|
29
57
|
<div style={indentStyle(depth + 1)} className={classNames(styles.componentTree)}>
|
|
30
58
|
{node.children && <TreeLayer childNodes={node.children} depth={depth + 1} />}
|
|
31
59
|
</div>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentModel } from '@teambit/component';
|
|
2
|
-
import
|
|
3
|
-
import { TreeNodeRenderer } from '@teambit/base-ui.graph.tree.recursive-tree';
|
|
3
|
+
import { TreeNodeRenderer } from '@teambit/design.ui.tree';
|
|
4
4
|
import { PayloadType } from './payload-type';
|
|
5
5
|
declare type ComponentTreeProps = {
|
|
6
|
-
onSelect?: (id: string, event?: React.MouseEvent) => void;
|
|
7
|
-
selected?: string;
|
|
8
6
|
components: ComponentModel[];
|
|
9
7
|
TreeNode?: TreeNodeRenderer<PayloadType>;
|
|
8
|
+
isCollapsed?: boolean;
|
|
10
9
|
};
|
|
11
|
-
export declare function ComponentTree({ components,
|
|
10
|
+
export declare function ComponentTree({ components, isCollapsed, TreeNode }: ComponentTreeProps): JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -21,14 +21,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.ComponentTree = void 0;
|
|
23
23
|
const react_1 = __importStar(require("react"));
|
|
24
|
-
const
|
|
24
|
+
const base_ui_routing_routing_provider_1 = require("@teambit/base-ui.routing.routing-provider");
|
|
25
25
|
const base_ui_graph_tree_indent_1 = require("@teambit/base-ui.graph.tree.indent");
|
|
26
26
|
const base_ui_graph_tree_inflate_paths_1 = require("@teambit/base-ui.graph.tree.inflate-paths");
|
|
27
|
-
const
|
|
28
|
-
const base_ui_graph_tree_root_node_1 = require("@teambit/base-ui.graph.tree.root-node");
|
|
27
|
+
const design_ui_tree_1 = require("@teambit/design.ui.tree");
|
|
29
28
|
const payload_type_1 = require("./payload-type");
|
|
30
29
|
const default_tree_node_renderer_1 = require("./default-tree-node-renderer");
|
|
31
|
-
function ComponentTree({ components,
|
|
30
|
+
function ComponentTree({ components, isCollapsed, TreeNode = default_tree_node_renderer_1.DefaultTreeNodeRenderer }) {
|
|
31
|
+
const { pathname } = (0, base_ui_routing_routing_provider_1.useLocation)();
|
|
32
|
+
const activeComponent = (0, react_1.useMemo)(() => {
|
|
33
|
+
const path = (pathname === null || pathname === void 0 ? void 0 : pathname.startsWith('/')) ? pathname.substring(1) : pathname;
|
|
34
|
+
const active = components.find((x) => {
|
|
35
|
+
// TODO - reuse logic from component.route.ts
|
|
36
|
+
return path && path === x.id.fullName;
|
|
37
|
+
});
|
|
38
|
+
return active === null || active === void 0 ? void 0 : active.id.toString({ ignoreVersion: true });
|
|
39
|
+
}, [components, pathname]);
|
|
32
40
|
const rootNode = (0, react_1.useMemo)(() => {
|
|
33
41
|
const tree = (0, base_ui_graph_tree_inflate_paths_1.inflateToTree)(components, (c) => c.id.toString({ ignoreVersion: true }));
|
|
34
42
|
const payloadMap = calcPayload(components);
|
|
@@ -36,9 +44,7 @@ function ComponentTree({ components, onSelect, selected, TreeNode = default_tree
|
|
|
36
44
|
return tree;
|
|
37
45
|
}, [components]);
|
|
38
46
|
return (react_1.default.createElement("div", { style: (0, base_ui_graph_tree_indent_1.indentStyle)(1) },
|
|
39
|
-
react_1.default.createElement(
|
|
40
|
-
react_1.default.createElement(base_ui_graph_tree_tree_context_1.TreeContextProvider, { onSelect: onSelect, selected: selected },
|
|
41
|
-
react_1.default.createElement(base_ui_graph_tree_root_node_1.RootNode, { node: rootNode, depth: 1 })))));
|
|
47
|
+
react_1.default.createElement(design_ui_tree_1.Tree, { TreeNode: TreeNode, activePath: activeComponent, tree: rootNode, isCollapsed: isCollapsed })));
|
|
42
48
|
}
|
|
43
49
|
exports.ComponentTree = ComponentTree;
|
|
44
50
|
function calcPayload(components) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-tree.js","sourceRoot":"","sources":["../../component-tree/component-tree.tsx"],"names":[],"mappings":";;;;;;;;;;;;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
|
|
4
|
+
export declare type NamespaceTreeNodeProps = {} & TreeNodeProps<PayloadType>;
|
|
5
|
+
export declare function NamespaceTreeNode({ node, depth }: NamespaceTreeNodeProps): JSX.Element;
|
|
@@ -24,24 +24,43 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.NamespaceTreeNode = void 0;
|
|
26
26
|
const evangelist_elements_icon_1 = require("@teambit/evangelist.elements.icon");
|
|
27
|
-
const clickable_1 = require("@teambit/legacy/dist/to-eject/css-components/clickable");
|
|
28
27
|
const classnames_1 = __importDefault(require("classnames"));
|
|
29
28
|
const react_1 = __importStar(require("react"));
|
|
30
29
|
const react_animate_height_1 = __importDefault(require("react-animate-height"));
|
|
31
30
|
const base_ui_graph_tree_indent_1 = require("@teambit/base-ui.graph.tree.indent");
|
|
32
|
-
const
|
|
31
|
+
const design_ui_tree_1 = require("@teambit/design.ui.tree");
|
|
33
32
|
const get_name_1 = require("../utils/get-name");
|
|
34
33
|
const namespace_tree_node_module_scss_1 = __importDefault(require("./namespace-tree-node.module.scss"));
|
|
35
34
|
function NamespaceTreeNode({ node, depth }) {
|
|
36
|
-
const
|
|
35
|
+
const { isCollapsed, activePath } = (0, design_ui_tree_1.useTree)();
|
|
36
|
+
const isActive = activePath === null || activePath === void 0 ? void 0 : activePath.startsWith(node.id);
|
|
37
|
+
const initialOpen = isActive || !isCollapsed;
|
|
38
|
+
const [open, toggle] = (0, react_1.useState)(initialOpen);
|
|
39
|
+
const firstRun = (0, react_1.useRef)(true);
|
|
40
|
+
(0, react_1.useEffect)(() => {
|
|
41
|
+
const current = firstRun.current;
|
|
42
|
+
if (current)
|
|
43
|
+
return;
|
|
44
|
+
if (isActive === true)
|
|
45
|
+
toggle(true);
|
|
46
|
+
}, [isActive]);
|
|
47
|
+
(0, react_1.useEffect)(() => {
|
|
48
|
+
if (firstRun.current)
|
|
49
|
+
return;
|
|
50
|
+
toggle(!isCollapsed);
|
|
51
|
+
}, [isCollapsed]);
|
|
52
|
+
(0, react_1.useEffect)(() => {
|
|
53
|
+
firstRun.current = false;
|
|
54
|
+
}, []);
|
|
37
55
|
const displayName = (0, get_name_1.getName)(node.id.replace(/\/$/, ''));
|
|
56
|
+
const highlighted = !open && isActive;
|
|
38
57
|
return (react_1.default.createElement("div", null,
|
|
39
|
-
node.id && (react_1.default.createElement("div", { className: (0, classnames_1.default)(base_ui_graph_tree_indent_1.indentClass,
|
|
58
|
+
node.id && (react_1.default.createElement("div", { className: (0, classnames_1.default)(base_ui_graph_tree_indent_1.indentClass, namespace_tree_node_module_scss_1.default.namespace, highlighted && namespace_tree_node_module_scss_1.default.highlighted), onClick: () => toggle(!open) },
|
|
40
59
|
react_1.default.createElement("div", { className: namespace_tree_node_module_scss_1.default.left },
|
|
41
|
-
react_1.default.createElement(evangelist_elements_icon_1.Icon, { className: (0, classnames_1.default)(namespace_tree_node_module_scss_1.default.arrow,
|
|
60
|
+
react_1.default.createElement(evangelist_elements_icon_1.Icon, { className: (0, classnames_1.default)(namespace_tree_node_module_scss_1.default.arrow, !open && namespace_tree_node_module_scss_1.default.collapsed), of: "fat-arrow-down" }),
|
|
42
61
|
react_1.default.createElement("span", { className: namespace_tree_node_module_scss_1.default.name }, displayName)))),
|
|
43
|
-
react_1.default.createElement(react_animate_height_1.default, { height:
|
|
44
|
-
react_1.default.createElement("div", { style: (0, base_ui_graph_tree_indent_1.indentStyle)(depth + 1), className: (0, classnames_1.default)(namespace_tree_node_module_scss_1.default.componentTree) }, node.children && react_1.default.createElement(
|
|
62
|
+
react_1.default.createElement(react_animate_height_1.default, { height: open ? 'auto' : 0 },
|
|
63
|
+
react_1.default.createElement("div", { style: (0, base_ui_graph_tree_indent_1.indentStyle)(depth + 1), className: (0, classnames_1.default)(namespace_tree_node_module_scss_1.default.componentTree) }, node.children && react_1.default.createElement(design_ui_tree_1.TreeLayer, { childNodes: node.children, depth: depth })))));
|
|
45
64
|
}
|
|
46
65
|
exports.NamespaceTreeNode = NamespaceTreeNode;
|
|
47
66
|
//# sourceMappingURL=namespace-tree-node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace-tree-node.js","sourceRoot":"","sources":["../../../component-tree/namespace-tree-node/namespace-tree-node.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gFAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"namespace-tree-node.js","sourceRoot":"","sources":["../../../component-tree/namespace-tree-node/namespace-tree-node.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gFAAyD;AACzD,4DAAoC;AACpC,+CAA2D;AAC3D,gFAAiD;AACjD,kFAA8E;AAC9E,4DAA4E;AAE5E,gDAA4C;AAC5C,wGAAuD;AAIvD,SAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,KAAK,EAA0B;IACvE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAA,wBAAO,GAAE,CAAC;IAC9C,MAAM,QAAQ,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjD,MAAM,WAAW,GAAG,QAAQ,IAAI,CAAC,WAAW,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,IAAA,gBAAQ,EAAiB,WAAW,CAAC,CAAC;IAE7D,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,CAAC;IAC9B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QACjC,IAAI,OAAO;YAAE,OAAO;QACpB,IAAI,QAAQ,KAAK,IAAI;YAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,I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,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAI,CACpE,CACQ,CACZ,CACP,CAAC;AACJ,CAAC;AA7CD,8CA6CC"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
font-size: inherit;
|
|
12
12
|
padding-right: 8px;
|
|
13
13
|
font-size: var(--bit-p-xs);
|
|
14
|
+
cursor: pointer;
|
|
14
15
|
&:hover {
|
|
15
16
|
background: var(--bit-bg-heavy, #f6f6f6);
|
|
16
17
|
}
|
|
@@ -27,6 +28,10 @@
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
.highlighted {
|
|
32
|
+
color: var(--bit-accent-heavy, #5d4aec);
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
.left {
|
|
31
36
|
display: flex;
|
|
32
37
|
align-items: center;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TreeNodeProps } from '@teambit/design.ui.tree';
|
|
2
3
|
import { PayloadType } from '../payload-type';
|
|
3
|
-
export declare
|
|
4
|
+
export declare type ScopeTreeNodeProps = {} & TreeNodeProps<PayloadType>;
|
|
5
|
+
export declare function ScopeTreeNode({ node, depth }: ScopeTreeNodeProps): JSX.Element;
|
|
@@ -24,25 +24,44 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ScopeTreeNode = void 0;
|
|
26
26
|
const evangelist_elements_icon_1 = require("@teambit/evangelist.elements.icon");
|
|
27
|
-
const clickable_1 = require("@teambit/legacy/dist/to-eject/css-components/clickable");
|
|
28
27
|
const classnames_1 = __importDefault(require("classnames"));
|
|
29
28
|
const react_1 = __importStar(require("react"));
|
|
30
29
|
const react_animate_height_1 = __importDefault(require("react-animate-height"));
|
|
31
|
-
const
|
|
32
|
-
const base_ui_graph_tree_recursive_tree_1 = require("@teambit/base-ui.graph.tree.recursive-tree");
|
|
30
|
+
const design_ui_tree_1 = require("@teambit/design.ui.tree");
|
|
33
31
|
const get_name_1 = require("../utils/get-name");
|
|
34
32
|
const scope_tree_node_module_scss_1 = __importDefault(require("./scope-tree-node.module.scss"));
|
|
35
33
|
function ScopeTreeNode({ node, depth }) {
|
|
36
|
-
const
|
|
34
|
+
const { isCollapsed, activePath } = (0, design_ui_tree_1.useTree)();
|
|
35
|
+
const isActive = activePath === null || activePath === void 0 ? void 0 : activePath.startsWith(node.id);
|
|
36
|
+
const initialOpen = isActive || !isCollapsed;
|
|
37
|
+
const [open, toggle] = (0, react_1.useState)(initialOpen);
|
|
37
38
|
const displayName = (0, get_name_1.getName)(node.id.replace(/\/$/, ''));
|
|
39
|
+
const firstRun = (0, react_1.useRef)(true);
|
|
40
|
+
(0, react_1.useEffect)(() => {
|
|
41
|
+
const current = firstRun.current;
|
|
42
|
+
if (current)
|
|
43
|
+
return;
|
|
44
|
+
if (isActive === true)
|
|
45
|
+
toggle(true);
|
|
46
|
+
}, [isActive]);
|
|
47
|
+
(0, react_1.useEffect)(() => {
|
|
48
|
+
const current = firstRun.current;
|
|
49
|
+
if (current)
|
|
50
|
+
return;
|
|
51
|
+
toggle(!isCollapsed);
|
|
52
|
+
}, [isCollapsed]);
|
|
53
|
+
(0, react_1.useEffect)(() => {
|
|
54
|
+
firstRun.current = false;
|
|
55
|
+
}, []);
|
|
56
|
+
const highlighted = !open && isActive;
|
|
38
57
|
return (react_1.default.createElement("div", null,
|
|
39
|
-
node.id && (react_1.default.createElement("div", { className: (0, classnames_1.default)(
|
|
58
|
+
node.id && (react_1.default.createElement("div", { className: (0, classnames_1.default)(design_ui_tree_1.indentClass, scope_tree_node_module_scss_1.default.scope, highlighted && scope_tree_node_module_scss_1.default.highlighted), onClick: () => toggle(!open) },
|
|
40
59
|
react_1.default.createElement("div", { className: scope_tree_node_module_scss_1.default.left },
|
|
41
|
-
react_1.default.createElement(evangelist_elements_icon_1.Icon, { className: (0, classnames_1.default)(scope_tree_node_module_scss_1.default.arrow,
|
|
60
|
+
react_1.default.createElement(evangelist_elements_icon_1.Icon, { className: (0, classnames_1.default)(scope_tree_node_module_scss_1.default.arrow, !open && scope_tree_node_module_scss_1.default.collapsed), of: "fat-arrow-down" }),
|
|
42
61
|
react_1.default.createElement(evangelist_elements_icon_1.Icon, { className: scope_tree_node_module_scss_1.default.arrow, of: "collection-full" }),
|
|
43
62
|
react_1.default.createElement("span", { className: scope_tree_node_module_scss_1.default.name }, displayName)))),
|
|
44
|
-
react_1.default.createElement(react_animate_height_1.default, { height:
|
|
45
|
-
react_1.default.createElement("div", { style: (0,
|
|
63
|
+
react_1.default.createElement(react_animate_height_1.default, { height: open ? 'auto' : 0 },
|
|
64
|
+
react_1.default.createElement("div", { style: (0, design_ui_tree_1.indentStyle)(depth + 1), className: (0, classnames_1.default)(scope_tree_node_module_scss_1.default.componentTree) }, node.children && react_1.default.createElement(design_ui_tree_1.TreeLayer, { childNodes: node.children, depth: depth + 1 })))));
|
|
46
65
|
}
|
|
47
66
|
exports.ScopeTreeNode = ScopeTreeNode;
|
|
48
67
|
//# sourceMappingURL=scope-tree-node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-tree-node.js","sourceRoot":"","sources":["../../../component-tree/scope-tree-node/scope-tree-node.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gFAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"scope-tree-node.js","sourceRoot":"","sources":["../../../component-tree/scope-tree-node/scope-tree-node.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gFAAyD;AACzD,4DAAoC;AACpC,+CAA2D;AAC3D,gFAAiD;AAEjD,4DAAsG;AAEtG,gDAA4C;AAC5C,gGAAmD;AAInD,SAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,KAAK,EAAsB;IAC/D,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAA,wBAAO,G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E,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YAE5B,uCAAK,SAAS,EAAE,qCAAM,CAAC,IAAI;gBACzB,8BAAC,+BAAI,IAAC,SAAS,EAAE,IAAA,oBAAU,EAAC,qCAAM,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,qCAAM,CAAC,SAAS,CAAC,EAAE,EAAE,EAAC,gBAAgB,GAAG;gBAC5F,8BAAC,+BAAI,IAAC,SAAS,EAAE,qCAAM,CAAC,KAAK,EAAE,EAAE,EAAC,iBAAiB,GAAG;gBACtD,wCAAM,SAAS,EAAE,qCAAM,CAAC,IAAI,IAAG,WAAW,CAAQ,CAC9C,CACF,CACP;QACD,8BAAC,8BAAa,IAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACtC,uCAAK,KAAK,EAAE,IAAA,4BAAW,EAAC,KAAK,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,qCAAM,CAAC,aAAa,CAAC,IAC5E,IAAI,CAAC,QAAQ,IAAI,8BAAC,0BAAS,IAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,GAAI,CACxE,CACQ,CACZ,CACP,CAAC;AACJ,CAAC;AAlDD,sCAkDC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@import '~@teambit/base-ui.theme.colors/colors.module.scss';
|
|
2
2
|
|
|
3
|
-
.
|
|
3
|
+
.scope {
|
|
4
4
|
position: relative;
|
|
5
5
|
height: 32px;
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
user-select: none;
|
|
10
|
+
cursor: pointer;
|
|
10
11
|
font-weight: bold;
|
|
11
12
|
font-size: inherit;
|
|
12
13
|
padding-right: 8px;
|
|
@@ -27,6 +28,10 @@
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
.highlighted {
|
|
32
|
+
color: var(--bit-accent-heavy, #5d4aec);
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
.left {
|
|
31
36
|
display: flex;
|
|
32
37
|
align-items: center;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/ui-foundation.ui.side-bar",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.495",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/ui-foundation/ui/side-bar",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "ui/side-bar",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.495"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"classnames": "2.2.6",
|
|
@@ -14,16 +14,17 @@
|
|
|
14
14
|
"core-js": "^3.0.0",
|
|
15
15
|
"@teambit/base-ui.graph.tree.indent": "1.0.0",
|
|
16
16
|
"@teambit/base-ui.graph.tree.inflate-paths": "1.0.0",
|
|
17
|
-
"@teambit/base-ui.
|
|
18
|
-
"@teambit/base-ui.graph.tree.root-node": "1.0.0",
|
|
19
|
-
"@teambit/base-ui.graph.tree.tree-context": "1.0.0",
|
|
17
|
+
"@teambit/base-ui.routing.routing-provider": "1.0.0",
|
|
20
18
|
"@teambit/base-ui.routing.nav-link": "1.0.0",
|
|
21
|
-
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
22
19
|
"@teambit/documenter.ui.separator": "4.1.1",
|
|
20
|
+
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
23
21
|
"@teambit/base-ui.theme.colors": "1.0.0",
|
|
24
|
-
"@teambit/
|
|
22
|
+
"@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
|
|
23
|
+
"@teambit/base-ui.graph.tree.tree-context": "1.0.0",
|
|
24
|
+
"@teambit/design.ui.tree": "0.0.2",
|
|
25
|
+
"@teambit/component.ui.deprecation-icon": "0.0.492",
|
|
25
26
|
"@teambit/design.ui.tooltip": "0.0.352",
|
|
26
|
-
"@teambit/envs.ui.env-icon": "0.0.
|
|
27
|
+
"@teambit/envs.ui.env-icon": "0.0.485"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@types/react": "^17.0.8",
|
|
@@ -36,7 +37,6 @@
|
|
|
36
37
|
"@types/node": "12.20.4"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"@teambit/legacy": "1.0.193",
|
|
40
40
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
41
41
|
"react": "^16.8.0 || ^17.0.0"
|
|
42
42
|
},
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"react": "-"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@teambit/legacy": "1.0.193",
|
|
68
67
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
69
68
|
"react": "^16.8.0 || ^17.0.0"
|
|
70
69
|
}
|
|
Binary file
|