@repobit/dex-system-design 2.3.0 → 2.3.1
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
|
+
## [2.3.1](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@2.3.0...@repobit/dex-system-design@2.3.1) (2026-10-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @repobit/dex-system-design
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.3.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@2.2.2...@repobit/dex-system-design@2.3.0) (2026-10-23)
|
|
7
15
|
|
|
8
16
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-system-design",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
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",
|
|
@@ -192,5 +192,5 @@
|
|
|
192
192
|
"volta": {
|
|
193
193
|
"node": "24.14.0"
|
|
194
194
|
},
|
|
195
|
-
"gitHead": "
|
|
195
|
+
"gitHead": "727703f54bf39deaa0b85ccf0e53ef4404dd376a"
|
|
196
196
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifestVersion": 1,
|
|
3
3
|
"package": "@repobit/dex-system-design",
|
|
4
|
-
"packageVersion": "2.3.
|
|
4
|
+
"packageVersion": "2.3.1",
|
|
5
5
|
"generatedFrom": [
|
|
6
6
|
"package.json exports",
|
|
7
7
|
"Lit static properties",
|
|
@@ -4120,19 +4120,7 @@
|
|
|
4120
4120
|
{
|
|
4121
4121
|
"name": "paused",
|
|
4122
4122
|
"type": "boolean",
|
|
4123
|
-
"description": "Stopped.
|
|
4124
|
-
},
|
|
4125
|
-
{
|
|
4126
|
-
"name": "pauseLabel",
|
|
4127
|
-
"type": "string",
|
|
4128
|
-
"attributeName": "pause-label",
|
|
4129
|
-
"description": "The button's accessible name while the row moves."
|
|
4130
|
-
},
|
|
4131
|
-
{
|
|
4132
|
-
"name": "playLabel",
|
|
4133
|
-
"type": "string",
|
|
4134
|
-
"attributeName": "play-label",
|
|
4135
|
-
"description": "The button's accessible name while the row is paused."
|
|
4123
|
+
"description": "Stopped. There is no pause button; a page sets it."
|
|
4136
4124
|
}
|
|
4137
4125
|
]
|
|
4138
4126
|
},
|
|
@@ -37,7 +37,7 @@ export const logoMarqueeCSS = css`
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/* Held while the pointer or focus is on the row, and stopped by the
|
|
40
|
+
/* Held while the pointer or focus is on the row, and stopped by the paused attribute. */
|
|
41
41
|
.viewport:hover .track,
|
|
42
42
|
.viewport:focus-within .track,
|
|
43
43
|
:host([paused]) .track {
|
|
@@ -57,12 +57,8 @@ export const logoMarqueeCSS = css`
|
|
|
57
57
|
flex: none;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* Still, and nothing hidden: the set wraps in place, the copies and the
|
|
65
|
-
fade go, and there is nothing to pause. */
|
|
60
|
+
/* Still, and nothing hidden: the set wraps in place, and the copies and
|
|
61
|
+
the fade go. */
|
|
66
62
|
@media (prefers-reduced-motion: reduce) {
|
|
67
63
|
.viewport {
|
|
68
64
|
mask-image: none;
|
|
@@ -80,8 +76,7 @@ export const logoMarqueeCSS = css`
|
|
|
80
76
|
padding-inline-end: 0;
|
|
81
77
|
}
|
|
82
78
|
|
|
83
|
-
.copy
|
|
84
|
-
.toggle {
|
|
79
|
+
.copy {
|
|
85
80
|
display: none;
|
|
86
81
|
}
|
|
87
82
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { LitElement, html } from "lit";
|
|
2
2
|
import { tokens } from "../../tokens/tokens.js";
|
|
3
|
-
import "../button/button.js";
|
|
4
|
-
import "../icons/pause-icon.js";
|
|
5
|
-
import "../icons/play-icon.js";
|
|
6
3
|
import { spacing } from "../shared/token-scales.js";
|
|
7
4
|
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
8
5
|
import { logoMarqueeCSS } from "./logo-marquee.css.js";
|
|
@@ -19,20 +16,17 @@ import { logoMarqueeCSS } from "./logo-marquee.css.js";
|
|
|
19
16
|
* by one copy -- the jump back is then exactly one repeat, and invisible. The
|
|
20
17
|
* copies are aria-hidden and inert: a screen reader reads the set once.
|
|
21
18
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* the set wraps in place instead, so nothing is hidden behind the fade.
|
|
19
|
+
* There is no pause button: the pointer or focus on the row holds it, and a
|
|
20
|
+
* page can stop it with `paused`. Under prefers-reduced-motion it never moves
|
|
21
|
+
* -- the set wraps in place instead, so nothing is hidden behind the fade.
|
|
26
22
|
*/
|
|
27
23
|
export class LogoMarquee extends LitElement {
|
|
28
24
|
static properties = {
|
|
29
|
-
label
|
|
30
|
-
duration
|
|
31
|
-
gap
|
|
32
|
-
paused
|
|
33
|
-
|
|
34
|
-
playLabel : { type: String, attribute: "play-label" },
|
|
35
|
-
_copies : { state: true }
|
|
25
|
+
label : { type: String },
|
|
26
|
+
duration: { type: Number },
|
|
27
|
+
gap : { type: String },
|
|
28
|
+
paused : { type: Boolean, reflect: true },
|
|
29
|
+
_copies : { state: true }
|
|
36
30
|
};
|
|
37
31
|
|
|
38
32
|
static styles = [tokens, ensembleCSS, logoMarqueeCSS];
|
|
@@ -45,8 +39,6 @@ export class LogoMarquee extends LitElement {
|
|
|
45
39
|
// a step on the spacing scale, between two logos
|
|
46
40
|
this.gap = "48";
|
|
47
41
|
this.paused = false;
|
|
48
|
-
this.pauseLabel = "Pause the logos";
|
|
49
|
-
this.playLabel = "Play the logos";
|
|
50
42
|
// copies of the set after the original; at least one, or there is no loop
|
|
51
43
|
this._copies = 1;
|
|
52
44
|
this._resize = new ResizeObserver(() => this._measure());
|
|
@@ -99,10 +91,6 @@ export class LogoMarquee extends LitElement {
|
|
|
99
91
|
if (changed.has("_copies")) this._fillCopies();
|
|
100
92
|
}
|
|
101
93
|
|
|
102
|
-
_toggle() {
|
|
103
|
-
this.paused = !this.paused;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
94
|
render() {
|
|
107
95
|
const copies = Array.from({ length: this._copies });
|
|
108
96
|
return html`
|
|
@@ -117,16 +105,6 @@ export class LogoMarquee extends LitElement {
|
|
|
117
105
|
${copies.map(() => html`<div class="group copy" aria-hidden="true" inert></div>`)}
|
|
118
106
|
</div>
|
|
119
107
|
</div>
|
|
120
|
-
<bd-button
|
|
121
|
-
class="toggle"
|
|
122
|
-
variant="ghost"
|
|
123
|
-
size="md"
|
|
124
|
-
icon-only
|
|
125
|
-
label="${this.paused ? this.playLabel : this.pauseLabel}"
|
|
126
|
-
@click=${this._toggle}
|
|
127
|
-
>${this.paused
|
|
128
|
-
? html`<bd-play-icon size="md"></bd-play-icon>`
|
|
129
|
-
: html`<bd-pause-icon size="md"></bd-pause-icon>`}</bd-button>
|
|
130
108
|
</section>
|
|
131
109
|
`;
|
|
132
110
|
}
|
|
@@ -35,15 +35,13 @@ needs and moves the track by one copy, so the loop has no seam. The copies are
|
|
|
35
35
|
| \`label\` | String | \`""\` | Names the region, in the page's language |
|
|
36
36
|
| \`duration\` | Number | \`18\` | Seconds for one copy of the set to pass (18 partners, 10 awards) |
|
|
37
37
|
| \`gap\` | String | \`"48"\` | A spacing step between two logos (48 partners, 24 awards) |
|
|
38
|
-
| \`paused\` | Boolean | \`false\` | Stopped;
|
|
39
|
-
| \`pause-label\` / \`play-label\` | String | English | The button's accessible name in each state |
|
|
38
|
+
| \`paused\` | Boolean | \`false\` | Stopped; a page sets it |
|
|
40
39
|
|
|
41
40
|
### Motion
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
set wraps in place, the fade and the button go, and nothing is hidden.
|
|
42
|
+
There is no pause button: the pointer or focus on the row holds it, and a
|
|
43
|
+
page can stop it with \`paused\`. Under \`prefers-reduced-motion\` it never
|
|
44
|
+
moves: the set wraps in place, the fade goes, and nothing is hidden.
|
|
47
45
|
`
|
|
48
46
|
}
|
|
49
47
|
}
|