@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.
Files changed (115) hide show
  1. package/dist/{chunk-WPFLV4QJ.js → chunk-4BGDD6CU.js} +4 -4
  2. package/dist/{chunk-LIRXKEOE.cjs → chunk-7M24CJRH.cjs} +15 -15
  3. package/dist/{chunk-LIRXKEOE.cjs.map → chunk-7M24CJRH.cjs.map} +1 -1
  4. package/dist/{chunk-5ICPQAUI.cjs → chunk-CDRNCBLS.cjs} +59 -59
  5. package/dist/{chunk-5ICPQAUI.cjs.map → chunk-CDRNCBLS.cjs.map} +1 -1
  6. package/dist/{chunk-FG5ALORQ.js → chunk-DZU3FCOQ.js} +2 -2
  7. package/dist/{chunk-J2J36PEN.cjs → chunk-E5AIN5SS.cjs} +31 -31
  8. package/dist/{chunk-J2J36PEN.cjs.map → chunk-E5AIN5SS.cjs.map} +1 -1
  9. package/dist/{chunk-O6S6Q52W.cjs → chunk-FFL3D5LX.cjs} +26 -26
  10. package/dist/{chunk-O6S6Q52W.cjs.map → chunk-FFL3D5LX.cjs.map} +1 -1
  11. package/dist/{chunk-VML66FJQ.cjs → chunk-FP62TQ3A.cjs} +9 -9
  12. package/dist/{chunk-VML66FJQ.cjs.map → chunk-FP62TQ3A.cjs.map} +1 -1
  13. package/dist/{chunk-QHRNQTW5.js → chunk-GANUPKHV.js} +2 -2
  14. package/dist/{chunk-LVDI7R7T.cjs → chunk-J6MC4SY7.cjs} +37 -37
  15. package/dist/{chunk-LVDI7R7T.cjs.map → chunk-J6MC4SY7.cjs.map} +1 -1
  16. package/dist/{chunk-U5LU56JE.js → chunk-KDPQGHQ2.js} +2 -2
  17. package/dist/{chunk-56J7RLMM.js → chunk-KXOSLXL2.js} +1667 -1602
  18. package/dist/chunk-KXOSLXL2.js.map +1 -0
  19. package/dist/{chunk-OFFYASUY.cjs → chunk-L5GMHETR.cjs} +26 -26
  20. package/dist/{chunk-OFFYASUY.cjs.map → chunk-L5GMHETR.cjs.map} +1 -1
  21. package/dist/{chunk-P3ITKTUE.js → chunk-OQFXEWW2.js} +2 -2
  22. package/dist/{chunk-2XAAFAQT.cjs → chunk-P77L6MPJ.cjs} +11 -11
  23. package/dist/{chunk-2XAAFAQT.cjs.map → chunk-P77L6MPJ.cjs.map} +1 -1
  24. package/dist/{chunk-4J3CB4KO.js → chunk-PBAFZETL.js} +2 -2
  25. package/dist/{chunk-PI5BMKV3.cjs → chunk-QHGGQZFK.cjs} +62 -62
  26. package/dist/{chunk-PI5BMKV3.cjs.map → chunk-QHGGQZFK.cjs.map} +1 -1
  27. package/dist/{chunk-M4SCYPCR.cjs → chunk-QRHAIJMG.cjs} +7 -7
  28. package/dist/{chunk-M4SCYPCR.cjs.map → chunk-QRHAIJMG.cjs.map} +1 -1
  29. package/dist/{chunk-4MLOMMDX.cjs → chunk-UCZHGV4E.cjs} +635 -570
  30. package/dist/chunk-UCZHGV4E.cjs.map +1 -0
  31. package/dist/{chunk-SZWMJIH3.js → chunk-VCHK2B6W.js} +2 -2
  32. package/dist/{chunk-5RHJVPL7.js → chunk-VUUIYBIH.js} +4 -4
  33. package/dist/{chunk-4AWRPTKE.js → chunk-WUM5BTDY.js} +4 -4
  34. package/dist/{chunk-BTIRYGDT.js → chunk-YQ4B7LCE.js} +4 -4
  35. package/dist/{chunk-WKWZ7LVC.js → chunk-ZP4QMJX4.js} +2 -2
  36. package/dist/{chunk-DY6AJNVK.cjs → chunk-ZVCODNW7.cjs} +5 -5
  37. package/dist/{chunk-DY6AJNVK.cjs.map → chunk-ZVCODNW7.cjs.map} +1 -1
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/index.cjs +2 -2
  41. package/dist/components/chat/index.js +1 -1
  42. package/dist/components/contact/index.cjs +3 -3
  43. package/dist/components/contact/index.js +2 -2
  44. package/dist/components/docs/index.cjs +5 -5
  45. package/dist/components/docs/index.js +4 -4
  46. package/dist/components/embeds/index.cjs +3 -3
  47. package/dist/components/embeds/index.js +2 -2
  48. package/dist/components/faq/index.cjs +3 -3
  49. package/dist/components/faq/index.js +2 -2
  50. package/dist/components/features/index.cjs +2 -2
  51. package/dist/components/features/index.js +1 -1
  52. package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
  53. package/dist/components/help-center-pages/index.cjs +20 -20
  54. package/dist/components/help-center-pages/index.js +11 -11
  55. package/dist/components/index.cjs +132 -130
  56. package/dist/components/index.cjs.map +1 -1
  57. package/dist/components/index.js +11 -9
  58. package/dist/components/index.js.map +1 -1
  59. package/dist/components/navigation/app-header.d.ts.map +1 -1
  60. package/dist/components/navigation/header-button.d.ts.map +1 -1
  61. package/dist/components/navigation/header-global-search.d.ts.map +1 -1
  62. package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
  63. package/dist/components/navigation/header-organization-filter.d.ts.map +1 -1
  64. package/dist/components/navigation/header-skeleton.d.ts +6 -0
  65. package/dist/components/navigation/header-skeleton.d.ts.map +1 -1
  66. package/dist/components/navigation/header.d.ts.map +1 -1
  67. package/dist/components/navigation/index.cjs +4 -2
  68. package/dist/components/navigation/index.cjs.map +1 -1
  69. package/dist/components/navigation/index.d.ts +2 -0
  70. package/dist/components/navigation/index.d.ts.map +1 -1
  71. package/dist/components/navigation/index.js +3 -1
  72. package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
  73. package/dist/components/navigation/mobile-nav-panel.d.ts.map +1 -1
  74. package/dist/components/navigation/top-navigation.d.ts +55 -0
  75. package/dist/components/navigation/top-navigation.d.ts.map +1 -0
  76. package/dist/components/onboarding-guides/index.cjs +5 -5
  77. package/dist/components/onboarding-guides/index.js +4 -4
  78. package/dist/components/related-content/index.cjs +3 -3
  79. package/dist/components/related-content/index.js +2 -2
  80. package/dist/components/tickets/index.cjs +5 -5
  81. package/dist/components/tickets/index.js +4 -4
  82. package/dist/components/ui/index.cjs +2 -2
  83. package/dist/components/ui/index.js +1 -1
  84. package/dist/index.cjs +4 -2
  85. package/dist/index.cjs.map +1 -1
  86. package/dist/index.js +3 -1
  87. package/package.json +1 -1
  88. package/src/components/features/time-tracker/time-tracker-header-button.tsx +42 -38
  89. package/src/components/navigation/app-header.tsx +190 -198
  90. package/src/components/navigation/header-button.tsx +3 -1
  91. package/src/components/navigation/header-global-search.tsx +3 -1
  92. package/src/components/navigation/header-mingo-button.tsx +3 -1
  93. package/src/components/navigation/header-organization-filter.tsx +2 -1
  94. package/src/components/navigation/header-skeleton.tsx +57 -54
  95. package/src/components/navigation/header.tsx +231 -208
  96. package/src/components/navigation/index.ts +3 -0
  97. package/src/components/navigation/mingo-ai-button.tsx +24 -19
  98. package/src/components/navigation/mobile-nav-panel.tsx +6 -3
  99. package/src/components/navigation/top-navigation.tsx +128 -0
  100. package/src/stories/AppHeader.stories.tsx +148 -0
  101. package/src/stories/Header.stories.tsx +18 -23
  102. package/src/stories/TopNavigation.stories.tsx +150 -0
  103. package/dist/chunk-4MLOMMDX.cjs.map +0 -1
  104. package/dist/chunk-56J7RLMM.js.map +0 -1
  105. /package/dist/{chunk-WPFLV4QJ.js.map → chunk-4BGDD6CU.js.map} +0 -0
  106. /package/dist/{chunk-FG5ALORQ.js.map → chunk-DZU3FCOQ.js.map} +0 -0
  107. /package/dist/{chunk-QHRNQTW5.js.map → chunk-GANUPKHV.js.map} +0 -0
  108. /package/dist/{chunk-U5LU56JE.js.map → chunk-KDPQGHQ2.js.map} +0 -0
  109. /package/dist/{chunk-P3ITKTUE.js.map → chunk-OQFXEWW2.js.map} +0 -0
  110. /package/dist/{chunk-4J3CB4KO.js.map → chunk-PBAFZETL.js.map} +0 -0
  111. /package/dist/{chunk-SZWMJIH3.js.map → chunk-VCHK2B6W.js.map} +0 -0
  112. /package/dist/{chunk-5RHJVPL7.js.map → chunk-VUUIYBIH.js.map} +0 -0
  113. /package/dist/{chunk-4AWRPTKE.js.map → chunk-WUM5BTDY.js.map} +0 -0
  114. /package/dist/{chunk-BTIRYGDT.js.map → chunk-YQ4B7LCE.js.map} +0 -0
  115. /package/dist/{chunk-WKWZ7LVC.js.map → chunk-ZP4QMJX4.js.map} +0 -0
@@ -1,71 +1,74 @@
1
- import { cn } from '../../utils'
2
- import { HeaderConfig } from '../../types/navigation'
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 isAdminHeader = config?.className?.includes('admin')
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-40 w-full">
16
- <header
21
+ <div className="sticky top-0 z-[50] w-full">
22
+ <header
17
23
  className={cn(
18
- "w-full flex items-center justify-between",
19
- "bg-ods-card border-b border-ods-border backdrop-blur-sm",
20
- "px-6 py-3",
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
- {/* Left: Logo */}
26
- <div className="flex items-center justify-start flex-shrink-0">
27
- {isAdminHeader && config?.actions?.left && (
28
- <div className="mr-4">
29
- <div className="h-10 w-10 bg-ods-border rounded animate-pulse" />
30
- </div>
31
- )}
32
-
33
- <div className="flex items-center gap-2">
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
- {/* Right: Actions */}
54
- <div className="flex items-center justify-end gap-4 flex-shrink-0">
55
- {/* Desktop Actions */}
56
- {showActions && (
57
- <div className="hidden md:flex items-center gap-4">
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
- {/* Mobile Menu Toggle */}
64
- {showMobileMenu && (
65
- <div className="md:hidden h-10 w-10 bg-ods-border rounded animate-pulse" />
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
+ }