@repobit/dex-system-design 0.23.76 → 0.23.77

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.77](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.76...@repobit/dex-system-design@0.23.77) (2026-07-13)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **DEX-1014:** card adjustments
11
+
12
+
6
13
  ## [0.23.76](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.75...@repobit/dex-system-design@0.23.76) (2026-07-13)
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.76",
3
+ "version": "0.23.77",
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",
@@ -74,8 +74,8 @@
74
74
  "url": "https://github.com/bitdefender/dex-core/issues"
75
75
  },
76
76
  "dependencies": {
77
- "@repobit/dex-store": "1.3.72",
78
- "@repobit/dex-store-elements": "1.4.64",
77
+ "@repobit/dex-store": "1.3.73",
78
+ "@repobit/dex-store-elements": "1.4.65",
79
79
  "lit": "^3.3.2"
80
80
  },
81
81
  "devDependencies": {
@@ -92,5 +92,5 @@
92
92
  "volta": {
93
93
  "node": "24.14.0"
94
94
  },
95
- "gitHead": "393438b117548f2f4a3cc6541b6f3557dae3af28"
95
+ "gitHead": "b3e51d98fc2d4fdf2009d5e72672810207196539"
96
96
  }
@@ -7,8 +7,7 @@ export default css`
7
7
  --border-card-grey: var(--color-neutral-50);
8
8
  max-width: 1290px;
9
9
  margin: 0 auto;
10
- padding-top: var(--spacing-64);
11
- padding-bottom: var(--spacing-64);
10
+
12
11
 
13
12
  }
14
13
 
@@ -53,6 +52,7 @@ export default css`
53
52
  flex-direction: column;
54
53
  max-width: 1400px;
55
54
  margin: 0 auto;
55
+
56
56
  }
57
57
 
58
58
  .bd-light-carousel-track-s {
@@ -68,6 +68,8 @@ export default css`
68
68
  scroll-snap-type: x mandatory;
69
69
  display: grid;
70
70
  gap: 1.5rem;
71
+ padding-top: var(--spacing-64);
72
+ padding-bottom: var(--spacing-64);
71
73
  }
72
74
 
73
75
  .bd-light-carousel-track-s::-webkit-scrollbar {
@@ -1,6 +1,6 @@
1
1
  import { LitElement, html } from "lit";
2
2
  import { tokens } from "../../tokens/tokens.js";
3
- import "../Button/Button.js";
3
+ import "../button/button.js";
4
4
  import "../heading/heading.js";
5
5
  import carouselCSS from "./card.css.js";
6
6
 
@@ -34,6 +34,23 @@ class Card extends LitElement {
34
34
  const items = Array.from(this.querySelectorAll("bd-card-item"));
35
35
  if (!items.length) return;
36
36
 
37
+ // Pe mobile — reset la dimensiuni naturale
38
+ if (window.innerWidth <= 768) {
39
+ items.forEach(item => {
40
+ const box = item.renderRoot?.querySelector(".bd-light-box-s");
41
+ const iconW = item.renderRoot?.querySelector(".bd-light-box-header-s");
42
+ const titleW = item.renderRoot?.querySelector(".bd-light-title-badge-wrapper-s");
43
+ const contentW = item.renderRoot?.querySelector(".bd-card-content-wrapper");
44
+
45
+ if (box) { box.style.height = ""; box.style.minHeight = ""; box.style.width = ""; box.style.minWidth = ""; }
46
+ if (iconW) { iconW.style.height = ""; }
47
+ if (titleW) { titleW.style.height = ""; }
48
+ if (contentW) { contentW.style.height = ""; }
49
+ });
50
+ return;
51
+ }
52
+
53
+ // Reset toate
37
54
  items.forEach(item => {
38
55
  const box = item.renderRoot?.querySelector(".bd-light-box-s");
39
56
  const iconW = item.renderRoot?.querySelector(".bd-light-box-header-s");
@@ -146,12 +163,10 @@ class Card extends LitElement {
146
163
  render() {
147
164
  return html`
148
165
  <section class="bd-light-carousel-s">
149
- ${this.title || this.subtitle
166
+ ${this.title
150
167
  ? html`
151
168
  <div class="bd-header-light-carousel-s">
152
- ${this.title
153
- ? html`<bd-h as="h1" class="bd-section-title-s">${this.title}</bd-h>`
154
- : ""}
169
+ <bd-h as="h1" class="bd-section-title-s">${this.title}</bd-h>
155
170
  ${this.subtitle
156
171
  ? html`<p class="bd-section-subtitle-s">${this.subtitle}</p>`
157
172
  : ""}
@@ -172,6 +187,7 @@ class Card extends LitElement {
172
187
  class CardItem extends LitElement {
173
188
  static properties = {
174
189
  title : { type: String },
190
+ subtitle: { type: String },
175
191
  icon : { type: String },
176
192
  align : { type: String },
177
193
  ctaAlign: { type: String, attribute: "cta-align" }
@@ -180,6 +196,7 @@ class CardItem extends LitElement {
180
196
  constructor() {
181
197
  super();
182
198
  this.title = "";
199
+ this.subtitle = "";
183
200
  this.icon = "";
184
201
  this.align = "start";
185
202
  this.ctaAlign = "start";
@@ -253,26 +270,27 @@ class CardItem extends LitElement {
253
270
  return html`
254
271
  <div class="bd-light-box-s ${isCentered ? "bd-light-box-center" : ""} ${!hasContent ? "bd-light-box-no-content" : ""}">
255
272
 
256
- <!-- Icon -->
257
273
  <div class="bd-light-box-header-s ${isCentered ? "bd-light-box-header-center" : ""}">
258
274
  ${this._renderIcon()}
259
275
  </div>
260
276
 
261
- <!-- Title -->
262
277
  ${this.title
263
278
  ? html`
264
279
  <div class="bd-light-title-badge-wrapper-s ${!hasContent ? "bd-light-title-no-content" : ""}">
265
- <bd-h as="h5" fontWeight="700">${this.title}</bd-h>
280
+ <div class="bd-card-title-group">
281
+ <bd-h as="h5" fontWeight="700">${this.title}</bd-h>
282
+ ${this.subtitle
283
+ ? html`<p class="bd-card-item-subtitle">${this.subtitle}</p>`
284
+ : ""}
285
+ </div>
266
286
  </div>
267
287
  `
268
288
  : ""}
269
289
 
270
- <!-- Content -->
271
290
  <div class="bd-card-content-wrapper">
272
291
  <slot></slot>
273
292
  </div>
274
293
 
275
- <!-- CTA Button -->
276
294
  <div class="bd-card-cta-wrapper" style="${ctaJustify}">
277
295
  <slot name="cta"></slot>
278
296
  </div>