@repobit/dex-system-design 0.23.37 → 0.23.38

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,14 @@
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.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)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **DEX-1014:** css adjustment for accordion
11
+ * **DEX-1014:** css adjustment for accordion margin
12
+
13
+
6
14
  ## [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
15
 
8
16
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobit/dex-system-design",
3
- "version": "0.23.37",
3
+ "version": "0.23.38",
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.33",
74
- "@repobit/dex-store-elements": "1.4.25",
73
+ "@repobit/dex-store": "1.3.34",
74
+ "@repobit/dex-store-elements": "1.4.26",
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": "5a292c3a335078319bff9151c88f8be3061c7146"
91
+ "gitHead": "e639a21f5618fc23aff63c32c9447ce67df63558"
92
92
  }
@@ -80,7 +80,8 @@ class BdAccordionBg extends LitElement {
80
80
 
81
81
  _renderTerms() {
82
82
  return html`
83
- <div class="bd-accordion-section-container">
83
+ <div class="bd-accordion-section-container">
84
+ <div class="bd-accordion-section-inner">
84
85
  ${this.title
85
86
  ? html`<bd-h as="h6" paddingBottom="var(--spacing-32)" fontWeight="700" class="section-title">${this.title}</bd-h>`
86
87
  : ""}
@@ -98,7 +99,8 @@ class BdAccordionBg extends LitElement {
98
99
  </p>`
99
100
  : ""}
100
101
  </div>
101
- `;
102
+ </div>
103
+ `;
102
104
  }
103
105
 
104
106
  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
- width: 100%;
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) var(--spacing-16);
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 = false;
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" } // ← ADĂUGĂ
80
+ noContainer: { type: Boolean, attribute: "no-container" }
81
81
  };
82
82
 
83
83
  constructor() {
84
84
  super();
85
- this.title = "";
86
- this.variant = "default";
87
- this.guideIcon = "";
88
- this.guideLabel = "";
89
- this.guideHref = "#";
90
- this.noContainer = false; // ← ADĂUGĂ
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`<bd-plus-icon size="16" color="#006DFF"></bd-plus-icon>`
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
- ${content}
118
+ <div class="bd-accordion-section-inner">
119
+ ${content}
120
+ </div>
121
121
  </div>
122
122
  `;
123
123
  }