@repobit/dex-system-design 0.24.11 → 0.24.12
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.24.12](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.24.11...@repobit/dex-system-design@0.24.12) (2026-09-10)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **DEX-1014:** review component - css changes for 1 element
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [0.24.11](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.24.10...@repobit/dex-system-design@0.24.11) (2026-09-09)
|
|
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.24.
|
|
3
|
+
"version": "0.24.12",
|
|
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.
|
|
78
|
-
"@repobit/dex-store-elements": "2.0.
|
|
77
|
+
"@repobit/dex-store": "1.6.28",
|
|
78
|
+
"@repobit/dex-store-elements": "2.0.33",
|
|
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": "
|
|
95
|
+
"gitHead": "5b24217b358184d20dbabba1c47b526c80d672e3"
|
|
96
96
|
}
|
|
@@ -23,15 +23,22 @@ export default css`
|
|
|
23
23
|
width: 100%;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
.bd-reviewgrid-grid--single {
|
|
27
|
+
max-width: var(--bd-review-single-max-width, 560px);
|
|
28
|
+
margin-inline: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
26
31
|
::slotted(bd-review) {
|
|
27
32
|
min-width: 0;
|
|
28
33
|
}
|
|
29
34
|
|
|
30
|
-
/* Below md, every count collapses to a single column, regardless of how
|
|
31
|
-
many cards are slotted in. */
|
|
32
35
|
@media (max-width: 899px) {
|
|
33
36
|
.bd-reviewgrid-grid {
|
|
34
37
|
grid-template-columns: 1fr;
|
|
35
38
|
}
|
|
39
|
+
|
|
40
|
+
.bd-reviewgrid-grid--single {
|
|
41
|
+
max-width: 100%;
|
|
42
|
+
}
|
|
36
43
|
}
|
|
37
44
|
`;
|
|
@@ -4,22 +4,7 @@ import "../heading/heading.js";
|
|
|
4
4
|
import reviewGridCSS from "./review-grid.css.js";
|
|
5
5
|
import "./review.js";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* Responsive wrapper for bd-review cards.
|
|
9
|
-
*
|
|
10
|
-
* <bd-review-grid title="What They Say">
|
|
11
|
-
* <bd-review variant="tint">...</bd-review>
|
|
12
|
-
* <bd-review variant="tint">...</bd-review>
|
|
13
|
-
* </bd-review-grid>
|
|
14
|
-
*
|
|
15
|
-
* Column count is derived from how many bd-review children are slotted in,
|
|
16
|
-
* capped at 3 per row (extra cards wrap onto further rows at 3-per-row):
|
|
17
|
-
* 1 child -> 1 column (full width, "col-md-12")
|
|
18
|
-
* 2 children -> 2 columns (half each, "col-md-6")
|
|
19
|
-
* 3+ children -> 3 columns (third each, "col-md-4")
|
|
20
|
-
*
|
|
21
|
-
* Below the md breakpoint every count collapses to a single column.
|
|
22
|
-
*/
|
|
7
|
+
|
|
23
8
|
class BdReviewGrid extends LitElement {
|
|
24
9
|
static properties = {
|
|
25
10
|
title : { type: String },
|
|
@@ -44,13 +29,15 @@ class BdReviewGrid extends LitElement {
|
|
|
44
29
|
}
|
|
45
30
|
|
|
46
31
|
render() {
|
|
32
|
+
const singleCard = this._columns === 1;
|
|
33
|
+
|
|
47
34
|
return html`
|
|
48
35
|
${this.title
|
|
49
36
|
? html`<bd-h as="h2" class="bd-reviewgrid-title"><slot name="title">${this.title}</slot></bd-h>`
|
|
50
37
|
: nothing}
|
|
51
38
|
|
|
52
39
|
<div
|
|
53
|
-
class="bd-reviewgrid-grid"
|
|
40
|
+
class="bd-reviewgrid-grid ${singleCard ? "bd-reviewgrid-grid--single" : ""}"
|
|
54
41
|
style="--bd-review-columns: ${this._columns};"
|
|
55
42
|
role="list"
|
|
56
43
|
>
|