@hubpav/hwio-ui 0.6.1 → 0.6.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubpav/hwio-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "HARDWARIO web design system for Astro: DaisyUI 5 themes generated from the brand tokens, the Tailwind entry stylesheet and the HWio* components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"build": "node scripts/build-themes.mjs"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@hubpav/hwio-brand": "0.6.
|
|
35
|
-
"@hubpav/hwio-web-runtime": "0.6.
|
|
36
|
-
"@hubpav/hwio-web-worker": "0.6.
|
|
34
|
+
"@hubpav/hwio-brand": "0.6.3",
|
|
35
|
+
"@hubpav/hwio-web-runtime": "0.6.3",
|
|
36
|
+
"@hubpav/hwio-web-worker": "0.6.3",
|
|
37
37
|
"daisyui": "5.7.28"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -27,7 +27,7 @@ const optional = ['preferences', 'statistics', 'marketing'] as const;
|
|
|
27
27
|
<p class="text-base font-semibold">{labels.title}</p>
|
|
28
28
|
<p class="mt-1 text-sm leading-6 opacity-80">
|
|
29
29
|
{labels.short}
|
|
30
|
-
<a href={policyHref} class="link link-
|
|
30
|
+
<a href={policyHref} class="link link-accent font-semibold">{labels.policy}</a>
|
|
31
31
|
</p>
|
|
32
32
|
</div>
|
|
33
33
|
<div class="flex flex-col gap-2 sm:flex-row md:shrink-0">
|
|
@@ -20,14 +20,14 @@ interface Props {
|
|
|
20
20
|
class?: string;
|
|
21
21
|
}
|
|
22
22
|
const { columns, social = [], branches, legal = [], cookieSettingsLabel, sites, copyright, tagline, class: className = '' } = Astro.props;
|
|
23
|
-
const linkClass = 'inline-flex items-center gap-1 text-neutral-content/80 transition-colors hover:text-accent';
|
|
23
|
+
const linkClass = 'inline-flex items-center gap-1 text-neutral-content/80 transition-colors hover:text-[var(--hwio-footer-hover,var(--color-accent))]';
|
|
24
24
|
---
|
|
25
25
|
<footer class:list={['bg-neutral text-neutral-content', className]} data-hwio-footer>
|
|
26
26
|
{social.length > 0 && (
|
|
27
27
|
<div class="border-b border-neutral-content/10">
|
|
28
28
|
<div class="container flex justify-center gap-6 py-6">
|
|
29
29
|
{social.filter((s) => s.icon !== 'forum').map((s) => (
|
|
30
|
-
<a href={s.href} target="_blank" rel="noopener noreferrer" class="text-neutral-content transition-colors hover:text-accent" aria-label={s.label}>
|
|
30
|
+
<a href={s.href} target="_blank" rel="noopener noreferrer" class="text-neutral-content transition-colors hover:text-[var(--hwio-footer-hover,var(--color-accent))]" aria-label={s.label}>
|
|
31
31
|
<HWioIcon name={s.icon} class="size-9" />
|
|
32
32
|
</a>
|
|
33
33
|
))}
|
|
@@ -74,7 +74,7 @@ const linkClass = 'inline-flex items-center gap-1 text-neutral-content/80 transi
|
|
|
74
74
|
{legal.map((l) => (
|
|
75
75
|
<li><a href={l.href} target={l.external ? '_blank' : undefined} rel={l.external ? 'noopener noreferrer' : undefined} class={linkClass}>{l.label}{l.external && <HWioIcon name="download" size="sm" />}</a></li>
|
|
76
76
|
))}
|
|
77
|
-
{cookieSettingsLabel && <li><button type="button" data-hwio-cookie-settings class="text-left text-neutral-content/80 transition-colors hover:text-accent">{cookieSettingsLabel}</button></li>}
|
|
77
|
+
{cookieSettingsLabel && <li><button type="button" data-hwio-cookie-settings class="text-left text-neutral-content/80 transition-colors hover:text-[var(--hwio-footer-hover,var(--color-accent))]">{cookieSettingsLabel}</button></li>}
|
|
78
78
|
</ul>
|
|
79
79
|
</div>
|
|
80
80
|
)}
|
|
@@ -9,7 +9,7 @@ const { items, label, class: className = '' } = Astro.props;
|
|
|
9
9
|
{items.map((site, i) => (
|
|
10
10
|
<>
|
|
11
11
|
{i > 0 && <span class="opacity-50" aria-hidden="true">·</span>}
|
|
12
|
-
<a href={site.href} target="_blank" rel="noopener noreferrer" class="text-neutral-content/80 transition-colors hover:text-accent">{site.label}</a>
|
|
12
|
+
<a href={site.href} target="_blank" rel="noopener noreferrer" class="text-neutral-content/80 transition-colors hover:text-[var(--hwio-footer-hover,var(--color-accent))]">{site.label}</a>
|
|
13
13
|
</>
|
|
14
14
|
))}
|
|
15
15
|
</nav>
|
|
@@ -40,13 +40,20 @@
|
|
|
40
40
|
--hwio-container-pad: 27px;
|
|
41
41
|
--er3o-gradient-from: #01CC9B;
|
|
42
42
|
--er3o-gradient-to: #14A0C0;
|
|
43
|
+
--hwio-footer-hover: #ffffff;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
/* ENEROOO carries its gradient as a theme rule: DaisyUI slots are single colours.
|
|
46
|
-
|
|
46
|
+
/* ENEROOO carries its gradient as a theme rule: DaisyUI slots are single colours. Only the filled
|
|
47
|
+
button gets it; outline, ghost and link variants keep their transparent background. */
|
|
48
|
+
[data-theme="er3o"] .btn-primary:not(.btn-outline):not(.btn-ghost):not(.btn-link) {
|
|
47
49
|
background-image: linear-gradient(90deg, var(--er3o-gradient-from), var(--er3o-gradient-to));
|
|
48
50
|
border-color: transparent;
|
|
49
51
|
}
|
|
52
|
+
/* The outline button reads in the AA teal (the theme's accent, 6.6:1); the filled primary teal is 2.9:1 as text. */
|
|
53
|
+
[data-theme="er3o"] .btn-outline.btn-primary:not(:hover):not(:active) {
|
|
54
|
+
color: var(--color-accent);
|
|
55
|
+
border-color: var(--color-accent);
|
|
56
|
+
}
|
|
50
57
|
[data-theme="er3o"] .er3o-gradient-text {
|
|
51
58
|
background-image: linear-gradient(90deg, var(--er3o-gradient-from), var(--er3o-gradient-to));
|
|
52
59
|
-webkit-background-clip: text;
|