@hraness/design-kit 0.40.0 → 0.40.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/README.md +6 -2
- package/dist/{chunk-1dgm85ta.js → chunk-q2cfjmte.js} +2 -2
- package/dist/react/index.js +21 -1
- package/dist/react/server.js +1 -1
- package/dist/stylex-manifest.json +1 -1
- package/dist/stylex.css +4 -0
- package/package.json +1 -1
- package/portfolio-inventory.json +1 -1
- package/src/plain-publication.css +5 -4
- package/src/plain-site.css +4 -4
- package/src/react/design-gallery.tsx +10 -0
- package/src/react/marketing-account.stylex.ts +2 -2
package/dist/stylex.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hraness/design-kit",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.1",
|
|
4
4
|
"description": "React components and CSS for Hraness apps and product sites: application shells, marketing sections, charts, themes, effects, and syntax highlighting. Built on @hraness/ui.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/portfolio-inventory.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
flex: 1 0 auto;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
:where(.plain-site.plain-publication a:not(.hraness-design-skip-link)) {
|
|
28
|
+
:where(.plain-site.plain-publication a:not(.hraness-design-skip-link)):not(:where(.hraness-marketing-account__primary, .hraness-marketing-account__sign-in)) {
|
|
29
29
|
color: var(--plain-link);
|
|
30
30
|
overflow-wrap: anywhere;
|
|
31
31
|
text-decoration: none;
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
:where(
|
|
37
37
|
.plain-site.plain-publication
|
|
38
38
|
a:not(.hraness-design-skip-link):is(:hover, :focus-visible)
|
|
39
|
-
) {
|
|
39
|
+
):not(:where(.hraness-marketing-account__primary, .hraness-marketing-account__sign-in)) {
|
|
40
40
|
text-decoration-line: underline;
|
|
41
41
|
text-decoration-style: dotted;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
:where(.plain-site.plain-publication a:not(.hraness-design-skip-link):focus-visible) {
|
|
44
|
+
:where(.plain-site.plain-publication a:not(.hraness-design-skip-link):focus-visible):not(:where(.hraness-marketing-account__primary, .hraness-marketing-account__sign-in)) {
|
|
45
45
|
border-radius: 1px;
|
|
46
46
|
outline: 1px dotted currentColor;
|
|
47
47
|
outline-offset: 3px;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
:where(
|
|
51
51
|
.plain-site.plain-publication
|
|
52
52
|
a:not(.hraness-design-skip-link):focus:not(:focus-visible)
|
|
53
|
-
) {
|
|
53
|
+
):not(:where(.hraness-marketing-account__primary, .hraness-marketing-account__sign-in)) {
|
|
54
54
|
outline: none;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -726,6 +726,7 @@
|
|
|
726
726
|
}
|
|
727
727
|
|
|
728
728
|
@media (forced-colors: none) {
|
|
729
|
+
.plain-site.plain-publication.plain-publication--embedded .plain-publication__byline a:is(:hover, :focus-visible),
|
|
729
730
|
.plain-site.plain-publication.plain-publication--embedded .plain-publication__article-body a:is(:hover, :focus-visible) {
|
|
730
731
|
text-decoration-color: currentColor;
|
|
731
732
|
}
|
package/src/plain-site.css
CHANGED
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
box-sizing: border-box;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
:where(.plain-header a, .plain-page a, .plain-footer a) {
|
|
114
|
+
:where(.plain-header a, .plain-page a, .plain-footer a):not(:where(.hraness-marketing-account__primary, .hraness-marketing-account__sign-in)) {
|
|
115
115
|
color: var(--plain-link);
|
|
116
116
|
overflow-wrap: anywhere;
|
|
117
117
|
text-decoration: none;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
.plain-header a:is(:hover, :focus-visible),
|
|
124
124
|
.plain-page a:is(:hover, :focus-visible),
|
|
125
125
|
.plain-footer a:is(:hover, :focus-visible)
|
|
126
|
-
) {
|
|
126
|
+
):not(:where(.hraness-marketing-account__primary, .hraness-marketing-account__sign-in)) {
|
|
127
127
|
text-decoration: underline;
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
.plain-header a:focus-visible,
|
|
132
132
|
.plain-page a:focus-visible,
|
|
133
133
|
.plain-footer a:focus-visible
|
|
134
|
-
) {
|
|
134
|
+
):not(:where(.hraness-marketing-account__primary, .hraness-marketing-account__sign-in)) {
|
|
135
135
|
border-radius: 1px;
|
|
136
136
|
outline: 1px dotted currentColor;
|
|
137
137
|
outline-offset: 3px;
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
.plain-header a:focus:not(:focus-visible),
|
|
142
142
|
.plain-page a:focus:not(:focus-visible),
|
|
143
143
|
.plain-footer a:focus:not(:focus-visible)
|
|
144
|
-
) {
|
|
144
|
+
):not(:where(.hraness-marketing-account__primary, .hraness-marketing-account__sign-in)) {
|
|
145
145
|
outline: none;
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -309,6 +309,16 @@ export function DesignSystemGallery({
|
|
|
309
309
|
</p>
|
|
310
310
|
</div>
|
|
311
311
|
</div>
|
|
312
|
+
<div
|
|
313
|
+
aria-label="Plain site account actions"
|
|
314
|
+
className="design-gallery__plain-theme plain-site plain-publication"
|
|
315
|
+
>
|
|
316
|
+
<div className="plain-page">
|
|
317
|
+
<MarketingAccount id="plain-account" summary="Keep your preferences across devices.">
|
|
318
|
+
<MarketingAccountActions primary={{ href: "#plain-account", label: "Create account" }} signIn={{ href: "#plain-account" }} />
|
|
319
|
+
</MarketingAccount>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
312
322
|
</section>
|
|
313
323
|
|
|
314
324
|
<section className="design-gallery__section" id="paper-theme">
|
|
@@ -56,7 +56,7 @@ export const marketingAccountStyles = stylex.create({
|
|
|
56
56
|
},
|
|
57
57
|
signIn: {
|
|
58
58
|
alignItems: "center",
|
|
59
|
-
color: "var(--foreground)",
|
|
59
|
+
color: { default: "var(--foreground)", "@media (forced-colors: active)": "LinkText" },
|
|
60
60
|
display: "inline-flex",
|
|
61
61
|
fontFamily: "var(--font-text)",
|
|
62
62
|
fontSize: "1.0625rem",
|
|
@@ -67,7 +67,7 @@ export const marketingAccountStyles = stylex.create({
|
|
|
67
67
|
outlineOffset: { default: null, ":focus-visible": "3px" },
|
|
68
68
|
textDecorationLine: "underline",
|
|
69
69
|
textDecorationStyle: "dotted",
|
|
70
|
-
textDecorationColor: { default: "color-mix(in srgb, currentColor 45%, transparent)", ":hover": "currentColor", "@media (forced-colors: active)": "LinkText" },
|
|
70
|
+
textDecorationColor: { default: "color-mix(in srgb, currentColor 45%, transparent)", ":hover": "currentColor", ":focus-visible": "currentColor", "@media (forced-colors: active)": "LinkText" },
|
|
71
71
|
textDecorationThickness: "1px",
|
|
72
72
|
textUnderlineOffset: "0.22em",
|
|
73
73
|
},
|