@greatapps/common 1.1.112 → 1.1.114

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": "@greatapps/common",
3
- "version": "1.1.112",
3
+ "version": "1.1.114",
4
4
  "description": "Shared library for GreatApps frontend applications",
5
5
  "main": "./dist/index.mjs",
6
6
  "types": "./src/index.ts",
@@ -1,15 +1,15 @@
1
- 'use client';
1
+ "use client";
2
2
 
3
- import { ReactNode } from 'react';
4
- import Image from 'next/image';
5
- import { ProfilePopover } from './ProfilePopover';
6
- import { useAccountModals } from '../../store/useAccountModals';
7
- import type { ProfileMenuItem } from './ProfilePopover';
8
- import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/overlay/Tooltip';
3
+ import { ReactNode } from "react";
4
+ import Image from "next/image";
5
+ import { ProfilePopover } from "./ProfilePopover";
6
+ import { useAccountModals } from "../../store/useAccountModals";
7
+ import type { ProfileMenuItem } from "./ProfilePopover";
8
+ import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/overlay/Tooltip";
9
9
 
10
10
  export interface AppMobileNavBarProps {
11
11
  /** Which app is currently active — controls which icon gets the indicator */
12
- activeApp?: 'gapps' | 'gpages';
12
+ activeApp?: "gapps" | "gpages";
13
13
  /** Called when the GreatApps logo is clicked */
14
14
  onLogoClick?: () => void;
15
15
  /** Called when the app icon (e.g. GreatPages) is clicked */
@@ -33,8 +33,8 @@ export function AppMobileNavBar({
33
33
  }: AppMobileNavBarProps) {
34
34
  const { openConfigurations } = useAccountModals();
35
35
 
36
- const isGpagesActive = activeApp === 'gpages';
37
- const isGappsActive = activeApp === 'gapps';
36
+ const isGpagesActive = activeApp === "gpages";
37
+ const isGappsActive = activeApp === "gapps";
38
38
 
39
39
  return (
40
40
  <div className="fixed top-0 left-0 right-0 flex md:hidden items-center justify-between p-4 bg-white z-50 border-b border-gray-200">
@@ -42,10 +42,15 @@ export function AppMobileNavBar({
42
42
  <Tooltip>
43
43
  <TooltipTrigger asChild>
44
44
  <div
45
- className={`relative size-10 flex items-center justify-center rounded-lg transition-colors ${onLogoClick ? 'cursor-pointer hover:bg-gray-100' : ''}`}
45
+ className={`relative size-10 flex items-center justify-center rounded-lg transition-colors ${onLogoClick ? "cursor-pointer hover:bg-gray-100" : ""}`}
46
46
  onClick={onLogoClick}
47
47
  >
48
- <Image src="/icons/great-icon.svg" alt="GreatApps" width={28} height={28} />
48
+ <Image
49
+ src="/icons/great-icon.svg"
50
+ alt="GreatApps"
51
+ width={28}
52
+ height={28}
53
+ />
49
54
  {isGappsActive && (
50
55
  <div className="absolute bottom-[-17px] left-1/2 -translate-x-1/2 w-5 h-[3px] bg-gray-950 rounded-t-xl" />
51
56
  )}
@@ -60,27 +65,39 @@ export function AppMobileNavBar({
60
65
  <div
61
66
  className="size-10 rounded-xl cursor-pointer p-[2px]"
62
67
  style={{
63
- border: '1.5px solid rgba(153,234,255,0.75)',
64
- background: 'white',
65
- boxShadow: '0 0 8px rgba(153,234,255,0.5), 0 0 18px rgba(153,234,255,0.2)',
68
+ border: "1.5px solid rgba(153,234,255,0.75)",
69
+ background: "white",
70
+ boxShadow:
71
+ "0 0 8px rgba(153,234,255,0.5), 0 0 18px rgba(153,234,255,0.2)",
66
72
  }}
67
73
  onClick={onAppIconClick}
68
74
  >
69
75
  <div
70
76
  className="w-full h-full rounded-lg flex items-center justify-center"
71
77
  style={{
72
- background: 'radial-gradient(circle at center, rgba(255,255,255,0.95) 0%, rgba(153,234,255,0.45) 100%)',
78
+ background:
79
+ "radial-gradient(circle at center, rgba(255,255,255,0.95) 0%, rgba(153,234,255,0.45) 100%)",
73
80
  }}
74
81
  >
75
- <Image src="/icons/icon-navbar.svg" alt="GreatPages" width={24} height={24} />
82
+ <Image
83
+ src="/icons/icon-navbar.svg"
84
+ alt="GreatPages"
85
+ width={24}
86
+ height={24}
87
+ />
76
88
  </div>
77
89
  </div>
78
90
  ) : (
79
91
  <div
80
- className={`size-10 flex items-center justify-center rounded-lg transition-colors duration-300 bg-pages-50 ${onAppIconClick ? 'cursor-pointer hover:opacity-80' : ''}`}
92
+ className={`size-10 flex items-center justify-center rounded-lg transition-colors duration-300 bg-pages-50 ${onAppIconClick ? "cursor-pointer hover:opacity-80" : ""}`}
81
93
  onClick={onAppIconClick}
82
94
  >
83
- <Image src="/icons/icon-navbar.svg" alt="GreatPages" width={24} height={24} />
95
+ <Image
96
+ src="/icons/icon-navbar.svg"
97
+ alt="GreatPages"
98
+ width={24}
99
+ height={24}
100
+ />
84
101
  </div>
85
102
  )}
86
103
  </TooltipTrigger>