@xhub-short/ui 0.1.0-beta.9 → 1.0.0-beta.18
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/CommentSheet.css-DuBy01rU.d.ts +219 -0
- package/dist/VideoSlotPlayIndicator-DPs8Xt5C.d.ts +51 -0
- package/dist/chunk-3OB3OVYR.js +349 -0
- package/dist/chunk-4RIMQOBR.js +58 -0
- package/dist/chunk-5MKYDI4X.js +1 -0
- package/dist/chunk-5Y43HNRG.js +296 -0
- package/dist/chunk-7WXAQHJI.js +350 -0
- package/dist/chunk-BADA7OLG.js +564 -0
- package/dist/chunk-BEJAJFV6.js +191 -0
- package/dist/chunk-BNI7CYRI.js +334 -0
- package/dist/{chunk-RMLTPW5S.js → chunk-CAWE42LH.js} +4 -3
- package/dist/chunk-DGKMO3AE.js +717 -0
- package/dist/chunk-DR7KR7OT.js +103 -0
- package/dist/chunk-GSNIZ6DF.js +605 -0
- package/dist/chunk-HXQPEZRG.js +105 -0
- package/dist/{chunk-FNXTPQ6L.js → chunk-IC2KUU4V.js} +31 -1340
- package/dist/chunk-IWSBYOSS.js +91 -0
- package/dist/chunk-MFJS65C5.js +368 -0
- package/dist/{chunk-AC2IFAJR.js → chunk-NJXIYSDZ.js} +12 -1
- package/dist/{chunk-CL6BS7GB.js → chunk-OM4L7RE5.js} +12 -2
- package/dist/chunk-QCRRF76W.js +75 -0
- package/dist/chunk-QUEJHA24.js +508 -0
- package/dist/chunk-UYBQTE4M.js +337 -0
- package/dist/chunk-VJ744W5N.js +603 -0
- package/dist/chunk-VXW7AOGM.js +285 -0
- package/dist/{chunk-AQHD6LPS.js → chunk-YB7AXTX7.js} +1 -1
- package/dist/components/ActionBar/index.d.ts +7 -2
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/AdvanceMenu/index.d.ts +80 -0
- package/dist/components/AdvanceMenu/index.js +1 -0
- package/dist/components/ArticleSlot/index.d.ts +213 -0
- package/dist/components/ArticleSlot/index.js +1 -0
- package/dist/components/AuthorInfo/index.js +1 -1
- package/dist/components/BottomSheet/index.d.ts +87 -0
- package/dist/components/BottomSheet/index.js +1 -0
- package/dist/components/CleanModeOverlay/index.d.ts +60 -0
- package/dist/components/CleanModeOverlay/index.js +1 -0
- package/dist/components/CommentSheet/index.d.ts +1 -1
- package/dist/components/CommentSheet/index.js +1 -1
- package/dist/components/DetailView/index.d.ts +314 -0
- package/dist/components/DetailView/index.js +1 -0
- package/dist/components/ErrorBoundary/index.js +1 -1
- package/dist/components/{VideoFeed → Feed}/index.d.ts +64 -45
- package/dist/components/Feed/index.js +1 -0
- package/dist/components/ImageCarousel/index.d.ts +50 -0
- package/dist/components/ImageCarousel/index.js +1 -0
- package/dist/components/Playlist/index.d.ts +117 -0
- package/dist/components/Playlist/index.js +1 -0
- package/dist/components/ProgressBar/index.js +1 -1
- package/dist/components/QualityPicker/index.d.ts +35 -0
- package/dist/components/QualityPicker/index.js +1 -0
- package/dist/components/ReportSheet/index.d.ts +74 -0
- package/dist/components/ReportSheet/index.js +1 -0
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/SpeedPicker/index.d.ts +32 -0
- package/dist/components/SpeedPicker/index.js +1 -0
- package/dist/components/VideoInfo/index.d.ts +7 -3
- package/dist/components/VideoInfo/index.js +1 -1
- package/dist/components/VideoPlayer/index.js +1 -1
- package/dist/components/VideoSlot/index.d.ts +31 -68
- package/dist/components/VideoSlot/index.js +2 -1
- package/dist/components/VirtualSlider/index.js +1 -1
- package/dist/index.d.ts +40 -10
- package/dist/index.js +23 -13
- package/package.json +8 -4
- package/dist/CommentSheet.css-BeCrEaUG.d.ts +0 -221
- package/dist/chunk-2FSDVYER.js +0 -737
- package/dist/chunk-ECR42RKK.js +0 -571
- package/dist/chunk-KWHMZ6H5.js +0 -562
- package/dist/chunk-SZXFH334.js +0 -204
- package/dist/chunk-UNV3NWN6.js +0 -148
- package/dist/chunk-WCRDTBCZ.js +0 -357
- package/dist/chunk-XDIH66C4.js +0 -1519
- package/dist/components/VideoFeed/index.js +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, ReactElement } from 'react';
|
|
3
|
+
|
|
4
|
+
interface ImageCarouselProps {
|
|
5
|
+
/** Array of image URLs */
|
|
6
|
+
images: string[];
|
|
7
|
+
/** Current active index (controlled) */
|
|
8
|
+
currentIndex?: number;
|
|
9
|
+
/** Called when index changes */
|
|
10
|
+
onIndexChange?: (index: number) => void;
|
|
11
|
+
/** Show pagination indicators */
|
|
12
|
+
showIndicators?: boolean;
|
|
13
|
+
/** Indicator style: 'dots' or 'counter' (e.g., "1/5") */
|
|
14
|
+
indicatorStyle?: 'dots' | 'counter';
|
|
15
|
+
/** Show navigation arrows (desktop) */
|
|
16
|
+
showArrows?: boolean;
|
|
17
|
+
/** Enable pinch-to-zoom */
|
|
18
|
+
enableZoom?: boolean;
|
|
19
|
+
/** Maximum zoom scale */
|
|
20
|
+
maxZoomScale?: number;
|
|
21
|
+
/** Lazy load images (only load visible + adjacent) */
|
|
22
|
+
lazyLoad?: boolean;
|
|
23
|
+
/** Custom image renderer */
|
|
24
|
+
renderImage?: (url: string, index: number, isLoaded: boolean) => ReactNode;
|
|
25
|
+
/** Custom placeholder renderer */
|
|
26
|
+
renderPlaceholder?: (index: number) => ReactNode;
|
|
27
|
+
/** Swipe threshold (percentage of width) */
|
|
28
|
+
swipeThreshold?: number;
|
|
29
|
+
/** Called when zoom state changes */
|
|
30
|
+
onZoomChange?: (isZoomed: boolean) => void;
|
|
31
|
+
/** Called when swipe direction is locked (to allow/block scroll) */
|
|
32
|
+
onSwipeDirectionChange?: (direction: 'horizontal' | 'vertical' | null) => void;
|
|
33
|
+
/** Additional class name */
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
declare function ImageCarouselHeadlessBase({ images, currentIndex: controlledIndex, onIndexChange, showIndicators, indicatorStyle, showArrows, enableZoom, maxZoomScale, lazyLoad, renderImage, renderPlaceholder, swipeThreshold, onZoomChange, onSwipeDirectionChange, className, }: ImageCarouselProps): ReactElement;
|
|
37
|
+
declare const ImageCarouselHeadless: react.MemoExoticComponent<typeof ImageCarouselHeadlessBase>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* ImageCarousel CSS - Injected at runtime
|
|
41
|
+
*
|
|
42
|
+
* Features:
|
|
43
|
+
* - Horizontal swipe carousel
|
|
44
|
+
* - Pagination indicators (dots)
|
|
45
|
+
* - Smooth transitions
|
|
46
|
+
* - Touch-friendly design
|
|
47
|
+
*/
|
|
48
|
+
declare const IMAGE_CAROUSEL_CSS = "\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n IMAGE CAROUSEL - Container\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n touch-action: pan-y pinch-zoom;\n user-select: none;\n -webkit-user-select: none;\n background: var(--sv-carousel-bg, #000);\n}\n\n/* Dragging state - only for styling, does not block scroll */\n.sv-image-carousel--dragging {\n /* Do not set touch-action: none here - to detect direction */\n -webkit-user-drag: none;\n}\n\n/* Direction-locked states */\n.sv-image-carousel--swiping-horizontal {\n /* When swiping horizontally, block scroll, prevent overscroll */\n touch-action: none !important;\n overscroll-behavior: contain;\n}\n\n.sv-image-carousel--swiping-vertical {\n /* When swiping vertically, allow scroll, block carousel swipe */\n touch-action: pan-y;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n TRACK - Horizontal sliding container\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel-track {\n display: flex;\n height: 100%;\n will-change: transform;\n transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.sv-image-carousel-track--dragging {\n transition: none;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n SLIDE - Individual image container\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel-slide {\n flex: 0 0 100%;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n IMAGE\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel-image {\n max-width: 100%;\n max-height: 100%;\n width: 100%;\n height: 100%;\n object-fit: contain;\n pointer-events: none;\n transition: transform 0.2s ease-out;\n}\n\n.sv-image-carousel-image--loading {\n opacity: 0;\n}\n\n.sv-image-carousel-image--loaded {\n opacity: 1;\n transition: opacity 0.3s ease;\n}\n\n/* Zoomed image */\n.sv-image-carousel-image--zoomed {\n cursor: grab;\n pointer-events: auto;\n}\n\n.sv-image-carousel-image--zoomed:active {\n cursor: grabbing;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n PLACEHOLDER / SKELETON\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel-placeholder {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--sv-carousel-placeholder-bg, rgba(255, 255, 255, 0.1));\n}\n\n.sv-image-carousel-skeleton {\n width: 60%;\n height: 60%;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0.05) 25%,\n rgba(255, 255, 255, 0.1) 50%,\n rgba(255, 255, 255, 0.05) 75%\n );\n background-size: 200% 100%;\n animation: sv-carousel-shimmer 1.5s infinite;\n border-radius: 8px;\n}\n\n@keyframes sv-carousel-shimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n PAGINATION INDICATORS (Dots)\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel-indicators {\n position: absolute;\n bottom: var(--sv-carousel-indicators-bottom, 16px);\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: var(--sv-carousel-indicators-gap, 6px);\n padding: 6px 12px;\n border-radius: 20px;\n z-index: 10;\n}\n\n.sv-image-carousel-dot {\n width: var(--sv-carousel-dot-size, 6px);\n height: var(--sv-carousel-dot-size, 6px);\n border-radius: 50%;\n background: var(--sv-carousel-dot-color, rgba(255, 255, 255, 0.5));\n transition: all 0.2s ease;\n cursor: pointer;\n border: none;\n padding: 0;\n}\n\n.sv-image-carousel-dot:hover {\n background: var(--sv-carousel-dot-hover, rgba(255, 255, 255, 0.7));\n}\n\n.sv-image-carousel-dot--active {\n background: var(--sv-carousel-dot-active, #fff);\n transform: scale(1.2);\n}\n\n/* Compact mode for many images (> 5) */\n.sv-image-carousel-indicators--compact .sv-image-carousel-dot {\n width: 4px;\n height: 4px;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n COUNTER (Alternative to dots)\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel-counter {\n position: absolute;\n top: var(--sv-carousel-counter-top, 16px);\n right: var(--sv-carousel-counter-right, 16px);\n padding: 4px 10px;\n background: var(--sv-carousel-counter-bg, rgba(0, 0, 0, 0.6));\n border-radius: 12px;\n font-size: var(--sv-carousel-counter-font-size, 12px);\n font-weight: 500;\n color: var(--sv-carousel-counter-color, #fff);\n z-index: 10;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n NAVIGATION ARROWS (Optional)\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel-nav {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--sv-carousel-nav-bg, rgba(0, 0, 0, 0.4));\n border: none;\n border-radius: 50%;\n color: var(--sv-carousel-nav-color, #fff);\n cursor: pointer;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n}\n\n.sv-image-carousel:hover .sv-image-carousel-nav {\n opacity: 1;\n}\n\n.sv-image-carousel-nav:hover {\n background: var(--sv-carousel-nav-hover-bg, rgba(0, 0, 0, 0.6));\n}\n\n.sv-image-carousel-nav:disabled {\n opacity: 0.3;\n cursor: not-allowed;\n}\n\n.sv-image-carousel-nav--prev {\n left: 12px;\n}\n\n.sv-image-carousel-nav--next {\n right: 12px;\n}\n\n.sv-image-carousel-nav svg {\n width: 20px;\n height: 20px;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n ZOOM OVERLAY\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel-zoom-container {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n touch-action: none;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n ACCESSIBILITY\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-image-carousel:focus-visible {\n outline: 2px solid var(--sv-carousel-focus-color, #4dabff);\n outline-offset: 2px;\n}\n\n.sv-image-carousel-dot:focus-visible {\n outline: 2px solid var(--sv-carousel-focus-color, #4dabff);\n outline-offset: 2px;\n}\n\n/* Screen reader only */\n.sv-image-carousel-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n";
|
|
49
|
+
|
|
50
|
+
export { IMAGE_CAROUSEL_CSS, ImageCarouselHeadless, type ImageCarouselProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IMAGE_CAROUSEL_CSS, ImageCarouselHeadless } from '../../chunk-GSNIZ6DF.js';
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
import { ContentItem } from '@xhub-short/contracts';
|
|
5
|
+
|
|
6
|
+
interface PlaylistBarHeadlessProps {
|
|
7
|
+
/** Playlist title */
|
|
8
|
+
title: string;
|
|
9
|
+
/** Current item index (1-based) */
|
|
10
|
+
currentIndex: number;
|
|
11
|
+
/** Total items count */
|
|
12
|
+
totalItems: number;
|
|
13
|
+
/** Callback when bar is clicked (open sheet) */
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
/** Callback when next button is clicked */
|
|
16
|
+
onNext?: () => void;
|
|
17
|
+
/** Custom class name */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Custom style */
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
/** Custom icon */
|
|
22
|
+
icon?: ReactNode;
|
|
23
|
+
/** Custom arrow icon */
|
|
24
|
+
arrowIcon?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Text for "Playlist" label (optional)
|
|
27
|
+
* If provided, title format will be "[Label] • [Title]"
|
|
28
|
+
*/
|
|
29
|
+
label?: string;
|
|
30
|
+
/** Visibility state */
|
|
31
|
+
isVisible?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Headless Playlist Bar Component
|
|
35
|
+
*
|
|
36
|
+
* Displays playlist info with "Slide/Fade" title transition.
|
|
37
|
+
* Designed to be placed at the bottom of the video slot (above progress bar).
|
|
38
|
+
*
|
|
39
|
+
* NOTE: Currently uses CSS-in-JS injection (legacy pattern) instead of CSS Modules.
|
|
40
|
+
*/
|
|
41
|
+
declare function PlaylistBarHeadless({ title, currentIndex, totalItems, onClick, className, style, icon, arrowIcon, onNext, label, isVisible, }: PlaylistBarHeadlessProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
interface PlaylistSheetHeadlessProps {
|
|
44
|
+
/** Whether sheet is open */
|
|
45
|
+
isOpen: boolean;
|
|
46
|
+
/** Close callback */
|
|
47
|
+
onClose: () => void;
|
|
48
|
+
/** Playlist items */
|
|
49
|
+
items: ContentItem[];
|
|
50
|
+
/** Current active index (0-based) */
|
|
51
|
+
currentIndex: number;
|
|
52
|
+
/** ID of the item currently playing in the feed */
|
|
53
|
+
activeId?: string;
|
|
54
|
+
/** Callback when an item is selected */
|
|
55
|
+
onItemSelect: (index: number) => void;
|
|
56
|
+
/** Custom class name */
|
|
57
|
+
className?: string;
|
|
58
|
+
/** i18n translations */
|
|
59
|
+
translations: {
|
|
60
|
+
title: string;
|
|
61
|
+
emptyState: string;
|
|
62
|
+
nowPlaying?: string;
|
|
63
|
+
};
|
|
64
|
+
/** Custom header accessory (e.g. close button) */
|
|
65
|
+
headerAccessory?: ReactNode;
|
|
66
|
+
/** Callback to lock/unlock global gestures */
|
|
67
|
+
onGestureLock?: (isLocked: boolean) => void;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Headless Playlist Sheet Component
|
|
71
|
+
*
|
|
72
|
+
* Displays a scrollable list of playlist items in a bottom sheet.
|
|
73
|
+
* Supports auto-scroll to active item on open.
|
|
74
|
+
*/
|
|
75
|
+
declare function PlaylistSheetHeadlessComponent({ isOpen, onClose, items, currentIndex, activeId, onItemSelect, className, translations, headerAccessory, onGestureLock, }: PlaylistSheetHeadlessProps): react_jsx_runtime.JSX.Element;
|
|
76
|
+
declare const PlaylistSheetHeadless: react.MemoExoticComponent<typeof PlaylistSheetHeadlessComponent>;
|
|
77
|
+
|
|
78
|
+
interface PlaylistCollectionItem {
|
|
79
|
+
id: string;
|
|
80
|
+
title: string;
|
|
81
|
+
thumbnail?: string;
|
|
82
|
+
itemCount: number;
|
|
83
|
+
authorName?: string;
|
|
84
|
+
updatedAt?: string;
|
|
85
|
+
}
|
|
86
|
+
interface PlaylistCollectionHeadlessProps {
|
|
87
|
+
/** List of playlists */
|
|
88
|
+
playlists: PlaylistCollectionItem[];
|
|
89
|
+
/** View type: grid or list */
|
|
90
|
+
viewType?: 'grid' | 'list';
|
|
91
|
+
/** Loading state */
|
|
92
|
+
isLoading?: boolean;
|
|
93
|
+
/** Callback when a playlist is selected */
|
|
94
|
+
onSelect: (id: string) => void;
|
|
95
|
+
/** Custom class name */
|
|
96
|
+
className?: string;
|
|
97
|
+
/** Translations */
|
|
98
|
+
translations: {
|
|
99
|
+
title: string;
|
|
100
|
+
itemsCount: (count: number) => string;
|
|
101
|
+
emptyTitle: string;
|
|
102
|
+
emptyDesc: string;
|
|
103
|
+
retryButton: string;
|
|
104
|
+
};
|
|
105
|
+
/** Optional custom button for empty/error state */
|
|
106
|
+
renderEmptyButton?: () => ReactNode;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Headless Playlist Collection Component
|
|
110
|
+
*
|
|
111
|
+
* Displays a list or grid of playlists with skeleton loading support.
|
|
112
|
+
* Aspect ratio 9:16 for thumbnails is enforced via CSS.
|
|
113
|
+
*/
|
|
114
|
+
declare function PlaylistCollectionHeadlessComponent({ playlists, viewType, isLoading, onSelect, className, translations, renderEmptyButton, }: PlaylistCollectionHeadlessProps): react_jsx_runtime.JSX.Element;
|
|
115
|
+
declare const PlaylistCollectionHeadless: react.MemoExoticComponent<typeof PlaylistCollectionHeadlessComponent>;
|
|
116
|
+
|
|
117
|
+
export { PlaylistBarHeadless, type PlaylistBarHeadlessProps, PlaylistCollectionHeadless, type PlaylistCollectionHeadlessProps, type PlaylistCollectionItem, PlaylistSheetHeadless, type PlaylistSheetHeadlessProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PlaylistBarHeadless, PlaylistCollectionHeadless, PlaylistSheetHeadless } from '../../chunk-5Y43HNRG.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PROGRESS_BAR_CSS, ProgressBarHeadless, calculateProgress, formatTime } from '../../chunk-
|
|
1
|
+
export { PROGRESS_BAR_CSS, ProgressBarHeadless, calculateProgress, formatTime } from '../../chunk-VXW7AOGM.js';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { VideoQuality } from '@xhub-short/contracts';
|
|
4
|
+
|
|
5
|
+
interface QualityPickerHeadlessProps {
|
|
6
|
+
/** Current quality level (-1 = auto) */
|
|
7
|
+
quality: number;
|
|
8
|
+
/** Available quality levels from HLS.js */
|
|
9
|
+
levels: VideoQuality[];
|
|
10
|
+
/** Quality change callback (level index, -1 for auto) */
|
|
11
|
+
onQualityChange: (level: number) => void;
|
|
12
|
+
/** Title text (default: "Quality") */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Custom class name */
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Close callback (optional, for integration with menu) */
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
/** Auto-close after selection (default: true) */
|
|
19
|
+
autoClose?: boolean;
|
|
20
|
+
/** Show "Auto" option (default: true) */
|
|
21
|
+
showAuto?: boolean;
|
|
22
|
+
/** Custom label for auto (default: "Auto") */
|
|
23
|
+
autoLabel?: string;
|
|
24
|
+
/** Empty state message */
|
|
25
|
+
emptyMessage?: string;
|
|
26
|
+
}
|
|
27
|
+
declare function QualityPickerHeadlessComponent({ quality, levels, onQualityChange, title, className, onClose, autoClose, showAuto, autoLabel, emptyMessage, }: QualityPickerHeadlessProps): ReactElement;
|
|
28
|
+
declare const QualityPickerHeadless: react.MemoExoticComponent<typeof QualityPickerHeadlessComponent>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* QualityPicker CSS
|
|
32
|
+
*/
|
|
33
|
+
declare const QUALITY_PICKER_CSS = "\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n CSS VARIABLES\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-quality-picker {\n /* Colors */\n --sv-quality-picker-bg: rgba(28, 28, 30, 0.95);\n --sv-quality-picker-text: #ffffff;\n --sv-quality-picker-text-secondary: rgba(255, 255, 255, 0.6);\n --sv-quality-picker-selected: #007aff;\n --sv-quality-picker-item-hover: rgba(255, 255, 255, 0.1);\n --sv-quality-picker-check: #007aff;\n --sv-quality-picker-badge: rgba(255, 255, 255, 0.15);\n \n /* Dimensions */\n --sv-quality-picker-item-height: 48px;\n --sv-quality-picker-radius: 12px;\n --sv-quality-picker-padding: 8px;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n CONTAINER\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-quality-picker {\n padding: var(--sv-quality-picker-padding);\n}\n\n.sv-quality-picker-title {\n padding: 8px 16px;\n font-size: 14px;\n font-weight: 600;\n color: var(--sv-quality-picker-text-secondary);\n text-align: center;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n OPTIONS\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-quality-picker-options {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.sv-quality-picker-option {\n display: flex;\n align-items: center;\n gap: 12px;\n height: var(--sv-quality-picker-item-height);\n padding: 0 16px;\n border: none;\n background: transparent;\n color: var(--sv-quality-picker-text);\n font-size: 16px;\n font-weight: 400;\n cursor: pointer;\n border-radius: var(--sv-quality-picker-radius);\n transition: background-color 150ms ease;\n -webkit-tap-highlight-color: transparent;\n}\n\n.sv-quality-picker-option:hover {\n background: var(--sv-quality-picker-item-hover);\n}\n\n.sv-quality-picker-option[data-selected=\"true\"] {\n color: var(--sv-quality-picker-selected);\n font-weight: 500;\n}\n\n.sv-quality-picker-option-label {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.sv-quality-picker-option-badge {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n padding: 2px 6px;\n background: var(--sv-quality-picker-badge);\n border-radius: 4px;\n color: var(--sv-quality-picker-text-secondary);\n}\n\n.sv-quality-picker-option[data-selected=\"true\"] .sv-quality-picker-option-badge {\n background: var(--sv-quality-picker-selected);\n color: #ffffff;\n}\n\n.sv-quality-picker-option-check {\n width: 20px;\n height: 20px;\n color: var(--sv-quality-picker-check);\n opacity: 0;\n transition: opacity 150ms ease;\n}\n\n.sv-quality-picker-option[data-selected=\"true\"] .sv-quality-picker-option-check {\n opacity: 1;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n EMPTY STATE\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-quality-picker-empty {\n padding: 24px 16px;\n text-align: center;\n color: var(--sv-quality-picker-text-secondary);\n font-size: 14px;\n}\n";
|
|
34
|
+
|
|
35
|
+
export { QUALITY_PICKER_CSS, QualityPickerHeadless, type QualityPickerHeadlessProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { QUALITY_PICKER_CSS, QualityPickerHeadless } from '../../chunk-DR7KR7OT.js';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, ReactElement } from 'react';
|
|
3
|
+
import { ReportReason } from '@xhub-short/contracts';
|
|
4
|
+
|
|
5
|
+
type ReportSheetStep = 'select' | 'detail';
|
|
6
|
+
type ReportSheetState = 'form' | 'loading' | 'success' | 'error';
|
|
7
|
+
interface ReportSheetHeadlessProps {
|
|
8
|
+
/** Whether the sheet is open */
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
/** Close handler */
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
/** Submit handler */
|
|
13
|
+
onSubmit: (reasonId: string, description?: string) => Promise<void>;
|
|
14
|
+
/** Available report reasons */
|
|
15
|
+
reasons?: ReportReason[];
|
|
16
|
+
/** Whether reasons are being loaded from API */
|
|
17
|
+
isLoadingReasons?: boolean;
|
|
18
|
+
/** Max characters for text input (default: 500) */
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
/** Content ID being reported (for display) */
|
|
21
|
+
contentId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* If true, show success screen immediately (video was already reported)
|
|
24
|
+
* Used to prevent re-reporting the same video
|
|
25
|
+
*/
|
|
26
|
+
alreadyReported?: boolean;
|
|
27
|
+
/** Sheet title for step 1 - reason selection */
|
|
28
|
+
selectTitle?: string;
|
|
29
|
+
/** Sheet title for step 2 - report detail */
|
|
30
|
+
title?: string;
|
|
31
|
+
/** Text input placeholder */
|
|
32
|
+
inputPlaceholder?: string;
|
|
33
|
+
/** Submit button text */
|
|
34
|
+
submitText?: string;
|
|
35
|
+
/** Loading text */
|
|
36
|
+
loadingText?: string;
|
|
37
|
+
/** Success title */
|
|
38
|
+
successTitle?: string;
|
|
39
|
+
/** Success message */
|
|
40
|
+
successMessage?: string;
|
|
41
|
+
/** Done button text (on success screen) */
|
|
42
|
+
doneText?: string;
|
|
43
|
+
/** Error message */
|
|
44
|
+
errorMessage?: string;
|
|
45
|
+
/** Error description (retry hint) */
|
|
46
|
+
errorDescription?: string;
|
|
47
|
+
/** Custom success icon */
|
|
48
|
+
successIcon?: ReactNode;
|
|
49
|
+
/** Custom class name */
|
|
50
|
+
className?: string;
|
|
51
|
+
/** Callback to lock/unlock global gestures */
|
|
52
|
+
onGestureLock?: (isLocked: boolean) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Custom button element to trigger the report sheet
|
|
55
|
+
*/
|
|
56
|
+
buttonElement?: ReactElement;
|
|
57
|
+
}
|
|
58
|
+
declare function ReportSheetHeadlessComponent({ isOpen, onClose, onSubmit, reasons, isLoadingReasons, maxLength, alreadyReported, selectTitle, title, inputPlaceholder, submitText, loadingText, successTitle, successMessage, doneText, errorMessage, errorDescription, successIcon, className, onGestureLock, }: ReportSheetHeadlessProps): ReactElement | null;
|
|
59
|
+
declare const ReportSheetHeadless: react.MemoExoticComponent<typeof ReportSheetHeadlessComponent>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* ReportSheet CSS-in-TS
|
|
63
|
+
*
|
|
64
|
+
* Report form bottom sheet styling (2-step flow).
|
|
65
|
+
* Built on BottomSheetHeadless base.
|
|
66
|
+
*/
|
|
67
|
+
declare const REPORT_SHEET_CSS = "\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n CSS VARIABLES\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-sheet {\n /* Colors */\n --sv-report-bg: #1a1a1a;\n --sv-report-text: rgba(255, 255, 255, 0.95);\n --sv-report-text-muted: rgba(255, 255, 255, 0.6);\n --sv-report-border: rgba(255, 255, 255, 0.1);\n --sv-report-error: #ef4444;\n --sv-report-success: #22c55e;\n --sv-report-primary: #3b82f6;\n --sv-report-item-hover: rgba(255, 255, 255, 0.05);\n \n /* Spacing */\n --sv-report-padding: 16px;\n --sv-report-gap: 12px;\n --sv-report-radius: 8px;\n \n /* Override BottomSheet */\n --sv-sheet-bg: var(--sv-report-bg);\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n HEADER\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: var(--sv-report-padding);\n border-bottom: 1px solid var(--sv-report-border);\n min-height: 56px;\n}\n\n.sv-report-title {\n flex: 1;\n font-size: 17px;\n font-weight: 600;\n color: var(--sv-report-text);\n margin: 0;\n text-align: center;\n}\n\n/* When back button is present, title should still be centered */\n.sv-report-header .sv-report-back + .sv-report-title {\n margin-left: -32px; /* Compensate for back button */\n}\n\n.sv-report-close,\n.sv-report-back {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n flex-shrink: 0;\n \n background: transparent;\n border: none;\n border-radius: 50%;\n \n color: var(--sv-report-text-muted);\n cursor: pointer;\n transition: background 150ms ease, color 150ms ease;\n}\n\n.sv-report-close:hover,\n.sv-report-back:hover {\n background: var(--sv-report-item-hover);\n color: var(--sv-report-text);\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n CONTENT\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-content {\n padding: 0;\n max-height: 50vh;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.sv-report-content--detail {\n padding: var(--sv-report-padding);\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n STEP 1: REASON LIST\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-reasons {\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.sv-report-reason-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n width: 100%;\n padding: 16px var(--sv-report-padding);\n \n background: transparent;\n border: none;\n border-bottom: 1px solid var(--sv-report-border);\n \n color: var(--sv-report-text);\n font-size: 15px;\n text-align: left;\n \n cursor: pointer;\n transition: background 150ms ease;\n}\n\n.sv-report-reason-item:last-child {\n border-bottom: none;\n}\n\n.sv-report-reason-item:hover {\n background: var(--sv-report-item-hover);\n}\n\n.sv-report-reason-item:active {\n background: rgba(255, 255, 255, 0.08);\n}\n\n.sv-report-reason-item .sv-report-reason-label {\n flex: 1;\n}\n\n.sv-report-reason-item svg {\n flex-shrink: 0;\n color: var(--sv-report-text-muted);\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n SKELETON LOADING\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-reasons--loading {\n pointer-events: none;\n}\n\n.sv-report-reason-skeleton {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 16px var(--sv-report-padding);\n border-bottom: 1px solid var(--sv-report-border);\n}\n\n.sv-report-reason-skeleton:last-child {\n border-bottom: none;\n}\n\n.sv-report-skeleton-text {\n flex: 1;\n height: 16px;\n max-width: 200px;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0.06) 25%,\n rgba(255, 255, 255, 0.12) 50%,\n rgba(255, 255, 255, 0.06) 75%\n );\n background-size: 200% 100%;\n border-radius: 4px;\n animation: sv-report-skeleton-shimmer 1.5s infinite;\n}\n\n.sv-report-skeleton-icon {\n width: 20px;\n height: 20px;\n background: rgba(255, 255, 255, 0.06);\n border-radius: 4px;\n}\n\n@keyframes sv-report-skeleton-shimmer {\n 0% { background-position: 200% 0; }\n 100% { background-position: -200% 0; }\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n STEP 2: REASON DETAIL\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-reason-title {\n margin: 0 0 var(--sv-report-gap);\n font-size: 16px;\n font-weight: 600;\n color: var(--sv-report-text);\n}\n\n.sv-report-reason-description {\n margin: 0 0 var(--sv-report-gap);\n padding: 12px 16px;\n \n background: rgba(255, 255, 255, 0.05);\n border-radius: var(--sv-report-radius);\n \n font-size: 14px;\n color: var(--sv-report-text-muted);\n line-height: 1.5;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n TEXT INPUT\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-input-section {\n margin-top: var(--sv-report-gap);\n}\n\n.sv-report-textarea {\n width: 100%;\n min-height: 120px;\n padding: 12px;\n \n background: rgba(255, 255, 255, 0.05);\n border: 1px solid var(--sv-report-border);\n border-radius: var(--sv-report-radius);\n \n color: var(--sv-report-text);\n font-size: 14px;\n font-family: inherit;\n line-height: 1.5;\n resize: vertical;\n \n transition: border-color 150ms ease;\n}\n\n.sv-report-textarea::placeholder {\n color: var(--sv-report-text-muted);\n}\n\n.sv-report-textarea:focus {\n outline: none;\n border-color: var(--sv-report-primary);\n}\n\n.sv-report-char-count {\n margin-top: 4px;\n font-size: 12px;\n color: var(--sv-report-text-muted);\n text-align: right;\n}\n\n.sv-report-char-count[data-over=\"true\"] {\n color: var(--sv-report-error);\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n FOOTER\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-footer {\n display: flex;\n gap: 12px;\n padding: var(--sv-report-padding);\n border-top: 1px solid var(--sv-report-border);\n}\n\n.sv-report-footer--single {\n /* Single button layout */\n}\n\n.sv-report-button {\n flex: 1;\n padding: 14px 20px;\n \n border: none;\n border-radius: var(--sv-report-radius);\n \n font-size: 15px;\n font-weight: 600;\n \n cursor: pointer;\n transition: background 150ms ease, opacity 150ms ease;\n}\n\n.sv-report-button-submit {\n background: var(--sv-report-primary);\n color: white;\n}\n\n.sv-report-button-submit:hover:not(:disabled) {\n background: #2563eb;\n}\n\n.sv-report-button-submit:active:not(:disabled) {\n background: #1d4ed8;\n}\n\n.sv-report-button-submit:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n LOADING & SUCCESS STATES\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 12px;\n padding: 48px 24px;\n color: var(--sv-report-text-muted);\n}\n\n.sv-report-spinner {\n width: 24px;\n height: 24px;\n border: 2px solid var(--sv-report-border);\n border-top-color: var(--sv-report-primary);\n border-radius: 50%;\n animation: sv-report-spin 0.8s linear infinite;\n}\n\n@keyframes sv-report-spin {\n to { transform: rotate(360deg); }\n}\n\n.sv-report-success {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n padding: 48px 24px;\n text-align: center;\n}\n\n.sv-report-success-icon {\n width: 48px;\n height: 48px;\n color: var(--sv-report-success);\n}\n\n.sv-report-success-title {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--sv-report-text);\n}\n\n.sv-report-success-message {\n margin: 0;\n font-size: 14px;\n color: var(--sv-report-text-muted);\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n ERROR STATE\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-report-error-message {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px;\n margin-bottom: var(--sv-report-gap);\n \n background: rgba(239, 68, 68, 0.1);\n border-radius: var(--sv-report-radius);\n \n color: var(--sv-report-error);\n font-size: 14px;\n}\n";
|
|
68
|
+
/**
|
|
69
|
+
* Inject ReportSheet CSS into document
|
|
70
|
+
* Note: layered=false to prevent host app CSS from overriding critical styles
|
|
71
|
+
*/
|
|
72
|
+
declare function injectReportSheetCSS(): void;
|
|
73
|
+
|
|
74
|
+
export { REPORT_SHEET_CSS, ReportSheetHeadless, type ReportSheetHeadlessProps, type ReportSheetState, type ReportSheetStep, injectReportSheetCSS };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { REPORT_SHEET_CSS, ReportSheetHeadless, injectReportSheetCSS } from '../../chunk-DGKMO3AE.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Skeleton, SkeletonAvatar, SkeletonText, SkeletonVideo } from '../../chunk-
|
|
1
|
+
export { Skeleton, SkeletonAvatar, SkeletonText, SkeletonVideo } from '../../chunk-4RIMQOBR.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
|
|
4
|
+
/** Default speed presets */
|
|
5
|
+
declare const DEFAULT_SPEEDS: readonly [0.5, 0.75, 1, 1.25, 1.5, 2];
|
|
6
|
+
interface SpeedPickerHeadlessProps {
|
|
7
|
+
/** Current speed */
|
|
8
|
+
speed: number;
|
|
9
|
+
/** Speed change callback */
|
|
10
|
+
onSpeedChange: (speed: number) => void;
|
|
11
|
+
/** Available speeds (default: DEFAULT_SPEEDS) */
|
|
12
|
+
speeds?: readonly number[];
|
|
13
|
+
/** Title text (default: "Playback Speed") */
|
|
14
|
+
title?: string;
|
|
15
|
+
/** Custom class name */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** Format speed label (default: "1x", "0.5x") */
|
|
18
|
+
formatLabel?: (speed: number) => string;
|
|
19
|
+
/** Close callback (optional, for integration with menu) */
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
/** Auto-close after selection (default: true) */
|
|
22
|
+
autoClose?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare function SpeedPickerHeadlessComponent({ speed, onSpeedChange, speeds, title, className, formatLabel, onClose, autoClose, }: SpeedPickerHeadlessProps): ReactElement;
|
|
25
|
+
declare const SpeedPickerHeadless: react.MemoExoticComponent<typeof SpeedPickerHeadlessComponent>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* SpeedPicker CSS
|
|
29
|
+
*/
|
|
30
|
+
declare const SPEED_PICKER_CSS = "\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n CSS VARIABLES\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-speed-picker {\n /* Colors */\n --sv-speed-picker-bg: rgba(28, 28, 30, 0.95);\n --sv-speed-picker-text: #ffffff;\n --sv-speed-picker-text-secondary: rgba(255, 255, 255, 0.6);\n --sv-speed-picker-selected: #007aff;\n --sv-speed-picker-item-hover: rgba(255, 255, 255, 0.1);\n --sv-speed-picker-check: #007aff;\n \n /* Dimensions */\n --sv-speed-picker-item-height: 48px;\n --sv-speed-picker-radius: 12px;\n --sv-speed-picker-padding: 8px;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n CONTAINER\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-speed-picker {\n padding: var(--sv-speed-picker-padding);\n}\n\n.sv-speed-picker-title {\n padding: 8px 16px;\n font-size: 14px;\n font-weight: 600;\n color: var(--sv-speed-picker-text-secondary);\n text-align: center;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n OPTIONS\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-speed-picker-options {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.sv-speed-picker-option {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: var(--sv-speed-picker-item-height);\n padding: 0 16px;\n border: none;\n background: transparent;\n color: var(--sv-speed-picker-text);\n font-size: 16px;\n font-weight: 400;\n cursor: pointer;\n border-radius: var(--sv-speed-picker-radius);\n transition: background-color 150ms ease;\n -webkit-tap-highlight-color: transparent;\n}\n\n.sv-speed-picker-option:hover {\n background: var(--sv-speed-picker-item-hover);\n}\n\n.sv-speed-picker-option[data-selected=\"true\"] {\n color: var(--sv-speed-picker-selected);\n font-weight: 500;\n}\n\n.sv-speed-picker-option-label {\n flex: 1;\n}\n\n.sv-speed-picker-option-check {\n width: 20px;\n height: 20px;\n color: var(--sv-speed-picker-check);\n opacity: 0;\n transition: opacity 150ms ease;\n}\n\n.sv-speed-picker-option[data-selected=\"true\"] .sv-speed-picker-option-check {\n opacity: 1;\n}\n";
|
|
31
|
+
|
|
32
|
+
export { DEFAULT_SPEEDS, SPEED_PICKER_CSS, SpeedPickerHeadless, type SpeedPickerHeadlessProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEFAULT_SPEEDS, SPEED_PICKER_CSS, SpeedPickerHeadless } from '../../chunk-QCRRF76W.js';
|
|
@@ -34,12 +34,14 @@ interface VideoCaptionProps {
|
|
|
34
34
|
moreText?: string;
|
|
35
35
|
/** "less" button text */
|
|
36
36
|
lessText?: string;
|
|
37
|
+
/** Click handler for caption (e.g., to open detail view) */
|
|
38
|
+
onClick?: () => void;
|
|
37
39
|
/** Additional CSS classes */
|
|
38
40
|
className?: string;
|
|
39
41
|
/** Custom children (replaces default rendering) */
|
|
40
42
|
children?: ReactNode;
|
|
41
43
|
}
|
|
42
|
-
declare function VideoCaption({ caption, maxLines, expandable, moreText, lessText, className, children, }: VideoCaptionProps): react_jsx_runtime.JSX.Element | null;
|
|
44
|
+
declare function VideoCaption({ caption, maxLines, expandable, moreText, lessText, onClick, className, children, }: VideoCaptionProps): react_jsx_runtime.JSX.Element | null;
|
|
43
45
|
|
|
44
46
|
interface VideoHashtagsProps {
|
|
45
47
|
/** Override hashtags array */
|
|
@@ -97,11 +99,13 @@ interface VideoInfoHeadlessExtendedProps extends VideoInfoHeadlessProps {
|
|
|
97
99
|
overlay?: boolean;
|
|
98
100
|
/** Test ID for testing */
|
|
99
101
|
testId?: string;
|
|
102
|
+
/** Visibility state */
|
|
103
|
+
isVisible?: boolean;
|
|
100
104
|
}
|
|
101
105
|
/**
|
|
102
106
|
* VideoInfoHeadless Root Component
|
|
103
107
|
*/
|
|
104
|
-
declare function VideoInfoHeadlessRoot({ videoInfoState, videoInfoActions, overlay, className, children, testId, }: VideoInfoHeadlessExtendedProps): react_jsx_runtime.JSX.Element;
|
|
108
|
+
declare function VideoInfoHeadlessRoot({ videoInfoState, videoInfoActions, overlay, isVisible, className, children, testId, }: VideoInfoHeadlessExtendedProps): react_jsx_runtime.JSX.Element;
|
|
105
109
|
/**
|
|
106
110
|
* Content wrapper for grouping elements
|
|
107
111
|
*/
|
|
@@ -155,6 +159,6 @@ declare function useOptionalVideoInfoContext(): VideoInfoContextValue | undefine
|
|
|
155
159
|
* - Location (optional)
|
|
156
160
|
* - Music info (optional)
|
|
157
161
|
*/
|
|
158
|
-
declare const VIDEO_INFO_CSS = "\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * VideoInfo Container\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info {\n display: flex;\n flex-direction: column;\n gap: var(--sv-video-info-gap, 6px);\n color: var(--sv-video-info-color, #fff);\n font-family: var(--sv-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);\n text-shadow: var(--sv-video-info-text-shadow, 0 1px 2px rgba(0, 0, 0, 0.5));\n max-width: 100%;\n overflow: hidden;\n}\n\n/* Overlay variant (on top of video) */\n.sv-video-info--overlay {\n pointer-events: none;\n}\n\n.sv-video-info--overlay > * {\n pointer-events: auto;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Author Name\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__author {\n display: flex;\n align-items: center;\n gap: var(--sv-video-info-author-gap, 6px);\n cursor: pointer;\n transition: opacity 0.15s ease;\n}\n\n.sv-video-info__author:hover {\n opacity: 0.85;\n}\n\n.sv-video-info__author:active {\n opacity: 0.7;\n}\n\n.sv-video-info__author-name {\n font-size: var(--sv-video-info-author-font-size, 16px);\n font-weight: var(--sv-video-info-author-font-weight, 700);\n line-height: 1.3;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 200px;\n}\n\n.sv-video-info__author-prefix {\n opacity: 0.95;\n}\n\n.sv-video-info__verified-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--sv-video-info-verified-size, 14px);\n height: var(--sv-video-info-verified-size, 14px);\n background: var(--sv-video-info-verified-bg, #20d5ec);\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.sv-video-info__verified-badge svg,\n.sv-video-info__verified-badge span {\n font-size: 10px;\n color: #fff;\n font-weight: 700;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Caption\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__caption {\n font-size: var(--sv-video-info-caption-font-size, 14px);\n line-height: var(--sv-video-info-caption-line-height, 1.4);\n color: var(--sv-video-info-caption-color, #fff);\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n word-break: break-word;\n}\n\n.sv-video-info__caption--lines-1 {\n -webkit-line-clamp: 1;\n}\n\n.sv-video-info__caption--lines-2 {\n -webkit-line-clamp: 2;\n}\n\n.sv-video-info__caption--lines-3 {\n -webkit-line-clamp: 3;\n}\n\n.sv-video-info__caption--expanded {\n -webkit-line-clamp: unset;\n}\n\n/* \"more\" button for expandable caption */\n.sv-video-info__caption-more {\n background: none;\n border: none;\n color: var(--sv-video-info-caption-more-color, rgba(255, 255, 255, 0.7));\n font-size: var(--sv-video-info-caption-font-size, 14px);\n padding: 0;\n margin-left: 4px;\n cursor: pointer;\n}\n\n.sv-video-info__caption-more:hover {\n color: var(--sv-video-info-caption-color, #fff);\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Hashtags\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__hashtags {\n display: inline-flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--sv-video-info-hashtag-gap, 6px);\n font-size: var(--sv-video-info-hashtag-font-size, 14px);\n}\n\n/* Inline variant - more compact */\n.sv-video-info__hashtags--inline {\n gap: var(--sv-video-info-hashtag-gap-inline, 4px);\n}\n\n.sv-video-info__hashtag {\n display: inline-flex;\n color: var(--sv-video-info-hashtag-color, #fff);\n font-weight: var(--sv-video-info-hashtag-font-weight, 500);\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n transition: opacity 0.15s ease;\n white-space: nowrap;\n}\n\n.sv-video-info__hashtag:hover {\n opacity: 0.8;\n text-decoration: underline;\n}\n\n.sv-video-info__hashtag--not-clickable {\n cursor: default;\n}\n\n.sv-video-info__hashtag--not-clickable:hover {\n opacity: 1;\n text-decoration: none;\n}\n\n/* Inline hashtags (inside caption) */\n.sv-video-info__caption .sv-video-info__hashtag {\n display: inline;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Location\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__location {\n display: flex;\n align-items: center;\n gap: var(--sv-video-info-location-gap, 4px);\n font-size: var(--sv-video-info-location-font-size, 13px);\n color: var(--sv-video-info-location-color, rgba(255, 255, 255, 0.9));\n cursor: pointer;\n transition: opacity 0.15s ease;\n}\n\n.sv-video-info__location:hover {\n opacity: 0.8;\n}\n\n.sv-video-info__location-icon {\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.sv-video-info__location-text {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Music\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__music {\n display: flex;\n align-items: center;\n gap: var(--sv-video-info-music-gap, 8px);\n font-size: var(--sv-video-info-music-font-size, 13px);\n color: var(--sv-video-info-music-color, #fff);\n cursor: pointer;\n transition: opacity 0.15s ease;\n overflow: hidden;\n}\n\n.sv-video-info__music:hover {\n opacity: 0.8;\n}\n\n.sv-video-info__music-icon {\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.sv-video-info__music-text {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n /* Marquee animation for long text */\n}\n\n/* Marquee animation for music text */\n.sv-video-info__music-text--marquee {\n animation: sv-video-info-marquee 8s linear infinite;\n}\n\n@keyframes sv-video-info-marquee {\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(-50%);\n }\n}\n";
|
|
162
|
+
declare const VIDEO_INFO_CSS = "\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * VideoInfo Container\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info {\n display: flex;\n flex-direction: column;\n gap: var(--sv-video-info-gap, 6px);\n color: var(--sv-video-info-color, #fff);\n font-family: var(--sv-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);\n text-shadow: var(--sv-video-info-text-shadow, 0 1px 2px rgba(0, 0, 0, 0.5));\n max-width: 100%;\n overflow: hidden;\n \n /* Auto-hide transition */\n transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n/* Hidden state for auto-hide */\n.sv-video-info--hidden {\n opacity: 0;\n pointer-events: none;\n}\n\n/* Overlay variant (on top of video) */\n.sv-video-info--overlay {\n pointer-events: none;\n}\n\n.sv-video-info--overlay > * {\n pointer-events: auto;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Author Name\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__author {\n display: flex;\n align-items: center;\n gap: var(--sv-video-info-author-gap, 6px);\n cursor: pointer;\n transition: opacity 0.15s ease;\n}\n\n.sv-video-info__author:hover {\n opacity: 0.85;\n}\n\n.sv-video-info__author:active {\n opacity: 0.7;\n}\n\n.sv-video-info__author-name {\n font-size: var(--sv-video-info-author-font-size, 16px);\n font-weight: var(--sv-video-info-author-font-weight, 700);\n line-height: 1.3;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 200px;\n}\n\n.sv-video-info__author-prefix {\n opacity: 0.95;\n}\n\n.sv-video-info__verified-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--sv-video-info-verified-size, 14px);\n height: var(--sv-video-info-verified-size, 14px);\n background: var(--sv-video-info-verified-bg, #20d5ec);\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.sv-video-info__verified-badge svg,\n.sv-video-info__verified-badge span {\n font-size: 10px;\n color: #fff;\n font-weight: 700;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Caption\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__caption {\n font-size: var(--sv-video-info-caption-font-size, 14px);\n line-height: var(--sv-video-info-caption-line-height, 1.4);\n color: var(--sv-video-info-caption-color, #fff);\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n word-break: break-word;\n}\n\n.sv-video-info__caption--lines-1 {\n -webkit-line-clamp: 1;\n}\n\n.sv-video-info__caption--lines-2 {\n -webkit-line-clamp: 2;\n}\n\n.sv-video-info__caption--lines-3 {\n -webkit-line-clamp: 3;\n}\n\n.sv-video-info__caption--expanded {\n -webkit-line-clamp: unset;\n}\n\n/* Clickable caption (for opening detail view) */\n.sv-video-info__caption--clickable {\n cursor: pointer;\n transition: opacity 0.15s ease;\n}\n\n.sv-video-info__caption--clickable:hover {\n opacity: 0.85;\n}\n\n.sv-video-info__caption--clickable:active {\n opacity: 0.7;\n}\n\n/* \"more\" button for expandable caption */\n.sv-video-info__caption-more {\n background: none;\n border: none;\n color: var(--sv-video-info-caption-more-color, rgba(255, 255, 255, 0.7));\n font-size: var(--sv-video-info-caption-font-size, 14px);\n padding: 0;\n margin-left: 4px;\n cursor: pointer;\n}\n\n.sv-video-info__caption-more:hover {\n color: var(--sv-video-info-caption-color, #fff);\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Hashtags\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__hashtags {\n display: inline-flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--sv-video-info-hashtag-gap, 6px);\n font-size: var(--sv-video-info-hashtag-font-size, 14px);\n}\n\n/* Inline variant - more compact */\n.sv-video-info__hashtags--inline {\n gap: var(--sv-video-info-hashtag-gap-inline, 4px);\n}\n\n.sv-video-info__hashtag {\n display: inline-flex;\n color: var(--sv-video-info-hashtag-color, #fff);\n font-weight: var(--sv-video-info-hashtag-font-weight, 500);\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n transition: opacity 0.15s ease;\n white-space: nowrap;\n}\n\n.sv-video-info__hashtag:hover {\n opacity: 0.8;\n text-decoration: underline;\n}\n\n.sv-video-info__hashtag--not-clickable {\n cursor: default;\n}\n\n.sv-video-info__hashtag--not-clickable:hover {\n opacity: 1;\n text-decoration: none;\n}\n\n/* Inline hashtags (inside caption) */\n.sv-video-info__caption .sv-video-info__hashtag {\n display: inline;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Location\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__location {\n display: flex;\n align-items: center;\n gap: var(--sv-video-info-location-gap, 4px);\n font-size: var(--sv-video-info-location-font-size, 13px);\n color: var(--sv-video-info-location-color, rgba(255, 255, 255, 0.9));\n cursor: pointer;\n transition: opacity 0.15s ease;\n}\n\n.sv-video-info__location:hover {\n opacity: 0.8;\n}\n\n.sv-video-info__location-icon {\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.sv-video-info__location-text {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n * Music\n * \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */\n\n.sv-video-info__music {\n display: flex;\n align-items: center;\n gap: var(--sv-video-info-music-gap, 8px);\n font-size: var(--sv-video-info-music-font-size, 13px);\n color: var(--sv-video-info-music-color, #fff);\n cursor: pointer;\n transition: opacity 0.15s ease;\n overflow: hidden;\n}\n\n.sv-video-info__music:hover {\n opacity: 0.8;\n}\n\n.sv-video-info__music-icon {\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.sv-video-info__music-text {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n /* Marquee animation for long text */\n}\n\n/* Marquee animation for music text */\n.sv-video-info__music-text--marquee {\n animation: sv-video-info-marquee 8s linear infinite;\n}\n\n@keyframes sv-video-info-marquee {\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(-50%);\n }\n}\n";
|
|
159
163
|
|
|
160
164
|
export { VIDEO_INFO_CSS, VideoAuthorName, type VideoAuthorNameProps, VideoCaption, type VideoCaptionProps, VideoHashtags, type VideoHashtagsProps, VideoInfoContext, type VideoInfoContextValue, VideoInfoHeadless, type VideoInfoHeadlessExtendedProps, VideoLocation, type VideoLocationProps, VideoMusic, type VideoMusicProps, useOptionalVideoInfoContext, useVideoInfoContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { VIDEO_INFO_CSS, VideoAuthorName, VideoCaption, VideoHashtags, VideoInfoContext, VideoInfoHeadless, VideoLocation, VideoMusic, useOptionalVideoInfoContext, useVideoInfoContext } from '../../chunk-
|
|
1
|
+
export { VIDEO_INFO_CSS, VideoAuthorName, VideoCaption, VideoHashtags, VideoInfoContext, VideoInfoHeadless, VideoLocation, VideoMusic, useOptionalVideoInfoContext, useVideoInfoContext } from '../../chunk-7WXAQHJI.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BUFFERING_STATE_CLASS, DEFAULT_OBJECT_FIT, DEFAULT_PRELOAD, ENDED_CLASS, ERROR_CLASS, ERROR_STATE_CLASS, FIRST_FRAME_MAX_WIDTH, FIRST_FRAME_QUALITY, LOADING_CLASS, LOADING_STATE_ATTR, LOADING_STATE_CLASS, PAUSED_CLASS, PLAYBACK_STATE_ATTR, PLAYER_CLASS, PLAYING_CLASS, POSTER_CLASS, READY_CLASS, VIDEO_CLASS, VIDEO_PLAYER_CSS, VIDEO_TYPE_ATTR, VIDEO_WRAPPER_CLASS, VideoElementError, VideoPlayerHeadless, Z_INDEX, Z_INDEX_CSS_VARS, useAutoFirstFrameCapture, useFirstFrameCapture, useVideoElement } from '../../chunk-
|
|
1
|
+
export { BUFFERING_STATE_CLASS, DEFAULT_OBJECT_FIT, DEFAULT_PRELOAD, ENDED_CLASS, ERROR_CLASS, ERROR_STATE_CLASS, FIRST_FRAME_MAX_WIDTH, FIRST_FRAME_QUALITY, LOADING_CLASS, LOADING_STATE_ATTR, LOADING_STATE_CLASS, PAUSED_CLASS, PLAYBACK_STATE_ATTR, PLAYER_CLASS, PLAYING_CLASS, POSTER_CLASS, READY_CLASS, VIDEO_CLASS, VIDEO_PLAYER_CSS, VIDEO_TYPE_ATTR, VIDEO_WRAPPER_CLASS, VideoElementError, VideoPlayerHeadless, Z_INDEX, Z_INDEX_CSS_VARS, useAutoFirstFrameCapture, useFirstFrameCapture, useVideoElement } from '../../chunk-OM4L7RE5.js';
|