@postxl/ui-components 1.5.4 → 1.5.5
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.ts +34 -34
- package/dist/index.js +156 -154
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2272,28 +2272,26 @@ declare function Sidebar({
|
|
|
2272
2272
|
side,
|
|
2273
2273
|
variant,
|
|
2274
2274
|
collapsible,
|
|
2275
|
-
sidebarId,
|
|
2276
2275
|
minWidth,
|
|
2277
2276
|
maxWidth,
|
|
2278
2277
|
className,
|
|
2279
2278
|
children,
|
|
2280
2279
|
...props
|
|
2281
2280
|
}: React$13.ComponentProps<'div'> & {
|
|
2282
|
-
side?:
|
|
2281
|
+
side?: SidebarSide;
|
|
2283
2282
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
2284
2283
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
2285
|
-
sidebarId?: string;
|
|
2286
2284
|
minWidth?: number;
|
|
2287
2285
|
maxWidth?: number;
|
|
2288
2286
|
}): react_jsx_runtime171.JSX.Element;
|
|
2289
2287
|
declare function SidebarTrigger({
|
|
2290
2288
|
className,
|
|
2291
2289
|
onClick,
|
|
2292
|
-
|
|
2290
|
+
side,
|
|
2293
2291
|
children,
|
|
2294
2292
|
...props
|
|
2295
2293
|
}: React$13.ComponentProps<typeof Button> & {
|
|
2296
|
-
|
|
2294
|
+
side?: SidebarSide;
|
|
2297
2295
|
}): react_jsx_runtime171.JSX.Element;
|
|
2298
2296
|
declare function SidebarRail({
|
|
2299
2297
|
className,
|
|
@@ -2436,20 +2434,19 @@ type SidebarContextProps = {
|
|
|
2436
2434
|
maxWidth: number;
|
|
2437
2435
|
};
|
|
2438
2436
|
type SidebarRegistryEntry = {
|
|
2439
|
-
side: 'left' | 'right';
|
|
2440
2437
|
minWidth: number;
|
|
2441
2438
|
maxWidth: number;
|
|
2442
2439
|
};
|
|
2443
2440
|
type SidebarProviderState = {
|
|
2444
|
-
openStates: Record<
|
|
2445
|
-
mobileStates: Record<
|
|
2446
|
-
widthStates: Record<
|
|
2447
|
-
sidebarRegistry: Record<
|
|
2448
|
-
setOpen: (
|
|
2449
|
-
setOpenMobile: (
|
|
2450
|
-
setWidth: (
|
|
2451
|
-
registerSidebar: (
|
|
2452
|
-
unregisterSidebar: (
|
|
2441
|
+
openStates: Partial<Record<SidebarSide, boolean>>;
|
|
2442
|
+
mobileStates: Partial<Record<SidebarSide, boolean>>;
|
|
2443
|
+
widthStates: Partial<Record<SidebarSide, number | undefined>>;
|
|
2444
|
+
sidebarRegistry: Partial<Record<SidebarSide, SidebarRegistryEntry>>;
|
|
2445
|
+
setOpen: (side: SidebarSide, open: boolean) => void;
|
|
2446
|
+
setOpenMobile: (side: SidebarSide, open: boolean) => void;
|
|
2447
|
+
setWidth: (side: SidebarSide, width: number) => void;
|
|
2448
|
+
registerSidebar: (side: SidebarSide, config: SidebarRegistryEntry) => void;
|
|
2449
|
+
unregisterSidebar: (side: SidebarSide) => void;
|
|
2453
2450
|
isMobile: boolean;
|
|
2454
2451
|
defaultOpen: boolean;
|
|
2455
2452
|
isResizing: boolean;
|
|
@@ -2464,27 +2461,27 @@ type SidebarProviderState = {
|
|
|
2464
2461
|
declare const SidebarContext: React$12.Context<SidebarProviderState | null>;
|
|
2465
2462
|
/**
|
|
2466
2463
|
* Context that identifies which sidebar a component belongs to.
|
|
2467
|
-
* Set by `<Sidebar
|
|
2464
|
+
* Set by `<Sidebar side="...">`, consumed by `useSidebar()`.
|
|
2468
2465
|
*/
|
|
2469
|
-
declare const
|
|
2466
|
+
declare const SidebarSideContext: React$12.Context<SidebarSide | null>;
|
|
2470
2467
|
/**
|
|
2471
2468
|
* Returns the state and controls for a specific sidebar.
|
|
2472
2469
|
*
|
|
2473
|
-
* @param
|
|
2474
|
-
* `
|
|
2470
|
+
* @param side - Optional explicit sidebar side. Falls back to the nearest
|
|
2471
|
+
* `SidebarSideContext` (set by the parent `<Sidebar>`), then to `"left"`.
|
|
2475
2472
|
*/
|
|
2476
|
-
declare function useSidebar(
|
|
2473
|
+
declare function useSidebar(side?: SidebarSide): SidebarContextProps;
|
|
2477
2474
|
/**
|
|
2478
|
-
* Returns a list of all registered sidebars with their
|
|
2475
|
+
* Returns a list of all registered sidebars with their sides.
|
|
2479
2476
|
*/
|
|
2480
2477
|
declare function useRegisteredSidebars(): {
|
|
2481
|
-
|
|
2482
|
-
side: 'left' | 'right';
|
|
2478
|
+
side: SidebarSide;
|
|
2483
2479
|
}[];
|
|
2484
2480
|
declare function SidebarProvider({
|
|
2485
2481
|
defaultOpen,
|
|
2486
2482
|
open: openProp,
|
|
2487
2483
|
onOpenChange: setOpenProp,
|
|
2484
|
+
controlledSide,
|
|
2488
2485
|
width: widthProp,
|
|
2489
2486
|
onWidthChange,
|
|
2490
2487
|
minWidth,
|
|
@@ -2501,19 +2498,19 @@ declare function SidebarProvider({
|
|
|
2501
2498
|
defaultOpen?: boolean;
|
|
2502
2499
|
open?: boolean;
|
|
2503
2500
|
onOpenChange?: (open: boolean) => void;
|
|
2504
|
-
/**
|
|
2501
|
+
/** Which sidebar the controlled `open`/`onOpenChange`/`width`/`onWidthChange` props apply to. Defaults to `'left'`. */
|
|
2502
|
+
controlledSide?: SidebarSide;
|
|
2505
2503
|
width?: number;
|
|
2506
|
-
/** Called when the "default" sidebar width changes via resize (backward compat). */
|
|
2507
2504
|
onWidthChange?: (width: number) => void;
|
|
2508
2505
|
minWidth?: number;
|
|
2509
2506
|
maxWidth?: number;
|
|
2510
2507
|
storageKey?: string;
|
|
2511
|
-
defaultOpenSidebars?: Record<
|
|
2512
|
-
/** Default widths per sidebar
|
|
2513
|
-
defaultWidths?: Record<
|
|
2514
|
-
/** Keyboard shortcuts mapping: key character → sidebar
|
|
2515
|
-
* Defaults to `{ b: '
|
|
2516
|
-
keyboardShortcuts?: Record<string,
|
|
2508
|
+
defaultOpenSidebars?: Partial<Record<SidebarSide, boolean>>;
|
|
2509
|
+
/** Default widths per sidebar side (in pixels). */
|
|
2510
|
+
defaultWidths?: Partial<Record<SidebarSide, number>>;
|
|
2511
|
+
/** Keyboard shortcuts mapping: key character → sidebar side. Uses Ctrl/Cmd modifier.
|
|
2512
|
+
* Defaults to `{ b: 'left' }`. Set to `false` to disable all shortcuts. */
|
|
2513
|
+
keyboardShortcuts?: Record<string, SidebarSide> | false;
|
|
2517
2514
|
}): react_jsx_runtime194.JSX.Element;
|
|
2518
2515
|
|
|
2519
2516
|
//#endregion
|
|
@@ -2541,9 +2538,12 @@ type SidebarTabsState = {
|
|
|
2541
2538
|
};
|
|
2542
2539
|
declare const SidebarTabsContext: React$11.Context<SidebarTabsState | null>;
|
|
2543
2540
|
declare function SidebarTabsProvider({
|
|
2544
|
-
children
|
|
2541
|
+
children,
|
|
2542
|
+
storageKey
|
|
2545
2543
|
}: Readonly<{
|
|
2546
2544
|
children: React$11.ReactNode;
|
|
2545
|
+
/** localStorage key to persist the active tab per side. */
|
|
2546
|
+
storageKey?: string;
|
|
2547
2547
|
}>): react_jsx_runtime196.JSX.Element;
|
|
2548
2548
|
declare function useSidebarTabs(side?: SidebarSide): SidebarTabsState | {
|
|
2549
2549
|
tabs: SidebarTabDefinition[];
|
|
@@ -2574,7 +2574,7 @@ declare function DynamicTabbedSidebar({
|
|
|
2574
2574
|
side: SidebarSide;
|
|
2575
2575
|
orientation?: 'horizontal' | 'vertical';
|
|
2576
2576
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
2577
|
-
} & Omit<React$10.ComponentProps<typeof Sidebar>, 'side' | 'collapsible'
|
|
2577
|
+
} & Omit<React$10.ComponentProps<typeof Sidebar>, 'side' | 'collapsible'>): react_jsx_runtime195.JSX.Element | null;
|
|
2578
2578
|
|
|
2579
2579
|
//#endregion
|
|
2580
2580
|
//#region src/skeleton/skeleton.d.ts
|
|
@@ -2939,5 +2939,5 @@ declare const TreeView: React$2.ForwardRefExoticComponent<Callbacks & {
|
|
|
2939
2939
|
} & React$2.RefAttributes<HTMLDivElement>>;
|
|
2940
2940
|
|
|
2941
2941
|
//#endregion
|
|
2942
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, KanbanBoard as Board, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CarouselProps, Cell, CellHierarchyOption, CellPosition, CellRange, CellSelectOption, CellSelectOptionsMap, CellSelectOptionsUnion, CellVariantProps, Checkbox, CheckboxCell, Collapse, CollapseContent, CollapseTrigger, KanbanColumn as Column, KanbanColumnHandle as ColumnHandle, ColumnMenuRendererFunction, ComboboxDemo, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandInputProps, CommandItem, CommandList, CommandPalette, CommandPaletteDialog, CommandPaletteEmpty, CommandPaletteGroup, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteSeparator, CommandPaletteShortcut, CommandSeparator, CommandShortcut, CommentCallbacks, CommentCreate, CommentGroup, CommentItem, CommentList, CommentThread, ContentFrame, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuState, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataGrid, DataGridCell, DataGridCellWrapper, DataGridColumnHeader, DataGridContextMenu, DataGridRow, DataGridSearch, DataGridViewMenu, DataGridViewMenuProps, DateCell, DatePickerDemo, DeferredInput, DeferredInputProps, DeferredNumberInput, DeferredNumberInputProps, DeferredTextarea, DeferredTextareaProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, 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, DynamicTabbedSidebar, ExternalToast, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, GanttCell, GanttCellProps, GanttTimeline, GanttTimerangePicker, GanttTimerangePickerProps, HeaderComponents, HierarchyCell, HierarchyItem, HierarchyItemProps, HoverCard, HoverCardContent, HoverCardTrigger, ISODateRange, InfoCard, InfoCardVariant, Input, InputProps, KanbanItem as Item, KanbanItemHandle as ItemHandle, KanbanRoot as Kanban, KanbanBoard, KanbanColumn, KanbanColumnHandle, KanbanItem, KanbanItemHandle, KanbanOverlay, Label, Loader, LongTextCell, MarkValueRenderer, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, MultiSelectCell, NavigationDirection, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NumberCell, NumberFormatConfig, NumberFormatter, NumberInput, NumberInputProps, KanbanOverlay as Overlay, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ReactNodeCell, ResizableHandle, ResizablePanel, ResizablePanelGroup, KanbanRoot as Root, RowHeightValue, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_KEYBOARD_SHORTCUT_RIGHT, SIDEBAR_MAX_WIDTH, SIDEBAR_MIN_WIDTH, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, SavedView, ScrollArea, ScrollBar, SearchState, Select, SelectCell, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectionState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShortTextCell, Sidebar, SidebarContent, SidebarContext, SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader,
|
|
2942
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, KanbanBoard as Board, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CarouselProps, Cell, CellHierarchyOption, CellPosition, CellRange, CellSelectOption, CellSelectOptionsMap, CellSelectOptionsUnion, CellVariantProps, Checkbox, CheckboxCell, Collapse, CollapseContent, CollapseTrigger, KanbanColumn as Column, KanbanColumnHandle as ColumnHandle, ColumnMenuRendererFunction, ComboboxDemo, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandInputProps, CommandItem, CommandList, CommandPalette, CommandPaletteDialog, CommandPaletteEmpty, CommandPaletteGroup, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteSeparator, CommandPaletteShortcut, CommandSeparator, CommandShortcut, CommentCallbacks, CommentCreate, CommentGroup, CommentItem, CommentList, CommentThread, ContentFrame, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuState, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataGrid, DataGridCell, DataGridCellWrapper, DataGridColumnHeader, DataGridContextMenu, DataGridRow, DataGridSearch, DataGridViewMenu, DataGridViewMenuProps, DateCell, DatePickerDemo, DeferredInput, DeferredInputProps, DeferredNumberInput, DeferredNumberInputProps, DeferredTextarea, DeferredTextareaProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, 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, DynamicTabbedSidebar, ExternalToast, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, GanttCell, GanttCellProps, GanttTimeline, GanttTimerangePicker, GanttTimerangePickerProps, HeaderComponents, HierarchyCell, HierarchyItem, HierarchyItemProps, HoverCard, HoverCardContent, HoverCardTrigger, ISODateRange, InfoCard, InfoCardVariant, Input, InputProps, KanbanItem as Item, KanbanItemHandle as ItemHandle, KanbanRoot as Kanban, KanbanBoard, KanbanColumn, KanbanColumnHandle, KanbanItem, KanbanItemHandle, KanbanOverlay, Label, Loader, LongTextCell, MarkValueRenderer, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, MultiSelectCell, NavigationDirection, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NumberCell, NumberFormatConfig, NumberFormatter, NumberInput, NumberInputProps, KanbanOverlay as Overlay, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ReactNodeCell, ResizableHandle, ResizablePanel, ResizablePanelGroup, KanbanRoot as Root, RowHeightValue, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_KEYBOARD_SHORTCUT_RIGHT, SIDEBAR_MAX_WIDTH, SIDEBAR_MIN_WIDTH, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, SavedView, ScrollArea, ScrollBar, SearchState, Select, SelectCell, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectionState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShortTextCell, Sidebar, SidebarContent, SidebarContext, SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarSide, SidebarSideContext, SidebarTab, SidebarTabBadge, SidebarTabDefinition, SidebarTabsContext, SidebarTabsProvider, SidebarTrigger, Skeleton, Slicer, SlicerFilterOption, SlicerHierarchyItem, Slider, Spinner, Stepper, StepperContent, StepperDescription, StepperIndicator, StepperItem, StepperList, StepperNext, StepperPrev, StepperProps, StepperSeparator, StepperTitle, StepperTrigger, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TreeBranch, TreeNode, TreeView, TreeViewProps, UpdateCell, UseDataGridProps, badgeVariants, buildLabelMap, buttonVariants, checkboxVariants, cn, commandInputVariants, createSelectColumn, findOptionById, getAllDescendantIds, getAllDescendantValues, getAllIds, getAncestorIds, getCellKey, getCommonPinningStyles, getInitialExpandedIds, getLabelPath, getLineCount, getRowHeightValue, inputVariants, isoToLocalDate, knobVariants, matchesSearch, navigationMenuTriggerStyle, parseCellKey, sliderVariants, testId, toast, toggleVariants, useCallbackRef, useDataGrid, useDebouncedCallback, useIsMobile, useRegisteredSidebars, useSidebar, useSidebarTabs, useStore as useStepper };
|
|
2943
2943
|
//# sourceMappingURL=index.d.ts.map
|