@repobit/dex-system-design 0.23.29 → 0.23.30
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.30](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.29...@repobit/dex-system-design@0.23.30) (2026-05-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **DEX-1014:** fix for accordion component (new icons)
|
|
11
|
+
* **DEX-1014:** new icons folder for icon components
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.23.29](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.28...@repobit/dex-system-design@0.23.29) (2026-05-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @repobit/dex-system-design
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-system-design",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.30",
|
|
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.
|
|
74
|
-
"@repobit/dex-store-elements": "1.4.
|
|
73
|
+
"@repobit/dex-store": "1.3.26",
|
|
74
|
+
"@repobit/dex-store-elements": "1.4.18",
|
|
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": "
|
|
91
|
+
"gitHead": "b2eb5cba616e92393dcdc2fd5398762cda4c20f1"
|
|
92
92
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { LitElement, html } from "lit";
|
|
2
2
|
import { tokens } from "../../tokens/tokens.js";
|
|
3
|
+
import "../icons/minus-icon.js";
|
|
4
|
+
import "../icons/plus-icon.js";
|
|
3
5
|
import accordionCSS from "./accordion-bg.css.js";
|
|
4
|
-
import {
|
|
5
|
-
ACCORDION_ICON_MINUS,
|
|
6
|
-
ACCORDION_ICON_PLUS
|
|
7
|
-
} from "./accordion-indicators.js";
|
|
8
6
|
|
|
9
7
|
class BdAccordionBg extends LitElement {
|
|
10
8
|
static properties = {
|
|
@@ -88,14 +86,12 @@ class BdAccordionBgItem extends LitElement {
|
|
|
88
86
|
@focusin=${this._onTriggerFocusIn}
|
|
89
87
|
@focusout=${this._onTriggerFocusOut}
|
|
90
88
|
>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/>
|
|
98
|
-
</span>
|
|
89
|
+
<span class="bd-accordion-bg-icon" aria-hidden="true">
|
|
90
|
+
${this.open
|
|
91
|
+
? html`<bd-minus-icon size="16" color="#006DFF"></minus-icon>`
|
|
92
|
+
: html`<bd-plus-icon size="16" color="#006DFF"></plus-icon>`
|
|
93
|
+
}
|
|
94
|
+
</span>
|
|
99
95
|
<span class="bd-accordion-bg-question-text">${this.title}</span>
|
|
100
96
|
</button>
|
|
101
97
|
<div
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { LitElement, html } from "lit";
|
|
2
2
|
import { tokens } from "../../tokens/tokens.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
ACCORDION_ICON_PLUS
|
|
6
|
-
} from "./accordion-indicators.js";
|
|
3
|
+
import "../icons/minus-icon.js";
|
|
4
|
+
import "../icons/plus-icon.js";
|
|
7
5
|
import { accordionItem, accordionSection } from "./accordion.css.js";
|
|
8
6
|
|
|
9
7
|
export class BdAccordionItem extends LitElement {
|
|
@@ -27,7 +25,6 @@ export class BdAccordionItem extends LitElement {
|
|
|
27
25
|
this.open = !this.open;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
/** Whole-host focus ring (:has(:focus-visible) is unreliable on shadow hosts in some engines). */
|
|
31
28
|
_onTriggerFocusIn() {
|
|
32
29
|
const btn = this.renderRoot?.querySelector(".header");
|
|
33
30
|
if (!btn) return;
|
|
@@ -55,14 +52,12 @@ export class BdAccordionItem extends LitElement {
|
|
|
55
52
|
@focusin=${this._onTriggerFocusIn}
|
|
56
53
|
@focusout=${this._onTriggerFocusOut}
|
|
57
54
|
>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/>
|
|
65
|
-
</span>
|
|
55
|
+
<span class="toggle" aria-hidden="true">
|
|
56
|
+
${this.open
|
|
57
|
+
? html`<bd-minus-icon size="16" color="#006DFF"></minus-icon>`
|
|
58
|
+
: html`<bd-plus-icon size="16" color="#006DFF"></plus-icon>`
|
|
59
|
+
}
|
|
60
|
+
</span>
|
|
66
61
|
<span class="title">${this.title}</span>
|
|
67
62
|
</button>
|
|
68
63
|
<div id="${this._panelId}" class="content" ?hidden=${!this.open}>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LitElement, css, html } from "lit";
|
|
2
|
+
|
|
3
|
+
class MinusIcon extends LitElement {
|
|
4
|
+
static properties = {
|
|
5
|
+
size : { type: Number },
|
|
6
|
+
color: { type: String }
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.size = 16;
|
|
12
|
+
this.color = "currentColor";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static styles = css`
|
|
16
|
+
:host { display: inline-flex; }
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
return html`
|
|
21
|
+
<svg width="${this.size}" height="${this.size}" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
22
|
+
<path d="M7 7.00001H1V9.00001H7H9H15V7.00001H9C8 7 7.5 6.99997 7 7.00001Z" fill="${this.color}"/>
|
|
23
|
+
</svg>
|
|
24
|
+
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
customElements.define("bd-minus-icon", MinusIcon);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LitElement, css, html } from "lit";
|
|
2
|
+
|
|
3
|
+
class PlusIcon extends LitElement {
|
|
4
|
+
static properties = {
|
|
5
|
+
size : { type: Number },
|
|
6
|
+
color: { type: String }
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.size = 16;
|
|
12
|
+
this.color = "currentColor";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static styles = css`
|
|
16
|
+
:host { display: inline-flex; }
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
return html`
|
|
21
|
+
<svg width="${this.size}" height="${this.size}" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
22
|
+
<path d="M9 1H7V7H1V9H7V15H9V9H15V7H9V1Z" fill="${this.color}"/>
|
|
23
|
+
</svg>
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
customElements.define("bd-plus-icon", PlusIcon);
|