@askrjs/themes 0.0.11 → 0.0.13

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.
Files changed (190) hide show
  1. package/README.md +5 -5
  2. package/THEMING.md +2 -2
  3. package/dist/components/_internal/block-layout.d.ts +1 -2
  4. package/dist/components/_internal/block-layout.js +1 -3
  5. package/dist/components/_internal/block-layout.js.map +1 -1
  6. package/dist/components/_internal/classes.js +0 -2
  7. package/dist/components/_internal/jsx.js +9 -3
  8. package/dist/components/_internal/jsx.js.map +1 -1
  9. package/dist/components/_internal/merge-props.js +0 -2
  10. package/dist/components/_internal/pathname.js +0 -2
  11. package/dist/components/_internal/style.js +0 -2
  12. package/dist/components/alert/alert.d.ts +1 -3
  13. package/dist/components/alert/alert.js +0 -2
  14. package/dist/components/alert/alert.js.map +1 -1
  15. package/dist/components/alert/alert.types.d.ts +1 -3
  16. package/dist/components/alert/index.d.ts +2 -1
  17. package/dist/components/aside/aside.d.ts +1 -3
  18. package/dist/components/aside/aside.js +0 -2
  19. package/dist/components/aside/aside.types.d.ts +2 -2
  20. package/dist/components/aside/index.d.ts +2 -1
  21. package/dist/components/aspect-ratio/aspect-ratio.d.ts +1 -3
  22. package/dist/components/aspect-ratio/aspect-ratio.js +2 -6
  23. package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -1
  24. package/dist/components/aspect-ratio/aspect-ratio.types.d.ts +1 -3
  25. package/dist/components/aspect-ratio/index.d.ts +2 -1
  26. package/dist/components/badge/badge.d.ts +1 -3
  27. package/dist/components/badge/badge.js +2 -6
  28. package/dist/components/badge/badge.js.map +1 -1
  29. package/dist/components/badge/badge.types.d.ts +1 -3
  30. package/dist/components/badge/index.d.ts +2 -1
  31. package/dist/components/block/block.d.ts +1 -3
  32. package/dist/components/block/block.js +2 -6
  33. package/dist/components/block/block.js.map +1 -1
  34. package/dist/components/block/block.types.d.ts +2 -4
  35. package/dist/components/block/index.d.ts +2 -1
  36. package/dist/components/brand/brand.d.ts +1 -3
  37. package/dist/components/brand/brand.js +4 -7
  38. package/dist/components/brand/brand.js.map +1 -1
  39. package/dist/components/brand/brand.types.d.ts +1 -3
  40. package/dist/components/brand/index.d.ts +2 -1
  41. package/dist/components/button-group/button-group.d.ts +1 -3
  42. package/dist/components/button-group/button-group.js +0 -2
  43. package/dist/components/button-group/button-group.js.map +1 -1
  44. package/dist/components/button-group/button-group.types.d.ts +1 -3
  45. package/dist/components/button-group/index.d.ts +2 -1
  46. package/dist/components/card/card.d.ts +1 -3
  47. package/dist/components/card/card.js +0 -2
  48. package/dist/components/card/card.types.d.ts +1 -3
  49. package/dist/components/card/index.d.ts +2 -1
  50. package/dist/components/catalog.d.ts +1 -3
  51. package/dist/components/catalog.js +2 -3
  52. package/dist/components/catalog.js.map +1 -1
  53. package/dist/components/close/close.d.ts +1 -3
  54. package/dist/components/close/close.js +0 -2
  55. package/dist/components/close/close.types.d.ts +1 -3
  56. package/dist/components/close/index.d.ts +2 -1
  57. package/dist/components/container/container.d.ts +1 -3
  58. package/dist/components/container/container.js +0 -2
  59. package/dist/components/container/container.types.d.ts +2 -2
  60. package/dist/components/container/index.d.ts +2 -1
  61. package/dist/components/empty-state/empty-state.d.ts +1 -3
  62. package/dist/components/empty-state/empty-state.js +0 -2
  63. package/dist/components/empty-state/empty-state.types.d.ts +2 -2
  64. package/dist/components/empty-state/index.d.ts +2 -1
  65. package/dist/components/field/field.d.ts +1 -3
  66. package/dist/components/field/field.js +0 -2
  67. package/dist/components/field/field.types.d.ts +1 -3
  68. package/dist/components/field/index.d.ts +2 -1
  69. package/dist/components/footer/footer.d.ts +1 -3
  70. package/dist/components/footer/footer.js +0 -2
  71. package/dist/components/footer/footer.types.d.ts +2 -3
  72. package/dist/components/footer/index.d.ts +2 -1
  73. package/dist/components/grid/grid.d.ts +1 -3
  74. package/dist/components/grid/grid.js +2 -7
  75. package/dist/components/grid/grid.js.map +1 -1
  76. package/dist/components/grid/grid.types.d.ts +1 -3
  77. package/dist/components/grid/index.d.ts +2 -1
  78. package/dist/components/header/header.d.ts +1 -3
  79. package/dist/components/header/header.js +0 -2
  80. package/dist/components/header/header.types.d.ts +2 -2
  81. package/dist/components/header/index.d.ts +2 -1
  82. package/dist/components/input-group/index.d.ts +2 -1
  83. package/dist/components/input-group/input-group.d.ts +1 -3
  84. package/dist/components/input-group/input-group.js +2 -6
  85. package/dist/components/input-group/input-group.js.map +1 -1
  86. package/dist/components/input-group/input-group.types.d.ts +1 -3
  87. package/dist/components/main/index.d.ts +2 -1
  88. package/dist/components/main/main.d.ts +1 -3
  89. package/dist/components/main/main.js +0 -2
  90. package/dist/components/main/main.types.d.ts +2 -2
  91. package/dist/components/nav/index.d.ts +2 -1
  92. package/dist/components/nav/nav.d.ts +1 -3
  93. package/dist/components/nav/nav.js +22 -17
  94. package/dist/components/nav/nav.js.map +1 -1
  95. package/dist/components/nav/nav.types.d.ts +1 -3
  96. package/dist/components/navbar/index.d.ts +3 -1
  97. package/dist/components/navbar/navbar.d.ts +1 -3
  98. package/dist/components/navbar/navbar.js +9 -10
  99. package/dist/components/navbar/navbar.js.map +1 -1
  100. package/dist/components/navbar/navbar.types.d.ts +2 -3
  101. package/dist/components/overlays/dropdown-content.d.ts +1 -3
  102. package/dist/components/overlays/dropdown-content.js +0 -2
  103. package/dist/components/page/index.d.ts +2 -1
  104. package/dist/components/page/page.d.ts +1 -3
  105. package/dist/components/page/page.js +0 -2
  106. package/dist/components/page/page.types.d.ts +2 -2
  107. package/dist/components/page-header/index.d.ts +2 -1
  108. package/dist/components/page-header/page-header.d.ts +1 -3
  109. package/dist/components/page-header/page-header.js +0 -2
  110. package/dist/components/page-header/page-header.types.d.ts +2 -2
  111. package/dist/components/section/index.d.ts +2 -1
  112. package/dist/components/section/section.d.ts +1 -3
  113. package/dist/components/section/section.js +0 -2
  114. package/dist/components/section/section.types.d.ts +2 -2
  115. package/dist/components/separator/index.d.ts +2 -1
  116. package/dist/components/separator/separator.d.ts +1 -3
  117. package/dist/components/separator/separator.js +2 -6
  118. package/dist/components/separator/separator.js.map +1 -1
  119. package/dist/components/separator/separator.types.d.ts +1 -3
  120. package/dist/components/sidebar/index.d.ts +2 -1
  121. package/dist/components/sidebar/sidebar.d.ts +2 -4
  122. package/dist/components/sidebar/sidebar.js +5 -10
  123. package/dist/components/sidebar/sidebar.js.map +1 -1
  124. package/dist/components/sidebar/sidebar.types.d.ts +2 -2
  125. package/dist/components/skeleton/index.d.ts +2 -1
  126. package/dist/components/skeleton/skeleton.d.ts +1 -3
  127. package/dist/components/skeleton/skeleton.js +8 -10
  128. package/dist/components/skeleton/skeleton.js.map +1 -1
  129. package/dist/components/skeleton/skeleton.types.d.ts +1 -3
  130. package/dist/components/spinner/index.d.ts +2 -1
  131. package/dist/components/spinner/spinner.d.ts +1 -3
  132. package/dist/components/spinner/spinner.js +0 -2
  133. package/dist/components/spinner/spinner.types.d.ts +1 -3
  134. package/dist/components/stat/index.d.ts +2 -1
  135. package/dist/components/stat/stat.d.ts +1 -3
  136. package/dist/components/stat/stat.js +0 -2
  137. package/dist/components/stat/stat.types.d.ts +1 -3
  138. package/dist/components/text/index.d.ts +2 -1
  139. package/dist/components/text/text.d.ts +1 -3
  140. package/dist/components/text/text.js +2 -7
  141. package/dist/components/text/text.js.map +1 -1
  142. package/dist/components/text/text.types.d.ts +1 -3
  143. package/dist/components/theme/index.d.ts +2 -1
  144. package/dist/components/theme/theme.d.ts +5 -7
  145. package/dist/components/theme/theme.js +102 -72
  146. package/dist/components/theme/theme.js.map +1 -1
  147. package/dist/components/toolbar/index.d.ts +2 -1
  148. package/dist/components/toolbar/toolbar.d.ts +1 -3
  149. package/dist/components/toolbar/toolbar.js +0 -2
  150. package/dist/components/toolbar/toolbar.types.d.ts +2 -2
  151. package/dist/components.d.ts +34 -4
  152. package/dist/components.js +4 -4
  153. package/dist/controls.d.ts +4 -0
  154. package/dist/core.d.ts +18 -2
  155. package/dist/navs.d.ts +1 -0
  156. package/dist/overlays.d.ts +2 -2
  157. package/dist/overlays.js +2 -2
  158. package/dist/surfaces.d.ts +8 -0
  159. package/dist/theme.d.ts +3 -2
  160. package/dist/theme.js +2 -2
  161. package/dist/themes/default/index.css +3 -3
  162. package/package.json +39 -16
  163. package/src/components/_internal/jsx.ts +11 -0
  164. package/src/components/alert/alert.tsx +1 -1
  165. package/src/components/aspect-ratio/aspect-ratio.tsx +2 -1
  166. package/src/components/badge/badge.tsx +2 -1
  167. package/src/components/block/block.tsx +2 -2
  168. package/src/components/brand/brand.tsx +3 -3
  169. package/src/components/button-group/button-group.tsx +1 -1
  170. package/src/components/catalog.tsx +3 -1
  171. package/src/components/grid/grid.tsx +2 -2
  172. package/src/components/input-group/input-group.tsx +3 -2
  173. package/src/components/nav/nav.tsx +25 -19
  174. package/src/components/navbar/navbar.tsx +22 -14
  175. package/src/components/separator/separator.tsx +2 -1
  176. package/src/components/sidebar/index.ts +1 -1
  177. package/src/components/sidebar/sidebar.tsx +7 -7
  178. package/src/components/skeleton/skeleton.tsx +8 -10
  179. package/src/components/text/text.tsx +2 -2
  180. package/src/components/theme/index.ts +4 -4
  181. package/src/components/theme/theme.tsx +135 -99
  182. package/src/components.ts +4 -4
  183. package/src/overlays.ts +3 -3
  184. package/src/theme.ts +4 -4
  185. package/src/themes/default/styles/display/coverage.css +1 -1
  186. package/src/themes/default/styles/overlays/toast.css +1 -1
  187. package/src/themes/default/styles/shell/sidebar.css +1 -1
  188. package/templates/theme/styles/display/coverage.css +1 -1
  189. package/templates/theme/styles/overlays/toast.css +1 -1
  190. package/templates/theme/styles/shell/sidebar.css +1 -1
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, SidebarProvider, SidebarRail, SidebarTrigger } from "./components/sidebar/sidebar.js";
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
- 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 SidebarProvider, type SidebarRail, 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 };
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 };
@@ -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, ToastOwnProps, ToastProps, ToastProvider, ToastProviderOwnProps, ToastProviderProps, 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, type ToastOwnProps, type ToastProps, ToastProvider, type ToastProviderOwnProps, type ToastProviderProps, 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 };
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, ToastProvider, 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, ToastProvider, ToastTitle, ToastViewport, Tooltip, TooltipContent, TooltipPortal, TooltipTrigger };
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 };
@@ -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, ThemeContextValue, ThemeName, ThemeOption, ThemePicker, ThemePickerProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ThemeToggleProps, ThemeToggleRenderContext, useTheme } from "./components/theme/theme.js";
2
- export { CAT_THEME_NAMES, CAT_THEME_OPTIONS, type CatThemeName, DEFAULT_THEME_OPTIONS, type ThemeContextValue, type ThemeName, type ThemeOption, ThemePicker, type ThemePickerProps, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, type ThemeToggleRenderContext, useTheme };
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, ThemeProvider, ThemeToggle, useTheme } from "./components/theme/theme.js";
3
- export { CAT_THEME_NAMES, CAT_THEME_OPTIONS, DEFAULT_THEME_OPTIONS, ThemePicker, ThemeProvider, ThemeToggle, useTheme };
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-provider"]) {
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-provider"]) {
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-provider"]) {
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.11",
3
+ "version": "0.0.13",
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",
@@ -34,9 +34,18 @@
34
34
  "**/*.css"
35
35
  ],
36
36
  "exports": {
37
- ".": "./src/index.css",
38
- "./default": "./src/themes/default/index.css",
39
- "./presets": "./src/themes/presets/index.css",
37
+ ".": {
38
+ "types": "./src/css.d.ts",
39
+ "default": "./src/index.css"
40
+ },
41
+ "./default": {
42
+ "types": "./src/css.d.ts",
43
+ "default": "./src/themes/default/index.css"
44
+ },
45
+ "./presets": {
46
+ "types": "./src/css.d.ts",
47
+ "default": "./src/themes/presets/index.css"
48
+ },
40
49
  "./components": {
41
50
  "types": "./dist/components.d.ts",
42
51
  "import": "./dist/components.js"
@@ -281,8 +290,15 @@
281
290
  "types": "./dist/components.d.ts",
282
291
  "import": "./dist/components.js"
283
292
  },
284
- "./default/tokens.css": "./src/themes/default/tokens.css",
285
- "./templates/*": "./templates/*"
293
+ "./default/tokens.css": {
294
+ "types": "./src/css.d.ts",
295
+ "default": "./src/themes/default/tokens.css"
296
+ },
297
+ "./templates/*": {
298
+ "types": "./src/css.d.ts",
299
+ "default": "./templates/*"
300
+ },
301
+ "./package.json": "./package.json"
286
302
  },
287
303
  "publishConfig": {
288
304
  "access": "public"
@@ -299,28 +315,35 @@
299
315
  "test:unit": "vp test run -c vitest.test.unit.config.ts",
300
316
  "test:jsdom": "cross-env NODE_ENV=production vp test run -c vitest.test.jsdom.config.ts",
301
317
  "test:browser": "vp test run -c vitest.test.browser.config.ts --mode production",
318
+ "test:publint": "publint",
319
+ "test:installed": "node tests/installed-types.js",
302
320
  "fmt": "vp fmt .",
303
321
  "lint": "vp lint .",
322
+ "typecheck": "tsc -p tsconfig.pack.json --noEmit",
304
323
  "build": "vp pack",
305
- "prepublishOnly": "npm run build",
324
+ "pack:check": "node tests/package-artifacts.js",
325
+ "check": "npm run lint && npm run typecheck && npm test && npm run build && npm run test:installed && npm run test:publint && npm run pack:check",
326
+ "prepack": "npm run build",
327
+ "prepublishOnly": "npm run check",
306
328
  "test:checks": "vp test run -c vitest.test.checks.config.ts"
307
329
  },
308
330
  "devDependencies": {
309
- "@askrjs/askr": ">=0.0.1 <0.1.0",
310
- "@askrjs/ui": ">=0.0.1 <0.1.0",
311
- "@askrjs/vite": ">=0.0.1 <0.1.0",
312
- "@tsdown/css": "0.22.3",
331
+ "@askrjs/askr": ">=0.0.52 <0.1.0",
332
+ "@askrjs/ui": ">=0.0.12 <0.1.0",
333
+ "@askrjs/vite": ">=0.0.5 <0.1.0",
334
+ "@tsdown/css": "0.22.8",
313
335
  "@types/node": "^26.0.0",
314
- "@vitest/browser-playwright": "^4.1.9",
336
+ "@vitest/browser-playwright": "4.1.10",
315
337
  "cross-env": "^10.1.0",
316
338
  "jsdom": "^29.1.1",
317
339
  "playwright": "^1.61.0",
340
+ "publint": "^0.3.21",
318
341
  "typescript": "^6.0.3",
319
- "vite-plus": "^0.2.1"
342
+ "vite-plus": "^0.2.4"
320
343
  },
321
344
  "peerDependencies": {
322
- "@askrjs/askr": ">=0.0.1 <0.1.0",
323
- "@askrjs/ui": ">=0.0.10 <0.1.0"
345
+ "@askrjs/askr": ">=0.0.52 <0.1.0",
346
+ "@askrjs/ui": ">=0.0.12 <0.1.0"
324
347
  },
325
348
  "engines": {
326
349
  "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 <div {...finalProps}>{children}</div>;
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 <span {...finalProps}>{children}</span>;
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
- const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;
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
- const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;
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 <DialogContent {...rest} data-side={side} data-slot="sheet-content" />;
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
- const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;
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 <span {...finalProps}>{children}</span>;
57
+ return intrinsicElement("span", finalProps, children);
57
58
  }
@@ -3,6 +3,7 @@ import { currentRoute, Link, navigate } from "@askrjs/askr/router";
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
7
  import { resolvePathname } from "../_internal/pathname";
7
8
  import type {
8
9
  NavItemAsChildProps,
@@ -16,6 +17,8 @@ import type {
16
17
  TabsProps,
17
18
  } from "./nav.types";
18
19
 
20
+ const LayoutBlock = Block as (props: Record<string, unknown>) => JSX.Element;
21
+
19
22
  function normalizePathname(pathname: string): string {
20
23
  return pathname.endsWith("/") && pathname !== "/" ? pathname.slice(0, -1) : pathname;
21
24
  }
@@ -87,7 +90,7 @@ function renderNavSet(
87
90
  return <Slot asChild {...finalProps} children={children as JSX.Element} />;
88
91
  }
89
92
 
90
- return <nav {...finalProps}>{children}</nav>;
93
+ return intrinsicElement("nav", finalProps, children);
91
94
  }
92
95
 
93
96
  function renderRoutedLink(
@@ -98,7 +101,8 @@ function renderRoutedLink(
98
101
  const {
99
102
  active,
100
103
  children,
101
- href,
104
+ href: suppliedHref,
105
+ to,
102
106
  onClick,
103
107
  ref,
104
108
  class: className,
@@ -106,6 +110,10 @@ function renderRoutedLink(
106
110
  target,
107
111
  ...rest
108
112
  } = props as NavLinkProps & { onClick?: (event: MouseEvent) => void };
113
+ const href = to?.href ?? suppliedHref;
114
+ if (!href) {
115
+ throw new Error("Nav link requires href or to.");
116
+ }
109
117
  const inheritedSlot =
110
118
  options.inheritSlot && typeof (rest as Record<string, unknown>)["data-slot"] === "string"
111
119
  ? String((rest as Record<string, unknown>)["data-slot"])
@@ -130,12 +138,10 @@ function renderRoutedLink(
130
138
  : {
131
139
  "data-active": undefined,
132
140
  };
133
- const useRouterLink = targetPathname !== null && !target && typeof onClick !== "function";
134
- const childProps = {
135
- ...childRest,
136
- href,
137
- target,
138
- };
141
+ const rendersRouterLink = targetPathname !== null && !target && typeof onClick !== "function";
142
+ const childProps: NavLinkProps = to
143
+ ? ({ ...childRest, to, target } as NavLinkProps)
144
+ : ({ ...childRest, href, target } as NavLinkProps);
139
145
  const handleClick = (event: MouseEvent) => {
140
146
  onClick?.(event);
141
147
 
@@ -148,25 +154,25 @@ function renderRoutedLink(
148
154
  };
149
155
 
150
156
  return (
151
- <Block
157
+ <LayoutBlock
152
158
  asChild
153
159
  paddingX="sm"
154
160
  paddingY="xs"
155
161
  radius={resolvedSlot === "pill" ? "round" : "md"}
156
162
  background={isActive && options.activeBackground ? "selected" : undefined}
157
163
  ref={ref}
158
- class={classes(options.className, inheritedNavClass, className)}
164
+ className={classes(options.className, inheritedNavClass, className)}
159
165
  data-slot={resolvedSlot}
160
166
  {...activeProps}
161
167
  >
162
- {useRouterLink ? (
168
+ {rendersRouterLink ? (
163
169
  <Link {...childProps}>{children}</Link>
164
170
  ) : (
165
- <a {...childProps} onClick={handleClick}>
171
+ <a {...childRest} href={href} target={target} onClick={handleClick}>
166
172
  {children}
167
173
  </a>
168
174
  )}
169
- </Block>
175
+ </LayoutBlock>
170
176
  );
171
177
  }
172
178
 
@@ -206,7 +212,7 @@ export function NavItem(props: NavItemProps | NavItemAsChildProps): JSX.Element
206
212
 
207
213
  if (asChild) {
208
214
  return (
209
- <Block
215
+ <LayoutBlock
210
216
  asChild
211
217
  paddingX="sm"
212
218
  paddingY="xs"
@@ -214,17 +220,17 @@ export function NavItem(props: NavItemProps | NavItemAsChildProps): JSX.Element
214
220
  background={active ? "selected" : undefined}
215
221
  {...rest}
216
222
  ref={ref}
217
- class={className}
223
+ className={className}
218
224
  data-active={active ? "true" : undefined}
219
225
  data-slot="nav-item"
220
226
  >
221
227
  {children}
222
- </Block>
228
+ </LayoutBlock>
223
229
  );
224
230
  }
225
231
 
226
232
  return (
227
- <Block
233
+ <LayoutBlock
228
234
  as="a"
229
235
  paddingX="sm"
230
236
  paddingY="xs"
@@ -232,12 +238,12 @@ export function NavItem(props: NavItemProps | NavItemAsChildProps): JSX.Element
232
238
  background={active ? "selected" : undefined}
233
239
  {...rest}
234
240
  ref={ref}
235
- class={className}
241
+ className={className}
236
242
  data-active={active ? "true" : undefined}
237
243
  data-slot="nav-item"
238
244
  >
239
245
  {children}
240
- </Block>
246
+ </LayoutBlock>
241
247
  );
242
248
  }
243
249