@repobit/dex-system-design 0.23.57 → 0.23.59
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.59](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.58...@repobit/dex-system-design@0.23.59) (2026-06-30)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **DEX-1014:** css adjustments for features and accordion components
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.23.58](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.57...@repobit/dex-system-design@0.23.58) (2026-06-29)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **DEX-1014:** css adjustments for features component
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
## [0.23.57](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.56...@repobit/dex-system-design@0.23.57) (2026-06-26)
|
|
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.59",
|
|
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.55",
|
|
74
|
+
"@repobit/dex-store-elements": "1.4.47",
|
|
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": "6b1c32669be3c1f54cec6f98d4d1dbac2f4f1824"
|
|
92
92
|
}
|
|
@@ -92,9 +92,10 @@ export const accordionItem = css`
|
|
|
92
92
|
margin-bottom: var(--bd-acc-header-margin-bottom, var(--spacing-16));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
:host-context(bd-features) .header {
|
|
96
|
-
|
|
97
|
-
}
|
|
95
|
+
:host-context(bd-features) .header {
|
|
96
|
+
margin-bottom: var(--spacing-8);
|
|
97
|
+
}
|
|
98
|
+
|
|
98
99
|
.header:focus-visible {
|
|
99
100
|
outline: none;
|
|
100
101
|
box-shadow: none;
|
|
@@ -148,10 +149,17 @@ export const accordionItem = css`
|
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
.title {
|
|
151
|
-
flex: 1;
|
|
152
152
|
font-weight: var(--bd-acc-title-font-weight, var(--typography-fontWeight-semibold));
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
.title-badge-wrapper {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
gap: var(--spacing-8);
|
|
159
|
+
flex: 1;
|
|
160
|
+
flex-wrap: wrap;
|
|
161
|
+
}
|
|
162
|
+
|
|
155
163
|
.content {
|
|
156
164
|
padding: var(--bd-acc-panel-padding, 0 0 0 calc(var(--icon-sm-size) + var(--spacing-12)));
|
|
157
165
|
font-family: var(--typography-fontFamily-sans);
|
|
@@ -178,6 +186,15 @@ export const accordionItem = css`
|
|
|
178
186
|
::slotted(p:last-child) {
|
|
179
187
|
margin-bottom: 0;
|
|
180
188
|
}
|
|
189
|
+
|
|
190
|
+
@media (max-width: 430px) {
|
|
191
|
+
.title-badge-wrapper {
|
|
192
|
+
flex-direction: column;
|
|
193
|
+
align-items: flex-start;
|
|
194
|
+
gap: var(--spacing-0);
|
|
195
|
+
width: 100%;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
181
198
|
`;
|
|
182
199
|
|
|
183
200
|
export const accordionSection = css`
|
|
@@ -44,6 +44,8 @@ export class BdAccordionItem extends LitElement {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
render() {
|
|
47
|
+
const badgeEl = this.querySelector("[slot='badge']");
|
|
48
|
+
|
|
47
49
|
return html`
|
|
48
50
|
<button
|
|
49
51
|
type="button"
|
|
@@ -59,7 +61,10 @@ export class BdAccordionItem extends LitElement {
|
|
|
59
61
|
? html`<bd-minus-icon size="16" color="#006DFF"></bd-minus-icon>`
|
|
60
62
|
: html`<bd-plus-icon size="16" color="#006DFF"></bd-plus-icon>`}
|
|
61
63
|
</span>
|
|
62
|
-
<span class="title"
|
|
64
|
+
<span class="title-badge-wrapper">
|
|
65
|
+
<span class="title">${this.title}</span>
|
|
66
|
+
${badgeEl ? badgeEl.cloneNode(true) : ""}
|
|
67
|
+
</span>
|
|
63
68
|
</button>
|
|
64
69
|
<div id="${this._panelId}" class="content" ?hidden=${!this.open}>
|
|
65
70
|
<slot></slot>
|
|
@@ -8,11 +8,12 @@ export class BdBadge extends LitElement {
|
|
|
8
8
|
static styles = [tokens, badgeCSS];
|
|
9
9
|
|
|
10
10
|
static properties = {
|
|
11
|
-
color
|
|
12
|
-
variant
|
|
13
|
-
size
|
|
14
|
-
fontsize: { type: String }, // 12, 14, 16
|
|
15
|
-
|
|
11
|
+
color : { type: String },
|
|
12
|
+
variant : { type: String },
|
|
13
|
+
size : { type: String }, // sm, md, lg
|
|
14
|
+
fontsize : { type: String }, // 12, 14, 16
|
|
15
|
+
fontweight: { type: String }, // 400, 500, 600, 700, etc.
|
|
16
|
+
icon : { type: String } // individual, family
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
constructor() {
|
|
@@ -21,6 +22,7 @@ export class BdBadge extends LitElement {
|
|
|
21
22
|
this.variant = '';
|
|
22
23
|
this.size = 'md';
|
|
23
24
|
this.fontsize = '';
|
|
25
|
+
this.fontweight = '';
|
|
24
26
|
this.icon = '';
|
|
25
27
|
}
|
|
26
28
|
|
|
@@ -32,6 +34,10 @@ export class BdBadge extends LitElement {
|
|
|
32
34
|
if (changed.has('size') || changed.has('fontsize')) {
|
|
33
35
|
this._updateSizeStyles();
|
|
34
36
|
}
|
|
37
|
+
|
|
38
|
+
if (changed.has('fontweight')) {
|
|
39
|
+
this._updateFontWeight();
|
|
40
|
+
}
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
_updateSizeStyles() {
|
|
@@ -74,6 +80,12 @@ export class BdBadge extends LitElement {
|
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
82
|
|
|
83
|
+
_updateFontWeight() {
|
|
84
|
+
if (this.fontweight) {
|
|
85
|
+
this.style.setProperty('--badge-font-weight', this.fontweight);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
77
89
|
_renderIcon() {
|
|
78
90
|
if (!this.icon) return '';
|
|
79
91
|
const color = this.variant === 'bd-light-green' ? '#0b6a26' : 'white';
|