@askrjs/themes 0.0.10 → 0.0.12
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 +5 -5
- package/THEMING.md +2 -2
- package/dist/components/_internal/block-layout.d.ts +1 -1
- package/dist/components/_internal/block-layout.js +1 -1
- package/dist/components/_internal/block-layout.js.map +1 -1
- package/dist/components/_internal/jsx.js +9 -1
- package/dist/components/_internal/jsx.js.map +1 -1
- package/dist/components/alert/alert.d.ts +0 -1
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert/alert.types.d.ts +0 -1
- package/dist/components/alert/index.d.ts +2 -1
- package/dist/components/aside/aside.d.ts +0 -1
- package/dist/components/aside/aside.types.d.ts +1 -0
- package/dist/components/aside/index.d.ts +2 -1
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +0 -1
- package/dist/components/aspect-ratio/aspect-ratio.js +2 -4
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.types.d.ts +1 -2
- package/dist/components/aspect-ratio/index.d.ts +2 -1
- package/dist/components/badge/badge.d.ts +0 -1
- package/dist/components/badge/badge.js +2 -4
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/badge/badge.types.d.ts +1 -2
- package/dist/components/badge/index.d.ts +2 -1
- package/dist/components/block/block.d.ts +0 -1
- package/dist/components/block/block.js +2 -4
- package/dist/components/block/block.js.map +1 -1
- package/dist/components/block/block.types.d.ts +2 -3
- package/dist/components/block/index.d.ts +2 -1
- package/dist/components/brand/brand.d.ts +0 -1
- package/dist/components/brand/brand.js +4 -5
- package/dist/components/brand/brand.js.map +1 -1
- package/dist/components/brand/brand.types.d.ts +0 -1
- package/dist/components/brand/index.d.ts +2 -1
- package/dist/components/button-group/button-group.d.ts +0 -1
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/button-group/button-group.types.d.ts +0 -1
- package/dist/components/button-group/index.d.ts +2 -1
- package/dist/components/card/card.d.ts +0 -1
- package/dist/components/card/card.types.d.ts +0 -1
- package/dist/components/card/index.d.ts +2 -1
- package/dist/components/catalog.d.ts +0 -1
- package/dist/components/catalog.js +2 -1
- package/dist/components/catalog.js.map +1 -1
- package/dist/components/close/close.d.ts +0 -1
- package/dist/components/close/close.types.d.ts +0 -1
- package/dist/components/close/index.d.ts +2 -1
- package/dist/components/container/container.d.ts +0 -1
- package/dist/components/container/container.types.d.ts +1 -0
- package/dist/components/container/index.d.ts +2 -1
- package/dist/components/empty-state/empty-state.d.ts +0 -1
- package/dist/components/empty-state/empty-state.types.d.ts +1 -0
- package/dist/components/empty-state/index.d.ts +2 -1
- package/dist/components/field/field.d.ts +0 -1
- package/dist/components/field/field.types.d.ts +0 -1
- package/dist/components/field/index.d.ts +2 -1
- package/dist/components/footer/footer.d.ts +0 -1
- package/dist/components/footer/footer.types.d.ts +1 -1
- package/dist/components/footer/index.d.ts +2 -1
- package/dist/components/grid/grid.d.ts +0 -1
- package/dist/components/grid/grid.js +2 -5
- package/dist/components/grid/grid.js.map +1 -1
- package/dist/components/grid/grid.types.d.ts +0 -1
- package/dist/components/grid/index.d.ts +2 -1
- package/dist/components/header/header.d.ts +0 -1
- package/dist/components/header/header.types.d.ts +1 -0
- package/dist/components/header/index.d.ts +2 -1
- package/dist/components/input-group/index.d.ts +2 -1
- package/dist/components/input-group/input-group.d.ts +0 -1
- package/dist/components/input-group/input-group.js +2 -4
- package/dist/components/input-group/input-group.js.map +1 -1
- package/dist/components/input-group/input-group.types.d.ts +0 -1
- package/dist/components/main/index.d.ts +2 -1
- package/dist/components/main/main.d.ts +0 -1
- package/dist/components/main/main.types.d.ts +1 -0
- package/dist/components/nav/index.d.ts +2 -1
- package/dist/components/nav/nav.d.ts +0 -1
- package/dist/components/nav/nav.js +22 -15
- package/dist/components/nav/nav.js.map +1 -1
- package/dist/components/nav/nav.types.d.ts +1 -2
- package/dist/components/navbar/index.d.ts +3 -1
- package/dist/components/navbar/navbar.d.ts +0 -1
- package/dist/components/navbar/navbar.js +9 -8
- package/dist/components/navbar/navbar.js.map +1 -1
- package/dist/components/navbar/navbar.types.d.ts +1 -1
- package/dist/components/overlays/dropdown-content.d.ts +0 -1
- package/dist/components/page/index.d.ts +2 -1
- package/dist/components/page/page.d.ts +0 -1
- package/dist/components/page/page.types.d.ts +1 -0
- package/dist/components/page-header/index.d.ts +2 -1
- package/dist/components/page-header/page-header.d.ts +0 -1
- package/dist/components/page-header/page-header.types.d.ts +1 -0
- package/dist/components/section/index.d.ts +2 -1
- package/dist/components/section/section.d.ts +0 -1
- package/dist/components/section/section.types.d.ts +1 -0
- package/dist/components/separator/index.d.ts +2 -1
- package/dist/components/separator/separator.d.ts +0 -1
- package/dist/components/separator/separator.js +2 -4
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/separator/separator.types.d.ts +0 -1
- package/dist/components/sidebar/index.d.ts +2 -1
- package/dist/components/sidebar/sidebar.d.ts +2 -3
- package/dist/components/sidebar/sidebar.js +5 -8
- package/dist/components/sidebar/sidebar.js.map +1 -1
- package/dist/components/sidebar/sidebar.types.d.ts +1 -0
- package/dist/components/skeleton/index.d.ts +2 -1
- package/dist/components/skeleton/skeleton.d.ts +0 -1
- package/dist/components/skeleton/skeleton.js +8 -8
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/skeleton/skeleton.types.d.ts +0 -1
- package/dist/components/spinner/index.d.ts +2 -1
- package/dist/components/spinner/spinner.d.ts +0 -1
- package/dist/components/spinner/spinner.types.d.ts +0 -1
- package/dist/components/stat/index.d.ts +2 -1
- package/dist/components/stat/stat.d.ts +0 -1
- package/dist/components/stat/stat.types.d.ts +0 -1
- package/dist/components/text/index.d.ts +2 -1
- package/dist/components/text/text.d.ts +0 -1
- package/dist/components/text/text.js +2 -5
- package/dist/components/text/text.js.map +1 -1
- package/dist/components/text/text.types.d.ts +0 -1
- package/dist/components/theme/index.d.ts +2 -1
- package/dist/components/theme/theme.d.ts +5 -6
- package/dist/components/theme/theme.js +102 -70
- package/dist/components/theme/theme.js.map +1 -1
- package/dist/components/toolbar/index.d.ts +2 -1
- package/dist/components/toolbar/toolbar.d.ts +0 -1
- package/dist/components/toolbar/toolbar.types.d.ts +1 -0
- package/dist/components.d.ts +34 -4
- package/dist/components.js +4 -4
- package/dist/controls.d.ts +4 -0
- package/dist/core.d.ts +18 -2
- package/dist/navs.d.ts +1 -0
- package/dist/overlays.d.ts +2 -2
- package/dist/overlays.js +2 -2
- package/dist/surfaces.d.ts +8 -0
- package/dist/theme.d.ts +3 -2
- package/dist/theme.js +2 -2
- package/dist/themes/default/index.css +3 -3
- package/package.json +19 -12
- package/src/components/_internal/jsx.ts +11 -0
- package/src/components/alert/alert.tsx +1 -1
- package/src/components/aspect-ratio/aspect-ratio.tsx +2 -1
- package/src/components/badge/badge.tsx +2 -1
- package/src/components/block/block.tsx +2 -2
- package/src/components/brand/brand.tsx +3 -3
- package/src/components/button-group/button-group.tsx +1 -1
- package/src/components/catalog.tsx +3 -1
- package/src/components/grid/grid.tsx +2 -2
- package/src/components/input-group/input-group.tsx +3 -2
- package/src/components/nav/nav.tsx +25 -19
- package/src/components/navbar/navbar.tsx +22 -14
- package/src/components/separator/separator.tsx +2 -1
- package/src/components/sidebar/index.ts +1 -1
- package/src/components/sidebar/sidebar.tsx +7 -7
- package/src/components/skeleton/skeleton.tsx +8 -10
- package/src/components/text/text.tsx +2 -2
- package/src/components/theme/index.ts +4 -4
- package/src/components/theme/theme.tsx +135 -99
- package/src/components.ts +4 -4
- package/src/overlays.ts +3 -3
- package/src/theme.ts +4 -4
- package/src/themes/default/styles/display/coverage.css +1 -1
- package/src/themes/default/styles/overlays/toast.css +1 -1
- package/src/themes/default/styles/shell/sidebar.css +1 -1
- package/templates/theme/styles/display/coverage.css +1 -1
- package/templates/theme/styles/overlays/toast.css +1 -1
- package/templates/theme/styles/shell/sidebar.css +1 -1
package/dist/components.js
CHANGED
|
@@ -23,13 +23,13 @@ import { Page } from "./components/page/page.js";
|
|
|
23
23
|
import { PageHeader } from "./components/page-header/page-header.js";
|
|
24
24
|
import { Section } from "./components/section/section.js";
|
|
25
25
|
import { Separator } from "./components/separator/separator.js";
|
|
26
|
-
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem,
|
|
26
|
+
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarRail, SidebarScope, SidebarTrigger } from "./components/sidebar/sidebar.js";
|
|
27
27
|
import { Skeleton } from "./components/skeleton/skeleton.js";
|
|
28
28
|
import { Spinner } from "./components/spinner/spinner.js";
|
|
29
29
|
import { Stat, StatDescription, StatLabel, StatValue } from "./components/stat/stat.js";
|
|
30
30
|
import { Text } from "./components/text/text.js";
|
|
31
31
|
import { Toolbar } from "./components/toolbar/toolbar.js";
|
|
32
|
-
import { CAT_THEME_NAMES, CAT_THEME_OPTIONS, DEFAULT_THEME_OPTIONS, ThemePicker,
|
|
32
|
+
import { CAT_THEME_NAMES, CAT_THEME_OPTIONS, DEFAULT_THEME_OPTIONS, ThemePicker, ThemeScope, ThemeToggle, theme } from "./components/theme/theme.js";
|
|
33
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
|
-
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,
|
|
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,
|
|
34
|
+
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 };
|
package/dist/controls.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ButtonGroupOrientation, ButtonGroupProps } from "./components/button-group/button-group.types.js";
|
|
2
2
|
import { ButtonGroup } from "./components/button-group/button-group.js";
|
|
3
|
+
import "./components/button-group/index.js";
|
|
3
4
|
import { CloseNativeProps, CloseOwnProps } from "./components/close/close.types.js";
|
|
4
5
|
import { Close } from "./components/close/close.js";
|
|
6
|
+
import "./components/close/index.js";
|
|
5
7
|
import { FieldErrorProps, FieldHintProps, FieldProps } from "./components/field/field.types.js";
|
|
6
8
|
import { Field, FieldError, FieldHint } from "./components/field/field.js";
|
|
9
|
+
import "./components/field/index.js";
|
|
7
10
|
import { InputGroupOrientation, InputGroupProps, InputGroupTextAsChildProps, InputGroupTextProps } from "./components/input-group/input-group.types.js";
|
|
8
11
|
import { InputGroup, InputGroupText } from "./components/input-group/input-group.js";
|
|
12
|
+
import "./components/input-group/index.js";
|
|
9
13
|
import { Button, ButtonAsChildProps, ButtonNativeProps, ButtonOwnProps, ButtonProps, Checkbox, CheckboxAsChildProps, CheckboxInputProps, CheckboxOwnProps, CheckboxProps, Input, InputAsChildProps, InputEvent, InputInputProps, InputOwnProps, InputProps, Label, LabelAsChildProps, LabelLabelProps, LabelOwnProps, LabelProps, PressEvent, RadioGroup, RadioGroupItem, RadioGroupItemAsChildProps, RadioGroupItemOwnProps, RadioGroupItemProps, RadioGroupOwnProps, RadioGroupProps, Select, SelectContent, SelectContentAsChildProps, SelectContentOwnProps, SelectContentProps, SelectGroup, SelectGroupAsChildProps, SelectGroupProps, SelectItem, SelectItemAsChildProps, SelectItemOwnProps, SelectItemProps, SelectItemText, SelectItemTextAsChildProps, SelectItemTextProps, SelectLabel, SelectLabelAsChildProps, SelectLabelProps, SelectOwnProps, SelectPortal, SelectPortalProps, SelectProps, SelectSeparator, SelectSeparatorAsChildProps, SelectSeparatorProps, SelectTrigger, SelectTriggerAsChildProps, SelectTriggerProps, SelectValue, SelectValueAsChildProps, SelectValueOwnProps, SelectValueProps, Switch, SwitchAsChildProps, SwitchButtonProps, SwitchOwnProps, SwitchProps, Textarea, TextareaAsChildProps, TextareaElementProps, TextareaOwnProps, TextareaProps } from "@askrjs/ui";
|
|
10
14
|
export { Button, type ButtonAsChildProps, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonNativeProps, type ButtonOwnProps, type ButtonProps, Checkbox, type CheckboxAsChildProps, type CheckboxInputProps, type CheckboxOwnProps, type CheckboxProps, Close, type CloseNativeProps, type CloseOwnProps, Field, FieldError, type FieldErrorProps, FieldHint, type FieldHintProps, type FieldProps, Input, type InputAsChildProps, type InputEvent, InputGroup, type InputGroupOrientation, type InputGroupProps, InputGroupText, type InputGroupTextAsChildProps, type InputGroupTextProps, type InputInputProps, type InputOwnProps, type InputProps, Label, type LabelAsChildProps, type LabelLabelProps, type LabelOwnProps, type LabelProps, type PressEvent, RadioGroup, RadioGroupItem, type RadioGroupItemAsChildProps, type RadioGroupItemOwnProps, type RadioGroupItemProps, type RadioGroupOwnProps, type RadioGroupProps, Select, SelectContent, type SelectContentAsChildProps, type SelectContentOwnProps, type SelectContentProps, SelectGroup, type SelectGroupAsChildProps, type SelectGroupProps, SelectItem, type SelectItemAsChildProps, type SelectItemOwnProps, type SelectItemProps, SelectItemText, type SelectItemTextAsChildProps, type SelectItemTextProps, SelectLabel, type SelectLabelAsChildProps, type SelectLabelProps, type SelectOwnProps, SelectPortal, type SelectPortalProps, type SelectProps, SelectSeparator, type SelectSeparatorAsChildProps, type SelectSeparatorProps, SelectTrigger, type SelectTriggerAsChildProps, type SelectTriggerProps, SelectValue, type SelectValueAsChildProps, type SelectValueOwnProps, type SelectValueProps, Switch, type SwitchAsChildProps, type SwitchButtonProps, type SwitchOwnProps, type SwitchProps, Textarea, type TextareaAsChildProps, type TextareaElementProps, type TextareaOwnProps, type TextareaProps };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
import { BlockAlign, BlockBackground, BlockDirection, BlockJustify, BlockMargin, BlockRadius, BlockRowFrom, BlockShadow, BlockSize, BlockSpace, BlockZIndex, ResponsiveValue } from "./components/_internal/block-layout.js";
|
|
2
2
|
import { BlockAsChildProps, BlockDivProps, BlockElement, BlockElementProps, BlockNativeProps, BlockOwnProps, BlockProps, BlockSpanProps } from "./components/block/block.types.js";
|
|
3
3
|
import { Block } from "./components/block/block.js";
|
|
4
|
+
import "./components/block/index.js";
|
|
4
5
|
import { BrandAsChildProps, BrandElement, BrandLabelProps, BrandMarkProps, BrandNativeProps, BrandProps } from "./components/brand/brand.types.js";
|
|
5
6
|
import { Brand, BrandLabel, BrandMark } from "./components/brand/brand.js";
|
|
7
|
+
import "./components/brand/index.js";
|
|
6
8
|
import { ContainerProps } from "./components/container/container.types.js";
|
|
7
9
|
import { Container } from "./components/container/container.js";
|
|
10
|
+
import "./components/container/index.js";
|
|
8
11
|
import { EmptyStateHeadingTag, EmptyStateProps } from "./components/empty-state/empty-state.types.js";
|
|
9
12
|
import { EmptyState } from "./components/empty-state/empty-state.js";
|
|
13
|
+
import "./components/empty-state/index.js";
|
|
10
14
|
import { FooterContentProps, FooterDescriptionProps, FooterLinkProps, FooterLinksProps, FooterProps, FooterSectionProps, FooterTitleProps } from "./components/footer/footer.types.js";
|
|
11
15
|
import { Footer, FooterContent, FooterDescription, FooterLink, FooterLinks, FooterSection, FooterTitle } from "./components/footer/footer.js";
|
|
16
|
+
import "./components/footer/index.js";
|
|
12
17
|
import { GridAlign, GridColumns, GridElement, GridProps } from "./components/grid/grid.types.js";
|
|
13
18
|
import { Grid } from "./components/grid/grid.js";
|
|
19
|
+
import "./components/grid/index.js";
|
|
14
20
|
import { HeaderProps } from "./components/header/header.types.js";
|
|
15
21
|
import { Header } from "./components/header/header.js";
|
|
22
|
+
import "./components/header/index.js";
|
|
16
23
|
import { MainProps } from "./components/main/main.types.js";
|
|
17
24
|
import { Main } from "./components/main/main.js";
|
|
25
|
+
import "./components/main/index.js";
|
|
18
26
|
import { AsideProps } from "./components/aside/aside.types.js";
|
|
19
27
|
import { Aside } from "./components/aside/aside.js";
|
|
28
|
+
import "./components/aside/index.js";
|
|
20
29
|
import { NavBrandProps, NavDropdownProps, NavGroupProps, NavbarCollapseBreakpoint, NavbarProps } from "./components/navbar/navbar.types.js";
|
|
21
30
|
import { NavBrand, NavDropdown, NavGroup, Navbar } from "./components/navbar/navbar.js";
|
|
22
31
|
import { NavItemAsChildProps, NavItemProps, NavLinkProps } from "./components/nav/nav.types.js";
|
|
23
32
|
import { NavItem, NavLink } from "./components/nav/nav.js";
|
|
33
|
+
import "./components/navbar/index.js";
|
|
24
34
|
import { PageProps } from "./components/page/page.types.js";
|
|
25
35
|
import { Page } from "./components/page/page.js";
|
|
36
|
+
import "./components/page/index.js";
|
|
26
37
|
import { PageHeaderProps } from "./components/page-header/page-header.types.js";
|
|
27
38
|
import { PageHeader } from "./components/page-header/page-header.js";
|
|
39
|
+
import "./components/page-header/index.js";
|
|
28
40
|
import { SectionProps } from "./components/section/section.types.js";
|
|
29
41
|
import { Section } from "./components/section/section.js";
|
|
42
|
+
import "./components/section/index.js";
|
|
30
43
|
import { SidebarButtonProps, SidebarCollapsible, SidebarPartProps, SidebarProps, SidebarSide, SidebarTooltipSide, SidebarVariant } from "./components/sidebar/sidebar.types.js";
|
|
31
|
-
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem,
|
|
44
|
+
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarRail, SidebarScope, SidebarTrigger } from "./components/sidebar/sidebar.js";
|
|
45
|
+
import "./components/sidebar/index.js";
|
|
32
46
|
import { TextElement, TextFont, TextNumeric, TextProps, TextSize, TextTone, TextWeight, TextWrap } from "./components/text/text.types.js";
|
|
33
47
|
import { Text } from "./components/text/text.js";
|
|
48
|
+
import "./components/text/index.js";
|
|
34
49
|
import { ToolbarProps } from "./components/toolbar/toolbar.types.js";
|
|
35
50
|
import { Toolbar } from "./components/toolbar/toolbar.js";
|
|
36
|
-
|
|
51
|
+
import "./components/toolbar/index.js";
|
|
52
|
+
export { Aside, type AsideProps, 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, Brand, type BrandAsChildProps, type BrandElement, BrandLabel, type BrandLabelProps, BrandMark, type BrandMarkProps, type BrandNativeProps, type BrandProps, Container, type ContainerProps, EmptyState, type EmptyStateHeadingTag, type EmptyStateProps, Footer, FooterContent, type FooterContentProps, FooterDescription, type FooterDescriptionProps, FooterLink, type FooterLinkProps, FooterLinks, type FooterLinksProps, type FooterProps, FooterSection, type FooterSectionProps, FooterTitle, type FooterTitleProps, Grid, type GridAlign, type GridColumns, type GridElement, type GridProps, Header, type HeaderProps, Main, type MainProps, NavBrand, type NavBrandProps, NavDropdown, type NavDropdownProps, NavGroup, type NavGroupProps, NavItem, type NavItemAsChildProps, type NavItemProps, NavLink, type NavLinkProps, Navbar, type NavbarCollapseBreakpoint, type NavbarProps, Page, PageHeader, type PageHeaderProps, type PageProps, Section, type SectionProps, Sidebar, type SidebarButtonProps, type SidebarCollapsible, type SidebarContent, type SidebarFooter, type SidebarGroup, type SidebarGroupContent, type SidebarGroupLabel, type SidebarHeader, type SidebarInset, type SidebarMenu, type SidebarMenuAction, type SidebarMenuBadge, type SidebarMenuButton, type SidebarMenuItem, type SidebarPartProps, type SidebarProps, type SidebarRail, type SidebarScope, type SidebarSide, type SidebarTooltipSide, type SidebarTrigger, type SidebarVariant, Text, type TextElement, type TextFont, type TextNumeric, type TextProps, type TextSize, type TextTone, type TextWeight, type TextWrap, Toolbar, type ToolbarProps };
|
package/dist/navs.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PillProps, PillsAsChildProps, PillsProps, TabProps, TabsAsChildProps, TabsProps } from "./components/nav/nav.types.js";
|
|
2
2
|
import { Pill, Pills, Tab, Tabs } from "./components/nav/nav.js";
|
|
3
|
+
import "./components/nav/index.js";
|
|
3
4
|
export { Pill, type PillProps, Pills, type PillsAsChildProps, type PillsProps, Tab, type TabProps, Tabs, type TabsAsChildProps, type TabsProps };
|
package/dist/overlays.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DropdownContent } from "./components/overlays/dropdown-content.js";
|
|
2
|
-
import { AlertDialog, AlertDialogAction, AlertDialogActionAsChildProps, AlertDialogActionProps, AlertDialogCancel, AlertDialogCancelAsChildProps, AlertDialogCancelProps, AlertDialogContent, AlertDialogContentAsChildProps, AlertDialogContentOwnProps, AlertDialogContentProps, AlertDialogDescription, AlertDialogDescriptionAsChildProps, AlertDialogDescriptionProps, AlertDialogOverlay, AlertDialogOverlayAsChildProps, AlertDialogOverlayOwnProps, AlertDialogOverlayProps, AlertDialogOwnProps, AlertDialogPortal, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitle, AlertDialogTitleAsChildProps, AlertDialogTitleProps, AlertDialogTrigger, AlertDialogTriggerAsChildProps, AlertDialogTriggerProps, Dialog, DialogClose, DialogCloseAsChildProps, DialogCloseProps, DialogContent, DialogContentAsChildProps, DialogContentOwnProps, DialogContentProps, DialogDescription, DialogDescriptionAsChildProps, DialogDescriptionProps, DialogOverlay, DialogOverlayAsChildProps, DialogOverlayOwnProps, DialogOverlayProps, DialogOwnProps, DialogPortal, DialogPortalProps, DialogProps, DialogTitle, DialogTitleAsChildProps, DialogTitleProps, DialogTrigger, DialogTriggerAsChildProps, DialogTriggerProps, Dropdown, DropdownContentAsChildProps, DropdownContentOwnProps, DropdownContentProps, DropdownGroup, DropdownGroupAsChildProps, DropdownGroupProps, DropdownItem, DropdownItemAsChildProps, DropdownItemOwnProps, DropdownItemProps, DropdownLabel, DropdownLabelAsChildProps, DropdownLabelProps, DropdownOwnProps, DropdownPortal, DropdownPortalProps, DropdownProps, DropdownSeparator, DropdownSeparatorAsChildProps, DropdownSeparatorProps, DropdownTrigger, DropdownTriggerAsChildProps, DropdownTriggerProps, Popover, PopoverClose, PopoverCloseAsChildProps, PopoverCloseProps, PopoverContent, PopoverContentAsChildProps, PopoverContentOwnProps, PopoverContentProps, PopoverOwnProps, PopoverPortal, PopoverPortalProps, PopoverProps, PopoverTrigger, PopoverTriggerAsChildProps, PopoverTriggerProps, Toast, ToastAction, ToastActionAsChildProps, ToastActionProps, ToastClose, ToastCloseAsChildProps, ToastCloseProps, ToastDescription, ToastDescriptionAsChildProps, ToastDescriptionProps,
|
|
3
|
-
export { AlertDialog, AlertDialogAction, type AlertDialogActionAsChildProps, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelAsChildProps, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentAsChildProps, type AlertDialogContentOwnProps, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionAsChildProps, type AlertDialogDescriptionProps, AlertDialogOverlay, type AlertDialogOverlayAsChildProps, type AlertDialogOverlayOwnProps, type AlertDialogOverlayProps, type AlertDialogOwnProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleAsChildProps, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerAsChildProps, type AlertDialogTriggerProps, Dialog, DialogClose, type DialogCloseAsChildProps, type DialogCloseProps, DialogContent, type DialogContentAsChildProps, type DialogContentOwnProps, type DialogContentProps, DialogDescription, type DialogDescriptionAsChildProps, type DialogDescriptionProps, DialogOverlay, type DialogOverlayAsChildProps, type DialogOverlayOwnProps, type DialogOverlayProps, type DialogOwnProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleAsChildProps, type DialogTitleProps, DialogTrigger, type DialogTriggerAsChildProps, type DialogTriggerProps, Dropdown, DropdownContent, type DropdownContentAsChildProps, type DropdownContentOwnProps, type DropdownContentProps, DropdownGroup, type DropdownGroupAsChildProps, type DropdownGroupProps, DropdownItem, type DropdownItemAsChildProps, type DropdownItemOwnProps, type DropdownItemProps, DropdownLabel, type DropdownLabelAsChildProps, type DropdownLabelProps, type DropdownOwnProps, DropdownPortal, type DropdownPortalProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorAsChildProps, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerAsChildProps, type DropdownTriggerProps, Popover, PopoverClose, type PopoverCloseAsChildProps, type PopoverCloseProps, PopoverContent, type PopoverContentAsChildProps, type PopoverContentOwnProps, type PopoverContentProps, type PopoverOwnProps, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverTrigger, type PopoverTriggerAsChildProps, type PopoverTriggerProps, Toast, ToastAction, type ToastActionAsChildProps, type ToastActionProps, ToastClose, type ToastCloseAsChildProps, type ToastCloseProps, ToastDescription, type ToastDescriptionAsChildProps, type ToastDescriptionProps, type
|
|
2
|
+
import { AlertDialog, AlertDialogAction, AlertDialogActionAsChildProps, AlertDialogActionProps, AlertDialogCancel, AlertDialogCancelAsChildProps, AlertDialogCancelProps, AlertDialogContent, AlertDialogContentAsChildProps, AlertDialogContentOwnProps, AlertDialogContentProps, AlertDialogDescription, AlertDialogDescriptionAsChildProps, AlertDialogDescriptionProps, AlertDialogOverlay, AlertDialogOverlayAsChildProps, AlertDialogOverlayOwnProps, AlertDialogOverlayProps, AlertDialogOwnProps, AlertDialogPortal, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitle, AlertDialogTitleAsChildProps, AlertDialogTitleProps, AlertDialogTrigger, AlertDialogTriggerAsChildProps, AlertDialogTriggerProps, Dialog, DialogClose, DialogCloseAsChildProps, DialogCloseProps, DialogContent, DialogContentAsChildProps, DialogContentOwnProps, DialogContentProps, DialogDescription, DialogDescriptionAsChildProps, DialogDescriptionProps, DialogOverlay, DialogOverlayAsChildProps, DialogOverlayOwnProps, DialogOverlayProps, DialogOwnProps, DialogPortal, DialogPortalProps, DialogProps, DialogTitle, DialogTitleAsChildProps, DialogTitleProps, DialogTrigger, DialogTriggerAsChildProps, DialogTriggerProps, Dropdown, DropdownContentAsChildProps, DropdownContentOwnProps, DropdownContentProps, DropdownGroup, DropdownGroupAsChildProps, DropdownGroupProps, DropdownItem, DropdownItemAsChildProps, DropdownItemOwnProps, DropdownItemProps, DropdownLabel, DropdownLabelAsChildProps, DropdownLabelProps, DropdownOwnProps, DropdownPortal, DropdownPortalProps, DropdownProps, DropdownSeparator, DropdownSeparatorAsChildProps, DropdownSeparatorProps, DropdownTrigger, DropdownTriggerAsChildProps, DropdownTriggerProps, Popover, PopoverClose, PopoverCloseAsChildProps, PopoverCloseProps, PopoverContent, PopoverContentAsChildProps, PopoverContentOwnProps, PopoverContentProps, PopoverOwnProps, PopoverPortal, PopoverPortalProps, PopoverProps, PopoverTrigger, PopoverTriggerAsChildProps, PopoverTriggerProps, Toast, ToastAction, ToastActionAsChildProps, ToastActionProps, ToastClose, ToastCloseAsChildProps, ToastCloseProps, ToastDescription, ToastDescriptionAsChildProps, ToastDescriptionProps, ToastHost, ToastHostOwnProps, ToastHostProps, ToastOwnProps, ToastProps, ToastTitle, ToastTitleAsChildProps, ToastTitleProps, ToastViewport, ToastViewportAsChildProps, ToastViewportProps, Tooltip, TooltipContent, TooltipContentAsChildProps, TooltipContentOwnProps, TooltipContentProps, TooltipOwnProps, TooltipPortal, TooltipPortalProps, TooltipProps, TooltipTrigger, TooltipTriggerAsChildProps, TooltipTriggerProps } from "@askrjs/ui";
|
|
3
|
+
export { AlertDialog, AlertDialogAction, type AlertDialogActionAsChildProps, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelAsChildProps, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentAsChildProps, type AlertDialogContentOwnProps, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionAsChildProps, type AlertDialogDescriptionProps, AlertDialogOverlay, type AlertDialogOverlayAsChildProps, type AlertDialogOverlayOwnProps, type AlertDialogOverlayProps, type AlertDialogOwnProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleAsChildProps, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerAsChildProps, type AlertDialogTriggerProps, Dialog, DialogClose, type DialogCloseAsChildProps, type DialogCloseProps, DialogContent, type DialogContentAsChildProps, type DialogContentOwnProps, type DialogContentProps, DialogDescription, type DialogDescriptionAsChildProps, type DialogDescriptionProps, DialogOverlay, type DialogOverlayAsChildProps, type DialogOverlayOwnProps, type DialogOverlayProps, type DialogOwnProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleAsChildProps, type DialogTitleProps, DialogTrigger, type DialogTriggerAsChildProps, type DialogTriggerProps, Dropdown, DropdownContent, type DropdownContentAsChildProps, type DropdownContentOwnProps, type DropdownContentProps, DropdownGroup, type DropdownGroupAsChildProps, type DropdownGroupProps, DropdownItem, type DropdownItemAsChildProps, type DropdownItemOwnProps, type DropdownItemProps, DropdownLabel, type DropdownLabelAsChildProps, type DropdownLabelProps, type DropdownOwnProps, DropdownPortal, type DropdownPortalProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorAsChildProps, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerAsChildProps, type DropdownTriggerProps, Popover, PopoverClose, type PopoverCloseAsChildProps, type PopoverCloseProps, PopoverContent, type PopoverContentAsChildProps, type PopoverContentOwnProps, type PopoverContentProps, type PopoverOwnProps, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverTrigger, type PopoverTriggerAsChildProps, type PopoverTriggerProps, Toast, ToastAction, type ToastActionAsChildProps, type ToastActionProps, ToastClose, type ToastCloseAsChildProps, type ToastCloseProps, ToastDescription, type ToastDescriptionAsChildProps, type ToastDescriptionProps, ToastHost, type ToastHostOwnProps, type ToastHostProps, type ToastOwnProps, type ToastProps, ToastTitle, type ToastTitleAsChildProps, type ToastTitleProps, ToastViewport, type ToastViewportAsChildProps, type ToastViewportProps, Tooltip, TooltipContent, type TooltipContentAsChildProps, type TooltipContentOwnProps, type TooltipContentProps, type TooltipOwnProps, TooltipPortal, type TooltipPortalProps, type TooltipProps, TooltipTrigger, type TooltipTriggerAsChildProps, type TooltipTriggerProps };
|
package/dist/overlays.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { DropdownContent } from "./components/overlays/dropdown-content.js";
|
|
3
|
-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, DropdownGroup, DropdownItem, DropdownLabel, DropdownPortal, DropdownSeparator, DropdownTrigger, Popover, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Toast, ToastAction, ToastClose, ToastDescription,
|
|
4
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, DropdownContent, DropdownGroup, DropdownItem, DropdownLabel, DropdownPortal, DropdownSeparator, DropdownTrigger, Popover, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Toast, ToastAction, ToastClose, ToastDescription,
|
|
3
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, DropdownGroup, DropdownItem, DropdownLabel, DropdownPortal, DropdownSeparator, DropdownTrigger, Popover, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Toast, ToastAction, ToastClose, ToastDescription, ToastHost, ToastTitle, ToastViewport, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "@askrjs/ui";
|
|
4
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, DropdownContent, DropdownGroup, DropdownItem, DropdownLabel, DropdownPortal, DropdownSeparator, DropdownTrigger, Popover, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Toast, ToastAction, ToastClose, ToastDescription, ToastHost, ToastTitle, ToastViewport, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger };
|
package/dist/surfaces.d.ts
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import { AlertHeadingTag, AlertProps, AlertVariant } from "./components/alert/alert.types.js";
|
|
2
2
|
import { Alert } from "./components/alert/alert.js";
|
|
3
|
+
import "./components/alert/index.js";
|
|
3
4
|
import { AspectRatioAsChildProps, AspectRatioProps } from "./components/aspect-ratio/aspect-ratio.types.js";
|
|
4
5
|
import { AspectRatio } from "./components/aspect-ratio/aspect-ratio.js";
|
|
6
|
+
import "./components/aspect-ratio/index.js";
|
|
5
7
|
import { BadgeAsChildProps, BadgeOwnProps, BadgeProps } from "./components/badge/badge.types.js";
|
|
6
8
|
import { Badge } from "./components/badge/badge.js";
|
|
9
|
+
import "./components/badge/index.js";
|
|
7
10
|
import { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CardVariant } from "./components/card/card.types.js";
|
|
8
11
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/card.js";
|
|
12
|
+
import "./components/card/index.js";
|
|
9
13
|
import { SeparatorAsChildProps, SeparatorNativeProps, SeparatorOwnProps, SeparatorProps } from "./components/separator/separator.types.js";
|
|
10
14
|
import { Separator } from "./components/separator/separator.js";
|
|
15
|
+
import "./components/separator/index.js";
|
|
11
16
|
import { SkeletonAsChildProps, SkeletonOwnProps, SkeletonProps } from "./components/skeleton/skeleton.types.js";
|
|
12
17
|
import { Skeleton } from "./components/skeleton/skeleton.js";
|
|
18
|
+
import "./components/skeleton/index.js";
|
|
13
19
|
import { SpinnerOwnProps, SpinnerProps, SpinnerSize } from "./components/spinner/spinner.types.js";
|
|
14
20
|
import { Spinner } from "./components/spinner/spinner.js";
|
|
21
|
+
import "./components/spinner/index.js";
|
|
15
22
|
import { StatDescriptionProps, StatLabelProps, StatProps, StatValueProps } from "./components/stat/stat.types.js";
|
|
16
23
|
import { Stat, StatDescription, StatLabel, StatValue } from "./components/stat/stat.js";
|
|
24
|
+
import "./components/stat/index.js";
|
|
17
25
|
import { Avatar, AvatarAsChildProps, AvatarFallback, AvatarFallbackAsChildProps, AvatarFallbackOwnProps, AvatarFallbackProps, AvatarImage, AvatarImageOwnProps, AvatarImageProps, AvatarLoadingStatus, AvatarOwnProps, AvatarProps, Progress, ProgressCircle, ProgressCircleIndicator, ProgressCircleIndicatorAsChildProps, ProgressCircleIndicatorProps, ProgressCircleOwnProps, ProgressCircleProps, ProgressIndicator, ProgressIndicatorAsChildProps, ProgressIndicatorProps, ProgressOwnProps, ProgressProps, Table, TableAsChildProps, TableBody, TableBodyAsChildProps, TableBodyProps, TableCaption, TableCaptionAsChildProps, TableCaptionProps, TableCell, TableCellAsChildProps, TableCellProps, TableFoot, TableFootAsChildProps, TableFootProps, TableHead, TableHeadAsChildProps, TableHeadProps, TableHeaderCell, TableHeaderCellAsChildProps, TableHeaderCellProps, TableProps, TableRow, TableRowAsChildProps, TableRowProps } from "@askrjs/ui";
|
|
18
26
|
export { Alert, type AlertHeadingTag, type AlertProps, type AlertVariant, AspectRatio, type AspectRatioAsChildProps, type AspectRatioProps, Avatar, type AvatarAsChildProps, AvatarFallback, type AvatarFallbackAsChildProps, type AvatarFallbackOwnProps, type AvatarFallbackProps, AvatarImage, type AvatarImageOwnProps, type AvatarImageProps, type AvatarLoadingStatus, type AvatarOwnProps, type AvatarProps, Badge, type BadgeAsChildProps, type BadgeOwnProps, type BadgeProps, Card, type CardAction, type CardActionProps, type CardContent, type CardContentProps, type CardDescription, type CardDescriptionProps, type CardFooter, type CardFooterProps, type CardHeader, type CardHeaderProps, type CardProps, type CardTitle, type CardTitleProps, type CardVariant, Progress, ProgressCircle, ProgressCircleIndicator, type ProgressCircleIndicatorAsChildProps, type ProgressCircleIndicatorProps, type ProgressCircleOwnProps, type ProgressCircleProps, ProgressIndicator, type ProgressIndicatorAsChildProps, type ProgressIndicatorProps, type ProgressOwnProps, type ProgressProps, Separator, type SeparatorAsChildProps, type SeparatorNativeProps, type SeparatorOwnProps, type SeparatorProps, Skeleton, type SkeletonAsChildProps, type SkeletonOwnProps, type SkeletonProps, Spinner, type SpinnerOwnProps, type SpinnerProps, type SpinnerSize, Stat, StatDescription, type StatDescriptionProps, StatLabel, type StatLabelProps, type StatProps, StatValue, type StatValueProps, Table, type TableAsChildProps, TableBody, type TableBodyAsChildProps, type TableBodyProps, TableCaption, type TableCaptionAsChildProps, type TableCaptionProps, TableCell, type TableCellAsChildProps, type TableCellProps, TableFoot, type TableFootAsChildProps, type TableFootProps, TableHead, type TableHeadAsChildProps, type TableHeadProps, TableHeaderCell, type TableHeaderCellAsChildProps, type TableHeaderCellProps, type TableProps, TableRow, type TableRowAsChildProps, type TableRowProps };
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { CAT_THEME_NAMES, CAT_THEME_OPTIONS, CatThemeName, DEFAULT_THEME_OPTIONS,
|
|
2
|
-
|
|
1
|
+
import { CAT_THEME_NAMES, CAT_THEME_OPTIONS, CatThemeName, DEFAULT_THEME_OPTIONS, ThemeName, ThemeOption, ThemePicker, ThemePickerProps, ThemeScope, ThemeScopeProps, ThemeScopeValue, ThemeToggle, ThemeToggleProps, ThemeToggleRenderContext, theme } from "./components/theme/theme.js";
|
|
2
|
+
import "./components/theme/index.js";
|
|
3
|
+
export { CAT_THEME_NAMES, CAT_THEME_OPTIONS, type CatThemeName, DEFAULT_THEME_OPTIONS, type ThemeName, type ThemeOption, ThemePicker, type ThemePickerProps, ThemeScope, type ThemeScopeProps, type ThemeScopeValue, ThemeToggle, type ThemeToggleProps, type ThemeToggleRenderContext, theme };
|
package/dist/theme.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { CAT_THEME_NAMES, CAT_THEME_OPTIONS, DEFAULT_THEME_OPTIONS, ThemePicker,
|
|
3
|
-
export { CAT_THEME_NAMES, CAT_THEME_OPTIONS, DEFAULT_THEME_OPTIONS, ThemePicker,
|
|
2
|
+
import { CAT_THEME_NAMES, CAT_THEME_OPTIONS, DEFAULT_THEME_OPTIONS, ThemePicker, ThemeScope, ThemeToggle, theme } from "./components/theme/theme.js";
|
|
3
|
+
export { CAT_THEME_NAMES, CAT_THEME_OPTIONS, DEFAULT_THEME_OPTIONS, ThemePicker, ThemeScope, ThemeToggle, theme };
|
|
@@ -1585,7 +1585,7 @@
|
|
|
1585
1585
|
border-inline-end: 0;
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
|
-
:where([data-slot="sidebar-
|
|
1588
|
+
:where([data-slot="sidebar-scope"]) {
|
|
1589
1589
|
background: var(--ak-color-bg);
|
|
1590
1590
|
min-block-size: 100svh;
|
|
1591
1591
|
inline-size: 100%;
|
|
@@ -4293,7 +4293,7 @@
|
|
|
4293
4293
|
background: none;
|
|
4294
4294
|
}
|
|
4295
4295
|
|
|
4296
|
-
:where([data-slot="theme-
|
|
4296
|
+
:where([data-slot="theme-scope"]) {
|
|
4297
4297
|
min-block-size: 100vh;
|
|
4298
4298
|
color: var(--ak-color-text);
|
|
4299
4299
|
background: var(--ak-color-bg);
|
|
@@ -5013,7 +5013,7 @@
|
|
|
5013
5013
|
}
|
|
5014
5014
|
}
|
|
5015
5015
|
|
|
5016
|
-
:where([data-slot="toast-
|
|
5016
|
+
:where([data-slot="toast-host"]) {
|
|
5017
5017
|
display: contents;
|
|
5018
5018
|
}
|
|
5019
5019
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askrjs/themes",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Default theme tokens, styles, and component presets for Askr apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"askr",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/askrjs/askr-themes.git"
|
|
22
|
+
"url": "git+https://github.com/askrjs/askr-themes.git"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|
|
@@ -282,7 +282,8 @@
|
|
|
282
282
|
"import": "./dist/components.js"
|
|
283
283
|
},
|
|
284
284
|
"./default/tokens.css": "./src/themes/default/tokens.css",
|
|
285
|
-
"./templates/*": "./templates/*"
|
|
285
|
+
"./templates/*": "./templates/*",
|
|
286
|
+
"./package.json": "./package.json"
|
|
286
287
|
},
|
|
287
288
|
"publishConfig": {
|
|
288
289
|
"access": "public"
|
|
@@ -299,28 +300,34 @@
|
|
|
299
300
|
"test:unit": "vp test run -c vitest.test.unit.config.ts",
|
|
300
301
|
"test:jsdom": "cross-env NODE_ENV=production vp test run -c vitest.test.jsdom.config.ts",
|
|
301
302
|
"test:browser": "vp test run -c vitest.test.browser.config.ts --mode production",
|
|
303
|
+
"test:publint": "publint",
|
|
302
304
|
"fmt": "vp fmt .",
|
|
303
305
|
"lint": "vp lint .",
|
|
306
|
+
"typecheck": "tsc -p tsconfig.pack.json --noEmit",
|
|
304
307
|
"build": "vp pack",
|
|
305
|
-
"
|
|
308
|
+
"pack:check": "npm pack --ignore-scripts --dry-run --json",
|
|
309
|
+
"check": "npm run lint && npm run typecheck && npm test && npm run build && npm run test:publint && npm run pack:check",
|
|
310
|
+
"prepack": "npm run build",
|
|
311
|
+
"prepublishOnly": "npm run check",
|
|
306
312
|
"test:checks": "vp test run -c vitest.test.checks.config.ts"
|
|
307
313
|
},
|
|
308
314
|
"devDependencies": {
|
|
309
|
-
"@askrjs/askr": ">=0.0.
|
|
310
|
-
"@askrjs/ui": ">=0.0.
|
|
311
|
-
"@askrjs/vite": ">=0.0.
|
|
312
|
-
"@tsdown/css": "0.22.
|
|
315
|
+
"@askrjs/askr": ">=0.0.52 <0.1.0",
|
|
316
|
+
"@askrjs/ui": ">=0.0.12 <0.1.0",
|
|
317
|
+
"@askrjs/vite": ">=0.0.5 <0.1.0",
|
|
318
|
+
"@tsdown/css": "0.22.8",
|
|
313
319
|
"@types/node": "^26.0.0",
|
|
314
|
-
"@vitest/browser-playwright": "
|
|
320
|
+
"@vitest/browser-playwright": "4.1.10",
|
|
315
321
|
"cross-env": "^10.1.0",
|
|
316
322
|
"jsdom": "^29.1.1",
|
|
317
323
|
"playwright": "^1.61.0",
|
|
324
|
+
"publint": "^0.3.21",
|
|
318
325
|
"typescript": "^6.0.3",
|
|
319
|
-
"vite-plus": "^0.2.
|
|
326
|
+
"vite-plus": "^0.2.4"
|
|
320
327
|
},
|
|
321
328
|
"peerDependencies": {
|
|
322
|
-
"@askrjs/askr": ">=0.0.
|
|
323
|
-
"@askrjs/ui": ">=0.0.
|
|
329
|
+
"@askrjs/askr": ">=0.0.52 <0.1.0",
|
|
330
|
+
"@askrjs/ui": ">=0.0.12 <0.1.0"
|
|
324
331
|
},
|
|
325
332
|
"engines": {
|
|
326
333
|
"node": ">=18"
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { JSXElement } from "@askrjs/askr/foundations";
|
|
2
|
+
import { jsx } from "@askrjs/askr/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
const renderIntrinsicElement = jsx as (type: string, props: Record<string, unknown>) => JSX.Element;
|
|
5
|
+
|
|
6
|
+
export function intrinsicElement(
|
|
7
|
+
type: string,
|
|
8
|
+
props: Record<string, unknown>,
|
|
9
|
+
children: unknown,
|
|
10
|
+
): JSX.Element {
|
|
11
|
+
return renderIntrinsicElement(type, { ...props, children });
|
|
12
|
+
}
|
|
2
13
|
|
|
3
14
|
export function isJsxElement(value: unknown): value is JSXElement {
|
|
4
15
|
return typeof value === "object" && value !== null && "$$typeof" in value && "props" in value;
|
|
@@ -43,7 +43,7 @@ export function Alert(props: AlertProps): JSX.Element {
|
|
|
43
43
|
data-dismissible={shouldRenderDismiss ? "true" : undefined}
|
|
44
44
|
data-slot="alert"
|
|
45
45
|
data-variant={hasVariant ? variant : undefined}
|
|
46
|
-
role={resolvedRole}
|
|
46
|
+
role={resolvedRole as string}
|
|
47
47
|
>
|
|
48
48
|
{icon !== undefined ? (
|
|
49
49
|
<div aria-hidden="true" class="alert-icon" data-slot="alert-icon">
|
|
@@ -2,6 +2,7 @@ import { Slot } from "@askrjs/askr/foundations";
|
|
|
2
2
|
import { mergeProps } from "../_internal/merge-props";
|
|
3
3
|
import { mergeLayoutStyles } from "../_internal/block-layout";
|
|
4
4
|
import { styleDeclarationsToClass } from "../_internal/style";
|
|
5
|
+
import { intrinsicElement } from "../_internal/jsx";
|
|
5
6
|
import type { AspectRatioAsChildProps, AspectRatioProps } from "./aspect-ratio.types";
|
|
6
7
|
|
|
7
8
|
export function AspectRatio(props: AspectRatioProps): JSX.Element;
|
|
@@ -30,5 +31,5 @@ export function AspectRatio(props: AspectRatioProps | AspectRatioAsChildProps) {
|
|
|
30
31
|
return <Slot asChild {...finalProps} children={children} />;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
return
|
|
34
|
+
return intrinsicElement("div", finalProps, children);
|
|
34
35
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Slot } from "@askrjs/askr/foundations";
|
|
2
2
|
import { classes } from "../_internal/classes";
|
|
3
3
|
import { mergeProps } from "../_internal/merge-props";
|
|
4
|
+
import { intrinsicElement } from "../_internal/jsx";
|
|
4
5
|
import type { BadgeAsChildProps, BadgeProps } from "./badge.types";
|
|
5
6
|
|
|
6
7
|
function normalizeBadgeVariant(variant: BadgeProps["variant"] | undefined) {
|
|
@@ -23,5 +24,5 @@ export function Badge(props: BadgeProps | BadgeAsChildProps) {
|
|
|
23
24
|
return <Slot asChild {...finalProps} children={children} />;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
return
|
|
27
|
+
return intrinsicElement("span", finalProps, children);
|
|
27
28
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
splitBlockLayoutProps,
|
|
7
7
|
} from "../_internal/block-layout";
|
|
8
8
|
import { mergeProps } from "../_internal/merge-props";
|
|
9
|
+
import { intrinsicElement } from "../_internal/jsx";
|
|
9
10
|
import { styleDeclarationsToClass } from "../_internal/style";
|
|
10
11
|
import type { BlockAsChildProps, BlockNativeProps } from "./block.types";
|
|
11
12
|
|
|
@@ -50,6 +51,5 @@ export function Block(props: BlockNativeProps | BlockAsChildProps) {
|
|
|
50
51
|
return <Slot asChild {...finalProps} children={children as JSX.Element} />;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
return <Element {...finalProps}>{children}</Element>;
|
|
54
|
+
return intrinsicElement(as ?? DEFAULT_ELEMENT, finalProps, children);
|
|
55
55
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Slot } from "@askrjs/askr/foundations";
|
|
2
2
|
import { classes } from "../_internal/classes";
|
|
3
3
|
import { mergeProps } from "../_internal/merge-props";
|
|
4
|
+
import { intrinsicElement } from "../_internal/jsx";
|
|
4
5
|
import type {
|
|
5
6
|
BrandAsChildProps,
|
|
6
7
|
BrandLabelProps,
|
|
@@ -15,7 +16,6 @@ export function Brand<TElement extends "div" | "a" | "span" = "div">(
|
|
|
15
16
|
props: BrandProps<TElement>,
|
|
16
17
|
): JSX.Element {
|
|
17
18
|
const {
|
|
18
|
-
as,
|
|
19
19
|
asChild,
|
|
20
20
|
children,
|
|
21
21
|
class: classProp,
|
|
@@ -23,6 +23,7 @@ export function Brand<TElement extends "div" | "a" | "span" = "div">(
|
|
|
23
23
|
ref,
|
|
24
24
|
...rest
|
|
25
25
|
} = props as BrandNativeProps | BrandAsChildProps;
|
|
26
|
+
const as = "as" in props ? props.as : undefined;
|
|
26
27
|
|
|
27
28
|
const finalProps = mergeProps(rest, {
|
|
28
29
|
ref,
|
|
@@ -34,8 +35,7 @@ export function Brand<TElement extends "div" | "a" | "span" = "div">(
|
|
|
34
35
|
return <Slot asChild {...finalProps} children={children as JSX.Element} />;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
return <Element {...finalProps}>{children}</Element>;
|
|
38
|
+
return intrinsicElement(as ?? DEFAULT_ELEMENT, finalProps, children);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export function BrandMark(props: BrandMarkProps): JSX.Element {
|
|
@@ -24,7 +24,7 @@ export function ButtonGroup(props: ButtonGroupProps): JSX.Element {
|
|
|
24
24
|
data-attached={attached ? "true" : "false"}
|
|
25
25
|
data-orientation={orientation}
|
|
26
26
|
data-slot="button-group"
|
|
27
|
-
role={role ?? "group"}
|
|
27
|
+
role={(role ?? "group") as string}
|
|
28
28
|
>
|
|
29
29
|
{children}
|
|
30
30
|
</div>
|
|
@@ -5,6 +5,8 @@ import { Block } from "./block";
|
|
|
5
5
|
import { classes } from "./_internal/classes";
|
|
6
6
|
import { mergeProps } from "./_internal/merge-props";
|
|
7
7
|
|
|
8
|
+
const CatalogDialogContent = DialogContent as (props: Record<string, unknown>) => JSX.Element;
|
|
9
|
+
|
|
8
10
|
type CatalogElement = keyof JSX.IntrinsicElements;
|
|
9
11
|
|
|
10
12
|
export type CatalogComponentProps = Record<string, unknown> & {
|
|
@@ -647,7 +649,7 @@ export function SheetContent(
|
|
|
647
649
|
},
|
|
648
650
|
): JSX.Element {
|
|
649
651
|
const { side = "right", ...rest } = props;
|
|
650
|
-
return <
|
|
652
|
+
return <CatalogDialogContent {...rest} data-side={side} data-slot="sheet-content" />;
|
|
651
653
|
}
|
|
652
654
|
|
|
653
655
|
export function SheetHeader(props: CatalogComponentProps): JSX.Element {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { classes } from "../_internal/classes";
|
|
2
2
|
import { mergeLayoutStyles } from "../_internal/block-layout";
|
|
3
3
|
import { mergeProps } from "../_internal/merge-props";
|
|
4
|
+
import { intrinsicElement } from "../_internal/jsx";
|
|
4
5
|
import { styleDeclarationsToClass } from "../_internal/style";
|
|
5
6
|
import type { BlockSpace, LayoutBreakpoint, ResponsiveValue } from "../_internal/block-layout";
|
|
6
7
|
import type { GridAlign, GridColumns, GridElement, GridProps } from "./grid.types";
|
|
@@ -108,6 +109,5 @@ export function Grid<TElement extends GridElement = "div">(
|
|
|
108
109
|
"data-slot": "grid",
|
|
109
110
|
});
|
|
110
111
|
|
|
111
|
-
|
|
112
|
-
return <Element {...finalProps}>{children}</Element>;
|
|
112
|
+
return intrinsicElement(as ?? DEFAULT_ELEMENT, finalProps, children);
|
|
113
113
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Slot } from "@askrjs/askr/foundations";
|
|
2
2
|
import { mergeProps } from "@askrjs/askr/foundations/utilities";
|
|
3
3
|
import { classes } from "../_internal/classes";
|
|
4
|
+
import { intrinsicElement } from "../_internal/jsx";
|
|
4
5
|
import type {
|
|
5
6
|
InputGroupProps,
|
|
6
7
|
InputGroupTextAsChildProps,
|
|
@@ -30,7 +31,7 @@ export function InputGroup(props: InputGroupProps): JSX.Element {
|
|
|
30
31
|
data-attached={attached ? "true" : "false"}
|
|
31
32
|
data-orientation={orientation}
|
|
32
33
|
data-slot="input-group"
|
|
33
|
-
role={role ?? "group"}
|
|
34
|
+
role={(role ?? "group") as string}
|
|
34
35
|
>
|
|
35
36
|
{children}
|
|
36
37
|
</div>
|
|
@@ -53,5 +54,5 @@ export function InputGroupText(
|
|
|
53
54
|
return <Slot asChild {...finalProps} children={children} />;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
return
|
|
57
|
+
return intrinsicElement("span", finalProps, children);
|
|
57
58
|
}
|