@teambit/component.ui.version-dropdown 0.0.515 → 0.0.518
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/lane-info/lane-info.d.ts +1 -1
- package/dist/lane-info/lane-info.js +3 -2
- package/dist/lane-info/lane-info.js.map +1 -1
- package/lane-info/lane-info.tsx +3 -3
- package/package-tar/teambit-component.ui.version-dropdown-0.0.518.tgz +0 -0
- package/package.json +3 -3
- package/{preview-1648783740851.js → preview-1649301819971.js} +2 -2
- package/tsconfig.json +1 -1
- package/package-tar/teambit-component.ui.version-dropdown-0.0.515.tgz +0 -0
@@ -3,4 +3,4 @@ import { LaneModel } from '@teambit/lanes.ui.lanes';
|
|
3
3
|
export declare type LaneInfoProps = LaneModel & {
|
4
4
|
currentLane?: LaneModel;
|
5
5
|
};
|
6
|
-
export declare function LaneInfo({ id,
|
6
|
+
export declare function LaneInfo({ id, currentLane }: LaneInfoProps): JSX.Element;
|
@@ -4,14 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.LaneInfo = void 0;
|
7
|
+
const lanes_ui_lanes_1 = require("@teambit/lanes.ui.lanes");
|
7
8
|
const react_1 = __importDefault(require("react"));
|
8
9
|
const design_ui_surfaces_menu_link_item_1 = require("@teambit/design.ui.surfaces.menu.link-item");
|
9
10
|
const evangelist_elements_icon_1 = require("@teambit/evangelist.elements.icon");
|
10
11
|
const lane_info_module_scss_1 = __importDefault(require("./lane-info.module.scss"));
|
11
|
-
function LaneInfo({ id,
|
12
|
+
function LaneInfo({ id, currentLane }) {
|
12
13
|
const isCurrent = (currentLane === null || currentLane === void 0 ? void 0 : currentLane.id) === id;
|
13
14
|
return (react_1.default.createElement("div", { key: id },
|
14
|
-
react_1.default.createElement(design_ui_surfaces_menu_link_item_1.MenuLinkItem, { isActive: () => isCurrent, href:
|
15
|
+
react_1.default.createElement(design_ui_surfaces_menu_link_item_1.MenuLinkItem, { isActive: () => isCurrent, href: lanes_ui_lanes_1.LanesModel.getLaneUrl(id), className: lane_info_module_scss_1.default.versionRow },
|
15
16
|
react_1.default.createElement("span", null,
|
16
17
|
react_1.default.createElement(evangelist_elements_icon_1.Icon, { className: lane_info_module_scss_1.default.laneIcon, of: "lane" }),
|
17
18
|
id))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lane-info.js","sourceRoot":"","sources":["../../lane-info/lane-info.tsx"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"lane-info.js","sourceRoot":"","sources":["../../lane-info/lane-info.tsx"],"names":[],"mappings":";;;;;;AAAA,4DAAgE;AAChE,kDAA0B;AAC1B,kGAA0E;AAC1E,gFAAyD;AACzD,oFAA6C;AAI7C,SAAgB,QAAQ,CAAC,EAAE,EAAE,EAAE,WAAW,EAAiB;IACzD,MAAM,SAAS,GAAG,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,EAAE,MAAK,EAAE,CAAC;IAEzC,OAAO,CACL,uCAAK,GAAG,EAAE,EAAE;QACV,8BAAC,gDAAY,IAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,2BAAU,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,+BAAM,CAAC,UAAU;YACpG;gBACE,8BAAC,+BAAI,IAAC,SAAS,EAAE,+BAAM,CAAC,QAAQ,EAAE,EAAE,EAAC,MAAM,GAAQ;gBAClD,EAAE,CACE,CACM,CACX,CACP,CAAC;AACJ,CAAC;AAbD,4BAaC"}
|
package/lane-info/lane-info.tsx
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LaneModel } from '@teambit/lanes.ui.lanes';
|
1
|
+
import { LaneModel, LanesModel } from '@teambit/lanes.ui.lanes';
|
2
2
|
import React from 'react';
|
3
3
|
import { MenuLinkItem } from '@teambit/design.ui.surfaces.menu.link-item';
|
4
4
|
import { Icon } from '@teambit/evangelist.elements.icon';
|
@@ -6,12 +6,12 @@ import styles from './lane-info.module.scss';
|
|
6
6
|
|
7
7
|
export type LaneInfoProps = LaneModel & { currentLane?: LaneModel };
|
8
8
|
|
9
|
-
export function LaneInfo({ id,
|
9
|
+
export function LaneInfo({ id, currentLane }: LaneInfoProps) {
|
10
10
|
const isCurrent = currentLane?.id === id;
|
11
11
|
|
12
12
|
return (
|
13
13
|
<div key={id}>
|
14
|
-
<MenuLinkItem isActive={() => isCurrent} href={
|
14
|
+
<MenuLinkItem isActive={() => isCurrent} href={LanesModel.getLaneUrl(id)} className={styles.versionRow}>
|
15
15
|
<span>
|
16
16
|
<Icon className={styles.laneIcon} of="lane"></Icon>
|
17
17
|
{id}
|
Binary file
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/component.ui.version-dropdown",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.518",
|
4
4
|
"homepage": "https://bit.dev/teambit/component/ui/version-dropdown",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "ui/version-dropdown",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.518"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"classnames": "2.2.6",
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"@teambit/design.ui.avatar": "0.0.494",
|
18
18
|
"@teambit/design.ui.styles.ellipsis": "0.0.347",
|
19
19
|
"@teambit/design.ui.surfaces.menu.link-item": "0.0.379",
|
20
|
-
"@teambit/lanes.ui.lanes": "0.0.
|
20
|
+
"@teambit/lanes.ui.lanes": "0.0.33",
|
21
21
|
"@teambit/legacy-component-log": "0.0.392",
|
22
22
|
"@teambit/ui-foundation.ui.use-box.tab": "0.0.105",
|
23
23
|
"@teambit/component.ui.version-label": "0.0.492",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_ui_version-dropdown@0.0.
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_ui_version-dropdown@0.0.
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_ui_version-dropdown@0.0.518/dist/version-dropdown.composition.js')]
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_ui_version-dropdown@0.0.518/dist/version-dropdown.docs.js')]
|
package/tsconfig.json
CHANGED
Binary file
|