@livo-tv/blocks 1.4.0 → 1.5.0
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/index.cjs +306 -134
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +305 -136
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -96,6 +96,33 @@ type ConfirmDestructiveDialogProps = {
|
|
|
96
96
|
*/
|
|
97
97
|
declare function ConfirmDestructiveDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, }: ConfirmDestructiveDialogProps): React.JSX.Element;
|
|
98
98
|
|
|
99
|
+
type NotificationBellItem = {
|
|
100
|
+
id: string;
|
|
101
|
+
title: string;
|
|
102
|
+
message: string;
|
|
103
|
+
read: boolean;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
href?: string | null;
|
|
106
|
+
};
|
|
107
|
+
type NotificationBellLabels = {
|
|
108
|
+
title: string;
|
|
109
|
+
empty: string;
|
|
110
|
+
viewAll: string;
|
|
111
|
+
};
|
|
112
|
+
declare const DEFAULT_NOTIFICATION_BELL_LABELS: NotificationBellLabels;
|
|
113
|
+
type NotificationBellProps = {
|
|
114
|
+
items: NotificationBellItem[];
|
|
115
|
+
unreadCount: number;
|
|
116
|
+
isLoading?: boolean;
|
|
117
|
+
labels?: Partial<NotificationBellLabels>;
|
|
118
|
+
viewAllHref: string;
|
|
119
|
+
formatTime?: (iso: string) => string;
|
|
120
|
+
onOpenChange?: (open: boolean) => void;
|
|
121
|
+
align?: "start" | "end";
|
|
122
|
+
className?: string;
|
|
123
|
+
};
|
|
124
|
+
declare function NotificationBell({ items, unreadCount, isLoading, labels: labelOverrides, viewAllHref, formatTime, onOpenChange, align, className, }: NotificationBellProps): React.JSX.Element;
|
|
125
|
+
|
|
99
126
|
type EditableSectionMode = "reading" | "editing" | "saving";
|
|
100
127
|
type EditableSectionLabels = {
|
|
101
128
|
/** Visible Edit button label. Default: "Edit" */
|
|
@@ -930,6 +957,19 @@ type FileUploadTrayProps = {
|
|
|
930
957
|
};
|
|
931
958
|
declare function FileUploadTray({ jobs, labels: labelOverrides, onPause, onResume, onCancel, className, }: FileUploadTrayProps): React.JSX.Element | null;
|
|
932
959
|
|
|
960
|
+
type FileUploadMenuProps = {
|
|
961
|
+
jobs: UploadJob[];
|
|
962
|
+
labels?: Partial<FileUploadTrayLabels>;
|
|
963
|
+
onPause: (id: string) => void;
|
|
964
|
+
onResume: (id: string) => void;
|
|
965
|
+
onCancel: (id: string) => void;
|
|
966
|
+
open?: boolean;
|
|
967
|
+
onOpenChange?: (open: boolean) => void;
|
|
968
|
+
align?: "start" | "end";
|
|
969
|
+
className?: string;
|
|
970
|
+
};
|
|
971
|
+
declare function FileUploadMenu({ jobs, labels: labelOverrides, onPause, onResume, onCancel, open, onOpenChange, align, className, }: FileUploadMenuProps): React.JSX.Element | null;
|
|
972
|
+
|
|
933
973
|
type CreateMultipartUploadControllerOptions = {
|
|
934
974
|
file: Blob;
|
|
935
975
|
partSize: number;
|
|
@@ -963,4 +1003,4 @@ declare function useMediaQuery(query: string): boolean;
|
|
|
963
1003
|
|
|
964
1004
|
declare function cn(...inputs: ClassValue[]): string;
|
|
965
1005
|
|
|
966
|
-
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CreateMultipartUploadControllerOptions, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageLabels, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type PartRange, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, WaitingRoom, type WaitingRoomCurtain, type WaitingRoomProps, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
|
1006
|
+
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CreateMultipartUploadControllerOptions, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageLabels, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, type PartRange, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, WaitingRoom, type WaitingRoomCurtain, type WaitingRoomProps, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
package/dist/index.d.ts
CHANGED
|
@@ -96,6 +96,33 @@ type ConfirmDestructiveDialogProps = {
|
|
|
96
96
|
*/
|
|
97
97
|
declare function ConfirmDestructiveDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, }: ConfirmDestructiveDialogProps): React.JSX.Element;
|
|
98
98
|
|
|
99
|
+
type NotificationBellItem = {
|
|
100
|
+
id: string;
|
|
101
|
+
title: string;
|
|
102
|
+
message: string;
|
|
103
|
+
read: boolean;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
href?: string | null;
|
|
106
|
+
};
|
|
107
|
+
type NotificationBellLabels = {
|
|
108
|
+
title: string;
|
|
109
|
+
empty: string;
|
|
110
|
+
viewAll: string;
|
|
111
|
+
};
|
|
112
|
+
declare const DEFAULT_NOTIFICATION_BELL_LABELS: NotificationBellLabels;
|
|
113
|
+
type NotificationBellProps = {
|
|
114
|
+
items: NotificationBellItem[];
|
|
115
|
+
unreadCount: number;
|
|
116
|
+
isLoading?: boolean;
|
|
117
|
+
labels?: Partial<NotificationBellLabels>;
|
|
118
|
+
viewAllHref: string;
|
|
119
|
+
formatTime?: (iso: string) => string;
|
|
120
|
+
onOpenChange?: (open: boolean) => void;
|
|
121
|
+
align?: "start" | "end";
|
|
122
|
+
className?: string;
|
|
123
|
+
};
|
|
124
|
+
declare function NotificationBell({ items, unreadCount, isLoading, labels: labelOverrides, viewAllHref, formatTime, onOpenChange, align, className, }: NotificationBellProps): React.JSX.Element;
|
|
125
|
+
|
|
99
126
|
type EditableSectionMode = "reading" | "editing" | "saving";
|
|
100
127
|
type EditableSectionLabels = {
|
|
101
128
|
/** Visible Edit button label. Default: "Edit" */
|
|
@@ -930,6 +957,19 @@ type FileUploadTrayProps = {
|
|
|
930
957
|
};
|
|
931
958
|
declare function FileUploadTray({ jobs, labels: labelOverrides, onPause, onResume, onCancel, className, }: FileUploadTrayProps): React.JSX.Element | null;
|
|
932
959
|
|
|
960
|
+
type FileUploadMenuProps = {
|
|
961
|
+
jobs: UploadJob[];
|
|
962
|
+
labels?: Partial<FileUploadTrayLabels>;
|
|
963
|
+
onPause: (id: string) => void;
|
|
964
|
+
onResume: (id: string) => void;
|
|
965
|
+
onCancel: (id: string) => void;
|
|
966
|
+
open?: boolean;
|
|
967
|
+
onOpenChange?: (open: boolean) => void;
|
|
968
|
+
align?: "start" | "end";
|
|
969
|
+
className?: string;
|
|
970
|
+
};
|
|
971
|
+
declare function FileUploadMenu({ jobs, labels: labelOverrides, onPause, onResume, onCancel, open, onOpenChange, align, className, }: FileUploadMenuProps): React.JSX.Element | null;
|
|
972
|
+
|
|
933
973
|
type CreateMultipartUploadControllerOptions = {
|
|
934
974
|
file: Blob;
|
|
935
975
|
partSize: number;
|
|
@@ -963,4 +1003,4 @@ declare function useMediaQuery(query: string): boolean;
|
|
|
963
1003
|
|
|
964
1004
|
declare function cn(...inputs: ClassValue[]): string;
|
|
965
1005
|
|
|
966
|
-
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CreateMultipartUploadControllerOptions, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageLabels, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type PartRange, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, WaitingRoom, type WaitingRoomCurtain, type WaitingRoomProps, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
|
1006
|
+
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CreateMultipartUploadControllerOptions, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageLabels, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, type PartRange, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, WaitingRoom, type WaitingRoomCurtain, type WaitingRoomProps, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React7 from 'react';
|
|
3
3
|
import { createContext, useContext, useState, useRef, useId, useEffect, useCallback, useLayoutEffect } from 'react';
|
|
4
|
-
import { Loader2, AlertTriangle, Inbox, Monitor, Sun, Moon, Languages, Upload, Move, ZoomOut, ZoomIn, RotateCcw, RotateCw, Grid3X3, RefreshCw, X, User, Pencil, Check, Play, AlertCircle, VolumeX, Pause, Volume1, Volume2, Settings, Cast, PictureInPicture2, Minimize, Maximize, XIcon } from 'lucide-react';
|
|
4
|
+
import { Loader2, AlertTriangle, Inbox, Bell, Monitor, Sun, Moon, Languages, Upload, Move, ZoomOut, ZoomIn, RotateCcw, RotateCw, Grid3X3, RefreshCw, X, User, Pencil, Check, Play, AlertCircle, VolumeX, Pause, Volume1, Volume2, Settings, Cast, PictureInPicture2, Minimize, Maximize, XIcon } from 'lucide-react';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
9
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
10
10
|
import { Slot } from '@radix-ui/react-slot';
|
|
11
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
11
12
|
import { useTheme } from 'next-themes';
|
|
12
13
|
import { useReducedMotion, AnimatePresence, motion } from 'framer-motion';
|
|
13
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
14
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
15
15
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
16
16
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -417,6 +417,179 @@ function ConfirmDestructiveDialog({
|
|
|
417
417
|
] })
|
|
418
418
|
] }) });
|
|
419
419
|
}
|
|
420
|
+
var miniMenuContentClassName = "max-h-none overflow-x-visible overflow-y-visible";
|
|
421
|
+
var miniMenuContentDefaults = {
|
|
422
|
+
sideOffset: 8,
|
|
423
|
+
collisionPadding: 12
|
|
424
|
+
};
|
|
425
|
+
function DropdownMenu({
|
|
426
|
+
...props
|
|
427
|
+
}) {
|
|
428
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
429
|
+
}
|
|
430
|
+
function DropdownMenuTrigger({
|
|
431
|
+
...props
|
|
432
|
+
}) {
|
|
433
|
+
return /* @__PURE__ */ jsx(
|
|
434
|
+
DropdownMenuPrimitive.Trigger,
|
|
435
|
+
{
|
|
436
|
+
"data-slot": "dropdown-menu-trigger",
|
|
437
|
+
...props
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
function DropdownMenuContent({
|
|
442
|
+
className,
|
|
443
|
+
sideOffset = 4,
|
|
444
|
+
...props
|
|
445
|
+
}) {
|
|
446
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
447
|
+
DropdownMenuPrimitive.Content,
|
|
448
|
+
{
|
|
449
|
+
"data-slot": "dropdown-menu-content",
|
|
450
|
+
sideOffset,
|
|
451
|
+
className: cn(
|
|
452
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[200] max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
453
|
+
className
|
|
454
|
+
),
|
|
455
|
+
...props
|
|
456
|
+
}
|
|
457
|
+
) });
|
|
458
|
+
}
|
|
459
|
+
function DropdownMenuItem({
|
|
460
|
+
className,
|
|
461
|
+
inset,
|
|
462
|
+
variant = "default",
|
|
463
|
+
...props
|
|
464
|
+
}) {
|
|
465
|
+
return /* @__PURE__ */ jsx(
|
|
466
|
+
DropdownMenuPrimitive.Item,
|
|
467
|
+
{
|
|
468
|
+
"data-slot": "dropdown-menu-item",
|
|
469
|
+
"data-inset": inset,
|
|
470
|
+
"data-variant": variant,
|
|
471
|
+
className: cn(
|
|
472
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[highlighted]:[&_svg:not([class*='text-'])]:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:[&_svg:not([class*='text-'])]:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-[highlighted]:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-[highlighted]:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:data-[highlighted]:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
473
|
+
className
|
|
474
|
+
),
|
|
475
|
+
...props
|
|
476
|
+
}
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
var DEFAULT_NOTIFICATION_BELL_LABELS = {
|
|
480
|
+
title: "Notifications",
|
|
481
|
+
empty: "You're all caught up.",
|
|
482
|
+
viewAll: "View all"
|
|
483
|
+
};
|
|
484
|
+
function formatUnreadBadge(count) {
|
|
485
|
+
return count > 9 ? "9+" : String(count);
|
|
486
|
+
}
|
|
487
|
+
function defaultFormatTime(iso) {
|
|
488
|
+
const date = new Date(iso);
|
|
489
|
+
if (Number.isNaN(date.getTime())) return iso;
|
|
490
|
+
return date.toLocaleString(void 0, {
|
|
491
|
+
dateStyle: "short",
|
|
492
|
+
timeStyle: "short"
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
function NotificationListSkeleton({ rows = 3 }) {
|
|
496
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col", "aria-hidden": "true", children: Array.from({ length: rows }, (_, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
497
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 px-4 py-3", children: [
|
|
498
|
+
/* @__PURE__ */ jsx(
|
|
499
|
+
"div",
|
|
500
|
+
{
|
|
501
|
+
"data-slot": "skeleton",
|
|
502
|
+
className: "bg-muted h-4 w-36 animate-pulse rounded-md motion-reduce:animate-none"
|
|
503
|
+
}
|
|
504
|
+
),
|
|
505
|
+
/* @__PURE__ */ jsx(
|
|
506
|
+
"div",
|
|
507
|
+
{
|
|
508
|
+
"data-slot": "skeleton",
|
|
509
|
+
className: "bg-muted h-3 w-full animate-pulse rounded-md motion-reduce:animate-none"
|
|
510
|
+
}
|
|
511
|
+
),
|
|
512
|
+
/* @__PURE__ */ jsx(
|
|
513
|
+
"div",
|
|
514
|
+
{
|
|
515
|
+
"data-slot": "skeleton",
|
|
516
|
+
className: "bg-muted h-3 w-20 animate-pulse rounded-md motion-reduce:animate-none"
|
|
517
|
+
}
|
|
518
|
+
)
|
|
519
|
+
] }),
|
|
520
|
+
index < rows - 1 ? /* @__PURE__ */ jsx("div", { className: "bg-border h-px" }) : null
|
|
521
|
+
] }, index)) });
|
|
522
|
+
}
|
|
523
|
+
function NotificationBell({
|
|
524
|
+
items,
|
|
525
|
+
unreadCount,
|
|
526
|
+
isLoading = false,
|
|
527
|
+
labels: labelOverrides,
|
|
528
|
+
viewAllHref,
|
|
529
|
+
formatTime: formatTime2 = defaultFormatTime,
|
|
530
|
+
onOpenChange,
|
|
531
|
+
align = "end",
|
|
532
|
+
className
|
|
533
|
+
}) {
|
|
534
|
+
const labels = { ...DEFAULT_NOTIFICATION_BELL_LABELS, ...labelOverrides };
|
|
535
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { modal: false, onOpenChange, children: [
|
|
536
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
537
|
+
Button,
|
|
538
|
+
{
|
|
539
|
+
type: "button",
|
|
540
|
+
variant: "ghost",
|
|
541
|
+
size: "icon",
|
|
542
|
+
className: cn("relative size-9", className),
|
|
543
|
+
"aria-label": labels.title,
|
|
544
|
+
children: [
|
|
545
|
+
/* @__PURE__ */ jsx(Bell, { className: "size-4" }),
|
|
546
|
+
unreadCount > 0 ? /* @__PURE__ */ jsx("span", { className: "bg-destructive text-destructive-foreground absolute -top-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full text-[10px] leading-none font-medium tabular-nums", children: formatUnreadBadge(unreadCount) }) : null
|
|
547
|
+
]
|
|
548
|
+
}
|
|
549
|
+
) }),
|
|
550
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align, className: "w-80 p-0", children: [
|
|
551
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between border-b px-4 py-3", children: /* @__PURE__ */ jsx("h4", { className: "font-semibold", children: labels.title }) }),
|
|
552
|
+
/* @__PURE__ */ jsx("div", { className: "max-h-80 overflow-y-auto", children: isLoading ? /* @__PURE__ */ jsx(NotificationListSkeleton, {}) : items.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-4 py-8 text-center text-sm", children: labels.empty }) : /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: items.map((item, index) => {
|
|
553
|
+
const body = /* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-1", children: [
|
|
554
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm leading-none font-medium", children: item.title }),
|
|
555
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground line-clamp-2 text-xs", children: item.message }),
|
|
556
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground/70 text-xs", children: formatTime2(item.createdAt) })
|
|
557
|
+
] });
|
|
558
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
559
|
+
item.href ? /* @__PURE__ */ jsx(
|
|
560
|
+
"a",
|
|
561
|
+
{
|
|
562
|
+
href: item.href,
|
|
563
|
+
className: cn(
|
|
564
|
+
"hover:bg-muted/50 flex gap-3 px-4 py-3 motion-safe:transition-colors",
|
|
565
|
+
!item.read && "bg-muted/30"
|
|
566
|
+
),
|
|
567
|
+
children: body
|
|
568
|
+
}
|
|
569
|
+
) : /* @__PURE__ */ jsx(
|
|
570
|
+
"div",
|
|
571
|
+
{
|
|
572
|
+
className: cn(
|
|
573
|
+
"flex gap-3 px-4 py-3",
|
|
574
|
+
!item.read && "bg-muted/30"
|
|
575
|
+
),
|
|
576
|
+
children: body
|
|
577
|
+
}
|
|
578
|
+
),
|
|
579
|
+
index < items.length - 1 ? /* @__PURE__ */ jsx("div", { className: "bg-border h-px" }) : null
|
|
580
|
+
] }, item.id);
|
|
581
|
+
}) }) }),
|
|
582
|
+
/* @__PURE__ */ jsx("div", { className: "border-t px-4 py-2", children: /* @__PURE__ */ jsx(
|
|
583
|
+
"a",
|
|
584
|
+
{
|
|
585
|
+
href: viewAllHref,
|
|
586
|
+
className: "text-primary block text-center text-sm font-medium hover:underline",
|
|
587
|
+
children: labels.viewAll
|
|
588
|
+
}
|
|
589
|
+
) })
|
|
590
|
+
] })
|
|
591
|
+
] });
|
|
592
|
+
}
|
|
420
593
|
|
|
421
594
|
// src/components/editable/types.ts
|
|
422
595
|
var DEFAULT_EDITABLE_SECTION_LABELS = {
|
|
@@ -798,65 +971,6 @@ function SafeImage({
|
|
|
798
971
|
}
|
|
799
972
|
);
|
|
800
973
|
}
|
|
801
|
-
var miniMenuContentClassName = "max-h-none overflow-x-visible overflow-y-visible";
|
|
802
|
-
var miniMenuContentDefaults = {
|
|
803
|
-
sideOffset: 8,
|
|
804
|
-
collisionPadding: 12
|
|
805
|
-
};
|
|
806
|
-
function DropdownMenu({
|
|
807
|
-
...props
|
|
808
|
-
}) {
|
|
809
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
810
|
-
}
|
|
811
|
-
function DropdownMenuTrigger({
|
|
812
|
-
...props
|
|
813
|
-
}) {
|
|
814
|
-
return /* @__PURE__ */ jsx(
|
|
815
|
-
DropdownMenuPrimitive.Trigger,
|
|
816
|
-
{
|
|
817
|
-
"data-slot": "dropdown-menu-trigger",
|
|
818
|
-
...props
|
|
819
|
-
}
|
|
820
|
-
);
|
|
821
|
-
}
|
|
822
|
-
function DropdownMenuContent({
|
|
823
|
-
className,
|
|
824
|
-
sideOffset = 4,
|
|
825
|
-
...props
|
|
826
|
-
}) {
|
|
827
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
828
|
-
DropdownMenuPrimitive.Content,
|
|
829
|
-
{
|
|
830
|
-
"data-slot": "dropdown-menu-content",
|
|
831
|
-
sideOffset,
|
|
832
|
-
className: cn(
|
|
833
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[200] max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
834
|
-
className
|
|
835
|
-
),
|
|
836
|
-
...props
|
|
837
|
-
}
|
|
838
|
-
) });
|
|
839
|
-
}
|
|
840
|
-
function DropdownMenuItem({
|
|
841
|
-
className,
|
|
842
|
-
inset,
|
|
843
|
-
variant = "default",
|
|
844
|
-
...props
|
|
845
|
-
}) {
|
|
846
|
-
return /* @__PURE__ */ jsx(
|
|
847
|
-
DropdownMenuPrimitive.Item,
|
|
848
|
-
{
|
|
849
|
-
"data-slot": "dropdown-menu-item",
|
|
850
|
-
"data-inset": inset,
|
|
851
|
-
"data-variant": variant,
|
|
852
|
-
className: cn(
|
|
853
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[highlighted]:[&_svg:not([class*='text-'])]:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:[&_svg:not([class*='text-'])]:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-[highlighted]:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-[highlighted]:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:data-[highlighted]:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
854
|
-
className
|
|
855
|
-
),
|
|
856
|
-
...props
|
|
857
|
-
}
|
|
858
|
-
);
|
|
859
|
-
}
|
|
860
974
|
var defaultLabels = {
|
|
861
975
|
theme: "Theme",
|
|
862
976
|
system: "System",
|
|
@@ -4580,83 +4694,138 @@ function FileUploadTray({
|
|
|
4580
4694
|
const labels = { ...DEFAULT_FILE_UPLOAD_TRAY_LABELS, ...labelOverrides };
|
|
4581
4695
|
const visible = jobs.filter((job) => job.status !== "cancelled");
|
|
4582
4696
|
if (visible.length === 0) return null;
|
|
4697
|
+
return /* @__PURE__ */ jsx("section", { "aria-label": labels.title, className: cn("grid gap-3", className), children: /* @__PURE__ */ jsx("ul", { className: "grid gap-3", children: visible.map((job) => {
|
|
4698
|
+
const active = job.status === "uploading" || job.status === "completing";
|
|
4699
|
+
const canPause = job.status === "uploading";
|
|
4700
|
+
const canResume = job.status === "paused";
|
|
4701
|
+
const canCancel = job.status === "uploading" || job.status === "paused" || job.status === "error";
|
|
4702
|
+
return /* @__PURE__ */ jsxs("li", { className: "grid gap-1.5", children: [
|
|
4703
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4704
|
+
/* @__PURE__ */ jsx("p", { className: "min-w-0 flex-1 truncate text-sm font-medium", children: job.name }),
|
|
4705
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: statusLabel(job.status, labels) }),
|
|
4706
|
+
canPause ? /* @__PURE__ */ jsx(
|
|
4707
|
+
Button,
|
|
4708
|
+
{
|
|
4709
|
+
type: "button",
|
|
4710
|
+
variant: "ghost",
|
|
4711
|
+
size: "icon-sm",
|
|
4712
|
+
"aria-label": `${labels.pause} ${job.name}`,
|
|
4713
|
+
onClick: () => onPause(job.id),
|
|
4714
|
+
children: /* @__PURE__ */ jsx(Pause, {})
|
|
4715
|
+
}
|
|
4716
|
+
) : null,
|
|
4717
|
+
canResume ? /* @__PURE__ */ jsx(
|
|
4718
|
+
Button,
|
|
4719
|
+
{
|
|
4720
|
+
type: "button",
|
|
4721
|
+
variant: "ghost",
|
|
4722
|
+
size: "icon-sm",
|
|
4723
|
+
"aria-label": `${labels.resume} ${job.name}`,
|
|
4724
|
+
onClick: () => onResume(job.id),
|
|
4725
|
+
children: /* @__PURE__ */ jsx(Play, {})
|
|
4726
|
+
}
|
|
4727
|
+
) : null,
|
|
4728
|
+
canCancel ? /* @__PURE__ */ jsx(
|
|
4729
|
+
Button,
|
|
4730
|
+
{
|
|
4731
|
+
type: "button",
|
|
4732
|
+
variant: "ghost",
|
|
4733
|
+
size: "icon-sm",
|
|
4734
|
+
"aria-label": `${labels.cancel} ${job.name}`,
|
|
4735
|
+
onClick: () => onCancel(job.id),
|
|
4736
|
+
children: /* @__PURE__ */ jsx(X, {})
|
|
4737
|
+
}
|
|
4738
|
+
) : null
|
|
4739
|
+
] }),
|
|
4740
|
+
/* @__PURE__ */ jsx(
|
|
4741
|
+
"div",
|
|
4742
|
+
{
|
|
4743
|
+
role: "progressbar",
|
|
4744
|
+
"aria-valuemin": 0,
|
|
4745
|
+
"aria-valuemax": 100,
|
|
4746
|
+
"aria-valuenow": job.percent,
|
|
4747
|
+
"aria-label": job.name,
|
|
4748
|
+
className: "bg-muted h-2 overflow-hidden rounded-full",
|
|
4749
|
+
children: /* @__PURE__ */ jsx(
|
|
4750
|
+
"div",
|
|
4751
|
+
{
|
|
4752
|
+
className: cn(
|
|
4753
|
+
"bg-primary h-full",
|
|
4754
|
+
active && "motion-safe:transition-[width]"
|
|
4755
|
+
),
|
|
4756
|
+
style: { width: `${job.percent}%` }
|
|
4757
|
+
}
|
|
4758
|
+
)
|
|
4759
|
+
}
|
|
4760
|
+
),
|
|
4761
|
+
job.error ? /* @__PURE__ */ jsx("p", { role: "alert", className: "text-destructive text-xs", children: job.error }) : null
|
|
4762
|
+
] }, job.id);
|
|
4763
|
+
}) }) });
|
|
4764
|
+
}
|
|
4765
|
+
function formatActiveBadge(count) {
|
|
4766
|
+
return count > 9 ? "9+" : String(count);
|
|
4767
|
+
}
|
|
4768
|
+
function isActiveStatus(status) {
|
|
4769
|
+
return status === "uploading" || status === "paused" || status === "completing";
|
|
4770
|
+
}
|
|
4771
|
+
function FileUploadMenu({
|
|
4772
|
+
jobs,
|
|
4773
|
+
labels: labelOverrides,
|
|
4774
|
+
onPause,
|
|
4775
|
+
onResume,
|
|
4776
|
+
onCancel,
|
|
4777
|
+
open,
|
|
4778
|
+
onOpenChange,
|
|
4779
|
+
align = "end",
|
|
4780
|
+
className
|
|
4781
|
+
}) {
|
|
4782
|
+
const labels = { ...DEFAULT_FILE_UPLOAD_TRAY_LABELS, ...labelOverrides };
|
|
4783
|
+
const visible = jobs.filter((job) => job.status !== "cancelled");
|
|
4784
|
+
const [uncontrolledOpen, setUncontrolledOpen] = useState(false);
|
|
4785
|
+
const isControlled = open !== void 0;
|
|
4786
|
+
const resolvedOpen = isControlled ? open : uncontrolledOpen;
|
|
4787
|
+
function setResolvedOpen(next) {
|
|
4788
|
+
if (!isControlled) setUncontrolledOpen(next);
|
|
4789
|
+
onOpenChange?.(next);
|
|
4790
|
+
}
|
|
4791
|
+
if (visible.length === 0) return null;
|
|
4792
|
+
const activeCount = visible.filter(
|
|
4793
|
+
(job) => isActiveStatus(job.status)
|
|
4794
|
+
).length;
|
|
4583
4795
|
return /* @__PURE__ */ jsxs(
|
|
4584
|
-
|
|
4796
|
+
DropdownMenu,
|
|
4585
4797
|
{
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
className
|
|
4590
|
-
),
|
|
4798
|
+
modal: false,
|
|
4799
|
+
open: resolvedOpen,
|
|
4800
|
+
onOpenChange: setResolvedOpen,
|
|
4591
4801
|
children: [
|
|
4592
|
-
/* @__PURE__ */ jsx(
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
/* @__PURE__ */ jsx(
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
"aria-label": `${labels.resume} ${job.name}`,
|
|
4620
|
-
onClick: () => onResume(job.id),
|
|
4621
|
-
children: /* @__PURE__ */ jsx(Play, {})
|
|
4622
|
-
}
|
|
4623
|
-
) : null,
|
|
4624
|
-
canCancel ? /* @__PURE__ */ jsx(
|
|
4625
|
-
Button,
|
|
4626
|
-
{
|
|
4627
|
-
type: "button",
|
|
4628
|
-
variant: "ghost",
|
|
4629
|
-
size: "icon-sm",
|
|
4630
|
-
"aria-label": `${labels.cancel} ${job.name}`,
|
|
4631
|
-
onClick: () => onCancel(job.id),
|
|
4632
|
-
children: /* @__PURE__ */ jsx(X, {})
|
|
4633
|
-
}
|
|
4634
|
-
) : null
|
|
4635
|
-
] }),
|
|
4636
|
-
/* @__PURE__ */ jsx(
|
|
4637
|
-
"div",
|
|
4638
|
-
{
|
|
4639
|
-
role: "progressbar",
|
|
4640
|
-
"aria-valuemin": 0,
|
|
4641
|
-
"aria-valuemax": 100,
|
|
4642
|
-
"aria-valuenow": job.percent,
|
|
4643
|
-
"aria-label": job.name,
|
|
4644
|
-
className: "bg-muted h-2 overflow-hidden rounded-full",
|
|
4645
|
-
children: /* @__PURE__ */ jsx(
|
|
4646
|
-
"div",
|
|
4647
|
-
{
|
|
4648
|
-
className: cn(
|
|
4649
|
-
"bg-primary h-full",
|
|
4650
|
-
active && "motion-safe:transition-[width]"
|
|
4651
|
-
),
|
|
4652
|
-
style: { width: `${job.percent}%` }
|
|
4653
|
-
}
|
|
4654
|
-
)
|
|
4655
|
-
}
|
|
4656
|
-
),
|
|
4657
|
-
job.error ? /* @__PURE__ */ jsx("p", { role: "alert", className: "text-destructive text-xs", children: job.error }) : null
|
|
4658
|
-
] }, job.id);
|
|
4659
|
-
}) })
|
|
4802
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
4803
|
+
Button,
|
|
4804
|
+
{
|
|
4805
|
+
type: "button",
|
|
4806
|
+
variant: "ghost",
|
|
4807
|
+
size: "icon",
|
|
4808
|
+
className: cn("relative size-9", className),
|
|
4809
|
+
"aria-label": labels.title,
|
|
4810
|
+
children: [
|
|
4811
|
+
/* @__PURE__ */ jsx(Upload, { className: "size-4" }),
|
|
4812
|
+
activeCount > 0 ? /* @__PURE__ */ jsx("span", { className: "bg-destructive text-destructive-foreground absolute -top-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full text-[10px] leading-none font-medium tabular-nums", children: formatActiveBadge(activeCount) }) : null
|
|
4813
|
+
]
|
|
4814
|
+
}
|
|
4815
|
+
) }),
|
|
4816
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align, className: "w-80 p-0", children: [
|
|
4817
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between border-b px-4 py-3", children: /* @__PURE__ */ jsx("h4", { className: "font-semibold", children: labels.title }) }),
|
|
4818
|
+
/* @__PURE__ */ jsx("div", { className: "max-h-80 overflow-y-auto p-3", children: /* @__PURE__ */ jsx(
|
|
4819
|
+
FileUploadTray,
|
|
4820
|
+
{
|
|
4821
|
+
jobs: visible,
|
|
4822
|
+
labels,
|
|
4823
|
+
onPause,
|
|
4824
|
+
onResume,
|
|
4825
|
+
onCancel
|
|
4826
|
+
}
|
|
4827
|
+
) })
|
|
4828
|
+
] })
|
|
4660
4829
|
]
|
|
4661
4830
|
}
|
|
4662
4831
|
);
|
|
@@ -4878,6 +5047,6 @@ function avatarFallbackStyle(name) {
|
|
|
4878
5047
|
return getAvatarColors(name);
|
|
4879
5048
|
}
|
|
4880
5049
|
|
|
4881
|
-
export { AvatarEditor, AvatarEditorDialog, ConfirmDestructiveDialog, CurtainPicker, CurtainPickerSkeleton, CurtainPreview, CurtainStage, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DataList, DataListItem, EditableSection, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, ErrorState, FeedVideoPlayer, FieldMessage, FileDropzone, FileUploadTray, LanguageContext, LanguageSwitcher, LoadingState, SafeImage, ThemeSwitcher, VideoPlayer, WaitingRoom, avatarFallbackStyle, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, getAvatarColors, getInitials, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery2 as useMediaQuery, usePlaybackStats };
|
|
5050
|
+
export { AvatarEditor, AvatarEditorDialog, ConfirmDestructiveDialog, CurtainPicker, CurtainPickerSkeleton, CurtainPreview, CurtainStage, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DataList, DataListItem, EditableSection, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, ErrorState, FeedVideoPlayer, FieldMessage, FileDropzone, FileUploadMenu, FileUploadTray, LanguageContext, LanguageSwitcher, LoadingState, NotificationBell, SafeImage, ThemeSwitcher, VideoPlayer, WaitingRoom, avatarFallbackStyle, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, getAvatarColors, getInitials, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery2 as useMediaQuery, usePlaybackStats };
|
|
4882
5051
|
//# sourceMappingURL=index.js.map
|
|
4883
5052
|
//# sourceMappingURL=index.js.map
|