@repobit/dex-system-design 0.23.15 → 0.23.17
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 +14 -0
- package/package.json +2 -2
- package/src/components/Button/Button.js +61 -33
- package/src/components/Button/button.css.js +63 -79
- package/src/components/anchor/anchor-nav.css.js +105 -91
- package/src/components/anchor/anchor-nav.js +209 -123
- package/src/components/anchor/anchor.stories.js +190 -83
- package/src/components/badge/badge.css.js +15 -38
- package/src/components/badge/badge.js +15 -35
- package/src/components/compare/compare.stories.js +6 -3
- package/src/components/link/link.css.js +38 -2
- package/src/components/link/link.js +20 -14
|
@@ -100,7 +100,7 @@ export const Default = {
|
|
|
100
100
|
gap="32px"
|
|
101
101
|
>
|
|
102
102
|
<compare-card
|
|
103
|
-
title="Best Protection"
|
|
103
|
+
title="Best ProtectionBest ProtectionBest ProtectionBest Protection"
|
|
104
104
|
description="Best Protection against e-Threats (On a scale of 0 to 6, with 6 as the highest level of protection)Best Protection against e-Threats (On a scale of 0 to 6, with 6 as the highest level of protection)Best Protection against e-Threats (On a scale of 0 to 6, with 6 as the highest level of protection)"
|
|
105
105
|
footnote="Overall Score. July 2011 – February 2025. Source AV TEST.org"
|
|
106
106
|
footnote-href="${AV_TEST_URL}"
|
|
@@ -110,6 +110,10 @@ export const Default = {
|
|
|
110
110
|
<compare-bar label="Bitdefender" score="5.95" max-score="6" variant="primary"></compare-bar>
|
|
111
111
|
<compare-bar label="Norton" score="5.59" max-score="6" variant="secondary" scale="0.93"></compare-bar>
|
|
112
112
|
<compare-bar label="McAfee" score="5.45" max-score="6" variant="secondary" scale="0.47"></compare-bar>
|
|
113
|
+
<compare-bar label="Norton" score="5.89" max-score="6" variant="secondary" scale="0.73"></compare-bar>
|
|
114
|
+
<compare-bar label="McAfee" score="5.53" max-score="6" variant="secondary" scale="0.47"></compare-bar>
|
|
115
|
+
<compare-bar label="Norton" score="5.89" max-score="6" variant="secondary" scale="0.73"></compare-bar>
|
|
116
|
+
<compare-bar label="McAfee" score="5.53" max-score="6" variant="secondary" scale="0.47"></compare-bar>
|
|
113
117
|
</compare-card>
|
|
114
118
|
|
|
115
119
|
<compare-card
|
|
@@ -121,8 +125,7 @@ export const Default = {
|
|
|
121
125
|
bar-stretch="false"
|
|
122
126
|
>
|
|
123
127
|
<compare-bar label="Bitdefender" score="5.86" max-score="6" variant="primary"></compare-bar>
|
|
124
|
-
|
|
125
|
-
<compare-bar label="McAfee" score="5.53" max-score="6" variant="secondary" scale="0.47"></compare-bar>
|
|
128
|
+
|
|
126
129
|
</compare-card>
|
|
127
130
|
</bd-compare-section>
|
|
128
131
|
`
|
|
@@ -37,6 +37,39 @@ export default css`
|
|
|
37
37
|
text-underline-offset: 2px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
/* ============================================
|
|
41
|
+
ACTIVE STATE - FONT WEIGHT 700
|
|
42
|
+
============================================ */
|
|
43
|
+
|
|
44
|
+
.bd-link--active {
|
|
45
|
+
font-weight: 700 !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Poți adăuga și alte stiluri pentru active dacă dorești */
|
|
49
|
+
.bd-link--active.bd-link--primary {
|
|
50
|
+
color: var(--color-neutral-900);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.bd-link--active.bd-link--secondary {
|
|
54
|
+
color: var(--color-neutral-900);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
.bd-link--no-underline:hover,
|
|
59
|
+
.bd-link--no-underline.bd-link--primary:hover,
|
|
60
|
+
.bd-link--no-underline.bd-link--secondary:hover,
|
|
61
|
+
.bd-link--no-underline.bd-link--danger:hover,
|
|
62
|
+
.bd-link--no-underline.bd-link--bold:hover,
|
|
63
|
+
.bd-link--no-underline.bd-link--subtle:hover {
|
|
64
|
+
text-decoration: none !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
.bd-link--no-underline.bd-link--secondary:hover {
|
|
70
|
+
color: var(--color-neutral-800) !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
40
73
|
/* Light variant for dark backgrounds */
|
|
41
74
|
.bd-link--light {
|
|
42
75
|
color: var(--color-neutral-0);
|
|
@@ -101,9 +134,12 @@ export default css`
|
|
|
101
134
|
pointer-events: none;
|
|
102
135
|
}
|
|
103
136
|
|
|
104
|
-
|
|
105
|
-
/* Focus styles for all variants */
|
|
137
|
+
/* Focus styles */
|
|
106
138
|
.bd-link:focus {
|
|
139
|
+
outline: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.bd-link:focus-visible {
|
|
107
143
|
outline: 2px solid var(--color-blue-300);
|
|
108
144
|
outline-offset: 2px;
|
|
109
145
|
border-radius: 2px;
|
|
@@ -4,24 +4,28 @@ import linkCSS from "./link.css.js";
|
|
|
4
4
|
|
|
5
5
|
class BdLink extends LitElement {
|
|
6
6
|
static properties = {
|
|
7
|
-
href
|
|
8
|
-
target
|
|
9
|
-
kind
|
|
10
|
-
underline: { type: Boolean, reflect: true },
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
href : { type: String },
|
|
8
|
+
target : { type: String },
|
|
9
|
+
kind : { type: String, reflect: true },
|
|
10
|
+
underline : { type: Boolean, reflect: true },
|
|
11
|
+
noUnderline: { type: Boolean, attribute: "no-underline" },
|
|
12
|
+
disabled : { type: Boolean, reflect: true },
|
|
13
|
+
fontSize : { type: String, attribute: "font-size" },
|
|
14
|
+
color : { type: String },
|
|
15
|
+
active : { type: Boolean, reflect: true }
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
constructor() {
|
|
17
19
|
super();
|
|
18
|
-
this.href
|
|
19
|
-
this.target
|
|
20
|
-
this.kind
|
|
21
|
-
this.underline
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
20
|
+
this.href = "#";
|
|
21
|
+
this.target = "_self";
|
|
22
|
+
this.kind = "primary";
|
|
23
|
+
this.underline = false;
|
|
24
|
+
this.noUnderline = false;
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.fontSize = "";
|
|
27
|
+
this.color = "";
|
|
28
|
+
this.active = false;
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
static styles = [tokens, linkCSS];
|
|
@@ -31,6 +35,8 @@ class BdLink extends LitElement {
|
|
|
31
35
|
"bd-link",
|
|
32
36
|
`bd-link--${this.kind}`,
|
|
33
37
|
this.underline ? "bd-link--underline" : "",
|
|
38
|
+
this.noUnderline ? "bd-link--no-underline" : "",
|
|
39
|
+
this.active ? "bd-link--active" : "",
|
|
34
40
|
this.disabled ? "bd-link--disabled" : ""
|
|
35
41
|
].filter(Boolean).join(" ");
|
|
36
42
|
}
|