@hubpav/hwio-ui 0.10.4 → 0.10.6

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.4",
3
+ "version": "0.10.6",
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.4",
36
- "@hubpav/hwio-web-runtime": "0.10.4",
37
- "@hubpav/hwio-web-worker": "0.10.4",
35
+ "@hubpav/hwio-brand": "0.10.6",
36
+ "@hubpav/hwio-web-runtime": "0.10.6",
37
+ "@hubpav/hwio-web-worker": "0.10.6",
38
38
  "daisyui": "5.7.47"
39
39
  },
40
40
  "peerDependencies": {
@@ -1,14 +1,18 @@
1
1
  ---
2
- /** The "HARDWARIO websites" strip. Pass the entries from hwioFooterSites() in @hubpav/hwio-brand. */
2
+ /**
3
+ * The "HARDWARIO websites" strip. Pass the entries from hwioFooterSites() in @hubpav/hwio-brand. The middle dots show
4
+ * from 640 px; on a phone the names wrap with a wider gap instead, so no line ends on a dot or a name stands alone
5
+ * after one.
6
+ */
3
7
  interface Props { items: { key: string; label: string; href: string }[]; label: string; class?: string }
4
8
  const { items, label, class: className = '' } = Astro.props;
5
9
  ---
6
10
  {items.length > 0 && (
7
- <nav class:list={['flex flex-wrap items-baseline justify-center gap-x-3 gap-y-1 text-sm', className]} aria-label={label}>
11
+ <nav class:list={['flex flex-wrap items-baseline justify-center gap-x-4 gap-y-1 text-sm sm:gap-x-3', className]} aria-label={label}>
8
12
  <span class="w-full text-center opacity-70 sm:w-auto sm:text-left">{label}:</span>
9
13
  {items.map((site, i) => (
10
14
  <>
11
- {i > 0 && <span class="opacity-50" aria-hidden="true">&middot;</span>}
15
+ {i > 0 && <span class="hidden opacity-50 sm:inline" aria-hidden="true">&middot;</span>}
12
16
  <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
17
  </>
14
18
  ))}
@@ -15,7 +15,7 @@
15
15
  * The theme toggle and the language dropdown are quiet utilities (.hwio-utility: the nav's weight, size
16
16
  * and gray, thin icons). The language dropdown, the mega panels and the menu close each other: one
17
17
  * popup at a time (@hubpav/hwio-web-runtime/popup). A CTA with an icon collapses to the icon alone below
18
- * 2xl; an external CTA's arrow shows only beside its full label.
18
+ * 2xl and carries no external arrow: its icon already says where it goes (owner, 2026-11-03, the store's bag).
19
19
  *
20
20
  * `navDensity="tight"` with `desktopFrom="xl"`: between 1280 and 1535 px, where the container is still
21
21
  * 1280 px wide, the nav labels drop from 15 to 14 px and the item padding from 12 to 8 px, so a long nav
@@ -88,8 +88,6 @@ const linkAttrs = (item: HWioLinkItem) => (item.external ? { target: '_blank', r
88
88
  <HWioButton href={cta.href} external={cta.external} externalIcon={!cta.icon} variant={CTA_VARIANT[cta.variant ?? 'primary']} size="sm" track={cta.track ?? { id: 'header-cta', location: 'header' }} class={cta.icon ? '2xl:px-4 px-2.5' : ''} aria-label={cta.icon ? cta.label : undefined} title={cta.icon ? cta.label : undefined}>
89
89
  {cta.icon && <HWioIcon name={cta.icon as 'bag'} size="sm" />}
90
90
  {cta.icon ? <span class="hidden 2xl:inline">{cta.label}</span> : cta.label}
91
- {/* Collapsed (icon only, below 2xl) the button shows just its icon; the external glyph returns beside the label. */}
92
- {cta.icon && cta.external && <HWioIcon name="external" size="sm" class="hidden 2xl:block" />}
93
91
  </HWioButton>
94
92
  ))}
95
93
  </div>