@teambit/ui-foundation.ui.side-bar 0.0.648 → 0.0.650
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/component-tree/component-tree.tsx +11 -11
- package/component-tree/component-view/component-view.module.scss +9 -0
- package/component-tree/component-view/component-view.tsx +16 -6
- package/component-tree/namespace-tree-node/namespace-tree-node.module.scss +1 -0
- package/component-tree/payload-type.tsx +1 -1
- package/component-tree/scope-tree-node/scope-tree-node.module.scss +1 -0
- package/dist/component-tree/component-tree.d.ts +3 -2
- package/dist/component-tree/component-tree.js +11 -8
- package/dist/component-tree/component-tree.js.map +1 -1
- package/dist/component-tree/component-view/component-view.js +9 -3
- package/dist/component-tree/component-view/component-view.js.map +1 -1
- package/dist/component-tree/component-view/component-view.module.scss +9 -0
- package/dist/component-tree/namespace-tree-node/namespace-tree-node.module.scss +1 -0
- package/dist/component-tree/payload-type.d.ts +1 -1
- package/dist/component-tree/scope-tree-node/scope-tree-node.module.scss +1 -0
- package/package-tar/teambit-ui-foundation.ui.side-bar-0.0.650.tgz +0 -0
- package/package.json +5 -4
- /package/{preview-1664710331381.js → preview-1664735485436.js} +0 -0
- package/package-tar/teambit-ui-foundation.ui.side-bar-0.0.648.tgz +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ComponentModel } from '@teambit/component';
|
|
1
|
+
import { ComponentModel, useIdFromLocation } from '@teambit/component';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { useLocation } from '@teambit/base-react.navigation.link';
|
|
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 { Tree, TreeNodeRenderer } from '@teambit/design.ui.tree';
|
|
6
|
+
import { Tree, TreeNodeRenderer, TreeNode as TreeNodeType } from '@teambit/design.ui.tree';
|
|
7
|
+
import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
|
|
7
8
|
import { TreeContextProvider } from '@teambit/base-ui.graph.tree.tree-context';
|
|
8
9
|
import { PayloadType, ScopePayload } from './payload-type';
|
|
9
10
|
import { DefaultTreeNodeRenderer } from './default-tree-node-renderer';
|
|
10
11
|
|
|
11
|
-
const componentIdUrlRegex = '[\\w\\/-]*[\\w-]';
|
|
12
|
-
|
|
13
12
|
type ComponentTreeProps = {
|
|
14
13
|
components: ComponentModel[];
|
|
14
|
+
transformTree?: (rootNode: TreeNodeType) => TreeNodeType;
|
|
15
15
|
TreeNode?: TreeNodeRenderer<PayloadType>;
|
|
16
16
|
isCollapsed?: boolean;
|
|
17
17
|
assumeScopeInUrl?: boolean;
|
|
@@ -21,18 +21,17 @@ export function ComponentTree({
|
|
|
21
21
|
components,
|
|
22
22
|
isCollapsed,
|
|
23
23
|
className,
|
|
24
|
-
|
|
24
|
+
transformTree,
|
|
25
|
+
// assumeScopeInUrl = false,
|
|
25
26
|
TreeNode = DefaultTreeNodeRenderer,
|
|
26
27
|
}: ComponentTreeProps) {
|
|
27
28
|
const { pathname = '/' } = useLocation() || {};
|
|
28
|
-
|
|
29
|
+
// override default splat from location when viewing a lane component
|
|
30
|
+
const laneCompUrl = pathname.split(LanesModel.baseLaneComponentRoute.concat('/'))[1];
|
|
31
|
+
const idFromLocation = useIdFromLocation(laneCompUrl);
|
|
29
32
|
const activeComponent = useMemo(() => {
|
|
30
|
-
const componentUrlRegex = new RegExp(componentIdUrlRegex);
|
|
31
|
-
const path = pathname?.startsWith('/') ? pathname.substring(1) : pathname;
|
|
32
|
-
const rawMatcher = path.match(componentUrlRegex)?.[0]; // returns just the part that matches the componentId section without /~compositions etc.
|
|
33
|
-
const matcher = assumeScopeInUrl ? rawMatcher?.split('/').slice(2).join('/'): rawMatcher;
|
|
34
33
|
const active = components.find((x) => {
|
|
35
|
-
return
|
|
34
|
+
return idFromLocation && (idFromLocation === x.id.fullName || idFromLocation === x.id.toStringWithoutVersion());
|
|
36
35
|
});
|
|
37
36
|
return active?.id.toString({ ignoreVersion: true });
|
|
38
37
|
}, [components, pathname]);
|
|
@@ -44,6 +43,7 @@ export function ComponentTree({
|
|
|
44
43
|
|
|
45
44
|
attachPayload(tree, payloadMap);
|
|
46
45
|
|
|
46
|
+
if (transformTree) return transformTree(tree);
|
|
47
47
|
return tree;
|
|
48
48
|
}, [components]);
|
|
49
49
|
|
|
@@ -87,7 +87,16 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
.onMainTooltip {
|
|
91
|
+
max-width: unset !important; // override tippy's default max-width: 350px
|
|
92
|
+
font-size: var(--bit-p-xxs);
|
|
93
|
+
}
|
|
94
|
+
|
|
90
95
|
.envLink {
|
|
91
96
|
color: white;
|
|
92
97
|
text-decoration: none;
|
|
93
98
|
}
|
|
99
|
+
|
|
100
|
+
.mainOnly {
|
|
101
|
+
opacity: 60%;
|
|
102
|
+
}
|
|
@@ -10,6 +10,7 @@ import { Tooltip } from '@teambit/design.ui.tooltip';
|
|
|
10
10
|
import { TreeContext } from '@teambit/base-ui.graph.tree.tree-context';
|
|
11
11
|
import { indentClass } from '@teambit/base-ui.graph.tree.indent';
|
|
12
12
|
import { TreeNodeProps } from '@teambit/base-ui.graph.tree.recursive-tree';
|
|
13
|
+
import { useLanes } from '@teambit/lanes.hooks.use-lanes';
|
|
13
14
|
import { PayloadType } from '../payload-type';
|
|
14
15
|
import { getName } from '../utils/get-name';
|
|
15
16
|
import styles from './component-view.module.scss';
|
|
@@ -23,7 +24,7 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
23
24
|
const component = node.payload;
|
|
24
25
|
|
|
25
26
|
const { onSelect } = useContext(TreeContext);
|
|
26
|
-
|
|
27
|
+
const { lanesModel } = useLanes();
|
|
27
28
|
const handleClick = useCallback(
|
|
28
29
|
(event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {
|
|
29
30
|
onSelect && onSelect(node.id, event);
|
|
@@ -32,7 +33,6 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
32
33
|
);
|
|
33
34
|
|
|
34
35
|
if (!(component instanceof ComponentModel)) return null;
|
|
35
|
-
|
|
36
36
|
const envId = ComponentID.fromString(component.environment?.id as string);
|
|
37
37
|
|
|
38
38
|
const envTooltip = (
|
|
@@ -50,10 +50,21 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
50
50
|
</Link>
|
|
51
51
|
);
|
|
52
52
|
|
|
53
|
+
const href = lanesModel?.getLaneComponentUrlByVersion(component.id, lanesModel.viewedLane?.id);
|
|
54
|
+
const viewingMainCompOnLane =
|
|
55
|
+
!lanesModel?.viewedLane?.id.isDefault() && lanesModel?.isComponentOnMainButNotOnLane(component.id);
|
|
56
|
+
const Name = viewingMainCompOnLane ? (
|
|
57
|
+
<Tooltip className={styles.onMainTooltip} placement="right" content={'On Main'}>
|
|
58
|
+
<span>{getName(node.id)}</span>
|
|
59
|
+
</Tooltip>
|
|
60
|
+
) : (
|
|
61
|
+
<span>{getName(node.id)}</span>
|
|
62
|
+
);
|
|
63
|
+
|
|
53
64
|
return (
|
|
54
65
|
<Link
|
|
55
|
-
href={
|
|
56
|
-
className={classNames(indentClass, styles.component)}
|
|
66
|
+
href={href}
|
|
67
|
+
className={classNames(indentClass, styles.component, viewingMainCompOnLane && styles.mainOnly)}
|
|
57
68
|
activeClassName={styles.active}
|
|
58
69
|
onClick={handleClick}
|
|
59
70
|
>
|
|
@@ -61,8 +72,7 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
61
72
|
<Tooltip className={styles.componentEnvTooltip} placement="right" content={envTooltip}>
|
|
62
73
|
<EnvIcon component={component} className={styles.envIcon} />
|
|
63
74
|
</Tooltip>
|
|
64
|
-
|
|
65
|
-
<span>{getName(node.id)}</span>
|
|
75
|
+
{Name}
|
|
66
76
|
</div>
|
|
67
77
|
|
|
68
78
|
<div className={styles.right}>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ComponentModel } from '@teambit/component';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TreeNodeRenderer } from '@teambit/design.ui.tree';
|
|
3
|
+
import { TreeNodeRenderer, TreeNode as TreeNodeType } from '@teambit/design.ui.tree';
|
|
4
4
|
import { PayloadType } from './payload-type';
|
|
5
5
|
declare type ComponentTreeProps = {
|
|
6
6
|
components: ComponentModel[];
|
|
7
|
+
transformTree?: (rootNode: TreeNodeType) => TreeNodeType;
|
|
7
8
|
TreeNode?: TreeNodeRenderer<PayloadType>;
|
|
8
9
|
isCollapsed?: boolean;
|
|
9
10
|
assumeScopeInUrl?: boolean;
|
|
10
11
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
11
|
-
export declare function ComponentTree({ components, isCollapsed, className,
|
|
12
|
+
export declare function ComponentTree({ components, isCollapsed, className, transformTree, TreeNode, }: ComponentTreeProps): JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -20,25 +20,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.ComponentTree = void 0;
|
|
23
|
+
const component_1 = require("@teambit/component");
|
|
23
24
|
const react_1 = __importStar(require("react"));
|
|
24
25
|
const base_react_navigation_link_1 = require("@teambit/base-react.navigation.link");
|
|
25
26
|
const base_ui_graph_tree_indent_1 = require("@teambit/base-ui.graph.tree.indent");
|
|
26
27
|
const base_ui_graph_tree_inflate_paths_1 = require("@teambit/base-ui.graph.tree.inflate-paths");
|
|
27
28
|
const design_ui_tree_1 = require("@teambit/design.ui.tree");
|
|
29
|
+
const lanes_ui_models_lanes_model_1 = require("@teambit/lanes.ui.models.lanes-model");
|
|
28
30
|
const base_ui_graph_tree_tree_context_1 = require("@teambit/base-ui.graph.tree.tree-context");
|
|
29
31
|
const payload_type_1 = require("./payload-type");
|
|
30
32
|
const default_tree_node_renderer_1 = require("./default-tree-node-renderer");
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
function ComponentTree({ components, isCollapsed, className, transformTree,
|
|
34
|
+
// assumeScopeInUrl = false,
|
|
35
|
+
TreeNode = default_tree_node_renderer_1.DefaultTreeNodeRenderer, }) {
|
|
33
36
|
const { pathname = '/' } = (0, base_react_navigation_link_1.useLocation)() || {};
|
|
37
|
+
// override default splat from location when viewing a lane component
|
|
38
|
+
const laneCompUrl = pathname.split(lanes_ui_models_lanes_model_1.LanesModel.baseLaneComponentRoute.concat('/'))[1];
|
|
39
|
+
const idFromLocation = (0, component_1.useIdFromLocation)(laneCompUrl);
|
|
34
40
|
const activeComponent = (0, react_1.useMemo)(() => {
|
|
35
|
-
var _a;
|
|
36
|
-
const componentUrlRegex = new RegExp(componentIdUrlRegex);
|
|
37
|
-
const path = (pathname === null || pathname === void 0 ? void 0 : pathname.startsWith('/')) ? pathname.substring(1) : pathname;
|
|
38
|
-
const rawMatcher = (_a = path.match(componentUrlRegex)) === null || _a === void 0 ? void 0 : _a[0]; // returns just the part that matches the componentId section without /~compositions etc.
|
|
39
|
-
const matcher = assumeScopeInUrl ? rawMatcher === null || rawMatcher === void 0 ? void 0 : rawMatcher.split('/').slice(2).join('/') : rawMatcher;
|
|
40
41
|
const active = components.find((x) => {
|
|
41
|
-
return
|
|
42
|
+
return idFromLocation && (idFromLocation === x.id.fullName || idFromLocation === x.id.toStringWithoutVersion());
|
|
42
43
|
});
|
|
43
44
|
return active === null || active === void 0 ? void 0 : active.id.toString({ ignoreVersion: true });
|
|
44
45
|
}, [components, pathname]);
|
|
@@ -46,6 +47,8 @@ function ComponentTree({ components, isCollapsed, className, assumeScopeInUrl =
|
|
|
46
47
|
const tree = (0, base_ui_graph_tree_inflate_paths_1.inflateToTree)(components, (c) => c.id.toString({ ignoreVersion: true }));
|
|
47
48
|
const payloadMap = calcPayload(components);
|
|
48
49
|
(0, base_ui_graph_tree_inflate_paths_1.attachPayload)(tree, payloadMap);
|
|
50
|
+
if (transformTree)
|
|
51
|
+
return transformTree(tree);
|
|
49
52
|
return tree;
|
|
50
53
|
}, [components]);
|
|
51
54
|
return (react_1.default.createElement(base_ui_graph_tree_tree_context_1.TreeContextProvider, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-tree.js","sourceRoot":"","sources":["../../component-tree/component-tree.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"component-tree.js","sourceRoot":"","sources":["../../component-tree/component-tree.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuE;AACvE,+CAAuC;AACvC,oFAAkE;AAClE,kFAAiE;AACjE,gGAAyF;AACzF,4DAA2F;AAC3F,sFAAkE;AAClE,8FAA+E;AAC/E,iDAA2D;AAC3D,6EAAuE;AAUvE,SAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa;AACb,4BAA4B;AAC5B,QAAQ,GAAG,oDAAuB,GACf;IACnB,MAAM,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,IAAA,wCAAW,GAAE,IAAI,EAAE,CAAC;IAC/C,qEAAqE;IACrE,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,wCAAU,CAAC,sBAAsB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrF,MAAM,cAAc,GAAG,IAAA,6BAAiB,EAAC,WAAW,CAAC,CAAC;IACtD,MAAM,eAAe,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACnC,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YACnC,OAAO,cAAc,IAAI,CAAC,cAAc,KAAK,CAAC,CAAC,EAAE,CAAC,QAAQ,IAAI,cAAc,KAAK,CAAC,CAAC,EAAE,CAAC,sBAAsB,EAAE,CAAC,CAAC;QAClH,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,aAAN,MAAM,uBA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AAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/E,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,2BAAY,EAAE,CAAC,CAAC,CAAC;IAE1E,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -33,13 +33,15 @@ const react_1 = __importStar(require("react"));
|
|
|
33
33
|
const design_ui_tooltip_1 = require("@teambit/design.ui.tooltip");
|
|
34
34
|
const base_ui_graph_tree_tree_context_1 = require("@teambit/base-ui.graph.tree.tree-context");
|
|
35
35
|
const base_ui_graph_tree_indent_1 = require("@teambit/base-ui.graph.tree.indent");
|
|
36
|
+
const lanes_hooks_use_lanes_1 = require("@teambit/lanes.hooks.use-lanes");
|
|
36
37
|
const get_name_1 = require("../utils/get-name");
|
|
37
38
|
const component_view_module_scss_1 = __importDefault(require("./component-view.module.scss"));
|
|
38
39
|
function ComponentView(props) {
|
|
39
|
-
var _a, _b;
|
|
40
|
+
var _a, _b, _c, _d;
|
|
40
41
|
const { node } = props;
|
|
41
42
|
const component = node.payload;
|
|
42
43
|
const { onSelect } = (0, react_1.useContext)(base_ui_graph_tree_tree_context_1.TreeContext);
|
|
44
|
+
const { lanesModel } = (0, lanes_hooks_use_lanes_1.useLanes)();
|
|
43
45
|
const handleClick = (0, react_1.useCallback)((event) => {
|
|
44
46
|
onSelect && onSelect(node.id, event);
|
|
45
47
|
}, [onSelect, node.id]);
|
|
@@ -52,11 +54,15 @@ function ComponentView(props) {
|
|
|
52
54
|
} },
|
|
53
55
|
react_1.default.createElement("div", { className: component_view_module_scss_1.default.componentEnvTitle }, "Environment"),
|
|
54
56
|
react_1.default.createElement("div", null, (_b = component.environment) === null || _b === void 0 ? void 0 : _b.id)));
|
|
55
|
-
|
|
57
|
+
const href = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.getLaneComponentUrlByVersion(component.id, (_c = lanesModel.viewedLane) === null || _c === void 0 ? void 0 : _c.id);
|
|
58
|
+
const viewingMainCompOnLane = !((_d = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _d === void 0 ? void 0 : _d.id.isDefault()) && (lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.isComponentOnMainButNotOnLane(component.id));
|
|
59
|
+
const Name = viewingMainCompOnLane ? (react_1.default.createElement(design_ui_tooltip_1.Tooltip, { className: component_view_module_scss_1.default.onMainTooltip, placement: "right", content: 'On Main' },
|
|
60
|
+
react_1.default.createElement("span", null, (0, get_name_1.getName)(node.id)))) : (react_1.default.createElement("span", null, (0, get_name_1.getName)(node.id)));
|
|
61
|
+
return (react_1.default.createElement(base_react_navigation_link_1.Link, { href: href, className: (0, classnames_1.default)(base_ui_graph_tree_indent_1.indentClass, component_view_module_scss_1.default.component, viewingMainCompOnLane && component_view_module_scss_1.default.mainOnly), activeClassName: component_view_module_scss_1.default.active, onClick: handleClick },
|
|
56
62
|
react_1.default.createElement("div", { className: component_view_module_scss_1.default.left },
|
|
57
63
|
react_1.default.createElement(design_ui_tooltip_1.Tooltip, { className: component_view_module_scss_1.default.componentEnvTooltip, placement: "right", content: envTooltip },
|
|
58
64
|
react_1.default.createElement(envs_ui_env_icon_1.EnvIcon, { component: component, className: component_view_module_scss_1.default.envIcon })),
|
|
59
|
-
|
|
65
|
+
Name),
|
|
60
66
|
react_1.default.createElement("div", { className: component_view_module_scss_1.default.right },
|
|
61
67
|
react_1.default.createElement(component_ui_deprecation_icon_1.DeprecationIcon, { component: component }),
|
|
62
68
|
props.treeNodeSlot &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oFAA2D;AAC3D,gEAAoD;AACpD,0FAAyE;AACzE,4DAAoC;AACpC,kDAAiE;AACjE,8FAAwE;AACxE,+CAAuD;AACvD,kEAAqD;AACrD,8FAAuE;AACvE,kFAAiE;
|
|
1
|
+
{"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oFAA2D;AAC3D,gEAAoD;AACpD,0FAAyE;AACzE,4DAAoC;AACpC,kDAAiE;AACjE,8FAAwE;AACxE,+CAAuD;AACvD,kEAAqD;AACrD,8FAAuE;AACvE,kFAAiE;AAEjE,0EAA0D;AAE1D,gDAA4C;AAC5C,8FAAkD;AAMlD,SAAgB,aAAa,CAAC,KAAsC;;IAClE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;IAE/B,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,kBAAU,EAAC,6CAAW,CAAC,CAAC;IAC7C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,gCAAQ,GAAE,CAAC;IAClC,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC7B,CAAC,KAAsD,EAAE,EAAE;QACzD,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,EACD,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CACpB,CAAC;IAEF,IAAI,CAAC,CAAC,SAAS,YAAY,0BAAc,CAAC;QAAE,OAAO,IAAI,CAAC;IACxD,MAAM,KAAK,GAAG,uBAAW,CAAC,UAAU,CAAC,MAAA,SAAS,CAAC,WAAW,0CAAE,EAAY,CAAC,CAAC;IAE1E,MAAM,UAAU,GAAG,CACjB,8BAAC,iCAAI,IACH,SAAS,EAAE,oCAAM,CAAC,OAAO,EACzB,IAAI,EAAE,8CAA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C9B,OAAO,EAAE,WAAW;QAEpB,uCAAK,SAAS,EAAE,oCAAM,CAAC,IAAI;YACzB,8BAAC,2BAAO,IAAC,SAAS,EAAE,oCAAM,CAAC,mBAAmB,EAAE,SAAS,EAAC,OAAO,EAAC,OAAO,EAAE,UAAU;gBACnF,8BAAC,0BAAO,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,oCAAM,CAAC,OAAO,GAAI,CACpD;YACT,IAAI,CACD;QAEN,uCAAK,SAAS,EAAE,oCAAM,CAAC,KAAK;YAC1B,8BAAC,+CAAe,IAAC,SAAS,EAAE,SAAS,GAAI;YAExC,KAAK,CAAC,YAAY;gBACjB,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,8BAAC,QAAQ,CAAC,MAAM,IAAC,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC,CACtG,CACD,CACR,CAAC;AACJ,CAAC;AAhED,sCAgEC"}
|
|
@@ -87,7 +87,16 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
.onMainTooltip {
|
|
91
|
+
max-width: unset !important; // override tippy's default max-width: 350px
|
|
92
|
+
font-size: var(--bit-p-xxs);
|
|
93
|
+
}
|
|
94
|
+
|
|
90
95
|
.envLink {
|
|
91
96
|
color: white;
|
|
92
97
|
text-decoration: none;
|
|
93
98
|
}
|
|
99
|
+
|
|
100
|
+
.mainOnly {
|
|
101
|
+
opacity: 60%;
|
|
102
|
+
}
|
|
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.650",
|
|
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.650"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"classnames": "2.2.6",
|
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
"@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
|
|
21
21
|
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
22
22
|
"@teambit/design.ui.tree": "0.0.12",
|
|
23
|
-
"@teambit/lanes.ui.models": "0.0.
|
|
23
|
+
"@teambit/lanes.ui.models.lanes-model": "0.0.1",
|
|
24
24
|
"@teambit/component.modules.component-url": "0.0.140",
|
|
25
25
|
"@teambit/component.ui.deprecation-icon": "0.0.500",
|
|
26
26
|
"@teambit/design.ui.tooltip": "0.0.358",
|
|
27
|
-
"@teambit/envs.ui.env-icon": "0.0.492"
|
|
27
|
+
"@teambit/envs.ui.env-icon": "0.0.492",
|
|
28
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.39"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/react": "^17.0.8",
|
|
File without changes
|
|
Binary file
|