@hubpav/hwio-ui 0.10.2 → 0.10.4
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.10.
|
|
3
|
+
"version": "0.10.4",
|
|
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",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"test": "node --test \"test/**/*.test.mjs\""
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@hubpav/hwio-brand": "0.10.
|
|
36
|
-
"@hubpav/hwio-web-runtime": "0.10.
|
|
37
|
-
"@hubpav/hwio-web-worker": "0.10.
|
|
35
|
+
"@hubpav/hwio-brand": "0.10.4",
|
|
36
|
+
"@hubpav/hwio-web-runtime": "0.10.4",
|
|
37
|
+
"@hubpav/hwio-web-worker": "0.10.4",
|
|
38
38
|
"daisyui": "5.7.47"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -37,7 +37,7 @@ const linkAttrs = (item: HWioLinkItem) => (item.external ? { target: '_blank', r
|
|
|
37
37
|
<ul class:list={['grid gap-x-6 gap-y-1', COLUMNS[columns]]}>
|
|
38
38
|
{items.map((item) => (
|
|
39
39
|
<li class="min-w-0">
|
|
40
|
-
<a href={item.href} {...linkAttrs(item)} class="flex items-start gap-4 rounded-xl px-3 py-2.5
|
|
40
|
+
<a href={item.href} {...linkAttrs(item)} class="flex items-start gap-4 rounded-xl px-3 py-2.5 hover:bg-base-200" aria-current={item.current ? 'page' : undefined} data-track={item.track?.id} data-track-location={item.track?.location ?? trackLocation}>
|
|
41
41
|
{item.image && (
|
|
42
42
|
<span class="flex h-20 w-16 shrink-0 items-center justify-center">
|
|
43
43
|
<img src={item.image} alt="" loading="lazy" decoding="async" class="hwio-product-shadow max-h-full max-w-full object-contain" />
|
package/src/styles/styles.css
CHANGED
|
@@ -535,6 +535,14 @@
|
|
|
535
535
|
outline: 2px solid var(--color-secondary);
|
|
536
536
|
outline-offset: 2px;
|
|
537
537
|
}
|
|
538
|
+
/* Hover in the header is instant, like a native menu (owner, 2026-11-03): no fade on the bar's items, the language
|
|
539
|
+
dropdown's rows or anything in a mega panel. DaisyUI fades a menu item's fill and colour over 200 ms and panel
|
|
540
|
+
cards fade theirs, so on a quick sweep the item just passed kept glowing with the pointer already further on. */
|
|
541
|
+
.hwio-nav > li > *,
|
|
542
|
+
header .menu.dropdown-content li > *,
|
|
543
|
+
[data-hwio-mega-panel] * {
|
|
544
|
+
transition-property: none;
|
|
545
|
+
}
|
|
538
546
|
/* DaisyUI 5.7.30+ paints a menu link carrying aria-current like .menu-active (the neutral fill). The
|
|
539
547
|
header marks the current page with its own label colour and bar (.hwio-nav-current) and the small-screen menu
|
|
540
548
|
lists it as a plain row, so those links keep the ground; .menu-active items (the language dropdown)
|