@fiscozen/navbar 0.1.1 → 0.1.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": "@fiscozen/navbar",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Design System Navbar Component",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -9,7 +9,7 @@
9
9
  "peerDependencies": {
10
10
  "tailwindcss": "^3.4.1",
11
11
  "vue": "^3.4.13",
12
- "@fiscozen/button": "^0.1.7"
12
+ "@fiscozen/button": "^0.1.8"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@rushstack/eslint-patch": "^1.3.3",
@@ -27,9 +27,9 @@
27
27
  "vite": "^5.0.10",
28
28
  "vitest": "^1.2.0",
29
29
  "vue-tsc": "^1.8.25",
30
- "@fiscozen/eslint-config": "^0.1.0",
30
+ "@fiscozen/tsconfig": "^0.1.0",
31
31
  "@fiscozen/prettier-config": "^0.1.0",
32
- "@fiscozen/tsconfig": "^0.1.0"
32
+ "@fiscozen/eslint-config": "^0.1.0"
33
33
  },
34
34
  "license": "ISC",
35
35
  "scripts": {
package/src/FzNavbar.vue CHANGED
@@ -32,7 +32,7 @@ const isHorizontal = computed(() => Boolean(props.variant === 'horizontal'))
32
32
 
33
33
  <template>
34
34
  <header
35
- class="flex p-12 shadow"
35
+ class="flex p-12 shadow z-10"
36
36
  :class="{
37
37
  'justify-between': isMobile,
38
38
  'h-full w-56 flex-col': isVertical && !isMobile,
@@ -56,7 +56,7 @@ const isHorizontal = computed(() => Boolean(props.variant === 'horizontal'))
56
56
  </template>
57
57
  <template v-else>
58
58
  <FzIconButton
59
- iconName="bars"
59
+ :iconName="isMenuOpen ? 'xmark' : 'bars'"
60
60
  variant="secondary"
61
61
  tooltip="menu"
62
62
  @click="emit('fznavbar:menuButtonClick')"
package/src/types.ts CHANGED
@@ -5,6 +5,10 @@ interface FzNavbarProps {
5
5
  * The main direction of the navbar
6
6
  */
7
7
  variant: FzNavbarVariant
8
+ /**
9
+ * Whether the main navigation menu is open (mobile)
10
+ */
11
+ isMenuOpen?: boolean
8
12
  }
9
13
 
10
14
  type FzNavbarEmits = {
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './src/index'