@min98/ui 1.3.55 → 1.3.57
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 +30 -19
- package/lib/index.cjs +7 -4
- package/lib/index.d.cts +185 -10
- package/lib/index.d.ts +185 -10
- package/lib/index.js +7 -4
- package/lib/styles.css +39 -0
- package/lib/tokens.css +61 -0
- package/package.json +18 -16
package/lib/index.d.cts
CHANGED
|
@@ -391,14 +391,19 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsibleP
|
|
|
391
391
|
|
|
392
392
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
393
393
|
children?: React$1.ReactNode;
|
|
394
|
-
} & React$1.HTMLAttributes<HTMLDivElement
|
|
394
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
395
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
396
|
+
} & {
|
|
397
|
+
asChild?: boolean;
|
|
398
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
395
399
|
label?: string;
|
|
396
400
|
shouldFilter?: boolean;
|
|
397
|
-
filter?: (value: string, search: string) => number;
|
|
401
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
398
402
|
defaultValue?: string;
|
|
399
403
|
value?: string;
|
|
400
404
|
onValueChange?: (value: string) => void;
|
|
401
405
|
loop?: boolean;
|
|
406
|
+
disablePointerSelection?: boolean;
|
|
402
407
|
vimBindings?: boolean;
|
|
403
408
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
404
409
|
interface CommandDialogProps extends DialogProps$2 {
|
|
@@ -411,32 +416,59 @@ declare const CommandDialog: {
|
|
|
411
416
|
({ title, description, children, className, showCloseButton, ...props }: CommandDialogProps): React$1.JSX.Element;
|
|
412
417
|
displayName: string;
|
|
413
418
|
};
|
|
414
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "
|
|
419
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
420
|
+
ref?: React$1.Ref<HTMLInputElement>;
|
|
421
|
+
} & {
|
|
422
|
+
asChild?: boolean;
|
|
423
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
415
424
|
value?: string;
|
|
416
425
|
onValueChange?: (search: string) => void;
|
|
417
426
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
418
427
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
419
428
|
children?: React$1.ReactNode;
|
|
420
|
-
} & React$1.
|
|
429
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
430
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
431
|
+
} & {
|
|
432
|
+
asChild?: boolean;
|
|
433
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
434
|
+
label?: string;
|
|
435
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
421
436
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
422
437
|
children?: React$1.ReactNode;
|
|
423
|
-
} & React$1.
|
|
438
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
439
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
440
|
+
} & {
|
|
441
|
+
asChild?: boolean;
|
|
442
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
424
443
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
425
444
|
children?: React$1.ReactNode;
|
|
426
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
445
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
446
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
447
|
+
} & {
|
|
448
|
+
asChild?: boolean;
|
|
449
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
427
450
|
heading?: React$1.ReactNode;
|
|
428
451
|
value?: string;
|
|
429
452
|
forceMount?: boolean;
|
|
430
453
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
431
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement
|
|
454
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
455
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
456
|
+
} & {
|
|
457
|
+
asChild?: boolean;
|
|
458
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
432
459
|
alwaysRender?: boolean;
|
|
433
460
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
434
461
|
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
435
462
|
children?: React$1.ReactNode;
|
|
436
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
463
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
464
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
465
|
+
} & {
|
|
466
|
+
asChild?: boolean;
|
|
467
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
|
|
437
468
|
disabled?: boolean;
|
|
438
469
|
onSelect?: (value: string) => void;
|
|
439
470
|
value?: string;
|
|
471
|
+
keywords?: string[];
|
|
440
472
|
forceMount?: boolean;
|
|
441
473
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
442
474
|
declare const CommandShortcut: {
|
|
@@ -1160,7 +1192,9 @@ declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.Sw
|
|
|
1160
1192
|
size?: "sm" | "default";
|
|
1161
1193
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1162
1194
|
|
|
1163
|
-
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> &
|
|
1195
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & {
|
|
1196
|
+
containerClassName?: string;
|
|
1197
|
+
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
1164
1198
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1165
1199
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1166
1200
|
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1750,4 +1784,145 @@ type StepNavButtonProps = {
|
|
|
1750
1784
|
declare const StepPrevious: React__default.ForwardRefExoticComponent<StepNavButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1751
1785
|
declare const StepNext: React__default.ForwardRefExoticComponent<StepNavButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1752
1786
|
|
|
1753
|
-
|
|
1787
|
+
declare const codeBlockVariants: (props?: ({
|
|
1788
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
1789
|
+
} & ClassProp) | undefined) => string;
|
|
1790
|
+
declare function CodeBlock({ className, variant, size, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof codeBlockVariants> & {
|
|
1791
|
+
size?: "default" | "sm";
|
|
1792
|
+
}): React$1.JSX.Element;
|
|
1793
|
+
declare function CodeBlockHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1794
|
+
declare function CodeBlockTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1795
|
+
declare function CodeBlockActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1796
|
+
declare function CodeBlockCopyButton({ value, variant, size, className, onClick, ...props }: React$1.ComponentProps<typeof Button> & {
|
|
1797
|
+
value: string;
|
|
1798
|
+
}): React$1.JSX.Element;
|
|
1799
|
+
declare function useHighlightedCode(value: string, language?: string): React$1.ReactNode[];
|
|
1800
|
+
declare function CodeBlockContent({ className, children, style, wrap, lineNumbers, startLine, language, highlight, ...props }: React$1.ComponentProps<"pre"> & {
|
|
1801
|
+
wrap?: boolean;
|
|
1802
|
+
lineNumbers?: boolean;
|
|
1803
|
+
startLine?: number;
|
|
1804
|
+
language?: string;
|
|
1805
|
+
highlight?: boolean;
|
|
1806
|
+
}): React$1.JSX.Element;
|
|
1807
|
+
declare const codeBlockLineVariants: (props?: ({
|
|
1808
|
+
variant?: "default" | "added" | "removed" | "highlighted" | null | undefined;
|
|
1809
|
+
} & ClassProp) | undefined) => string;
|
|
1810
|
+
declare function CodeBlockLine({ className, variant, children, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof codeBlockLineVariants>): React$1.JSX.Element;
|
|
1811
|
+
declare function CodeBlockFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1812
|
+
|
|
1813
|
+
declare function Trace({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1814
|
+
declare function TraceLine({ className, status, ...props }: React$1.ComponentProps<"span"> & {
|
|
1815
|
+
status?: "running" | "error" | "pending" | "completed";
|
|
1816
|
+
}): React$1.JSX.Element;
|
|
1817
|
+
declare function TraceIcon({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
1818
|
+
declare function TraceTitle({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
1819
|
+
declare function TraceDescription({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
1820
|
+
declare function TraceCollapsible({ className, ...props }: React$1.ComponentProps<typeof Collapsible>): React$1.JSX.Element;
|
|
1821
|
+
declare function TraceCollapsibleTrigger({ className, children, ...props }: React$1.ComponentProps<typeof CollapsibleTrigger>): React$1.JSX.Element;
|
|
1822
|
+
declare function TraceCollapsibleContent({ className, children, ...props }: React$1.ComponentProps<typeof CollapsibleContent>): React$1.JSX.Element;
|
|
1823
|
+
|
|
1824
|
+
interface MessageScrollerContextValue {
|
|
1825
|
+
viewportRef: React$1.RefObject<HTMLDivElement>;
|
|
1826
|
+
isAtEnd: boolean;
|
|
1827
|
+
isAtStart: boolean;
|
|
1828
|
+
isScrollable: boolean;
|
|
1829
|
+
setScrollMetrics: (metrics: {
|
|
1830
|
+
isAtEnd: boolean;
|
|
1831
|
+
isAtStart: boolean;
|
|
1832
|
+
isScrollable: boolean;
|
|
1833
|
+
}) => void;
|
|
1834
|
+
scrollToEnd: (behavior?: ScrollBehavior) => void;
|
|
1835
|
+
scrollToStart: (behavior?: ScrollBehavior) => void;
|
|
1836
|
+
scrollToMessage: (messageId: string, behavior?: ScrollBehavior) => void;
|
|
1837
|
+
}
|
|
1838
|
+
declare function useMessageScroller(): MessageScrollerContextValue;
|
|
1839
|
+
declare function useMessageScrollerScrollable(): boolean;
|
|
1840
|
+
declare function useMessageScrollerVisibility(direction?: "end" | "start"): boolean;
|
|
1841
|
+
declare function MessageScrollerProvider({ children, }: {
|
|
1842
|
+
children: React$1.ReactNode;
|
|
1843
|
+
}): React$1.JSX.Element;
|
|
1844
|
+
declare function MessageScroller({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1845
|
+
declare function MessageScrollerViewport({ className, children, onScroll, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1846
|
+
declare function MessageScrollerContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1847
|
+
declare function MessageScrollerItem({ className, messageId, scrollAnchor, ...props }: React$1.ComponentProps<"div"> & {
|
|
1848
|
+
messageId?: string;
|
|
1849
|
+
scrollAnchor?: boolean;
|
|
1850
|
+
}): React$1.JSX.Element;
|
|
1851
|
+
declare function MessageScrollerButton({ direction, className, children, variant, size, onClick, ...props }: Omit<ButtonProps, "children"> & {
|
|
1852
|
+
direction?: "end" | "start";
|
|
1853
|
+
children?: React$1.ReactNode;
|
|
1854
|
+
}): React$1.JSX.Element;
|
|
1855
|
+
|
|
1856
|
+
interface QuestionnaireChoiceOption {
|
|
1857
|
+
value: string;
|
|
1858
|
+
label: React$1.ReactNode;
|
|
1859
|
+
description?: React$1.ReactNode;
|
|
1860
|
+
disabled?: boolean;
|
|
1861
|
+
shortcut?: string;
|
|
1862
|
+
}
|
|
1863
|
+
interface QuestionnaireQuestionItem {
|
|
1864
|
+
name: string;
|
|
1865
|
+
prompt: React$1.ReactNode;
|
|
1866
|
+
description?: React$1.ReactNode;
|
|
1867
|
+
required?: boolean;
|
|
1868
|
+
multiple?: boolean;
|
|
1869
|
+
choices?: readonly QuestionnaireChoiceOption[];
|
|
1870
|
+
input?: {
|
|
1871
|
+
label?: string;
|
|
1872
|
+
placeholder?: string;
|
|
1873
|
+
};
|
|
1874
|
+
}
|
|
1875
|
+
interface StepMeta {
|
|
1876
|
+
name: string;
|
|
1877
|
+
required: boolean;
|
|
1878
|
+
multiple: boolean;
|
|
1879
|
+
}
|
|
1880
|
+
interface QuestionnaireContextValue {
|
|
1881
|
+
currentStep: number;
|
|
1882
|
+
totalSteps: number;
|
|
1883
|
+
steps: StepMeta[];
|
|
1884
|
+
values: Record<string, string | string[]>;
|
|
1885
|
+
customInputs: Record<string, string>;
|
|
1886
|
+
errors: Record<string, string>;
|
|
1887
|
+
setChoice: (name: string, value: string, multiple: boolean) => void;
|
|
1888
|
+
setCustomInput: (name: string, text: string) => void;
|
|
1889
|
+
nextStep: () => void;
|
|
1890
|
+
prevStep: () => void;
|
|
1891
|
+
skipStep: () => void;
|
|
1892
|
+
validateStep: (stepIndex: number) => boolean;
|
|
1893
|
+
}
|
|
1894
|
+
declare function useQuestionnaire(): QuestionnaireContextValue;
|
|
1895
|
+
declare function Questionnaire({ items, defaultStep, step: controlledStep, onStepChange, onValuesSubmit, onSubmit, className, children, ...props }: React$1.ComponentProps<"form"> & {
|
|
1896
|
+
items?: readonly QuestionnaireQuestionItem[];
|
|
1897
|
+
defaultStep?: number;
|
|
1898
|
+
step?: number;
|
|
1899
|
+
onStepChange?: (step: number) => void;
|
|
1900
|
+
onValuesSubmit?: (values: Record<string, string | string[]>) => void;
|
|
1901
|
+
}): React$1.JSX.Element;
|
|
1902
|
+
declare function QuestionnaireProgress({ className, children, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1903
|
+
declare function QuestionnaireItem({ name, required, multiple, className, children, ...props }: React$1.ComponentProps<"fieldset"> & {
|
|
1904
|
+
name: string;
|
|
1905
|
+
required?: boolean;
|
|
1906
|
+
multiple?: boolean;
|
|
1907
|
+
}): React$1.JSX.Element;
|
|
1908
|
+
declare namespace QuestionnaireItem {
|
|
1909
|
+
var displayName: string;
|
|
1910
|
+
}
|
|
1911
|
+
declare function QuestionnaireTitle({ className, ...props }: React$1.ComponentProps<"legend">): React$1.JSX.Element;
|
|
1912
|
+
declare function QuestionnaireDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
1913
|
+
declare function QuestionnaireChoices({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1914
|
+
declare function QuestionnaireChoice({ value, disabled, shortcut, children, className, ...props }: React$1.ComponentProps<"label"> & {
|
|
1915
|
+
value: string;
|
|
1916
|
+
disabled?: boolean;
|
|
1917
|
+
shortcut?: string;
|
|
1918
|
+
}): React$1.JSX.Element;
|
|
1919
|
+
declare function QuestionnaireChoiceDescription({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
1920
|
+
declare function QuestionnaireInput({ className, onChange, value, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
1921
|
+
declare function QuestionnaireError({ className, children, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element | null;
|
|
1922
|
+
declare function QuestionnaireActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1923
|
+
declare function QuestionnairePrevious({ children, className, size, variant, disabled, onClick, ...props }: React$1.ComponentProps<"button"> & Pick<ButtonProps, "size" | "variant">): React$1.JSX.Element;
|
|
1924
|
+
declare function QuestionnaireSkip({ children, className, size, variant, onClick, ...props }: React$1.ComponentProps<"button"> & Pick<ButtonProps, "size" | "variant">): React$1.JSX.Element | null;
|
|
1925
|
+
declare function QuestionnaireNext({ children, className, size, variant, onClick, ...props }: React$1.ComponentProps<"button"> & Pick<ButtonProps, "size" | "variant">): React$1.JSX.Element | null;
|
|
1926
|
+
declare function QuestionnaireSubmit({ children, className, size, variant, ...props }: React$1.ComponentProps<"button"> & Pick<ButtonProps, "size" | "variant">): React$1.JSX.Element | null;
|
|
1927
|
+
|
|
1928
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type Action, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppIcon, type AppIconProps, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BadgeCustom, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, BulkActionsBar, type BulkActionsBarProps, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Calendar, type CalendarProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselButton, type CarouselButtonProps, CarouselContent, CarouselControl, type CarouselControlProps, CarouselDots, type CarouselDotsProps, CarouselItem, CarouselNext, type CarouselNextProps, CarouselPrevious, CarouselSelect, type CarouselSelectProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CircularSlider, type CircularSliderProps, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, Col, type ColElement, type ColProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color, ComboBox, type ComboBoxProps, type ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, type ConfirmDialogProps, ConfirmModal, type ConfirmModalProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuCustom, type ContextMenuCustomProps, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTypeProps, DataTable, DataTableColumnHeader, type DataTableLabels, type DataTableProps, type DataTablePropsBase, type DataTableWithPagination, type DataTableWithoutPagination, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DateTimePicker, type DateTimePickerProps, Dialog, DialogClose, DialogContent, type DialogCustom, DialogDescription, DialogFooter, DialogHeader, DialogModal, type DialogModalProps, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, type Direction, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, type DropdownItem, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, type DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DualSlider, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, Flex, type FlexElement, type FlexProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Grid, type GridElement, type GridProps, type Hour, HourFormat, type HourFormatProps, HourWheel, type HourWheelProps, type Hours, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputForm, type InputFormProps, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Loader, type LoaderProps, Marker, MarkerContent, MarkerIcon, Menu, MenuButton, type MenuButtonProps, MenuItem, type MenuItemProps, type MenuProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, type Minute, MinuteWheel, type MinuteWheelProps, Modal, type ModalProps, ModernDataTable, MultiSelect, type MultiSelectOption, type MultiSelectProps, MultipleSelect, type MultipleSelectProps, NativeSelect, NativeSelectOptGroup, NativeSelectOption, type NativeSelectProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type Number, type OptionMultiSelect, type OptionSelect, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, type ProgressProps, Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, type QuestionnaireChoiceOption, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, type QuestionnaireQuestionItem, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, RadioGroup, RadioGroupItem, RenderContextMenuItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchableCombobox, type SearchableComboboxProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SettingPaginate, ButtonGroup as ShadcnButtonGroup, Sidebar as ShadcnSidebar, Sheet, SheetClose, SheetContent, SheetCustom, type SheetCustomProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, type Side, Sidebar$1 as Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, type SidebarProps, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type Size, Skeleton, Slider, Spinner, StepContainer, type StepContainerProps, type StepContainerRef, type StepContextType, StepList, type StepListProps, StepNav, type StepNavButtonProps, type StepNavProps, StepNext, StepPrevious, StepProgress, type StepProgressProps, StepTrigger, type StepTriggerProps, Stepper, type StepperChildProps, StepperContext, StepsContent, type StepsContentProps, SubMenu, type SubMenuProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, TimePicker, type TimePickerProps, TimePickerSelection, type TimePickerSelectionProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, type ToastCustomProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster$1 as Toaster, Toaster as ToasterSonner, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle, type VariantProps, alertVariants, attachmentMediaVariants, attachmentVariants, badgeVariants, bubbleContentVariants, bubbleReactionsVariants, bubbleVariants, buttonGroupVariants, buttonVariants, cn, codeBlockLineVariants, codeBlockVariants, colorVariants, createSelectionColumn, cva, dialogContentVariants, emptyMediaVariants, fieldVariants, generateArray, inputGroupAddonVariants, inputGroupButtonVariants, itemMediaVariants, itemVariants, labelVariants, markerVariants, navigationMenuTriggerStyle, sheetVariants, sidebarMenuButtonVariants, tabsListVariants, toast, toastVariants, toggleVariants, useCarousel, useDebounce, useDelay, useDirection, useFormField, useForwardedRef, useHighlightedCode, useIsMobile, useMediaQuery, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, usePagination, useQuestionnaire, useRepeat, useSidebar, useSkipper, useToast };
|
package/lib/index.d.ts
CHANGED
|
@@ -391,14 +391,19 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsibleP
|
|
|
391
391
|
|
|
392
392
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
393
393
|
children?: React$1.ReactNode;
|
|
394
|
-
} & React$1.HTMLAttributes<HTMLDivElement
|
|
394
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
395
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
396
|
+
} & {
|
|
397
|
+
asChild?: boolean;
|
|
398
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
395
399
|
label?: string;
|
|
396
400
|
shouldFilter?: boolean;
|
|
397
|
-
filter?: (value: string, search: string) => number;
|
|
401
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
398
402
|
defaultValue?: string;
|
|
399
403
|
value?: string;
|
|
400
404
|
onValueChange?: (value: string) => void;
|
|
401
405
|
loop?: boolean;
|
|
406
|
+
disablePointerSelection?: boolean;
|
|
402
407
|
vimBindings?: boolean;
|
|
403
408
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
404
409
|
interface CommandDialogProps extends DialogProps$2 {
|
|
@@ -411,32 +416,59 @@ declare const CommandDialog: {
|
|
|
411
416
|
({ title, description, children, className, showCloseButton, ...props }: CommandDialogProps): React$1.JSX.Element;
|
|
412
417
|
displayName: string;
|
|
413
418
|
};
|
|
414
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "
|
|
419
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
420
|
+
ref?: React$1.Ref<HTMLInputElement>;
|
|
421
|
+
} & {
|
|
422
|
+
asChild?: boolean;
|
|
423
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
415
424
|
value?: string;
|
|
416
425
|
onValueChange?: (search: string) => void;
|
|
417
426
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
418
427
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
419
428
|
children?: React$1.ReactNode;
|
|
420
|
-
} & React$1.
|
|
429
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
430
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
431
|
+
} & {
|
|
432
|
+
asChild?: boolean;
|
|
433
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
434
|
+
label?: string;
|
|
435
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
421
436
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
422
437
|
children?: React$1.ReactNode;
|
|
423
|
-
} & React$1.
|
|
438
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
439
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
440
|
+
} & {
|
|
441
|
+
asChild?: boolean;
|
|
442
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
424
443
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
425
444
|
children?: React$1.ReactNode;
|
|
426
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
445
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
446
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
447
|
+
} & {
|
|
448
|
+
asChild?: boolean;
|
|
449
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
427
450
|
heading?: React$1.ReactNode;
|
|
428
451
|
value?: string;
|
|
429
452
|
forceMount?: boolean;
|
|
430
453
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
431
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement
|
|
454
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
455
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
456
|
+
} & {
|
|
457
|
+
asChild?: boolean;
|
|
458
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
432
459
|
alwaysRender?: boolean;
|
|
433
460
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
434
461
|
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
435
462
|
children?: React$1.ReactNode;
|
|
436
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
463
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
464
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
465
|
+
} & {
|
|
466
|
+
asChild?: boolean;
|
|
467
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
|
|
437
468
|
disabled?: boolean;
|
|
438
469
|
onSelect?: (value: string) => void;
|
|
439
470
|
value?: string;
|
|
471
|
+
keywords?: string[];
|
|
440
472
|
forceMount?: boolean;
|
|
441
473
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
442
474
|
declare const CommandShortcut: {
|
|
@@ -1160,7 +1192,9 @@ declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.Sw
|
|
|
1160
1192
|
size?: "sm" | "default";
|
|
1161
1193
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1162
1194
|
|
|
1163
|
-
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> &
|
|
1195
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & {
|
|
1196
|
+
containerClassName?: string;
|
|
1197
|
+
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
1164
1198
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1165
1199
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1166
1200
|
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1750,4 +1784,145 @@ type StepNavButtonProps = {
|
|
|
1750
1784
|
declare const StepPrevious: React__default.ForwardRefExoticComponent<StepNavButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1751
1785
|
declare const StepNext: React__default.ForwardRefExoticComponent<StepNavButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1752
1786
|
|
|
1753
|
-
|
|
1787
|
+
declare const codeBlockVariants: (props?: ({
|
|
1788
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
1789
|
+
} & ClassProp) | undefined) => string;
|
|
1790
|
+
declare function CodeBlock({ className, variant, size, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof codeBlockVariants> & {
|
|
1791
|
+
size?: "default" | "sm";
|
|
1792
|
+
}): React$1.JSX.Element;
|
|
1793
|
+
declare function CodeBlockHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1794
|
+
declare function CodeBlockTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1795
|
+
declare function CodeBlockActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1796
|
+
declare function CodeBlockCopyButton({ value, variant, size, className, onClick, ...props }: React$1.ComponentProps<typeof Button> & {
|
|
1797
|
+
value: string;
|
|
1798
|
+
}): React$1.JSX.Element;
|
|
1799
|
+
declare function useHighlightedCode(value: string, language?: string): React$1.ReactNode[];
|
|
1800
|
+
declare function CodeBlockContent({ className, children, style, wrap, lineNumbers, startLine, language, highlight, ...props }: React$1.ComponentProps<"pre"> & {
|
|
1801
|
+
wrap?: boolean;
|
|
1802
|
+
lineNumbers?: boolean;
|
|
1803
|
+
startLine?: number;
|
|
1804
|
+
language?: string;
|
|
1805
|
+
highlight?: boolean;
|
|
1806
|
+
}): React$1.JSX.Element;
|
|
1807
|
+
declare const codeBlockLineVariants: (props?: ({
|
|
1808
|
+
variant?: "default" | "added" | "removed" | "highlighted" | null | undefined;
|
|
1809
|
+
} & ClassProp) | undefined) => string;
|
|
1810
|
+
declare function CodeBlockLine({ className, variant, children, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof codeBlockLineVariants>): React$1.JSX.Element;
|
|
1811
|
+
declare function CodeBlockFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1812
|
+
|
|
1813
|
+
declare function Trace({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1814
|
+
declare function TraceLine({ className, status, ...props }: React$1.ComponentProps<"span"> & {
|
|
1815
|
+
status?: "running" | "error" | "pending" | "completed";
|
|
1816
|
+
}): React$1.JSX.Element;
|
|
1817
|
+
declare function TraceIcon({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
1818
|
+
declare function TraceTitle({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
1819
|
+
declare function TraceDescription({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
1820
|
+
declare function TraceCollapsible({ className, ...props }: React$1.ComponentProps<typeof Collapsible>): React$1.JSX.Element;
|
|
1821
|
+
declare function TraceCollapsibleTrigger({ className, children, ...props }: React$1.ComponentProps<typeof CollapsibleTrigger>): React$1.JSX.Element;
|
|
1822
|
+
declare function TraceCollapsibleContent({ className, children, ...props }: React$1.ComponentProps<typeof CollapsibleContent>): React$1.JSX.Element;
|
|
1823
|
+
|
|
1824
|
+
interface MessageScrollerContextValue {
|
|
1825
|
+
viewportRef: React$1.RefObject<HTMLDivElement>;
|
|
1826
|
+
isAtEnd: boolean;
|
|
1827
|
+
isAtStart: boolean;
|
|
1828
|
+
isScrollable: boolean;
|
|
1829
|
+
setScrollMetrics: (metrics: {
|
|
1830
|
+
isAtEnd: boolean;
|
|
1831
|
+
isAtStart: boolean;
|
|
1832
|
+
isScrollable: boolean;
|
|
1833
|
+
}) => void;
|
|
1834
|
+
scrollToEnd: (behavior?: ScrollBehavior) => void;
|
|
1835
|
+
scrollToStart: (behavior?: ScrollBehavior) => void;
|
|
1836
|
+
scrollToMessage: (messageId: string, behavior?: ScrollBehavior) => void;
|
|
1837
|
+
}
|
|
1838
|
+
declare function useMessageScroller(): MessageScrollerContextValue;
|
|
1839
|
+
declare function useMessageScrollerScrollable(): boolean;
|
|
1840
|
+
declare function useMessageScrollerVisibility(direction?: "end" | "start"): boolean;
|
|
1841
|
+
declare function MessageScrollerProvider({ children, }: {
|
|
1842
|
+
children: React$1.ReactNode;
|
|
1843
|
+
}): React$1.JSX.Element;
|
|
1844
|
+
declare function MessageScroller({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1845
|
+
declare function MessageScrollerViewport({ className, children, onScroll, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1846
|
+
declare function MessageScrollerContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1847
|
+
declare function MessageScrollerItem({ className, messageId, scrollAnchor, ...props }: React$1.ComponentProps<"div"> & {
|
|
1848
|
+
messageId?: string;
|
|
1849
|
+
scrollAnchor?: boolean;
|
|
1850
|
+
}): React$1.JSX.Element;
|
|
1851
|
+
declare function MessageScrollerButton({ direction, className, children, variant, size, onClick, ...props }: Omit<ButtonProps, "children"> & {
|
|
1852
|
+
direction?: "end" | "start";
|
|
1853
|
+
children?: React$1.ReactNode;
|
|
1854
|
+
}): React$1.JSX.Element;
|
|
1855
|
+
|
|
1856
|
+
interface QuestionnaireChoiceOption {
|
|
1857
|
+
value: string;
|
|
1858
|
+
label: React$1.ReactNode;
|
|
1859
|
+
description?: React$1.ReactNode;
|
|
1860
|
+
disabled?: boolean;
|
|
1861
|
+
shortcut?: string;
|
|
1862
|
+
}
|
|
1863
|
+
interface QuestionnaireQuestionItem {
|
|
1864
|
+
name: string;
|
|
1865
|
+
prompt: React$1.ReactNode;
|
|
1866
|
+
description?: React$1.ReactNode;
|
|
1867
|
+
required?: boolean;
|
|
1868
|
+
multiple?: boolean;
|
|
1869
|
+
choices?: readonly QuestionnaireChoiceOption[];
|
|
1870
|
+
input?: {
|
|
1871
|
+
label?: string;
|
|
1872
|
+
placeholder?: string;
|
|
1873
|
+
};
|
|
1874
|
+
}
|
|
1875
|
+
interface StepMeta {
|
|
1876
|
+
name: string;
|
|
1877
|
+
required: boolean;
|
|
1878
|
+
multiple: boolean;
|
|
1879
|
+
}
|
|
1880
|
+
interface QuestionnaireContextValue {
|
|
1881
|
+
currentStep: number;
|
|
1882
|
+
totalSteps: number;
|
|
1883
|
+
steps: StepMeta[];
|
|
1884
|
+
values: Record<string, string | string[]>;
|
|
1885
|
+
customInputs: Record<string, string>;
|
|
1886
|
+
errors: Record<string, string>;
|
|
1887
|
+
setChoice: (name: string, value: string, multiple: boolean) => void;
|
|
1888
|
+
setCustomInput: (name: string, text: string) => void;
|
|
1889
|
+
nextStep: () => void;
|
|
1890
|
+
prevStep: () => void;
|
|
1891
|
+
skipStep: () => void;
|
|
1892
|
+
validateStep: (stepIndex: number) => boolean;
|
|
1893
|
+
}
|
|
1894
|
+
declare function useQuestionnaire(): QuestionnaireContextValue;
|
|
1895
|
+
declare function Questionnaire({ items, defaultStep, step: controlledStep, onStepChange, onValuesSubmit, onSubmit, className, children, ...props }: React$1.ComponentProps<"form"> & {
|
|
1896
|
+
items?: readonly QuestionnaireQuestionItem[];
|
|
1897
|
+
defaultStep?: number;
|
|
1898
|
+
step?: number;
|
|
1899
|
+
onStepChange?: (step: number) => void;
|
|
1900
|
+
onValuesSubmit?: (values: Record<string, string | string[]>) => void;
|
|
1901
|
+
}): React$1.JSX.Element;
|
|
1902
|
+
declare function QuestionnaireProgress({ className, children, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1903
|
+
declare function QuestionnaireItem({ name, required, multiple, className, children, ...props }: React$1.ComponentProps<"fieldset"> & {
|
|
1904
|
+
name: string;
|
|
1905
|
+
required?: boolean;
|
|
1906
|
+
multiple?: boolean;
|
|
1907
|
+
}): React$1.JSX.Element;
|
|
1908
|
+
declare namespace QuestionnaireItem {
|
|
1909
|
+
var displayName: string;
|
|
1910
|
+
}
|
|
1911
|
+
declare function QuestionnaireTitle({ className, ...props }: React$1.ComponentProps<"legend">): React$1.JSX.Element;
|
|
1912
|
+
declare function QuestionnaireDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
1913
|
+
declare function QuestionnaireChoices({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1914
|
+
declare function QuestionnaireChoice({ value, disabled, shortcut, children, className, ...props }: React$1.ComponentProps<"label"> & {
|
|
1915
|
+
value: string;
|
|
1916
|
+
disabled?: boolean;
|
|
1917
|
+
shortcut?: string;
|
|
1918
|
+
}): React$1.JSX.Element;
|
|
1919
|
+
declare function QuestionnaireChoiceDescription({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
1920
|
+
declare function QuestionnaireInput({ className, onChange, value, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
1921
|
+
declare function QuestionnaireError({ className, children, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element | null;
|
|
1922
|
+
declare function QuestionnaireActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
1923
|
+
declare function QuestionnairePrevious({ children, className, size, variant, disabled, onClick, ...props }: React$1.ComponentProps<"button"> & Pick<ButtonProps, "size" | "variant">): React$1.JSX.Element;
|
|
1924
|
+
declare function QuestionnaireSkip({ children, className, size, variant, onClick, ...props }: React$1.ComponentProps<"button"> & Pick<ButtonProps, "size" | "variant">): React$1.JSX.Element | null;
|
|
1925
|
+
declare function QuestionnaireNext({ children, className, size, variant, onClick, ...props }: React$1.ComponentProps<"button"> & Pick<ButtonProps, "size" | "variant">): React$1.JSX.Element | null;
|
|
1926
|
+
declare function QuestionnaireSubmit({ children, className, size, variant, ...props }: React$1.ComponentProps<"button"> & Pick<ButtonProps, "size" | "variant">): React$1.JSX.Element | null;
|
|
1927
|
+
|
|
1928
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type Action, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppIcon, type AppIconProps, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BadgeCustom, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, BulkActionsBar, type BulkActionsBarProps, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Calendar, type CalendarProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselButton, type CarouselButtonProps, CarouselContent, CarouselControl, type CarouselControlProps, CarouselDots, type CarouselDotsProps, CarouselItem, CarouselNext, type CarouselNextProps, CarouselPrevious, CarouselSelect, type CarouselSelectProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CircularSlider, type CircularSliderProps, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, Col, type ColElement, type ColProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color, ComboBox, type ComboBoxProps, type ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, type ConfirmDialogProps, ConfirmModal, type ConfirmModalProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuCustom, type ContextMenuCustomProps, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTypeProps, DataTable, DataTableColumnHeader, type DataTableLabels, type DataTableProps, type DataTablePropsBase, type DataTableWithPagination, type DataTableWithoutPagination, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DateTimePicker, type DateTimePickerProps, Dialog, DialogClose, DialogContent, type DialogCustom, DialogDescription, DialogFooter, DialogHeader, DialogModal, type DialogModalProps, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, type Direction, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, type DropdownItem, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, type DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DualSlider, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, Flex, type FlexElement, type FlexProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Grid, type GridElement, type GridProps, type Hour, HourFormat, type HourFormatProps, HourWheel, type HourWheelProps, type Hours, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputForm, type InputFormProps, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Loader, type LoaderProps, Marker, MarkerContent, MarkerIcon, Menu, MenuButton, type MenuButtonProps, MenuItem, type MenuItemProps, type MenuProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, type Minute, MinuteWheel, type MinuteWheelProps, Modal, type ModalProps, ModernDataTable, MultiSelect, type MultiSelectOption, type MultiSelectProps, MultipleSelect, type MultipleSelectProps, NativeSelect, NativeSelectOptGroup, NativeSelectOption, type NativeSelectProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type Number, type OptionMultiSelect, type OptionSelect, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, type ProgressProps, Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, type QuestionnaireChoiceOption, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, type QuestionnaireQuestionItem, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, RadioGroup, RadioGroupItem, RenderContextMenuItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchableCombobox, type SearchableComboboxProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SettingPaginate, ButtonGroup as ShadcnButtonGroup, Sidebar as ShadcnSidebar, Sheet, SheetClose, SheetContent, SheetCustom, type SheetCustomProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, type Side, Sidebar$1 as Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, type SidebarProps, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type Size, Skeleton, Slider, Spinner, StepContainer, type StepContainerProps, type StepContainerRef, type StepContextType, StepList, type StepListProps, StepNav, type StepNavButtonProps, type StepNavProps, StepNext, StepPrevious, StepProgress, type StepProgressProps, StepTrigger, type StepTriggerProps, Stepper, type StepperChildProps, StepperContext, StepsContent, type StepsContentProps, SubMenu, type SubMenuProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, TimePicker, type TimePickerProps, TimePickerSelection, type TimePickerSelectionProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, type ToastCustomProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster$1 as Toaster, Toaster as ToasterSonner, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle, type VariantProps, alertVariants, attachmentMediaVariants, attachmentVariants, badgeVariants, bubbleContentVariants, bubbleReactionsVariants, bubbleVariants, buttonGroupVariants, buttonVariants, cn, codeBlockLineVariants, codeBlockVariants, colorVariants, createSelectionColumn, cva, dialogContentVariants, emptyMediaVariants, fieldVariants, generateArray, inputGroupAddonVariants, inputGroupButtonVariants, itemMediaVariants, itemVariants, labelVariants, markerVariants, navigationMenuTriggerStyle, sheetVariants, sidebarMenuButtonVariants, tabsListVariants, toast, toastVariants, toggleVariants, useCarousel, useDebounce, useDelay, useDirection, useFormField, useForwardedRef, useHighlightedCode, useIsMobile, useMediaQuery, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, usePagination, useQuestionnaire, useRepeat, useSidebar, useSkipper, useToast };
|