@repobit/dex-system-design 0.23.53 → 0.23.55
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.23.55](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.54...@repobit/dex-system-design@0.23.55) (2026-06-25)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **DEX-1014:** css adjustments for tabs component
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.23.54](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.53...@repobit/dex-system-design@0.23.54) (2026-06-24)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **DEX-1014:** css adjustments for tabs component
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
## [0.23.53](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.52...@repobit/dex-system-design@0.23.53) (2026-06-24)
|
|
7
21
|
|
|
8
22
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-system-design",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.55",
|
|
4
4
|
"description": "Design system based on Web Components.",
|
|
5
5
|
"author": "Iordache Matei Cezar <miordache@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"url": "https://github.com/bitdefender/dex-core/issues"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@repobit/dex-store": "1.3.
|
|
74
|
-
"@repobit/dex-store-elements": "1.4.
|
|
73
|
+
"@repobit/dex-store": "1.3.51",
|
|
74
|
+
"@repobit/dex-store-elements": "1.4.43",
|
|
75
75
|
"lit": "^3.3.2"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"volta": {
|
|
89
89
|
"node": "24.14.0"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "2a6282a6cdabf56872dfceffef9a995824cd7930"
|
|
92
92
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
|
|
3
3
|
export default css`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
:host {
|
|
5
|
+
--bd-accesibility-focus: var(--color-blue-500);
|
|
6
|
+
font-size: 100%;
|
|
7
|
+
display: block;
|
|
8
|
+
font-family: var(--typography-fontFamily-sans);
|
|
9
|
+
padding-top: var(--spacing-64);
|
|
10
|
+
padding-bottom: var(--spacing-64);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([bg-blue]) {
|
|
14
|
+
background: var(--color-blue-50);
|
|
15
|
+
}
|
|
13
16
|
|
|
14
17
|
.bd-tabs-component {
|
|
15
18
|
display: flex;
|
|
@@ -7,9 +7,11 @@ import "../highlight/highlight.js";
|
|
|
7
7
|
import "../paragraph/paragraph.js";
|
|
8
8
|
import tabsCSS from "./tabs.css.js";
|
|
9
9
|
|
|
10
|
-
class BdTabPanel extends
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
class BdTabPanel extends LitElement {
|
|
11
|
+
static styles = [];
|
|
12
|
+
|
|
13
|
+
render() {
|
|
14
|
+
return html`<slot></slot>`;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
customElements.define("bd-tab-panel", BdTabPanel);
|
|
@@ -19,27 +21,27 @@ class BdTabs extends LitElement {
|
|
|
19
21
|
title : { type: String },
|
|
20
22
|
subtitle : { type: String },
|
|
21
23
|
selectedTab : { type: Number, state: true },
|
|
22
|
-
_panelMinHeight: { type: Number, state: true }
|
|
24
|
+
_panelMinHeight: { type: Number, state: true },
|
|
25
|
+
bgBlue : { type: Boolean, reflect: true }
|
|
23
26
|
};
|
|
24
27
|
|
|
25
28
|
static styles = [tokens, tabsCSS];
|
|
26
29
|
|
|
27
30
|
constructor() {
|
|
28
31
|
super();
|
|
29
|
-
this.title
|
|
30
|
-
this.subtitle
|
|
31
|
-
this.selectedTab
|
|
32
|
+
this.title = "";
|
|
33
|
+
this.subtitle = "";
|
|
34
|
+
this.selectedTab = 0;
|
|
32
35
|
this._panelMinHeight = 0;
|
|
36
|
+
this.bgBlue = false;
|
|
33
37
|
}
|
|
34
38
|
|
|
39
|
+
|
|
40
|
+
|
|
35
41
|
_getPanels() {
|
|
36
42
|
return Array.from(this.querySelectorAll(":scope > bd-tab-panel"));
|
|
37
43
|
}
|
|
38
44
|
|
|
39
|
-
_getColsFromPanel(panel) {
|
|
40
|
-
return Array.from(panel.querySelectorAll(":scope > bd-feature-col"));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
45
|
selectTab(index) {
|
|
44
46
|
this.selectedTab = index;
|
|
45
47
|
}
|
|
@@ -54,39 +56,27 @@ class BdTabs extends LitElement {
|
|
|
54
56
|
const wrapper = this.renderRoot.querySelector(".bd-panel-wrapper");
|
|
55
57
|
if (!wrapper || !panels.length) return;
|
|
56
58
|
|
|
57
|
-
// Salvam tabul curent
|
|
58
59
|
const originalTab = this.selectedTab;
|
|
59
60
|
let maxHeight = 0;
|
|
60
61
|
|
|
61
62
|
for (let i = 0; i < panels.length; i++) {
|
|
62
|
-
// Setam tabul la i fara sa triggeram re-render complet
|
|
63
63
|
this.selectedTab = i;
|
|
64
64
|
await this.updateComplete;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const bdFeatures = wrapper.querySelector("bd-features");
|
|
68
|
-
if (bdFeatures) {
|
|
69
|
-
await bdFeatures.updateComplete;
|
|
70
|
-
// Un extra frame pentru _equalizeRows
|
|
71
|
-
await new Promise(r => requestAnimationFrame(r));
|
|
72
|
-
await new Promise(r => requestAnimationFrame(r));
|
|
73
|
-
}
|
|
65
|
+
await new Promise(r => requestAnimationFrame(r));
|
|
66
|
+
await new Promise(r => requestAnimationFrame(r));
|
|
74
67
|
|
|
75
68
|
const h = wrapper.scrollHeight;
|
|
76
69
|
if (h > maxHeight) maxHeight = h;
|
|
77
70
|
}
|
|
78
71
|
|
|
79
|
-
// Restauram tabul original
|
|
80
72
|
this.selectedTab = originalTab;
|
|
81
73
|
await this.updateComplete;
|
|
82
|
-
|
|
83
74
|
this._panelMinHeight = maxHeight;
|
|
84
75
|
}
|
|
85
76
|
|
|
86
77
|
render() {
|
|
87
78
|
const panels = this._getPanels();
|
|
88
79
|
const activePanel = panels[this.selectedTab];
|
|
89
|
-
const cols = activePanel ? this._getColsFromPanel(activePanel) : [];
|
|
90
80
|
|
|
91
81
|
return html`
|
|
92
82
|
<div class="bd-tabs-component">
|
|
@@ -121,11 +111,7 @@ class BdTabs extends LitElement {
|
|
|
121
111
|
class="bd-panel-wrapper"
|
|
122
112
|
style="${this._panelMinHeight ? `min-height: ${this._panelMinHeight}px;` : ""}"
|
|
123
113
|
>
|
|
124
|
-
${keyed(this.selectedTab,
|
|
125
|
-
<bd-features>
|
|
126
|
-
${cols.map(col => col.cloneNode(true))}
|
|
127
|
-
</bd-features>
|
|
128
|
-
`)}
|
|
114
|
+
${keyed(this.selectedTab, activePanel ? activePanel.cloneNode(true) : "")}
|
|
129
115
|
</div>
|
|
130
116
|
|
|
131
117
|
</div>
|