@flamingo-stack/openframe-frontend-core 0.0.396 → 0.0.397-snapshot.20260710044003
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-HWJUWOXK.cjs → chunk-2DGA5LHT.cjs} +19 -19
- package/dist/{chunk-HWJUWOXK.cjs.map → chunk-2DGA5LHT.cjs.map} +1 -1
- package/dist/{chunk-J2UHW4UM.js → chunk-2TBXIW7L.js} +3 -3
- package/dist/{chunk-HNXZFKDQ.cjs → chunk-4BVRLCCA.cjs} +73 -73
- package/dist/{chunk-HNXZFKDQ.cjs.map → chunk-4BVRLCCA.cjs.map} +1 -1
- package/dist/{chunk-WWHPTP4B.js → chunk-4KWIQEZT.js} +2 -2
- package/dist/{chunk-6DGQPKVA.cjs → chunk-7Q2DZEUA.cjs} +32 -32
- package/dist/{chunk-6DGQPKVA.cjs.map → chunk-7Q2DZEUA.cjs.map} +1 -1
- package/dist/{chunk-SV7IJPIH.js → chunk-B2K5COVE.js} +5458 -5029
- package/dist/chunk-B2K5COVE.js.map +1 -0
- package/dist/{chunk-AODSKL5I.cjs → chunk-C4DHYDXB.cjs} +12 -12
- package/dist/{chunk-AODSKL5I.cjs.map → chunk-C4DHYDXB.cjs.map} +1 -1
- package/dist/{chunk-HEH47UTC.cjs → chunk-FZIMFLJG.cjs} +15 -15
- package/dist/{chunk-HEH47UTC.cjs.map → chunk-FZIMFLJG.cjs.map} +1 -1
- package/dist/{chunk-PQXUY6SB.js → chunk-G42EXM23.js} +2 -2
- package/dist/{chunk-TIC3UE6L.js → chunk-GKRJOS6S.js} +3 -3
- package/dist/{chunk-NAFW3LKI.cjs → chunk-HMTOQGYU.cjs} +7 -7
- package/dist/{chunk-NAFW3LKI.cjs.map → chunk-HMTOQGYU.cjs.map} +1 -1
- package/dist/{chunk-743FCO64.cjs → chunk-JWBRDNYH.cjs} +31 -31
- package/dist/{chunk-743FCO64.cjs.map → chunk-JWBRDNYH.cjs.map} +1 -1
- package/dist/{chunk-VSPNWVIE.cjs → chunk-LBDKAMOH.cjs} +75 -75
- package/dist/{chunk-VSPNWVIE.cjs.map → chunk-LBDKAMOH.cjs.map} +1 -1
- package/dist/{chunk-LWNPMLIH.cjs → chunk-LPH2JDOW.cjs} +56 -2
- package/dist/chunk-LPH2JDOW.cjs.map +1 -0
- package/dist/{chunk-OP3H7VB2.js → chunk-MGJZQ3EE.js} +2 -2
- package/dist/{chunk-GA3R77TB.js → chunk-MNQVBME4.js} +3 -3
- package/dist/{chunk-H4WIS6RJ.js → chunk-MQXUIYYN.js} +4 -4
- package/dist/{chunk-2PTEK3D6.js → chunk-N4R7TRF3.js} +2 -2
- package/dist/{chunk-LQHMXPOJ.js → chunk-N7YBNHVT.js} +563 -509
- package/dist/chunk-N7YBNHVT.js.map +1 -0
- package/dist/{chunk-KRMGVMIO.cjs → chunk-PE37UDPF.cjs} +40 -40
- package/dist/{chunk-KRMGVMIO.cjs.map → chunk-PE37UDPF.cjs.map} +1 -1
- package/dist/{chunk-FAUC7EA3.js → chunk-URODM26E.js} +6 -6
- package/dist/{chunk-EKYE2VJU.js → chunk-VDDNJ6XC.js} +5 -5
- package/dist/{chunk-Y36KVLBX.cjs → chunk-VVO7AZKZ.cjs} +1413 -984
- package/dist/chunk-VVO7AZKZ.cjs.map +1 -0
- package/dist/{chunk-2U3YPWHG.cjs → chunk-WBLRUO3F.cjs} +3 -3
- package/dist/{chunk-2U3YPWHG.cjs.map → chunk-WBLRUO3F.cjs.map} +1 -1
- package/dist/{chunk-RUYZ5QMK.cjs → chunk-WJSUUOPU.cjs} +40 -40
- package/dist/{chunk-RUYZ5QMK.cjs.map → chunk-WJSUUOPU.cjs.map} +1 -1
- package/dist/{chunk-STEM5CPV.js → chunk-WXOIEYXW.js} +5 -5
- package/dist/{chunk-XQILJ7FF.cjs → chunk-XYT5PIKZ.cjs} +5 -5
- package/dist/{chunk-XQILJ7FF.cjs.map → chunk-XYT5PIKZ.cjs.map} +1 -1
- package/dist/{chunk-NFRHBR7W.js → chunk-Y3FREU4B.js} +7 -7
- package/dist/{chunk-CCV6Z3CL.cjs → chunk-YEWGFWNM.cjs} +29 -29
- package/dist/{chunk-CCV6Z3CL.cjs.map → chunk-YEWGFWNM.cjs.map} +1 -1
- package/dist/{chunk-KQESCGVG.js → chunk-ZSZRJWY3.js} +2 -2
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/entity-cards/blog-card.d.ts +6 -3
- package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts +7 -3
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/customer-interview-card.d.ts +6 -3
- package/dist/components/chat/entity-cards/customer-interview-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts +59 -0
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/index.d.ts +3 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.d.ts +6 -3
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts +4 -2
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.d.ts +17 -5
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-cover-image-fallback.d.ts +26 -0
- package/dist/components/chat/entity-cards/use-cover-image-fallback.d.ts.map +1 -0
- package/dist/components/chat/index.cjs +12 -4
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +11 -3
- package/dist/components/chat/types/entities/program-types.d.ts +23 -0
- package/dist/components/chat/types/entities/program-types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/index.cjs +8 -4
- package/dist/components/features/index.cjs.map +1 -1
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +7 -3
- package/dist/components/features/video-bites-strip.d.ts.map +1 -1
- package/dist/components/features/video-center-badge.d.ts +40 -0
- package/dist/components/features/video-center-badge.d.ts.map +1 -0
- package/dist/components/features/video.d.ts +7 -4
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +23 -23
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/icons/index.cjs +6 -2
- package/dist/components/icons/index.cjs.map +1 -1
- package/dist/components/icons/index.d.ts +2 -0
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/icons/index.js +5 -1
- package/dist/components/icons/play-filled-icon.d.ts +15 -0
- package/dist/components/icons/play-filled-icon.d.ts.map +1 -0
- package/dist/components/icons/volume-off-filled-icon.d.ts +14 -0
- package/dist/components/icons/volume-off-filled-icon.d.ts.map +1 -0
- package/dist/components/index.cjs +160 -142
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +30 -12
- package/dist/components/index.js.map +1 -1
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +4 -4
- package/dist/components/navigation/index.js +3 -3
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/crossfade-panels.d.ts +52 -0
- package/dist/components/ui/crossfade-panels.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +14 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +13 -3
- package/dist/components/ui/tab-navigation.d.ts +6 -2
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +22 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -3
- package/package.json +4 -4
- package/src/components/chat/entity-cards/blog-card.tsx +40 -7
- package/src/components/chat/entity-cards/case-study-card.tsx +32 -6
- package/src/components/chat/entity-cards/customer-interview-card.tsx +31 -6
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +201 -0
- package/src/components/chat/entity-cards/index.ts +18 -0
- package/src/components/chat/entity-cards/investor-update-card.tsx +28 -2
- package/src/components/chat/entity-cards/onboarding-guide-card.tsx +30 -1
- package/src/components/chat/entity-cards/program-card.tsx +69 -17
- package/src/components/chat/entity-cards/use-cover-image-fallback.ts +50 -0
- package/src/components/chat/types/entities/program-types.ts +34 -0
- package/src/components/features/cards-strip.tsx +122 -8
- package/src/components/features/index.ts +1 -0
- package/src/components/features/video-bites-strip.tsx +77 -15
- package/src/components/features/video-center-badge.tsx +77 -0
- package/src/components/features/video.tsx +51 -28
- package/src/components/icons/index.ts +2 -0
- package/src/components/icons/play-filled-icon.tsx +36 -0
- package/src/components/icons/volume-off-filled-icon.tsx +38 -0
- package/src/components/media-carousel.tsx +2 -4
- package/src/components/ui/crossfade-panels.tsx +88 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/tab-navigation.tsx +31 -14
- package/src/styles/app-globals.css +23 -0
- package/dist/chunk-LQHMXPOJ.js.map +0 -1
- package/dist/chunk-LWNPMLIH.cjs.map +0 -1
- package/dist/chunk-SV7IJPIH.js.map +0 -1
- package/dist/chunk-Y36KVLBX.cjs.map +0 -1
- /package/dist/{chunk-J2UHW4UM.js.map → chunk-2TBXIW7L.js.map} +0 -0
- /package/dist/{chunk-WWHPTP4B.js.map → chunk-4KWIQEZT.js.map} +0 -0
- /package/dist/{chunk-PQXUY6SB.js.map → chunk-G42EXM23.js.map} +0 -0
- /package/dist/{chunk-TIC3UE6L.js.map → chunk-GKRJOS6S.js.map} +0 -0
- /package/dist/{chunk-OP3H7VB2.js.map → chunk-MGJZQ3EE.js.map} +0 -0
- /package/dist/{chunk-GA3R77TB.js.map → chunk-MNQVBME4.js.map} +0 -0
- /package/dist/{chunk-H4WIS6RJ.js.map → chunk-MQXUIYYN.js.map} +0 -0
- /package/dist/{chunk-2PTEK3D6.js.map → chunk-N4R7TRF3.js.map} +0 -0
- /package/dist/{chunk-FAUC7EA3.js.map → chunk-URODM26E.js.map} +0 -0
- /package/dist/{chunk-EKYE2VJU.js.map → chunk-VDDNJ6XC.js.map} +0 -0
- /package/dist/{chunk-STEM5CPV.js.map → chunk-WXOIEYXW.js.map} +0 -0
- /package/dist/{chunk-NFRHBR7W.js.map → chunk-Y3FREU4B.js.map} +0 -0
- /package/dist/{chunk-KQESCGVG.js.map → chunk-ZSZRJWY3.js.map} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
|
|
3
|
+
export interface VolumeOffFilledIconProps
|
|
4
|
+
extends Omit<SVGProps<SVGSVGElement>, "width" | "height"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Solid muted-volume glyph (speaker + slash) — the filled companion to
|
|
12
|
+
* `PlayFilledIcon`, matching media-chrome's icon family so video unmute
|
|
13
|
+
* affordances read identically to real player chrome. Hand-maintained (the
|
|
14
|
+
* Figma-generated set has only outline volume icons).
|
|
15
|
+
*/
|
|
16
|
+
export function VolumeOffFilledIcon({
|
|
17
|
+
className = "",
|
|
18
|
+
size = 24,
|
|
19
|
+
color = "currentColor",
|
|
20
|
+
...props
|
|
21
|
+
}: VolumeOffFilledIconProps) {
|
|
22
|
+
return (
|
|
23
|
+
<svg
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
width={size}
|
|
26
|
+
height={size}
|
|
27
|
+
fill="none"
|
|
28
|
+
viewBox="0 0 24 24"
|
|
29
|
+
className={className}
|
|
30
|
+
{...props}
|
|
31
|
+
>
|
|
32
|
+
<path
|
|
33
|
+
fill={color}
|
|
34
|
+
d="M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63Zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.796 8.796 0 0 0 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"
|
|
35
|
+
/>
|
|
36
|
+
</svg>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -4,7 +4,7 @@ import { useState, useRef, useEffect, memo, useCallback } from 'react';
|
|
|
4
4
|
import { cn } from "../utils/cn";
|
|
5
5
|
import { MediaItem } from '../utils/media-carousel-utils-stub';
|
|
6
6
|
import { Video, extractYouTubeId } from './features/video';
|
|
7
|
-
import {
|
|
7
|
+
import { VideoPlayBadge } from './features/video-center-badge';
|
|
8
8
|
|
|
9
9
|
// Navigation icons
|
|
10
10
|
const ChevronLeftIcon = () => (
|
|
@@ -215,9 +215,7 @@ export const MediaCarousel = memo(function MediaCarousel({
|
|
|
215
215
|
{/* Play icon overlay for videos */}
|
|
216
216
|
{(item.type === 'video' || item.type === 'youtube') && (
|
|
217
217
|
<div className="absolute inset-0 flex items-center justify-center bg-black/30">
|
|
218
|
-
<
|
|
219
|
-
<PlayIcon size={12} color="white" />
|
|
220
|
-
</div>
|
|
218
|
+
<VideoPlayBadge size="sm" />
|
|
221
219
|
</div>
|
|
222
220
|
)}
|
|
223
221
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
231
|
-
<
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
+
}
|