@cloudvoyant/helical-react 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1893 -947
- package/dist/index.d.cts +102 -15
- package/dist/index.d.ts +102 -15
- package/dist/index.js +1653 -672
- package/package.json +5 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, ElementType, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode, ElementType, ComponentPropsWithoutRef, RefCallback } from 'react';
|
|
3
3
|
import { HTMLArkProps } from '@ark-ui/react/factory';
|
|
4
|
-
import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, BadgeProps as BadgeProps$1, ItemProps as ItemProps$1, CardProps as CardProps$1, CardCoverProps as CardCoverProps$1, PageVariants, PageGutterVariants, PageGutterContentVariants, sidebarMenuButtonVariants, SidebarContextProps, TabsListVariants, NavbarVariant, NavbarDensity, NavbarMenuVariant, InputProps as InputProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1, SelectItemData, ComboboxItemVariants, MermaidProps as MermaidProps$1, NoticeProps as NoticeProps$1, FigureProps as FigureProps$1, RevealProps as RevealProps$1, PrevNextProps as PrevNextProps$1, LaTeXProps as LaTeXProps$1, CodeBlockProps as CodeBlockProps$1, LanguageTab, FileEntry, ManimProps as ManimProps$1, YouTubeProps as YouTubeProps$1, YouTubeChapter, ChartProps as ChartProps$1, MultipleChoiceQuestionData, NumericQuestionData, Question, SingleChoiceQuestionData, ProseVariants, ToggleGroupRootVariants, ListboxItemData, MentionItem, ImageUploadResult, LinkPreviewFetcher, EditorCounts, OverlayPlacementOptions } from '@cloudvoyant/helical-ui';
|
|
5
|
-
export { EditorCounts, ImageUploadResult, LinkPreviewAttributes, LinkPreviewFetcher, MentionItem, NavbarMenuDensity, NavbarMenuVariant, SlashCommandItem, UrlMentionAttributes, navbarMenuTriggerStyle } from '@cloudvoyant/helical-ui';
|
|
4
|
+
import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, WindowPaneRegistrationProps, BadgeProps as BadgeProps$1, ItemProps as ItemProps$1, CardProps as CardProps$1, CardCoverProps as CardCoverProps$1, PageVariants, PagePaneRegistrationProps, PageGutterVariants, PageGutterContentVariants, SplitterPanelPaneRegistrationProps, SidebarPaneRegistrationProps, sidebarMenuButtonVariants, SidebarContextProps, TabsListVariants, NavbarVariant, NavbarDensity, NavbarMenuVariant, InputProps as InputProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1, SelectItemData, ComboboxItemVariants, MermaidProps as MermaidProps$1, NoticeProps as NoticeProps$1, FigureProps as FigureProps$1, RevealProps as RevealProps$1, PrevNextProps as PrevNextProps$1, LaTeXProps as LaTeXProps$1, CodeBlockProps as CodeBlockProps$1, LanguageTab, FileEntry, ManimProps as ManimProps$1, YouTubeProps as YouTubeProps$1, YouTubeChapter, ChartProps as ChartProps$1, MultipleChoiceQuestionData, NumericQuestionData, Question, SingleChoiceQuestionData, ProseVariants, ToggleGroupRootVariants, ListboxItemData, KbdProps as KbdProps$1, WhichKeyState, WhichKeyController, KeybindingPreset, KeymapMode, JumpAction, KeymapCommandContext, WhichKeyControllerOptions, WhichKeyNode, PaneProps as PaneProps$1, WhichKeyProps as WhichKeyProps$1, WhichKeyModeProps as WhichKeyModeProps$1, WhichKeyExplorerProps as WhichKeyExplorerProps$1, MentionItem, ImageUploadResult, LinkPreviewFetcher, EditorCounts, OverlayPlacementOptions } from '@cloudvoyant/helical-ui';
|
|
5
|
+
export { EditorCounts, ImageUploadResult, JumpAction, JumpTarget, KeybindingPreset, KeymapCommandContext, KeymapExplorerEntry, KeymapHandler, KeymapMode, LinkPreviewAttributes, LinkPreviewFetcher, MentionItem, ModalEditorTarget, NavbarMenuDensity, NavbarMenuVariant, PaneRegistration, SlashCommandItem, UrlMentionAttributes, WhichKeyController, WhichKeyControllerOptions, WhichKeyNode, WhichKeyState, WhichKeyVariant, navbarMenuTriggerStyle } from '@cloudvoyant/helical-ui';
|
|
6
6
|
import { ToggleRootProps, ToggleIndicatorProps } from '@ark-ui/react/toggle';
|
|
7
7
|
import { TooltipRootProps, TooltipContentProps, TooltipRootProviderProps, TooltipTriggerProps, TooltipContent as TooltipContent$1 } from '@ark-ui/react/tooltip';
|
|
8
8
|
export { useTooltip, useTooltipContext } from '@ark-ui/react/tooltip';
|
|
@@ -14,8 +14,8 @@ import { FloatingPanelRootProps, FloatingPanelBodyProps, FloatingPanelControlPro
|
|
|
14
14
|
export { useFloatingPanel as useWindow, useFloatingPanelContext as useWindowContext } from '@ark-ui/react/floating-panel';
|
|
15
15
|
export { Portal, PortalProps } from '@ark-ui/react/portal';
|
|
16
16
|
import { ScrollAreaRootProps } from '@ark-ui/react/scroll-area';
|
|
17
|
-
import { SplitterRootProps, SplitterPanelProps, SplitterResizeTriggerProps, SplitterResizeTriggerIndicatorProps } from '@ark-ui/react/splitter';
|
|
18
|
-
export {
|
|
17
|
+
import { SplitterRootProps, SplitterPanelProps as SplitterPanelProps$1, SplitterResizeTriggerProps, SplitterResizeTriggerIndicatorProps } from '@ark-ui/react/splitter';
|
|
18
|
+
export { SplitterRootProps as SplitterProps, SplitterResizeTriggerIndicatorProps, SplitterResizeTriggerProps } from '@ark-ui/react/splitter';
|
|
19
19
|
import * as _ark_ui_react_tabs from '@ark-ui/react/tabs';
|
|
20
20
|
import { TabsRootProps, TabContentProps, TabListProps, TabTriggerProps } from '@ark-ui/react/tabs';
|
|
21
21
|
import { PaginationRootProps, PaginationEllipsis as PaginationEllipsis$1, PaginationItem as PaginationItem$1 } from '@ark-ui/react/pagination';
|
|
@@ -42,7 +42,7 @@ import * as _ark_ui_react_radio_group from '@ark-ui/react/radio-group';
|
|
|
42
42
|
import { RadioGroupRootProps, RadioGroupItemProps as RadioGroupItemProps$1 } from '@ark-ui/react/radio-group';
|
|
43
43
|
import { ToggleGroupRootProps, ToggleGroupItemProps as ToggleGroupItemProps$1 } from '@ark-ui/react/toggle-group';
|
|
44
44
|
import * as _ark_ui_react_listbox from '@ark-ui/react/listbox';
|
|
45
|
-
import { ListboxRootProps, CollectionItem, ListCollection as ListCollection$2, ListboxContentProps as ListboxContentProps$1, ListboxEmptyProps as ListboxEmptyProps$1, ListboxInputProps as ListboxInputProps$1, ListboxItemProps as ListboxItemProps$1, ListboxItemIndicatorProps as ListboxItemIndicatorProps$1, ListboxItemTextProps as ListboxItemTextProps$1, ListboxLabelProps as ListboxLabelProps$1 } from '@ark-ui/react/listbox';
|
|
45
|
+
import { ListboxRootProps, CollectionItem, ListCollection as ListCollection$2, ListboxContentProps as ListboxContentProps$1, ListboxEmptyProps as ListboxEmptyProps$1, ListboxInputProps as ListboxInputProps$1, ListboxItemProps as ListboxItemProps$1, ListboxItemGroupProps as ListboxItemGroupProps$1, ListboxItemGroupLabelProps as ListboxItemGroupLabelProps$1, ListboxItemIndicatorProps as ListboxItemIndicatorProps$1, ListboxItemTextProps as ListboxItemTextProps$1, ListboxLabelProps as ListboxLabelProps$1 } from '@ark-ui/react/listbox';
|
|
46
46
|
import { Editor as Editor$1 } from '@tiptap/react';
|
|
47
47
|
|
|
48
48
|
type ButtonProps = HTMLArkProps<'button'> & ButtonProps$1;
|
|
@@ -94,11 +94,11 @@ type DialogFooterProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
94
94
|
declare function DialogFooter({ sticky, className, ...props }: DialogFooterProps): react.JSX.Element;
|
|
95
95
|
declare function DialogDismiss({ className, ...props }: DialogCloseTriggerProps): react.JSX.Element;
|
|
96
96
|
|
|
97
|
-
type WindowProps = FloatingPanelRootProps & {
|
|
97
|
+
type WindowProps = FloatingPanelRootProps & WindowPaneRegistrationProps & {
|
|
98
98
|
className?: string;
|
|
99
99
|
positionerClassName?: string;
|
|
100
100
|
};
|
|
101
|
-
declare function Window({ className, positionerClassName, children, ...props }: WindowProps): react.JSX.Element;
|
|
101
|
+
declare function Window({ paneId, paneTitle, paneDisabled, className, positionerClassName, children, ...props }: WindowProps): react.JSX.Element;
|
|
102
102
|
declare function WindowProvider(props: FloatingPanelRootProviderProps): react.JSX.Element;
|
|
103
103
|
declare function WindowDragTrigger({ className, ...props }: FloatingPanelDragTriggerProps): react.JSX.Element;
|
|
104
104
|
declare function WindowHeader({ className, ...props }: FloatingPanelHeaderProps): react.JSX.Element;
|
|
@@ -174,18 +174,21 @@ type PageProps = HTMLArkProps<'div'> & {
|
|
|
174
174
|
variant?: PageVariants['variant'];
|
|
175
175
|
};
|
|
176
176
|
declare function Page({ variant, className, children, ...props }: PageProps): react.JSX.Element;
|
|
177
|
-
type PageGutterProps = HTMLArkProps<'div'> & {
|
|
177
|
+
type PageGutterProps = HTMLArkProps<'div'> & PagePaneRegistrationProps & {
|
|
178
178
|
side?: PageGutterVariants['side'];
|
|
179
179
|
align?: PageGutterContentVariants['align'];
|
|
180
180
|
contentClassName?: string;
|
|
181
181
|
};
|
|
182
|
-
declare function PageGutter({ side, align, contentClassName, className, children, ...props }: PageGutterProps): react.JSX.Element;
|
|
183
|
-
|
|
182
|
+
declare function PageGutter({ side, align, contentClassName, paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PageGutterProps): react.JSX.Element;
|
|
183
|
+
type PageContentProps = HTMLArkProps<'main'> & PagePaneRegistrationProps;
|
|
184
|
+
declare function PageContent({ paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PageContentProps): react.JSX.Element;
|
|
184
185
|
declare function PageFooter({ className, children, ...props }: HTMLArkProps<'footer'>): react.JSX.Element;
|
|
185
|
-
|
|
186
|
+
type PageSectionProps = HTMLArkProps<'section'> & PagePaneRegistrationProps;
|
|
187
|
+
declare function PageSection({ paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PageSectionProps): react.JSX.Element;
|
|
186
188
|
|
|
189
|
+
type SplitterPanelProps = SplitterPanelProps$1 & SplitterPanelPaneRegistrationProps;
|
|
187
190
|
declare function Splitter({ className, ...props }: SplitterRootProps): react.JSX.Element;
|
|
188
|
-
declare function SplitterPanel({ className, ...props }: SplitterPanelProps): react.JSX.Element;
|
|
191
|
+
declare function SplitterPanel({ paneId, paneTitle, paneDisabled, className, ...props }: SplitterPanelProps): react.JSX.Element;
|
|
189
192
|
declare function SplitterResizeTrigger({ className, children, ...props }: SplitterResizeTriggerProps): react.JSX.Element;
|
|
190
193
|
declare function SplitterResizeTriggerIndicator({ className, ...props }: SplitterResizeTriggerIndicatorProps): react.JSX.Element;
|
|
191
194
|
|
|
@@ -195,7 +198,7 @@ declare function Provider({ defaultOpen, open: openProp, onOpenChange: setOpenPr
|
|
|
195
198
|
onOpenChange?: (open: boolean) => void;
|
|
196
199
|
}): react.JSX.Element;
|
|
197
200
|
|
|
198
|
-
declare function Root({ side, variant, collapsible, className, children, ...props }: react.ComponentProps<'div'> & {
|
|
201
|
+
declare function Root({ side, variant, collapsible, paneId, paneTitle, paneDisabled, className, children, ...props }: react.ComponentProps<'div'> & SidebarPaneRegistrationProps & {
|
|
199
202
|
side?: 'left' | 'right';
|
|
200
203
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
201
204
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
@@ -664,6 +667,90 @@ type ListboxLabelProps = ListboxLabelProps$1 & {
|
|
|
664
667
|
children?: ReactNode;
|
|
665
668
|
};
|
|
666
669
|
declare function ListboxLabel({ className, children, ...rest }: ListboxLabelProps): react.JSX.Element;
|
|
670
|
+
type ListboxItemGroupProps = ListboxItemGroupProps$1 & {
|
|
671
|
+
className?: string;
|
|
672
|
+
children?: ReactNode;
|
|
673
|
+
};
|
|
674
|
+
declare function ListboxItemGroup({ className, children, ...rest }: ListboxItemGroupProps): react.JSX.Element;
|
|
675
|
+
type ListboxItemGroupLabelProps = ListboxItemGroupLabelProps$1 & {
|
|
676
|
+
className?: string;
|
|
677
|
+
children?: ReactNode;
|
|
678
|
+
};
|
|
679
|
+
declare function ListboxItemGroupLabel({ className, children, ...rest }: ListboxItemGroupLabelProps): react.JSX.Element;
|
|
680
|
+
|
|
681
|
+
type KbdProps = HTMLArkProps<'kbd'> & KbdProps$1;
|
|
682
|
+
declare function Kbd({ variant, size, hotkey, platform, useSymbols, className, children, ...props }: KbdProps): react.JSX.Element;
|
|
683
|
+
|
|
684
|
+
interface WhichKeyProviderProps extends WhichKeyControllerOptions {
|
|
685
|
+
/**
|
|
686
|
+
* Whether this provider is scoped to its own DOM subtree when multiple
|
|
687
|
+
* WhichKeyProviders are mounted on the same page.
|
|
688
|
+
* @default true
|
|
689
|
+
*/
|
|
690
|
+
scoped?: boolean;
|
|
691
|
+
children?: ReactNode;
|
|
692
|
+
}
|
|
693
|
+
declare function WhichKeyProvider({ preset, defaultMode, leaderKey, jumpAction, jumpAlphabet, storageKey, keymap, commands, enabled, disableOnMobile, scoped, onPresetChange, onModeChange, onJumpActionChange, onCommand, onYank, children, }: WhichKeyProviderProps): react.JSX.Element;
|
|
694
|
+
declare function useOptionalWhichKeyController(): WhichKeyController | null;
|
|
695
|
+
declare function useWhichKeyController(): WhichKeyController;
|
|
696
|
+
interface UseWhichKeyReturn extends WhichKeyState {
|
|
697
|
+
controller: WhichKeyController;
|
|
698
|
+
setPreset: (preset: KeybindingPreset) => void;
|
|
699
|
+
setMode: (mode: KeymapMode) => void;
|
|
700
|
+
setJumpAction: (action: JumpAction) => void;
|
|
701
|
+
openExplorer: () => void;
|
|
702
|
+
closeExplorer: () => void;
|
|
703
|
+
setExplorerQuery: (query: string) => void;
|
|
704
|
+
openPrefix: (path: string[], options?: {
|
|
705
|
+
sticky?: boolean;
|
|
706
|
+
}) => void;
|
|
707
|
+
closePrefix: () => void;
|
|
708
|
+
stepBackPrefix: () => boolean;
|
|
709
|
+
triggerKey: (key: string) => boolean;
|
|
710
|
+
focusPane: (paneIdOrIndex: string | number) => boolean;
|
|
711
|
+
startJumpMode: (action?: JumpAction) => void;
|
|
712
|
+
cancelJumpMode: () => void;
|
|
713
|
+
jumpBack: () => boolean;
|
|
714
|
+
jumpForward: () => boolean;
|
|
715
|
+
executeCommand: (commandId: string, partialCtx?: Partial<KeymapCommandContext>) => boolean;
|
|
716
|
+
}
|
|
717
|
+
declare function useWhichKey(): UseWhichKeyReturn;
|
|
718
|
+
declare function useKeymap(nodes: Record<string, WhichKeyNode>, options?: {
|
|
719
|
+
scope?: string;
|
|
720
|
+
enabled?: boolean;
|
|
721
|
+
}): void;
|
|
722
|
+
declare function useKeymapScope(scopeId: string, nodes: Record<string, WhichKeyNode>, enabled?: boolean): void;
|
|
723
|
+
interface UsePaneRegistrationOptions {
|
|
724
|
+
paneId?: string;
|
|
725
|
+
paneTitle?: string;
|
|
726
|
+
paneDisabled?: boolean;
|
|
727
|
+
paneOrder?: number;
|
|
728
|
+
defaultTitle: string;
|
|
729
|
+
}
|
|
730
|
+
interface UsePaneRegistrationResult {
|
|
731
|
+
ref: RefCallback<HTMLElement>;
|
|
732
|
+
paneId: string;
|
|
733
|
+
isActive: boolean;
|
|
734
|
+
dataAttributes: {
|
|
735
|
+
'data-pane-id'?: string;
|
|
736
|
+
'data-pane-title'?: string;
|
|
737
|
+
'data-pane-order'?: string;
|
|
738
|
+
'data-pane-active'?: 'true' | 'false';
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
declare function useOptionalPaneRegistration(options: UsePaneRegistrationOptions): UsePaneRegistrationResult;
|
|
742
|
+
|
|
743
|
+
type PaneProps = HTMLArkProps<'div'> & PaneProps$1;
|
|
744
|
+
declare function Pane({ paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PaneProps): react.JSX.Element;
|
|
745
|
+
|
|
746
|
+
type WhichKeyProps = WhichKeyProps$1;
|
|
747
|
+
declare function WhichKey(props: WhichKeyProps): react.JSX.Element | null;
|
|
748
|
+
|
|
749
|
+
type WhichKeyModeProps = WhichKeyModeProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, 'children'>;
|
|
750
|
+
declare const WhichKeyMode: react.ForwardRefExoticComponent<WhichKeyModeProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, "children"> & react.RefAttributes<HTMLSpanElement>>;
|
|
751
|
+
|
|
752
|
+
type WhichKeyExplorerProps = WhichKeyExplorerProps$1;
|
|
753
|
+
declare function WhichKeyExplorer({ open: controlledOpen, onOpenChange, placeholder, className, }: WhichKeyExplorerProps): react.JSX.Element | null;
|
|
667
754
|
|
|
668
755
|
interface EditorHandle {
|
|
669
756
|
focus: () => void;
|
|
@@ -707,4 +794,4 @@ interface CursorOverlayProps extends OverlayPlacementOptions {
|
|
|
707
794
|
/** Fixed editor surface that follows a Tiptap document position across scroll and resize. */
|
|
708
795
|
declare function CursorOverlay({ editor, position, width, height, gap, viewportGap, lockScroll, children, }: CursorOverlayProps): react.JSX.Element;
|
|
709
796
|
|
|
710
|
-
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardCover, type CardCoverProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Center, type CenterProps, Chart, type ChartProps, Checkbox, CheckboxControl, CheckboxGroup, CheckboxIndicator, CheckboxLabel, type CheckboxProps, CodeBlock, CodeBlockContent, type CodeBlockContentProps, CodeBlockCopyButton, type CodeBlockCopyButtonProps, CodeBlockHeader, type CodeBlockHeaderProps, type CodeBlockProps, CodeBlockTitle, type CodeBlockTitleProps, Col, type ColProps, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxEmpty, ComboboxInput, type ComboboxInputProps, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, type ComboboxItemProps, ComboboxItemText, ComboboxList, type ComboboxProps, ComboboxTrigger, Container, type ContainerProps, CopyButton, type CopyButtonProps, CursorOverlay, type CursorOverlayProps, Dialog, DialogBackdrop, DialogContent, type DialogContentPropsWithPositioner, DialogDescription, DialogDismiss, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogProvider, DialogTitle, DialogTrigger, Editor, type EditorHandle, type EditorProps, Field, FieldError, FieldHelper, FieldLabel, type FieldProps, FieldRequiredIndicator, FieldSet, FieldSetError, FieldSetHelper, FieldSetLegend, type FieldSetProps, Figure, type FigureProps, HStack, type HStackProps, InlineLaTeX, type InlineLaTeXProps, Input, type InputProps, Item, type ItemProps, LaTeX, type LaTeXProps, LanguageTabsCodeBlock, type LanguageTabsCodeBlockProps, Listbox, ListboxContent, type ListboxContentProps, ListboxEmpty, type ListboxEmptyProps, ListboxInput, type ListboxInputProps, ListboxItem, ListboxItemIndicator, type ListboxItemIndicatorProps, type ListboxItemProps, ListboxItemText, type ListboxItemTextProps, ListboxLabel, type ListboxLabelProps, type ListboxProps, Manim, type ManimProps, Mermaid, type MermaidProps, MultiFileCodeBlock, type MultiFileCodeBlockProps, MultipleChoiceQuestion, type MultipleChoiceQuestionProps, Navbar, NavbarActions, NavbarActivationArea, NavbarBrand, NavbarMenu, NavbarMenuContent, NavbarMenuIndicator, NavbarMenuItem, NavbarMenuLink, NavbarMenuList, NavbarMenuTrigger, NavbarMenuViewport, NavbarMobileMenu, NavbarMobileMenuContent, NavbarMobileMenuTrigger, NavbarMobileOverlay, NavbarProvider, NavbarTrigger, Notice, type NoticeProps, NumberInput, NumberInputControl, NumberInputDecrement, NumberInputIncrement, NumberInputInput, type NumberInputProps, NumericQuestion, type NumericQuestionProps, Page, PageContent, PageFooter, PageGutter, type PageGutterProps, type PageProps, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, type PopoverContentPropsWithArrow, PopoverDescription, PopoverDismiss, PopoverIndicator, PopoverProvider, PopoverTitle, PopoverTrigger, PrevNext, type PrevNextProps, Prose, type ProseProps, Quiz, type QuizProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Reader, type ReaderProps, Reveal, type RevealProps, Row, type RowProps, Scroll, type ScrollProps, Select, SelectClearTrigger, SelectContent, SelectIndicator, SelectItem, SelectItemGroup, SelectItemGroupLabel, SelectItemIndicator, type SelectItemProps, SelectItemText, SelectNative, type SelectNativeProps, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, Root as Sidebar, Content as SidebarContent, Footer as SidebarFooter, Group as SidebarGroup, GroupAction as SidebarGroupAction, Header as SidebarHeader, Input$1 as SidebarInput, Inset as SidebarInset, Menu as SidebarMenu, MenuAction as SidebarMenuAction, MenuBadge as SidebarMenuBadge, MenuButton as SidebarMenuButton, MenuItem as SidebarMenuItem, MenuLink as SidebarMenuLink, MenuSkeleton as SidebarMenuSkeleton, MenuSub as SidebarMenuSub, MenuSubButton as SidebarMenuSubButton, MenuSubItem as SidebarMenuSubItem, Provider as SidebarProvider, Rail as SidebarRail, Separator as SidebarSeparator, Trigger as SidebarTrigger, SingleChoiceQuestion, type SingleChoiceQuestionProps, Splitter, SplitterPanel, SplitterResizeTrigger, SplitterResizeTriggerIndicator, Stack, type StackProps, Switch, SwitchControl, SwitchLabel, type SwitchProps, SwitchThumb, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TagInput, TagInputClearTrigger, TagInputContext, type TagInputContextProps, TagInputControl, TagInputInput, TagInputItem, TagInputItemDeleteTrigger, TagInputItemInput, TagInputItemPreview, TagInputItemText, type TagInputProps, Textarea, type TextareaProps, ToggleButton, ToggleButtonIndicator, type ToggleButtonProps, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, Tooltip, TooltipContent, type TooltipContentPropsWithArrow, TooltipProvider, TooltipTrigger, VStack, type VStackProps, Window, WindowBody, WindowControl, WindowDismiss, WindowDragTrigger, WindowHeader, type WindowProps, WindowProvider, WindowResizeTrigger, type WindowResizeTriggerProps, WindowStageTrigger, WindowTitle, YouTube, type YouTubeProps, YoutubeTimestampAt, type YoutubeTimestampAtProps, YoutubeTimestamps, type YoutubeTimestampsProps, getEditorCounts, useCheckbox, useCombobox, useField, useListbox, useMediaQuery, useNavbar, useNumberInput, useRadioGroup, useSelect, useSidebar, useSwitch, useTabs, useTagInput };
|
|
797
|
+
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardCover, type CardCoverProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Center, type CenterProps, Chart, type ChartProps, Checkbox, CheckboxControl, CheckboxGroup, CheckboxIndicator, CheckboxLabel, type CheckboxProps, CodeBlock, CodeBlockContent, type CodeBlockContentProps, CodeBlockCopyButton, type CodeBlockCopyButtonProps, CodeBlockHeader, type CodeBlockHeaderProps, type CodeBlockProps, CodeBlockTitle, type CodeBlockTitleProps, Col, type ColProps, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxEmpty, ComboboxInput, type ComboboxInputProps, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, type ComboboxItemProps, ComboboxItemText, ComboboxList, type ComboboxProps, ComboboxTrigger, Container, type ContainerProps, CopyButton, type CopyButtonProps, CursorOverlay, type CursorOverlayProps, Dialog, DialogBackdrop, DialogContent, type DialogContentPropsWithPositioner, DialogDescription, DialogDismiss, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogProvider, DialogTitle, DialogTrigger, Editor, type EditorHandle, type EditorProps, Field, FieldError, FieldHelper, FieldLabel, type FieldProps, FieldRequiredIndicator, FieldSet, FieldSetError, FieldSetHelper, FieldSetLegend, type FieldSetProps, Figure, type FigureProps, HStack, type HStackProps, InlineLaTeX, type InlineLaTeXProps, Input, type InputProps, Item, type ItemProps, Kbd, type KbdProps, LaTeX, type LaTeXProps, LanguageTabsCodeBlock, type LanguageTabsCodeBlockProps, Listbox, ListboxContent, type ListboxContentProps, ListboxEmpty, type ListboxEmptyProps, ListboxInput, type ListboxInputProps, ListboxItem, ListboxItemGroup, ListboxItemGroupLabel, type ListboxItemGroupLabelProps, type ListboxItemGroupProps, ListboxItemIndicator, type ListboxItemIndicatorProps, type ListboxItemProps, ListboxItemText, type ListboxItemTextProps, ListboxLabel, type ListboxLabelProps, type ListboxProps, Manim, type ManimProps, Mermaid, type MermaidProps, MultiFileCodeBlock, type MultiFileCodeBlockProps, MultipleChoiceQuestion, type MultipleChoiceQuestionProps, Navbar, NavbarActions, NavbarActivationArea, NavbarBrand, NavbarMenu, NavbarMenuContent, NavbarMenuIndicator, NavbarMenuItem, NavbarMenuLink, NavbarMenuList, NavbarMenuTrigger, NavbarMenuViewport, NavbarMobileMenu, NavbarMobileMenuContent, NavbarMobileMenuTrigger, NavbarMobileOverlay, NavbarProvider, NavbarTrigger, Notice, type NoticeProps, NumberInput, NumberInputControl, NumberInputDecrement, NumberInputIncrement, NumberInputInput, type NumberInputProps, NumericQuestion, type NumericQuestionProps, Page, PageContent, type PageContentProps, PageFooter, PageGutter, type PageGutterProps, type PageProps, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNext, PaginationPrevious, Pane, type PaneProps, Popover, PopoverAnchor, PopoverContent, type PopoverContentPropsWithArrow, PopoverDescription, PopoverDismiss, PopoverIndicator, PopoverProvider, PopoverTitle, PopoverTrigger, PrevNext, type PrevNextProps, Prose, type ProseProps, Quiz, type QuizProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Reader, type ReaderProps, Reveal, type RevealProps, Row, type RowProps, Scroll, type ScrollProps, Select, SelectClearTrigger, SelectContent, SelectIndicator, SelectItem, SelectItemGroup, SelectItemGroupLabel, SelectItemIndicator, type SelectItemProps, SelectItemText, SelectNative, type SelectNativeProps, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, Root as Sidebar, Content as SidebarContent, Footer as SidebarFooter, Group as SidebarGroup, GroupAction as SidebarGroupAction, Header as SidebarHeader, Input$1 as SidebarInput, Inset as SidebarInset, Menu as SidebarMenu, MenuAction as SidebarMenuAction, MenuBadge as SidebarMenuBadge, MenuButton as SidebarMenuButton, MenuItem as SidebarMenuItem, MenuLink as SidebarMenuLink, MenuSkeleton as SidebarMenuSkeleton, MenuSub as SidebarMenuSub, MenuSubButton as SidebarMenuSubButton, MenuSubItem as SidebarMenuSubItem, Provider as SidebarProvider, Rail as SidebarRail, Separator as SidebarSeparator, Trigger as SidebarTrigger, SingleChoiceQuestion, type SingleChoiceQuestionProps, Splitter, SplitterPanel, type SplitterPanelProps, SplitterResizeTrigger, SplitterResizeTriggerIndicator, Stack, type StackProps, Switch, SwitchControl, SwitchLabel, type SwitchProps, SwitchThumb, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TagInput, TagInputClearTrigger, TagInputContext, type TagInputContextProps, TagInputControl, TagInputInput, TagInputItem, TagInputItemDeleteTrigger, TagInputItemInput, TagInputItemPreview, TagInputItemText, type TagInputProps, Textarea, type TextareaProps, ToggleButton, ToggleButtonIndicator, type ToggleButtonProps, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, Tooltip, TooltipContent, type TooltipContentPropsWithArrow, TooltipProvider, TooltipTrigger, type UsePaneRegistrationOptions, type UsePaneRegistrationResult, type UseWhichKeyReturn, VStack, type VStackProps, WhichKey, WhichKeyExplorer, type WhichKeyExplorerProps, WhichKeyMode, type WhichKeyModeProps, type WhichKeyProps, WhichKeyProvider, type WhichKeyProviderProps, Window, WindowBody, WindowControl, WindowDismiss, WindowDragTrigger, WindowHeader, type WindowProps, WindowProvider, WindowResizeTrigger, type WindowResizeTriggerProps, WindowStageTrigger, WindowTitle, YouTube, type YouTubeProps, YoutubeTimestampAt, type YoutubeTimestampAtProps, YoutubeTimestamps, type YoutubeTimestampsProps, getEditorCounts, useCheckbox, useCombobox, useField, useKeymap, useKeymapScope, useListbox, useMediaQuery, useNavbar, useNumberInput, useOptionalPaneRegistration, useOptionalWhichKeyController, useRadioGroup, useSelect, useSidebar, useSwitch, useTabs, useTagInput, useWhichKey, useWhichKeyController };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, ElementType, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode, ElementType, ComponentPropsWithoutRef, RefCallback } from 'react';
|
|
3
3
|
import { HTMLArkProps } from '@ark-ui/react/factory';
|
|
4
|
-
import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, BadgeProps as BadgeProps$1, ItemProps as ItemProps$1, CardProps as CardProps$1, CardCoverProps as CardCoverProps$1, PageVariants, PageGutterVariants, PageGutterContentVariants, sidebarMenuButtonVariants, SidebarContextProps, TabsListVariants, NavbarVariant, NavbarDensity, NavbarMenuVariant, InputProps as InputProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1, SelectItemData, ComboboxItemVariants, MermaidProps as MermaidProps$1, NoticeProps as NoticeProps$1, FigureProps as FigureProps$1, RevealProps as RevealProps$1, PrevNextProps as PrevNextProps$1, LaTeXProps as LaTeXProps$1, CodeBlockProps as CodeBlockProps$1, LanguageTab, FileEntry, ManimProps as ManimProps$1, YouTubeProps as YouTubeProps$1, YouTubeChapter, ChartProps as ChartProps$1, MultipleChoiceQuestionData, NumericQuestionData, Question, SingleChoiceQuestionData, ProseVariants, ToggleGroupRootVariants, ListboxItemData, MentionItem, ImageUploadResult, LinkPreviewFetcher, EditorCounts, OverlayPlacementOptions } from '@cloudvoyant/helical-ui';
|
|
5
|
-
export { EditorCounts, ImageUploadResult, LinkPreviewAttributes, LinkPreviewFetcher, MentionItem, NavbarMenuDensity, NavbarMenuVariant, SlashCommandItem, UrlMentionAttributes, navbarMenuTriggerStyle } from '@cloudvoyant/helical-ui';
|
|
4
|
+
import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, WindowPaneRegistrationProps, BadgeProps as BadgeProps$1, ItemProps as ItemProps$1, CardProps as CardProps$1, CardCoverProps as CardCoverProps$1, PageVariants, PagePaneRegistrationProps, PageGutterVariants, PageGutterContentVariants, SplitterPanelPaneRegistrationProps, SidebarPaneRegistrationProps, sidebarMenuButtonVariants, SidebarContextProps, TabsListVariants, NavbarVariant, NavbarDensity, NavbarMenuVariant, InputProps as InputProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1, SelectItemData, ComboboxItemVariants, MermaidProps as MermaidProps$1, NoticeProps as NoticeProps$1, FigureProps as FigureProps$1, RevealProps as RevealProps$1, PrevNextProps as PrevNextProps$1, LaTeXProps as LaTeXProps$1, CodeBlockProps as CodeBlockProps$1, LanguageTab, FileEntry, ManimProps as ManimProps$1, YouTubeProps as YouTubeProps$1, YouTubeChapter, ChartProps as ChartProps$1, MultipleChoiceQuestionData, NumericQuestionData, Question, SingleChoiceQuestionData, ProseVariants, ToggleGroupRootVariants, ListboxItemData, KbdProps as KbdProps$1, WhichKeyState, WhichKeyController, KeybindingPreset, KeymapMode, JumpAction, KeymapCommandContext, WhichKeyControllerOptions, WhichKeyNode, PaneProps as PaneProps$1, WhichKeyProps as WhichKeyProps$1, WhichKeyModeProps as WhichKeyModeProps$1, WhichKeyExplorerProps as WhichKeyExplorerProps$1, MentionItem, ImageUploadResult, LinkPreviewFetcher, EditorCounts, OverlayPlacementOptions } from '@cloudvoyant/helical-ui';
|
|
5
|
+
export { EditorCounts, ImageUploadResult, JumpAction, JumpTarget, KeybindingPreset, KeymapCommandContext, KeymapExplorerEntry, KeymapHandler, KeymapMode, LinkPreviewAttributes, LinkPreviewFetcher, MentionItem, ModalEditorTarget, NavbarMenuDensity, NavbarMenuVariant, PaneRegistration, SlashCommandItem, UrlMentionAttributes, WhichKeyController, WhichKeyControllerOptions, WhichKeyNode, WhichKeyState, WhichKeyVariant, navbarMenuTriggerStyle } from '@cloudvoyant/helical-ui';
|
|
6
6
|
import { ToggleRootProps, ToggleIndicatorProps } from '@ark-ui/react/toggle';
|
|
7
7
|
import { TooltipRootProps, TooltipContentProps, TooltipRootProviderProps, TooltipTriggerProps, TooltipContent as TooltipContent$1 } from '@ark-ui/react/tooltip';
|
|
8
8
|
export { useTooltip, useTooltipContext } from '@ark-ui/react/tooltip';
|
|
@@ -14,8 +14,8 @@ import { FloatingPanelRootProps, FloatingPanelBodyProps, FloatingPanelControlPro
|
|
|
14
14
|
export { useFloatingPanel as useWindow, useFloatingPanelContext as useWindowContext } from '@ark-ui/react/floating-panel';
|
|
15
15
|
export { Portal, PortalProps } from '@ark-ui/react/portal';
|
|
16
16
|
import { ScrollAreaRootProps } from '@ark-ui/react/scroll-area';
|
|
17
|
-
import { SplitterRootProps, SplitterPanelProps, SplitterResizeTriggerProps, SplitterResizeTriggerIndicatorProps } from '@ark-ui/react/splitter';
|
|
18
|
-
export {
|
|
17
|
+
import { SplitterRootProps, SplitterPanelProps as SplitterPanelProps$1, SplitterResizeTriggerProps, SplitterResizeTriggerIndicatorProps } from '@ark-ui/react/splitter';
|
|
18
|
+
export { SplitterRootProps as SplitterProps, SplitterResizeTriggerIndicatorProps, SplitterResizeTriggerProps } from '@ark-ui/react/splitter';
|
|
19
19
|
import * as _ark_ui_react_tabs from '@ark-ui/react/tabs';
|
|
20
20
|
import { TabsRootProps, TabContentProps, TabListProps, TabTriggerProps } from '@ark-ui/react/tabs';
|
|
21
21
|
import { PaginationRootProps, PaginationEllipsis as PaginationEllipsis$1, PaginationItem as PaginationItem$1 } from '@ark-ui/react/pagination';
|
|
@@ -42,7 +42,7 @@ import * as _ark_ui_react_radio_group from '@ark-ui/react/radio-group';
|
|
|
42
42
|
import { RadioGroupRootProps, RadioGroupItemProps as RadioGroupItemProps$1 } from '@ark-ui/react/radio-group';
|
|
43
43
|
import { ToggleGroupRootProps, ToggleGroupItemProps as ToggleGroupItemProps$1 } from '@ark-ui/react/toggle-group';
|
|
44
44
|
import * as _ark_ui_react_listbox from '@ark-ui/react/listbox';
|
|
45
|
-
import { ListboxRootProps, CollectionItem, ListCollection as ListCollection$2, ListboxContentProps as ListboxContentProps$1, ListboxEmptyProps as ListboxEmptyProps$1, ListboxInputProps as ListboxInputProps$1, ListboxItemProps as ListboxItemProps$1, ListboxItemIndicatorProps as ListboxItemIndicatorProps$1, ListboxItemTextProps as ListboxItemTextProps$1, ListboxLabelProps as ListboxLabelProps$1 } from '@ark-ui/react/listbox';
|
|
45
|
+
import { ListboxRootProps, CollectionItem, ListCollection as ListCollection$2, ListboxContentProps as ListboxContentProps$1, ListboxEmptyProps as ListboxEmptyProps$1, ListboxInputProps as ListboxInputProps$1, ListboxItemProps as ListboxItemProps$1, ListboxItemGroupProps as ListboxItemGroupProps$1, ListboxItemGroupLabelProps as ListboxItemGroupLabelProps$1, ListboxItemIndicatorProps as ListboxItemIndicatorProps$1, ListboxItemTextProps as ListboxItemTextProps$1, ListboxLabelProps as ListboxLabelProps$1 } from '@ark-ui/react/listbox';
|
|
46
46
|
import { Editor as Editor$1 } from '@tiptap/react';
|
|
47
47
|
|
|
48
48
|
type ButtonProps = HTMLArkProps<'button'> & ButtonProps$1;
|
|
@@ -94,11 +94,11 @@ type DialogFooterProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
94
94
|
declare function DialogFooter({ sticky, className, ...props }: DialogFooterProps): react.JSX.Element;
|
|
95
95
|
declare function DialogDismiss({ className, ...props }: DialogCloseTriggerProps): react.JSX.Element;
|
|
96
96
|
|
|
97
|
-
type WindowProps = FloatingPanelRootProps & {
|
|
97
|
+
type WindowProps = FloatingPanelRootProps & WindowPaneRegistrationProps & {
|
|
98
98
|
className?: string;
|
|
99
99
|
positionerClassName?: string;
|
|
100
100
|
};
|
|
101
|
-
declare function Window({ className, positionerClassName, children, ...props }: WindowProps): react.JSX.Element;
|
|
101
|
+
declare function Window({ paneId, paneTitle, paneDisabled, className, positionerClassName, children, ...props }: WindowProps): react.JSX.Element;
|
|
102
102
|
declare function WindowProvider(props: FloatingPanelRootProviderProps): react.JSX.Element;
|
|
103
103
|
declare function WindowDragTrigger({ className, ...props }: FloatingPanelDragTriggerProps): react.JSX.Element;
|
|
104
104
|
declare function WindowHeader({ className, ...props }: FloatingPanelHeaderProps): react.JSX.Element;
|
|
@@ -174,18 +174,21 @@ type PageProps = HTMLArkProps<'div'> & {
|
|
|
174
174
|
variant?: PageVariants['variant'];
|
|
175
175
|
};
|
|
176
176
|
declare function Page({ variant, className, children, ...props }: PageProps): react.JSX.Element;
|
|
177
|
-
type PageGutterProps = HTMLArkProps<'div'> & {
|
|
177
|
+
type PageGutterProps = HTMLArkProps<'div'> & PagePaneRegistrationProps & {
|
|
178
178
|
side?: PageGutterVariants['side'];
|
|
179
179
|
align?: PageGutterContentVariants['align'];
|
|
180
180
|
contentClassName?: string;
|
|
181
181
|
};
|
|
182
|
-
declare function PageGutter({ side, align, contentClassName, className, children, ...props }: PageGutterProps): react.JSX.Element;
|
|
183
|
-
|
|
182
|
+
declare function PageGutter({ side, align, contentClassName, paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PageGutterProps): react.JSX.Element;
|
|
183
|
+
type PageContentProps = HTMLArkProps<'main'> & PagePaneRegistrationProps;
|
|
184
|
+
declare function PageContent({ paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PageContentProps): react.JSX.Element;
|
|
184
185
|
declare function PageFooter({ className, children, ...props }: HTMLArkProps<'footer'>): react.JSX.Element;
|
|
185
|
-
|
|
186
|
+
type PageSectionProps = HTMLArkProps<'section'> & PagePaneRegistrationProps;
|
|
187
|
+
declare function PageSection({ paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PageSectionProps): react.JSX.Element;
|
|
186
188
|
|
|
189
|
+
type SplitterPanelProps = SplitterPanelProps$1 & SplitterPanelPaneRegistrationProps;
|
|
187
190
|
declare function Splitter({ className, ...props }: SplitterRootProps): react.JSX.Element;
|
|
188
|
-
declare function SplitterPanel({ className, ...props }: SplitterPanelProps): react.JSX.Element;
|
|
191
|
+
declare function SplitterPanel({ paneId, paneTitle, paneDisabled, className, ...props }: SplitterPanelProps): react.JSX.Element;
|
|
189
192
|
declare function SplitterResizeTrigger({ className, children, ...props }: SplitterResizeTriggerProps): react.JSX.Element;
|
|
190
193
|
declare function SplitterResizeTriggerIndicator({ className, ...props }: SplitterResizeTriggerIndicatorProps): react.JSX.Element;
|
|
191
194
|
|
|
@@ -195,7 +198,7 @@ declare function Provider({ defaultOpen, open: openProp, onOpenChange: setOpenPr
|
|
|
195
198
|
onOpenChange?: (open: boolean) => void;
|
|
196
199
|
}): react.JSX.Element;
|
|
197
200
|
|
|
198
|
-
declare function Root({ side, variant, collapsible, className, children, ...props }: react.ComponentProps<'div'> & {
|
|
201
|
+
declare function Root({ side, variant, collapsible, paneId, paneTitle, paneDisabled, className, children, ...props }: react.ComponentProps<'div'> & SidebarPaneRegistrationProps & {
|
|
199
202
|
side?: 'left' | 'right';
|
|
200
203
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
201
204
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
@@ -664,6 +667,90 @@ type ListboxLabelProps = ListboxLabelProps$1 & {
|
|
|
664
667
|
children?: ReactNode;
|
|
665
668
|
};
|
|
666
669
|
declare function ListboxLabel({ className, children, ...rest }: ListboxLabelProps): react.JSX.Element;
|
|
670
|
+
type ListboxItemGroupProps = ListboxItemGroupProps$1 & {
|
|
671
|
+
className?: string;
|
|
672
|
+
children?: ReactNode;
|
|
673
|
+
};
|
|
674
|
+
declare function ListboxItemGroup({ className, children, ...rest }: ListboxItemGroupProps): react.JSX.Element;
|
|
675
|
+
type ListboxItemGroupLabelProps = ListboxItemGroupLabelProps$1 & {
|
|
676
|
+
className?: string;
|
|
677
|
+
children?: ReactNode;
|
|
678
|
+
};
|
|
679
|
+
declare function ListboxItemGroupLabel({ className, children, ...rest }: ListboxItemGroupLabelProps): react.JSX.Element;
|
|
680
|
+
|
|
681
|
+
type KbdProps = HTMLArkProps<'kbd'> & KbdProps$1;
|
|
682
|
+
declare function Kbd({ variant, size, hotkey, platform, useSymbols, className, children, ...props }: KbdProps): react.JSX.Element;
|
|
683
|
+
|
|
684
|
+
interface WhichKeyProviderProps extends WhichKeyControllerOptions {
|
|
685
|
+
/**
|
|
686
|
+
* Whether this provider is scoped to its own DOM subtree when multiple
|
|
687
|
+
* WhichKeyProviders are mounted on the same page.
|
|
688
|
+
* @default true
|
|
689
|
+
*/
|
|
690
|
+
scoped?: boolean;
|
|
691
|
+
children?: ReactNode;
|
|
692
|
+
}
|
|
693
|
+
declare function WhichKeyProvider({ preset, defaultMode, leaderKey, jumpAction, jumpAlphabet, storageKey, keymap, commands, enabled, disableOnMobile, scoped, onPresetChange, onModeChange, onJumpActionChange, onCommand, onYank, children, }: WhichKeyProviderProps): react.JSX.Element;
|
|
694
|
+
declare function useOptionalWhichKeyController(): WhichKeyController | null;
|
|
695
|
+
declare function useWhichKeyController(): WhichKeyController;
|
|
696
|
+
interface UseWhichKeyReturn extends WhichKeyState {
|
|
697
|
+
controller: WhichKeyController;
|
|
698
|
+
setPreset: (preset: KeybindingPreset) => void;
|
|
699
|
+
setMode: (mode: KeymapMode) => void;
|
|
700
|
+
setJumpAction: (action: JumpAction) => void;
|
|
701
|
+
openExplorer: () => void;
|
|
702
|
+
closeExplorer: () => void;
|
|
703
|
+
setExplorerQuery: (query: string) => void;
|
|
704
|
+
openPrefix: (path: string[], options?: {
|
|
705
|
+
sticky?: boolean;
|
|
706
|
+
}) => void;
|
|
707
|
+
closePrefix: () => void;
|
|
708
|
+
stepBackPrefix: () => boolean;
|
|
709
|
+
triggerKey: (key: string) => boolean;
|
|
710
|
+
focusPane: (paneIdOrIndex: string | number) => boolean;
|
|
711
|
+
startJumpMode: (action?: JumpAction) => void;
|
|
712
|
+
cancelJumpMode: () => void;
|
|
713
|
+
jumpBack: () => boolean;
|
|
714
|
+
jumpForward: () => boolean;
|
|
715
|
+
executeCommand: (commandId: string, partialCtx?: Partial<KeymapCommandContext>) => boolean;
|
|
716
|
+
}
|
|
717
|
+
declare function useWhichKey(): UseWhichKeyReturn;
|
|
718
|
+
declare function useKeymap(nodes: Record<string, WhichKeyNode>, options?: {
|
|
719
|
+
scope?: string;
|
|
720
|
+
enabled?: boolean;
|
|
721
|
+
}): void;
|
|
722
|
+
declare function useKeymapScope(scopeId: string, nodes: Record<string, WhichKeyNode>, enabled?: boolean): void;
|
|
723
|
+
interface UsePaneRegistrationOptions {
|
|
724
|
+
paneId?: string;
|
|
725
|
+
paneTitle?: string;
|
|
726
|
+
paneDisabled?: boolean;
|
|
727
|
+
paneOrder?: number;
|
|
728
|
+
defaultTitle: string;
|
|
729
|
+
}
|
|
730
|
+
interface UsePaneRegistrationResult {
|
|
731
|
+
ref: RefCallback<HTMLElement>;
|
|
732
|
+
paneId: string;
|
|
733
|
+
isActive: boolean;
|
|
734
|
+
dataAttributes: {
|
|
735
|
+
'data-pane-id'?: string;
|
|
736
|
+
'data-pane-title'?: string;
|
|
737
|
+
'data-pane-order'?: string;
|
|
738
|
+
'data-pane-active'?: 'true' | 'false';
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
declare function useOptionalPaneRegistration(options: UsePaneRegistrationOptions): UsePaneRegistrationResult;
|
|
742
|
+
|
|
743
|
+
type PaneProps = HTMLArkProps<'div'> & PaneProps$1;
|
|
744
|
+
declare function Pane({ paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PaneProps): react.JSX.Element;
|
|
745
|
+
|
|
746
|
+
type WhichKeyProps = WhichKeyProps$1;
|
|
747
|
+
declare function WhichKey(props: WhichKeyProps): react.JSX.Element | null;
|
|
748
|
+
|
|
749
|
+
type WhichKeyModeProps = WhichKeyModeProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, 'children'>;
|
|
750
|
+
declare const WhichKeyMode: react.ForwardRefExoticComponent<WhichKeyModeProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, "children"> & react.RefAttributes<HTMLSpanElement>>;
|
|
751
|
+
|
|
752
|
+
type WhichKeyExplorerProps = WhichKeyExplorerProps$1;
|
|
753
|
+
declare function WhichKeyExplorer({ open: controlledOpen, onOpenChange, placeholder, className, }: WhichKeyExplorerProps): react.JSX.Element | null;
|
|
667
754
|
|
|
668
755
|
interface EditorHandle {
|
|
669
756
|
focus: () => void;
|
|
@@ -707,4 +794,4 @@ interface CursorOverlayProps extends OverlayPlacementOptions {
|
|
|
707
794
|
/** Fixed editor surface that follows a Tiptap document position across scroll and resize. */
|
|
708
795
|
declare function CursorOverlay({ editor, position, width, height, gap, viewportGap, lockScroll, children, }: CursorOverlayProps): react.JSX.Element;
|
|
709
796
|
|
|
710
|
-
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardCover, type CardCoverProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Center, type CenterProps, Chart, type ChartProps, Checkbox, CheckboxControl, CheckboxGroup, CheckboxIndicator, CheckboxLabel, type CheckboxProps, CodeBlock, CodeBlockContent, type CodeBlockContentProps, CodeBlockCopyButton, type CodeBlockCopyButtonProps, CodeBlockHeader, type CodeBlockHeaderProps, type CodeBlockProps, CodeBlockTitle, type CodeBlockTitleProps, Col, type ColProps, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxEmpty, ComboboxInput, type ComboboxInputProps, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, type ComboboxItemProps, ComboboxItemText, ComboboxList, type ComboboxProps, ComboboxTrigger, Container, type ContainerProps, CopyButton, type CopyButtonProps, CursorOverlay, type CursorOverlayProps, Dialog, DialogBackdrop, DialogContent, type DialogContentPropsWithPositioner, DialogDescription, DialogDismiss, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogProvider, DialogTitle, DialogTrigger, Editor, type EditorHandle, type EditorProps, Field, FieldError, FieldHelper, FieldLabel, type FieldProps, FieldRequiredIndicator, FieldSet, FieldSetError, FieldSetHelper, FieldSetLegend, type FieldSetProps, Figure, type FigureProps, HStack, type HStackProps, InlineLaTeX, type InlineLaTeXProps, Input, type InputProps, Item, type ItemProps, LaTeX, type LaTeXProps, LanguageTabsCodeBlock, type LanguageTabsCodeBlockProps, Listbox, ListboxContent, type ListboxContentProps, ListboxEmpty, type ListboxEmptyProps, ListboxInput, type ListboxInputProps, ListboxItem, ListboxItemIndicator, type ListboxItemIndicatorProps, type ListboxItemProps, ListboxItemText, type ListboxItemTextProps, ListboxLabel, type ListboxLabelProps, type ListboxProps, Manim, type ManimProps, Mermaid, type MermaidProps, MultiFileCodeBlock, type MultiFileCodeBlockProps, MultipleChoiceQuestion, type MultipleChoiceQuestionProps, Navbar, NavbarActions, NavbarActivationArea, NavbarBrand, NavbarMenu, NavbarMenuContent, NavbarMenuIndicator, NavbarMenuItem, NavbarMenuLink, NavbarMenuList, NavbarMenuTrigger, NavbarMenuViewport, NavbarMobileMenu, NavbarMobileMenuContent, NavbarMobileMenuTrigger, NavbarMobileOverlay, NavbarProvider, NavbarTrigger, Notice, type NoticeProps, NumberInput, NumberInputControl, NumberInputDecrement, NumberInputIncrement, NumberInputInput, type NumberInputProps, NumericQuestion, type NumericQuestionProps, Page, PageContent, PageFooter, PageGutter, type PageGutterProps, type PageProps, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, type PopoverContentPropsWithArrow, PopoverDescription, PopoverDismiss, PopoverIndicator, PopoverProvider, PopoverTitle, PopoverTrigger, PrevNext, type PrevNextProps, Prose, type ProseProps, Quiz, type QuizProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Reader, type ReaderProps, Reveal, type RevealProps, Row, type RowProps, Scroll, type ScrollProps, Select, SelectClearTrigger, SelectContent, SelectIndicator, SelectItem, SelectItemGroup, SelectItemGroupLabel, SelectItemIndicator, type SelectItemProps, SelectItemText, SelectNative, type SelectNativeProps, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, Root as Sidebar, Content as SidebarContent, Footer as SidebarFooter, Group as SidebarGroup, GroupAction as SidebarGroupAction, Header as SidebarHeader, Input$1 as SidebarInput, Inset as SidebarInset, Menu as SidebarMenu, MenuAction as SidebarMenuAction, MenuBadge as SidebarMenuBadge, MenuButton as SidebarMenuButton, MenuItem as SidebarMenuItem, MenuLink as SidebarMenuLink, MenuSkeleton as SidebarMenuSkeleton, MenuSub as SidebarMenuSub, MenuSubButton as SidebarMenuSubButton, MenuSubItem as SidebarMenuSubItem, Provider as SidebarProvider, Rail as SidebarRail, Separator as SidebarSeparator, Trigger as SidebarTrigger, SingleChoiceQuestion, type SingleChoiceQuestionProps, Splitter, SplitterPanel, SplitterResizeTrigger, SplitterResizeTriggerIndicator, Stack, type StackProps, Switch, SwitchControl, SwitchLabel, type SwitchProps, SwitchThumb, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TagInput, TagInputClearTrigger, TagInputContext, type TagInputContextProps, TagInputControl, TagInputInput, TagInputItem, TagInputItemDeleteTrigger, TagInputItemInput, TagInputItemPreview, TagInputItemText, type TagInputProps, Textarea, type TextareaProps, ToggleButton, ToggleButtonIndicator, type ToggleButtonProps, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, Tooltip, TooltipContent, type TooltipContentPropsWithArrow, TooltipProvider, TooltipTrigger, VStack, type VStackProps, Window, WindowBody, WindowControl, WindowDismiss, WindowDragTrigger, WindowHeader, type WindowProps, WindowProvider, WindowResizeTrigger, type WindowResizeTriggerProps, WindowStageTrigger, WindowTitle, YouTube, type YouTubeProps, YoutubeTimestampAt, type YoutubeTimestampAtProps, YoutubeTimestamps, type YoutubeTimestampsProps, getEditorCounts, useCheckbox, useCombobox, useField, useListbox, useMediaQuery, useNavbar, useNumberInput, useRadioGroup, useSelect, useSidebar, useSwitch, useTabs, useTagInput };
|
|
797
|
+
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardCover, type CardCoverProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Center, type CenterProps, Chart, type ChartProps, Checkbox, CheckboxControl, CheckboxGroup, CheckboxIndicator, CheckboxLabel, type CheckboxProps, CodeBlock, CodeBlockContent, type CodeBlockContentProps, CodeBlockCopyButton, type CodeBlockCopyButtonProps, CodeBlockHeader, type CodeBlockHeaderProps, type CodeBlockProps, CodeBlockTitle, type CodeBlockTitleProps, Col, type ColProps, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxEmpty, ComboboxInput, type ComboboxInputProps, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, type ComboboxItemProps, ComboboxItemText, ComboboxList, type ComboboxProps, ComboboxTrigger, Container, type ContainerProps, CopyButton, type CopyButtonProps, CursorOverlay, type CursorOverlayProps, Dialog, DialogBackdrop, DialogContent, type DialogContentPropsWithPositioner, DialogDescription, DialogDismiss, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogProvider, DialogTitle, DialogTrigger, Editor, type EditorHandle, type EditorProps, Field, FieldError, FieldHelper, FieldLabel, type FieldProps, FieldRequiredIndicator, FieldSet, FieldSetError, FieldSetHelper, FieldSetLegend, type FieldSetProps, Figure, type FigureProps, HStack, type HStackProps, InlineLaTeX, type InlineLaTeXProps, Input, type InputProps, Item, type ItemProps, Kbd, type KbdProps, LaTeX, type LaTeXProps, LanguageTabsCodeBlock, type LanguageTabsCodeBlockProps, Listbox, ListboxContent, type ListboxContentProps, ListboxEmpty, type ListboxEmptyProps, ListboxInput, type ListboxInputProps, ListboxItem, ListboxItemGroup, ListboxItemGroupLabel, type ListboxItemGroupLabelProps, type ListboxItemGroupProps, ListboxItemIndicator, type ListboxItemIndicatorProps, type ListboxItemProps, ListboxItemText, type ListboxItemTextProps, ListboxLabel, type ListboxLabelProps, type ListboxProps, Manim, type ManimProps, Mermaid, type MermaidProps, MultiFileCodeBlock, type MultiFileCodeBlockProps, MultipleChoiceQuestion, type MultipleChoiceQuestionProps, Navbar, NavbarActions, NavbarActivationArea, NavbarBrand, NavbarMenu, NavbarMenuContent, NavbarMenuIndicator, NavbarMenuItem, NavbarMenuLink, NavbarMenuList, NavbarMenuTrigger, NavbarMenuViewport, NavbarMobileMenu, NavbarMobileMenuContent, NavbarMobileMenuTrigger, NavbarMobileOverlay, NavbarProvider, NavbarTrigger, Notice, type NoticeProps, NumberInput, NumberInputControl, NumberInputDecrement, NumberInputIncrement, NumberInputInput, type NumberInputProps, NumericQuestion, type NumericQuestionProps, Page, PageContent, type PageContentProps, PageFooter, PageGutter, type PageGutterProps, type PageProps, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNext, PaginationPrevious, Pane, type PaneProps, Popover, PopoverAnchor, PopoverContent, type PopoverContentPropsWithArrow, PopoverDescription, PopoverDismiss, PopoverIndicator, PopoverProvider, PopoverTitle, PopoverTrigger, PrevNext, type PrevNextProps, Prose, type ProseProps, Quiz, type QuizProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Reader, type ReaderProps, Reveal, type RevealProps, Row, type RowProps, Scroll, type ScrollProps, Select, SelectClearTrigger, SelectContent, SelectIndicator, SelectItem, SelectItemGroup, SelectItemGroupLabel, SelectItemIndicator, type SelectItemProps, SelectItemText, SelectNative, type SelectNativeProps, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, Root as Sidebar, Content as SidebarContent, Footer as SidebarFooter, Group as SidebarGroup, GroupAction as SidebarGroupAction, Header as SidebarHeader, Input$1 as SidebarInput, Inset as SidebarInset, Menu as SidebarMenu, MenuAction as SidebarMenuAction, MenuBadge as SidebarMenuBadge, MenuButton as SidebarMenuButton, MenuItem as SidebarMenuItem, MenuLink as SidebarMenuLink, MenuSkeleton as SidebarMenuSkeleton, MenuSub as SidebarMenuSub, MenuSubButton as SidebarMenuSubButton, MenuSubItem as SidebarMenuSubItem, Provider as SidebarProvider, Rail as SidebarRail, Separator as SidebarSeparator, Trigger as SidebarTrigger, SingleChoiceQuestion, type SingleChoiceQuestionProps, Splitter, SplitterPanel, type SplitterPanelProps, SplitterResizeTrigger, SplitterResizeTriggerIndicator, Stack, type StackProps, Switch, SwitchControl, SwitchLabel, type SwitchProps, SwitchThumb, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TagInput, TagInputClearTrigger, TagInputContext, type TagInputContextProps, TagInputControl, TagInputInput, TagInputItem, TagInputItemDeleteTrigger, TagInputItemInput, TagInputItemPreview, TagInputItemText, type TagInputProps, Textarea, type TextareaProps, ToggleButton, ToggleButtonIndicator, type ToggleButtonProps, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, Tooltip, TooltipContent, type TooltipContentPropsWithArrow, TooltipProvider, TooltipTrigger, type UsePaneRegistrationOptions, type UsePaneRegistrationResult, type UseWhichKeyReturn, VStack, type VStackProps, WhichKey, WhichKeyExplorer, type WhichKeyExplorerProps, WhichKeyMode, type WhichKeyModeProps, type WhichKeyProps, WhichKeyProvider, type WhichKeyProviderProps, Window, WindowBody, WindowControl, WindowDismiss, WindowDragTrigger, WindowHeader, type WindowProps, WindowProvider, WindowResizeTrigger, type WindowResizeTriggerProps, WindowStageTrigger, WindowTitle, YouTube, type YouTubeProps, YoutubeTimestampAt, type YoutubeTimestampAtProps, YoutubeTimestamps, type YoutubeTimestampsProps, getEditorCounts, useCheckbox, useCombobox, useField, useKeymap, useKeymapScope, useListbox, useMediaQuery, useNavbar, useNumberInput, useOptionalPaneRegistration, useOptionalWhichKeyController, useRadioGroup, useSelect, useSidebar, useSwitch, useTabs, useTagInput, useWhichKey, useWhichKeyController };
|