@nextlyhq/ui 0.0.2-alpha.73 → 0.0.2-alpha.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2464,6 +2464,186 @@ interface ColorPickerProps<TValue = string> {
2464
2464
  * ```
2465
2465
  */
2466
2466
  export declare function ColorPicker<TValue = string>({ color, onColorChange, swatches, onSwatchSelect, recentColors, showAlpha, className }: ColorPickerProps<TValue>): React$1.JSX.Element;
2467
+ /**
2468
+ * One icon an icon source can draw.
2469
+ *
2470
+ * @experimental
2471
+ */
2472
+ interface IconSourceIcon {
2473
+ /** The id a field stores, `<set>:<name>`: `lucide:star`. */
2474
+ readonly id: string;
2475
+ /** Its name within its set: `star`, `circle-arrow-up`. */
2476
+ readonly name: string;
2477
+ /**
2478
+ * The SVG's inner markup, as a flat run of self-closing shape elements:
2479
+ * `path`, `circle`, `ellipse`, `line`, `polygon`, `polyline` and `rect`,
2480
+ * carrying only their geometry attributes and a `fill` of `none` or
2481
+ * `currentColor`.
2482
+ *
2483
+ * Never inserted as HTML. {@link IconGlyph} reads the markup into React
2484
+ * elements and draws a body of any other shape as nothing at all, so a body
2485
+ * holding a script, an event attribute or a nested element draws an empty
2486
+ * box rather than reaching the page.
2487
+ */
2488
+ readonly body: string;
2489
+ /** The box the body is drawn in: `0 0 24 24`. */
2490
+ readonly viewBox: string;
2491
+ /**
2492
+ * Drawn by its stroke in the text colour, as Lucide's icons are, rather than
2493
+ * by its fill. Stroked unless this is `false`.
2494
+ */
2495
+ readonly stroked?: boolean;
2496
+ /** The words the icon is found by in a search, shown beside it. */
2497
+ readonly tags?: readonly string[];
2498
+ }
2499
+ /**
2500
+ * Where an icon picker gets its icons: one icon set, searched and resolved.
2501
+ *
2502
+ * An interface rather than data, so this package carries no icons of its own.
2503
+ * The host supplies the set, typically by loading it on demand, and decides
2504
+ * how a search ranks its matches.
2505
+ *
2506
+ * @experimental
2507
+ */
2508
+ interface IconSource {
2509
+ /** The set prefix every id from this source carries: `lucide`. */
2510
+ readonly prefix: string;
2511
+ /** The set's name as a person reads it: `Lucide`. */
2512
+ readonly label: string;
2513
+ /**
2514
+ * The icons matching a query, best match first. An empty query lists the
2515
+ * whole set, in the order a person should browse it.
2516
+ */
2517
+ search(query: string): Promise<readonly IconSourceIcon[]>;
2518
+ /**
2519
+ * One icon by id, or `null` when the set does not draw it. An id the set has
2520
+ * since renamed resolves to the icon it now is.
2521
+ */
2522
+ resolve(id: string): Promise<IconSourceIcon | null>;
2523
+ }
2524
+ /**
2525
+ * Props for IconGlyph.
2526
+ *
2527
+ * @experimental
2528
+ */
2529
+ interface IconGlyphProps extends Omit<React$1.SVGProps<SVGSVGElement>, "children" | "viewBox" | "dangerouslySetInnerHTML"> {
2530
+ /** The icon to draw. Only its body, box and stroke are read. */
2531
+ icon: Pick<IconSourceIcon, "body" | "viewBox" | "stroked">;
2532
+ }
2533
+ /**
2534
+ * An icon from an {@link IconSource}, drawn as an inline SVG in the text
2535
+ * colour.
2536
+ *
2537
+ * Decorative by default (`aria-hidden`): the control around it names the
2538
+ * icon. The body is read into React elements rather than inserted as markup,
2539
+ * and a body that is not a run of plain shapes draws an empty box.
2540
+ *
2541
+ * @experimental
2542
+ */
2543
+ export declare function IconGlyph({ icon, className, ...props }: IconGlyphProps): React$1.JSX.Element;
2544
+ /**
2545
+ * An icon's name as a person reads it: `circle-arrow-up` is
2546
+ * `Circle arrow up`.
2547
+ */
2548
+ declare function iconDisplayName(name: string): string;
2549
+ /**
2550
+ * Props for IconPicker.
2551
+ *
2552
+ * @experimental
2553
+ */
2554
+ interface IconPickerProps {
2555
+ /**
2556
+ * Loads the icon source. Called once per function and shared by every
2557
+ * picker and field given the same one, so pass a stable function rather
2558
+ * than one created on each render.
2559
+ */
2560
+ loadIcons: () => Promise<IconSource>;
2561
+ /**
2562
+ * The id currently chosen, marked in the grid and scrolled to on open. An
2563
+ * id the set has since renamed is marked as the icon it resolves to.
2564
+ */
2565
+ value?: string | null;
2566
+ /** An icon was chosen, by click or by Enter. */
2567
+ onChoose: (icon: IconSourceIcon) => void;
2568
+ /**
2569
+ * The ids of the icons this person used last, newest first, offered as a
2570
+ * "Recent" row above the whole set while the search is empty. Kept by the
2571
+ * host, never by the picker, which writes no storage: the host knows who is
2572
+ * signed in, and remembers per person.
2573
+ */
2574
+ recentIcons?: readonly string[];
2575
+ className?: string;
2576
+ }
2577
+ /**
2578
+ * A search-first icon picker: a search box over a grid of the matching icons,
2579
+ * and the highlighted icon's name and tags beneath.
2580
+ *
2581
+ * The search box keeps focus throughout, as a combobox. The arrow keys move a
2582
+ * highlight through the grid (left and right by one icon, up and down by a
2583
+ * row), Page Up and Page Down by several rows, and Enter chooses the
2584
+ * highlighted icon; the first match is highlighted as soon as results arrive,
2585
+ * so typing and pressing Enter chooses the best match. The grid is a listbox
2586
+ * that renders only the rows in view, which is what keeps a set of nearly two
2587
+ * thousand icons quick to open. How many icons match is announced politely.
2588
+ *
2589
+ * @experimental
2590
+ */
2591
+ export declare function IconPicker({ loadIcons, value, onChoose, recentIcons, className }: IconPickerProps): React$1.JSX.Element;
2592
+ /**
2593
+ * Props for IconField.
2594
+ *
2595
+ * @experimental
2596
+ */
2597
+ interface IconFieldProps {
2598
+ /** The stored icon id, `lucide:star`, or nothing. */
2599
+ value: string | null | undefined;
2600
+ /** An icon was chosen (its id), or the field was cleared (`null`). */
2601
+ onChange: (id: string | null) => void;
2602
+ /** Loads the icon source; see {@link IconPickerProps.loadIcons}. */
2603
+ loadIcons: () => Promise<IconSource>;
2604
+ /**
2605
+ * The icons this person used last, newest first, for the picker's Recent
2606
+ * row; see {@link IconPickerProps.recentIcons}. The host records a choice
2607
+ * from `onChange`.
2608
+ */
2609
+ recentIcons?: readonly string[];
2610
+ /**
2611
+ * The field's label as a person reads it. It opens the button's accessible
2612
+ * name, which goes on to say the chosen icon: `Icon: Truck`.
2613
+ */
2614
+ label?: string;
2615
+ /** The id of the button that opens the picker, for a `<label for>`. */
2616
+ id?: string;
2617
+ disabled?: boolean;
2618
+ /** Shows the value and its warning, but offers neither picker nor clear. */
2619
+ readOnly?: boolean;
2620
+ /** Marks the button invalid, for a form that rejected the value. */
2621
+ invalid?: boolean;
2622
+ /** Describes the button, for a hint or an error beside the field. */
2623
+ "aria-describedby"?: string;
2624
+ /**
2625
+ * The field was left: focus moved from its buttons to somewhere outside
2626
+ * them, the picker closed, or the value was cleared.
2627
+ */
2628
+ onBlur?: () => void;
2629
+ /**
2630
+ * The button that opens the picker, for a form that focuses a field it
2631
+ * rejected or is asked to focus.
2632
+ */
2633
+ ref?: React$1.Ref<HTMLButtonElement>;
2634
+ className?: string;
2635
+ }
2636
+ /**
2637
+ * A field holding one icon: a button showing the chosen icon, its name and
2638
+ * its set, which opens an {@link IconPicker}, and a button that clears it.
2639
+ *
2640
+ * An id the source no longer draws is shown by its name with a warning, and
2641
+ * kept until someone chooses another: the field never rewrites a stored value
2642
+ * on its own. Escape closes the picker and returns focus to the button.
2643
+ *
2644
+ * @experimental
2645
+ */
2646
+ export declare function IconField({ value, onChange, loadIcons, label, id, disabled, readOnly, invalid, "aria-describedby": describedBy, onBlur, recentIcons, ref, className }: IconFieldProps): React$1.JSX.Element;
2467
2647
  /** @experimental */
2468
2648
  interface PaginationMeta {
2469
2649
  total: number;
@@ -2641,6 +2821,17 @@ interface TreeNode {
2641
2821
  /** Skipped by every keyboard move and not selectable. */
2642
2822
  disabled?: boolean;
2643
2823
  }
2824
+ /**
2825
+ * How far each level of the tree is indented, in pixels.
2826
+ *
2827
+ * Exported because a consumer that lets rows be dragged to a depth has to step
2828
+ * by the same distance the rows are drawn at: an editor reading a pointer's x
2829
+ * as a depth draws its drop line where a row at that depth would start, and
2830
+ * two separate numbers would put the line a level away from the hand.
2831
+ *
2832
+ * @experimental
2833
+ */
2834
+ export declare const TREE_INDENT_PX = 20;
2644
2835
  /**
2645
2836
  * Which gesture a row's modifiers meant.
2646
2837
  *
@@ -3345,5 +3536,5 @@ interface PageHeaderProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
3345
3536
  * @experimental
3346
3537
  */
3347
3538
  export declare const PageHeader: ForwardRefExoticComponent<PropsWithoutRef<PageHeaderProps> & RefAttributes<HTMLElement>>;
3348
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, type ActiveShortcut, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BleedProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerProps, type ColorSwatch, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FieldShellProps, type FieldShellRenderProps, type FieldWidth, type FilterInfo, type FormActionsProps, type FormLabelWithTooltipProps, type FormSectionProps, type GridProps, Input, type InputProps, type KeyChord, type KeySequence, Label, type ListResponse, type ModifierState, type PageHeaderProps, type PageShellProps, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, type ShortcutBinding, type ShortcutLayerOptions, type ShortcutManager, type ShortcutManagerOptions, type ShortcutProviderProps, type ShortcutRegistration, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderThumbProps, type SortInfo, Spinner, type SpinnerProps, type StackProps, type StatProps, Switch, Table, TableBody, TableCaption, TableCell, type TableEmptyProps, type TableErrorProps, TableFooter, TableHead, TableHeader, type TableParams, TableRow, type TableSearchProps, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type ToasterProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TreeNode, TreeView, type TreeViewProps, type UseShortcutsOptions, alertVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, selectTriggerVariants, sheetVariants, spinnerVariants, toast, usePortalContainer };
3539
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, type ActiveShortcut, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BleedProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerProps, type ColorSwatch, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FieldShellProps, type FieldShellRenderProps, type FieldWidth, type FilterInfo, type FormActionsProps, type FormLabelWithTooltipProps, type FormSectionProps, type GridProps, type IconFieldProps, type IconGlyphProps, type IconPickerProps, type IconSource, type IconSourceIcon, Input, type InputProps, type KeyChord, type KeySequence, Label, type ListResponse, type ModifierState, type PageHeaderProps, type PageShellProps, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, type ShortcutBinding, type ShortcutLayerOptions, type ShortcutManager, type ShortcutManagerOptions, type ShortcutProviderProps, type ShortcutRegistration, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderThumbProps, type SortInfo, Spinner, type SpinnerProps, type StackProps, type StatProps, Switch, Table, TableBody, TableCaption, TableCell, type TableEmptyProps, type TableErrorProps, TableFooter, TableHead, TableHeader, type TableParams, TableRow, type TableSearchProps, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type ToasterProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TreeNode, TreeView, type TreeViewProps, type UseShortcutsOptions, alertVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, selectTriggerVariants, sheetVariants, spinnerVariants, toast, usePortalContainer };
3349
3540
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -2464,6 +2464,186 @@ interface ColorPickerProps<TValue = string> {
2464
2464
  * ```
2465
2465
  */
2466
2466
  export declare function ColorPicker<TValue = string>({ color, onColorChange, swatches, onSwatchSelect, recentColors, showAlpha, className }: ColorPickerProps<TValue>): React$1.JSX.Element;
2467
+ /**
2468
+ * One icon an icon source can draw.
2469
+ *
2470
+ * @experimental
2471
+ */
2472
+ interface IconSourceIcon {
2473
+ /** The id a field stores, `<set>:<name>`: `lucide:star`. */
2474
+ readonly id: string;
2475
+ /** Its name within its set: `star`, `circle-arrow-up`. */
2476
+ readonly name: string;
2477
+ /**
2478
+ * The SVG's inner markup, as a flat run of self-closing shape elements:
2479
+ * `path`, `circle`, `ellipse`, `line`, `polygon`, `polyline` and `rect`,
2480
+ * carrying only their geometry attributes and a `fill` of `none` or
2481
+ * `currentColor`.
2482
+ *
2483
+ * Never inserted as HTML. {@link IconGlyph} reads the markup into React
2484
+ * elements and draws a body of any other shape as nothing at all, so a body
2485
+ * holding a script, an event attribute or a nested element draws an empty
2486
+ * box rather than reaching the page.
2487
+ */
2488
+ readonly body: string;
2489
+ /** The box the body is drawn in: `0 0 24 24`. */
2490
+ readonly viewBox: string;
2491
+ /**
2492
+ * Drawn by its stroke in the text colour, as Lucide's icons are, rather than
2493
+ * by its fill. Stroked unless this is `false`.
2494
+ */
2495
+ readonly stroked?: boolean;
2496
+ /** The words the icon is found by in a search, shown beside it. */
2497
+ readonly tags?: readonly string[];
2498
+ }
2499
+ /**
2500
+ * Where an icon picker gets its icons: one icon set, searched and resolved.
2501
+ *
2502
+ * An interface rather than data, so this package carries no icons of its own.
2503
+ * The host supplies the set, typically by loading it on demand, and decides
2504
+ * how a search ranks its matches.
2505
+ *
2506
+ * @experimental
2507
+ */
2508
+ interface IconSource {
2509
+ /** The set prefix every id from this source carries: `lucide`. */
2510
+ readonly prefix: string;
2511
+ /** The set's name as a person reads it: `Lucide`. */
2512
+ readonly label: string;
2513
+ /**
2514
+ * The icons matching a query, best match first. An empty query lists the
2515
+ * whole set, in the order a person should browse it.
2516
+ */
2517
+ search(query: string): Promise<readonly IconSourceIcon[]>;
2518
+ /**
2519
+ * One icon by id, or `null` when the set does not draw it. An id the set has
2520
+ * since renamed resolves to the icon it now is.
2521
+ */
2522
+ resolve(id: string): Promise<IconSourceIcon | null>;
2523
+ }
2524
+ /**
2525
+ * Props for IconGlyph.
2526
+ *
2527
+ * @experimental
2528
+ */
2529
+ interface IconGlyphProps extends Omit<React$1.SVGProps<SVGSVGElement>, "children" | "viewBox" | "dangerouslySetInnerHTML"> {
2530
+ /** The icon to draw. Only its body, box and stroke are read. */
2531
+ icon: Pick<IconSourceIcon, "body" | "viewBox" | "stroked">;
2532
+ }
2533
+ /**
2534
+ * An icon from an {@link IconSource}, drawn as an inline SVG in the text
2535
+ * colour.
2536
+ *
2537
+ * Decorative by default (`aria-hidden`): the control around it names the
2538
+ * icon. The body is read into React elements rather than inserted as markup,
2539
+ * and a body that is not a run of plain shapes draws an empty box.
2540
+ *
2541
+ * @experimental
2542
+ */
2543
+ export declare function IconGlyph({ icon, className, ...props }: IconGlyphProps): React$1.JSX.Element;
2544
+ /**
2545
+ * An icon's name as a person reads it: `circle-arrow-up` is
2546
+ * `Circle arrow up`.
2547
+ */
2548
+ declare function iconDisplayName(name: string): string;
2549
+ /**
2550
+ * Props for IconPicker.
2551
+ *
2552
+ * @experimental
2553
+ */
2554
+ interface IconPickerProps {
2555
+ /**
2556
+ * Loads the icon source. Called once per function and shared by every
2557
+ * picker and field given the same one, so pass a stable function rather
2558
+ * than one created on each render.
2559
+ */
2560
+ loadIcons: () => Promise<IconSource>;
2561
+ /**
2562
+ * The id currently chosen, marked in the grid and scrolled to on open. An
2563
+ * id the set has since renamed is marked as the icon it resolves to.
2564
+ */
2565
+ value?: string | null;
2566
+ /** An icon was chosen, by click or by Enter. */
2567
+ onChoose: (icon: IconSourceIcon) => void;
2568
+ /**
2569
+ * The ids of the icons this person used last, newest first, offered as a
2570
+ * "Recent" row above the whole set while the search is empty. Kept by the
2571
+ * host, never by the picker, which writes no storage: the host knows who is
2572
+ * signed in, and remembers per person.
2573
+ */
2574
+ recentIcons?: readonly string[];
2575
+ className?: string;
2576
+ }
2577
+ /**
2578
+ * A search-first icon picker: a search box over a grid of the matching icons,
2579
+ * and the highlighted icon's name and tags beneath.
2580
+ *
2581
+ * The search box keeps focus throughout, as a combobox. The arrow keys move a
2582
+ * highlight through the grid (left and right by one icon, up and down by a
2583
+ * row), Page Up and Page Down by several rows, and Enter chooses the
2584
+ * highlighted icon; the first match is highlighted as soon as results arrive,
2585
+ * so typing and pressing Enter chooses the best match. The grid is a listbox
2586
+ * that renders only the rows in view, which is what keeps a set of nearly two
2587
+ * thousand icons quick to open. How many icons match is announced politely.
2588
+ *
2589
+ * @experimental
2590
+ */
2591
+ export declare function IconPicker({ loadIcons, value, onChoose, recentIcons, className }: IconPickerProps): React$1.JSX.Element;
2592
+ /**
2593
+ * Props for IconField.
2594
+ *
2595
+ * @experimental
2596
+ */
2597
+ interface IconFieldProps {
2598
+ /** The stored icon id, `lucide:star`, or nothing. */
2599
+ value: string | null | undefined;
2600
+ /** An icon was chosen (its id), or the field was cleared (`null`). */
2601
+ onChange: (id: string | null) => void;
2602
+ /** Loads the icon source; see {@link IconPickerProps.loadIcons}. */
2603
+ loadIcons: () => Promise<IconSource>;
2604
+ /**
2605
+ * The icons this person used last, newest first, for the picker's Recent
2606
+ * row; see {@link IconPickerProps.recentIcons}. The host records a choice
2607
+ * from `onChange`.
2608
+ */
2609
+ recentIcons?: readonly string[];
2610
+ /**
2611
+ * The field's label as a person reads it. It opens the button's accessible
2612
+ * name, which goes on to say the chosen icon: `Icon: Truck`.
2613
+ */
2614
+ label?: string;
2615
+ /** The id of the button that opens the picker, for a `<label for>`. */
2616
+ id?: string;
2617
+ disabled?: boolean;
2618
+ /** Shows the value and its warning, but offers neither picker nor clear. */
2619
+ readOnly?: boolean;
2620
+ /** Marks the button invalid, for a form that rejected the value. */
2621
+ invalid?: boolean;
2622
+ /** Describes the button, for a hint or an error beside the field. */
2623
+ "aria-describedby"?: string;
2624
+ /**
2625
+ * The field was left: focus moved from its buttons to somewhere outside
2626
+ * them, the picker closed, or the value was cleared.
2627
+ */
2628
+ onBlur?: () => void;
2629
+ /**
2630
+ * The button that opens the picker, for a form that focuses a field it
2631
+ * rejected or is asked to focus.
2632
+ */
2633
+ ref?: React$1.Ref<HTMLButtonElement>;
2634
+ className?: string;
2635
+ }
2636
+ /**
2637
+ * A field holding one icon: a button showing the chosen icon, its name and
2638
+ * its set, which opens an {@link IconPicker}, and a button that clears it.
2639
+ *
2640
+ * An id the source no longer draws is shown by its name with a warning, and
2641
+ * kept until someone chooses another: the field never rewrites a stored value
2642
+ * on its own. Escape closes the picker and returns focus to the button.
2643
+ *
2644
+ * @experimental
2645
+ */
2646
+ export declare function IconField({ value, onChange, loadIcons, label, id, disabled, readOnly, invalid, "aria-describedby": describedBy, onBlur, recentIcons, ref, className }: IconFieldProps): React$1.JSX.Element;
2467
2647
  /** @experimental */
2468
2648
  interface PaginationMeta {
2469
2649
  total: number;
@@ -2641,6 +2821,17 @@ interface TreeNode {
2641
2821
  /** Skipped by every keyboard move and not selectable. */
2642
2822
  disabled?: boolean;
2643
2823
  }
2824
+ /**
2825
+ * How far each level of the tree is indented, in pixels.
2826
+ *
2827
+ * Exported because a consumer that lets rows be dragged to a depth has to step
2828
+ * by the same distance the rows are drawn at: an editor reading a pointer's x
2829
+ * as a depth draws its drop line where a row at that depth would start, and
2830
+ * two separate numbers would put the line a level away from the hand.
2831
+ *
2832
+ * @experimental
2833
+ */
2834
+ export declare const TREE_INDENT_PX = 20;
2644
2835
  /**
2645
2836
  * Which gesture a row's modifiers meant.
2646
2837
  *
@@ -3345,5 +3536,5 @@ interface PageHeaderProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
3345
3536
  * @experimental
3346
3537
  */
3347
3538
  export declare const PageHeader: ForwardRefExoticComponent<PropsWithoutRef<PageHeaderProps> & RefAttributes<HTMLElement>>;
3348
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, type ActiveShortcut, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BleedProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerProps, type ColorSwatch, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FieldShellProps, type FieldShellRenderProps, type FieldWidth, type FilterInfo, type FormActionsProps, type FormLabelWithTooltipProps, type FormSectionProps, type GridProps, Input, type InputProps, type KeyChord, type KeySequence, Label, type ListResponse, type ModifierState, type PageHeaderProps, type PageShellProps, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, type ShortcutBinding, type ShortcutLayerOptions, type ShortcutManager, type ShortcutManagerOptions, type ShortcutProviderProps, type ShortcutRegistration, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderThumbProps, type SortInfo, Spinner, type SpinnerProps, type StackProps, type StatProps, Switch, Table, TableBody, TableCaption, TableCell, type TableEmptyProps, type TableErrorProps, TableFooter, TableHead, TableHeader, type TableParams, TableRow, type TableSearchProps, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type ToasterProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TreeNode, TreeView, type TreeViewProps, type UseShortcutsOptions, alertVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, selectTriggerVariants, sheetVariants, spinnerVariants, toast, usePortalContainer };
3539
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, type ActiveShortcut, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BleedProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerProps, type ColorSwatch, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FieldShellProps, type FieldShellRenderProps, type FieldWidth, type FilterInfo, type FormActionsProps, type FormLabelWithTooltipProps, type FormSectionProps, type GridProps, type IconFieldProps, type IconGlyphProps, type IconPickerProps, type IconSource, type IconSourceIcon, Input, type InputProps, type KeyChord, type KeySequence, Label, type ListResponse, type ModifierState, type PageHeaderProps, type PageShellProps, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, type ShortcutBinding, type ShortcutLayerOptions, type ShortcutManager, type ShortcutManagerOptions, type ShortcutProviderProps, type ShortcutRegistration, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderThumbProps, type SortInfo, Spinner, type SpinnerProps, type StackProps, type StatProps, Switch, Table, TableBody, TableCaption, TableCell, type TableEmptyProps, type TableErrorProps, TableFooter, TableHead, TableHeader, type TableParams, TableRow, type TableSearchProps, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type ToasterProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TreeNode, TreeView, type TreeViewProps, type UseShortcutsOptions, alertVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, selectTriggerVariants, sheetVariants, spinnerVariants, toast, usePortalContainer };
3349
3540
  //# sourceMappingURL=index.d.ts.map