@talogic/react 0.0.0-stage → 0.6.1

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 (130) hide show
  1. package/README.md +106 -2
  2. package/app/app-shell.component.d.ts +59 -0
  3. package/app/command-shortcut.hook.d.ts +21 -0
  4. package/app/filter-bar.component.d.ts +38 -0
  5. package/app/form-section.component.d.ts +21 -0
  6. package/app/index.d.ts +14 -0
  7. package/app/page-header.component.d.ts +20 -0
  8. package/app/records-table.component.d.ts +38 -0
  9. package/app/sparkline.algorithm.d.ts +11 -0
  10. package/app/stat-card.component.d.ts +28 -0
  11. package/class-names/class-names.algorithm.d.ts +8 -0
  12. package/class-names/index.d.ts +1 -0
  13. package/desktop/flow-node.component.d.ts +25 -0
  14. package/desktop/index.d.ts +12 -0
  15. package/desktop/inspector.component.d.ts +29 -0
  16. package/desktop/status-bar.component.d.ts +17 -0
  17. package/desktop/timeline-lanes.component.d.ts +43 -0
  18. package/desktop/timeline.algorithm.d.ts +22 -0
  19. package/desktop/title-bar.component.d.ts +24 -0
  20. package/fonts.css +4 -0
  21. package/index.d.ts +17 -0
  22. package/index.js +3495 -0
  23. package/index.js.map +1 -0
  24. package/mobile/bottom-nav.component.d.ts +23 -0
  25. package/mobile/capture-frame.component.d.ts +30 -0
  26. package/mobile/index.d.ts +6 -0
  27. package/mobile/record-button.component.d.ts +24 -0
  28. package/package.json +63 -4
  29. package/product/index.d.ts +8 -0
  30. package/product/product-catalogue.content.d.ts +16 -0
  31. package/product/product-logo.component.d.ts +17 -0
  32. package/product/product-switcher.component.d.ts +21 -0
  33. package/product/sidebar-brand.component.d.ts +18 -0
  34. package/status/index.d.ts +6 -0
  35. package/status/run-status.contract.d.ts +7 -0
  36. package/status/run-status.mapper.d.ts +18 -0
  37. package/status/status-badge.component.d.ts +14 -0
  38. package/talogic-react.css +2 -0
  39. package/timecode/index.d.ts +1 -0
  40. package/timecode/timecode.mapper.d.ts +17 -0
  41. package/tokens/apca-contrast.algorithm.d.ts +23 -0
  42. package/tokens/hue-fill.style.d.ts +6 -0
  43. package/tokens/index.d.ts +12 -0
  44. package/tokens/logo-color.algorithm.d.ts +21 -0
  45. package/tokens/palette.style.d.ts +6 -0
  46. package/tokens/product-hue.policy.d.ts +15 -0
  47. package/tokens/theme-attributes.mapper.d.ts +18 -0
  48. package/tokens/theme-root.component.d.ts +15 -0
  49. package/tokens/theme.contract.d.ts +34 -0
  50. package/tokens.css +949 -0
  51. package/ui/active-indicator/active-indicator.hook.d.ts +11 -0
  52. package/ui/active-indicator/active-indicator.recipe.d.ts +5 -0
  53. package/ui/active-indicator/index.d.ts +2 -0
  54. package/ui/avatar/avatar.component.d.ts +23 -0
  55. package/ui/avatar/index.d.ts +1 -0
  56. package/ui/badge/badge.component.d.ts +14 -0
  57. package/ui/badge/badge.recipe.d.ts +12 -0
  58. package/ui/badge/index.d.ts +4 -0
  59. package/ui/button/button.component.d.ts +16 -0
  60. package/ui/button/button.recipe.d.ts +11 -0
  61. package/ui/button/index.d.ts +4 -0
  62. package/ui/choice/checkbox.component.d.ts +11 -0
  63. package/ui/choice/index.d.ts +5 -0
  64. package/ui/choice/radio-group.component.d.ts +17 -0
  65. package/ui/choice/slider.component.d.ts +10 -0
  66. package/ui/choice/switch.component.d.ts +9 -0
  67. package/ui/choice/toggle-group.component.d.ts +17 -0
  68. package/ui/feedback/alert.component.d.ts +41 -0
  69. package/ui/feedback/empty-state.component.d.ts +19 -0
  70. package/ui/feedback/index.d.ts +8 -0
  71. package/ui/feedback/progress.component.d.ts +9 -0
  72. package/ui/feedback/skeleton.component.d.ts +8 -0
  73. package/ui/feedback/spinner.component.d.ts +10 -0
  74. package/ui/feedback/toaster.component.d.ts +10 -0
  75. package/ui/field/control.recipe.d.ts +5 -0
  76. package/ui/field/field-control.hook.d.ts +26 -0
  77. package/ui/field/field.component.d.ts +22 -0
  78. package/ui/field/index.d.ts +10 -0
  79. package/ui/field/input.component.d.ts +13 -0
  80. package/ui/field/label.component.d.ts +9 -0
  81. package/ui/field/select.component.d.ts +43 -0
  82. package/ui/field/textarea.component.d.ts +8 -0
  83. package/ui/index.d.ts +11 -0
  84. package/ui/layout/accordion.component.d.ts +30 -0
  85. package/ui/layout/card.component.d.ts +43 -0
  86. package/ui/layout/index.d.ts +7 -0
  87. package/ui/layout/kbd.component.d.ts +8 -0
  88. package/ui/layout/resizable.component.d.ts +23 -0
  89. package/ui/layout/scroll-area.component.d.ts +16 -0
  90. package/ui/layout/separator.component.d.ts +9 -0
  91. package/ui/layout/table.component.d.ts +50 -0
  92. package/ui/menu/command.component.d.ts +72 -0
  93. package/ui/menu/context-menu.component.d.ts +39 -0
  94. package/ui/menu/dropdown-menu.component.d.ts +57 -0
  95. package/ui/menu/index.d.ts +6 -0
  96. package/ui/menu/menu.recipe.d.ts +13 -0
  97. package/ui/navigation/breadcrumb.component.d.ts +45 -0
  98. package/ui/navigation/index.d.ts +11 -0
  99. package/ui/navigation/menu-icon.component.d.ts +18 -0
  100. package/ui/navigation/menubar.component.d.ts +48 -0
  101. package/ui/navigation/navigation-menu.component.d.ts +39 -0
  102. package/ui/navigation/pagination.component.d.ts +20 -0
  103. package/ui/navigation/stepper.component.d.ts +28 -0
  104. package/ui/navigation/tabs.component.d.ts +39 -0
  105. package/ui/overlay/alert-dialog.component.d.ts +42 -0
  106. package/ui/overlay/dialog.component.d.ts +48 -0
  107. package/ui/overlay/drawer.component.d.ts +29 -0
  108. package/ui/overlay/index.d.ts +9 -0
  109. package/ui/overlay/overlay.recipe.d.ts +18 -0
  110. package/ui/overlay/popover.component.d.ts +15 -0
  111. package/ui/overlay/sheet.component.d.ts +31 -0
  112. package/ui/overlay/tooltip.component.d.ts +20 -0
  113. package/ui/sidebar/index.d.ts +11 -0
  114. package/ui/sidebar/sidebar-context.hook.d.ts +29 -0
  115. package/ui/sidebar/sidebar-group.component.d.ts +26 -0
  116. package/ui/sidebar/sidebar-item.component.d.ts +35 -0
  117. package/ui/sidebar/sidebar-sheet.component.d.ts +25 -0
  118. package/ui/sidebar/sidebar.component.d.ts +80 -0
  119. package/ui/sidebar/sidebar.recipe.d.ts +8 -0
  120. package/web/cta-band.component.d.ts +20 -0
  121. package/web/faq.component.d.ts +19 -0
  122. package/web/feature-grid.component.d.ts +22 -0
  123. package/web/hero.component.d.ts +20 -0
  124. package/web/how-it-works.component.d.ts +22 -0
  125. package/web/index.d.ts +20 -0
  126. package/web/mobile-menu.component.d.ts +25 -0
  127. package/web/pricing-table.component.d.ts +37 -0
  128. package/web/product-card.component.d.ts +20 -0
  129. package/web/site-footer.component.d.ts +25 -0
  130. package/web/site-header.component.d.ts +32 -0
@@ -0,0 +1,50 @@
1
+ import type { ComponentProps } from 'react';
2
+ /**
3
+ * The shadcn/ui Table: 13 px, border rows, a muted hover. It scrolls sideways when narrow.
4
+ *
5
+ * @param props - Any `table` props.
6
+ * @returns The table in a scroll container.
7
+ */
8
+ export declare function Table({ className, ...props }: ComponentProps<'table'>): import("react").JSX.Element;
9
+ /**
10
+ * The head of a {@link Table}.
11
+ *
12
+ * @param props - Any `thead` props.
13
+ * @returns The head.
14
+ */
15
+ export declare function TableHeader(props: ComponentProps<'thead'>): import("react").JSX.Element;
16
+ /**
17
+ * The body of a {@link Table}.
18
+ *
19
+ * @param props - Any `tbody` props.
20
+ * @returns The body.
21
+ */
22
+ export declare function TableBody(props: ComponentProps<'tbody'>): import("react").JSX.Element;
23
+ /**
24
+ * A row. `data-state="selected"` tints it.
25
+ *
26
+ * @param props - Any `tr` props.
27
+ * @returns The row.
28
+ */
29
+ export declare function TableRow({ className, ...props }: ComponentProps<'tr'>): import("react").JSX.Element;
30
+ /**
31
+ * A column heading.
32
+ *
33
+ * @param props - Any `th` props.
34
+ * @returns The heading cell.
35
+ */
36
+ export declare function TableHead({ className, ...props }: ComponentProps<'th'>): import("react").JSX.Element;
37
+ /**
38
+ * A data cell.
39
+ *
40
+ * @param props - Any `td` props.
41
+ * @returns The cell.
42
+ */
43
+ export declare function TableCell({ className, ...props }: ComponentProps<'td'>): import("react").JSX.Element;
44
+ /**
45
+ * The caption, under the table.
46
+ *
47
+ * @param props - Any `caption` props.
48
+ * @returns The caption.
49
+ */
50
+ export declare function TableCaption({ className, ...props }: ComponentProps<'caption'>): import("react").JSX.Element;
@@ -0,0 +1,72 @@
1
+ import { Command as CommandPrimitive } from 'cmdk';
2
+ import { Dialog as DialogPrimitive } from 'radix-ui';
3
+ import type { ComponentProps, ReactNode } from 'react';
4
+ /**
5
+ * The shadcn/ui Command (cmdk): a filterable list of actions.
6
+ *
7
+ * @param props - cmdk root props.
8
+ * @returns The command list.
9
+ */
10
+ export declare function Command({ className, ...props }: ComponentProps<typeof CommandPrimitive>): import("react").JSX.Element;
11
+ /** Props of {@link CommandDialog}. */
12
+ export interface CommandDialogProps extends ComponentProps<typeof DialogPrimitive.Root> {
13
+ /** The accessible name of the palette. */
14
+ title?: string;
15
+ children?: ReactNode;
16
+ }
17
+ /**
18
+ * The command palette: a {@link Command} in a dialog, opened with ⌘K or Ctrl K by the app.
19
+ *
20
+ * @param props - `title`, the dialog's open state, and the command content.
21
+ * @returns The palette.
22
+ */
23
+ export declare function CommandDialog({ title, children, ...props }: CommandDialogProps): import("react").JSX.Element;
24
+ /**
25
+ * The search field of a {@link Command}.
26
+ *
27
+ * @param props - cmdk input props.
28
+ * @returns The field with a search icon.
29
+ */
30
+ export declare function CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>): import("react").JSX.Element;
31
+ /**
32
+ * The scrolling list of results.
33
+ *
34
+ * @param props - cmdk list props.
35
+ * @returns The list.
36
+ */
37
+ export declare function CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>): import("react").JSX.Element;
38
+ /**
39
+ * Shown when no result matches.
40
+ *
41
+ * @param props - cmdk empty props.
42
+ * @returns The empty message.
43
+ */
44
+ export declare function CommandEmpty({ className, ...props }: ComponentProps<typeof CommandPrimitive.Empty>): import("react").JSX.Element;
45
+ /**
46
+ * A titled group of results.
47
+ *
48
+ * @param props - cmdk group props.
49
+ * @returns The group.
50
+ */
51
+ export declare function CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>): import("react").JSX.Element;
52
+ /**
53
+ * One result.
54
+ *
55
+ * @param props - cmdk item props.
56
+ * @returns The result row.
57
+ */
58
+ export declare function CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>): import("react").JSX.Element;
59
+ /**
60
+ * A line between groups.
61
+ *
62
+ * @param props - cmdk separator props.
63
+ * @returns The separator.
64
+ */
65
+ export declare function CommandSeparator({ className, ...props }: ComponentProps<typeof CommandPrimitive.Separator>): import("react").JSX.Element;
66
+ /**
67
+ * The keyboard shortcut of a result.
68
+ *
69
+ * @param props - Any `span` props.
70
+ * @returns The shortcut text.
71
+ */
72
+ export declare function CommandShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
@@ -0,0 +1,39 @@
1
+ import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ /** The shadcn/ui ContextMenu root: the right-click menu of apps and desktop. */
4
+ export declare const ContextMenu: import("react").FC<ContextMenuPrimitive.ContextMenuProps>;
5
+ /** The area that opens the {@link ContextMenu} on right-click or long press. */
6
+ export declare const ContextMenuTrigger: import("react").ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & import("react").RefAttributes<HTMLSpanElement>>;
7
+ /**
8
+ * The menu panel, in a portal.
9
+ *
10
+ * @param props - Radix ContextMenu content props.
11
+ * @returns The panel.
12
+ */
13
+ export declare function ContextMenuContent({ className, ...props }: ComponentProps<typeof ContextMenuPrimitive.Content>): import("react").JSX.Element;
14
+ /** Props of {@link ContextMenuItem}. */
15
+ export interface ContextMenuItemProps extends ComponentProps<typeof ContextMenuPrimitive.Item> {
16
+ /** `destructive` for delete and other actions that lose data. */
17
+ variant?: 'default' | 'destructive';
18
+ }
19
+ /**
20
+ * One command row.
21
+ *
22
+ * @param props - `variant` and Radix ContextMenu item props.
23
+ * @returns The row.
24
+ */
25
+ export declare function ContextMenuItem({ className, variant, ...props }: ContextMenuItemProps): import("react").JSX.Element;
26
+ /**
27
+ * A line between groups of rows.
28
+ *
29
+ * @param props - Radix ContextMenu separator props.
30
+ * @returns The separator.
31
+ */
32
+ export declare function ContextMenuSeparator({ className, ...props }: ComponentProps<typeof ContextMenuPrimitive.Separator>): import("react").JSX.Element;
33
+ /**
34
+ * The keyboard shortcut of a row.
35
+ *
36
+ * @param props - Any `span` props.
37
+ * @returns The shortcut text.
38
+ */
39
+ export declare function ContextMenuShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
@@ -0,0 +1,57 @@
1
+ import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ /** The shadcn/ui DropdownMenu root (Radix). */
4
+ export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps>;
5
+ /** The element that opens a {@link DropdownMenu}. */
6
+ export declare const DropdownMenuTrigger: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ /** A group of rows. */
8
+ export declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ /** A group of rows where one is chosen. */
10
+ export declare const DropdownMenuRadioGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
11
+ /**
12
+ * The menu panel, in a portal.
13
+ *
14
+ * @param props - Radix DropdownMenu content props.
15
+ * @returns The panel.
16
+ */
17
+ export declare function DropdownMenuContent({ className, sideOffset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react").JSX.Element;
18
+ /** Props of {@link DropdownMenuItem}. */
19
+ export interface DropdownMenuItemProps extends ComponentProps<typeof DropdownMenuPrimitive.Item> {
20
+ /** `destructive` for delete and other actions that lose data. */
21
+ variant?: 'default' | 'destructive';
22
+ }
23
+ /**
24
+ * One command row.
25
+ *
26
+ * @param props - `variant` and Radix DropdownMenu item props.
27
+ * @returns The row.
28
+ */
29
+ export declare function DropdownMenuItem({ className, variant, ...props }: DropdownMenuItemProps): import("react").JSX.Element;
30
+ /**
31
+ * A row that picks one value of a {@link DropdownMenuRadioGroup}.
32
+ *
33
+ * @param props - Radix DropdownMenu radio item props.
34
+ * @returns The row, with a dot when chosen.
35
+ */
36
+ export declare function DropdownMenuRadioItem({ className, children, ...props }: ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react").JSX.Element;
37
+ /**
38
+ * The heading of a group of rows.
39
+ *
40
+ * @param props - Radix DropdownMenu label props.
41
+ * @returns The heading.
42
+ */
43
+ export declare function DropdownMenuLabel({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Label>): import("react").JSX.Element;
44
+ /**
45
+ * A line between groups of rows.
46
+ *
47
+ * @param props - Radix DropdownMenu separator props.
48
+ * @returns The separator.
49
+ */
50
+ export declare function DropdownMenuSeparator({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react").JSX.Element;
51
+ /**
52
+ * The keyboard shortcut of a row.
53
+ *
54
+ * @param props - Any `span` props.
55
+ * @returns The shortcut text.
56
+ */
57
+ export declare function DropdownMenuShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './command.component';
2
+ export type { CommandDialogProps } from './command.component';
3
+ export { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger } from './context-menu.component';
4
+ export type { ContextMenuItemProps } from './context-menu.component';
5
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, } from './dropdown-menu.component';
6
+ export type { DropdownMenuItemProps } from './dropdown-menu.component';
@@ -0,0 +1,13 @@
1
+ /** The panel of a drop-down or context menu: popover colours, medium elevation, 4 px inset; it zooms in from its anchor. */
2
+ export declare const menuContentClassName: string;
3
+ /**
4
+ * One row of a menu: 13.5 px text, a muted 16 px icon, the accent colour on focus. `data-variant=destructive`
5
+ * turns the row and its icon red.
6
+ */
7
+ export declare const menuItemClassName: string;
8
+ /** The keyboard shortcut at the end of a menu row. */
9
+ export declare const menuShortcutClassName = "ms-auto text-xs tracking-wide text-muted-foreground";
10
+ /** The line between groups of menu rows. */
11
+ export declare const menuSeparatorClassName = "-mx-1 my-1 h-px bg-border";
12
+ /** The heading of a group of menu rows. */
13
+ export declare const menuLabelClassName = "px-2.5 py-1.5 text-xs font-medium text-muted-foreground";
@@ -0,0 +1,45 @@
1
+ import type { ComponentProps } from 'react';
2
+ /**
3
+ * The shadcn/ui Breadcrumb landmark.
4
+ *
5
+ * @param props - Any `nav` props.
6
+ * @returns The breadcrumb navigation.
7
+ */
8
+ export declare function Breadcrumb({ 'aria-label': label, ...props }: ComponentProps<'nav'>): import("react").JSX.Element;
9
+ /**
10
+ * The ordered list of a {@link Breadcrumb}.
11
+ *
12
+ * @param props - Any `ol` props.
13
+ * @returns The list.
14
+ */
15
+ export declare function BreadcrumbList({ className, ...props }: ComponentProps<'ol'>): import("react").JSX.Element;
16
+ /**
17
+ * One step of a {@link BreadcrumbList}.
18
+ *
19
+ * @param props - Any `li` props.
20
+ * @returns The step.
21
+ */
22
+ export declare function BreadcrumbItem({ className, ...props }: ComponentProps<'li'>): import("react").JSX.Element;
23
+ /**
24
+ * A link to an earlier step.
25
+ *
26
+ * @param props - `asChild` for a router link, and any `a` props.
27
+ * @returns The link.
28
+ */
29
+ export declare function BreadcrumbLink({ asChild, className, ...props }: ComponentProps<'a'> & {
30
+ asChild?: boolean;
31
+ }): import("react").JSX.Element;
32
+ /**
33
+ * The current step. It is not a link.
34
+ *
35
+ * @param props - Any `span` props.
36
+ * @returns The current page.
37
+ */
38
+ export declare function BreadcrumbPage({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
39
+ /**
40
+ * The slash between steps. It is decorative.
41
+ *
42
+ * @param props - Any `li` props.
43
+ * @returns The separator.
44
+ */
45
+ export declare function BreadcrumbSeparator({ children, ...props }: ComponentProps<'li'>): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from './breadcrumb.component';
2
+ export { MenuIcon } from './menu-icon.component';
3
+ export type { MenuIconProps } from './menu-icon.component';
4
+ export { Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarShortcut, MenubarTrigger } from './menubar.component';
5
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger } from './navigation-menu.component';
6
+ export { Pagination } from './pagination.component';
7
+ export type { PaginationProps } from './pagination.component';
8
+ export { Tabs, TabsContent, TabsList, TabsTrigger } from './tabs.component';
9
+ export type { TabsListProps } from './tabs.component';
10
+ export { Stepper } from './stepper.component';
11
+ export type { StepperProps, StepperStep } from './stepper.component';
@@ -0,0 +1,18 @@
1
+ import type { ComponentProps } from 'react';
2
+ /** Props of {@link MenuIcon}. */
3
+ export interface MenuIconProps extends ComponentProps<'svg'> {
4
+ /**
5
+ * `true` twirls the hamburger into an X, `false` twirls it back. Leave it out for a still hamburger, so a page
6
+ * does not play the closing motion when it loads.
7
+ */
8
+ open?: boolean;
9
+ }
10
+ /**
11
+ * The menu toggle icon. Opening, the outer lines fall to the centre and twirl a half turn past each other into an
12
+ * X, while the middle line shrinks to a dot and pops away. Closing plays it back the other way. With reduced motion
13
+ * the icon changes at once.
14
+ *
15
+ * @param props - `open` and any `svg` props; it is decorative, so label the button around it.
16
+ * @returns The icon.
17
+ */
18
+ export declare function MenuIcon({ open, className, ...props }: MenuIconProps): import("react").JSX.Element;
@@ -0,0 +1,48 @@
1
+ import { Menubar as MenubarPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ /**
4
+ * The shadcn/ui Menubar: the File, Edit, View menus of a desktop app.
5
+ *
6
+ * @param props - Radix Menubar root props.
7
+ * @returns The menubar.
8
+ */
9
+ export declare function Menubar({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Root>): import("react").JSX.Element;
10
+ /** One menu of a {@link Menubar}. */
11
+ export declare const MenubarMenu: (props: MenubarPrimitive.MenubarMenuProps & {
12
+ __scopeMenubar?: import("@radix-ui/react-context").Scope | undefined;
13
+ }) => React.JSX.Element;
14
+ /**
15
+ * The name of a menu, such as File.
16
+ *
17
+ * @param props - Radix Menubar trigger props.
18
+ * @returns The trigger.
19
+ */
20
+ export declare function MenubarTrigger({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Trigger>): import("react").JSX.Element;
21
+ /**
22
+ * The items of a menu, in a portal.
23
+ *
24
+ * @param props - Radix Menubar content props.
25
+ * @returns The menu panel.
26
+ */
27
+ export declare function MenubarContent({ className, align, sideOffset, ...props }: ComponentProps<typeof MenubarPrimitive.Content>): import("react").JSX.Element;
28
+ /**
29
+ * One command of a menu.
30
+ *
31
+ * @param props - Radix Menubar item props.
32
+ * @returns The item.
33
+ */
34
+ export declare function MenubarItem({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Item>): import("react").JSX.Element;
35
+ /**
36
+ * The keyboard shortcut of a {@link MenubarItem}, at the end of the row.
37
+ *
38
+ * @param props - Any `span` props.
39
+ * @returns The shortcut text.
40
+ */
41
+ export declare function MenubarShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
42
+ /**
43
+ * A line between groups of items.
44
+ *
45
+ * @param props - Radix Menubar separator props.
46
+ * @returns The separator.
47
+ */
48
+ export declare function MenubarSeparator({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Separator>): import("react").JSX.Element;
@@ -0,0 +1,39 @@
1
+ import { NavigationMenu as NavigationMenuPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ /**
4
+ * The shadcn/ui NavigationMenu: the main navigation of a website, with drop-down panels.
5
+ *
6
+ * @param props - Radix NavigationMenu root props.
7
+ * @returns The navigation menu.
8
+ */
9
+ export declare function NavigationMenu({ className, children, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Root>): import("react").JSX.Element;
10
+ /**
11
+ * The list of a {@link NavigationMenu}.
12
+ *
13
+ * @param props - Radix NavigationMenu list props.
14
+ * @returns The list.
15
+ */
16
+ export declare function NavigationMenuList({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.List>): import("react").JSX.Element;
17
+ /** One entry of a {@link NavigationMenuList}. */
18
+ export declare const NavigationMenuItem: import("react").ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>>;
19
+ /**
20
+ * A top-level entry that opens a panel.
21
+ *
22
+ * @param props - Radix NavigationMenu trigger props.
23
+ * @returns The trigger.
24
+ */
25
+ export declare function NavigationMenuTrigger({ className, children, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Trigger>): import("react").JSX.Element;
26
+ /**
27
+ * The panel a {@link NavigationMenuTrigger} opens.
28
+ *
29
+ * @param props - Radix NavigationMenu content props.
30
+ * @returns The panel.
31
+ */
32
+ export declare function NavigationMenuContent({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Content>): import("react").JSX.Element;
33
+ /**
34
+ * A plain top-level link.
35
+ *
36
+ * @param props - Radix NavigationMenu link props.
37
+ * @returns The link.
38
+ */
39
+ export declare function NavigationMenuLink({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ /** Props of {@link Pagination}. */
2
+ export interface PaginationProps {
3
+ /** The current page, from 1. */
4
+ page: number;
5
+ /** The number of pages. */
6
+ pageCount: number;
7
+ /** Called with the page to show. */
8
+ onPageChange: (page: number) => void;
9
+ /** Page buttons to show around the current one. Default 3 in all. */
10
+ window?: number;
11
+ className?: string;
12
+ }
13
+ /**
14
+ * Previous, numbered pages and next, as small buttons. The current page has the outline variant and
15
+ * `aria-current`.
16
+ *
17
+ * @param props - Page, page count, change handler and window size.
18
+ * @returns The pagination navigation.
19
+ */
20
+ export declare function Pagination({ page, pageCount, onPageChange, window, className }: PaginationProps): import("react").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ /** One step of a {@link Stepper}. */
3
+ export interface StepperStep {
4
+ /** The step's name, such as "Models". */
5
+ title: string;
6
+ /** A line under the title, such as "2 of 3 downloaded". */
7
+ description?: ReactNode;
8
+ }
9
+ /** Props of {@link Stepper}. */
10
+ export interface StepperProps extends Omit<ComponentProps<'ol'>, 'children'> {
11
+ /** The steps, in order. */
12
+ steps: readonly StepperStep[];
13
+ /** The index of the current step, from 0. Steps before it are done. A value past the last step marks all done. */
14
+ current: number;
15
+ /** `horizontal` puts the steps in a row with lines between them (default); `vertical` stacks them. */
16
+ orientation?: 'horizontal' | 'vertical';
17
+ /** Called with the index of a done step that the user picks, to go back to it. Without it, the steps are text. */
18
+ onStepSelect?: (index: number) => void;
19
+ }
20
+ /**
21
+ * The progress of a flow in steps, such as a first-run setup or a wizard. Done steps show a check, the current step
22
+ * a ring and `aria-current="step"`, and later steps a muted number. With `onStepSelect`, done steps are buttons that
23
+ * go back. The lines between steps fill as the flow moves on.
24
+ *
25
+ * @param props - The steps, the current index, the orientation, the select handler and any `ol` props.
26
+ * @returns The stepper.
27
+ */
28
+ export declare function Stepper({ steps, current, orientation, onStepSelect, className, 'aria-label': label, ...props }: StepperProps): import("react").JSX.Element;
@@ -0,0 +1,39 @@
1
+ import { Tabs as TabsPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ /**
4
+ * The shadcn/ui Tabs root.
5
+ *
6
+ * @param props - Radix Tabs root props.
7
+ * @returns The tabs.
8
+ */
9
+ export declare function Tabs({ className, ...props }: ComponentProps<typeof TabsPrimitive.Root>): import("react").JSX.Element;
10
+ /** Props of {@link TabsList}. */
11
+ export interface TabsListProps extends ComponentProps<typeof TabsPrimitive.List> {
12
+ /**
13
+ * `pill` switches views inside a panel. `underline` switches pages in a header, with a brand line under the
14
+ * active tab.
15
+ */
16
+ variant?: 'pill' | 'underline';
17
+ }
18
+ /**
19
+ * The row of {@link TabsTrigger}s. One indicator slides to the active tab and takes its size: the raised
20
+ * background of the `pill` variant, or the brand line of the `underline` variant.
21
+ *
22
+ * @param props - `variant` and Radix Tabs list props.
23
+ * @returns The tab list.
24
+ */
25
+ export declare function TabsList({ className, variant, children, ...props }: TabsListProps): import("react").JSX.Element;
26
+ /**
27
+ * One tab. It reads the list's variant, so it has no variant of its own.
28
+ *
29
+ * @param props - Radix Tabs trigger props.
30
+ * @returns The tab.
31
+ */
32
+ export declare function TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): import("react").JSX.Element;
33
+ /**
34
+ * The panel of one tab.
35
+ *
36
+ * @param props - Radix Tabs content props.
37
+ * @returns The panel.
38
+ */
39
+ export declare function TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): import("react").JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ import { type ButtonVariants } from '../button';
4
+ /** The shadcn/ui AlertDialog root: a dialog that needs an answer, such as a delete confirmation. */
5
+ export declare const AlertDialog: import("react").FC<AlertDialogPrimitive.AlertDialogProps>;
6
+ /** The element that opens an {@link AlertDialog}. */
7
+ export declare const AlertDialogTrigger: import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
8
+ /**
9
+ * The centred panel of an {@link AlertDialog}. It has no close button: the user must pick an action.
10
+ *
11
+ * @param props - Radix AlertDialog content props.
12
+ * @returns The panel in a portal.
13
+ */
14
+ export declare function AlertDialogContent({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Content>): import("react").JSX.Element;
15
+ /**
16
+ * The title of an {@link AlertDialog}.
17
+ *
18
+ * @param props - Radix AlertDialog title props.
19
+ * @returns The title.
20
+ */
21
+ export declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): import("react").JSX.Element;
22
+ /**
23
+ * The description of an {@link AlertDialog}: what happens and whether it can be undone.
24
+ *
25
+ * @param props - Radix AlertDialog description props.
26
+ * @returns The description.
27
+ */
28
+ export declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Description>): import("react").JSX.Element;
29
+ /**
30
+ * The confirming action. Pass `variant='destructive'` for a delete.
31
+ *
32
+ * @param props - A button variant and Radix AlertDialog action props.
33
+ * @returns The action button.
34
+ */
35
+ export declare function AlertDialogAction({ className, variant, ...props }: ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<ButtonVariants, 'variant'>): import("react").JSX.Element;
36
+ /**
37
+ * The cancelling action. It gets focus first, so Enter never confirms by accident.
38
+ *
39
+ * @param props - Radix AlertDialog cancel props.
40
+ * @returns The cancel button.
41
+ */
42
+ export declare function AlertDialogCancel({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react").JSX.Element;
@@ -0,0 +1,48 @@
1
+ import { Dialog as DialogPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ /** The shadcn/ui Dialog root (Radix). */
4
+ export declare const Dialog: import("react").FC<DialogPrimitive.DialogProps>;
5
+ /** The element that opens a {@link Dialog}. */
6
+ export declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ /** An element that closes a {@link Dialog}. */
8
+ export declare const DialogClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
9
+ /** Props of {@link DialogContent}. */
10
+ export interface DialogContentProps extends ComponentProps<typeof DialogPrimitive.Content> {
11
+ /** Shows the close button in the corner. Default true. */
12
+ showClose?: boolean;
13
+ }
14
+ /**
15
+ * The centred panel of a {@link Dialog}: 14 px radius, large elevation, a close button.
16
+ *
17
+ * @param props - `showClose` and Radix Dialog content props.
18
+ * @returns The dialog panel in a portal.
19
+ */
20
+ export declare function DialogContent({ className, children, showClose, ...props }: DialogContentProps): import("react").JSX.Element;
21
+ /**
22
+ * The title and description block of a dialog or sheet.
23
+ *
24
+ * @param props - Any `div` props.
25
+ * @returns The header.
26
+ */
27
+ export declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
28
+ /**
29
+ * The actions of a dialog or sheet, at the end of the row.
30
+ *
31
+ * @param props - Any `div` props.
32
+ * @returns The footer.
33
+ */
34
+ export declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
35
+ /**
36
+ * The title of a {@link Dialog}, in DM Sans.
37
+ *
38
+ * @param props - Radix Dialog title props.
39
+ * @returns The title.
40
+ */
41
+ export declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react").JSX.Element;
42
+ /**
43
+ * The description of a {@link Dialog}.
44
+ *
45
+ * @param props - Radix Dialog description props.
46
+ * @returns The description.
47
+ */
48
+ export declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import type { ComponentProps } from 'react';
2
+ import { Drawer as DrawerPrimitive } from 'vaul';
3
+ /** The shadcn/ui Drawer root (vaul): a bottom sheet the user can drag down to close. */
4
+ export declare const Drawer: typeof import("vaul").Root;
5
+ /** The element that opens a {@link Drawer}. */
6
+ export declare const DrawerTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ /** An element that closes a {@link Drawer}. */
8
+ export declare const DrawerClose: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
9
+ /**
10
+ * The bottom sheet: a 24 px top radius and a grab handle.
11
+ *
12
+ * @param props - vaul content props.
13
+ * @returns The sheet in a portal.
14
+ */
15
+ export declare function DrawerContent({ className, children, ...props }: ComponentProps<typeof DrawerPrimitive.Content>): import("react").JSX.Element;
16
+ /**
17
+ * The title of a {@link Drawer}.
18
+ *
19
+ * @param props - vaul title props.
20
+ * @returns The title.
21
+ */
22
+ export declare function DrawerTitle({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Title>): import("react").JSX.Element;
23
+ /**
24
+ * The description of a {@link Drawer}.
25
+ *
26
+ * @param props - vaul description props.
27
+ * @returns The description.
28
+ */
29
+ export declare function DrawerDescription({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Description>): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger } from './alert-dialog.component';
2
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from './dialog.component';
3
+ export type { DialogContentProps } from './dialog.component';
4
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerTitle, DrawerTrigger } from './drawer.component';
5
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './popover.component';
6
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetTitle, SheetTrigger } from './sheet.component';
7
+ export type { SheetContentProps } from './sheet.component';
8
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip.component';
9
+ export { floatingMotionClassName, overlayClassName, sheetMotionClassName } from './overlay.recipe';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The scrim under every modal (dialog, alert dialog, sheet, drawer, command palette): the page behind blurs 5 px,
3
+ * drops to 50 % contrast and 30 % saturation, and turns lighter in light mode (brightness 130 %) or darker in dark
4
+ * mode (70 %). It fades in and out.
5
+ */
6
+ export declare const overlayClassName: string;
7
+ /**
8
+ * The motion of floating content (dialogs, popovers, tooltips, menus, selects): it grows from its anchor while it
9
+ * fades in, and shrinks back while it fades out. Reduced motion keeps only the fade.
10
+ */
11
+ export declare const floatingMotionClassName: string;
12
+ /** The slide of a sheet from each edge, with a fade for reduced motion. */
13
+ export declare const sheetMotionClassName: {
14
+ readonly start: "data-[state=open]:animate-sheet-in-start data-[state=closed]:animate-sheet-out-start motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out";
15
+ readonly end: "data-[state=open]:animate-sheet-in-end data-[state=closed]:animate-sheet-out-end motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out";
16
+ readonly top: "data-[state=open]:animate-sheet-in-top data-[state=closed]:animate-sheet-out-top motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out";
17
+ readonly bottom: "data-[state=open]:animate-sheet-in-bottom data-[state=closed]:animate-sheet-out-bottom motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out";
18
+ };