@repobit/dex-system-design 0.23.37 → 0.23.39
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,21 @@
|
|
|
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.39](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.38...@repobit/dex-system-design@0.23.39) (2026-05-27)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **DEX-1014:** update accordion background styles and logic
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.23.38](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.37...@repobit/dex-system-design@0.23.38) (2026-05-26)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **DEX-1014:** css adjustment for accordion
|
|
18
|
+
* **DEX-1014:** css adjustment for accordion margin
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
## [0.23.37](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.36...@repobit/dex-system-design@0.23.37) (2026-05-26)
|
|
7
22
|
|
|
8
23
|
### 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.39",
|
|
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.35",
|
|
74
|
+
"@repobit/dex-store-elements": "1.4.27",
|
|
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": "de85da7811e34bd95e7873bf75dd612a54bfc4b1"
|
|
92
92
|
}
|
|
@@ -30,7 +30,12 @@ export default css`
|
|
|
30
30
|
z-index: 1;
|
|
31
31
|
border-radius: var(--radius-sm);
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
.bd-accordion-bg-inner {
|
|
34
|
+
max-width: 1290px;
|
|
35
|
+
margin-inline: auto;
|
|
36
|
+
padding-inline: var(--layout-ensemble-inline-padding, var(--spacing-24));
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
}
|
|
34
39
|
/* Focus ring pentru varianta terms-of-use — fara background deci ring simplu */
|
|
35
40
|
:host(bd-accordion-bg-item[data-variant="terms-of-use"][data-bd-acc-focus]) {
|
|
36
41
|
// box-shadow: var(--focus-outline-primary);
|
|
@@ -68,19 +68,22 @@ class BdAccordionBg extends LitElement {
|
|
|
68
68
|
|
|
69
69
|
_renderFaq() {
|
|
70
70
|
return html`
|
|
71
|
-
|
|
71
|
+
<div class="bd-accordion-bg-container ${this.noBg ? "no-bg" : ""}">
|
|
72
|
+
<div class="bd-accordion-bg-inner">
|
|
72
73
|
<div class="bd-accordion-bg-header">
|
|
73
74
|
<bd-h as="h2" class="bd-accordion-bg-title">${this.title}</bd-h>
|
|
74
75
|
</div>
|
|
75
76
|
<slot></slot>
|
|
76
77
|
<slot name="footer"></slot>
|
|
77
78
|
</div>
|
|
78
|
-
|
|
79
|
+
</div>
|
|
80
|
+
`;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
_renderTerms() {
|
|
82
84
|
return html`
|
|
83
|
-
|
|
85
|
+
<div class="bd-accordion-section-container">
|
|
86
|
+
<div class="bd-accordion-section-inner">
|
|
84
87
|
${this.title
|
|
85
88
|
? html`<bd-h as="h6" paddingBottom="var(--spacing-32)" fontWeight="700" class="section-title">${this.title}</bd-h>`
|
|
86
89
|
: ""}
|
|
@@ -98,7 +101,8 @@ class BdAccordionBg extends LitElement {
|
|
|
98
101
|
</p>`
|
|
99
102
|
: ""}
|
|
100
103
|
</div>
|
|
101
|
-
|
|
104
|
+
</div>
|
|
105
|
+
`;
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
render() {
|
|
@@ -55,7 +55,6 @@ export const accordionItem = css`
|
|
|
55
55
|
--bd-acc-item-margin-bottom: var(--spacing-0);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
/* bd-list in slot — spacing intre list si ce urmeaza */
|
|
59
58
|
::slotted(bd-list) {
|
|
60
59
|
--bd-li-margin-bottom: var(--spacing-16);
|
|
61
60
|
display: block;
|
|
@@ -180,15 +179,31 @@ export const accordionItem = css`
|
|
|
180
179
|
export const accordionSection = css`
|
|
181
180
|
.bd-accordion-section-container {
|
|
182
181
|
background-color: var(--bd-acc-section-bg, var(--color-neutral-25));
|
|
183
|
-
padding: var(--bd-acc-section-padding, var(--spacing-32));
|
|
184
182
|
border-radius: 0;
|
|
185
|
-
|
|
183
|
+
box-sizing: border-box;
|
|
184
|
+
|
|
185
|
+
/* Bleed — bg full width */
|
|
186
|
+
width: 100vw;
|
|
187
|
+
margin-left: calc(50% - 50vw);
|
|
188
|
+
margin-right: calc(50% - 50vw);
|
|
189
|
+
|
|
190
|
+
padding-top: var(--bd-acc-section-padding-v, var(--spacing-32));
|
|
191
|
+
padding-bottom: var(--bd-acc-section-padding-v, var(--spacing-32));
|
|
192
|
+
padding-left: calc(50vw - 50%);
|
|
193
|
+
padding-right: calc(50vw - 50%);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Inner — max-width 1290px, centrat, cu padding lateral ca anchor-nav */
|
|
197
|
+
.bd-accordion-section-inner {
|
|
198
|
+
max-width: 1290px;
|
|
199
|
+
margin-inline: auto;
|
|
200
|
+
padding-inline: var(--layout-ensemble-inline-padding, var(--spacing-24));
|
|
186
201
|
box-sizing: border-box;
|
|
187
202
|
}
|
|
188
203
|
|
|
189
204
|
:host([variant="small"]) {
|
|
190
205
|
--bd-acc-section-bg: var(--color-neutral-0);
|
|
191
|
-
--bd-acc-section-padding: var(--spacing-24)
|
|
206
|
+
--bd-acc-section-padding-v: var(--spacing-24);
|
|
192
207
|
}
|
|
193
208
|
|
|
194
209
|
:host([variant="default-blue"]) {
|
|
@@ -17,8 +17,8 @@ export class BdAccordionItem extends LitElement {
|
|
|
17
17
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
20
|
-
this.open
|
|
21
|
-
this.title
|
|
20
|
+
this.open = false;
|
|
21
|
+
this.title = "";
|
|
22
22
|
this._panelId = `acc-panel-${Math.random().toString(36)
|
|
23
23
|
.slice(2, 11)}`;
|
|
24
24
|
}
|
|
@@ -77,17 +77,17 @@ export class BdAccordionSection extends LitElement {
|
|
|
77
77
|
guideIcon : { type: String, reflect: true, attribute: "guide-icon" },
|
|
78
78
|
guideLabel : { type: String, reflect: true, attribute: "guide-label" },
|
|
79
79
|
guideHref : { type: String, reflect: true, attribute: "guide-href" },
|
|
80
|
-
noContainer: { type: Boolean, attribute: "no-container" }
|
|
80
|
+
noContainer: { type: Boolean, attribute: "no-container" }
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super();
|
|
85
|
-
this.title
|
|
86
|
-
this.variant
|
|
87
|
-
this.guideIcon
|
|
88
|
-
this.guideLabel
|
|
89
|
-
this.guideHref
|
|
90
|
-
this.noContainer = false;
|
|
85
|
+
this.title = "";
|
|
86
|
+
this.variant = "default";
|
|
87
|
+
this.guideIcon = "";
|
|
88
|
+
this.guideLabel = "";
|
|
89
|
+
this.guideHref = "#";
|
|
90
|
+
this.noContainer = false;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
render() {
|
|
@@ -101,7 +101,7 @@ export class BdAccordionSection extends LitElement {
|
|
|
101
101
|
<bd-p kind="small" class="user-guide-link">
|
|
102
102
|
<a href=${this.guideHref}>
|
|
103
103
|
${this.guideIcon
|
|
104
|
-
? html`<
|
|
104
|
+
? html`<span class="icon"><img src=${this.guideIcon} alt="" /></span>`
|
|
105
105
|
: ""}
|
|
106
106
|
${this.guideLabel}
|
|
107
107
|
</a>
|
|
@@ -109,15 +109,15 @@ export class BdAccordionSection extends LitElement {
|
|
|
109
109
|
: ""}
|
|
110
110
|
`;
|
|
111
111
|
|
|
112
|
-
// Dacă nu vrei container, returnează direct contentul
|
|
113
112
|
if (this.noContainer) {
|
|
114
113
|
return content;
|
|
115
114
|
}
|
|
116
115
|
|
|
117
|
-
// Altfel, înfășoară într-un div cu clasă pentru background
|
|
118
116
|
return html`
|
|
119
117
|
<div class="bd-accordion-section-container">
|
|
120
|
-
|
|
118
|
+
<div class="bd-accordion-section-inner">
|
|
119
|
+
${content}
|
|
120
|
+
</div>
|
|
121
121
|
</div>
|
|
122
122
|
`;
|
|
123
123
|
}
|