@flamingo-stack/openframe-frontend-core 0.0.397 → 0.0.398

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 (137) hide show
  1. package/dist/{chunk-T5F54MN4.cjs → chunk-2DGA5LHT.cjs} +19 -19
  2. package/dist/{chunk-T5F54MN4.cjs.map → chunk-2DGA5LHT.cjs.map} +1 -1
  3. package/dist/{chunk-K5FRWPWF.js → chunk-2TBXIW7L.js} +3 -3
  4. package/dist/{chunk-XNAYZHPK.cjs → chunk-4BVRLCCA.cjs} +73 -73
  5. package/dist/{chunk-XNAYZHPK.cjs.map → chunk-4BVRLCCA.cjs.map} +1 -1
  6. package/dist/{chunk-WWHPTP4B.js → chunk-4KWIQEZT.js} +2 -2
  7. package/dist/{chunk-DB6CUWTL.cjs → chunk-7Q2DZEUA.cjs} +32 -32
  8. package/dist/{chunk-DB6CUWTL.cjs.map → chunk-7Q2DZEUA.cjs.map} +1 -1
  9. package/dist/{chunk-CK5UZLIN.js → chunk-B2K5COVE.js} +3305 -3189
  10. package/dist/chunk-B2K5COVE.js.map +1 -0
  11. package/dist/{chunk-OAENYOKC.cjs → chunk-C4DHYDXB.cjs} +12 -12
  12. package/dist/{chunk-OAENYOKC.cjs.map → chunk-C4DHYDXB.cjs.map} +1 -1
  13. package/dist/{chunk-HPQKX5IW.cjs → chunk-FZIMFLJG.cjs} +15 -15
  14. package/dist/{chunk-HPQKX5IW.cjs.map → chunk-FZIMFLJG.cjs.map} +1 -1
  15. package/dist/{chunk-ZFK4HHRX.js → chunk-G42EXM23.js} +2 -2
  16. package/dist/{chunk-WCDM226S.js → chunk-GKRJOS6S.js} +3 -3
  17. package/dist/{chunk-Z6PAD2UN.cjs → chunk-HMTOQGYU.cjs} +7 -7
  18. package/dist/{chunk-Z6PAD2UN.cjs.map → chunk-HMTOQGYU.cjs.map} +1 -1
  19. package/dist/{chunk-743FCO64.cjs → chunk-JWBRDNYH.cjs} +31 -31
  20. package/dist/{chunk-743FCO64.cjs.map → chunk-JWBRDNYH.cjs.map} +1 -1
  21. package/dist/{chunk-BB7TZ6KS.cjs → chunk-LBDKAMOH.cjs} +75 -75
  22. package/dist/{chunk-BB7TZ6KS.cjs.map → chunk-LBDKAMOH.cjs.map} +1 -1
  23. package/dist/{chunk-LWNPMLIH.cjs → chunk-LPH2JDOW.cjs} +56 -2
  24. package/dist/chunk-LPH2JDOW.cjs.map +1 -0
  25. package/dist/{chunk-3E4BDAHJ.js → chunk-MGJZQ3EE.js} +2 -2
  26. package/dist/{chunk-2OOZASQE.js → chunk-MNQVBME4.js} +3 -3
  27. package/dist/{chunk-VTR4QDL2.js → chunk-MQXUIYYN.js} +4 -4
  28. package/dist/{chunk-IVXOR2IA.js → chunk-N4R7TRF3.js} +2 -2
  29. package/dist/{chunk-LQHMXPOJ.js → chunk-N7YBNHVT.js} +563 -509
  30. package/dist/chunk-N7YBNHVT.js.map +1 -0
  31. package/dist/{chunk-55SNCMFS.cjs → chunk-PE37UDPF.cjs} +40 -40
  32. package/dist/{chunk-55SNCMFS.cjs.map → chunk-PE37UDPF.cjs.map} +1 -1
  33. package/dist/{chunk-J6TAK6HE.js → chunk-URODM26E.js} +6 -6
  34. package/dist/{chunk-JNU3YPLP.js → chunk-VDDNJ6XC.js} +5 -5
  35. package/dist/{chunk-ZUKBC2ZX.cjs → chunk-VVO7AZKZ.cjs} +306 -190
  36. package/dist/chunk-VVO7AZKZ.cjs.map +1 -0
  37. package/dist/{chunk-2U3YPWHG.cjs → chunk-WBLRUO3F.cjs} +3 -3
  38. package/dist/{chunk-2U3YPWHG.cjs.map → chunk-WBLRUO3F.cjs.map} +1 -1
  39. package/dist/{chunk-43C5ECNT.cjs → chunk-WJSUUOPU.cjs} +40 -40
  40. package/dist/{chunk-43C5ECNT.cjs.map → chunk-WJSUUOPU.cjs.map} +1 -1
  41. package/dist/{chunk-D4F7ZLJG.js → chunk-WXOIEYXW.js} +5 -5
  42. package/dist/{chunk-SBWTMJPQ.cjs → chunk-XYT5PIKZ.cjs} +5 -5
  43. package/dist/{chunk-SBWTMJPQ.cjs.map → chunk-XYT5PIKZ.cjs.map} +1 -1
  44. package/dist/{chunk-TTHTO5H5.js → chunk-Y3FREU4B.js} +7 -7
  45. package/dist/{chunk-M6NPDNVB.cjs → chunk-YEWGFWNM.cjs} +29 -29
  46. package/dist/{chunk-M6NPDNVB.cjs.map → chunk-YEWGFWNM.cjs.map} +1 -1
  47. package/dist/{chunk-KQESCGVG.js → chunk-ZSZRJWY3.js} +2 -2
  48. package/dist/components/case-studies/index.cjs +14 -14
  49. package/dist/components/case-studies/index.js +4 -4
  50. package/dist/components/chat/index.cjs +4 -4
  51. package/dist/components/chat/index.js +3 -3
  52. package/dist/components/contact/index.cjs +5 -5
  53. package/dist/components/contact/index.js +4 -4
  54. package/dist/components/docs/index.cjs +7 -7
  55. package/dist/components/docs/index.js +6 -6
  56. package/dist/components/embeds/index.cjs +5 -5
  57. package/dist/components/embeds/index.js +4 -4
  58. package/dist/components/faq/index.cjs +6 -6
  59. package/dist/components/faq/index.js +5 -5
  60. package/dist/components/features/index.cjs +8 -4
  61. package/dist/components/features/index.cjs.map +1 -1
  62. package/dist/components/features/index.d.ts +1 -0
  63. package/dist/components/features/index.d.ts.map +1 -1
  64. package/dist/components/features/index.js +7 -3
  65. package/dist/components/features/video-bites-strip.d.ts.map +1 -1
  66. package/dist/components/features/video-center-badge.d.ts +40 -0
  67. package/dist/components/features/video-center-badge.d.ts.map +1 -0
  68. package/dist/components/features/video.d.ts +7 -4
  69. package/dist/components/features/video.d.ts.map +1 -1
  70. package/dist/components/help-center-pages/index.cjs +23 -23
  71. package/dist/components/help-center-pages/index.js +14 -14
  72. package/dist/components/icons/index.cjs +6 -2
  73. package/dist/components/icons/index.cjs.map +1 -1
  74. package/dist/components/icons/index.d.ts +2 -0
  75. package/dist/components/icons/index.d.ts.map +1 -1
  76. package/dist/components/icons/index.js +5 -1
  77. package/dist/components/icons/play-filled-icon.d.ts +15 -0
  78. package/dist/components/icons/play-filled-icon.d.ts.map +1 -0
  79. package/dist/components/icons/volume-off-filled-icon.d.ts +14 -0
  80. package/dist/components/icons/volume-off-filled-icon.d.ts.map +1 -0
  81. package/dist/components/index.cjs +152 -142
  82. package/dist/components/index.cjs.map +1 -1
  83. package/dist/components/index.js +22 -12
  84. package/dist/components/index.js.map +1 -1
  85. package/dist/components/media-carousel.d.ts.map +1 -1
  86. package/dist/components/navigation/index.cjs +4 -4
  87. package/dist/components/navigation/index.js +3 -3
  88. package/dist/components/onboarding-guides/index.cjs +8 -8
  89. package/dist/components/onboarding-guides/index.js +7 -7
  90. package/dist/components/related-content/index.cjs +6 -6
  91. package/dist/components/related-content/index.js +5 -5
  92. package/dist/components/tickets/index.cjs +7 -7
  93. package/dist/components/tickets/index.js +6 -6
  94. package/dist/components/ui/crossfade-panels.d.ts +52 -0
  95. package/dist/components/ui/crossfade-panels.d.ts.map +1 -0
  96. package/dist/components/ui/index.cjs +6 -4
  97. package/dist/components/ui/index.cjs.map +1 -1
  98. package/dist/components/ui/index.d.ts +1 -0
  99. package/dist/components/ui/index.d.ts.map +1 -1
  100. package/dist/components/ui/index.js +5 -3
  101. package/dist/components/ui/tab-navigation.d.ts +6 -2
  102. package/dist/components/ui/tab-navigation.d.ts.map +1 -1
  103. package/dist/hooks/index.cjs +3 -3
  104. package/dist/hooks/index.js +2 -2
  105. package/dist/index.cjs +14 -4
  106. package/dist/index.cjs.map +1 -1
  107. package/dist/index.js +13 -3
  108. package/package.json +4 -4
  109. package/src/components/features/index.ts +1 -0
  110. package/src/components/features/video-bites-strip.tsx +73 -15
  111. package/src/components/features/video-center-badge.tsx +77 -0
  112. package/src/components/features/video.tsx +51 -28
  113. package/src/components/icons/index.ts +2 -0
  114. package/src/components/icons/play-filled-icon.tsx +36 -0
  115. package/src/components/icons/volume-off-filled-icon.tsx +38 -0
  116. package/src/components/media-carousel.tsx +2 -4
  117. package/src/components/ui/crossfade-panels.tsx +88 -0
  118. package/src/components/ui/index.ts +1 -0
  119. package/src/components/ui/tab-navigation.tsx +31 -14
  120. package/src/styles/app-globals.css +23 -0
  121. package/dist/chunk-CK5UZLIN.js.map +0 -1
  122. package/dist/chunk-LQHMXPOJ.js.map +0 -1
  123. package/dist/chunk-LWNPMLIH.cjs.map +0 -1
  124. package/dist/chunk-ZUKBC2ZX.cjs.map +0 -1
  125. /package/dist/{chunk-K5FRWPWF.js.map → chunk-2TBXIW7L.js.map} +0 -0
  126. /package/dist/{chunk-WWHPTP4B.js.map → chunk-4KWIQEZT.js.map} +0 -0
  127. /package/dist/{chunk-ZFK4HHRX.js.map → chunk-G42EXM23.js.map} +0 -0
  128. /package/dist/{chunk-WCDM226S.js.map → chunk-GKRJOS6S.js.map} +0 -0
  129. /package/dist/{chunk-3E4BDAHJ.js.map → chunk-MGJZQ3EE.js.map} +0 -0
  130. /package/dist/{chunk-2OOZASQE.js.map → chunk-MNQVBME4.js.map} +0 -0
  131. /package/dist/{chunk-VTR4QDL2.js.map → chunk-MQXUIYYN.js.map} +0 -0
  132. /package/dist/{chunk-IVXOR2IA.js.map → chunk-N4R7TRF3.js.map} +0 -0
  133. /package/dist/{chunk-J6TAK6HE.js.map → chunk-URODM26E.js.map} +0 -0
  134. /package/dist/{chunk-JNU3YPLP.js.map → chunk-VDDNJ6XC.js.map} +0 -0
  135. /package/dist/{chunk-D4F7ZLJG.js.map → chunk-WXOIEYXW.js.map} +0 -0
  136. /package/dist/{chunk-TTHTO5H5.js.map → chunk-Y3FREU4B.js.map} +0 -0
  137. /package/dist/{chunk-KQESCGVG.js.map → chunk-ZSZRJWY3.js.map} +0 -0
@@ -0,0 +1,88 @@
1
+ 'use client'
2
+
3
+ /**
4
+ * <CrossfadePanels> — THE keep-mounted tab-panel stack: every panel stays in
5
+ * the DOM, stacked in the SAME grid cell, and switching is an opacity
6
+ * crossfade. Use it under any tab control (TabNavigation, TabSelector, …)
7
+ * whenever panels are content surfaces where height stability and a soft
8
+ * switch matter (strips, media rails, dashboards-in-view).
9
+ *
10
+ * Invariants encoded HERE exactly once (so no consumer re-derives them):
11
+ * - HEIGHT LOCK: grid items in one cell size the row to max(panel heights) —
12
+ * switching never shifts the page (no CLS), and surrounding layout treats
13
+ * the stack as one constant-height block.
14
+ * - FADE-THEN-HIDE: `visibility` transitions alongside `opacity`; per the CSS
15
+ * transitions spec's special visibility interpolation the outgoing panel
16
+ * stays paintable until the fade completes, THEN becomes `hidden` — no
17
+ * pop-out, and the settled hidden panel is fully removed from paint.
18
+ * - DEAD WHILE HIDDEN: `inert` + `aria-hidden` + `pointer-events-none` on
19
+ * inactive panels — no tab-stops, no screen-reader content, no hover/click
20
+ * leaks from the invisible layer (WCAG aria-hidden-focus).
21
+ * - MOTION RESPECT: `prefers-reduced-motion` collapses the fade to an
22
+ * instant swap.
23
+ * - The ACTIVE panel takes `z-[1]` so the incoming layer composites on top
24
+ * during the crossfade regardless of DOM order.
25
+ *
26
+ * This deliberately complements (not replaces) <TabContent>, which MOUNTS one
27
+ * panel at a time — right for heavy admin surfaces that should unmount when
28
+ * hidden. CrossfadePanels is for surfaces whose panels are cheap enough to
29
+ * keep alive and whose switch must be seamless.
30
+ *
31
+ * NOTE for marquee/animated panel content: hidden panels stay mounted and
32
+ * their animations keep running unless the content self-pauses. CardsStrip
33
+ * panels are fine (its rAF gates on near-viewport + visibility), but a
34
+ * consumer embedding heavier always-on content should pause it via its own
35
+ * visibility signal.
36
+ */
37
+
38
+ import React from 'react'
39
+ import { cn } from '../../utils/cn'
40
+
41
+ export interface CrossfadePanel {
42
+ id: string
43
+ content: React.ReactNode
44
+ }
45
+
46
+ export interface CrossfadePanelsProps {
47
+ /** Which panel is shown. Unknown id → all panels hidden (renders the
48
+ * stack's reserved height, nothing visible). */
49
+ activeId: string | undefined
50
+ panels: ReadonlyArray<CrossfadePanel>
51
+ /** Crossfade duration in ms. Default 300. */
52
+ durationMs?: number
53
+ className?: string
54
+ /** Extra classes for every panel wrapper (e.g. `min-w-0` is built in). */
55
+ panelClassName?: string
56
+ }
57
+
58
+ export function CrossfadePanels({
59
+ activeId,
60
+ panels,
61
+ durationMs = 300,
62
+ className,
63
+ panelClassName,
64
+ }: CrossfadePanelsProps) {
65
+ if (panels.length === 0) return null
66
+ return (
67
+ <div className={cn('grid w-full', className)}>
68
+ {panels.map(p => {
69
+ const active = p.id === activeId
70
+ return (
71
+ <div
72
+ key={p.id}
73
+ className={cn(
74
+ 'col-start-1 row-start-1 min-w-0 transition-[opacity,visibility] ease-out motion-reduce:transition-none',
75
+ active ? 'visible opacity-100 z-[1]' : 'invisible opacity-0 pointer-events-none',
76
+ panelClassName,
77
+ )}
78
+ style={{ transitionDuration: `${durationMs}ms` }}
79
+ aria-hidden={!active || undefined}
80
+ inert={!active || undefined}
81
+ >
82
+ {p.content}
83
+ </div>
84
+ )
85
+ })}
86
+ </div>
87
+ )
88
+ }
@@ -47,6 +47,7 @@ export * from './breadcrumb'
47
47
  export * from './dropdown-menu'
48
48
  export * from './menubar'
49
49
  export * from './navigation-menu'
50
+ export * from './crossfade-panels'
50
51
  export * from './tab-content'
51
52
  export * from './tab-navigation'
52
53
  // Feedback components
@@ -7,7 +7,8 @@ import { cn } from '../../utils/cn'
7
7
  export interface TabItem {
8
8
  id: string
9
9
  label: string
10
- icon: React.ComponentType<React.SVGProps<SVGSVGElement>>
10
+ /** Optional — text-only tabs (e.g. the homepage content-strip switcher) omit it. */
11
+ icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>
11
12
  component?: React.ComponentType<any>
12
13
  indicator?: 'success' | 'warning' | 'error'
13
14
  }
@@ -29,6 +30,9 @@ interface TabNavigationProps {
29
30
  showRightGradient?: boolean
30
31
  /** Force the left-edge gradient to always render, independent of scroll state. */
31
32
  showLeftGradient?: boolean
33
+ /** Tabs grow to share the bar's full width equally (Figma segmented-underline
34
+ * look, e.g. the 480px homepage strip switcher). Default: natural width. */
35
+ stretchTabs?: boolean
32
36
 
33
37
  // URL sync mode
34
38
  urlSync?: boolean | TabNavigationUrlSyncOptions
@@ -46,6 +50,7 @@ export function TabNavigation({
46
50
  shadowClassName,
47
51
  showRightGradient = false,
48
52
  showLeftGradient = false,
53
+ stretchTabs = false,
49
54
  urlSync = false,
50
55
  defaultTab,
51
56
  children
@@ -222,24 +227,36 @@ export function TabNavigation({
222
227
  className={cn(
223
228
  "flex gap-[var(--spacing-system-xxs)] items-center justify-center p-[var(--spacing-system-m)] relative shrink-0 cursor-pointer",
224
229
  "transition-all duration-200 bg-transparent border-none outline-none",
230
+ stretchTabs && 'flex-1',
225
231
  isActive
226
232
  ? 'bg-gradient-to-b from-[rgba(255,255,255,0)] to-[rgba(255,255,255,0.1)]'
227
233
  : 'hover:bg-gradient-to-b hover:from-[rgba(255,255,255,0)] hover:to-[rgba(255,255,255,0.1)]'
228
234
  )}
229
235
  >
230
- <div className="relative flex items-center justify-center">
231
- <tab.icon
232
- className={cn("h-4 w-4 md:h-6 md:w-6 transition-colors", isActive ? 'text-ods-accent' : 'text-ods-text-secondary')}
233
- />
234
- {tab.indicator && (
235
- <div className={cn(
236
- "absolute right-0 top-[-3px] w-3 h-3 rounded-full border-2 border-ods-bg",
237
- tab.indicator === 'error' && 'bg-ods-error',
238
- tab.indicator === 'warning' && 'bg-ods-accent',
239
- tab.indicator === 'success' && 'bg-green-500'
240
- )} />
241
- )}
242
- </div>
236
+ {tab.icon ? (
237
+ <div className="relative flex items-center justify-center">
238
+ <tab.icon
239
+ className={cn("h-4 w-4 md:h-6 md:w-6 transition-colors", isActive ? 'text-ods-accent' : 'text-ods-text-secondary')}
240
+ />
241
+ {tab.indicator && (
242
+ <div className={cn(
243
+ "absolute right-0 top-[-3px] w-3 h-3 rounded-full border-2 border-ods-bg",
244
+ tab.indicator === 'error' && 'bg-ods-error',
245
+ tab.indicator === 'warning' && 'bg-ods-accent',
246
+ tab.indicator === 'success' && 'bg-green-500'
247
+ )} />
248
+ )}
249
+ </div>
250
+ ) : tab.indicator ? (
251
+ // Text-only tabs keep their status badge — inline dot before
252
+ // the label (there's no icon corner to anchor to).
253
+ <div className={cn(
254
+ "w-3 h-3 shrink-0 rounded-full border-2 border-ods-bg",
255
+ tab.indicator === 'error' && 'bg-ods-error',
256
+ tab.indicator === 'warning' && 'bg-ods-accent',
257
+ tab.indicator === 'success' && 'bg-green-500'
258
+ )} />
259
+ ) : null}
243
260
 
244
261
  <span className={cn(
245
262
  "text-h4 whitespace-nowrap transition-colors",
@@ -182,3 +182,26 @@ body {
182
182
  --ring: 180 100% 69%;
183
183
  --radius: 0.5rem;
184
184
  }
185
+
186
+ /* ============================================================================
187
+ Video center-control identity — ONE look across every video surface:
188
+ a bare solid-white glyph, NO background disc (see
189
+ components/features/video-center-badge.tsx for the React consumers).
190
+ This strips media-chrome's default dark circle off MuxPlayer's big
191
+ center pre-play button so full players match the strip/facade glyphs.
192
+ ========================================================================== */
193
+ /* REAL players (any mounted MuxPlayer): icons are white at rest and turn
194
+ the platform ACCENT color while the icon's control is hovered — every
195
+ media-chrome control carries the `button` part token, so this covers
196
+ center play, bar play/mute/fullscreen/etc. uniformly. */
197
+ mux-player::part(button):hover {
198
+ --media-icon-color: var(--ods-accent, var(--color-accent-primary));
199
+ }
200
+ mux-player::part(center play button) {
201
+ background: transparent;
202
+ filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
203
+ }
204
+ mux-player::part(center play button):hover {
205
+ background: transparent;
206
+ opacity: 0.85;
207
+ }