@webdevarif/dashui 0.2.5 → 0.3.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.d.mts +82 -1
- package/dist/index.d.ts +82 -1
- package/dist/index.js +772 -67
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +769 -70
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -451,6 +451,87 @@ interface LoadingSpinnerProps {
|
|
|
451
451
|
}
|
|
452
452
|
declare function LoadingSpinner({ size, className }: LoadingSpinnerProps): react_jsx_runtime.JSX.Element;
|
|
453
453
|
|
|
454
|
+
type PostStatus = "DRAFT" | "PUBLISHED" | "SCHEDULED" | "ARCHIVED";
|
|
455
|
+
interface PostStatusBadgeProps {
|
|
456
|
+
status: PostStatus;
|
|
457
|
+
size?: "sm" | "md";
|
|
458
|
+
className?: string;
|
|
459
|
+
}
|
|
460
|
+
declare function PostStatusBadge({ status, size, className, }: PostStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
461
|
+
|
|
462
|
+
interface PostListItem {
|
|
463
|
+
id: string;
|
|
464
|
+
title: string;
|
|
465
|
+
slug: string;
|
|
466
|
+
status: PostStatus;
|
|
467
|
+
author?: string | null;
|
|
468
|
+
publishedAt?: Date | string | null;
|
|
469
|
+
createdAt: Date | string;
|
|
470
|
+
featuredImageUrl?: string | null;
|
|
471
|
+
excerpt?: string | null;
|
|
472
|
+
}
|
|
473
|
+
interface PostListTableProps {
|
|
474
|
+
posts: PostListItem[];
|
|
475
|
+
loading?: boolean;
|
|
476
|
+
singularLabel?: string;
|
|
477
|
+
onEdit?: (id: string) => void;
|
|
478
|
+
onDelete?: (id: string) => void;
|
|
479
|
+
onDuplicate?: (id: string) => void;
|
|
480
|
+
onStatusChange?: (id: string, status: PostStatus) => void;
|
|
481
|
+
emptyMessage?: string;
|
|
482
|
+
emptyIcon?: React.ReactNode;
|
|
483
|
+
onNewPost?: () => void;
|
|
484
|
+
newPostLabel?: string;
|
|
485
|
+
className?: string;
|
|
486
|
+
}
|
|
487
|
+
declare function PostListTable({ posts, loading, singularLabel, onEdit, onDelete, onDuplicate, onStatusChange, emptyMessage, emptyIcon, onNewPost, newPostLabel, className, }: PostListTableProps): react_jsx_runtime.JSX.Element;
|
|
488
|
+
|
|
489
|
+
interface PostFiltersBarProps {
|
|
490
|
+
search: string;
|
|
491
|
+
onSearch: (v: string) => void;
|
|
492
|
+
status: string;
|
|
493
|
+
onStatusChange: (v: string) => void;
|
|
494
|
+
onNew?: () => void;
|
|
495
|
+
newLabel?: string;
|
|
496
|
+
total?: number;
|
|
497
|
+
typeLabel?: string;
|
|
498
|
+
className?: string;
|
|
499
|
+
}
|
|
500
|
+
declare function PostFiltersBar({ search, onSearch, status, onStatusChange, onNew, newLabel, total, typeLabel, className, }: PostFiltersBarProps): react_jsx_runtime.JSX.Element;
|
|
501
|
+
|
|
502
|
+
interface PostEditorShellProps {
|
|
503
|
+
title?: string;
|
|
504
|
+
backLabel?: string;
|
|
505
|
+
onBack?: () => void;
|
|
506
|
+
onSave?: () => void;
|
|
507
|
+
onPublish?: () => void;
|
|
508
|
+
saving?: boolean;
|
|
509
|
+
publishing?: boolean;
|
|
510
|
+
status?: PostStatus;
|
|
511
|
+
children: React.ReactNode;
|
|
512
|
+
sidebar: React.ReactNode;
|
|
513
|
+
className?: string;
|
|
514
|
+
}
|
|
515
|
+
declare function PostEditorShell({ title, backLabel, onBack, onSave, onPublish, saving, publishing, status, children, sidebar, className, }: PostEditorShellProps): react_jsx_runtime.JSX.Element;
|
|
516
|
+
|
|
517
|
+
interface SlugInputProps {
|
|
518
|
+
value: string;
|
|
519
|
+
onChange: (value: string) => void;
|
|
520
|
+
onGenerate?: () => void;
|
|
521
|
+
prefix?: string;
|
|
522
|
+
disabled?: boolean;
|
|
523
|
+
className?: string;
|
|
524
|
+
}
|
|
525
|
+
declare function SlugInput({ value, onChange, onGenerate, prefix, disabled, className, }: SlugInputProps): react_jsx_runtime.JSX.Element;
|
|
526
|
+
|
|
527
|
+
interface PostSidebarSectionProps {
|
|
528
|
+
title: string;
|
|
529
|
+
children: React.ReactNode;
|
|
530
|
+
defaultOpen?: boolean;
|
|
531
|
+
className?: string;
|
|
532
|
+
}
|
|
533
|
+
declare function PostSidebarSection({ title, children, defaultOpen, className, }: PostSidebarSectionProps): react_jsx_runtime.JSX.Element;
|
|
534
|
+
|
|
454
535
|
declare function useDisclosure(initial?: boolean): {
|
|
455
536
|
isOpen: boolean;
|
|
456
537
|
open: () => void;
|
|
@@ -535,4 +616,4 @@ interface SkeletonProps {
|
|
|
535
616
|
}
|
|
536
617
|
declare function Skeleton({ width, height, rounded, style }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
537
618
|
|
|
538
|
-
export { Alert, type AlertProps, AppShell, type AppShellProps, AuthButton, AuthCard, AuthDivider, AuthField, AuthFootnote, AuthHeader, AuthLogo, AuthShell, Badge, type BadgeProps, type Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type Column, ConfirmDialog, type ConfirmDialogProps, DashboardLayout, type DashboardLayoutProps, DataTable, type DataTableProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, FormSection, type FormSectionProps, ImagePickerField, type ImagePickerFieldProps, Input, type InputProps, Label, LoadingSpinner, type LoadingSpinnerProps, MediaCard, type MediaCardFile, type MediaCardProps, MediaGrid, type MediaGridProps, MediaPickerDialog, type MediaPickerDialogFolder, type MediaPickerDialogProps, type NavItem, NotificationBell, type NotificationBellProps, Page, type PageProps, PageSection, type PageSectionProps, Pagination, type PaginationProps, PlanBadge, type PlanBadgeProps, type PlanId, Popover, PopoverContent, PopoverTrigger, SearchBar, type SearchBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, type SidebarItem, type SidebarProps, Skeleton, type Stat, Stats, type StatsProps, StorageBar, type StorageBarProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, type TopBarProps, type UploadItem, badgeVariants, buttonVariants, cn, useDisclosure, usePagination };
|
|
619
|
+
export { Alert, type AlertProps, AppShell, type AppShellProps, AuthButton, AuthCard, AuthDivider, AuthField, AuthFootnote, AuthHeader, AuthLogo, AuthShell, Badge, type BadgeProps, type Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type Column, ConfirmDialog, type ConfirmDialogProps, DashboardLayout, type DashboardLayoutProps, DataTable, type DataTableProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, FormSection, type FormSectionProps, ImagePickerField, type ImagePickerFieldProps, Input, type InputProps, Label, LoadingSpinner, type LoadingSpinnerProps, MediaCard, type MediaCardFile, type MediaCardProps, MediaGrid, type MediaGridProps, MediaPickerDialog, type MediaPickerDialogFolder, type MediaPickerDialogProps, type NavItem, NotificationBell, type NotificationBellProps, Page, type PageProps, PageSection, type PageSectionProps, Pagination, type PaginationProps, PlanBadge, type PlanBadgeProps, type PlanId, Popover, PopoverContent, PopoverTrigger, PostEditorShell, type PostEditorShellProps, PostFiltersBar, type PostFiltersBarProps, type PostListItem, PostListTable, type PostListTableProps, PostSidebarSection, type PostSidebarSectionProps, type PostStatus, PostStatusBadge, type PostStatusBadgeProps, SearchBar, type SearchBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, type SidebarItem, type SidebarProps, Skeleton, SlugInput, type SlugInputProps, type Stat, Stats, type StatsProps, StorageBar, type StorageBarProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, type TopBarProps, type UploadItem, badgeVariants, buttonVariants, cn, useDisclosure, usePagination };
|
package/dist/index.d.ts
CHANGED
|
@@ -451,6 +451,87 @@ interface LoadingSpinnerProps {
|
|
|
451
451
|
}
|
|
452
452
|
declare function LoadingSpinner({ size, className }: LoadingSpinnerProps): react_jsx_runtime.JSX.Element;
|
|
453
453
|
|
|
454
|
+
type PostStatus = "DRAFT" | "PUBLISHED" | "SCHEDULED" | "ARCHIVED";
|
|
455
|
+
interface PostStatusBadgeProps {
|
|
456
|
+
status: PostStatus;
|
|
457
|
+
size?: "sm" | "md";
|
|
458
|
+
className?: string;
|
|
459
|
+
}
|
|
460
|
+
declare function PostStatusBadge({ status, size, className, }: PostStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
461
|
+
|
|
462
|
+
interface PostListItem {
|
|
463
|
+
id: string;
|
|
464
|
+
title: string;
|
|
465
|
+
slug: string;
|
|
466
|
+
status: PostStatus;
|
|
467
|
+
author?: string | null;
|
|
468
|
+
publishedAt?: Date | string | null;
|
|
469
|
+
createdAt: Date | string;
|
|
470
|
+
featuredImageUrl?: string | null;
|
|
471
|
+
excerpt?: string | null;
|
|
472
|
+
}
|
|
473
|
+
interface PostListTableProps {
|
|
474
|
+
posts: PostListItem[];
|
|
475
|
+
loading?: boolean;
|
|
476
|
+
singularLabel?: string;
|
|
477
|
+
onEdit?: (id: string) => void;
|
|
478
|
+
onDelete?: (id: string) => void;
|
|
479
|
+
onDuplicate?: (id: string) => void;
|
|
480
|
+
onStatusChange?: (id: string, status: PostStatus) => void;
|
|
481
|
+
emptyMessage?: string;
|
|
482
|
+
emptyIcon?: React.ReactNode;
|
|
483
|
+
onNewPost?: () => void;
|
|
484
|
+
newPostLabel?: string;
|
|
485
|
+
className?: string;
|
|
486
|
+
}
|
|
487
|
+
declare function PostListTable({ posts, loading, singularLabel, onEdit, onDelete, onDuplicate, onStatusChange, emptyMessage, emptyIcon, onNewPost, newPostLabel, className, }: PostListTableProps): react_jsx_runtime.JSX.Element;
|
|
488
|
+
|
|
489
|
+
interface PostFiltersBarProps {
|
|
490
|
+
search: string;
|
|
491
|
+
onSearch: (v: string) => void;
|
|
492
|
+
status: string;
|
|
493
|
+
onStatusChange: (v: string) => void;
|
|
494
|
+
onNew?: () => void;
|
|
495
|
+
newLabel?: string;
|
|
496
|
+
total?: number;
|
|
497
|
+
typeLabel?: string;
|
|
498
|
+
className?: string;
|
|
499
|
+
}
|
|
500
|
+
declare function PostFiltersBar({ search, onSearch, status, onStatusChange, onNew, newLabel, total, typeLabel, className, }: PostFiltersBarProps): react_jsx_runtime.JSX.Element;
|
|
501
|
+
|
|
502
|
+
interface PostEditorShellProps {
|
|
503
|
+
title?: string;
|
|
504
|
+
backLabel?: string;
|
|
505
|
+
onBack?: () => void;
|
|
506
|
+
onSave?: () => void;
|
|
507
|
+
onPublish?: () => void;
|
|
508
|
+
saving?: boolean;
|
|
509
|
+
publishing?: boolean;
|
|
510
|
+
status?: PostStatus;
|
|
511
|
+
children: React.ReactNode;
|
|
512
|
+
sidebar: React.ReactNode;
|
|
513
|
+
className?: string;
|
|
514
|
+
}
|
|
515
|
+
declare function PostEditorShell({ title, backLabel, onBack, onSave, onPublish, saving, publishing, status, children, sidebar, className, }: PostEditorShellProps): react_jsx_runtime.JSX.Element;
|
|
516
|
+
|
|
517
|
+
interface SlugInputProps {
|
|
518
|
+
value: string;
|
|
519
|
+
onChange: (value: string) => void;
|
|
520
|
+
onGenerate?: () => void;
|
|
521
|
+
prefix?: string;
|
|
522
|
+
disabled?: boolean;
|
|
523
|
+
className?: string;
|
|
524
|
+
}
|
|
525
|
+
declare function SlugInput({ value, onChange, onGenerate, prefix, disabled, className, }: SlugInputProps): react_jsx_runtime.JSX.Element;
|
|
526
|
+
|
|
527
|
+
interface PostSidebarSectionProps {
|
|
528
|
+
title: string;
|
|
529
|
+
children: React.ReactNode;
|
|
530
|
+
defaultOpen?: boolean;
|
|
531
|
+
className?: string;
|
|
532
|
+
}
|
|
533
|
+
declare function PostSidebarSection({ title, children, defaultOpen, className, }: PostSidebarSectionProps): react_jsx_runtime.JSX.Element;
|
|
534
|
+
|
|
454
535
|
declare function useDisclosure(initial?: boolean): {
|
|
455
536
|
isOpen: boolean;
|
|
456
537
|
open: () => void;
|
|
@@ -535,4 +616,4 @@ interface SkeletonProps {
|
|
|
535
616
|
}
|
|
536
617
|
declare function Skeleton({ width, height, rounded, style }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
537
618
|
|
|
538
|
-
export { Alert, type AlertProps, AppShell, type AppShellProps, AuthButton, AuthCard, AuthDivider, AuthField, AuthFootnote, AuthHeader, AuthLogo, AuthShell, Badge, type BadgeProps, type Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type Column, ConfirmDialog, type ConfirmDialogProps, DashboardLayout, type DashboardLayoutProps, DataTable, type DataTableProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, FormSection, type FormSectionProps, ImagePickerField, type ImagePickerFieldProps, Input, type InputProps, Label, LoadingSpinner, type LoadingSpinnerProps, MediaCard, type MediaCardFile, type MediaCardProps, MediaGrid, type MediaGridProps, MediaPickerDialog, type MediaPickerDialogFolder, type MediaPickerDialogProps, type NavItem, NotificationBell, type NotificationBellProps, Page, type PageProps, PageSection, type PageSectionProps, Pagination, type PaginationProps, PlanBadge, type PlanBadgeProps, type PlanId, Popover, PopoverContent, PopoverTrigger, SearchBar, type SearchBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, type SidebarItem, type SidebarProps, Skeleton, type Stat, Stats, type StatsProps, StorageBar, type StorageBarProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, type TopBarProps, type UploadItem, badgeVariants, buttonVariants, cn, useDisclosure, usePagination };
|
|
619
|
+
export { Alert, type AlertProps, AppShell, type AppShellProps, AuthButton, AuthCard, AuthDivider, AuthField, AuthFootnote, AuthHeader, AuthLogo, AuthShell, Badge, type BadgeProps, type Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type Column, ConfirmDialog, type ConfirmDialogProps, DashboardLayout, type DashboardLayoutProps, DataTable, type DataTableProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, FormSection, type FormSectionProps, ImagePickerField, type ImagePickerFieldProps, Input, type InputProps, Label, LoadingSpinner, type LoadingSpinnerProps, MediaCard, type MediaCardFile, type MediaCardProps, MediaGrid, type MediaGridProps, MediaPickerDialog, type MediaPickerDialogFolder, type MediaPickerDialogProps, type NavItem, NotificationBell, type NotificationBellProps, Page, type PageProps, PageSection, type PageSectionProps, Pagination, type PaginationProps, PlanBadge, type PlanBadgeProps, type PlanId, Popover, PopoverContent, PopoverTrigger, PostEditorShell, type PostEditorShellProps, PostFiltersBar, type PostFiltersBarProps, type PostListItem, PostListTable, type PostListTableProps, PostSidebarSection, type PostSidebarSectionProps, type PostStatus, PostStatusBadge, type PostStatusBadgeProps, SearchBar, type SearchBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, type SidebarItem, type SidebarProps, Skeleton, SlugInput, type SlugInputProps, type Stat, Stats, type StatsProps, StorageBar, type StorageBarProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, type TopBarProps, type UploadItem, badgeVariants, buttonVariants, cn, useDisclosure, usePagination };
|