@askrjs/themes 0.0.22 → 0.0.24
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/README.md +4 -0
- package/capabilities.json +36 -0
- package/dist/components/_internal/jsx.js +7 -2
- package/dist/components/_internal/jsx.js.map +1 -1
- package/dist/components/_internal/style.js.map +1 -1
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/brand/brand.js +12 -10
- package/dist/components/brand/brand.js.map +1 -1
- package/dist/components/card/card.js +43 -36
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/catalog.js +18 -14
- package/dist/components/catalog.js.map +1 -1
- package/dist/components/close/close.js.map +1 -1
- package/dist/components/command-palette/command-palette.d.ts +11 -0
- package/dist/components/command-palette/command-palette.js +153 -0
- package/dist/components/command-palette/command-palette.js.map +1 -0
- package/dist/components/command-palette/command-palette.types.d.ts +30 -0
- package/dist/components/command-palette/index.d.ts +3 -0
- package/dist/components/empty-state/empty-state.js.map +1 -1
- package/dist/components/field/field.js +20 -17
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/footer/footer.js +36 -30
- package/dist/components/footer/footer.js.map +1 -1
- package/dist/components/grid/grid.js +2 -1
- package/dist/components/grid/grid.js.map +1 -1
- package/dist/components/nav/nav.js.map +1 -1
- package/dist/components/nav/nav.types.d.ts +1 -1
- package/dist/components/navbar/navbar.js.map +1 -1
- package/dist/components/overlays/dropdown-content.js.map +1 -1
- package/dist/components/page/page.js.map +1 -1
- package/dist/components/page-header/page-header.js.map +1 -1
- package/dist/components/sidebar/sidebar.js +6 -6
- package/dist/components/sidebar/sidebar.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +2 -1
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/stat/stat.js +24 -20
- package/dist/components/stat/stat.js.map +1 -1
- package/dist/components/theme/theme.js.map +1 -1
- package/dist/components/toolbar/toolbar.js.map +1 -1
- package/dist/components.d.ts +4 -1
- package/dist/components.js +3 -2
- package/dist/entries/command.d.ts +4 -1
- package/dist/entries/command.js +2 -1
- package/dist/entries/tabs.js +1 -1
- package/dist/themes/default/index.css +38 -0
- package/package.json +18 -14
- package/src/components/_internal/jsx.ts +11 -1
- package/src/components/command-palette/command-palette.tsx +242 -0
- package/src/components/command-palette/command-palette.types.ts +40 -0
- package/src/components/command-palette/index.ts +15 -0
- package/src/components/sidebar/sidebar.tsx +6 -6
- package/src/components.ts +8 -0
- package/src/entries/command.ts +15 -0
- package/src/parity.ts +1 -0
- package/src/themes/default/styles/display/catalog.css +38 -0
package/dist/components.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ import "./components/card/index.js";
|
|
|
23
23
|
import { CloseNativeProps, CloseOwnProps } from "./components/close/close.types.js";
|
|
24
24
|
import { Close } from "./components/close/close.js";
|
|
25
25
|
import "./components/close/index.js";
|
|
26
|
+
import { CommandPaletteContentProps, CommandPaletteLinkProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteTriggerAsChildProps, CommandPaletteTriggerProps } from "./components/command-palette/command-palette.types.js";
|
|
27
|
+
import { CommandPalette, CommandPaletteContent, CommandPaletteLink, CommandPaletteList, CommandPaletteTrigger } from "./components/command-palette/command-palette.js";
|
|
28
|
+
import "./components/command-palette/index.js";
|
|
26
29
|
import { ContainerProps } from "./components/container/container.types.js";
|
|
27
30
|
import { Container } from "./components/container/container.js";
|
|
28
31
|
import "./components/container/index.js";
|
|
@@ -90,4 +93,4 @@ import { CAT_THEME_NAMES, CAT_THEME_OPTIONS, CatThemeName, DEFAULT_THEME_OPTIONS
|
|
|
90
93
|
import "./components/theme/index.js";
|
|
91
94
|
import { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CatalogComponentProps, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP } from "./components/catalog.js";
|
|
92
95
|
import { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Button, ButtonAsChildElement, ButtonAsChildProps, ButtonNativeProps, ButtonProps, ButtonSize, ButtonVariant, ButtonWidth, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DebouncedInput, Dialog, Dialog as Drawer, Dialog as Sheet, DialogClose, DialogClose as DrawerClose, DialogClose as SheetClose, DialogContent, DialogContent as DrawerContent, DialogDescription, DialogDescription as DrawerDescription, DialogOverlay, DialogOverlay as DrawerOverlay, DialogOverlay as SheetOverlay, DialogPortal, DialogPortal as DrawerPortal, DialogPortal as SheetPortal, DialogProps, DialogTitle, DialogTitle as DrawerTitle, DialogTrigger, DialogTrigger as DrawerTrigger, DialogTrigger as SheetTrigger, Dropdown, Dropdown as ContextMenu, Dropdown as DropdownMenu, DropdownGroup, DropdownGroup as ContextMenuGroup, DropdownGroup as DropdownMenuGroup, DropdownItem, DropdownItem as ContextMenuItem, DropdownItem as DropdownMenuItem, DropdownItemVariant, DropdownLabel, DropdownLabel as ContextMenuLabel, DropdownLabel as DropdownMenuLabel, DropdownPortal, DropdownPortal as ContextMenuPortal, DropdownPortal as DropdownMenuPortal, DropdownSeparator, DropdownSeparator as ContextMenuSeparator, DropdownSeparator as DropdownMenuSeparator, DropdownTrigger, DropdownTrigger as ContextMenuTrigger, DropdownTrigger as DropdownMenuTrigger, DropdownTriggerSize, DropdownTriggerVariant, Form, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, Input, Label, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Popover, PopoverClose, PopoverContent, PopoverContentWidth, PopoverPortal, PopoverTrigger, Progress, ProgressCircle, ProgressCircleIndicator, ProgressIndicator, RadioGroup, RadioGroupItem, ScrollArea, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectTriggerSize, SelectValue, Slider, SliderRange, SliderThumb, SliderTrack, Switch, Table, TableBody, TableCaption, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastHost, ToastTitle, ToastViewport, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger, VirtualList, VirtualListApi, VirtualListAsChildProps, VirtualListProps, VirtualListRowComponent, VirtualListRowComponentProps, VirtualListRowElement, VirtualListState, VirtualListViewport, VirtualTable, VirtualTableApi, VirtualTableAsChildProps, VirtualTableCellComponent, VirtualTableCellComponentProps, VirtualTableCellElement, VirtualTableColumn, VirtualTableProps, VirtualTableState, VirtualTableViewport, VirtualTableWidth, VisuallyHidden } from "@askrjs/ui";
|
|
93
|
-
export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertHeadingTag, type AlertProps, AlertTitle, type AlertVariant, Aside, type AsideProps, AspectRatio, type AspectRatioAsChildProps, type AspectRatioProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeAsChildProps, type BadgeOwnProps, type BadgeProps, Block, type BlockAlign, type BlockAsChildProps, type BlockBackground, type BlockDirection, type BlockDivProps, type BlockElement, type BlockElementProps, type BlockJustify, type BlockMargin, type BlockNativeProps, type BlockOwnProps, type BlockProps, type BlockRadius, type ResponsiveValue as BlockResponsiveValue, type BlockRowFrom, type BlockShadow, type BlockSize, type BlockSpace, type BlockSpanProps, type BlockZIndex, Box, Brand, BrandLabel, BrandMark, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonAsChildElement, type ButtonAsChildProps, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonNativeProps, type ButtonProps, type ButtonSize, type ButtonVariant, type ButtonWidth, CAT_THEME_NAMES, CAT_THEME_OPTIONS, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleHeadingTag, type CardTitleProps, type CardVariant, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CatThemeName, CatalogComponentProps, Checkbox, Close, type CloseNativeProps, type CloseOwnProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, type ContainerProps, ContextMenu, DropdownContent as ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuSeparator, ContextMenuTrigger, DEFAULT_THEME_OPTIONS, DataTable, DatePicker, DatePickerInput, DebouncedInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Direction, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownContent, DropdownGroup, DropdownItem, type DropdownItemVariant, DropdownLabel, DropdownMenu, DropdownContent as DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, DropdownPortal, DropdownSeparator, DropdownTrigger, type DropdownTriggerSize, type DropdownTriggerVariant, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateHeadingTag, type EmptyStateProps, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, type FieldErrorProps, FieldGroup, FieldHint, type FieldHintProps, FieldLabel, FieldLegend, type FieldProps, FieldSeparator, FieldSet, FieldTitle, Footer, FooterContent, type FooterContentProps, FooterDescription, type FooterDescriptionProps, FooterLink, type FooterLinkProps, FooterLinks, type FooterLinksProps, type FooterProps, FooterSection, type FooterSectionProps, FooterTitle, type FooterTitleProps, Form, Grid, type GridAlign, type GridColumns, type GridElement, type GridProps, Header, type HeaderProps, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, Inline, Input, InputGroup, type InputGroupOrientation, type InputGroupProps, InputGroupText, type InputGroupTextAsChildProps, type InputGroupTextProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, Label, Main, type MainProps, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, Navbar as Nav, NavBrand, type NavBrandProps, NavDropdown, type NavDropdownProps, NavGroup, type NavGroupProps, NavItem, type NavItemAsChildProps, type NavItemProps, NavLink, type NavLinkProps, Navbar, type NavbarCollapseBreakpoint, type NavbarProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Page, PageHeader, type PageHeaderProps, type PageProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Pill, type PillProps, Pills, type PillsAsChildProps, type PillsProps, Popover, PopoverClose, PopoverContent, type PopoverContentWidth, PopoverPortal, PopoverTrigger, Progress, ProgressCircle, ProgressCircleIndicator, ProgressIndicator, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Section, type SectionProps, Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, type SelectTriggerSize, SelectValue, Separator, type SeparatorAsChildProps, type SeparatorNativeProps, type SeparatorOwnProps, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Shell, ShellMain, ShellNav, Sidebar, type SidebarButtonProps, type SidebarCollapsible, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, type SidebarPartProps, type SidebarProps, SidebarRail, type SidebarRailProps, SidebarScope, type SidebarSide, type SidebarTooltipSide, SidebarTrigger, type SidebarVariant, Skeleton, type SkeletonAsChildProps, type SkeletonOwnProps, type SkeletonProps, Slider, SliderRange, SliderThumb, SliderTrack, Sonner, Spinner, type SpinnerOwnProps, type SpinnerProps, type SpinnerSize, Stack, Stat, StatDescription, StatLabel, StatValue, Switch, Tab, type TabProps, Table, TableBody, TableCaption, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, type TabsAsChildProps, TabsContent, TabsList, type TabsProps, TabsTrigger, Text, type TextElement, type TextFont, type TextNumeric, type TextProps, type TextSize, type TextTone, type TextWeight, type TextWrap, Textarea, type ThemeName, type ThemeOption, ThemePicker, type ThemePickerProps, ThemeScope, type ThemeScopeProps, type ThemeScopeValue, ThemeToggle, type ThemeToggleProps, type ThemeToggleRenderContext, Toast, ToastAction, ToastClose, ToastDescription, ToastHost, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, type ToolbarProps, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP, VirtualList, type VirtualListApi, type VirtualListAsChildProps, type VirtualListProps, type VirtualListRowComponent, type VirtualListRowComponentProps, type VirtualListRowElement, type VirtualListState, type VirtualListViewport, VirtualTable, type VirtualTableApi, type VirtualTableAsChildProps, type VirtualTableCellComponent, type VirtualTableCellComponentProps, type VirtualTableCellElement, type VirtualTableColumn, type VirtualTableProps, type VirtualTableState, type VirtualTableViewport, type VirtualTableWidth, VisuallyHidden, theme };
|
|
96
|
+
export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertHeadingTag, type AlertProps, AlertTitle, type AlertVariant, Aside, type AsideProps, AspectRatio, type AspectRatioAsChildProps, type AspectRatioProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeAsChildProps, type BadgeOwnProps, type BadgeProps, Block, type BlockAlign, type BlockAsChildProps, type BlockBackground, type BlockDirection, type BlockDivProps, type BlockElement, type BlockElementProps, type BlockJustify, type BlockMargin, type BlockNativeProps, type BlockOwnProps, type BlockProps, type BlockRadius, type ResponsiveValue as BlockResponsiveValue, type BlockRowFrom, type BlockShadow, type BlockSize, type BlockSpace, type BlockSpanProps, type BlockZIndex, Box, Brand, BrandLabel, BrandMark, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonAsChildElement, type ButtonAsChildProps, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonNativeProps, type ButtonProps, type ButtonSize, type ButtonVariant, type ButtonWidth, CAT_THEME_NAMES, CAT_THEME_OPTIONS, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleHeadingTag, type CardTitleProps, type CardVariant, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CatThemeName, CatalogComponentProps, Checkbox, Close, type CloseNativeProps, type CloseOwnProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandPalette, CommandPaletteContent, type CommandPaletteContentProps, CommandPaletteLink, type CommandPaletteLinkProps, CommandPaletteList, type CommandPaletteListProps, type CommandPaletteProps, CommandPaletteTrigger, type CommandPaletteTriggerAsChildProps, type CommandPaletteTriggerProps, CommandSeparator, CommandShortcut, Container, type ContainerProps, ContextMenu, DropdownContent as ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuSeparator, ContextMenuTrigger, DEFAULT_THEME_OPTIONS, DataTable, DatePicker, DatePickerInput, DebouncedInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Direction, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownContent, DropdownGroup, DropdownItem, type DropdownItemVariant, DropdownLabel, DropdownMenu, DropdownContent as DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, DropdownPortal, DropdownSeparator, DropdownTrigger, type DropdownTriggerSize, type DropdownTriggerVariant, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateHeadingTag, type EmptyStateProps, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, type FieldErrorProps, FieldGroup, FieldHint, type FieldHintProps, FieldLabel, FieldLegend, type FieldProps, FieldSeparator, FieldSet, FieldTitle, Footer, FooterContent, type FooterContentProps, FooterDescription, type FooterDescriptionProps, FooterLink, type FooterLinkProps, FooterLinks, type FooterLinksProps, type FooterProps, FooterSection, type FooterSectionProps, FooterTitle, type FooterTitleProps, Form, Grid, type GridAlign, type GridColumns, type GridElement, type GridProps, Header, type HeaderProps, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, Inline, Input, InputGroup, type InputGroupOrientation, type InputGroupProps, InputGroupText, type InputGroupTextAsChildProps, type InputGroupTextProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, Label, Main, type MainProps, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, Navbar as Nav, NavBrand, type NavBrandProps, NavDropdown, type NavDropdownProps, NavGroup, type NavGroupProps, NavItem, type NavItemAsChildProps, type NavItemProps, NavLink, type NavLinkProps, Navbar, type NavbarCollapseBreakpoint, type NavbarProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Page, PageHeader, type PageHeaderProps, type PageProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Pill, type PillProps, Pills, type PillsAsChildProps, type PillsProps, Popover, PopoverClose, PopoverContent, type PopoverContentWidth, PopoverPortal, PopoverTrigger, Progress, ProgressCircle, ProgressCircleIndicator, ProgressIndicator, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Section, type SectionProps, Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, type SelectTriggerSize, SelectValue, Separator, type SeparatorAsChildProps, type SeparatorNativeProps, type SeparatorOwnProps, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Shell, ShellMain, ShellNav, Sidebar, type SidebarButtonProps, type SidebarCollapsible, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, type SidebarPartProps, type SidebarProps, SidebarRail, type SidebarRailProps, SidebarScope, type SidebarSide, type SidebarTooltipSide, SidebarTrigger, type SidebarVariant, Skeleton, type SkeletonAsChildProps, type SkeletonOwnProps, type SkeletonProps, Slider, SliderRange, SliderThumb, SliderTrack, Sonner, Spinner, type SpinnerOwnProps, type SpinnerProps, type SpinnerSize, Stack, Stat, StatDescription, StatLabel, StatValue, Switch, Tab, type TabProps, Table, TableBody, TableCaption, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, type TabsAsChildProps, TabsContent, TabsList, type TabsProps, TabsTrigger, Text, type TextElement, type TextFont, type TextNumeric, type TextProps, type TextSize, type TextTone, type TextWeight, type TextWrap, Textarea, type ThemeName, type ThemeOption, ThemePicker, type ThemePickerProps, ThemeScope, type ThemeScopeProps, type ThemeScopeValue, ThemeToggle, type ThemeToggleProps, type ThemeToggleRenderContext, Toast, ToastAction, ToastClose, ToastDescription, ToastHost, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, type ToolbarProps, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP, VirtualList, type VirtualListApi, type VirtualListAsChildProps, type VirtualListProps, type VirtualListRowComponent, type VirtualListRowComponentProps, type VirtualListRowElement, type VirtualListState, type VirtualListViewport, VirtualTable, type VirtualTableApi, type VirtualTableAsChildProps, type VirtualTableCellComponent, type VirtualTableCellComponentProps, type VirtualTableCellElement, type VirtualTableColumn, type VirtualTableProps, type VirtualTableState, type VirtualTableViewport, type VirtualTableWidth, VisuallyHidden, theme };
|
package/dist/components.js
CHANGED
|
@@ -7,6 +7,8 @@ import { Block } from "./components/block/block.js";
|
|
|
7
7
|
import { Brand, BrandLabel, BrandMark } from "./components/brand/brand.js";
|
|
8
8
|
import { ButtonGroup } from "./components/button-group/button-group.js";
|
|
9
9
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/card.js";
|
|
10
|
+
import { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP } from "./components/catalog.js";
|
|
11
|
+
import { CommandPalette, CommandPaletteContent, CommandPaletteLink, CommandPaletteList, CommandPaletteTrigger } from "./components/command-palette/command-palette.js";
|
|
10
12
|
import { Container } from "./components/container/container.js";
|
|
11
13
|
import { EmptyState } from "./components/empty-state/empty-state.js";
|
|
12
14
|
import { Field, FieldError, FieldHint } from "./components/field/field.js";
|
|
@@ -30,6 +32,5 @@ import { Stat, StatDescription, StatLabel, StatValue } from "./components/stat/s
|
|
|
30
32
|
import { Text } from "./components/text/text.js";
|
|
31
33
|
import { Toolbar } from "./components/toolbar/toolbar.js";
|
|
32
34
|
import { CAT_THEME_NAMES, CAT_THEME_OPTIONS, DEFAULT_THEME_OPTIONS, ThemePicker, ThemeScope, ThemeToggle, theme } from "./components/theme/theme.js";
|
|
33
|
-
import { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP } from "./components/catalog.js";
|
|
34
35
|
import { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DebouncedInput, Dialog, Dialog as Drawer, Dialog as Sheet, DialogClose, DialogClose as DrawerClose, DialogClose as SheetClose, DialogContent, DialogContent as DrawerContent, DialogDescription, DialogDescription as DrawerDescription, DialogOverlay, DialogOverlay as DrawerOverlay, DialogOverlay as SheetOverlay, DialogPortal, DialogPortal as DrawerPortal, DialogPortal as SheetPortal, DialogTitle, DialogTitle as DrawerTitle, DialogTrigger, DialogTrigger as DrawerTrigger, DialogTrigger as SheetTrigger, Dropdown, Dropdown as ContextMenu, Dropdown as DropdownMenu, DropdownGroup, DropdownGroup as ContextMenuGroup, DropdownGroup as DropdownMenuGroup, DropdownItem, DropdownItem as ContextMenuItem, DropdownItem as DropdownMenuItem, DropdownLabel, DropdownLabel as ContextMenuLabel, DropdownLabel as DropdownMenuLabel, DropdownPortal, DropdownPortal as ContextMenuPortal, DropdownPortal as DropdownMenuPortal, DropdownSeparator, DropdownSeparator as ContextMenuSeparator, DropdownSeparator as DropdownMenuSeparator, DropdownTrigger, DropdownTrigger as ContextMenuTrigger, DropdownTrigger as DropdownMenuTrigger, Form, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, Input, Label, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Popover, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Progress, ProgressCircle, ProgressCircleIndicator, ProgressIndicator, RadioGroup, RadioGroupItem, ScrollArea, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, Slider, SliderRange, SliderThumb, SliderTrack, Switch, Table, TableBody, TableCaption, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastHost, ToastTitle, ToastViewport, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger, VirtualList, VirtualTable, VisuallyHidden } from "@askrjs/ui";
|
|
35
|
-
export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Aside, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Block, Box, Brand, BrandLabel, BrandMark, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, CAT_THEME_NAMES, CAT_THEME_OPTIONS, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Close, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, DropdownContent as ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuSeparator, ContextMenuTrigger, DEFAULT_THEME_OPTIONS, DataTable, DatePicker, DatePickerInput, DebouncedInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Direction, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownContent, DropdownGroup, DropdownItem, DropdownLabel, DropdownMenu, DropdownContent as DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, DropdownPortal, DropdownSeparator, DropdownTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldHint, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Footer, FooterContent, FooterDescription, FooterLink, FooterLinks, FooterSection, FooterTitle, Form, Grid, Header, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, Inline, Input, InputGroup, InputGroupText, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, Label, Main, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, Navbar as Nav, NavBrand, NavDropdown, NavGroup, NavItem, NavLink, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Page, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Pill, Pills, Popover, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Progress, ProgressCircle, ProgressCircleIndicator, ProgressIndicator, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Section, Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Shell, ShellMain, ShellNav, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarRail, SidebarScope, SidebarTrigger, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Sonner, Spinner, Stack, Stat, StatDescription, StatLabel, StatValue, Switch, Tab, Table, TableBody, TableCaption, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, Textarea, ThemePicker, ThemeScope, ThemeToggle, Toast, ToastAction, ToastClose, ToastDescription, ToastHost, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP, VirtualList, VirtualTable, VisuallyHidden, theme };
|
|
36
|
+
export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Aside, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Block, Box, Brand, BrandLabel, BrandMark, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, CAT_THEME_NAMES, CAT_THEME_OPTIONS, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Close, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandPalette, CommandPaletteContent, CommandPaletteLink, CommandPaletteList, CommandPaletteTrigger, CommandSeparator, CommandShortcut, Container, ContextMenu, DropdownContent as ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuSeparator, ContextMenuTrigger, DEFAULT_THEME_OPTIONS, DataTable, DatePicker, DatePickerInput, DebouncedInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Direction, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownContent, DropdownGroup, DropdownItem, DropdownLabel, DropdownMenu, DropdownContent as DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, DropdownPortal, DropdownSeparator, DropdownTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldHint, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Footer, FooterContent, FooterDescription, FooterLink, FooterLinks, FooterSection, FooterTitle, Form, Grid, Header, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, Inline, Input, InputGroup, InputGroupText, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, Label, Main, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, Navbar as Nav, NavBrand, NavDropdown, NavGroup, NavItem, NavLink, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Page, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Pill, Pills, Popover, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Progress, ProgressCircle, ProgressCircleIndicator, ProgressIndicator, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Section, Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Shell, ShellMain, ShellNav, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarRail, SidebarScope, SidebarTrigger, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Sonner, Spinner, Stack, Stat, StatDescription, StatLabel, StatValue, Switch, Tab, Table, TableBody, TableCaption, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, Textarea, ThemePicker, ThemeScope, ThemeToggle, Toast, ToastAction, ToastClose, ToastDescription, ToastHost, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP, VirtualList, VirtualTable, VisuallyHidden, theme };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import { CommandPaletteContentProps, CommandPaletteLinkProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteTriggerAsChildProps, CommandPaletteTriggerProps } from "../components/command-palette/command-palette.types.js";
|
|
2
|
+
import { CommandPalette, CommandPaletteContent, CommandPaletteLink, CommandPaletteList, CommandPaletteTrigger } from "../components/command-palette/command-palette.js";
|
|
3
|
+
import "../components/command-palette/index.js";
|
|
1
4
|
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "../components/catalog.js";
|
|
2
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
5
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandPalette, CommandPaletteContent, type CommandPaletteContentProps, CommandPaletteLink, type CommandPaletteLinkProps, CommandPaletteList, type CommandPaletteListProps, type CommandPaletteProps, CommandPaletteTrigger, type CommandPaletteTriggerAsChildProps, type CommandPaletteTriggerProps, CommandSeparator, CommandShortcut };
|
package/dist/entries/command.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "../components/catalog.js";
|
|
2
|
-
|
|
2
|
+
import { CommandPalette, CommandPaletteContent, CommandPaletteLink, CommandPaletteList, CommandPaletteTrigger } from "../components/command-palette/command-palette.js";
|
|
3
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandPalette, CommandPaletteContent, CommandPaletteLink, CommandPaletteList, CommandPaletteTrigger, CommandSeparator, CommandShortcut };
|
package/dist/entries/tabs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Pill, Pills, Tab, Tabs } from "../components/nav/nav.js";
|
|
2
1
|
import { TabsContent, TabsList, TabsTrigger } from "../components/catalog.js";
|
|
2
|
+
import { Pill, Pills, Tab, Tabs } from "../components/nav/nav.js";
|
|
3
3
|
export { Pill, Pills, Tab, Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -3745,6 +3745,44 @@
|
|
|
3745
3745
|
overflow: hidden;
|
|
3746
3746
|
}
|
|
3747
3747
|
|
|
3748
|
+
:where([data-command-palette-content]) {
|
|
3749
|
+
max-block-size: min(36rem, 100dvh - 1rem);
|
|
3750
|
+
inline-size: min(42rem, 100vw - 1rem);
|
|
3751
|
+
padding: 0;
|
|
3752
|
+
overflow: hidden;
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
:where([data-command-palette-content] [data-slot="command"]) {
|
|
3756
|
+
min-block-size: 0;
|
|
3757
|
+
}
|
|
3758
|
+
|
|
3759
|
+
:where([data-command-palette-result] > [data-slot="command-item"]) {
|
|
3760
|
+
min-block-size: var(--ak-density-control-height-md);
|
|
3761
|
+
padding: var(--ak-space-sm) var(--ak-space-md);
|
|
3762
|
+
border-radius: var(--ak-radius-md);
|
|
3763
|
+
color: inherit;
|
|
3764
|
+
cursor: pointer;
|
|
3765
|
+
align-items: center;
|
|
3766
|
+
text-decoration: none;
|
|
3767
|
+
display: flex;
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
:where([data-command-palette-content] [data-slot="command-list"]) {
|
|
3771
|
+
margin: 0;
|
|
3772
|
+
padding: 0;
|
|
3773
|
+
list-style: none;
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
:where([data-command-palette-result] > [data-slot="command-item"]:hover) {
|
|
3777
|
+
background: var(--ak-color-accent);
|
|
3778
|
+
color: var(--ak-color-accent-ink);
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
:where([data-command-palette-result] > [data-slot="command-item"]:focus-visible) {
|
|
3782
|
+
box-shadow: inset 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
3783
|
+
outline: none;
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3748
3786
|
:where([data-slot="command-header"]) {
|
|
3749
3787
|
border-block-end: 1px solid var(--ak-color-border);
|
|
3750
3788
|
padding-inline: var(--ak-space-3);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askrjs/themes",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "Default theme tokens, styles, and component presets for Askr apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"askr",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"url": "git+https://github.com/askrjs/askr-themes.git"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
|
+
"capabilities.json",
|
|
25
26
|
"dist",
|
|
26
27
|
"src",
|
|
27
28
|
"templates",
|
|
@@ -86,7 +87,8 @@
|
|
|
86
87
|
"types": "./src/css.d.ts",
|
|
87
88
|
"default": "./templates/*"
|
|
88
89
|
},
|
|
89
|
-
"./package.json": "./package.json"
|
|
90
|
+
"./package.json": "./package.json",
|
|
91
|
+
"./capabilities.json": "./capabilities.json"
|
|
90
92
|
},
|
|
91
93
|
"publishConfig": {
|
|
92
94
|
"access": "public"
|
|
@@ -117,22 +119,24 @@
|
|
|
117
119
|
"test:checks": "vp test run -c vitest.test.checks.config.ts"
|
|
118
120
|
},
|
|
119
121
|
"devDependencies": {
|
|
120
|
-
"@askrjs/askr": ">=0.0.
|
|
121
|
-
"@askrjs/ui": ">=0.0.
|
|
122
|
-
"@askrjs/vite": ">=0.0.
|
|
123
|
-
"@tsdown/css": "0.22.
|
|
124
|
-
"@types/node": "^26.
|
|
122
|
+
"@askrjs/askr": ">=0.0.88 <0.1.0",
|
|
123
|
+
"@askrjs/ui": ">=0.0.26 <0.1.0",
|
|
124
|
+
"@askrjs/vite": ">=0.0.12 <0.1.0",
|
|
125
|
+
"@tsdown/css": "0.22.14",
|
|
126
|
+
"@types/node": "^26.2.0",
|
|
127
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
125
128
|
"@vitest/browser-playwright": "4.1.10",
|
|
126
129
|
"cross-env": "^10.1.0",
|
|
127
|
-
"jsdom": "^
|
|
128
|
-
"playwright": "^1.
|
|
129
|
-
"publint": "^0.3.
|
|
130
|
-
"
|
|
131
|
-
"
|
|
130
|
+
"jsdom": "^30.0.1",
|
|
131
|
+
"playwright": "^1.62.1",
|
|
132
|
+
"publint": "^0.3.23",
|
|
133
|
+
"tsdown": "0.22.14",
|
|
134
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
135
|
+
"vite-plus": "^0.2.8"
|
|
132
136
|
},
|
|
133
137
|
"peerDependencies": {
|
|
134
|
-
"@askrjs/askr": ">=0.0.
|
|
135
|
-
"@askrjs/ui": ">=0.0.
|
|
138
|
+
"@askrjs/askr": ">=0.0.88 <0.1.0",
|
|
139
|
+
"@askrjs/ui": ">=0.0.26 <0.1.0"
|
|
136
140
|
},
|
|
137
141
|
"engines": {
|
|
138
142
|
"node": ">=24.0.0"
|
|
@@ -3,12 +3,22 @@ import { jsx, type JSX } from "@askrjs/askr/jsx-runtime";
|
|
|
3
3
|
|
|
4
4
|
const renderIntrinsicElement = jsx as (type: string, props: Record<string, unknown>) => JSX.Element;
|
|
5
5
|
|
|
6
|
+
export function normalizeAriaProps(props: Record<string, unknown>): Record<string, unknown> {
|
|
7
|
+
const normalized = { ...props };
|
|
8
|
+
for (const key of Object.keys(normalized)) {
|
|
9
|
+
if (key.startsWith("aria-") && typeof normalized[key] === "boolean") {
|
|
10
|
+
normalized[key] = String(normalized[key]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return normalized;
|
|
14
|
+
}
|
|
15
|
+
|
|
6
16
|
export function intrinsicElement(
|
|
7
17
|
type: string,
|
|
8
18
|
props: Record<string, unknown>,
|
|
9
19
|
children: unknown,
|
|
10
20
|
): JSX.Element {
|
|
11
|
-
return renderIntrinsicElement(type, { ...props, children });
|
|
21
|
+
return renderIntrinsicElement(type, { ...normalizeAriaProps(props), children });
|
|
12
22
|
}
|
|
13
23
|
|
|
14
24
|
export function isJsxElement(value: unknown): value is JSXElement {
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import type { JSX } from "@askrjs/askr/jsx-runtime";
|
|
2
|
+
import { Link } from "@askrjs/askr/router";
|
|
3
|
+
import { defineScope, readScope, state } from "@askrjs/askr";
|
|
4
|
+
import { controllableState } from "@askrjs/askr/foundations/state";
|
|
5
|
+
import { composeRefs, type Ref } from "@askrjs/askr/foundations/utilities";
|
|
6
|
+
import {
|
|
7
|
+
Dialog,
|
|
8
|
+
DialogContent,
|
|
9
|
+
DialogDescription,
|
|
10
|
+
DialogOverlay,
|
|
11
|
+
DialogPortal,
|
|
12
|
+
DialogTitle,
|
|
13
|
+
DialogTrigger,
|
|
14
|
+
} from "@askrjs/ui";
|
|
15
|
+
import { Command } from "../catalog";
|
|
16
|
+
import { classes } from "../_internal/classes";
|
|
17
|
+
import type {
|
|
18
|
+
CommandPaletteContentProps,
|
|
19
|
+
CommandPaletteLinkProps,
|
|
20
|
+
CommandPaletteListProps,
|
|
21
|
+
CommandPaletteProps,
|
|
22
|
+
CommandPaletteTriggerAsChildProps,
|
|
23
|
+
CommandPaletteTriggerProps,
|
|
24
|
+
} from "./command-palette.types";
|
|
25
|
+
|
|
26
|
+
type CommandPaletteContextValue = {
|
|
27
|
+
close: () => void;
|
|
28
|
+
restoreFocusSoon: () => void;
|
|
29
|
+
setTrigger: (node: Element | null) => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const CommandPaletteContext = defineScope<CommandPaletteContextValue | null>(null);
|
|
33
|
+
|
|
34
|
+
function readCommandPaletteContext(): CommandPaletteContextValue {
|
|
35
|
+
const context = readScope(CommandPaletteContext);
|
|
36
|
+
if (!context) {
|
|
37
|
+
throw new Error("CommandPalette components must be used within <CommandPalette>");
|
|
38
|
+
}
|
|
39
|
+
return context;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CommandPalette(props: CommandPaletteProps): JSX.Element {
|
|
43
|
+
const { children, defaultOpen = false, onOpenChange, open, ...rest } = props;
|
|
44
|
+
const openState = controllableState({
|
|
45
|
+
defaultValue: defaultOpen,
|
|
46
|
+
onChange: onOpenChange,
|
|
47
|
+
value: open,
|
|
48
|
+
});
|
|
49
|
+
const focusState = state({
|
|
50
|
+
open: false,
|
|
51
|
+
returnFocus: null as HTMLElement | null,
|
|
52
|
+
trigger: null as Element | null,
|
|
53
|
+
})();
|
|
54
|
+
const isOpen = openState();
|
|
55
|
+
|
|
56
|
+
if (isOpen && !focusState.open && typeof document !== "undefined") {
|
|
57
|
+
const active = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
58
|
+
focusState.returnFocus =
|
|
59
|
+
active && active !== document.body
|
|
60
|
+
? active
|
|
61
|
+
: focusState.trigger instanceof HTMLElement
|
|
62
|
+
? focusState.trigger
|
|
63
|
+
: null;
|
|
64
|
+
}
|
|
65
|
+
focusState.open = isOpen;
|
|
66
|
+
|
|
67
|
+
const restoreFocusSoon = () => {
|
|
68
|
+
const returnFocus = focusState.returnFocus;
|
|
69
|
+
if (!returnFocus) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
queueMicrotask(() => {
|
|
74
|
+
queueMicrotask(() => {
|
|
75
|
+
if (returnFocus.isConnected) {
|
|
76
|
+
returnFocus.focus();
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
<CommandPaletteContext
|
|
84
|
+
value={{
|
|
85
|
+
close: () => openState.set(false),
|
|
86
|
+
restoreFocusSoon,
|
|
87
|
+
setTrigger: (node) => {
|
|
88
|
+
focusState.trigger = node;
|
|
89
|
+
},
|
|
90
|
+
}}
|
|
91
|
+
>
|
|
92
|
+
<Dialog {...rest} open={isOpen} onOpenChange={openState.set}>
|
|
93
|
+
{children}
|
|
94
|
+
</Dialog>
|
|
95
|
+
</CommandPaletteContext>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function CommandPaletteTrigger(props: CommandPaletteTriggerProps): JSX.Element;
|
|
100
|
+
export function CommandPaletteTrigger(props: CommandPaletteTriggerAsChildProps): JSX.Element;
|
|
101
|
+
export function CommandPaletteTrigger(
|
|
102
|
+
props: CommandPaletteTriggerProps | CommandPaletteTriggerAsChildProps,
|
|
103
|
+
): JSX.Element {
|
|
104
|
+
const palette = readCommandPaletteContext();
|
|
105
|
+
const ref = props.ref
|
|
106
|
+
? composeRefs(props.ref as Ref<Element>, palette.setTrigger)
|
|
107
|
+
: palette.setTrigger;
|
|
108
|
+
|
|
109
|
+
if (props.asChild) {
|
|
110
|
+
return <DialogTrigger {...props} ref={ref} />;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return <DialogTrigger {...props} ref={ref as Ref<HTMLButtonElement>} />;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function preventDismiss(event: Event, shouldDismiss: boolean): void {
|
|
117
|
+
if (!shouldDismiss) {
|
|
118
|
+
event.preventDefault();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function CommandPaletteContent(props: CommandPaletteContentProps): JSX.Element {
|
|
123
|
+
const palette = readCommandPaletteContext();
|
|
124
|
+
const {
|
|
125
|
+
children,
|
|
126
|
+
class: className,
|
|
127
|
+
closeOnBackdrop = true,
|
|
128
|
+
closeOnEscape = true,
|
|
129
|
+
description,
|
|
130
|
+
initialFocus = '[data-slot="command-input"]',
|
|
131
|
+
onEscapeKeyDown,
|
|
132
|
+
onInteractOutside,
|
|
133
|
+
onPointerDownOutside,
|
|
134
|
+
overlayProps,
|
|
135
|
+
ref,
|
|
136
|
+
title,
|
|
137
|
+
...rest
|
|
138
|
+
} = props;
|
|
139
|
+
const focusInitialTarget = (node: HTMLDivElement | null) => {
|
|
140
|
+
if (!node) {
|
|
141
|
+
palette.restoreFocusSoon();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (initialFocus === false) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
queueMicrotask(() => {
|
|
150
|
+
if (!node.isConnected) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const target =
|
|
155
|
+
typeof initialFocus === "function"
|
|
156
|
+
? initialFocus()
|
|
157
|
+
: node.querySelector<HTMLElement>(initialFocus);
|
|
158
|
+
target?.focus();
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
const contentRef = ref
|
|
162
|
+
? composeRefs(ref as Ref<HTMLDivElement>, focusInitialTarget)
|
|
163
|
+
: focusInitialTarget;
|
|
164
|
+
|
|
165
|
+
return (
|
|
166
|
+
<DialogPortal>
|
|
167
|
+
<DialogOverlay {...overlayProps} data-command-palette-overlay="" />
|
|
168
|
+
<DialogContent
|
|
169
|
+
{...rest}
|
|
170
|
+
class={className}
|
|
171
|
+
data-command-palette-content=""
|
|
172
|
+
ref={contentRef}
|
|
173
|
+
onEscapeKeyDown={(event) => {
|
|
174
|
+
onEscapeKeyDown?.(event);
|
|
175
|
+
preventDismiss(event, closeOnEscape);
|
|
176
|
+
}}
|
|
177
|
+
onInteractOutside={(event) => {
|
|
178
|
+
onInteractOutside?.(event);
|
|
179
|
+
preventDismiss(event, closeOnBackdrop);
|
|
180
|
+
}}
|
|
181
|
+
onPointerDownOutside={(event) => {
|
|
182
|
+
onPointerDownOutside?.(event);
|
|
183
|
+
preventDismiss(event, closeOnBackdrop);
|
|
184
|
+
}}
|
|
185
|
+
>
|
|
186
|
+
<DialogTitle class="sr-only">{title}</DialogTitle>
|
|
187
|
+
{description ? <DialogDescription class="sr-only">{description}</DialogDescription> : null}
|
|
188
|
+
<Command>{children}</Command>
|
|
189
|
+
</DialogContent>
|
|
190
|
+
</DialogPortal>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function composeBeforeNavigate(
|
|
195
|
+
close: () => void,
|
|
196
|
+
closeOnSelect: boolean,
|
|
197
|
+
beforeNavigate: CommandPaletteLinkProps["onBeforeNavigate"],
|
|
198
|
+
onPress: CommandPaletteLinkProps["onPress"],
|
|
199
|
+
): (event: Event) => void {
|
|
200
|
+
return (event) => {
|
|
201
|
+
beforeNavigate?.();
|
|
202
|
+
if (!event.defaultPrevented) {
|
|
203
|
+
onPress?.(event);
|
|
204
|
+
}
|
|
205
|
+
if (closeOnSelect && !event.defaultPrevented) {
|
|
206
|
+
close();
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function CommandPaletteLink(props: CommandPaletteLinkProps): JSX.Element {
|
|
212
|
+
const {
|
|
213
|
+
children,
|
|
214
|
+
class: className,
|
|
215
|
+
closeOnSelect = true,
|
|
216
|
+
onBeforeNavigate,
|
|
217
|
+
onPress,
|
|
218
|
+
...rest
|
|
219
|
+
} = props;
|
|
220
|
+
const palette = readCommandPaletteContext();
|
|
221
|
+
return (
|
|
222
|
+
<li data-command-palette-result="">
|
|
223
|
+
<Link
|
|
224
|
+
{...rest}
|
|
225
|
+
class={className}
|
|
226
|
+
data-slot="command-item"
|
|
227
|
+
onPress={composeBeforeNavigate(palette.close, closeOnSelect, onBeforeNavigate, onPress)}
|
|
228
|
+
>
|
|
229
|
+
{children}
|
|
230
|
+
</Link>
|
|
231
|
+
</li>
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function CommandPaletteList(props: CommandPaletteListProps): JSX.Element {
|
|
236
|
+
const { children, class: className, ...rest } = props;
|
|
237
|
+
return (
|
|
238
|
+
<ul {...rest} class={classes(className)} data-slot="command-list">
|
|
239
|
+
{children}
|
|
240
|
+
</ul>
|
|
241
|
+
);
|
|
242
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { LinkProps } from "@askrjs/askr/router";
|
|
2
|
+
import type { JSX } from "@askrjs/askr/jsx-runtime";
|
|
3
|
+
import type { Ref } from "@askrjs/askr/foundations/utilities";
|
|
4
|
+
import type {
|
|
5
|
+
DialogContentProps,
|
|
6
|
+
DialogOverlayProps,
|
|
7
|
+
DialogProps,
|
|
8
|
+
DialogTriggerAsChildProps,
|
|
9
|
+
DialogTriggerProps,
|
|
10
|
+
} from "@askrjs/ui";
|
|
11
|
+
|
|
12
|
+
export type CommandPaletteProps = DialogProps;
|
|
13
|
+
export type CommandPaletteTriggerProps = DialogTriggerProps;
|
|
14
|
+
export type CommandPaletteTriggerAsChildProps = DialogTriggerAsChildProps;
|
|
15
|
+
|
|
16
|
+
export type CommandPaletteContentProps = Omit<
|
|
17
|
+
DialogContentProps,
|
|
18
|
+
"children" | "title" | "onEscapeKeyDown" | "onInteractOutside" | "onPointerDownOutside"
|
|
19
|
+
> & {
|
|
20
|
+
children?: unknown;
|
|
21
|
+
title: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
initialFocus?: string | (() => HTMLElement | null) | false;
|
|
24
|
+
closeOnBackdrop?: boolean;
|
|
25
|
+
closeOnEscape?: boolean;
|
|
26
|
+
overlayProps?: DialogOverlayProps;
|
|
27
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
28
|
+
onInteractOutside?: (event: Event) => void;
|
|
29
|
+
onPointerDownOutside?: (event: PointerEvent) => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type CommandPaletteLinkProps = LinkProps & {
|
|
33
|
+
closeOnSelect?: boolean;
|
|
34
|
+
onBeforeNavigate?: () => void;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type CommandPaletteListProps = Omit<JSX.IntrinsicElements["ul"], "children" | "ref"> & {
|
|
38
|
+
children?: unknown;
|
|
39
|
+
ref?: Ref<HTMLUListElement>;
|
|
40
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export {
|
|
2
|
+
CommandPalette,
|
|
3
|
+
CommandPaletteContent,
|
|
4
|
+
CommandPaletteLink,
|
|
5
|
+
CommandPaletteList,
|
|
6
|
+
CommandPaletteTrigger,
|
|
7
|
+
} from "./command-palette";
|
|
8
|
+
export type {
|
|
9
|
+
CommandPaletteContentProps,
|
|
10
|
+
CommandPaletteLinkProps,
|
|
11
|
+
CommandPaletteListProps,
|
|
12
|
+
CommandPaletteProps,
|
|
13
|
+
CommandPaletteTriggerAsChildProps,
|
|
14
|
+
CommandPaletteTriggerProps,
|
|
15
|
+
} from "./command-palette.types";
|
|
@@ -3,7 +3,7 @@ import { Slot } from "@askrjs/askr/foundations";
|
|
|
3
3
|
import { Block } from "../block";
|
|
4
4
|
import { classes } from "../_internal/classes";
|
|
5
5
|
import { mergeProps } from "../_internal/merge-props";
|
|
6
|
-
import { intrinsicElement } from "../_internal/jsx";
|
|
6
|
+
import { intrinsicElement, normalizeAriaProps } from "../_internal/jsx";
|
|
7
7
|
import type {
|
|
8
8
|
SidebarButtonProps,
|
|
9
9
|
SidebarPartProps,
|
|
@@ -27,7 +27,7 @@ function sidebarPart(
|
|
|
27
27
|
element: keyof JSX.IntrinsicElements = "div",
|
|
28
28
|
): JSX.Element {
|
|
29
29
|
const { as, asChild, children, class: className, ...rest } = props;
|
|
30
|
-
const finalProps = mergeProps(rest, {
|
|
30
|
+
const finalProps = mergeProps(normalizeAriaProps(rest), {
|
|
31
31
|
class: className,
|
|
32
32
|
"data-slot": slot,
|
|
33
33
|
});
|
|
@@ -123,7 +123,7 @@ export function SidebarMenuButton(props: SidebarButtonProps): JSX.Element {
|
|
|
123
123
|
variant,
|
|
124
124
|
...rest
|
|
125
125
|
} = props;
|
|
126
|
-
const finalProps = mergeProps(rest, {
|
|
126
|
+
const finalProps = mergeProps(normalizeAriaProps(rest), {
|
|
127
127
|
class: classes(className),
|
|
128
128
|
"data-active": active ? "true" : undefined,
|
|
129
129
|
"data-size": size && size !== "default" ? size : undefined,
|
|
@@ -153,7 +153,7 @@ export function SidebarMenuAction(props: SidebarButtonProps): JSX.Element {
|
|
|
153
153
|
type = "button",
|
|
154
154
|
...rest
|
|
155
155
|
} = props;
|
|
156
|
-
const finalProps = mergeProps(rest, {
|
|
156
|
+
const finalProps = mergeProps(normalizeAriaProps(rest), {
|
|
157
157
|
class: classes(className),
|
|
158
158
|
"data-slot": "sidebar-menu-action",
|
|
159
159
|
...sidebarTooltipProps(tooltip, tooltipSide),
|
|
@@ -172,7 +172,7 @@ export function SidebarMenuBadge(props: SidebarPartProps): JSX.Element {
|
|
|
172
172
|
|
|
173
173
|
export function SidebarRail(props: SidebarButtonProps): JSX.Element {
|
|
174
174
|
const { asChild, children, class: className, type = "button", ...rest } = props;
|
|
175
|
-
const finalProps = mergeProps(rest, {
|
|
175
|
+
const finalProps = mergeProps(normalizeAriaProps(rest), {
|
|
176
176
|
class: classes(className),
|
|
177
177
|
"data-slot": "sidebar-rail",
|
|
178
178
|
});
|
|
@@ -194,7 +194,7 @@ export function SidebarTrigger(props: SidebarButtonProps): JSX.Element {
|
|
|
194
194
|
type = "button",
|
|
195
195
|
...rest
|
|
196
196
|
} = props;
|
|
197
|
-
const finalProps = mergeProps(rest, {
|
|
197
|
+
const finalProps = mergeProps(normalizeAriaProps(rest), {
|
|
198
198
|
class: classes("btn btn-ghost btn-icon", className),
|
|
199
199
|
"data-slot": "sidebar-trigger",
|
|
200
200
|
...sidebarTooltipProps(tooltip, tooltipSide),
|
package/src/components.ts
CHANGED
|
@@ -197,6 +197,13 @@ export {
|
|
|
197
197
|
CardTitle,
|
|
198
198
|
} from "./components/card";
|
|
199
199
|
export { Close } from "./components/close";
|
|
200
|
+
export {
|
|
201
|
+
CommandPalette,
|
|
202
|
+
CommandPaletteContent,
|
|
203
|
+
CommandPaletteLink,
|
|
204
|
+
CommandPaletteList,
|
|
205
|
+
CommandPaletteTrigger,
|
|
206
|
+
} from "./components/command-palette";
|
|
200
207
|
export { Container } from "./components/container";
|
|
201
208
|
export { EmptyState } from "./components/empty-state";
|
|
202
209
|
export { Field, FieldError, FieldHint } from "./components/field";
|
|
@@ -274,6 +281,7 @@ export type * from "./components/block";
|
|
|
274
281
|
export type * from "./components/button-group";
|
|
275
282
|
export type * from "./components/card";
|
|
276
283
|
export type * from "./components/close";
|
|
284
|
+
export type * from "./components/command-palette";
|
|
277
285
|
export type * from "./components/container";
|
|
278
286
|
export type * from "./components/empty-state";
|
|
279
287
|
export type * from "./components/field";
|
package/src/entries/command.ts
CHANGED
|
@@ -11,3 +11,18 @@ export {
|
|
|
11
11
|
CommandSeparator,
|
|
12
12
|
CommandShortcut,
|
|
13
13
|
} from "../components/catalog";
|
|
14
|
+
export {
|
|
15
|
+
CommandPalette,
|
|
16
|
+
CommandPaletteContent,
|
|
17
|
+
CommandPaletteLink,
|
|
18
|
+
CommandPaletteList,
|
|
19
|
+
CommandPaletteTrigger,
|
|
20
|
+
} from "../components/command-palette";
|
|
21
|
+
export type {
|
|
22
|
+
CommandPaletteContentProps,
|
|
23
|
+
CommandPaletteLinkProps,
|
|
24
|
+
CommandPaletteListProps,
|
|
25
|
+
CommandPaletteProps,
|
|
26
|
+
CommandPaletteTriggerAsChildProps,
|
|
27
|
+
CommandPaletteTriggerProps,
|
|
28
|
+
} from "../components/command-palette";
|