@flamingo-stack/openframe-frontend-core 0.0.493 → 0.0.494
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/dist/{chunk-WPFLV4QJ.js → chunk-4BGDD6CU.js} +4 -4
- package/dist/{chunk-LIRXKEOE.cjs → chunk-7M24CJRH.cjs} +15 -15
- package/dist/{chunk-LIRXKEOE.cjs.map → chunk-7M24CJRH.cjs.map} +1 -1
- package/dist/{chunk-5ICPQAUI.cjs → chunk-CDRNCBLS.cjs} +59 -59
- package/dist/{chunk-5ICPQAUI.cjs.map → chunk-CDRNCBLS.cjs.map} +1 -1
- package/dist/{chunk-FG5ALORQ.js → chunk-DZU3FCOQ.js} +2 -2
- package/dist/{chunk-J2J36PEN.cjs → chunk-E5AIN5SS.cjs} +31 -31
- package/dist/{chunk-J2J36PEN.cjs.map → chunk-E5AIN5SS.cjs.map} +1 -1
- package/dist/{chunk-O6S6Q52W.cjs → chunk-FFL3D5LX.cjs} +26 -26
- package/dist/{chunk-O6S6Q52W.cjs.map → chunk-FFL3D5LX.cjs.map} +1 -1
- package/dist/{chunk-VML66FJQ.cjs → chunk-FP62TQ3A.cjs} +9 -9
- package/dist/{chunk-VML66FJQ.cjs.map → chunk-FP62TQ3A.cjs.map} +1 -1
- package/dist/{chunk-QHRNQTW5.js → chunk-GANUPKHV.js} +2 -2
- package/dist/{chunk-LVDI7R7T.cjs → chunk-J6MC4SY7.cjs} +37 -37
- package/dist/{chunk-LVDI7R7T.cjs.map → chunk-J6MC4SY7.cjs.map} +1 -1
- package/dist/{chunk-U5LU56JE.js → chunk-KDPQGHQ2.js} +2 -2
- package/dist/{chunk-56J7RLMM.js → chunk-KXOSLXL2.js} +1667 -1602
- package/dist/chunk-KXOSLXL2.js.map +1 -0
- package/dist/{chunk-OFFYASUY.cjs → chunk-L5GMHETR.cjs} +26 -26
- package/dist/{chunk-OFFYASUY.cjs.map → chunk-L5GMHETR.cjs.map} +1 -1
- package/dist/{chunk-P3ITKTUE.js → chunk-OQFXEWW2.js} +2 -2
- package/dist/{chunk-2XAAFAQT.cjs → chunk-P77L6MPJ.cjs} +11 -11
- package/dist/{chunk-2XAAFAQT.cjs.map → chunk-P77L6MPJ.cjs.map} +1 -1
- package/dist/{chunk-4J3CB4KO.js → chunk-PBAFZETL.js} +2 -2
- package/dist/{chunk-PI5BMKV3.cjs → chunk-QHGGQZFK.cjs} +62 -62
- package/dist/{chunk-PI5BMKV3.cjs.map → chunk-QHGGQZFK.cjs.map} +1 -1
- package/dist/{chunk-M4SCYPCR.cjs → chunk-QRHAIJMG.cjs} +7 -7
- package/dist/{chunk-M4SCYPCR.cjs.map → chunk-QRHAIJMG.cjs.map} +1 -1
- package/dist/{chunk-4MLOMMDX.cjs → chunk-UCZHGV4E.cjs} +635 -570
- package/dist/chunk-UCZHGV4E.cjs.map +1 -0
- package/dist/{chunk-SZWMJIH3.js → chunk-VCHK2B6W.js} +2 -2
- package/dist/{chunk-5RHJVPL7.js → chunk-VUUIYBIH.js} +4 -4
- package/dist/{chunk-4AWRPTKE.js → chunk-WUM5BTDY.js} +4 -4
- package/dist/{chunk-BTIRYGDT.js → chunk-YQ4B7LCE.js} +4 -4
- package/dist/{chunk-WKWZ7LVC.js → chunk-ZP4QMJX4.js} +2 -2
- package/dist/{chunk-DY6AJNVK.cjs → chunk-ZVCODNW7.cjs} +5 -5
- package/dist/{chunk-DY6AJNVK.cjs.map → chunk-ZVCODNW7.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +132 -130
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +11 -9
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/header-button.d.ts.map +1 -1
- package/dist/components/navigation/header-global-search.d.ts.map +1 -1
- package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
- package/dist/components/navigation/header-organization-filter.d.ts.map +1 -1
- package/dist/components/navigation/header-skeleton.d.ts +6 -0
- package/dist/components/navigation/header-skeleton.d.ts.map +1 -1
- package/dist/components/navigation/header.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +4 -2
- package/dist/components/navigation/index.cjs.map +1 -1
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +3 -1
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation.d.ts +55 -0
- package/dist/components/navigation/top-navigation.d.ts.map +1 -0
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/src/components/features/time-tracker/time-tracker-header-button.tsx +42 -38
- package/src/components/navigation/app-header.tsx +190 -198
- package/src/components/navigation/header-button.tsx +3 -1
- package/src/components/navigation/header-global-search.tsx +3 -1
- package/src/components/navigation/header-mingo-button.tsx +3 -1
- package/src/components/navigation/header-organization-filter.tsx +2 -1
- package/src/components/navigation/header-skeleton.tsx +57 -54
- package/src/components/navigation/header.tsx +231 -208
- package/src/components/navigation/index.ts +3 -0
- package/src/components/navigation/mingo-ai-button.tsx +24 -19
- package/src/components/navigation/mobile-nav-panel.tsx +6 -3
- package/src/components/navigation/top-navigation.tsx +128 -0
- package/src/stories/AppHeader.stories.tsx +148 -0
- package/src/stories/Header.stories.tsx +18 -23
- package/src/stories/TopNavigation.stories.tsx +150 -0
- package/dist/chunk-4MLOMMDX.cjs.map +0 -1
- package/dist/chunk-56J7RLMM.js.map +0 -1
- /package/dist/{chunk-WPFLV4QJ.js.map → chunk-4BGDD6CU.js.map} +0 -0
- /package/dist/{chunk-FG5ALORQ.js.map → chunk-DZU3FCOQ.js.map} +0 -0
- /package/dist/{chunk-QHRNQTW5.js.map → chunk-GANUPKHV.js.map} +0 -0
- /package/dist/{chunk-U5LU56JE.js.map → chunk-KDPQGHQ2.js.map} +0 -0
- /package/dist/{chunk-P3ITKTUE.js.map → chunk-OQFXEWW2.js.map} +0 -0
- /package/dist/{chunk-4J3CB4KO.js.map → chunk-PBAFZETL.js.map} +0 -0
- /package/dist/{chunk-SZWMJIH3.js.map → chunk-VCHK2B6W.js.map} +0 -0
- /package/dist/{chunk-5RHJVPL7.js.map → chunk-VUUIYBIH.js.map} +0 -0
- /package/dist/{chunk-4AWRPTKE.js.map → chunk-WUM5BTDY.js.map} +0 -0
- /package/dist/{chunk-BTIRYGDT.js.map → chunk-YQ4B7LCE.js.map} +0 -0
- /package/dist/{chunk-WKWZ7LVC.js.map → chunk-ZP4QMJX4.js.map} +0 -0
|
@@ -1,71 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HeaderConfig } from '../../types/navigation';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
3
|
|
|
4
4
|
export interface HeaderSkeletonProps {
|
|
5
|
-
config?: HeaderConfig
|
|
5
|
+
config?: HeaderConfig;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Loading skeleton mirroring the unified ODS top-navigation geometry
|
|
10
|
+
* (`TopNavigation`, Figma 2797-5978): 48px mobile / 56px md+, cell model.
|
|
11
|
+
* Keep in sync with `header.tsx` — a diverging skeleton makes the
|
|
12
|
+
* skeleton→live handoff jump.
|
|
13
|
+
*/
|
|
8
14
|
export function HeaderSkeleton({ config }: HeaderSkeletonProps) {
|
|
9
|
-
const showNavigation = config?.navigation && config.navigation.items.length > 0
|
|
10
|
-
const showActions = config?.actions?.right && config.actions.right.length > 0
|
|
11
|
-
const showMobileMenu = config?.mobile?.enabled
|
|
12
|
-
const
|
|
13
|
-
|
|
15
|
+
const showNavigation = config?.navigation && config.navigation.items.length > 0;
|
|
16
|
+
const showActions = config?.actions?.right && config.actions.right.length > 0;
|
|
17
|
+
const showMobileMenu = config?.mobile?.enabled;
|
|
18
|
+
const showLeftActions = !!config?.actions?.left;
|
|
19
|
+
|
|
14
20
|
return (
|
|
15
|
-
<div className="sticky top-0 z-
|
|
16
|
-
<header
|
|
21
|
+
<div className="sticky top-0 z-[50] w-full">
|
|
22
|
+
<header
|
|
17
23
|
className={cn(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"transition-opacity duration-300 ease-in-out",
|
|
22
|
-
config?.className
|
|
24
|
+
'flex h-12 w-full items-center border-b border-t border-ods-border md:h-14 md:border-t-0',
|
|
25
|
+
config?.backgroundColor || 'bg-ods-card',
|
|
26
|
+
config?.className,
|
|
23
27
|
)}
|
|
24
28
|
>
|
|
25
|
-
{/*
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<div className="
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<div className="h-8 w-8 bg-ods-border rounded animate-pulse" />
|
|
35
|
-
<div className="h-6 w-24 bg-ods-border rounded animate-pulse" />
|
|
29
|
+
{/* Leading cells: admin toggle / burger */}
|
|
30
|
+
{showLeftActions && (
|
|
31
|
+
<div className="flex h-full w-12 items-center justify-center border-r border-ods-border md:w-14">
|
|
32
|
+
<div className="h-6 w-6 animate-pulse rounded bg-ods-border" />
|
|
33
|
+
</div>
|
|
34
|
+
)}
|
|
35
|
+
{showMobileMenu && (
|
|
36
|
+
<div className="flex h-full w-12 items-center justify-center border-r border-ods-border md:w-14 lg:hidden">
|
|
37
|
+
<div className="h-4 w-4 animate-pulse rounded bg-ods-border md:h-6 md:w-6" />
|
|
36
38
|
</div>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
{/* Center: Navigation */}
|
|
40
|
-
{showNavigation && (
|
|
41
|
-
<nav className={cn(
|
|
42
|
-
"hidden md:flex items-center gap-2",
|
|
43
|
-
config?.navigation?.position === 'center' && "absolute left-1/2 transform -translate-x-1/2",
|
|
44
|
-
config?.navigation?.position === 'right' && "ml-auto mr-4"
|
|
45
|
-
)}>
|
|
46
|
-
{/* Navigation skeleton items */}
|
|
47
|
-
<div className="h-10 w-20 bg-ods-border rounded animate-pulse" />
|
|
48
|
-
<div className="h-10 w-28 bg-ods-border rounded animate-pulse" />
|
|
49
|
-
<div className="h-10 w-24 bg-ods-border rounded animate-pulse" />
|
|
50
|
-
</nav>
|
|
51
39
|
)}
|
|
52
40
|
|
|
53
|
-
{/*
|
|
54
|
-
<div className="flex items-center
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
{/* Profile/Sign Up button skeleton */}
|
|
59
|
-
<div className="h-10 w-24 bg-ods-border rounded animate-pulse" />
|
|
60
|
-
</div>
|
|
61
|
-
)}
|
|
41
|
+
{/* Logo zone */}
|
|
42
|
+
<div className="flex h-full flex-1 items-center gap-2 p-[var(--spacing-system-m)] md:pl-[var(--spacing-system-l)] lg:flex-none lg:pl-[var(--spacing-system-xxl)]">
|
|
43
|
+
<div className="h-6 w-6 animate-pulse rounded bg-ods-border" />
|
|
44
|
+
<div className="h-5 w-24 animate-pulse rounded bg-ods-border" />
|
|
45
|
+
</div>
|
|
62
46
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
47
|
+
{/* Center: navigation links (desktop only) */}
|
|
48
|
+
<div className="hidden h-full min-w-0 flex-1 items-center justify-center gap-2 lg:flex">
|
|
49
|
+
{showNavigation && (
|
|
50
|
+
<>
|
|
51
|
+
<div className="h-8 w-20 animate-pulse rounded bg-ods-border" />
|
|
52
|
+
<div className="h-8 w-28 animate-pulse rounded bg-ods-border" />
|
|
53
|
+
<div className="h-8 w-24 animate-pulse rounded bg-ods-border" />
|
|
54
|
+
</>
|
|
66
55
|
)}
|
|
67
56
|
</div>
|
|
57
|
+
|
|
58
|
+
{/* CTA zone */}
|
|
59
|
+
{showActions && (
|
|
60
|
+
<div className="hidden h-full items-center px-[var(--spacing-system-m)] lg:flex">
|
|
61
|
+
<div className="h-8 w-24 animate-pulse rounded bg-ods-border" />
|
|
62
|
+
</div>
|
|
63
|
+
)}
|
|
64
|
+
|
|
65
|
+
{/* Mingo cell */}
|
|
66
|
+
{config?.mingo?.enabled && (
|
|
67
|
+
<div className="flex h-full items-center border-l border-ods-border px-[var(--spacing-system-l)]">
|
|
68
|
+
<div className="h-8 w-8 animate-pulse rounded bg-ods-border md:w-28" />
|
|
69
|
+
</div>
|
|
70
|
+
)}
|
|
68
71
|
</header>
|
|
69
72
|
</div>
|
|
70
|
-
)
|
|
71
|
-
}
|
|
73
|
+
);
|
|
74
|
+
}
|