@fiscozen/navbar 0.1.11 → 0.2.0

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @fiscozen/navbar
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c6445b3: Additive modernization of FzNavbar (no required consumer changes):
8
+ - Add `mobileBreakpoint` prop (number or `${number}px`) — replaces the need for consumers to mutate `@fiscozen/style`'s imported `breakpoints` object to align the navbar with their desktop threshold. The legacy `breakpoints` prop is deprecated and now emits a dev-mode warning when used.
9
+ - Add `position` prop (`'static' | 'fixed' | 'sticky'`) — replaces the `class="fixed top-0 left-0"` pattern consumers use at the call site.
10
+ - Add `respectSafeArea` prop (default `false`) — when enabled, adds `env(safe-area-inset-*)` to top/left/right padding for devices with notches. Honors the `--safe-area-inset-*` CSS-variable fallback used by Capacitor / Cordova apps.
11
+ - Add v-model support on `isMenuOpen` — the existing prop + `fznavbar:menuButtonClick` event continue to work; consumers can opt in to `v-model:isMenuOpen` for cleaner two-way binding.
12
+ - Add `#menu-button` slot with scope `{ isOpen, toggle }` — lets consumers replace the default `FzIconButton` hamburger on mobile.
13
+ - Expose layout values as CSS custom properties on the root (`--fz-navbar-padding`, `--fz-navbar-shadow`, `--fz-navbar-height`, `--fz-navbar-width`, `--fz-navbar-brand-gap`, `--fz-navbar-actions-gap`, `--fz-navbar-z-index`, `--fz-navbar-bg`). Defaults match the previous Tailwind utility values, so visual behavior is unchanged. Consumers can override per-instance via inline style without `!important` resets.
14
+ - Add Bootstrap interop hardening — root `<header>` carries `box-border`, `m-0`, `border-0` so the component renders identically with or without `tailwindcss-scoped-preflight` (`.twp`) scoping.
15
+ - Bug fix: on mobile, both `#notifications` and `#user-menu` slots render simultaneously when both are provided. The previous mutually-exclusive behavior was a hard-coded limitation.
16
+ - Default alignment fix: the root `<header>` and the inner navigation / actions flex containers now use `items-center`, so slot content with mixed heights (icon, button, avatar) sits visually centered along the cross-axis. Frontoffice previously worked around this on mobile by adding `items-center` at the call site.
17
+
3
18
  ## 0.1.11
4
19
 
5
20
  ### Patch Changes
package/dist/navbar.css CHANGED
@@ -1,2 +1,2 @@
1
- .fz-icon-button-wrapper[data-v-84505903]>button{gap:0!important;min-width:0!important}.fz-icon-button-wrapper--backoffice[data-v-84505903]>button{padding-left:5px;padding-right:5px}.fz-icon-button-wrapper--frontoffice[data-v-84505903]>button{padding-left:11px;padding-right:11px}
1
+ .fz-icon-button-wrapper[data-v-84505903]>button{gap:0!important;min-width:0!important}.fz-icon-button-wrapper--backoffice[data-v-84505903]>button{padding-left:5px;padding-right:5px}.fz-icon-button-wrapper--frontoffice[data-v-84505903]>button{padding-left:11px;padding-right:11px}.fz-navbar{z-index:var(--fz-navbar-z-index,10);padding:var(--fz-navbar-padding,3rem);box-shadow:var(--fz-navbar-shadow,0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a);background:var(--fz-navbar-bg,transparent)}.fz-navbar.h-56{height:var(--fz-navbar-height,14rem)}.fz-navbar.w-56{width:var(--fz-navbar-width,14rem)}.fz-navbar>.mr-32{margin-right:var(--fz-navbar-brand-gap,8rem)}.fz-navbar>.mb-32{margin-bottom:var(--fz-navbar-brand-gap,8rem)}.fz-navbar>.gap-16{gap:var(--fz-navbar-actions-gap,4rem)}.fz-navbar--fixed{position:fixed;top:0;left:0}.fz-navbar--sticky{position:sticky;top:0}.fz-navbar--safe-area{padding-top:calc(var(--fz-navbar-padding,3rem) + max(env(safe-area-inset-top,0px), var(--safe-area-inset-top,0px)));padding-left:calc(var(--fz-navbar-padding,3rem) + max(env(safe-area-inset-left,0px), var(--safe-area-inset-left,0px)));padding-right:calc(var(--fz-navbar-padding,3rem) + max(env(safe-area-inset-right,0px), var(--safe-area-inset-right,0px)))}
2
2
  /*$vite$:1*/