@hachej/boring-ui-kit 0.1.111 → 0.2.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.
Files changed (95) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +255 -239
  3. package/THIRD_PARTY_NOTICES.md +85 -0
  4. package/dist/anchor-conformance.d.ts +78 -0
  5. package/dist/anchor-conformance.js +288 -0
  6. package/dist/canvas-document.d.ts +25 -0
  7. package/dist/canvas-document.js +141 -0
  8. package/dist/canvas-editor-native.d.ts +22 -0
  9. package/dist/canvas-editor-native.js +112 -0
  10. package/dist/canvas-editor.d.ts +6 -0
  11. package/dist/canvas-editor.js +13 -0
  12. package/dist/canvas-mounted.d.ts +41 -0
  13. package/dist/canvas-mounted.js +180 -0
  14. package/dist/canvas-proposals.d.ts +11 -0
  15. package/dist/canvas-proposals.js +45 -0
  16. package/dist/canvas-records.d.ts +3 -0
  17. package/dist/canvas-records.js +39 -0
  18. package/dist/canvas.d.ts +92 -0
  19. package/dist/canvas.js +264 -0
  20. package/dist/contracts.d.ts +125 -0
  21. package/dist/contracts.js +1 -0
  22. package/dist/experience-catalog.d.ts +142 -0
  23. package/dist/experience-catalog.js +25 -0
  24. package/dist/experience-compose.d.ts +83 -0
  25. package/dist/experience-compose.js +218 -0
  26. package/dist/experience-composition-schema.d.ts +29 -0
  27. package/dist/experience-composition-schema.js +22 -0
  28. package/dist/experience-document-viewer.d.ts +13 -0
  29. package/dist/experience-document-viewer.js +54 -0
  30. package/dist/experience-document.d.ts +64 -0
  31. package/dist/experience-document.js +234 -0
  32. package/dist/experience-region-text.d.ts +3 -0
  33. package/dist/experience-region-text.js +84 -0
  34. package/dist/experience-region-tree.d.ts +22 -0
  35. package/dist/experience-region-tree.js +50 -0
  36. package/dist/experience-regions.d.ts +9 -0
  37. package/dist/experience-regions.js +122 -0
  38. package/dist/experience-renderer.d.ts +16 -0
  39. package/dist/experience-renderer.js +37 -0
  40. package/dist/experience.d.ts +12 -0
  41. package/dist/experience.js +23 -0
  42. package/dist/file-tree-shadcn.d.ts +8 -0
  43. package/dist/file-tree-shadcn.js +14 -0
  44. package/dist/file-tree-view.d.ts +64 -0
  45. package/dist/file-tree-view.js +256 -0
  46. package/dist/file-tree.d.ts +57 -0
  47. package/dist/file-tree.js +204 -0
  48. package/dist/html-preview.d.ts +2 -0
  49. package/dist/html-preview.js +47 -0
  50. package/dist/html-viewer.d.ts +13 -0
  51. package/dist/html-viewer.js +69 -0
  52. package/dist/html.d.ts +21 -0
  53. package/dist/html.js +21 -0
  54. package/dist/index.d.ts +2 -472
  55. package/dist/index.js +1 -2671
  56. package/dist/markdown-editor.d.ts +28 -0
  57. package/dist/markdown-editor.js +230 -0
  58. package/dist/markdown-extensions.d.ts +16 -0
  59. package/dist/markdown-extensions.js +96 -0
  60. package/dist/markdown-icons.d.ts +244 -0
  61. package/dist/markdown-icons.js +32 -0
  62. package/dist/markdown-mounted.d.ts +63 -0
  63. package/dist/markdown-mounted.js +263 -0
  64. package/dist/markdown-parser.d.ts +4 -0
  65. package/dist/markdown-parser.js +33 -0
  66. package/dist/markdown-proposal-diff.d.ts +5 -0
  67. package/dist/markdown-proposal-diff.js +122 -0
  68. package/dist/markdown-safety.d.ts +21 -0
  69. package/dist/markdown-safety.js +135 -0
  70. package/dist/markdown.d.ts +86 -0
  71. package/dist/markdown.js +121 -0
  72. package/dist/native-chat.d.ts +150 -0
  73. package/dist/native-chat.js +376 -0
  74. package/dist/pi.d.ts +12 -0
  75. package/dist/pi.js +1 -0
  76. package/dist/public-text-buffer.d.ts +5 -0
  77. package/dist/public-text-buffer.js +1 -0
  78. package/dist/remote-chat.d.ts +76 -0
  79. package/dist/remote-chat.js +324 -0
  80. package/dist/resources.d.ts +34 -0
  81. package/dist/resources.js +1 -0
  82. package/dist/text-buffer-state.d.ts +24 -0
  83. package/dist/text-buffer-state.js +1 -0
  84. package/dist/text-buffer.d.ts +52 -0
  85. package/dist/text-buffer.js +315 -0
  86. package/dist/text-draft-controls.d.ts +9 -0
  87. package/dist/text-draft-controls.js +33 -0
  88. package/dist/text-draft-types.d.ts +111 -0
  89. package/dist/text-draft-types.js +1 -0
  90. package/dist/text-drafts.d.ts +29 -0
  91. package/dist/text-drafts.js +378 -0
  92. package/package.json +226 -58
  93. package/styles/file-tree.css +46 -0
  94. package/dist/styles.css +0 -2308
  95. package/dist/tokens.css +0 -155
@@ -0,0 +1,69 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { TextDraftControls } from './text-draft-controls.js';
4
+ import { useLayoutEffect, useRef, useState, useSyncExternalStore } from 'react';
5
+ import { passiveHtml } from './html-preview.js';
6
+ function HtmlPreview({ text }) {
7
+ const container = useRef(null);
8
+ const [status, setStatus] = useState('unavailable');
9
+ useLayoutEffect(() => {
10
+ const host = container.current;
11
+ if (!host)
12
+ return;
13
+ host.replaceChildren();
14
+ try {
15
+ const source = passiveHtml(text, host.ownerDocument);
16
+ const frame = host.ownerDocument.createElement('iframe');
17
+ frame.setAttribute('sandbox', '');
18
+ frame.referrerPolicy = 'no-referrer';
19
+ frame.title = 'HTML preview';
20
+ frame.className = 'boring-html-viewer__frame';
21
+ frame.srcdoc = source;
22
+ host.replaceChildren(frame);
23
+ setStatus('ready');
24
+ }
25
+ catch {
26
+ host.replaceChildren();
27
+ setStatus('failed');
28
+ }
29
+ return () => { host.replaceChildren(); };
30
+ }, [text]);
31
+ return _jsxs("div", { className: "boring-html-viewer__preview", children: [_jsx("p", { role: status === 'failed' ? 'alert' : undefined, children: status === 'ready'
32
+ ? 'Preview omits active content, attributes, and external resources.'
33
+ : status === 'failed' ? 'Preview unavailable. Source viewing and saving remain available.'
34
+ : 'Preview unavailable until this viewer is mounted in a browser.' }), _jsx("div", { ref: container })] });
35
+ }
36
+ function MountedHtmlViewer({ controller, title = 'HTML document', className, header = true, mode: controlledMode, onModeChange }) {
37
+ const snapshot = useSyncExternalStore(controller.subscribe, controller.getSnapshot, controller.getSnapshot);
38
+ const [ownMode, setOwnMode] = useState('preview');
39
+ const mode = controlledMode ?? ownMode;
40
+ const setMode = (next) => { if (controlledMode === undefined)
41
+ setOwnMode(next); onModeChange?.(next); };
42
+ const [error, setError] = useState();
43
+ const active = useRef(true);
44
+ useLayoutEffect(() => { active.current = true; return () => { active.current = false; }; }, []);
45
+ const pending = snapshot.save.kind === 'pending';
46
+ const unknown = snapshot.save.kind === 'settled' && snapshot.save.result.kind === 'unknown';
47
+ const disposed = snapshot.lifecycle === 'disposed';
48
+ const perform = (action) => {
49
+ setError(undefined);
50
+ void Promise.resolve().then(action).then(result => {
51
+ if (active.current && (result.kind === 'denied' || result.kind === 'unavailable'))
52
+ setError(result.reason);
53
+ }).catch(() => { if (active.current)
54
+ setError('The document operation failed. Your source has been retained.'); });
55
+ };
56
+ const status = disposed ? 'Viewer disposed' : snapshot.readOnly ? 'Read only' : pending ? 'Saving selected source' : unknown ? 'Save unconfirmed. Reconcile before saving again.' : snapshot.save.kind === 'settled' && snapshot.save.result.kind !== 'saved'
57
+ ? snapshot.save.result.kind === 'partial' ? 'Save unconfirmed' : snapshot.save.result.reason
58
+ : snapshot.dirty ? 'Unsaved changes' : 'Saved';
59
+ return _jsxs("section", { "data-boring": "html-viewer", className: ['boring-html-viewer', className].filter(Boolean).join(' '), "aria-label": title, children: [header && _jsxs("header", { children: [_jsx("strong", { children: title }), _jsx("span", { role: "status", children: status })] }), header && _jsxs("div", { role: "toolbar", "aria-label": "HTML document controls", children: [_jsx("button", { type: "button", "aria-pressed": mode === 'preview', onClick: () => setMode('preview'), children: "HTML preview" }), _jsx("button", { type: "button", "aria-pressed": mode === 'source', onClick: () => setMode('source'), children: "HTML source" }), _jsx("button", { type: "button", disabled: disposed || snapshot.readOnly || !snapshot.dirty || pending || unknown, onClick: () => { const selection = controller.actions.selection(); perform(() => controller.flush(selection)); }, children: "Save" }), _jsx("button", { type: "button", disabled: disposed || pending || unknown, onClick: () => perform(controller.actions.refresh), children: "Refresh" }), _jsx("button", { type: "button", disabled: disposed || !unknown, onClick: () => perform(controller.actions.reconcile), children: "Reconcile save" }), _jsx("button", { type: "button", disabled: disposed || !unknown, onClick: () => perform(controller.actions.abandon), children: "Abandon and refresh, keeping my draft" }), _jsx("button", { type: "button", disabled: disposed || pending || unknown || snapshot.remote === null, onClick: () => perform(controller.actions.discardToRemote), children: "Discard local edits" })] }), _jsx(TextDraftControls, { recovery: snapshot.recovery, actions: controller.actions, readOnly: snapshot.readOnly, blocked: snapshot.lifecycle !== 'active' || snapshot.save.kind === 'pending' || (snapshot.save.kind === 'settled' && snapshot.save.result.kind === 'unknown') }), error && _jsx("p", { role: "alert", children: error }), mode === 'source'
60
+ ? _jsx("textarea", { className: "boring-html-viewer__source", "aria-label": "HTML source", readOnly: snapshot.readOnly || disposed, value: snapshot.text, onChange: event => { if (!snapshot.readOnly && !disposed)
61
+ controller.actions.edit(event.currentTarget.value); } })
62
+ : _jsx(HtmlPreview, { text: snapshot.text })] });
63
+ }
64
+ export function HtmlViewer(props) {
65
+ const [mount, setMount] = useState({ controller: props.controller, sequence: 0 });
66
+ if (mount.controller !== props.controller)
67
+ setMount({ controller: props.controller, sequence: mount.sequence + 1 });
68
+ return _jsx(MountedHtmlViewer, { ...props }, mount.sequence);
69
+ }
package/dist/html.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ import type { ReadResult } from '@hachej/boring-files';
2
+ import type { TextDraftActions, TextDraftOptions } from './text-draft-types.js';
3
+ import type { EditableViewerController, SaveResult, SaveSelection } from './resources.js';
4
+ import type { TextBufferOptions, TextBufferSource, TextBufferState } from './text-buffer.js';
5
+ export type HtmlSource = TextBufferSource;
6
+ export type HtmlState = TextBufferState;
7
+ export type HtmlOptions = Pick<TextBufferOptions, 'identity' | 'instanceId' | 'epoch' | 'source' | 'client' | 'readOnly' | 'onListenerError'> & {
8
+ readonly drafts?: TextDraftOptions;
9
+ };
10
+ export interface HtmlActions extends TextDraftActions {
11
+ readonly edit: (text: string) => void;
12
+ readonly selection: () => SaveSelection;
13
+ readonly refresh: () => Promise<ReadResult>;
14
+ readonly discardToRemote: () => Promise<ReadResult>;
15
+ readonly reconcile: () => Promise<SaveResult>;
16
+ /** For an unconfirmed save: stop reconciling and refresh, keeping the draft. The save is never reported committed or replayed. */
17
+ readonly abandon: () => Promise<ReadResult>;
18
+ }
19
+ export type HtmlController = EditableViewerController<HtmlState, HtmlActions, undefined>;
20
+ export declare function createHtmlController(options: HtmlOptions): HtmlController;
21
+ //# sourceMappingURL=html.d.ts.map
package/dist/html.js ADDED
@@ -0,0 +1,21 @@
1
+ import { createTextBuffer } from './text-buffer.js';
2
+ export function createHtmlController(options) {
3
+ const { drafts, ...bufferOptions } = options;
4
+ const buffer = createTextBuffer({ ...bufferOptions, ...(drafts ? { drafts: { ...drafts, format: 'html/v1' } } : {}), mediaType: 'text/html', readText: snapshot => {
5
+ if (snapshot.mediaType !== 'text/html')
6
+ throw new TypeError('Expected HTML');
7
+ return new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(snapshot.bytes);
8
+ } });
9
+ return {
10
+ getSnapshot: buffer.getSnapshot,
11
+ subscribe: buffer.subscribe,
12
+ actions: {
13
+ edit: text => buffer.edit(text), selection: buffer.selection,
14
+ checkDrafts: buffer.checkDrafts, checkpointDraft: buffer.checkpointDraft, restoreDraft: buffer.restoreDraft, discardDraft: buffer.discardDraft,
15
+ refresh: () => buffer.refresh(false), discardToRemote: () => buffer.refresh(true), reconcile: buffer.reconcile, abandon: buffer.abandon,
16
+ },
17
+ tools: undefined,
18
+ flush: buffer.flush,
19
+ dispose: buffer.dispose,
20
+ };
21
+ }
package/dist/index.d.ts CHANGED
@@ -1,472 +1,2 @@
1
- import { ClassValue } from 'clsx';
2
- export { ClassValue } from 'clsx';
3
- import * as class_variance_authority_types from 'class-variance-authority/types';
4
- import * as React from 'react';
5
- import { VariantProps } from 'class-variance-authority';
6
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
7
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
8
- import * as DialogPrimitive from '@radix-ui/react-dialog';
9
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
10
- import * as SelectPrimitive from '@radix-ui/react-select';
11
- import { Command as Command$1 } from 'cmdk';
12
- import * as TabsPrimitive from '@radix-ui/react-tabs';
13
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
14
- import * as LabelPrimitive from '@radix-ui/react-label';
15
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
16
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
17
- import * as PopoverPrimitive from '@radix-ui/react-popover';
18
- import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
19
- import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
20
-
21
- declare function cn(...inputs: ClassValue[]): string;
22
-
23
- declare const buttonVariants: (props?: ({
24
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
25
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
26
- } & class_variance_authority_types.ClassProp) | undefined) => string;
27
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
28
- asChild?: boolean;
29
- }
30
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
31
-
32
- declare const badgeVariants: (props?: ({
33
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
34
- } & class_variance_authority_types.ClassProp) | undefined) => string;
35
- type BadgeProps = React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
36
- asChild?: boolean;
37
- };
38
- declare function Badge({ className, variant, asChild, ...props }: BadgeProps): React.JSX.Element;
39
-
40
- type InputProps = React.ComponentProps<'input'>;
41
- declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
42
-
43
- type TextareaProps = React.ComponentProps<'textarea'>;
44
- declare const Textarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
45
-
46
- type SeparatorProps = React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;
47
- declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
-
49
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
50
- declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
51
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
52
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
53
-
54
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
55
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
56
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
57
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
58
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
59
- declare function DialogContent({ className, children, showCloseButton, overlayClassName, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
60
- showCloseButton?: boolean;
61
- overlayClassName?: string;
62
- }): React.JSX.Element;
63
- declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
64
- declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<'div'> & {
65
- showCloseButton?: boolean;
66
- }): React.JSX.Element;
67
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
68
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
69
-
70
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
71
- declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
72
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
73
- declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
74
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
75
- declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
76
- inset?: boolean;
77
- variant?: 'default' | 'destructive';
78
- }): React.JSX.Element;
79
- declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
80
- declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
81
- declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React.JSX.Element;
82
- declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
83
- inset?: boolean;
84
- }): React.JSX.Element;
85
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
86
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
87
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
88
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
89
- inset?: boolean;
90
- }): React.JSX.Element;
91
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
92
-
93
- declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
94
- declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
95
- declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
96
- declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
97
- size?: "sm" | "default";
98
- }): React.JSX.Element;
99
- declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
100
- declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
101
- declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.JSX.Element;
102
- declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
103
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
104
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
105
-
106
- declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>): React.JSX.Element;
107
- declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
108
- title?: string;
109
- description?: string;
110
- className?: string;
111
- showCloseButton?: boolean;
112
- }): React.JSX.Element;
113
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Command$1.Input>): React.JSX.Element;
114
- declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>): React.JSX.Element;
115
- declare function CommandEmpty({ ...props }: React.ComponentProps<typeof Command$1.Empty>): React.JSX.Element;
116
- declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>): React.JSX.Element;
117
- declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Command$1.Separator>): React.JSX.Element;
118
- declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): React.JSX.Element;
119
- declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
120
-
121
- declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
122
- declare const tabsListVariants: (props?: ({
123
- variant?: "default" | "line" | null | undefined;
124
- } & class_variance_authority_types.ClassProp) | undefined) => string;
125
- declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React.JSX.Element;
126
- declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
127
- declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
128
-
129
- type IconButtonProps = Omit<ButtonProps, 'size'> & {
130
- size?: Extract<ButtonProps['size'], 'icon' | 'icon-xs' | 'icon-sm' | 'icon-lg'>;
131
- };
132
- declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size"> & {
133
- size?: Extract<ButtonProps["size"], "icon" | "icon-xs" | "icon-sm" | "icon-lg">;
134
- } & React.RefAttributes<HTMLButtonElement>>;
135
-
136
- type KbdProps = React.ComponentProps<'kbd'>;
137
- declare function Kbd({ className, ...props }: KbdProps): React.JSX.Element;
138
-
139
- type SpinnerProps = React.ComponentProps<'span'>;
140
- declare function Spinner({ className, ...props }: SpinnerProps): React.JSX.Element;
141
-
142
- type EmptyStateProps = React.ComponentProps<'div'> & {
143
- title?: React.ReactNode;
144
- description?: React.ReactNode;
145
- icon?: React.ReactNode;
146
- actions?: React.ReactNode;
147
- };
148
- declare function EmptyState({ className, title, description, icon, actions, children, ...props }: EmptyStateProps): React.JSX.Element;
149
-
150
- type ErrorStateProps = React.ComponentProps<'div'> & {
151
- title?: React.ReactNode;
152
- description?: React.ReactNode;
153
- details?: React.ReactNode;
154
- actions?: React.ReactNode;
155
- };
156
- declare function ErrorState({ className, title, description, details, actions, children, ...props }: ErrorStateProps): React.JSX.Element;
157
-
158
- declare function Pane({ className, ...props }: React.ComponentProps<'section'>): React.JSX.Element;
159
- declare function PaneHeader({ className, ...props }: React.ComponentProps<'header'>): React.JSX.Element;
160
- declare function PaneTitle({ className, ...props }: React.ComponentProps<'h2'>): React.JSX.Element;
161
- declare function PaneDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
162
- declare function PaneBody({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
163
- declare function PaneFooter({ className, ...props }: React.ComponentProps<'footer'>): React.JSX.Element;
164
- declare function PaneToolbar({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
165
-
166
- declare function Field({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
167
- declare function FieldLabel({ className, ...props }: React.ComponentProps<'label'>): React.JSX.Element;
168
- declare function FieldDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
169
- declare function FieldError({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
170
-
171
- type StatusBadgeTone = 'neutral' | 'success' | 'warning' | 'danger' | 'info';
172
- type StatusBadgeProps = BadgeProps & {
173
- tone?: StatusBadgeTone;
174
- };
175
- declare function StatusBadge({ className, tone, variant, ...props }: StatusBadgeProps): React.JSX.Element;
176
-
177
- type MeterTone = 'default' | 'warning' | 'danger';
178
- interface MeterProps extends Omit<React.ComponentProps<'progress'>, 'role' | 'value' | 'max'> {
179
- /** Filled fraction as a percentage in the range 0..100. */
180
- value: number;
181
- /** Accessible label for the progressbar (screen readers). */
182
- label?: string;
183
- tone?: MeterTone;
184
- }
185
- /**
186
- * Accessible horizontal usage/progress bar. A native `<progress>` element
187
- * gives the browser the dynamic fill without inline styles, which keeps it
188
- * compatible with applications that enforce nonce-only style CSPs.
189
- */
190
- declare function Meter({ value, label, tone, className, ...props }: MeterProps): React.JSX.Element;
191
-
192
- type NoticeTone = 'info' | 'success' | 'warning' | 'error' | 'accent' | 'destructive';
193
- type NoticeProps = React.ComponentProps<'div'> & {
194
- tone?: NoticeTone;
195
- title?: React.ReactNode;
196
- description?: React.ReactNode;
197
- icon?: React.ReactNode;
198
- actions?: React.ReactNode;
199
- };
200
- declare function Notice({ className, tone, title, description, icon, actions, children, ...props }: NoticeProps): React.JSX.Element;
201
-
202
- type SkeletonProps = React.ComponentProps<'div'>;
203
- declare function Skeleton({ className, ...props }: SkeletonProps): React.JSX.Element;
204
-
205
- type InlineCodeProps = React.ComponentProps<'code'>;
206
- declare function InlineCode({ className, ...props }: InlineCodeProps): React.JSX.Element;
207
-
208
- type ToolbarProps = React.ComponentProps<'div'>;
209
- declare function Toolbar({ className, ...props }: ToolbarProps): React.JSX.Element;
210
- type ToolbarGroupProps = React.ComponentProps<'div'>;
211
- declare function ToolbarGroup({ className, ...props }: ToolbarGroupProps): React.JSX.Element;
212
- type ToolbarButtonProps = ButtonProps;
213
- declare function ToolbarButton({ className, variant, size, ...props }: ToolbarButtonProps): React.JSX.Element;
214
- type ToolbarSeparatorProps = React.ComponentProps<'div'>;
215
- declare function ToolbarSeparator({ className, ...props }: ToolbarSeparatorProps): React.JSX.Element;
216
-
217
- type ChipProps = React.ComponentProps<'span'> & {
218
- selected?: boolean;
219
- };
220
- declare function Chip({ className, selected, ...props }: ChipProps): React.JSX.Element;
221
- type ChipButtonProps = ButtonProps & {
222
- selected?: boolean;
223
- };
224
- declare function ChipButton({ className, selected, variant, size, ...props }: ChipButtonProps): React.JSX.Element;
225
- type ChipRemoveProps = ButtonProps;
226
- declare function ChipRemove({ className, children, variant, size, ...props }: ChipRemoveProps): React.JSX.Element;
227
-
228
- type SegmentedControlProps = React.ComponentProps<'div'>;
229
- declare function SegmentedControl({ className, ...props }: SegmentedControlProps): React.JSX.Element;
230
- type SegmentedControlItemProps = ButtonProps & {
231
- selected?: boolean;
232
- };
233
- declare function SegmentedControlItem({ className, selected, variant, size, ...props }: SegmentedControlItemProps): React.JSX.Element;
234
-
235
- type SettingsPanelProps = React.ComponentProps<'section'> & {
236
- icon?: React.ReactNode;
237
- testId?: string;
238
- title: React.ReactNode;
239
- description?: React.ReactNode;
240
- footer?: React.ReactNode;
241
- danger?: boolean;
242
- };
243
- declare function SettingsPanel({ className, icon, title, description, footer, danger, testId, children, ...props }: SettingsPanelProps): React.JSX.Element;
244
- type SettingsNavItem = {
245
- href: string;
246
- label: React.ReactNode;
247
- description?: React.ReactNode;
248
- };
249
- type SettingsNavProps = React.ComponentProps<'nav'> & {
250
- label: string;
251
- items: SettingsNavItem[];
252
- };
253
- declare function SettingsNav({ className, label, items, ...props }: SettingsNavProps): React.JSX.Element;
254
- type SettingsPageHeaderProps = React.ComponentProps<'header'> & {
255
- eyebrow?: React.ReactNode;
256
- title: React.ReactNode;
257
- description?: React.ReactNode;
258
- context?: React.ReactNode;
259
- };
260
- declare function SettingsPageHeader({ className, eyebrow, title, description, context, children, ...props }: SettingsPageHeaderProps): React.JSX.Element;
261
- type SettingsActionRowProps = React.ComponentProps<'div'> & {
262
- title: React.ReactNode;
263
- description?: React.ReactNode;
264
- action: React.ReactNode;
265
- };
266
- declare function SettingsActionRow({ className, title, description, action, ...props }: SettingsActionRowProps): React.JSX.Element;
267
- type DetailLineProps = React.ComponentProps<'div'> & {
268
- icon?: React.ReactNode;
269
- label: React.ReactNode;
270
- };
271
- declare function DetailLine({ className, icon, label, children, ...props }: DetailLineProps): React.JSX.Element;
272
-
273
- declare const Disclosure: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
274
- declare const DisclosureContent: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
275
- type DisclosureTriggerProps = ButtonProps & {
276
- chevron?: React.ReactNode;
277
- };
278
- declare const DisclosureTrigger: React.ForwardRefExoticComponent<ButtonProps & {
279
- chevron?: React.ReactNode;
280
- } & React.RefAttributes<HTMLButtonElement>>;
281
- declare function DisclosureChevron({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
282
-
283
- type ResizeHandleOrientation = 'vertical' | 'horizontal';
284
- type ResizeHandleProps = Omit<React.ComponentProps<'div'>, 'onPointerDown'> & {
285
- orientation?: ResizeHandleOrientation;
286
- onResizeStart?: (event: React.PointerEvent<HTMLDivElement>) => void;
287
- };
288
- declare function ResizeHandle({ className, orientation, onResizeStart, role, tabIndex, ...props }: ResizeHandleProps): React.JSX.Element;
289
-
290
- type AvatarProps = React.ComponentProps<'div'>;
291
- declare function Avatar({ className, ...props }: AvatarProps): React.JSX.Element;
292
- type AvatarFallbackProps = React.ComponentProps<'span'>;
293
- declare function AvatarFallback({ className, ...props }: AvatarFallbackProps): React.JSX.Element;
294
- type InitialsAvatarProps = AvatarProps & {
295
- initials: React.ReactNode;
296
- };
297
- declare function InitialsAvatar({ initials, className, ...props }: InitialsAvatarProps): React.JSX.Element;
298
-
299
- type ToastVariant$1 = 'info' | 'success' | 'error';
300
- interface ToastInput$1 {
301
- title?: string;
302
- description?: string;
303
- variant?: ToastVariant$1;
304
- durationMs?: number;
305
- }
306
- interface ToastRecord extends ToastInput$1 {
307
- id: string;
308
- createdAt: number;
309
- }
310
- type Listener = (toasts: ToastRecord[]) => void;
311
- declare function dismissToast(id: string): void;
312
- declare function subscribeToasts(listener: Listener): () => void;
313
- declare function getActiveToasts(): ToastRecord[];
314
- declare function clearToasts(): void;
315
- interface ToastApi$1 {
316
- (input: string | ToastInput$1): string;
317
- success: (input: string | ToastInput$1) => string;
318
- error: (input: string | ToastInput$1) => string;
319
- info: (input: string | ToastInput$1) => string;
320
- dismiss: (id: string) => void;
321
- }
322
- declare const toast: ToastApi$1;
323
- interface ToasterProps {
324
- position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
325
- className?: string;
326
- }
327
- declare function Toaster({ position, className }: ToasterProps): React.ReactPortal | null;
328
-
329
- type LoadingStateProps = React.ComponentProps<'div'> & {
330
- label?: React.ReactNode;
331
- centered?: boolean;
332
- };
333
- declare function LoadingState({ className, label, centered, children, ...props }: LoadingStateProps): React.JSX.Element;
334
-
335
- type ListProps = React.ComponentProps<'div'>;
336
- declare function List({ className, ...props }: ListProps): React.JSX.Element;
337
- type ListRowProps = React.ComponentProps<'div'> & {
338
- interactive?: boolean;
339
- };
340
- declare function ListRow({ className, interactive, ...props }: ListRowProps): React.JSX.Element;
341
- type ListRowMainProps = React.ComponentProps<'div'>;
342
- declare function ListRowMain({ className, ...props }: ListRowMainProps): React.JSX.Element;
343
- type ListRowTitleProps = React.ComponentProps<'p'>;
344
- declare function ListRowTitle({ className, ...props }: ListRowTitleProps): React.JSX.Element;
345
- type ListRowDescriptionProps = React.ComponentProps<'p'>;
346
- declare function ListRowDescription({ className, ...props }: ListRowDescriptionProps): React.JSX.Element;
347
- type ListRowMetaProps = React.ComponentProps<'div'>;
348
- declare function ListRowMeta({ className, ...props }: ListRowMetaProps): React.JSX.Element;
349
- type ListRowActionsProps = React.ComponentProps<'div'>;
350
- declare function ListRowActions({ className, ...props }: ListRowActionsProps): React.JSX.Element;
351
-
352
- type DetailListProps = React.ComponentProps<'dl'>;
353
- declare function DetailList({ className, ...props }: DetailListProps): React.JSX.Element;
354
-
355
- type FloatingPanelProps = React.ComponentProps<'div'>;
356
- declare function FloatingPanel({ className, ...props }: FloatingPanelProps): React.JSX.Element;
357
- type FloatingPanelHeaderProps = React.ComponentProps<'div'>;
358
- declare function FloatingPanelHeader({ className, ...props }: FloatingPanelHeaderProps): React.JSX.Element;
359
- type FloatingPanelBodyProps = React.ComponentProps<'div'>;
360
- declare function FloatingPanelBody({ className, ...props }: FloatingPanelBodyProps): React.JSX.Element;
361
-
362
- declare function Card({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
363
- declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
364
- declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
365
- declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
366
- declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
367
- declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
368
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
369
-
370
- declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): React.JSX.Element;
371
-
372
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
373
-
374
- type RadioProps = Omit<React.ComponentProps<'input'>, 'type'>;
375
- declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
376
-
377
- declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): React.JSX.Element;
378
- declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): React.JSX.Element;
379
- declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): React.JSX.Element;
380
- declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): React.JSX.Element;
381
- declare function AlertDialogContent({ className, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
382
- size?: "default" | "sm";
383
- }): React.JSX.Element;
384
- declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
385
- declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
386
- declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
387
- declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
388
- declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
389
- declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
390
- declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
391
-
392
- declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
393
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
394
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
395
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
396
- declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
397
- declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): React.JSX.Element;
398
- declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
399
-
400
- declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): React.JSX.Element;
401
- declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React.JSX.Element;
402
-
403
- declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
404
- declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
405
- declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
406
- declare function SheetContent({ className, children, side, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
407
- side?: "top" | "right" | "bottom" | "left";
408
- showCloseButton?: boolean;
409
- }): React.JSX.Element;
410
- declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
411
- declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
412
- declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
413
- declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
414
-
415
- type ToastVariant = 'default' | 'destructive' | 'info' | 'success' | 'warning' | 'error';
416
- type ToastInput = string | {
417
- title?: string;
418
- description?: string;
419
- variant?: ToastVariant;
420
- };
421
- type ToastApi = {
422
- toast: (input: ToastInput) => void;
423
- };
424
- declare function useToast(): ToastApi;
425
-
426
- declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
427
- declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
428
- declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
429
-
430
- declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
431
- declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
432
- declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
433
-
434
- declare const buttonGroupVariants: (props?: ({
435
- orientation?: "horizontal" | "vertical" | null | undefined;
436
- } & class_variance_authority_types.ClassProp) | undefined) => string;
437
- declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>): React.JSX.Element;
438
- declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<'div'> & {
439
- asChild?: boolean;
440
- }): React.JSX.Element;
441
- declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
442
-
443
- declare function InputGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
444
- declare const inputGroupAddonVariants: (props?: ({
445
- align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
446
- } & class_variance_authority_types.ClassProp) | undefined) => string;
447
- declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
448
- declare const inputGroupButtonVariants: (props?: ({
449
- size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
450
- } & class_variance_authority_types.ClassProp) | undefined) => string;
451
- declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>): React.JSX.Element;
452
- declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
453
- declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
454
- declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'>): React.JSX.Element;
455
-
456
- declare function ChoiceGroup({ className, ...props }: React.ComponentProps<'fieldset'>): React.JSX.Element;
457
- declare function ChoiceGroupLegend({ className, ...props }: React.ComponentProps<'legend'>): React.JSX.Element;
458
- declare function ChoiceItem({ className, ...props }: React.ComponentProps<'label'>): React.JSX.Element;
459
- declare function ChoiceItemBody({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
460
- declare function ChoiceItemTitle({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
461
- declare function ChoiceItemDescription({ className, ...props }: React.ComponentProps<'small'>): React.JSX.Element;
462
-
463
- interface BoringPerspectiveThemeOptions {
464
- /** Hide Perspective/d3fc axis titles when surrounding UI already labels the chart. */
465
- hideAxisLabels?: boolean;
466
- /** Use app sans font for d3fc axis/tick labels instead of Perspective's mono token. */
467
- chartTicksUseSans?: boolean;
468
- }
469
- declare function boringPerspectiveThemeName(root?: Pick<Element, "classList"> | null | undefined): "Pro Light" | "Pro Dark";
470
- declare function applyBoringPerspectiveTheme(element: HTMLElement, options?: BoringPerspectiveThemeOptions): void;
471
-
472
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, type AvatarFallbackProps, type AvatarProps, Badge, type BadgeProps, type BoringPerspectiveThemeOptions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, ChipButton, type ChipButtonProps, type ChipProps, ChipRemove, type ChipRemoveProps, ChoiceGroup, ChoiceGroupLegend, ChoiceItem, ChoiceItemBody, ChoiceItemDescription, ChoiceItemTitle, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DetailLine, type DetailLineProps, DetailList, type DetailListProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Disclosure, DisclosureChevron, DisclosureContent, DisclosureTrigger, type DisclosureTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, Field, FieldDescription, FieldError, FieldLabel, FloatingPanel, FloatingPanelBody, type FloatingPanelBodyProps, FloatingPanelHeader, type FloatingPanelHeaderProps, type FloatingPanelProps, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, InitialsAvatar, type InitialsAvatarProps, InlineCode, type InlineCodeProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, Kbd, type KbdProps, Label, List, type ListProps, ListRow, ListRowActions, type ListRowActionsProps, ListRowDescription, type ListRowDescriptionProps, ListRowMain, type ListRowMainProps, ListRowMeta, type ListRowMetaProps, type ListRowProps, ListRowTitle, type ListRowTitleProps, LoadingState, type LoadingStateProps, Meter, type MeterProps, type MeterTone, Notice, type NoticeProps, type NoticeTone, Pane, PaneBody, PaneDescription, PaneFooter, PaneHeader, PaneTitle, PaneToolbar, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Radio, type RadioProps, ResizeHandle, type ResizeHandleOrientation, type ResizeHandleProps, ScrollArea, ScrollBar, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, SettingsActionRow, type SettingsActionRowProps, SettingsNav, type SettingsNavItem, type SettingsNavProps, SettingsPageHeader, type SettingsPageHeaderProps, SettingsPanel, type SettingsPanelProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, type StatusBadgeTone, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, type ToastApi$1 as ToastApi, type ToastApi as ToastEventApi, type ToastInput as ToastEventInput, type ToastVariant as ToastEventVariant, type ToastInput$1 as ToastInput, type ToastRecord, type ToastVariant$1 as ToastVariant, Toaster, type ToasterProps, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, applyBoringPerspectiveTheme, badgeVariants, boringPerspectiveThemeName, buttonGroupVariants, buttonVariants, clearToasts, cn, dismissToast, getActiveToasts, subscribeToasts, tabsListVariants, toast, useToast };
1
+ export type * from './contracts.js';
2
+ //# sourceMappingURL=index.d.ts.map