@repobit/dex-system-design 0.23.65 → 0.23.66

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,13 @@
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.66](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.65...@repobit/dex-system-design@0.23.66) (2026-07-06)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **DEX-1014:** css adjustments for cards component
11
+
12
+
6
13
  ## [0.23.65](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.64...@repobit/dex-system-design@0.23.65) (2026-07-03)
7
14
 
8
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobit/dex-system-design",
3
- "version": "0.23.65",
3
+ "version": "0.23.66",
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.61",
74
- "@repobit/dex-store-elements": "1.4.53",
73
+ "@repobit/dex-store": "1.3.62",
74
+ "@repobit/dex-store-elements": "1.4.54",
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": "798ae4c67c57d8932da4962aea6c451315865638"
91
+ "gitHead": "db05b653c3c531cd6e5e6f10b67ca1dcd7f078a3"
92
92
  }
@@ -6,12 +6,14 @@ import carouselCSS from "./card.css.js";
6
6
 
7
7
  class Card extends LitElement {
8
8
  static properties = {
9
- title: { type: String }
9
+ title : { type: String },
10
+ _itemCount: { state: true }
10
11
  };
11
12
 
12
13
  constructor() {
13
14
  super();
14
15
  this.title = "";
16
+ this._itemCount = 0;
15
17
  this._resizeObserver = null;
16
18
  }
17
19
 
@@ -19,6 +21,11 @@ class Card extends LitElement {
19
21
  return this.offsetWidth > 0 && this.offsetHeight > 0;
20
22
  }
21
23
 
24
+ _onSlotChange() {
25
+ this._itemCount = this.querySelectorAll("bd-card-item").length;
26
+ this._equalizeHeights();
27
+ }
28
+
22
29
  _equalizeHeights() {
23
30
  if (!this._isVisible()) return;
24
31
 
@@ -135,8 +142,6 @@ class Card extends LitElement {
135
142
  }
136
143
 
137
144
  render() {
138
- const itemCount = this.querySelectorAll("bd-card-item").length;
139
-
140
145
  return html`
141
146
  <section class="bd-light-carousel-s">
142
147
  ${this.title
@@ -148,9 +153,9 @@ class Card extends LitElement {
148
153
  : null}
149
154
  <div
150
155
  class="bd-light-carousel-track-s"
151
- style="grid-template-columns: repeat(${itemCount}, 1fr);"
156
+ style="grid-template-columns: repeat(${this._itemCount || 1}, 1fr);"
152
157
  >
153
- <slot @slotchange=${() => this._equalizeHeights()}></slot>
158
+ <slot @slotchange=${this._onSlotChange}></slot>
154
159
  </div>
155
160
  </section>
156
161
  `;
@@ -187,10 +192,10 @@ class CardItem extends LitElement {
187
192
 
188
193
  if (this.icon) {
189
194
  return html`<img
190
- src="${this.icon}"
191
- alt="icon"
192
- class="bd-light-icon-s"
193
- />`;
195
+ src="${this.icon}"
196
+ alt="icon"
197
+ class="bd-light-icon-s"
198
+ />`;
194
199
  }
195
200
 
196
201
  return "";
@@ -215,12 +220,10 @@ class CardItem extends LitElement {
215
220
  return html`
216
221
  <div class="bd-light-box-s ${isCentered ? "bd-light-box-center" : ""} ${!hasContent ? "bd-light-box-no-content" : ""}">
217
222
 
218
- <!-- Icon -->
219
223
  <div class="bd-light-box-header-s ${isCentered ? "bd-light-box-header-center" : ""}">
220
224
  ${this._renderIcon()}
221
225
  </div>
222
226
 
223
- <!-- Titlu -->
224
227
  ${this.title
225
228
  ? html`
226
229
  <div class="bd-light-title-badge-wrapper-s ${!hasContent ? "bd-light-title-no-content" : ""}">
@@ -229,12 +232,10 @@ class CardItem extends LitElement {
229
232
  `
230
233
  : ""}
231
234
 
232
- <!-- Content -->
233
235
  <div class="bd-card-content-wrapper">
234
236
  <slot></slot>
235
237
  </div>
236
238
 
237
- <!-- CTA Button -->
238
239
  <div class="bd-card-cta-wrapper">
239
240
  <slot name="cta"></slot>
240
241
  </div>