@teambit/ui-foundation.ui.side-bar 0.0.533 → 0.0.536
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-view/component-view.tsx +1 -2
- package/dist/component-tree/component-view/component-view.js +1 -2
- package/dist/component-tree/component-view/component-view.js.map +1 -1
- package/package-tar/teambit-ui-foundation.ui.side-bar-0.0.536.tgz +0 -0
- package/package.json +5 -6
- package/{preview-1649647448813.js → preview-1650468178717.js} +0 -0
- package/dist/overview-link/index.d.ts +0 -1
- package/dist/overview-link/index.js +0 -14
- package/dist/overview-link/index.js.map +0 -1
- package/dist/overview-link/overview-link.d.ts +0 -2
- package/dist/overview-link/overview-link.js +0 -23
- package/dist/overview-link/overview-link.js.map +0 -1
- package/dist/overview-link/overview-link.module.scss +0 -29
- package/overview-link/index.ts +0 -1
- package/overview-link/overview-link.module.scss +0 -29
- package/overview-link/overview-link.tsx +0 -26
- package/package-tar/teambit-ui-foundation.ui.side-bar-0.0.533.tgz +0 -0
|
@@ -2,7 +2,6 @@ import { ComponentTreeSlot } from '@teambit/component-tree';
|
|
|
2
2
|
import { NavLink } from '@teambit/base-ui.routing.nav-link';
|
|
3
3
|
import { EnvIcon } from '@teambit/envs.ui.env-icon';
|
|
4
4
|
import { DeprecationIcon } from '@teambit/component.ui.deprecation-icon';
|
|
5
|
-
import { clickable } from '@teambit/legacy/dist/to-eject/css-components/clickable';
|
|
6
5
|
import classNames from 'classnames';
|
|
7
6
|
import React, { useCallback, useContext } from 'react';
|
|
8
7
|
import { Tooltip } from '@teambit/design.ui.tooltip';
|
|
@@ -43,7 +42,7 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
43
42
|
return (
|
|
44
43
|
<NavLink
|
|
45
44
|
href={`/${component.id.fullName}`}
|
|
46
|
-
className={classNames(indentClass,
|
|
45
|
+
className={classNames(indentClass, styles.component)}
|
|
47
46
|
activeClassName={styles.active}
|
|
48
47
|
onClick={handleClick}
|
|
49
48
|
>
|
|
@@ -26,7 +26,6 @@ exports.ComponentView = void 0;
|
|
|
26
26
|
const base_ui_routing_nav_link_1 = require("@teambit/base-ui.routing.nav-link");
|
|
27
27
|
const envs_ui_env_icon_1 = require("@teambit/envs.ui.env-icon");
|
|
28
28
|
const component_ui_deprecation_icon_1 = require("@teambit/component.ui.deprecation-icon");
|
|
29
|
-
const clickable_1 = require("@teambit/legacy/dist/to-eject/css-components/clickable");
|
|
30
29
|
const classnames_1 = __importDefault(require("classnames"));
|
|
31
30
|
const react_1 = __importStar(require("react"));
|
|
32
31
|
const design_ui_tooltip_1 = require("@teambit/design.ui.tooltip");
|
|
@@ -48,7 +47,7 @@ function ComponentView(props) {
|
|
|
48
47
|
const envTooltip = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
49
48
|
react_1.default.createElement("div", { className: component_view_module_scss_1.default.componentEnvTitle }, "Environment"),
|
|
50
49
|
react_1.default.createElement("div", null, (_a = component.environment) === null || _a === void 0 ? void 0 : _a.id)));
|
|
51
|
-
return (react_1.default.createElement(base_ui_routing_nav_link_1.NavLink, { href: `/${component.id.fullName}`, className: (0, classnames_1.default)(base_ui_graph_tree_indent_1.indentClass,
|
|
50
|
+
return (react_1.default.createElement(base_ui_routing_nav_link_1.NavLink, { href: `/${component.id.fullName}`, className: (0, classnames_1.default)(base_ui_graph_tree_indent_1.indentClass, component_view_module_scss_1.default.component), activeClassName: component_view_module_scss_1.default.active, onClick: handleClick },
|
|
52
51
|
react_1.default.createElement("div", { className: component_view_module_scss_1.default.left },
|
|
53
52
|
react_1.default.createElement(design_ui_tooltip_1.Tooltip, { className: component_view_module_scss_1.default.componentEnvTooltip, placement: "right", content: envTooltip },
|
|
54
53
|
react_1.default.createElement(envs_ui_env_icon_1.EnvIcon, { component: component, className: component_view_module_scss_1.default.envIcon })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,gFAA4D;AAC5D,gEAAoD;AACpD,0FAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,gFAA4D;AAC5D,gEAAoD;AACpD,0FAAyE;AACzE,4DAAoC;AACpC,+CAAuD;AACvD,kEAAqD;AACrD,kDAAoD;AACpD,8FAAuE;AACvE,kFAAiE;AAGjE,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;IAE7C,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;IAExD,MAAM,UAAU,GAAG,CACjB;QACE,uCAAK,SAAS,EAAE,oCAAM,CAAC,iBAAiB,kBAAmB;QAC3D,2CAAM,MAAA,SAAS,CAAC,WAAW,0CAAE,EAAE,CAAO,CACrC,CACJ,CAAC;IAEF,OAAO,CACL,8BAAC,kCAAO,IACN,IAAI,EAAE,IAAI,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,EACjC,SAAS,EAAE,IAAA,oBAAU,EAAC,uCAAW,EAAE,oCAAM,CAAC,SAAS,CAAC,EACpD,eAAe,EAAE,oCAAM,CAAC,MAAM,EAC9B,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;YAEV,4CAAO,IAAA,kBAAO,EAAC,IAAI,CAAC,EAAE,CAAC,CAAQ,CAC3B;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,CACE,CACX,CAAC;AACJ,CAAC;AA7CD,sCA6CC"}
|
|
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.536",
|
|
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.536"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"classnames": "2.2.6",
|
|
@@ -16,13 +16,12 @@
|
|
|
16
16
|
"@teambit/base-ui.graph.tree.inflate-paths": "1.0.0",
|
|
17
17
|
"@teambit/base-ui.graph.tree.tree-context": "1.0.0",
|
|
18
18
|
"@teambit/base-ui.routing.routing-provider": "1.0.0",
|
|
19
|
-
"@teambit/base-ui.routing.nav-link": "1.0.0",
|
|
20
|
-
"@teambit/documenter.ui.separator": "4.1.1",
|
|
21
|
-
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
22
19
|
"@teambit/base-ui.theme.colors": "1.0.0",
|
|
23
20
|
"@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
|
|
21
|
+
"@teambit/base-ui.routing.nav-link": "1.0.0",
|
|
22
|
+
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
24
23
|
"@teambit/design.ui.tree": "0.0.5",
|
|
25
|
-
"@teambit/lanes.ui.lanes": "0.0.
|
|
24
|
+
"@teambit/lanes.ui.lanes": "0.0.39",
|
|
26
25
|
"@teambit/component.ui.deprecation-icon": "0.0.493",
|
|
27
26
|
"@teambit/design.ui.tooltip": "0.0.352",
|
|
28
27
|
"@teambit/envs.ui.env-icon": "0.0.486"
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './overview-link';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./overview-link"), exports);
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../overview-link/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.OverviewLink = void 0;
|
|
7
|
-
const documenter_ui_separator_1 = require("@teambit/documenter.ui.separator");
|
|
8
|
-
const evangelist_elements_icon_1 = require("@teambit/evangelist.elements.icon");
|
|
9
|
-
const base_ui_routing_nav_link_1 = require("@teambit/base-ui.routing.nav-link");
|
|
10
|
-
const clickable_1 = require("@teambit/legacy/dist/to-eject/css-components/clickable");
|
|
11
|
-
const hoverable_1 = require("@teambit/legacy/dist/to-eject/css-components/hoverable");
|
|
12
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
13
|
-
const react_1 = __importDefault(require("react"));
|
|
14
|
-
const overview_link_module_scss_1 = __importDefault(require("./overview-link.module.scss"));
|
|
15
|
-
function OverviewLink() {
|
|
16
|
-
return (react_1.default.createElement("div", { className: overview_link_module_scss_1.default.overview },
|
|
17
|
-
react_1.default.createElement(base_ui_routing_nav_link_1.NavLink, { exact: true, href: "/", activeClassName: overview_link_module_scss_1.default.active, className: (0, classnames_1.default)(hoverable_1.hoverable, clickable_1.clickable, overview_link_module_scss_1.default.overviewLink) },
|
|
18
|
-
"Components",
|
|
19
|
-
react_1.default.createElement(evangelist_elements_icon_1.Icon, { of: "comps", className: overview_link_module_scss_1.default.icon })),
|
|
20
|
-
react_1.default.createElement(documenter_ui_separator_1.Separator, { className: overview_link_module_scss_1.default.separator })));
|
|
21
|
-
}
|
|
22
|
-
exports.OverviewLink = OverviewLink;
|
|
23
|
-
//# sourceMappingURL=overview-link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overview-link.js","sourceRoot":"","sources":["../../overview-link/overview-link.tsx"],"names":[],"mappings":";;;;;;AAAA,8EAA6D;AAC7D,gFAAyD;AACzD,gFAA4D;AAC5D,sFAAmF;AACnF,sFAAmF;AACnF,4DAAoC;AACpC,kDAA0B;AAE1B,4FAAiD;AAEjD,SAAgB,YAAY;IAC1B,OAAO,CACL,uCAAK,SAAS,EAAE,mCAAM,CAAC,QAAQ;QAC7B,8BAAC,kCAAO,IACN,KAAK,QACL,IAAI,EAAC,GAAG,EACR,eAAe,EAAE,mCAAM,CAAC,MAAM,EAC9B,SAAS,EAAE,IAAA,oBAAU,EAAC,qBAAS,EAAE,qBAAS,EAAE,mCAAM,CAAC,YAAY,CAAC;;YAGhE,8BAAC,+BAAI,IAAC,EAAE,EAAC,OAAO,EAAC,SAAS,EAAE,mCAAM,CAAC,IAAI,GAAI,CACnC;QACV,8BAAC,mCAAS,IAAC,SAAS,EAAE,mCAAM,CAAC,SAAS,GAAI,CACtC,CACP,CAAC;AACJ,CAAC;AAfD,oCAeC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.overview {
|
|
2
|
-
padding: 8px 8px 0px 8px;
|
|
3
|
-
.separator {
|
|
4
|
-
margin: unset;
|
|
5
|
-
}
|
|
6
|
-
.overviewLink {
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
align-items: center;
|
|
10
|
-
padding: 9px 8px;
|
|
11
|
-
text-decoration: none;
|
|
12
|
-
color: var(--bit-text-color-heavy);
|
|
13
|
-
margin-bottom: 8px;
|
|
14
|
-
.icon {
|
|
15
|
-
color: var(--bit-text-color-light, #6c707c);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
.active {
|
|
19
|
-
background-color: var(--bit-accent-color, #6c5ce7);
|
|
20
|
-
color: var(--bit-text-on-accent, #ffffff);
|
|
21
|
-
font-weight: unset;
|
|
22
|
-
.icon {
|
|
23
|
-
color: var(--bit-text-on-accent, #ffffff);
|
|
24
|
-
}
|
|
25
|
-
&:hover {
|
|
26
|
-
background-color: var(--bit-accent-heavy, #5d4aec);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
package/overview-link/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './overview-link';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.overview {
|
|
2
|
-
padding: 8px 8px 0px 8px;
|
|
3
|
-
.separator {
|
|
4
|
-
margin: unset;
|
|
5
|
-
}
|
|
6
|
-
.overviewLink {
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
align-items: center;
|
|
10
|
-
padding: 9px 8px;
|
|
11
|
-
text-decoration: none;
|
|
12
|
-
color: var(--bit-text-color-heavy);
|
|
13
|
-
margin-bottom: 8px;
|
|
14
|
-
.icon {
|
|
15
|
-
color: var(--bit-text-color-light, #6c707c);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
.active {
|
|
19
|
-
background-color: var(--bit-accent-color, #6c5ce7);
|
|
20
|
-
color: var(--bit-text-on-accent, #ffffff);
|
|
21
|
-
font-weight: unset;
|
|
22
|
-
.icon {
|
|
23
|
-
color: var(--bit-text-on-accent, #ffffff);
|
|
24
|
-
}
|
|
25
|
-
&:hover {
|
|
26
|
-
background-color: var(--bit-accent-heavy, #5d4aec);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Separator } from '@teambit/documenter.ui.separator';
|
|
2
|
-
import { Icon } from '@teambit/evangelist.elements.icon';
|
|
3
|
-
import { NavLink } from '@teambit/base-ui.routing.nav-link';
|
|
4
|
-
import { clickable } from '@teambit/legacy/dist/to-eject/css-components/clickable';
|
|
5
|
-
import { hoverable } from '@teambit/legacy/dist/to-eject/css-components/hoverable';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
|
-
import React from 'react';
|
|
8
|
-
|
|
9
|
-
import styles from './overview-link.module.scss';
|
|
10
|
-
|
|
11
|
-
export function OverviewLink() {
|
|
12
|
-
return (
|
|
13
|
-
<div className={styles.overview}>
|
|
14
|
-
<NavLink
|
|
15
|
-
exact
|
|
16
|
-
href="/"
|
|
17
|
-
activeClassName={styles.active}
|
|
18
|
-
className={classNames(hoverable, clickable, styles.overviewLink)}
|
|
19
|
-
>
|
|
20
|
-
Components
|
|
21
|
-
<Icon of="comps" className={styles.icon} />
|
|
22
|
-
</NavLink>
|
|
23
|
-
<Separator className={styles.separator} />
|
|
24
|
-
</div>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
Binary file
|