@constructive-io/ui 0.3.0 → 0.4.1

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.d.cts CHANGED
@@ -2212,4 +2212,399 @@ interface OrgChartUncontrolledProps extends OrgChartPropsBase {
2212
2212
  type OrgChartProps = OrgChartControlledProps | OrgChartUncontrolledProps;
2213
2213
  declare function OrgChart(props: OrgChartProps): react_jsx_runtime.JSX.Element;
2214
2214
 
2215
- export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, type FieldProps, FieldRow, type FieldRowProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, OrgChart, type OrgChartEdge, type OrgChartNodeData, type OrgChartProps, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
2215
+ /**
2216
+ * Domain types for the Storage UI kit.
2217
+ *
2218
+ * These mirror the real Storage GraphQL schema so wiring a data layer
2219
+ * (Phase 2) is a matter of mapping query results onto these shapes — no
2220
+ * component prop changes required.
2221
+ */
2222
+ type BucketVisibility = 'public' | 'private' | 'temp';
2223
+ interface StorageBucket {
2224
+ id: string;
2225
+ key: string;
2226
+ visibility: BucketVisibility;
2227
+ isPublic: boolean;
2228
+ allowCustomKeys: boolean;
2229
+ allowedMimeTypes?: string[];
2230
+ maxFileSize?: number | null;
2231
+ allowedOrigins?: string[];
2232
+ description?: string | null;
2233
+ provisioned?: boolean;
2234
+ objectCount?: number | null;
2235
+ createdAt?: string;
2236
+ }
2237
+ type StorageObjectStatus = 'requested' | 'uploaded' | 'processed';
2238
+ interface StorageObject {
2239
+ id: string;
2240
+ bucketId: string;
2241
+ key: string;
2242
+ filename: string | null;
2243
+ mimeType: string;
2244
+ size: number;
2245
+ isPublic: boolean;
2246
+ status?: StorageObjectStatus;
2247
+ createdAt: string;
2248
+ updatedAt?: string;
2249
+ downloadUrl?: string | null;
2250
+ }
2251
+ type UploadStatus = 'queued' | 'uploading' | 'done' | 'error';
2252
+ interface UploadItem {
2253
+ id: string;
2254
+ filename: string;
2255
+ size: number;
2256
+ progress: number;
2257
+ status: UploadStatus;
2258
+ error?: string;
2259
+ }
2260
+ type ObjectSortColumn = 'filename' | 'size' | 'createdAt' | 'mimeType';
2261
+ type ObjectSort = {
2262
+ column: ObjectSortColumn;
2263
+ direction: 'asc' | 'desc';
2264
+ };
2265
+
2266
+ /**
2267
+ * Pure presentational helpers for the Storage UI kit.
2268
+ *
2269
+ * No side effects, no I/O — safe to import anywhere (including non-'use client'
2270
+ * leaf components).
2271
+ */
2272
+
2273
+ /** Humanize a byte count, e.g. 1536 -> "1.5 KB". */
2274
+ declare function humanizeBytes(bytes: number | null | undefined): string;
2275
+ /** Format an ISO timestamp as a compact, locale date — e.g. "Jun 24, 2026". */
2276
+ declare function formatDate(iso: string | null | undefined): string;
2277
+ /** Format an ISO timestamp with date + time — used in the detail sheet. */
2278
+ declare function formatDateTime(iso: string | null | undefined): string;
2279
+ /**
2280
+ * Short, human-friendly label for a MIME type — e.g.
2281
+ * "image/png" -> "PNG", "application/pdf" -> "PDF",
2282
+ * "application/vnd.openxmlformats-officedocument.wordprocessingml.document" -> "DOCX".
2283
+ */
2284
+ declare function shortMimeLabel(mimeType: string | null | undefined): string;
2285
+ /** Best display name for an object: filename, falling back to its key. */
2286
+ declare function objectDisplayName(object: Pick<StorageObject, 'filename' | 'key'>): string;
2287
+ /** Best display name for a bucket: its key (buckets have no separate label). */
2288
+ declare function bucketDisplayName(bucket: Pick<StorageBucket, 'key'>): string;
2289
+
2290
+ interface FileTypeIconProps {
2291
+ /** The object's MIME type, e.g. "image/png". */
2292
+ mimeType: string | null | undefined;
2293
+ className?: string;
2294
+ /** Forwarded to the underlying svg as the accessible label, if any. */
2295
+ 'aria-label'?: string;
2296
+ }
2297
+ /**
2298
+ * `FileTypeIcon` — a single lucide glyph chosen from a file's MIME type.
2299
+ * Defaults to a muted foreground tint; override via `className`.
2300
+ */
2301
+ declare function FileTypeIcon({ mimeType, className, ...props }: FileTypeIconProps): react_jsx_runtime.JSX.Element;
2302
+
2303
+ interface VisibilityBadgeProps {
2304
+ visibility: BucketVisibility;
2305
+ size?: BadgeProps['size'];
2306
+ className?: string;
2307
+ /** Hide the leading icon (e.g. in very dense rows). */
2308
+ hideIcon?: boolean;
2309
+ }
2310
+ /**
2311
+ * `VisibilityBadge` — neutral-by-default badge for a bucket's visibility.
2312
+ * Pure render. Public/private stay neutral; `temp` opts into the warning tone
2313
+ * since it signals expiring content.
2314
+ */
2315
+ declare function VisibilityBadge({ visibility, size, className, hideIcon }: VisibilityBadgeProps): react_jsx_runtime.JSX.Element;
2316
+ interface ObjectStatusBadgeProps {
2317
+ status: StorageObjectStatus;
2318
+ size?: BadgeProps['size'];
2319
+ className?: string;
2320
+ }
2321
+ /**
2322
+ * `ObjectStatusBadge` — lifecycle status for a stored object. Neutral until
2323
+ * `processed`, which opts into the success tone.
2324
+ */
2325
+ declare function ObjectStatusBadge({ status, size, className }: ObjectStatusBadgeProps): react_jsx_runtime.JSX.Element;
2326
+
2327
+ interface BucketRailProps {
2328
+ buckets: StorageBucket[];
2329
+ selectedBucketId?: string | null;
2330
+ onSelectBucket: (bucketId: string) => void;
2331
+ onNewBucket?: () => void;
2332
+ className?: string;
2333
+ }
2334
+ /**
2335
+ * `BucketRail` — a vertical, scrollable list of buckets with a pinned
2336
+ * "New bucket" action at the bottom. Stateless: selection is controlled via
2337
+ * `selectedBucketId` + `onSelectBucket`.
2338
+ */
2339
+ declare function BucketRail({ buckets, selectedBucketId, onSelectBucket, onNewBucket, className }: BucketRailProps): react_jsx_runtime.JSX.Element;
2340
+
2341
+ /** A single path segment inside a bucket (folder-style). */
2342
+ interface StorageBreadcrumbSegment {
2343
+ /** Label rendered for the segment. */
2344
+ label: string;
2345
+ /** Full prefix path this segment navigates to (e.g. "images/avatars/"). */
2346
+ path: string;
2347
+ }
2348
+ interface StorageBreadcrumbProps {
2349
+ /** The bucket name shown as the root crumb. */
2350
+ bucketKey: string;
2351
+ /** Folder segments after the bucket root. Empty = just the bucket. */
2352
+ segments?: StorageBreadcrumbSegment[];
2353
+ /**
2354
+ * Navigate callback. `path` is the segment's prefix, or `null` for the
2355
+ * bucket root crumb.
2356
+ */
2357
+ onNavigate?: (path: string | null) => void;
2358
+ className?: string;
2359
+ }
2360
+ /**
2361
+ * `StorageBreadcrumb` — bucket root plus optional folder segments. Pure render;
2362
+ * the final crumb is the current location and is not a link.
2363
+ */
2364
+ declare function StorageBreadcrumb({ bucketKey, segments, onNavigate, className }: StorageBreadcrumbProps): react_jsx_runtime.JSX.Element;
2365
+
2366
+ interface ObjectToolbarProps {
2367
+ query: string;
2368
+ onQueryChange: (query: string) => void;
2369
+ sort: ObjectSort;
2370
+ onSortChange: (sort: ObjectSort) => void;
2371
+ onUpload?: () => void;
2372
+ /** Number of currently selected objects. >0 swaps to the selection bar. */
2373
+ selectedCount?: number;
2374
+ /** Signals intent to delete the selection; the parent binds the ids + confirms. */
2375
+ onBulkDelete?: () => void;
2376
+ /**
2377
+ * Progress for an in-flight bulk delete: while set, the Delete button shows a
2378
+ * "Deleting N/M" count and is disabled; any failed ids surface as a note.
2379
+ */
2380
+ bulkDeleteProgress?: {
2381
+ done: number;
2382
+ total: number;
2383
+ failed: string[];
2384
+ };
2385
+ onClearSelection?: () => void;
2386
+ className?: string;
2387
+ }
2388
+ /**
2389
+ * `ObjectToolbar` — search + sort + upload. When `selectedCount > 0` it swaps to
2390
+ * a selection action bar (count, destructive Delete, Clear). Fully controlled.
2391
+ *
2392
+ * The destructive Delete here only signals intent via `onBulkDelete`; the parent
2393
+ * is expected to route it through an AlertDialog confirmation.
2394
+ */
2395
+ declare function ObjectToolbar({ query, onQueryChange, sort, onSortChange, onUpload, selectedCount, onBulkDelete, bulkDeleteProgress, onClearSelection, className, }: ObjectToolbarProps): react_jsx_runtime.JSX.Element;
2396
+
2397
+ interface ObjectTableProps {
2398
+ objects: StorageObject[];
2399
+ /** Controlled selection — set of selected object ids. */
2400
+ selectedIds: string[];
2401
+ onSelectionChange: (selectedIds: string[]) => void;
2402
+ sort: ObjectSort;
2403
+ onSortChange: (sort: ObjectSort) => void;
2404
+ /** Row click (outside the checkbox/menu) opens the object. */
2405
+ onOpenObject?: (object: StorageObject) => void;
2406
+ onDownload?: (object: StorageObject) => void;
2407
+ onCopyLink?: (object: StorageObject) => void;
2408
+ onRename?: (object: StorageObject) => void;
2409
+ onDelete?: (object: StorageObject) => void;
2410
+ isLoading?: boolean;
2411
+ /** Message shown in the body when there are no objects (and not loading). */
2412
+ emptyLabel?: string;
2413
+ className?: string;
2414
+ }
2415
+ declare const COLUMN_COUNT = 6;
2416
+ /**
2417
+ * `ObjectTable` — the object browser table. Built on the `Table` primitive with
2418
+ * controlled sort + selection. Row rendering is intentionally flat (no internal
2419
+ * sorting/filtering/data-fetching) so a future data layer can wrap it with
2420
+ * virtualization without changing this API.
2421
+ */
2422
+ declare function ObjectTable({ objects, selectedIds, onSelectionChange, sort, onSortChange, onOpenObject, onDownload, onCopyLink, onRename, onDelete, isLoading, emptyLabel, className, }: ObjectTableProps): react_jsx_runtime.JSX.Element;
2423
+ interface ObjectTableSkeletonProps {
2424
+ /** Number of skeleton rows to render. */
2425
+ rows?: number;
2426
+ className?: string;
2427
+ }
2428
+ /**
2429
+ * `ObjectTableSkeleton` — structural loading placeholder matching the object
2430
+ * table's column layout. Pure render.
2431
+ */
2432
+ declare function ObjectTableSkeleton({ rows, className }: ObjectTableSkeletonProps): react_jsx_runtime.JSX.Element;
2433
+
2434
+ interface ObjectDetailSheetProps {
2435
+ object: StorageObject | null;
2436
+ open: boolean;
2437
+ onOpenChange: (open: boolean) => void;
2438
+ onDownload?: (object: StorageObject) => void;
2439
+ onCopyLink?: (object: StorageObject) => void;
2440
+ /** Commit a rename. The sheet owns only the draft text field. */
2441
+ onRename?: (id: string, newName: string) => void;
2442
+ onDelete?: (id: string) => void;
2443
+ /**
2444
+ * `downloadUrl` is a per-row signed field that the host fetches lazily when the
2445
+ * sheet opens (it is omitted from list queries). Set this true while that fetch
2446
+ * is in flight so an image preview shows a Skeleton instead of a broken `<img>`.
2447
+ * The host should resolve `object.downloadUrl` before or at open.
2448
+ */
2449
+ isPreviewLoading?: boolean;
2450
+ }
2451
+ /**
2452
+ * `ObjectDetailSheet` — right-side detail panel for a single object. Image
2453
+ * thumbnail (image MIME + download URL) or large file-type glyph, a metadata
2454
+ * list, and primary actions. Delete is confirmed through an AlertDialog. The
2455
+ * sheet is fully controlled (`open` / `onOpenChange`); rename keeps a local
2456
+ * draft for the text field only.
2457
+ */
2458
+ declare function ObjectDetailSheet({ object, open, onOpenChange, onDownload, onCopyLink, onRename, onDelete, isPreviewLoading, }: ObjectDetailSheetProps): react_jsx_runtime.JSX.Element;
2459
+
2460
+ interface UploadDropzoneProps {
2461
+ /** Called with the chosen files (from drop or the browse input). */
2462
+ onFiles: (files: FileList) => void;
2463
+ /** Current uploads to display under the dropzone. */
2464
+ uploads?: UploadItem[];
2465
+ /** Cancel an in-flight or queued upload. */
2466
+ onCancel?: (id: string) => void;
2467
+ /** `accept` attribute forwarded to the file input. */
2468
+ accept?: string;
2469
+ /** Max file size in bytes — shown as a hint only (no enforcement here). */
2470
+ maxSize?: number | null;
2471
+ className?: string;
2472
+ }
2473
+ /**
2474
+ * `UploadDropzone` — a presentational drag-target plus a hidden file input
2475
+ * triggered by a "Browse" button. Drag-over highlight is the only local state;
2476
+ * all upload behavior is delegated to the parent via `onFiles`. Never blocks
2477
+ * paste. Renders `uploads` via `UploadProgressList`.
2478
+ */
2479
+ declare function UploadDropzone({ onFiles, uploads, onCancel, accept, maxSize, className }: UploadDropzoneProps): react_jsx_runtime.JSX.Element;
2480
+ interface UploadProgressListProps {
2481
+ uploads: UploadItem[];
2482
+ onCancel?: (id: string) => void;
2483
+ className?: string;
2484
+ }
2485
+ /**
2486
+ * `UploadProgressList` — rows of in-flight/queued/finished uploads with a
2487
+ * progress bar, status, and a per-item cancel for active uploads. Pure render.
2488
+ */
2489
+ declare function UploadProgressList({ uploads, onCancel, className }: UploadProgressListProps): react_jsx_runtime.JSX.Element;
2490
+
2491
+ type BucketConfigMode = 'create' | 'edit';
2492
+ /** The editable subset of a bucket, as a flat form value. */
2493
+ interface BucketConfigValue {
2494
+ key: string;
2495
+ visibility: BucketVisibility;
2496
+ allowCustomKeys: boolean;
2497
+ allowedMimeTypes: string[];
2498
+ maxFileSize: number | null;
2499
+ allowedOrigins: string[];
2500
+ description: string;
2501
+ }
2502
+ /**
2503
+ * Which optional bucket controls the host's schema actually supports. Core
2504
+ * fields (key/visibility) always render; each optional control renders only when
2505
+ * its flag is `true`. Omitted/undefined ⇒ render it (back-compat: a host that
2506
+ * doesn't pass this shows everything).
2507
+ */
2508
+ interface BucketConfigSupportedFields {
2509
+ allowCustomKeys?: boolean;
2510
+ allowedMimeTypes?: boolean;
2511
+ maxFileSize?: boolean;
2512
+ allowedOrigins?: boolean;
2513
+ description?: boolean;
2514
+ }
2515
+ interface BucketConfigSheetProps {
2516
+ mode: BucketConfigMode;
2517
+ /** Seed values (e.g. the bucket being edited). */
2518
+ initial?: Partial<StorageBucket>;
2519
+ open: boolean;
2520
+ onOpenChange: (open: boolean) => void;
2521
+ onSubmit: (value: BucketConfigValue) => void;
2522
+ onCancel?: () => void;
2523
+ /**
2524
+ * Gate optional controls to the host schema's real columns. When omitted, all
2525
+ * controls render (back-compat). Core key/visibility always render.
2526
+ */
2527
+ supportedFields?: BucketConfigSupportedFields;
2528
+ }
2529
+ /**
2530
+ * `BucketConfigSheet` — create/edit a bucket via a right-side Sheet form. All
2531
+ * inputs are local controlled draft state (no fetching); minimal validation
2532
+ * (key required on create). On submit, emits the flat `BucketConfigValue`.
2533
+ */
2534
+ declare function BucketConfigSheet({ mode, initial, open, onOpenChange, onSubmit, onCancel, supportedFields, }: BucketConfigSheetProps): react_jsx_runtime.JSX.Element;
2535
+
2536
+ type StorageEmptyStateVariant = 'no-buckets' | 'not-provisioned' | 'empty-bucket' | 'no-access';
2537
+ interface StorageEmptyStateProps {
2538
+ variant: StorageEmptyStateVariant;
2539
+ /** Primary action handler (e.g. create bucket, upload, provision). */
2540
+ onAction?: () => void;
2541
+ /**
2542
+ * Secondary action handler. Only the `no-access` variant renders a
2543
+ * secondary action (refresh / learn more); ignored otherwise.
2544
+ */
2545
+ onSecondaryAction?: () => void;
2546
+ className?: string;
2547
+ }
2548
+ /**
2549
+ * `StorageEmptyState` — a centered icon, balanced heading, body line, and a
2550
+ * single primary action (except `no-access`, which offers only a secondary
2551
+ * refresh). Pure render, mirrors the stateless `PageHeader` style.
2552
+ */
2553
+ declare function StorageEmptyState({ variant, onAction, onSecondaryAction, className }: StorageEmptyStateProps): react_jsx_runtime.JSX.Element;
2554
+
2555
+ interface StorageBrowserProps {
2556
+ buckets: StorageBucket[];
2557
+ selectedBucketId?: string | null;
2558
+ onSelectBucket: (bucketId: string) => void;
2559
+ onNewBucket?: () => void;
2560
+ objects: StorageObject[];
2561
+ selectedIds: string[];
2562
+ onSelectionChange: (selectedIds: string[]) => void;
2563
+ sort: ObjectSort;
2564
+ onSortChange: (sort: ObjectSort) => void;
2565
+ query: string;
2566
+ onQueryChange: (query: string) => void;
2567
+ segments?: StorageBreadcrumbSegment[];
2568
+ onNavigate?: (path: string | null) => void;
2569
+ onOpenObject?: (object: StorageObject) => void;
2570
+ onUpload?: () => void;
2571
+ /** Delete the currently selected objects. Receives the selected ids. */
2572
+ onBulkDelete?: (ids: string[]) => void;
2573
+ /**
2574
+ * Progress surface for an in-flight bulk delete: N-of-M + ids that failed.
2575
+ * When set, the toolbar shows a "Deleting N/M" indicator and a partial-failure
2576
+ * note.
2577
+ */
2578
+ bulkDeleteProgress?: {
2579
+ done: number;
2580
+ total: number;
2581
+ failed: string[];
2582
+ };
2583
+ onClearSelection?: () => void;
2584
+ onDownload?: (object: StorageObject) => void;
2585
+ onCopyLink?: (object: StorageObject) => void;
2586
+ onRename?: (object: StorageObject) => void;
2587
+ onDelete?: (object: StorageObject) => void;
2588
+ isLoading?: boolean;
2589
+ /** Forwarded to the object table's empty body row (e.g. when a search filters all out). */
2590
+ emptyLabel?: string;
2591
+ /**
2592
+ * When set, the right pane shows an empty state instead of the table.
2593
+ * `'empty-bucket'` still renders the toolbar; `'no-access'`/`'not-provisioned'`
2594
+ * take over the whole pane.
2595
+ */
2596
+ emptyState?: StorageEmptyStateVariant | null;
2597
+ onEmptyStateAction?: () => void;
2598
+ onEmptyStateSecondaryAction?: () => void;
2599
+ className?: string;
2600
+ }
2601
+ /**
2602
+ * `StorageBrowser` — master/detail page composition: a fixed-width `BucketRail`
2603
+ * on the left and an object browser on the right (header + toolbar +
2604
+ * breadcrumb + table / empty state). Owns no data logic; it arranges children
2605
+ * and forwards every callback. The detail sheet and config/upload sheets are
2606
+ * rendered by the host alongside this component.
2607
+ */
2608
+ declare function StorageBrowser({ buckets, selectedBucketId, onSelectBucket, onNewBucket, objects, selectedIds, onSelectionChange, sort, onSortChange, query, onQueryChange, segments, onNavigate, onOpenObject, onUpload, onBulkDelete, bulkDeleteProgress, onClearSelection, onDownload, onCopyLink, onRename, onDelete, isLoading, emptyLabel, emptyState, onEmptyStateAction, onEmptyStateSecondaryAction, className, }: StorageBrowserProps): react_jsx_runtime.JSX.Element;
2609
+
2610
+ export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BucketConfigMode, BucketConfigSheet, type BucketConfigSupportedFields, type BucketConfigValue, BucketRail, type BucketVisibility, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, type FieldProps, FieldRow, type FieldRowProps, FileTypeIcon, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, COLUMN_COUNT as OBJECT_TABLE_COLUMN_COUNT, ObjectDetailSheet, type ObjectSort, type ObjectSortColumn, ObjectStatusBadge, ObjectTable, ObjectTableSkeleton, ObjectToolbar, OrgChart, type OrgChartEdge, type OrgChartNodeData, type OrgChartProps, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, StorageBreadcrumb, type StorageBreadcrumbSegment, StorageBrowser, type StorageBucket, StorageEmptyState, type StorageEmptyStateVariant, type StorageObject, type StorageObjectStatus, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, UploadDropzone, type UploadItem, UploadProgressList, type UploadStatus, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, VisibilityBadge, alertVariants, backdropVariants, badgeVariants, bucketDisplayName, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, formatDate, formatDateTime, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, humanizeBytes, isCardVisible, mergeProps, normalizeWidth, objectDisplayName, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, shortMimeLabel, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };