@particle-academy/react-fancy 4.8.1 → 4.10.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/README.md +13 -0
- package/dist/index.cjs +554 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +235 -2
- package/dist/index.d.ts +235 -2
- package/dist/index.js +549 -7
- package/dist/index.js.map +1 -1
- package/dist/styles.css +46 -0
- package/dist/styles.css.map +1 -1
- package/docs/AudioViewer.md +29 -0
- package/docs/ImageViewer.md +60 -0
- package/docs/MediaViewer.md +75 -0
- package/docs/PdfViewer.md +29 -0
- package/docs/VideoViewer.md +31 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2062,6 +2062,17 @@ interface EditorProps {
|
|
|
2062
2062
|
defaultValue?: string;
|
|
2063
2063
|
onChange?: (value: string) => void;
|
|
2064
2064
|
outputFormat?: "html" | "markdown";
|
|
2065
|
+
/**
|
|
2066
|
+
* The format of the INCOMING `value` / `defaultValue`. Default `"auto"`
|
|
2067
|
+
* keeps the historical sniff (`detectFormat`) — but real-world markdown that
|
|
2068
|
+
* merely mentions HTML-ish snippets (`<code>`, `<table`, …) flips the sniff
|
|
2069
|
+
* to html and renders as a wall of text. Callers with a KNOWN format
|
|
2070
|
+
* (file-typed content, values previously emitted with
|
|
2071
|
+
* `outputFormat="markdown"`) should declare it; explicit values bypass the
|
|
2072
|
+
* sniff entirely — in edit mode AND view mode.
|
|
2073
|
+
* @default "auto"
|
|
2074
|
+
*/
|
|
2075
|
+
valueFormat?: "markdown" | "html" | "auto";
|
|
2065
2076
|
lineSpacing?: number;
|
|
2066
2077
|
placeholder?: string;
|
|
2067
2078
|
/**
|
|
@@ -2099,7 +2110,7 @@ declare namespace EditorContent {
|
|
|
2099
2110
|
var displayName: string;
|
|
2100
2111
|
}
|
|
2101
2112
|
|
|
2102
|
-
declare function EditorRoot({ children, className, value: controlledValue, defaultValue, onChange, outputFormat, lineSpacing, placeholder, mode: modeProp, extensions: instanceExtensions, unsafe, }: EditorProps): react.JSX.Element;
|
|
2113
|
+
declare function EditorRoot({ children, className, value: controlledValue, defaultValue, onChange, outputFormat, valueFormat, lineSpacing, placeholder, mode: modeProp, extensions: instanceExtensions, unsafe, }: EditorProps): react.JSX.Element;
|
|
2103
2114
|
declare const Editor: typeof EditorRoot & {
|
|
2104
2115
|
Toolbar: typeof EditorToolbar & {
|
|
2105
2116
|
Separator: typeof EditorToolbarSeparator;
|
|
@@ -2590,6 +2601,34 @@ declare function sanitizeHref(href: string | undefined | null): string | undefin
|
|
|
2590
2601
|
*/
|
|
2591
2602
|
declare function sanitizeHtml(html: string): string;
|
|
2592
2603
|
|
|
2604
|
+
/**
|
|
2605
|
+
* Resolve what kind of media a source is, from its MIME type (preferred) or its
|
|
2606
|
+
* URL — a file extension, or the type embedded in a `data:` URI.
|
|
2607
|
+
*
|
|
2608
|
+
* Shared by `<MediaViewer>` to pick the right per-type viewer, and exported so
|
|
2609
|
+
* downstream packages (e.g. fancy-code's file viewer) can make the same
|
|
2610
|
+
* text-vs-media decision without re-deriving the table.
|
|
2611
|
+
*/
|
|
2612
|
+
type MediaKind = "image" | "video" | "audio" | "pdf" | "unknown";
|
|
2613
|
+
interface ResolveMediaTypeInput {
|
|
2614
|
+
/** MIME type — preferred when known (e.g. `"image/png"`, `"video/mp4"`). */
|
|
2615
|
+
mime?: string | null;
|
|
2616
|
+
/**
|
|
2617
|
+
* Source URL — used to sniff the kind from a file extension, or from the type
|
|
2618
|
+
* embedded in a `data:` URI, when no `mime` is given. `http(s):` / `data:` /
|
|
2619
|
+
* `blob:` are all accepted (a bare `blob:` URL carries no type, so pass
|
|
2620
|
+
* `mime` alongside it).
|
|
2621
|
+
*/
|
|
2622
|
+
src?: string | null;
|
|
2623
|
+
}
|
|
2624
|
+
/**
|
|
2625
|
+
* Resolve a {@link MediaKind} from a MIME type and/or source URL. MIME wins
|
|
2626
|
+
* when it's conclusive; otherwise the `src` is sniffed (a `data:` URI's
|
|
2627
|
+
* embedded type first, then the file extension). Returns `"unknown"` when
|
|
2628
|
+
* nothing matches — callers treat that as "not previewable media" (e.g. text).
|
|
2629
|
+
*/
|
|
2630
|
+
declare function resolveMediaType({ mime, src }: ResolveMediaTypeInput): MediaKind;
|
|
2631
|
+
|
|
2593
2632
|
declare function useControllableState<T>(controlledValue: T | undefined, defaultValue: T, onChange?: (value: T) => void): [T, (value: T | ((prev: T) => T)) => void];
|
|
2594
2633
|
|
|
2595
2634
|
declare function useOutsideClick(ref: RefObject<HTMLElement | null>, handler: (event: MouseEvent | TouchEvent) => void, enabled?: boolean, ignoreRef?: RefObject<HTMLElement | null>): void;
|
|
@@ -3090,4 +3129,198 @@ interface MagicWandProps {
|
|
|
3090
3129
|
}
|
|
3091
3130
|
declare function MagicWand({ value, onValueChange, actions, appearance, autoHide, rows, placeholder, onAction, }: MagicWandProps): react.JSX.Element;
|
|
3092
3131
|
|
|
3093
|
-
|
|
3132
|
+
/** Pan offset (in container pixels) + zoom factor for an `<ImageViewer>`. */
|
|
3133
|
+
interface ImageViewerViewport {
|
|
3134
|
+
panX: number;
|
|
3135
|
+
panY: number;
|
|
3136
|
+
zoom: number;
|
|
3137
|
+
}
|
|
3138
|
+
interface ImageViewerProps {
|
|
3139
|
+
/** Image source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3140
|
+
src: string;
|
|
3141
|
+
/** Alt text for the image (also used as the download filename hint). */
|
|
3142
|
+
alt?: string;
|
|
3143
|
+
/**
|
|
3144
|
+
* How the image sits in its container at zoom 1. `"contain"` (default) fits
|
|
3145
|
+
* the whole image, `"cover"` fills and crops, `"none"` shows it at natural
|
|
3146
|
+
* size (pan to see the rest).
|
|
3147
|
+
*/
|
|
3148
|
+
fit?: "contain" | "cover" | "none";
|
|
3149
|
+
/** Allow Ctrl/⌘+wheel zoom and the zoom controls (default `true`). */
|
|
3150
|
+
zoomable?: boolean;
|
|
3151
|
+
/** Allow click-drag panning (default `true`). */
|
|
3152
|
+
pannable?: boolean;
|
|
3153
|
+
/** Show the floating zoom controls. Defaults to the value of `zoomable`. */
|
|
3154
|
+
controls?: boolean;
|
|
3155
|
+
/** Minimum zoom factor (default `0.25`). */
|
|
3156
|
+
minZoom?: number;
|
|
3157
|
+
/** Maximum zoom factor (default `8`). */
|
|
3158
|
+
maxZoom?: number;
|
|
3159
|
+
/**
|
|
3160
|
+
* Paint a checkerboard behind the image so transparency reads clearly
|
|
3161
|
+
* (default `true`). Set `false` for a flat themed surface.
|
|
3162
|
+
*/
|
|
3163
|
+
checkerboard?: boolean;
|
|
3164
|
+
/**
|
|
3165
|
+
* Controlled viewport (pan + zoom). Pair with `onViewportChange`. Omit for
|
|
3166
|
+
* uncontrolled internal state. Exposed so an agent can pan/zoom to point at
|
|
3167
|
+
* something via a bridge.
|
|
3168
|
+
*/
|
|
3169
|
+
viewport?: ImageViewerViewport;
|
|
3170
|
+
/** Initial viewport when uncontrolled. */
|
|
3171
|
+
defaultViewport?: ImageViewerViewport;
|
|
3172
|
+
/** Called whenever the viewport (pan/zoom) changes. */
|
|
3173
|
+
onViewportChange?: (viewport: ImageViewerViewport) => void;
|
|
3174
|
+
/** Fired when the image finishes loading. */
|
|
3175
|
+
onLoad?: () => void;
|
|
3176
|
+
/** Fired when the image fails to load. */
|
|
3177
|
+
onError?: () => void;
|
|
3178
|
+
/** Additional CSS classes for the viewport container. */
|
|
3179
|
+
className?: string;
|
|
3180
|
+
/** Inline styles for the viewport container (e.g. a fixed height). */
|
|
3181
|
+
style?: CSSProperties;
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
interface VideoViewerProps {
|
|
3185
|
+
/** Video source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3186
|
+
src: string;
|
|
3187
|
+
/** Poster image shown before playback. */
|
|
3188
|
+
poster?: string;
|
|
3189
|
+
/** Show native playback controls (default `true`). */
|
|
3190
|
+
controls?: boolean;
|
|
3191
|
+
/** Autoplay on mount (most browsers require `muted` too). */
|
|
3192
|
+
autoPlay?: boolean;
|
|
3193
|
+
/** Loop playback (default `false`). */
|
|
3194
|
+
loop?: boolean;
|
|
3195
|
+
/** Start muted (default `false`). */
|
|
3196
|
+
muted?: boolean;
|
|
3197
|
+
/** How the video fits its box: `"contain"` (default) or `"cover"`. */
|
|
3198
|
+
fit?: "contain" | "cover";
|
|
3199
|
+
/** Fired when the video fails to load. */
|
|
3200
|
+
onError?: () => void;
|
|
3201
|
+
/** Additional CSS classes for the container. */
|
|
3202
|
+
className?: string;
|
|
3203
|
+
/** Inline styles for the container (e.g. a fixed height). */
|
|
3204
|
+
style?: CSSProperties;
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
interface AudioViewerProps {
|
|
3208
|
+
/** Audio source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3209
|
+
src: string;
|
|
3210
|
+
/** Optional label shown above the player (e.g. the file name). */
|
|
3211
|
+
title?: string;
|
|
3212
|
+
/** Show native playback controls (default `true`). */
|
|
3213
|
+
controls?: boolean;
|
|
3214
|
+
/** Autoplay on mount. */
|
|
3215
|
+
autoPlay?: boolean;
|
|
3216
|
+
/** Loop playback (default `false`). */
|
|
3217
|
+
loop?: boolean;
|
|
3218
|
+
/** Fired when the audio fails to load. */
|
|
3219
|
+
onError?: () => void;
|
|
3220
|
+
/** Additional CSS classes for the card. */
|
|
3221
|
+
className?: string;
|
|
3222
|
+
/** Inline styles for the card. */
|
|
3223
|
+
style?: CSSProperties;
|
|
3224
|
+
}
|
|
3225
|
+
|
|
3226
|
+
interface PdfViewerProps {
|
|
3227
|
+
/** PDF source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3228
|
+
src: string;
|
|
3229
|
+
/** Accessible title for the embedded document (default `"PDF document"`). */
|
|
3230
|
+
title?: string;
|
|
3231
|
+
/** Additional CSS classes for the container. */
|
|
3232
|
+
className?: string;
|
|
3233
|
+
/** Inline styles for the container (e.g. a fixed height). */
|
|
3234
|
+
style?: CSSProperties;
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
interface MediaViewerProps {
|
|
3238
|
+
/** Media source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3239
|
+
src: string;
|
|
3240
|
+
/**
|
|
3241
|
+
* MIME type — preferred for picking the viewer. When omitted, the kind is
|
|
3242
|
+
* sniffed from `src` (extension or `data:` URI). Always pass `mime` with a
|
|
3243
|
+
* bare `blob:` URL, which carries no type of its own.
|
|
3244
|
+
*/
|
|
3245
|
+
mime?: string;
|
|
3246
|
+
/** Alt text / label, forwarded as image alt and audio/PDF title. */
|
|
3247
|
+
alt?: string;
|
|
3248
|
+
/** Force a specific viewer, bypassing detection. */
|
|
3249
|
+
kind?: MediaKind;
|
|
3250
|
+
/** Extra props for the underlying `<ImageViewer>`. */
|
|
3251
|
+
imageProps?: Partial<Omit<ImageViewerProps, "src" | "alt">>;
|
|
3252
|
+
/** Extra props for the underlying `<VideoViewer>`. */
|
|
3253
|
+
videoProps?: Partial<Omit<VideoViewerProps, "src">>;
|
|
3254
|
+
/** Extra props for the underlying `<AudioViewer>`. */
|
|
3255
|
+
audioProps?: Partial<Omit<AudioViewerProps, "src">>;
|
|
3256
|
+
/** Extra props for the underlying `<PdfViewer>`. */
|
|
3257
|
+
pdfProps?: Partial<Omit<PdfViewerProps, "src">>;
|
|
3258
|
+
/** Rendered for unknown / unpreviewable types (default: a download card). */
|
|
3259
|
+
fallback?: ReactNode;
|
|
3260
|
+
/** Fired when the chosen viewer reports a load error. */
|
|
3261
|
+
onError?: () => void;
|
|
3262
|
+
/** Additional CSS classes, forwarded to the chosen viewer. */
|
|
3263
|
+
className?: string;
|
|
3264
|
+
/** Inline styles, forwarded to the chosen viewer. */
|
|
3265
|
+
style?: CSSProperties;
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
/**
|
|
3269
|
+
* Renders the right viewer for a media file, picked from its `mime` (preferred)
|
|
3270
|
+
* or `src` — image, video, audio, or PDF — and a download fallback for anything
|
|
3271
|
+
* else. SVG renders through `<ImageViewer>`. The single entry point for showing
|
|
3272
|
+
* a file from a tree/workspace when you don't know its type ahead of time.
|
|
3273
|
+
*
|
|
3274
|
+
* ```tsx
|
|
3275
|
+
* <MediaViewer src={url} mime="image/png" alt="logo.png" style={{ height: 320 }} />
|
|
3276
|
+
* ```
|
|
3277
|
+
*/
|
|
3278
|
+
declare const MediaViewer: react.ForwardRefExoticComponent<MediaViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3279
|
+
|
|
3280
|
+
/**
|
|
3281
|
+
* A standalone image viewer: fits the image to its container, with optional
|
|
3282
|
+
* Ctrl/⌘+wheel zoom, click-drag panning, and a transparency checkerboard. Works
|
|
3283
|
+
* anywhere on its own and is also what `<MediaViewer>` renders for images.
|
|
3284
|
+
*
|
|
3285
|
+
* The pan/zoom viewport is controllable (`viewport` + `onViewportChange`) so an
|
|
3286
|
+
* agent bridge can drive it; it's uncontrolled by default.
|
|
3287
|
+
*
|
|
3288
|
+
* ```tsx
|
|
3289
|
+
* <ImageViewer src="/logo.png" alt="logo.png" style={{ height: 320 }} />
|
|
3290
|
+
* ```
|
|
3291
|
+
*/
|
|
3292
|
+
declare const ImageViewer: react.ForwardRefExoticComponent<ImageViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* A standalone video viewer — native controls, optional poster, fit-to-box, and
|
|
3296
|
+
* dark-aware framing. Renders for video sources inside `<MediaViewer>`.
|
|
3297
|
+
*
|
|
3298
|
+
* ```tsx
|
|
3299
|
+
* <VideoViewer src="/clip.mp4" poster="/clip.jpg" style={{ height: 360 }} />
|
|
3300
|
+
* ```
|
|
3301
|
+
*/
|
|
3302
|
+
declare const VideoViewer: react.ForwardRefExoticComponent<VideoViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* A standalone audio viewer — a themed card wrapping the native audio player,
|
|
3306
|
+
* with an optional title. Renders for audio sources inside `<MediaViewer>`.
|
|
3307
|
+
*
|
|
3308
|
+
* ```tsx
|
|
3309
|
+
* <AudioViewer src="/track.mp3" title="track.mp3" />
|
|
3310
|
+
* ```
|
|
3311
|
+
*/
|
|
3312
|
+
declare const AudioViewer: react.ForwardRefExoticComponent<AudioViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3313
|
+
|
|
3314
|
+
/**
|
|
3315
|
+
* A standalone PDF viewer — embeds the document via the browser's native PDF
|
|
3316
|
+
* plugin (`<object>`), falling back to an `<iframe>`, then to a download link.
|
|
3317
|
+
* Fills its container, so give it a height (a `min-h` floor is built in).
|
|
3318
|
+
* Renders for PDF sources inside `<MediaViewer>`.
|
|
3319
|
+
*
|
|
3320
|
+
* ```tsx
|
|
3321
|
+
* <PdfViewer src="/report.pdf" title="report.pdf" style={{ height: 600 }} />
|
|
3322
|
+
* ```
|
|
3323
|
+
*/
|
|
3324
|
+
declare const PdfViewer: react.ForwardRefExoticComponent<PdfViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3325
|
+
|
|
3326
|
+
export { Accordion, type AccordionContentProps, type AccordionContextValue, type AccordionItemProps, type AccordionOrientation, AccordionPanel, AccordionPanelContent, type AccordionPanelContentProps, type AccordionPanelProps, AccordionPanelSection, type AccordionPanelSectionProps, AccordionPanelTrigger, type AccordionPanelTriggerProps, type AccordionProps, type AccordionTriggerProps, Action, type ActionColor, type ActionProps, type AffixPosition, AudioViewer, type AudioViewerProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, type AvatarProps, Badge, type BadgeProps, Brand, type BrandProps, Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsProps, Button, type ButtonColor, type ButtonProps, Calendar, type CalendarMode, type CalendarProps, Callout, type CalloutProps, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardProps, Carousel, type CarouselContextValue, type CarouselControlsProps, type CarouselPanelsProps, type CarouselProps, type CarouselSlideProps, type CarouselStepsProps, type CarouselVariant, Chart, type ChartAreaProps, type ChartBarData, type ChartBarProps, type ChartCommonProps, type ChartDonutData, type ChartDonutProps, type ChartHorizontalBarProps, type ChartLineProps, type ChartPieData, type ChartPieProps, type ChartSeries, type ChartSparklineProps, type ChartStackedBarProps, ChatDrawer, type ChatDrawerProps, type ChatDrawerTab, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type Color, ColorPicker, type ColorPickerProps, Command, type CommandContextValue, type CommandEmptyProps, type CommandGroupProps, type CommandInputProps, type CommandItemProps, type CommandListProps, type CommandProps, Composer, type ComposerProps, ContentRenderer, type ContentRendererProps, ContextMenu, type ContextMenuContentProps, type ContextMenuContextValue, type ContextMenuItemProps, type ContextMenuProps, type ContextMenuSeparatorProps, type ContextMenuTriggerProps, type ControlledAdapterHandle, DatePicker, type DatePickerProps, type DateRange, DisplayValue, type DisplayValueProps, type DropPosition, Dropdown, type DropdownContextValue, type DropdownItemProps, type DropdownItemsProps, type DropdownProps, type DropdownSeparatorProps, type DropdownTriggerProps, EMOJI_CATEGORY_ORDER, EMOJI_DATA, EMOJI_ENTRIES, Editor, type EditorAction, type EditorContentProps, type EditorContextValue, type EditorProps, type EditorToolbarProps, Emoji, type EmojiCategory, type EmojiCategoryKey, type EmojiEntry, type EmojiFlatEntry, type EmojiProps, EmojiSelect, type EmojiSelectProps, FauxClient, type FauxClientProps, Field, type FieldMode, FieldModeContext, type FieldModeContextValue, type FieldProps, FileUpload, type FileUploadContextValue, type FileUploadDropzoneProps, type FileUploadListProps, type FileUploadProps, Form, type FormProps, FormProvider, type FormProviderProps, Heading, type HeadingProps, Icon, type IconProps, type IconSet, ImageViewer, type ImageViewerProps, type ImageViewerViewport, Input, type InputAffixProps, type InputBaseProps, type InputOption, type InputOptionGroup, type InputProps, InputTag, type InputTagAdapter, type InputTagAdapterState, type InputTagProps, type InputTagTrigger, type InputTagTriggers, Kanban, type KanbanCardMoveHandler, type KanbanCardProps, type KanbanColumnHandleProps, type KanbanColumnMoveHandler, type KanbanColumnProps, type KanbanContextValue, type KanbanProps, MagicWand, type MagicWandAction, type MagicWandAppearance, type MagicWandProps, type MagicWandSelection, type MediaKind, MediaViewer, type MediaViewerProps, Menu, type MenuContextValue, type MenuGroupProps, type MenuItemProps, type MenuOrientation, type MenuProps, type MenuSubmenuProps, MobileMenu, type MobileMenuBottomBarProps, type MobileMenuContextValue, type MobileMenuFlyoutProps, type MobileMenuItemProps, type MobileMenuSide, type MobileMenuVariant, Modal, type ModalBodyProps, type ModalContextValue, type ModalFooterProps, type ModalHeaderProps, type ModalProps, MoodMeter, type MoodMeterProps, MultiSwitch, type MultiSwitchProps, Navbar, type NavbarBrandProps, type NavbarContextValue, type NavbarItemProps, type NavbarItemsProps, type NavbarProps, type NavbarToggleProps, type NodeRect, OtpInput, type OtpInputProps, Pagination, type PaginationProps, PdfViewer, type PdfViewerProps, Pillbox, type PillboxProps, type Placement, Popover, type PopoverContentProps, type PopoverContextValue, type PopoverProps, type PopoverTriggerProps, Portal, type PortalProps, Profile, type ProfileProps, Progress, type ProgressProps, type PromptAttachment, type PromptCmd, PromptInput, type PromptInputProps, type PromptMention, RadioGroup, type RadioGroupProps, ReasonTag, type ReasonTagProps, type ReasonTagSource, type ReasonTagTheme, type RenderExtension, type RenderExtensionProps, type ResolveMediaTypeInput, SKIN_TONES, type SectionRenderState, type SectionRenderable, Select, type SelectProps, Separator, type SeparatorProps, Sidebar, type SidebarCollapseMode, type SidebarContextValue, type SidebarGroupProps, type SidebarItemProps, type SidebarProps, type SidebarSubmenuProps, type SidebarToggleProps, type Size, Skeleton, type SkeletonProps, type SkinTone, Slider, type SliderProps, StickyNote, type StickyNoteColor, type StickyNoteProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableHeadProps, type TablePaginationProps, type TableProps, type TableRowProps, type TableRowTrayProps, type TableSearchProps, type TableTrayProps, Tabs, type TabsContextValue, type TabsListProps, type TabsPanelProps, type TabsPanelsProps, type TabsProps, type TabsTabProps, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, TimeGrid, type TimeGridProps, type TimeGridTone, TimePicker, type TimePickerProps, Timeline, type TimelineBlockProps, type TimelineEvent, type TimelineItemProps, type TimelineOrientation, type TimelineProps, type TimelineVariant, Toast, type ToastContextValue, type ToastData, type ToastPosition, type ToastProviderProps, type ToastVariant, Tooltip, type TooltipProps, TreeNav, type TreeNavContextValue, type TreeNavProps, type TreeNodeData, type TreeNodeProps, type Variant, VideoViewer, type VideoViewerProps, applyTone, cn, configureIcons, contentEditableAdapter, controlledAdapter, find, hasSkinTones, inputAdapter, registerExtension, registerExtensions, registerIconAddendum, registerIconSet, registerIcons, resolve, resolveMediaType, sanitizeHref, sanitizeHtml, search, skinTones, textareaAdapter, useAccordion, useAccordionPanel, useAccordionSection, useAnimation, useCarousel, useCommand, useContextMenu, useControllableState, useDropdown, useEditor, useEscapeKey, useFieldMode, useFileUpload, useFloatingPosition, useFocusTrap, useId, useKanban, useMenu, useMobileMenu, useModal, useNavbar, useNodeRegistry, useOutsideClick, usePanZoom, usePopover, useSidebar, useTabs, useToast, useTreeNav };
|
package/dist/index.d.ts
CHANGED
|
@@ -2062,6 +2062,17 @@ interface EditorProps {
|
|
|
2062
2062
|
defaultValue?: string;
|
|
2063
2063
|
onChange?: (value: string) => void;
|
|
2064
2064
|
outputFormat?: "html" | "markdown";
|
|
2065
|
+
/**
|
|
2066
|
+
* The format of the INCOMING `value` / `defaultValue`. Default `"auto"`
|
|
2067
|
+
* keeps the historical sniff (`detectFormat`) — but real-world markdown that
|
|
2068
|
+
* merely mentions HTML-ish snippets (`<code>`, `<table`, …) flips the sniff
|
|
2069
|
+
* to html and renders as a wall of text. Callers with a KNOWN format
|
|
2070
|
+
* (file-typed content, values previously emitted with
|
|
2071
|
+
* `outputFormat="markdown"`) should declare it; explicit values bypass the
|
|
2072
|
+
* sniff entirely — in edit mode AND view mode.
|
|
2073
|
+
* @default "auto"
|
|
2074
|
+
*/
|
|
2075
|
+
valueFormat?: "markdown" | "html" | "auto";
|
|
2065
2076
|
lineSpacing?: number;
|
|
2066
2077
|
placeholder?: string;
|
|
2067
2078
|
/**
|
|
@@ -2099,7 +2110,7 @@ declare namespace EditorContent {
|
|
|
2099
2110
|
var displayName: string;
|
|
2100
2111
|
}
|
|
2101
2112
|
|
|
2102
|
-
declare function EditorRoot({ children, className, value: controlledValue, defaultValue, onChange, outputFormat, lineSpacing, placeholder, mode: modeProp, extensions: instanceExtensions, unsafe, }: EditorProps): react.JSX.Element;
|
|
2113
|
+
declare function EditorRoot({ children, className, value: controlledValue, defaultValue, onChange, outputFormat, valueFormat, lineSpacing, placeholder, mode: modeProp, extensions: instanceExtensions, unsafe, }: EditorProps): react.JSX.Element;
|
|
2103
2114
|
declare const Editor: typeof EditorRoot & {
|
|
2104
2115
|
Toolbar: typeof EditorToolbar & {
|
|
2105
2116
|
Separator: typeof EditorToolbarSeparator;
|
|
@@ -2590,6 +2601,34 @@ declare function sanitizeHref(href: string | undefined | null): string | undefin
|
|
|
2590
2601
|
*/
|
|
2591
2602
|
declare function sanitizeHtml(html: string): string;
|
|
2592
2603
|
|
|
2604
|
+
/**
|
|
2605
|
+
* Resolve what kind of media a source is, from its MIME type (preferred) or its
|
|
2606
|
+
* URL — a file extension, or the type embedded in a `data:` URI.
|
|
2607
|
+
*
|
|
2608
|
+
* Shared by `<MediaViewer>` to pick the right per-type viewer, and exported so
|
|
2609
|
+
* downstream packages (e.g. fancy-code's file viewer) can make the same
|
|
2610
|
+
* text-vs-media decision without re-deriving the table.
|
|
2611
|
+
*/
|
|
2612
|
+
type MediaKind = "image" | "video" | "audio" | "pdf" | "unknown";
|
|
2613
|
+
interface ResolveMediaTypeInput {
|
|
2614
|
+
/** MIME type — preferred when known (e.g. `"image/png"`, `"video/mp4"`). */
|
|
2615
|
+
mime?: string | null;
|
|
2616
|
+
/**
|
|
2617
|
+
* Source URL — used to sniff the kind from a file extension, or from the type
|
|
2618
|
+
* embedded in a `data:` URI, when no `mime` is given. `http(s):` / `data:` /
|
|
2619
|
+
* `blob:` are all accepted (a bare `blob:` URL carries no type, so pass
|
|
2620
|
+
* `mime` alongside it).
|
|
2621
|
+
*/
|
|
2622
|
+
src?: string | null;
|
|
2623
|
+
}
|
|
2624
|
+
/**
|
|
2625
|
+
* Resolve a {@link MediaKind} from a MIME type and/or source URL. MIME wins
|
|
2626
|
+
* when it's conclusive; otherwise the `src` is sniffed (a `data:` URI's
|
|
2627
|
+
* embedded type first, then the file extension). Returns `"unknown"` when
|
|
2628
|
+
* nothing matches — callers treat that as "not previewable media" (e.g. text).
|
|
2629
|
+
*/
|
|
2630
|
+
declare function resolveMediaType({ mime, src }: ResolveMediaTypeInput): MediaKind;
|
|
2631
|
+
|
|
2593
2632
|
declare function useControllableState<T>(controlledValue: T | undefined, defaultValue: T, onChange?: (value: T) => void): [T, (value: T | ((prev: T) => T)) => void];
|
|
2594
2633
|
|
|
2595
2634
|
declare function useOutsideClick(ref: RefObject<HTMLElement | null>, handler: (event: MouseEvent | TouchEvent) => void, enabled?: boolean, ignoreRef?: RefObject<HTMLElement | null>): void;
|
|
@@ -3090,4 +3129,198 @@ interface MagicWandProps {
|
|
|
3090
3129
|
}
|
|
3091
3130
|
declare function MagicWand({ value, onValueChange, actions, appearance, autoHide, rows, placeholder, onAction, }: MagicWandProps): react.JSX.Element;
|
|
3092
3131
|
|
|
3093
|
-
|
|
3132
|
+
/** Pan offset (in container pixels) + zoom factor for an `<ImageViewer>`. */
|
|
3133
|
+
interface ImageViewerViewport {
|
|
3134
|
+
panX: number;
|
|
3135
|
+
panY: number;
|
|
3136
|
+
zoom: number;
|
|
3137
|
+
}
|
|
3138
|
+
interface ImageViewerProps {
|
|
3139
|
+
/** Image source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3140
|
+
src: string;
|
|
3141
|
+
/** Alt text for the image (also used as the download filename hint). */
|
|
3142
|
+
alt?: string;
|
|
3143
|
+
/**
|
|
3144
|
+
* How the image sits in its container at zoom 1. `"contain"` (default) fits
|
|
3145
|
+
* the whole image, `"cover"` fills and crops, `"none"` shows it at natural
|
|
3146
|
+
* size (pan to see the rest).
|
|
3147
|
+
*/
|
|
3148
|
+
fit?: "contain" | "cover" | "none";
|
|
3149
|
+
/** Allow Ctrl/⌘+wheel zoom and the zoom controls (default `true`). */
|
|
3150
|
+
zoomable?: boolean;
|
|
3151
|
+
/** Allow click-drag panning (default `true`). */
|
|
3152
|
+
pannable?: boolean;
|
|
3153
|
+
/** Show the floating zoom controls. Defaults to the value of `zoomable`. */
|
|
3154
|
+
controls?: boolean;
|
|
3155
|
+
/** Minimum zoom factor (default `0.25`). */
|
|
3156
|
+
minZoom?: number;
|
|
3157
|
+
/** Maximum zoom factor (default `8`). */
|
|
3158
|
+
maxZoom?: number;
|
|
3159
|
+
/**
|
|
3160
|
+
* Paint a checkerboard behind the image so transparency reads clearly
|
|
3161
|
+
* (default `true`). Set `false` for a flat themed surface.
|
|
3162
|
+
*/
|
|
3163
|
+
checkerboard?: boolean;
|
|
3164
|
+
/**
|
|
3165
|
+
* Controlled viewport (pan + zoom). Pair with `onViewportChange`. Omit for
|
|
3166
|
+
* uncontrolled internal state. Exposed so an agent can pan/zoom to point at
|
|
3167
|
+
* something via a bridge.
|
|
3168
|
+
*/
|
|
3169
|
+
viewport?: ImageViewerViewport;
|
|
3170
|
+
/** Initial viewport when uncontrolled. */
|
|
3171
|
+
defaultViewport?: ImageViewerViewport;
|
|
3172
|
+
/** Called whenever the viewport (pan/zoom) changes. */
|
|
3173
|
+
onViewportChange?: (viewport: ImageViewerViewport) => void;
|
|
3174
|
+
/** Fired when the image finishes loading. */
|
|
3175
|
+
onLoad?: () => void;
|
|
3176
|
+
/** Fired when the image fails to load. */
|
|
3177
|
+
onError?: () => void;
|
|
3178
|
+
/** Additional CSS classes for the viewport container. */
|
|
3179
|
+
className?: string;
|
|
3180
|
+
/** Inline styles for the viewport container (e.g. a fixed height). */
|
|
3181
|
+
style?: CSSProperties;
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
interface VideoViewerProps {
|
|
3185
|
+
/** Video source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3186
|
+
src: string;
|
|
3187
|
+
/** Poster image shown before playback. */
|
|
3188
|
+
poster?: string;
|
|
3189
|
+
/** Show native playback controls (default `true`). */
|
|
3190
|
+
controls?: boolean;
|
|
3191
|
+
/** Autoplay on mount (most browsers require `muted` too). */
|
|
3192
|
+
autoPlay?: boolean;
|
|
3193
|
+
/** Loop playback (default `false`). */
|
|
3194
|
+
loop?: boolean;
|
|
3195
|
+
/** Start muted (default `false`). */
|
|
3196
|
+
muted?: boolean;
|
|
3197
|
+
/** How the video fits its box: `"contain"` (default) or `"cover"`. */
|
|
3198
|
+
fit?: "contain" | "cover";
|
|
3199
|
+
/** Fired when the video fails to load. */
|
|
3200
|
+
onError?: () => void;
|
|
3201
|
+
/** Additional CSS classes for the container. */
|
|
3202
|
+
className?: string;
|
|
3203
|
+
/** Inline styles for the container (e.g. a fixed height). */
|
|
3204
|
+
style?: CSSProperties;
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
interface AudioViewerProps {
|
|
3208
|
+
/** Audio source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3209
|
+
src: string;
|
|
3210
|
+
/** Optional label shown above the player (e.g. the file name). */
|
|
3211
|
+
title?: string;
|
|
3212
|
+
/** Show native playback controls (default `true`). */
|
|
3213
|
+
controls?: boolean;
|
|
3214
|
+
/** Autoplay on mount. */
|
|
3215
|
+
autoPlay?: boolean;
|
|
3216
|
+
/** Loop playback (default `false`). */
|
|
3217
|
+
loop?: boolean;
|
|
3218
|
+
/** Fired when the audio fails to load. */
|
|
3219
|
+
onError?: () => void;
|
|
3220
|
+
/** Additional CSS classes for the card. */
|
|
3221
|
+
className?: string;
|
|
3222
|
+
/** Inline styles for the card. */
|
|
3223
|
+
style?: CSSProperties;
|
|
3224
|
+
}
|
|
3225
|
+
|
|
3226
|
+
interface PdfViewerProps {
|
|
3227
|
+
/** PDF source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3228
|
+
src: string;
|
|
3229
|
+
/** Accessible title for the embedded document (default `"PDF document"`). */
|
|
3230
|
+
title?: string;
|
|
3231
|
+
/** Additional CSS classes for the container. */
|
|
3232
|
+
className?: string;
|
|
3233
|
+
/** Inline styles for the container (e.g. a fixed height). */
|
|
3234
|
+
style?: CSSProperties;
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
interface MediaViewerProps {
|
|
3238
|
+
/** Media source — an `http(s):`, `data:`, or `blob:` URL. */
|
|
3239
|
+
src: string;
|
|
3240
|
+
/**
|
|
3241
|
+
* MIME type — preferred for picking the viewer. When omitted, the kind is
|
|
3242
|
+
* sniffed from `src` (extension or `data:` URI). Always pass `mime` with a
|
|
3243
|
+
* bare `blob:` URL, which carries no type of its own.
|
|
3244
|
+
*/
|
|
3245
|
+
mime?: string;
|
|
3246
|
+
/** Alt text / label, forwarded as image alt and audio/PDF title. */
|
|
3247
|
+
alt?: string;
|
|
3248
|
+
/** Force a specific viewer, bypassing detection. */
|
|
3249
|
+
kind?: MediaKind;
|
|
3250
|
+
/** Extra props for the underlying `<ImageViewer>`. */
|
|
3251
|
+
imageProps?: Partial<Omit<ImageViewerProps, "src" | "alt">>;
|
|
3252
|
+
/** Extra props for the underlying `<VideoViewer>`. */
|
|
3253
|
+
videoProps?: Partial<Omit<VideoViewerProps, "src">>;
|
|
3254
|
+
/** Extra props for the underlying `<AudioViewer>`. */
|
|
3255
|
+
audioProps?: Partial<Omit<AudioViewerProps, "src">>;
|
|
3256
|
+
/** Extra props for the underlying `<PdfViewer>`. */
|
|
3257
|
+
pdfProps?: Partial<Omit<PdfViewerProps, "src">>;
|
|
3258
|
+
/** Rendered for unknown / unpreviewable types (default: a download card). */
|
|
3259
|
+
fallback?: ReactNode;
|
|
3260
|
+
/** Fired when the chosen viewer reports a load error. */
|
|
3261
|
+
onError?: () => void;
|
|
3262
|
+
/** Additional CSS classes, forwarded to the chosen viewer. */
|
|
3263
|
+
className?: string;
|
|
3264
|
+
/** Inline styles, forwarded to the chosen viewer. */
|
|
3265
|
+
style?: CSSProperties;
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
/**
|
|
3269
|
+
* Renders the right viewer for a media file, picked from its `mime` (preferred)
|
|
3270
|
+
* or `src` — image, video, audio, or PDF — and a download fallback for anything
|
|
3271
|
+
* else. SVG renders through `<ImageViewer>`. The single entry point for showing
|
|
3272
|
+
* a file from a tree/workspace when you don't know its type ahead of time.
|
|
3273
|
+
*
|
|
3274
|
+
* ```tsx
|
|
3275
|
+
* <MediaViewer src={url} mime="image/png" alt="logo.png" style={{ height: 320 }} />
|
|
3276
|
+
* ```
|
|
3277
|
+
*/
|
|
3278
|
+
declare const MediaViewer: react.ForwardRefExoticComponent<MediaViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3279
|
+
|
|
3280
|
+
/**
|
|
3281
|
+
* A standalone image viewer: fits the image to its container, with optional
|
|
3282
|
+
* Ctrl/⌘+wheel zoom, click-drag panning, and a transparency checkerboard. Works
|
|
3283
|
+
* anywhere on its own and is also what `<MediaViewer>` renders for images.
|
|
3284
|
+
*
|
|
3285
|
+
* The pan/zoom viewport is controllable (`viewport` + `onViewportChange`) so an
|
|
3286
|
+
* agent bridge can drive it; it's uncontrolled by default.
|
|
3287
|
+
*
|
|
3288
|
+
* ```tsx
|
|
3289
|
+
* <ImageViewer src="/logo.png" alt="logo.png" style={{ height: 320 }} />
|
|
3290
|
+
* ```
|
|
3291
|
+
*/
|
|
3292
|
+
declare const ImageViewer: react.ForwardRefExoticComponent<ImageViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* A standalone video viewer — native controls, optional poster, fit-to-box, and
|
|
3296
|
+
* dark-aware framing. Renders for video sources inside `<MediaViewer>`.
|
|
3297
|
+
*
|
|
3298
|
+
* ```tsx
|
|
3299
|
+
* <VideoViewer src="/clip.mp4" poster="/clip.jpg" style={{ height: 360 }} />
|
|
3300
|
+
* ```
|
|
3301
|
+
*/
|
|
3302
|
+
declare const VideoViewer: react.ForwardRefExoticComponent<VideoViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* A standalone audio viewer — a themed card wrapping the native audio player,
|
|
3306
|
+
* with an optional title. Renders for audio sources inside `<MediaViewer>`.
|
|
3307
|
+
*
|
|
3308
|
+
* ```tsx
|
|
3309
|
+
* <AudioViewer src="/track.mp3" title="track.mp3" />
|
|
3310
|
+
* ```
|
|
3311
|
+
*/
|
|
3312
|
+
declare const AudioViewer: react.ForwardRefExoticComponent<AudioViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3313
|
+
|
|
3314
|
+
/**
|
|
3315
|
+
* A standalone PDF viewer — embeds the document via the browser's native PDF
|
|
3316
|
+
* plugin (`<object>`), falling back to an `<iframe>`, then to a download link.
|
|
3317
|
+
* Fills its container, so give it a height (a `min-h` floor is built in).
|
|
3318
|
+
* Renders for PDF sources inside `<MediaViewer>`.
|
|
3319
|
+
*
|
|
3320
|
+
* ```tsx
|
|
3321
|
+
* <PdfViewer src="/report.pdf" title="report.pdf" style={{ height: 600 }} />
|
|
3322
|
+
* ```
|
|
3323
|
+
*/
|
|
3324
|
+
declare const PdfViewer: react.ForwardRefExoticComponent<PdfViewerProps & react.RefAttributes<HTMLDivElement>>;
|
|
3325
|
+
|
|
3326
|
+
export { Accordion, type AccordionContentProps, type AccordionContextValue, type AccordionItemProps, type AccordionOrientation, AccordionPanel, AccordionPanelContent, type AccordionPanelContentProps, type AccordionPanelProps, AccordionPanelSection, type AccordionPanelSectionProps, AccordionPanelTrigger, type AccordionPanelTriggerProps, type AccordionProps, type AccordionTriggerProps, Action, type ActionColor, type ActionProps, type AffixPosition, AudioViewer, type AudioViewerProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, type AvatarProps, Badge, type BadgeProps, Brand, type BrandProps, Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsProps, Button, type ButtonColor, type ButtonProps, Calendar, type CalendarMode, type CalendarProps, Callout, type CalloutProps, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardProps, Carousel, type CarouselContextValue, type CarouselControlsProps, type CarouselPanelsProps, type CarouselProps, type CarouselSlideProps, type CarouselStepsProps, type CarouselVariant, Chart, type ChartAreaProps, type ChartBarData, type ChartBarProps, type ChartCommonProps, type ChartDonutData, type ChartDonutProps, type ChartHorizontalBarProps, type ChartLineProps, type ChartPieData, type ChartPieProps, type ChartSeries, type ChartSparklineProps, type ChartStackedBarProps, ChatDrawer, type ChatDrawerProps, type ChatDrawerTab, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type Color, ColorPicker, type ColorPickerProps, Command, type CommandContextValue, type CommandEmptyProps, type CommandGroupProps, type CommandInputProps, type CommandItemProps, type CommandListProps, type CommandProps, Composer, type ComposerProps, ContentRenderer, type ContentRendererProps, ContextMenu, type ContextMenuContentProps, type ContextMenuContextValue, type ContextMenuItemProps, type ContextMenuProps, type ContextMenuSeparatorProps, type ContextMenuTriggerProps, type ControlledAdapterHandle, DatePicker, type DatePickerProps, type DateRange, DisplayValue, type DisplayValueProps, type DropPosition, Dropdown, type DropdownContextValue, type DropdownItemProps, type DropdownItemsProps, type DropdownProps, type DropdownSeparatorProps, type DropdownTriggerProps, EMOJI_CATEGORY_ORDER, EMOJI_DATA, EMOJI_ENTRIES, Editor, type EditorAction, type EditorContentProps, type EditorContextValue, type EditorProps, type EditorToolbarProps, Emoji, type EmojiCategory, type EmojiCategoryKey, type EmojiEntry, type EmojiFlatEntry, type EmojiProps, EmojiSelect, type EmojiSelectProps, FauxClient, type FauxClientProps, Field, type FieldMode, FieldModeContext, type FieldModeContextValue, type FieldProps, FileUpload, type FileUploadContextValue, type FileUploadDropzoneProps, type FileUploadListProps, type FileUploadProps, Form, type FormProps, FormProvider, type FormProviderProps, Heading, type HeadingProps, Icon, type IconProps, type IconSet, ImageViewer, type ImageViewerProps, type ImageViewerViewport, Input, type InputAffixProps, type InputBaseProps, type InputOption, type InputOptionGroup, type InputProps, InputTag, type InputTagAdapter, type InputTagAdapterState, type InputTagProps, type InputTagTrigger, type InputTagTriggers, Kanban, type KanbanCardMoveHandler, type KanbanCardProps, type KanbanColumnHandleProps, type KanbanColumnMoveHandler, type KanbanColumnProps, type KanbanContextValue, type KanbanProps, MagicWand, type MagicWandAction, type MagicWandAppearance, type MagicWandProps, type MagicWandSelection, type MediaKind, MediaViewer, type MediaViewerProps, Menu, type MenuContextValue, type MenuGroupProps, type MenuItemProps, type MenuOrientation, type MenuProps, type MenuSubmenuProps, MobileMenu, type MobileMenuBottomBarProps, type MobileMenuContextValue, type MobileMenuFlyoutProps, type MobileMenuItemProps, type MobileMenuSide, type MobileMenuVariant, Modal, type ModalBodyProps, type ModalContextValue, type ModalFooterProps, type ModalHeaderProps, type ModalProps, MoodMeter, type MoodMeterProps, MultiSwitch, type MultiSwitchProps, Navbar, type NavbarBrandProps, type NavbarContextValue, type NavbarItemProps, type NavbarItemsProps, type NavbarProps, type NavbarToggleProps, type NodeRect, OtpInput, type OtpInputProps, Pagination, type PaginationProps, PdfViewer, type PdfViewerProps, Pillbox, type PillboxProps, type Placement, Popover, type PopoverContentProps, type PopoverContextValue, type PopoverProps, type PopoverTriggerProps, Portal, type PortalProps, Profile, type ProfileProps, Progress, type ProgressProps, type PromptAttachment, type PromptCmd, PromptInput, type PromptInputProps, type PromptMention, RadioGroup, type RadioGroupProps, ReasonTag, type ReasonTagProps, type ReasonTagSource, type ReasonTagTheme, type RenderExtension, type RenderExtensionProps, type ResolveMediaTypeInput, SKIN_TONES, type SectionRenderState, type SectionRenderable, Select, type SelectProps, Separator, type SeparatorProps, Sidebar, type SidebarCollapseMode, type SidebarContextValue, type SidebarGroupProps, type SidebarItemProps, type SidebarProps, type SidebarSubmenuProps, type SidebarToggleProps, type Size, Skeleton, type SkeletonProps, type SkinTone, Slider, type SliderProps, StickyNote, type StickyNoteColor, type StickyNoteProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableHeadProps, type TablePaginationProps, type TableProps, type TableRowProps, type TableRowTrayProps, type TableSearchProps, type TableTrayProps, Tabs, type TabsContextValue, type TabsListProps, type TabsPanelProps, type TabsPanelsProps, type TabsProps, type TabsTabProps, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, TimeGrid, type TimeGridProps, type TimeGridTone, TimePicker, type TimePickerProps, Timeline, type TimelineBlockProps, type TimelineEvent, type TimelineItemProps, type TimelineOrientation, type TimelineProps, type TimelineVariant, Toast, type ToastContextValue, type ToastData, type ToastPosition, type ToastProviderProps, type ToastVariant, Tooltip, type TooltipProps, TreeNav, type TreeNavContextValue, type TreeNavProps, type TreeNodeData, type TreeNodeProps, type Variant, VideoViewer, type VideoViewerProps, applyTone, cn, configureIcons, contentEditableAdapter, controlledAdapter, find, hasSkinTones, inputAdapter, registerExtension, registerExtensions, registerIconAddendum, registerIconSet, registerIcons, resolve, resolveMediaType, sanitizeHref, sanitizeHtml, search, skinTones, textareaAdapter, useAccordion, useAccordionPanel, useAccordionSection, useAnimation, useCarousel, useCommand, useContextMenu, useControllableState, useDropdown, useEditor, useEscapeKey, useFieldMode, useFileUpload, useFloatingPosition, useFocusTrap, useId, useKanban, useMenu, useMobileMenu, useModal, useNavbar, useNodeRegistry, useOutsideClick, usePanZoom, usePopover, useSidebar, useTabs, useToast, useTreeNav };
|