@repobit/dex-system-design 0.23.115 → 0.23.117

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.117](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.116...@repobit/dex-system-design@0.23.117) (2026-08-11)
7
+
8
+ **Note:** Version bump only for package @repobit/dex-system-design
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.23.116](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.115...@repobit/dex-system-design@0.23.116) (2026-08-07)
15
+
16
+ ### Bug Fixes
17
+
18
+ * **DEX-1014:** list component adjustments
19
+
20
+
6
21
  ## [0.23.115](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.114...@repobit/dex-system-design@0.23.115) (2026-08-07)
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.115",
3
+ "version": "0.23.117",
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.6.13",
78
- "@repobit/dex-store-elements": "2.0.18",
77
+ "@repobit/dex-store": "1.6.15",
78
+ "@repobit/dex-store-elements": "2.0.20",
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": "40caed2cbcd80d281839f6e39d2bb4acc47a0806"
95
+ "gitHead": "bfe5401ea7f76a5ef0bc0875a21354f8975ec838"
96
96
  }
@@ -11,21 +11,20 @@ export default css`
11
11
  gap: var(--spacing-8);
12
12
  color: var(--color-neutral-700);
13
13
  line-height: var(--typography-lineHeight-normal);
14
- font-family: var(--typography-fontFamily-sans);
15
-
14
+ font-family: var(--typography-fontFamily-sans);
16
15
  }
17
16
 
18
17
  /* === SIZE VARIANTS === */
19
-
18
+
20
19
  .bd-list-item.sm {
21
20
  font-size: var(--typography-fontSize-sm);
22
21
  margin-bottom: var(--spacing-4);
23
22
  }
24
23
 
25
- .bd-list-item.md {
26
- font-size: var(--typography-fontSize-base);
27
- margin-bottom: var(--bd-li-margin-bottom, var(--spacing-6));
28
- }
24
+ .bd-list-item.md {
25
+ font-size: var(--typography-fontSize-base);
26
+ margin-bottom: var(--bd-li-margin-bottom, var(--spacing-6));
27
+ }
29
28
 
30
29
  .bd-list-item.lg {
31
30
  font-size: var(--typography-fontSize-lg);
@@ -33,16 +32,21 @@ export default css`
33
32
  }
34
33
 
35
34
  /* === MARKER STYLES === */
36
-
35
+
37
36
  .bd-list-item-marker {
38
37
  flex-shrink: 0;
39
- margin-top: var(--spacing-6);
38
+ align-self: flex-start;
39
+ /* centrează markerul pe înălțimea unei linii de text,
40
+ calculat din line-height-ul itemului, indiferent de size.
41
+ Se aplică doar markerelor "forme" (bullet, check) — nu textului (number). */
42
+ margin-top: calc((1em * var(--typography-lineHeight-normal) - var(--bd-li-marker-size, var(--spacing-6))) / 2);
40
43
  }
41
44
 
42
45
  /* Bullet List */
43
46
  .bd-list-item.bullet .bd-list-item-marker {
44
- width: var(--spacing-6);
45
- height: var(--spacing-6);
47
+ --bd-li-marker-size: var(--spacing-6);
48
+ width: var(--bd-li-marker-size);
49
+ height: var(--bd-li-marker-size);
46
50
  background-color: var(--color-neutral-1000);
47
51
  border-radius: 50%;
48
52
  }
@@ -52,6 +56,10 @@ export default css`
52
56
  counter-increment: bd-list-counter;
53
57
  }
54
58
 
59
+ .bd-list-item.number .bd-list-item-marker {
60
+ margin-top: 0; /* text — se aliniază natural pe linia de bază, nu geometric */
61
+ }
62
+
55
63
  .bd-list-item.number .bd-list-item-marker::before {
56
64
  content: counter(bd-list-counter) ".";
57
65
  font-weight: var(--typography-fontWeight-semibold);
@@ -60,8 +68,9 @@ export default css`
60
68
 
61
69
  /* Check List */
62
70
  .bd-list-item.check .bd-list-item-marker {
63
- width: var(--spacing-16);
64
- height: var(--spacing-16);
71
+ --bd-li-marker-size: var(--spacing-16);
72
+ width: var(--bd-li-marker-size);
73
+ height: var(--bd-li-marker-size);
65
74
  background-color: var(--color-green-500);
66
75
  border-radius: 50%;
67
76
  position: relative;
@@ -79,10 +88,11 @@ export default css`
79
88
 
80
89
  /* Custom Icon */
81
90
  .bd-list-item-custom-icon {
82
- width: var(--spacing-16);
83
- height: var(--spacing-16);
91
+ --bd-li-marker-size: var(--spacing-16);
92
+ width: var(--bd-li-marker-size);
93
+ height: var(--bd-li-marker-size);
84
94
  flex-shrink: 0;
85
- margin-top: var(--spacing-4);
95
+ margin-top: calc((1em * var(--typography-lineHeight-normal) - var(--bd-li-marker-size)) / 2);
86
96
  }
87
97
 
88
98
  /* No Marker */
@@ -95,17 +105,14 @@ export default css`
95
105
  }
96
106
 
97
107
  /* === CONTENT STYLING === */
98
-
108
+
99
109
  .bd-list-item-content {
100
110
  flex: 1;
101
111
  }
102
112
 
103
- // /* Last Item */
104
- // .bd-list-item:last-child {
105
- // margin-bottom: 0;
106
- // }
107
- :host(:last-of-type) .bd-list-item {
108
- margin-bottom: 0;
109
- }
113
+ /* Last Item */
114
+ :host(:last-of-type) .bd-list-item {
115
+ margin-bottom: 0;
116
+ }
110
117
  }
111
118
  `;
@@ -1,4 +1,4 @@
1
- import { LitElement, html } from "lit";
1
+ import { LitElement, html, nothing } from "lit";
2
2
  import { tokens } from "../../../tokens/tokens.js";
3
3
  import listItemCSS from "./list-item.css.js";
4
4
 
@@ -28,7 +28,7 @@ export class BdListItem extends LitElement {
28
28
  }
29
29
 
30
30
  _renderMarker() {
31
- if (this.kind === "none") return '';
31
+ if (this.kind === "none") return nothing;
32
32
 
33
33
  if (this.icon) {
34
34
  return html`<img src="${this.icon}" alt="" class="bd-list-item-custom-icon" />`;