import { forwardRef } from "react"; import { AlertBanner as BytelystAlertBanner, FormSection as BytelystFormSection, FieldGrid as BytelystFieldGrid, AppShell as BytelystAppShell, AppShellMain as BytelystAppShellMain, AppShellMobileToggle as BytelystAppShellMobileToggle, AppShellNav as BytelystAppShellNav, AppShellNavItem as BytelystAppShellNavItem, AppShellOverlay as BytelystAppShellOverlay, AppShellPageHeader as BytelystAppShellPageHeader, AppShellSidebar as BytelystAppShellSidebar, AppShellSkipLink as BytelystAppShellSkipLink, Badge as BytelystBadge, Button as BytelystButton, Card as BytelystCard, Checkbox, DataList as BytelystDataList, DataListItem as BytelystDataListItem, DataListMeta, DataTable, DataTableBody, DataTableCell, DataTableHead, DataTableHeader, DataTableRow, DiffCard as BytelystDiffCard, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState as BytelystEmptyState, IconButton as BytelystIconButton, Input as BytelystInput, Label as BytelystLabel, ListItemButton as BytelystListItemButton, LoadingSpinner as BytelystLoadingSpinner, Panel as BytelystPanel, PanelBody as BytelystPanelBody, PanelDescription as BytelystPanelDescription, PanelHeader as BytelystPanelHeader, PanelTitle as BytelystPanelTitle, RadioGroup, RadioGroupItem, SegmentedControl, Select as BytelystSelect, StatusBadge as BytelystStatusBadge, Surface as BytelystSurface, SurfaceList as BytelystSurfaceList, SurfaceListItem as BytelystSurfaceListItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea as BytelystTextarea, Timeline as BytelystTimeline, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type AppShellMainProps, type AppShellMobileToggleProps, type AppShellNavItemProps, type AppShellNavProps, type AppShellOverlayProps, type AppShellPageHeaderProps, type AppShellProps, type AppShellSidebarProps, type AppShellSkipLinkProps, type BadgeProps, type ButtonProps, type CardProps, type DataListItemProps, type DataListProps, type DiffCardProps, type AlertBannerProps, type FormSectionProps, type FieldGridProps, type EmptyStateProps, type IconButtonProps, type InputProps, type LabelProps, type ListItemButtonProps, type LoadingSpinnerProps, type PanelBodyProps, type PanelDescriptionProps, type PanelHeaderProps, type PanelProps, type PanelTitleProps, type SelectProps, type StatusBadgeProps, type StatusTone, type SurfaceListItemProps, type SurfaceListProps, type SurfaceProps, type TextareaProps, type TimelineProps, } from "@bytelyst/ui"; function mergeClassNames(...classes: Array) { return classes.filter(Boolean).join(" "); } export { Checkbox, DataListMeta, DataTable, DataTableBody, DataTableCell, DataTableHead, DataTableHeader, DataTableRow, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuTrigger, RadioGroup, RadioGroupItem, SegmentedControl, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, }; export type NoteLettStatus = | "applied" | "approved" | "archived" | "draft" | "error" | "failed" | "pending" | "proposed" | "published" | "rejected" | "review"; const statusToneMap: Record = { applied: "success", approved: "success", archived: "neutral", draft: "neutral", error: "danger", failed: "danger", pending: "warning", proposed: "info", published: "success", rejected: "danger", review: "accent", }; export function AppShell({ className, ...props }: AppShellProps) { return ; } export function AppShellSkipLink({ className, ...props }: AppShellSkipLinkProps) { return ; } export function AppShellMobileToggle({ className, ...props }: AppShellMobileToggleProps) { return ; } export function AppShellOverlay({ className, ...props }: AppShellOverlayProps) { return ; } export function AppShellSidebar({ className, ...props }: AppShellSidebarProps) { return ; } export function AppShellMain({ className, ...props }: AppShellMainProps) { return ; } export function AppShellPageHeader({ className, ...props }: AppShellPageHeaderProps) { return ; } export function AppShellNav({ className, ...props }: AppShellNavProps) { return ; } export function AppShellNavItem({ className, ...props }: AppShellNavItemProps) { return ; } function getStatusTone(status: NoteLettStatus): StatusTone { return statusToneMap[status]; } export function Button({ className, ...props }: ButtonProps) { return ( ); } export function Badge({ className, ...props }: BadgeProps) { return ; } export function Card({ className, ...props }: CardProps) { return ( ); } export function Panel({ className, ...props }: PanelProps) { return ( ); } export function PanelHeader({ className, ...props }: PanelHeaderProps) { return ; } export function PanelBody({ className, ...props }: PanelBodyProps) { return ; } export function PanelTitle({ className, ...props }: PanelTitleProps) { return ; } export function PanelDescription({ className, ...props }: PanelDescriptionProps) { return ; } export function IconButton({ className, ...props }: IconButtonProps) { return ; } export function ListItemButton({ className, ...props }: ListItemButtonProps) { return ( ); } export interface NoteLettStatusBadgeProps extends StatusBadgeProps { status?: NoteLettStatus; } export function StatusBadge({ className, status, tone, ...props }: NoteLettStatusBadgeProps) { return ; } export const Input = forwardRef(function Input( { className, ...props }, ref, ) { return ( ); }); export const Textarea = forwardRef(function Textarea( { className, ...props }, ref, ) { return ( ); }); export function Select({ className, ...props }: SelectProps) { return ( ); } export function Label({ className, ...props }: LabelProps) { return ; } export function Timeline({ className, ...props }: TimelineProps) { return ; } export function DiffCard({ className, ...props }: DiffCardProps) { return ; } export function Surface({ className, padding = "md", ...props }: SurfaceProps) { return ( ); } export function SurfaceList({ density = "normal", className, ...props }: SurfaceListProps) { return ; } export function SurfaceListItem({ className, ...props }: SurfaceListItemProps) { return ; } export function DataList({ density = "normal", className, ...props }: DataListProps) { return ; } export function DataListItem({ className, ...props }: DataListItemProps) { return ; } export const OperationalList = DataList; export const OperationalListItem = DataListItem; export function EmptyState({ className, ...props }: EmptyStateProps) { return ; } export function AlertBanner({ className, ...props }: AlertBannerProps) { return ; } export function FormSection({ className, ...props }: FormSectionProps) { return ; } export function FieldGrid({ className, ...props }: FieldGridProps) { return ; } export function LoadingSpinner({ className, ...props }: LoadingSpinnerProps) { return ; }