@latte-macchiat-io/latte-vanilla-components 0.0.213 → 0.0.214

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": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.213",
3
+ "version": "0.0.214",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -11,7 +11,7 @@ export type HeaderProps = React.HTMLAttributes<HTMLDivElement> &
11
11
  childrenToggleNav?: React.ReactNode;
12
12
  };
13
13
 
14
- export const Header = ({ children, childrenOverlay, childrenToggleNav, isFixed = false, visibility, className }: HeaderProps) => {
14
+ export const Header = ({ children, childrenOverlay, childrenToggleNav, isFixed = false, toggleNavVisibility, className }: HeaderProps) => {
15
15
  const [isNavOpen, setNavOpen] = useState(false);
16
16
  const onToggleNav = () => setNavOpen(!isNavOpen);
17
17
 
@@ -22,8 +22,8 @@ export const Header = ({ children, childrenOverlay, childrenToggleNav, isFixed =
22
22
 
23
23
  {children}
24
24
 
25
- {visibility !== 'hide' && (
26
- <button onClick={onToggleNav} aria-label="Toggle navigation" className={headerToggleNav({ visibility })}>
25
+ {toggleNavVisibility !== 'hide' && (
26
+ <button onClick={onToggleNav} aria-label="Toggle navigation" className={headerToggleNav({ toggleNavVisibility })}>
27
27
  {childrenToggleNav}
28
28
  </button>
29
29
  )}
@@ -86,7 +86,7 @@ export const headerToggleNav = recipe({
86
86
  },
87
87
 
88
88
  variants: {
89
- visibility: {
89
+ toggleNavVisibility: {
90
90
  show: { display: 'block' },
91
91
  hide: { display: 'none' },
92
92
  mobileOnly: {
@@ -100,7 +100,7 @@ export const headerToggleNav = recipe({
100
100
  },
101
101
  },
102
102
  defaultVariants: {
103
- visibility: 'mobileOnly',
103
+ toggleNavVisibility: 'mobileOnly',
104
104
  },
105
105
  });
106
106