rockin 0.0.41 → 0.0.43

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.
@@ -1,6 +1,6 @@
1
1
  import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ComponentProps, ReactNode, HTMLAttributes } from 'react';
3
+ import React__default, { ComponentProps, ReactNode, CSSProperties, HTMLAttributes } from 'react';
4
4
  import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
6
  import { Button as Button$1 } from '@base-ui/react/button';
@@ -28,11 +28,21 @@ import { DialogTrigger as DialogTrigger$1, DialogContent as DialogContent$1, Dia
28
28
  import { DrawerProps, DrawerSide, DrawerController } from '@ui-sdk/react/drawer';
29
29
  import { Menu } from '@base-ui/react/menu';
30
30
  import { motion, MotionProps, Variants } from 'motion/react';
31
- import { ImageProps as ImageProps$1 } from 'next/image';
31
+ import * as _ui_sdk_react_primitive from '@ui-sdk/react/primitive';
32
+ import { PartProps, RenderProp } from '@ui-sdk/react/primitive';
33
+ import * as _ui_sdk_core_renderer from '@ui-sdk/core/renderer';
34
+ import * as _ui_sdk_core from '@ui-sdk/core';
35
+ import { OptionsOf, StateOf, SlotName, PropsOf } from '@ui-sdk/core';
36
+ import * as _ui_sdk_core_avatar from '@ui-sdk/core/avatar';
37
+ import { AvatarState } from '@ui-sdk/core/avatar';
32
38
  import { OTPInput as OTPInput$1 } from 'input-otp';
33
39
  export { REGEXP_ONLY_DIGITS } from 'input-otp';
34
40
  import { JellyBlobMood, JellyBlobMascotProps } from 'feral-blob';
35
41
  export { BlobSpeech, BlobSpeechProps, JellyBlobEyeStyle, JellyBlobMascot, JellyBlobMascotDemo, JellyBlobMascotProps, JellyBlobMood } from 'feral-blob';
42
+ import { Live, Direct } from './live.js';
43
+ import { Unneeded } from './roles.js';
44
+ import { Selects } from './selects.js';
45
+ import { Store } from './store.js';
36
46
  import { MessageScroller as MessageScroller$1 } from '@shadcn/react/message-scroller';
37
47
  export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from '@shadcn/react/message-scroller';
38
48
  import { Popover as Popover$1 } from '@base-ui/react/popover';
@@ -46,11 +56,10 @@ import { DndContextProps, UniqueIdentifier, DragEndEvent, DragOverlay } from '@d
46
56
  import { SortableContextProps } from '@dnd-kit/sortable';
47
57
  import * as SwipeActionsPrimitive from '@ncdai/react-swipe-actions';
48
58
  import { Switch as Switch$1 } from '@base-ui/react/switch';
49
- import { OptionsOf, StateOf, SlotName, PropsOf } from '@ui-sdk/core';
50
59
  import { tabs } from '@ui-sdk/core/tabs';
51
60
  export { TabsController, TabsOrientation, TabsValueChangeReason, createTabsController } from '@ui-sdk/core/tabs';
52
- import { PartProps } from '@ui-sdk/react/primitive';
53
61
  import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
62
+ import * as _ui_sdk_react_agent from '@ui-sdk/react/agent';
54
63
 
55
64
  declare function Accordion({ className, ...props }: Accordion$1.Root.Props): React$1.JSX.Element;
56
65
  declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props): React$1.JSX.Element;
@@ -215,6 +224,9 @@ type CarouselContextProps = {
215
224
  scrollNext: () => void;
216
225
  canScrollPrev: boolean;
217
226
  canScrollNext: boolean;
227
+ selectedIndex: number;
228
+ snapCount: number;
229
+ scrollTo: (index: number) => void;
218
230
  } & CarouselProps;
219
231
  declare function useCarousel(): CarouselContextProps;
220
232
  declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React$1.ComponentProps<"div"> & CarouselProps): React$1.JSX.Element;
@@ -222,6 +234,11 @@ declare function CarouselContent({ className, ...props }: React$1.ComponentProps
222
234
  declare function CarouselItem({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
223
235
  declare function CarouselPrevious({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
224
236
  declare function CarouselNext({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
237
+ type CarouselDotsProps = React$1.ComponentProps<"div"> & {
238
+ /** Accessible name for each dot. Defaults to "Slide 2 of 5". */
239
+ getDotLabel?: (index: number, count: number) => string;
240
+ };
241
+ declare function CarouselDots({ className, getDotLabel, "aria-label": ariaLabel, ...props }: CarouselDotsProps): React$1.JSX.Element | null;
225
242
 
226
243
  declare const THEMES: {
227
244
  readonly light: "";
@@ -722,14 +739,341 @@ declare function Filters<T = unknown>({ filters, fields, onChange, className, va
722
739
  declare const createFilter: <T = unknown>(field: string, operator?: string, values?: T[]) => Filter<T>;
723
740
  declare const createFilterGroup: <T = unknown>(id: string, label: string, fields: FilterFieldConfig<T>[], initialFilters?: Filter<T>[]) => FilterGroup<T>;
724
741
 
725
- type ImageProps = Omit<ImageProps$1, "children" | "placeholder" | "blurDataURL" | "src"> & {
726
- src?: ImageProps$1["src"] | null;
742
+ declare const ImageRoot: (props: _ui_sdk_core.OptionsOf<_ui_sdk_core_avatar.AvatarPrimitive> & _ui_sdk_core_renderer.BaseSlotProps & {
743
+ className?: string | ((state: NoInfer<AvatarState>) => string | undefined) | undefined;
744
+ color?: string | undefined | undefined;
745
+ defaultValue?: string | number | readonly string[] | undefined;
746
+ defaultChecked?: boolean | undefined | undefined;
747
+ style?: CSSProperties | ((state: NoInfer<AvatarState>) => React.CSSProperties | undefined) | undefined;
748
+ slot?: string | undefined | undefined;
749
+ title?: string | undefined | undefined;
750
+ ref?: React$1.Ref<HTMLSpanElement> | undefined;
751
+ key?: React$1.Key | null | undefined;
752
+ suppressContentEditableWarning?: boolean | undefined | undefined;
753
+ suppressHydrationWarning?: boolean | undefined | undefined;
754
+ accessKey?: string | undefined | undefined;
755
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
756
+ autoFocus?: boolean | undefined | undefined;
757
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
758
+ contextMenu?: string | undefined | undefined;
759
+ dir?: string | undefined | undefined;
760
+ draggable?: (boolean | "true" | "false") | undefined;
761
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
762
+ hidden?: boolean | undefined | undefined;
763
+ lang?: string | undefined | undefined;
764
+ nonce?: string | undefined | undefined;
765
+ spellCheck?: (boolean | "true" | "false") | undefined;
766
+ tabIndex?: number | undefined | undefined;
767
+ translate?: "yes" | "no" | undefined | undefined;
768
+ radioGroup?: string | undefined | undefined;
769
+ role?: React$1.AriaRole | undefined;
770
+ about?: string | undefined | undefined;
771
+ content?: string | undefined | undefined;
772
+ datatype?: string | undefined | undefined;
773
+ inlist?: any;
774
+ prefix?: string | undefined | undefined;
775
+ property?: string | undefined | undefined;
776
+ rel?: string | undefined | undefined;
777
+ resource?: string | undefined | undefined;
778
+ rev?: string | undefined | undefined;
779
+ typeof?: string | undefined | undefined;
780
+ vocab?: string | undefined | undefined;
781
+ autoCorrect?: string | undefined | undefined;
782
+ autoSave?: string | undefined | undefined;
783
+ itemProp?: string | undefined | undefined;
784
+ itemScope?: boolean | undefined | undefined;
785
+ itemType?: string | undefined | undefined;
786
+ itemID?: string | undefined | undefined;
787
+ itemRef?: string | undefined | undefined;
788
+ results?: number | undefined | undefined;
789
+ security?: string | undefined | undefined;
790
+ unselectable?: "on" | "off" | undefined | undefined;
791
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
792
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
793
+ popoverTarget?: string | undefined | undefined;
794
+ inert?: boolean | undefined | undefined;
795
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
796
+ is?: string | undefined | undefined;
797
+ exportparts?: string | undefined | undefined;
798
+ part?: string | undefined | undefined;
799
+ "aria-activedescendant"?: string | undefined | undefined;
800
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
801
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
802
+ "aria-braillelabel"?: string | undefined | undefined;
803
+ "aria-brailleroledescription"?: string | undefined | undefined;
804
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
805
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
806
+ "aria-colcount"?: number | undefined | undefined;
807
+ "aria-colindex"?: number | undefined | undefined;
808
+ "aria-colindextext"?: string | undefined | undefined;
809
+ "aria-colspan"?: number | undefined | undefined;
810
+ "aria-controls"?: string | undefined | undefined;
811
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
812
+ "aria-describedby"?: string | undefined | undefined;
813
+ "aria-description"?: string | undefined | undefined;
814
+ "aria-details"?: string | undefined | undefined;
815
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
816
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
817
+ "aria-errormessage"?: string | undefined | undefined;
818
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
819
+ "aria-flowto"?: string | undefined | undefined;
820
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
821
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
822
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
823
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
824
+ "aria-keyshortcuts"?: string | undefined | undefined;
825
+ "aria-label"?: string | undefined | undefined;
826
+ "aria-labelledby"?: string | undefined | undefined;
827
+ "aria-level"?: number | undefined | undefined;
828
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
829
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
830
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
831
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
832
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
833
+ "aria-owns"?: string | undefined | undefined;
834
+ "aria-placeholder"?: string | undefined | undefined;
835
+ "aria-posinset"?: number | undefined | undefined;
836
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
837
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
838
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
839
+ "aria-required"?: (boolean | "true" | "false") | undefined;
840
+ "aria-roledescription"?: string | undefined | undefined;
841
+ "aria-rowcount"?: number | undefined | undefined;
842
+ "aria-rowindex"?: number | undefined | undefined;
843
+ "aria-rowindextext"?: string | undefined | undefined;
844
+ "aria-rowspan"?: number | undefined | undefined;
845
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
846
+ "aria-setsize"?: number | undefined | undefined;
847
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
848
+ "aria-valuemax"?: number | undefined | undefined;
849
+ "aria-valuemin"?: number | undefined | undefined;
850
+ "aria-valuenow"?: number | undefined | undefined;
851
+ "aria-valuetext"?: string | undefined | undefined;
852
+ children?: ReactNode | ((state: NoInfer<AvatarState>) => React.ReactNode);
853
+ dangerouslySetInnerHTML?: {
854
+ __html: string | TrustedHTML;
855
+ } | undefined | undefined;
856
+ onCopy?: React$1.ClipboardEventHandler<HTMLSpanElement> | undefined;
857
+ onCopyCapture?: React$1.ClipboardEventHandler<HTMLSpanElement> | undefined;
858
+ onCut?: React$1.ClipboardEventHandler<HTMLSpanElement> | undefined;
859
+ onCutCapture?: React$1.ClipboardEventHandler<HTMLSpanElement> | undefined;
860
+ onPaste?: React$1.ClipboardEventHandler<HTMLSpanElement> | undefined;
861
+ onPasteCapture?: React$1.ClipboardEventHandler<HTMLSpanElement> | undefined;
862
+ onCompositionEnd?: React$1.CompositionEventHandler<HTMLSpanElement> | undefined;
863
+ onCompositionEndCapture?: React$1.CompositionEventHandler<HTMLSpanElement> | undefined;
864
+ onCompositionStart?: React$1.CompositionEventHandler<HTMLSpanElement> | undefined;
865
+ onCompositionStartCapture?: React$1.CompositionEventHandler<HTMLSpanElement> | undefined;
866
+ onCompositionUpdate?: React$1.CompositionEventHandler<HTMLSpanElement> | undefined;
867
+ onCompositionUpdateCapture?: React$1.CompositionEventHandler<HTMLSpanElement> | undefined;
868
+ onFocus?: React$1.FocusEventHandler<HTMLSpanElement> | undefined;
869
+ onFocusCapture?: React$1.FocusEventHandler<HTMLSpanElement> | undefined;
870
+ onBlur?: React$1.FocusEventHandler<HTMLSpanElement> | undefined;
871
+ onBlurCapture?: React$1.FocusEventHandler<HTMLSpanElement> | undefined;
872
+ onChange?: React$1.ChangeEventHandler<HTMLSpanElement, Element> | undefined;
873
+ onChangeCapture?: React$1.ChangeEventHandler<HTMLSpanElement, Element> | undefined;
874
+ onBeforeInput?: React$1.InputEventHandler<HTMLSpanElement> | undefined;
875
+ onBeforeInputCapture?: React$1.InputEventHandler<HTMLSpanElement> | undefined;
876
+ onInput?: React$1.InputEventHandler<HTMLSpanElement> | undefined;
877
+ onInputCapture?: React$1.InputEventHandler<HTMLSpanElement> | undefined;
878
+ onReset?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
879
+ onResetCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
880
+ onSubmit?: React$1.SubmitEventHandler<HTMLSpanElement> | undefined;
881
+ onSubmitCapture?: React$1.SubmitEventHandler<HTMLSpanElement> | undefined;
882
+ onInvalid?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
883
+ onInvalidCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
884
+ onLoad?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
885
+ onLoadCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
886
+ onError?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
887
+ onErrorCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
888
+ onKeyDown?: React$1.KeyboardEventHandler<HTMLSpanElement> | undefined;
889
+ onKeyDownCapture?: React$1.KeyboardEventHandler<HTMLSpanElement> | undefined;
890
+ onKeyPress?: React$1.KeyboardEventHandler<HTMLSpanElement> | undefined;
891
+ onKeyPressCapture?: React$1.KeyboardEventHandler<HTMLSpanElement> | undefined;
892
+ onKeyUp?: React$1.KeyboardEventHandler<HTMLSpanElement> | undefined;
893
+ onKeyUpCapture?: React$1.KeyboardEventHandler<HTMLSpanElement> | undefined;
894
+ onAbort?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
895
+ onAbortCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
896
+ onCanPlay?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
897
+ onCanPlayCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
898
+ onCanPlayThrough?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
899
+ onCanPlayThroughCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
900
+ onDurationChange?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
901
+ onDurationChangeCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
902
+ onEmptied?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
903
+ onEmptiedCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
904
+ onEncrypted?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
905
+ onEncryptedCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
906
+ onEnded?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
907
+ onEndedCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
908
+ onLoadedData?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
909
+ onLoadedDataCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
910
+ onLoadedMetadata?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
911
+ onLoadedMetadataCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
912
+ onLoadStart?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
913
+ onLoadStartCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
914
+ onPause?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
915
+ onPauseCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
916
+ onPlay?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
917
+ onPlayCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
918
+ onPlaying?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
919
+ onPlayingCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
920
+ onProgress?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
921
+ onProgressCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
922
+ onRateChange?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
923
+ onRateChangeCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
924
+ onSeeked?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
925
+ onSeekedCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
926
+ onSeeking?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
927
+ onSeekingCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
928
+ onStalled?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
929
+ onStalledCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
930
+ onSuspend?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
931
+ onSuspendCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
932
+ onTimeUpdate?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
933
+ onTimeUpdateCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
934
+ onVolumeChange?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
935
+ onVolumeChangeCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
936
+ onWaiting?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
937
+ onWaitingCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
938
+ onAuxClick?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
939
+ onAuxClickCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
940
+ onClick?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
941
+ onClickCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
942
+ onContextMenu?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
943
+ onContextMenuCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
944
+ onDoubleClick?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
945
+ onDoubleClickCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
946
+ onDrag?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
947
+ onDragCapture?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
948
+ onDragEnd?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
949
+ onDragEndCapture?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
950
+ onDragEnter?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
951
+ onDragEnterCapture?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
952
+ onDragExit?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
953
+ onDragExitCapture?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
954
+ onDragLeave?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
955
+ onDragLeaveCapture?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
956
+ onDragOver?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
957
+ onDragOverCapture?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
958
+ onDragStart?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
959
+ onDragStartCapture?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
960
+ onDrop?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
961
+ onDropCapture?: React$1.DragEventHandler<HTMLSpanElement> | undefined;
962
+ onMouseDown?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
963
+ onMouseDownCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
964
+ onMouseEnter?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
965
+ onMouseLeave?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
966
+ onMouseMove?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
967
+ onMouseMoveCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
968
+ onMouseOut?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
969
+ onMouseOutCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
970
+ onMouseOver?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
971
+ onMouseOverCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
972
+ onMouseUp?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
973
+ onMouseUpCapture?: React$1.MouseEventHandler<HTMLSpanElement> | undefined;
974
+ onSelect?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
975
+ onSelectCapture?: React$1.ReactEventHandler<HTMLSpanElement> | undefined;
976
+ onTouchCancel?: React$1.TouchEventHandler<HTMLSpanElement> | undefined;
977
+ onTouchCancelCapture?: React$1.TouchEventHandler<HTMLSpanElement> | undefined;
978
+ onTouchEnd?: React$1.TouchEventHandler<HTMLSpanElement> | undefined;
979
+ onTouchEndCapture?: React$1.TouchEventHandler<HTMLSpanElement> | undefined;
980
+ onTouchMove?: React$1.TouchEventHandler<HTMLSpanElement> | undefined;
981
+ onTouchMoveCapture?: React$1.TouchEventHandler<HTMLSpanElement> | undefined;
982
+ onTouchStart?: React$1.TouchEventHandler<HTMLSpanElement> | undefined;
983
+ onTouchStartCapture?: React$1.TouchEventHandler<HTMLSpanElement> | undefined;
984
+ onPointerDown?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
985
+ onPointerDownCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
986
+ onPointerMove?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
987
+ onPointerMoveCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
988
+ onPointerUp?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
989
+ onPointerUpCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
990
+ onPointerCancel?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
991
+ onPointerCancelCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
992
+ onPointerEnter?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
993
+ onPointerLeave?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
994
+ onPointerOver?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
995
+ onPointerOverCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
996
+ onPointerOut?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
997
+ onPointerOutCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
998
+ onGotPointerCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
999
+ onGotPointerCaptureCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
1000
+ onLostPointerCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
1001
+ onLostPointerCaptureCapture?: React$1.PointerEventHandler<HTMLSpanElement> | undefined;
1002
+ onScroll?: React$1.UIEventHandler<HTMLSpanElement> | undefined;
1003
+ onScrollCapture?: React$1.UIEventHandler<HTMLSpanElement> | undefined;
1004
+ onScrollEnd?: React$1.UIEventHandler<HTMLSpanElement> | undefined;
1005
+ onScrollEndCapture?: React$1.UIEventHandler<HTMLSpanElement> | undefined;
1006
+ onWheel?: React$1.WheelEventHandler<HTMLSpanElement> | undefined;
1007
+ onWheelCapture?: React$1.WheelEventHandler<HTMLSpanElement> | undefined;
1008
+ onAnimationStart?: React$1.AnimationEventHandler<HTMLSpanElement> | undefined;
1009
+ onAnimationStartCapture?: React$1.AnimationEventHandler<HTMLSpanElement> | undefined;
1010
+ onAnimationEnd?: React$1.AnimationEventHandler<HTMLSpanElement> | undefined;
1011
+ onAnimationEndCapture?: React$1.AnimationEventHandler<HTMLSpanElement> | undefined;
1012
+ onAnimationIteration?: React$1.AnimationEventHandler<HTMLSpanElement> | undefined;
1013
+ onAnimationIterationCapture?: React$1.AnimationEventHandler<HTMLSpanElement> | undefined;
1014
+ onToggle?: React$1.ToggleEventHandler<HTMLSpanElement> | undefined;
1015
+ onBeforeToggle?: React$1.ToggleEventHandler<HTMLSpanElement> | undefined;
1016
+ onTransitionCancel?: React$1.TransitionEventHandler<HTMLSpanElement> | undefined;
1017
+ onTransitionCancelCapture?: React$1.TransitionEventHandler<HTMLSpanElement> | undefined;
1018
+ onTransitionEnd?: React$1.TransitionEventHandler<HTMLSpanElement> | undefined;
1019
+ onTransitionEndCapture?: React$1.TransitionEventHandler<HTMLSpanElement> | undefined;
1020
+ onTransitionRun?: React$1.TransitionEventHandler<HTMLSpanElement> | undefined;
1021
+ onTransitionRunCapture?: React$1.TransitionEventHandler<HTMLSpanElement> | undefined;
1022
+ onTransitionStart?: React$1.TransitionEventHandler<HTMLSpanElement> | undefined;
1023
+ onTransitionStartCapture?: React$1.TransitionEventHandler<HTMLSpanElement> | undefined;
1024
+ render?: RenderProp<NoInfer<AvatarState>> | undefined;
1025
+ }) => React.ReactElement | null;
1026
+ declare const ImageSource: _ui_sdk_react_primitive.PartComponent<_ui_sdk_core_avatar.AvatarPrimitive, "image", "img">;
1027
+ declare const ImageFallback: _ui_sdk_react_primitive.PartComponent<_ui_sdk_core_avatar.AvatarPrimitive, "fallback", "span">;
1028
+
1029
+ type ImageState = "empty" | "loading" | "loaded" | "error";
1030
+ type StaticImage = {
1031
+ src: string;
1032
+ width?: number;
1033
+ height?: number;
1034
+ };
1035
+ type ImageSrc = string | StaticImage | {
1036
+ default: StaticImage;
1037
+ };
1038
+ type ImageLoader = (args: {
1039
+ src: string;
1040
+ width: number;
1041
+ quality?: number;
1042
+ }) => string;
1043
+ type ImageConfig = {
1044
+ loader?: ImageLoader;
1045
+ widths?: number[];
1046
+ quality?: number;
1047
+ qualities?: number[];
1048
+ };
1049
+ declare function ImageProvider({ loader, widths, quality, qualities, children, }: ImageConfig & {
1050
+ children: ReactNode;
1051
+ }): React$1.JSX.Element;
1052
+ type ImageProps = Omit<PartProps<"img", AvatarState>, "src" | "children" | "className" | "style"> & {
1053
+ src?: ImageSrc | null;
1054
+ className?: string;
1055
+ style?: CSSProperties;
727
1056
  wrapper?: string;
1057
+ fill?: boolean;
728
1058
  showSkeleton?: boolean;
729
- children?: ReactNode;
1059
+ preload?: boolean;
1060
+ priority?: boolean;
1061
+ quality?: number;
1062
+ unoptimized?: boolean;
1063
+ loader?: ImageLoader;
1064
+ retry?: number;
1065
+ retryDelay?: number;
730
1066
  fallback?: ReactNode;
1067
+ children?: ReactNode;
1068
+ render?: RenderProp<AvatarState>;
1069
+ onStateChange?: (state: ImageState) => void;
731
1070
  };
732
- declare function Image({ wrapper, showSkeleton, className, loading, fetchPriority, preload, quality, src, alt, onLoad, onError, children, fallback, ...props }: ImageProps): React$1.JSX.Element;
1071
+ declare function ImagePlaceholder({ label, reason, className, }: {
1072
+ label?: string;
1073
+ reason?: "empty" | "error";
1074
+ className?: string;
1075
+ }): React$1.JSX.Element;
1076
+ declare function Image({ src, alt, className, style, wrapper, fill, showSkeleton, preload: preloadProp, priority, quality: qualityProp, unoptimized, loader: loaderProp, retry, retryDelay, fallback, children, loading, fetchPriority, decoding, width, height, srcSet, sizes, onStateChange, ...props }: ImageProps): React$1.JSX.Element;
733
1077
 
734
1078
  declare function Input({ className, type, inputMode, onWheel, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
735
1079
 
@@ -828,6 +1172,1318 @@ declare function JellyEmpty({ title, description, actions, size, className, ...c
828
1172
  declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): React$1.JSX.Element;
829
1173
  declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
830
1174
 
1175
+ /**
1176
+ * HTML attributes as the DOM sees them. Strings only, undefined removes.
1177
+ * Boolean attributes use "" for present, like in markup.
1178
+ * @stable
1179
+ */
1180
+ type Attrs = Record<string, string | undefined>;
1181
+ /**
1182
+ * The kind of value an option or a slot prop takes, which renderers read at
1183
+ * runtime to tell it from an element's own props and to parse attributes:
1184
+ * `"string"`, `"number"`, `"boolean"` and `"list"` (strings, or one string;
1185
+ * comma-separated as an attribute) can come from an attribute; `"value"` is any other value, set as a property;
1186
+ * `"callback"` is a function the component calls, an event on custom
1187
+ * elements; `"action"` is a callback whose return value matters, like a
1188
+ * Promise that makes the part pending, so Vue passes it as a prop, not an
1189
+ * emit; `"id"` is a string the renderer makes unique when it's left out;
1190
+ * `"key"` is a list item's value, of any type, which keys the part by
1191
+ * `api.internal.keyOf(value)`, and which the parts inside it take as that key.
1192
+ */
1193
+ type PropKind = "string" | "number" | "boolean" | "list" | "value" | "callback" | "action" | "id" | "key";
1194
+ /**
1195
+ * An option or slot prop's kind. With `from`, a part nested in a part of that
1196
+ * slot takes the prop from it when it's left out: `"item"` takes the prop of
1197
+ * the same name, like an accordion trigger's `value` from its item, and
1198
+ * `"group.id"` names the parent's prop, like an option's `group` from its
1199
+ * group's `id`. With `required`, a part left outside that slot throws, like
1200
+ * an item's check outside an item. A function reads the prop from a custom
1201
+ * element's attribute, for values no kind fits, like `modal`, a boolean or a string.
1202
+ * @stable
1203
+ */
1204
+ type PropSpec = PropKind | {
1205
+ kind: PropKind;
1206
+ from: string;
1207
+ required?: boolean;
1208
+ } | ((attribute: string | null) => unknown);
1209
+ /**
1210
+ * Every option or prop of `Props`, by name, with its kind. A slot's `id` needs
1211
+ * an entry when the part reads it, `"string"`, or when the adapter should make
1212
+ * one, `"id"`.
1213
+ * @stable
1214
+ */
1215
+ type PropSchema<Props> = {
1216
+ [Key in Exclude<keyof Props, "id"> & string]: PropSpec;
1217
+ } & {
1218
+ id?: PropSpec;
1219
+ };
1220
+ type EventMap = HTMLElementEventMap;
1221
+ /** What a slot's `press` and `on` handlers receive. */
1222
+ type SlotContext<State extends object, Api, Props> = {
1223
+ /** The bound element. Undefined before it binds, like for a press a test sends through `press`. */
1224
+ el: HTMLElement | undefined;
1225
+ /** The instance's id. Build part ids from it, like `${id}-content`. */
1226
+ id: string;
1227
+ /** The part's key: its `id` prop, else its `value`. Tells parts of one slot apart. */
1228
+ key: string;
1229
+ /** The props of the part's newest render. */
1230
+ props: Props;
1231
+ /** The instance's store. */
1232
+ store: Store<State>;
1233
+ /** What `api` returned. Call it rather than writing state here. */
1234
+ api: Api;
1235
+ };
1236
+ /**
1237
+ * One rendered element of a slot, like one item among many. Adapters get one
1238
+ * from `instance.part(slot, props)`, and slots receive it in `bind` and
1239
+ * `connect`.
1240
+ * @stable
1241
+ */
1242
+ type Part<State extends object = any, Api = any, Props = any> = {
1243
+ /** The slot's name. */
1244
+ readonly slot: string;
1245
+ /** `props.id ?? String(props.value)`, which tells parts of one slot apart. */
1246
+ readonly key: string;
1247
+ /** The instance's id. */
1248
+ readonly id: string;
1249
+ /** The instance's api. */
1250
+ readonly api: Api;
1251
+ /** The instance's store. */
1252
+ readonly store: Store<State>;
1253
+ /** The props of the part's newest render. */
1254
+ props: Props;
1255
+ /** The bound element. Undefined until it binds. */
1256
+ el: HTMLElement | undefined;
1257
+ };
1258
+ type SlotFields<State extends object, Api, Props, Public> = {
1259
+ /**
1260
+ * Whether the slot's element should exist. Adapters that cannot unmount
1261
+ * markup, like custom elements, bind and unbind on it. Defaults to always.
1262
+ * Keyed parts, like one panel among many, decide from their own props.
1263
+ * May read live state: adapters check presence on every change.
1264
+ */
1265
+ present?: (state: State, context: {
1266
+ id: string;
1267
+ key: string;
1268
+ props: Props;
1269
+ api: Api;
1270
+ }) => boolean;
1271
+ /** Pure. Runs on the server and on every render. Never reads live state. */
1272
+ attrs?: (state: State, context: {
1273
+ id: string;
1274
+ key: string;
1275
+ props: Props;
1276
+ api: Api;
1277
+ }) => Attrs;
1278
+ /**
1279
+ * What `render` functions and state-based class names see, like
1280
+ * { highlighted, disabled }. May read live state: adapters only re-render a
1281
+ * part for live changes when its render function actually read them.
1282
+ */
1283
+ state?: (state: State, context: {
1284
+ id: string;
1285
+ key: string;
1286
+ props: Props;
1287
+ api: Api;
1288
+ }) => Public;
1289
+ /** Attributes written straight to the element on every change, built by `live()`. */
1290
+ live?: Live<State, Api, Props>;
1291
+ /** Attributes of `attrs` core keeps current on a framework's element, built by `direct()`. */
1292
+ direct?: Direct;
1293
+ /** Narrows which changes reach the slot's parts, built by `selects()`. */
1294
+ selects?: Selects<State, Api, Props>;
1295
+ /**
1296
+ * Activation: a click, which keys and screen readers send too. `{ none: "why" }`
1297
+ * for a role that activates when another handler does it, like the author's own click.
1298
+ */
1299
+ press?: ((context: SlotContext<State, Api, Props>, event?: Event) => void) | Unneeded;
1300
+ /**
1301
+ * DOM events. Adapters attach these so user handlers run first and can
1302
+ * call preventDefault() to skip them.
1303
+ */
1304
+ on?: {
1305
+ [Type in keyof EventMap]?: (event: EventMap[Type], context: SlotContext<State, Api, Props>) => void;
1306
+ };
1307
+ /**
1308
+ * Client only, web only. Focus, positioning, observers. Gets the part, whose
1309
+ * `props` are its newest render's. Return a cleanup. Follow state with
1310
+ * `part.store.subscribe`, or write attributes that change often with `direct`.
1311
+ */
1312
+ bind?: (el: HTMLElement, part: Part<State, Api, Props>) => (() => void) | void;
1313
+ /**
1314
+ * Client only, web only. Like `bind`, but runs at once while the instance
1315
+ * is asleep, for what a part can't wait for, like naming its trigger. Its
1316
+ * `part.api` is undefined until the instance wakes.
1317
+ * @experimental
1318
+ */
1319
+ asleep?: (el: HTMLElement, part: Part<State, Api, Props>) => (() => void) | void;
1320
+ /**
1321
+ * Client only. Runs while the element is in the page, present or not, for
1322
+ * adapters that keep parts that aren't present, like custom elements. A
1323
+ * popup's content registers here, so shortcuts inside a closed one don't run.
1324
+ */
1325
+ connect?: (el: HTMLElement) => () => void;
1326
+ };
1327
+ /**
1328
+ * One part of a primitive, like a trigger or an item: how its element
1329
+ * renders, reacts and binds. Build slots with the `slot` helper `slots`
1330
+ * receives. Every field is optional.
1331
+ * @stable
1332
+ */
1333
+ type SlotDefinition<State extends object, Api, Props, Public = {}> = SlotFields<State, Api, Props, Public> & SlotSchema<Props>;
1334
+ /**
1335
+ * Each prop the slot takes, with its kind, for renderers to read. TypeScript
1336
+ * checks it names them all, and requires it when the slot takes any. A slot
1337
+ * typed `any`, like `AnySlot`, never requires it.
1338
+ */
1339
+ type SlotSchema<Props> = 0 extends 1 & Props ? Partial<PropsSchema<Props>> : [Exclude<keyof Props, "id">] extends [never] ? Partial<PropsSchema<Props>> : PropsSchema<Props>;
1340
+ type PropsSchema<Props> = {
1341
+ /** Each prop the slot's parts take, with its kind, like `{ value: "string" }`. */
1342
+ props: PropSchema<Props>;
1343
+ };
1344
+ type SlotProps<Slot> = Slot extends SlotDefinition<any, any, infer Props, any> ? Props : never;
1345
+
1346
+ /**
1347
+ * How arrow keys move between items: `vertical` (Up/Down), `horizontal`
1348
+ * (Left/Right), or `grid` (all four arrows, following the on-screen layout,
1349
+ * so wrapping card grids work at any column count).
1350
+ */
1351
+ type ListOrientation = "vertical" | "horizontal" | "grid";
1352
+ type ListController = {
1353
+ /** Focuses an item by `value`, or the item holding the tab stop, or the first. */
1354
+ focus: (value?: string) => void;
1355
+ items: () => {
1356
+ value: string;
1357
+ label: string;
1358
+ }[];
1359
+ open: (target: string) => void;
1360
+ };
1361
+ type ListOptions = {
1362
+ /** Arrow-key axis. Defaults to `vertical`. */
1363
+ orientation?: ListOrientation;
1364
+ /** Whether arrows wrap past either end. Defaults to `false`. Ignored by `grid`. */
1365
+ loop?: boolean;
1366
+ /** From `createListController()`, to focus the list from another control (e.g. ArrowDown in a search box). */
1367
+ controller?: ListController;
1368
+ };
1369
+ type ListItemProps = {
1370
+ /** Stable key for the item, like a record id. Generated when omitted. */
1371
+ value?: string;
1372
+ /** Keeps the item reachable by arrows but blocks Enter/Space activation. */
1373
+ disabled?: boolean;
1374
+ };
1375
+ declare function createListController(): ListController;
1376
+ declare const list: ((initialOptions: ListOptions & {
1377
+ id: string;
1378
+ }) => {
1379
+ types: {
1380
+ options: ListOptions;
1381
+ state: {
1382
+ stop: string | null;
1383
+ labels: string[];
1384
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1385
+ highlighted: string | null;
1386
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1387
+ pointerHidden: boolean;
1388
+ orientation: ListOrientation;
1389
+ };
1390
+ api: {
1391
+ focus: (value?: string) => void;
1392
+ items: () => {
1393
+ value: string;
1394
+ label: string;
1395
+ }[];
1396
+ open(target: string): void;
1397
+ internal: {
1398
+ roving: {
1399
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1400
+ tabIndex(state: {
1401
+ stop: string | null;
1402
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1403
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1404
+ key: string;
1405
+ from: string;
1406
+ shift: boolean;
1407
+ } | undefined;
1408
+ items: () => {
1409
+ key: string;
1410
+ props: ListItemProps;
1411
+ el: HTMLElement;
1412
+ }[];
1413
+ focus(itemKey?: string): void;
1414
+ remember(itemKey: string): void;
1415
+ check: () => void;
1416
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1417
+ };
1418
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1419
+ pointermove(event: PointerEvent): void;
1420
+ pointerleave(): void;
1421
+ focusin(event: FocusEvent): void;
1422
+ focusout(event: FocusEvent, root: HTMLElement): void;
1423
+ /**
1424
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1425
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1426
+ * Enter opens it. Focus in an input or another control is left alone.
1427
+ */
1428
+ listenToPage(): () => void;
1429
+ };
1430
+ };
1431
+ slots: {
1432
+ root: _ui_sdk_core.SlotDefinition<{
1433
+ stop: string | null;
1434
+ labels: string[];
1435
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1436
+ highlighted: string | null;
1437
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1438
+ pointerHidden: boolean;
1439
+ orientation: ListOrientation;
1440
+ }, {
1441
+ focus: (value?: string) => void;
1442
+ items: () => {
1443
+ value: string;
1444
+ label: string;
1445
+ }[];
1446
+ open(target: string): void;
1447
+ internal: {
1448
+ roving: {
1449
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1450
+ tabIndex(state: {
1451
+ stop: string | null;
1452
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1453
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1454
+ key: string;
1455
+ from: string;
1456
+ shift: boolean;
1457
+ } | undefined;
1458
+ items: () => {
1459
+ key: string;
1460
+ props: ListItemProps;
1461
+ el: HTMLElement;
1462
+ }[];
1463
+ focus(itemKey?: string): void;
1464
+ remember(itemKey: string): void;
1465
+ check: () => void;
1466
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1467
+ };
1468
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1469
+ pointermove(event: PointerEvent): void;
1470
+ pointerleave(): void;
1471
+ focusin(event: FocusEvent): void;
1472
+ focusout(event: FocusEvent, root: HTMLElement): void;
1473
+ /**
1474
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1475
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1476
+ * Enter opens it. Focus in an input or another control is left alone.
1477
+ */
1478
+ listenToPage(): () => void;
1479
+ };
1480
+ }, object & _ui_sdk_core_renderer.BaseSlotProps, NoInfer<{
1481
+ orientation: ListOrientation;
1482
+ }>>;
1483
+ item: _ui_sdk_core.SlotDefinition<{
1484
+ stop: string | null;
1485
+ labels: string[];
1486
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1487
+ highlighted: string | null;
1488
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1489
+ pointerHidden: boolean;
1490
+ orientation: ListOrientation;
1491
+ }, {
1492
+ focus: (value?: string) => void;
1493
+ items: () => {
1494
+ value: string;
1495
+ label: string;
1496
+ }[];
1497
+ open(target: string): void;
1498
+ internal: {
1499
+ roving: {
1500
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1501
+ tabIndex(state: {
1502
+ stop: string | null;
1503
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1504
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1505
+ key: string;
1506
+ from: string;
1507
+ shift: boolean;
1508
+ } | undefined;
1509
+ items: () => {
1510
+ key: string;
1511
+ props: ListItemProps;
1512
+ el: HTMLElement;
1513
+ }[];
1514
+ focus(itemKey?: string): void;
1515
+ remember(itemKey: string): void;
1516
+ check: () => void;
1517
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1518
+ };
1519
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1520
+ pointermove(event: PointerEvent): void;
1521
+ pointerleave(): void;
1522
+ focusin(event: FocusEvent): void;
1523
+ focusout(event: FocusEvent, root: HTMLElement): void;
1524
+ /**
1525
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1526
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1527
+ * Enter opens it. Focus in an input or another control is left alone.
1528
+ */
1529
+ listenToPage(): () => void;
1530
+ };
1531
+ }, NoInfer<ListItemProps> & _ui_sdk_core_renderer.BaseSlotProps, NoInfer<{
1532
+ highlighted: boolean;
1533
+ disabled: boolean;
1534
+ }>>;
1535
+ group: _ui_sdk_core.SlotDefinition<{
1536
+ stop: string | null;
1537
+ labels: string[];
1538
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1539
+ highlighted: string | null;
1540
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1541
+ pointerHidden: boolean;
1542
+ orientation: ListOrientation;
1543
+ }, {
1544
+ focus: (value?: string) => void;
1545
+ items: () => {
1546
+ value: string;
1547
+ label: string;
1548
+ }[];
1549
+ open(target: string): void;
1550
+ internal: {
1551
+ roving: {
1552
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1553
+ tabIndex(state: {
1554
+ stop: string | null;
1555
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1556
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1557
+ key: string;
1558
+ from: string;
1559
+ shift: boolean;
1560
+ } | undefined;
1561
+ items: () => {
1562
+ key: string;
1563
+ props: ListItemProps;
1564
+ el: HTMLElement;
1565
+ }[];
1566
+ focus(itemKey?: string): void;
1567
+ remember(itemKey: string): void;
1568
+ check: () => void;
1569
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1570
+ };
1571
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1572
+ pointermove(event: PointerEvent): void;
1573
+ pointerleave(): void;
1574
+ focusin(event: FocusEvent): void;
1575
+ focusout(event: FocusEvent, root: HTMLElement): void;
1576
+ /**
1577
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1578
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1579
+ * Enter opens it. Focus in an input or another control is left alone.
1580
+ */
1581
+ listenToPage(): () => void;
1582
+ };
1583
+ }, NoInfer<{
1584
+ value?: string;
1585
+ }> & _ui_sdk_core_renderer.BaseSlotProps, {}>;
1586
+ label: _ui_sdk_core.SlotDefinition<{
1587
+ stop: string | null;
1588
+ labels: string[];
1589
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1590
+ highlighted: string | null;
1591
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1592
+ pointerHidden: boolean;
1593
+ orientation: ListOrientation;
1594
+ }, {
1595
+ focus: (value?: string) => void;
1596
+ items: () => {
1597
+ value: string;
1598
+ label: string;
1599
+ }[];
1600
+ open(target: string): void;
1601
+ internal: {
1602
+ roving: {
1603
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1604
+ tabIndex(state: {
1605
+ stop: string | null;
1606
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1607
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1608
+ key: string;
1609
+ from: string;
1610
+ shift: boolean;
1611
+ } | undefined;
1612
+ items: () => {
1613
+ key: string;
1614
+ props: ListItemProps;
1615
+ el: HTMLElement;
1616
+ }[];
1617
+ focus(itemKey?: string): void;
1618
+ remember(itemKey: string): void;
1619
+ check: () => void;
1620
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1621
+ };
1622
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1623
+ pointermove(event: PointerEvent): void;
1624
+ pointerleave(): void;
1625
+ focusin(event: FocusEvent): void;
1626
+ focusout(event: FocusEvent, root: HTMLElement): void;
1627
+ /**
1628
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1629
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1630
+ * Enter opens it. Focus in an input or another control is left alone.
1631
+ */
1632
+ listenToPage(): () => void;
1633
+ };
1634
+ }, NoInfer<{
1635
+ value?: string;
1636
+ }> & _ui_sdk_core_renderer.BaseSlotProps, {}>;
1637
+ };
1638
+ };
1639
+ name: string;
1640
+ id: string;
1641
+ get: () => {
1642
+ stop: string | null;
1643
+ labels: string[];
1644
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1645
+ highlighted: string | null;
1646
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1647
+ pointerHidden: boolean;
1648
+ orientation: ListOrientation;
1649
+ };
1650
+ subscribe: (listener: _ui_sdk_core_renderer.Listener) => () => void;
1651
+ readonly api: {
1652
+ focus: (value?: string) => void;
1653
+ items: () => {
1654
+ value: string;
1655
+ label: string;
1656
+ }[];
1657
+ open(target: string): void;
1658
+ internal: {
1659
+ roving: {
1660
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1661
+ tabIndex(state: {
1662
+ stop: string | null;
1663
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1664
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1665
+ key: string;
1666
+ from: string;
1667
+ shift: boolean;
1668
+ } | undefined;
1669
+ items: () => {
1670
+ key: string;
1671
+ props: ListItemProps;
1672
+ el: HTMLElement;
1673
+ }[];
1674
+ focus(itemKey?: string): void;
1675
+ remember(itemKey: string): void;
1676
+ check: () => void;
1677
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1678
+ };
1679
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1680
+ pointermove(event: PointerEvent): void;
1681
+ pointerleave(): void;
1682
+ focusin(event: FocusEvent): void;
1683
+ focusout(event: FocusEvent, root: HTMLElement): void;
1684
+ /**
1685
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1686
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1687
+ * Enter opens it. Focus in an input or another control is left alone.
1688
+ */
1689
+ listenToPage(): () => void;
1690
+ };
1691
+ };
1692
+ part: <S extends "label" | "group" | "item" | "root">(slot: S, props?: SlotProps<{
1693
+ root: _ui_sdk_core.SlotDefinition<{
1694
+ stop: string | null;
1695
+ labels: string[];
1696
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1697
+ highlighted: string | null;
1698
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1699
+ pointerHidden: boolean;
1700
+ orientation: ListOrientation;
1701
+ }, {
1702
+ focus: (value?: string) => void;
1703
+ items: () => {
1704
+ value: string;
1705
+ label: string;
1706
+ }[];
1707
+ open(target: string): void;
1708
+ internal: {
1709
+ roving: {
1710
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1711
+ tabIndex(state: {
1712
+ stop: string | null;
1713
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1714
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1715
+ key: string;
1716
+ from: string;
1717
+ shift: boolean;
1718
+ } | undefined;
1719
+ items: () => {
1720
+ key: string;
1721
+ props: ListItemProps;
1722
+ el: HTMLElement;
1723
+ }[];
1724
+ focus(itemKey?: string): void;
1725
+ remember(itemKey: string): void;
1726
+ check: () => void;
1727
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1728
+ };
1729
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1730
+ pointermove(event: PointerEvent): void;
1731
+ pointerleave(): void;
1732
+ focusin(event: FocusEvent): void;
1733
+ focusout(event: FocusEvent, root: HTMLElement): void;
1734
+ /**
1735
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1736
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1737
+ * Enter opens it. Focus in an input or another control is left alone.
1738
+ */
1739
+ listenToPage(): () => void;
1740
+ };
1741
+ }, object & _ui_sdk_core_renderer.BaseSlotProps, NoInfer<{
1742
+ orientation: ListOrientation;
1743
+ }>>;
1744
+ item: _ui_sdk_core.SlotDefinition<{
1745
+ stop: string | null;
1746
+ labels: string[];
1747
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1748
+ highlighted: string | null;
1749
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1750
+ pointerHidden: boolean;
1751
+ orientation: ListOrientation;
1752
+ }, {
1753
+ focus: (value?: string) => void;
1754
+ items: () => {
1755
+ value: string;
1756
+ label: string;
1757
+ }[];
1758
+ open(target: string): void;
1759
+ internal: {
1760
+ roving: {
1761
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1762
+ tabIndex(state: {
1763
+ stop: string | null;
1764
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1765
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1766
+ key: string;
1767
+ from: string;
1768
+ shift: boolean;
1769
+ } | undefined;
1770
+ items: () => {
1771
+ key: string;
1772
+ props: ListItemProps;
1773
+ el: HTMLElement;
1774
+ }[];
1775
+ focus(itemKey?: string): void;
1776
+ remember(itemKey: string): void;
1777
+ check: () => void;
1778
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1779
+ };
1780
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1781
+ pointermove(event: PointerEvent): void;
1782
+ pointerleave(): void;
1783
+ focusin(event: FocusEvent): void;
1784
+ focusout(event: FocusEvent, root: HTMLElement): void;
1785
+ /**
1786
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1787
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1788
+ * Enter opens it. Focus in an input or another control is left alone.
1789
+ */
1790
+ listenToPage(): () => void;
1791
+ };
1792
+ }, NoInfer<ListItemProps> & _ui_sdk_core_renderer.BaseSlotProps, NoInfer<{
1793
+ highlighted: boolean;
1794
+ disabled: boolean;
1795
+ }>>;
1796
+ group: _ui_sdk_core.SlotDefinition<{
1797
+ stop: string | null;
1798
+ labels: string[];
1799
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1800
+ highlighted: string | null;
1801
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1802
+ pointerHidden: boolean;
1803
+ orientation: ListOrientation;
1804
+ }, {
1805
+ focus: (value?: string) => void;
1806
+ items: () => {
1807
+ value: string;
1808
+ label: string;
1809
+ }[];
1810
+ open(target: string): void;
1811
+ internal: {
1812
+ roving: {
1813
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1814
+ tabIndex(state: {
1815
+ stop: string | null;
1816
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1817
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1818
+ key: string;
1819
+ from: string;
1820
+ shift: boolean;
1821
+ } | undefined;
1822
+ items: () => {
1823
+ key: string;
1824
+ props: ListItemProps;
1825
+ el: HTMLElement;
1826
+ }[];
1827
+ focus(itemKey?: string): void;
1828
+ remember(itemKey: string): void;
1829
+ check: () => void;
1830
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1831
+ };
1832
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1833
+ pointermove(event: PointerEvent): void;
1834
+ pointerleave(): void;
1835
+ focusin(event: FocusEvent): void;
1836
+ focusout(event: FocusEvent, root: HTMLElement): void;
1837
+ /**
1838
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1839
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1840
+ * Enter opens it. Focus in an input or another control is left alone.
1841
+ */
1842
+ listenToPage(): () => void;
1843
+ };
1844
+ }, NoInfer<{
1845
+ value?: string;
1846
+ }> & _ui_sdk_core_renderer.BaseSlotProps, {}>;
1847
+ label: _ui_sdk_core.SlotDefinition<{
1848
+ stop: string | null;
1849
+ labels: string[];
1850
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1851
+ highlighted: string | null;
1852
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1853
+ pointerHidden: boolean;
1854
+ orientation: ListOrientation;
1855
+ }, {
1856
+ focus: (value?: string) => void;
1857
+ items: () => {
1858
+ value: string;
1859
+ label: string;
1860
+ }[];
1861
+ open(target: string): void;
1862
+ internal: {
1863
+ roving: {
1864
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1865
+ tabIndex(state: {
1866
+ stop: string | null;
1867
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1868
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1869
+ key: string;
1870
+ from: string;
1871
+ shift: boolean;
1872
+ } | undefined;
1873
+ items: () => {
1874
+ key: string;
1875
+ props: ListItemProps;
1876
+ el: HTMLElement;
1877
+ }[];
1878
+ focus(itemKey?: string): void;
1879
+ remember(itemKey: string): void;
1880
+ check: () => void;
1881
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1882
+ };
1883
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1884
+ pointermove(event: PointerEvent): void;
1885
+ pointerleave(): void;
1886
+ focusin(event: FocusEvent): void;
1887
+ focusout(event: FocusEvent, root: HTMLElement): void;
1888
+ /**
1889
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1890
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1891
+ * Enter opens it. Focus in an input or another control is left alone.
1892
+ */
1893
+ listenToPage(): () => void;
1894
+ };
1895
+ }, NoInfer<{
1896
+ value?: string;
1897
+ }> & _ui_sdk_core_renderer.BaseSlotProps, {}>;
1898
+ }[S]> | undefined, rendering?: boolean) => _ui_sdk_core.Part<{
1899
+ stop: string | null;
1900
+ labels: string[];
1901
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1902
+ highlighted: string | null;
1903
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1904
+ pointerHidden: boolean;
1905
+ orientation: ListOrientation;
1906
+ }, {
1907
+ focus: (value?: string) => void;
1908
+ items: () => {
1909
+ value: string;
1910
+ label: string;
1911
+ }[];
1912
+ open(target: string): void;
1913
+ internal: {
1914
+ roving: {
1915
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1916
+ tabIndex(state: {
1917
+ stop: string | null;
1918
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1919
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1920
+ key: string;
1921
+ from: string;
1922
+ shift: boolean;
1923
+ } | undefined;
1924
+ items: () => {
1925
+ key: string;
1926
+ props: ListItemProps;
1927
+ el: HTMLElement;
1928
+ }[];
1929
+ focus(itemKey?: string): void;
1930
+ remember(itemKey: string): void;
1931
+ check: () => void;
1932
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1933
+ };
1934
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1935
+ pointermove(event: PointerEvent): void;
1936
+ pointerleave(): void;
1937
+ focusin(event: FocusEvent): void;
1938
+ focusout(event: FocusEvent, root: HTMLElement): void;
1939
+ /**
1940
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1941
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1942
+ * Enter opens it. Focus in an input or another control is left alone.
1943
+ */
1944
+ listenToPage(): () => void;
1945
+ };
1946
+ }, SlotProps<{
1947
+ root: _ui_sdk_core.SlotDefinition<{
1948
+ stop: string | null;
1949
+ labels: string[];
1950
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
1951
+ highlighted: string | null;
1952
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
1953
+ pointerHidden: boolean;
1954
+ orientation: ListOrientation;
1955
+ }, {
1956
+ focus: (value?: string) => void;
1957
+ items: () => {
1958
+ value: string;
1959
+ label: string;
1960
+ }[];
1961
+ open(target: string): void;
1962
+ internal: {
1963
+ roving: {
1964
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
1965
+ tabIndex(state: {
1966
+ stop: string | null;
1967
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
1968
+ keydown(event: KeyboardEvent, el: HTMLElement): {
1969
+ key: string;
1970
+ from: string;
1971
+ shift: boolean;
1972
+ } | undefined;
1973
+ items: () => {
1974
+ key: string;
1975
+ props: ListItemProps;
1976
+ el: HTMLElement;
1977
+ }[];
1978
+ focus(itemKey?: string): void;
1979
+ remember(itemKey: string): void;
1980
+ check: () => void;
1981
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
1982
+ };
1983
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
1984
+ pointermove(event: PointerEvent): void;
1985
+ pointerleave(): void;
1986
+ focusin(event: FocusEvent): void;
1987
+ focusout(event: FocusEvent, root: HTMLElement): void;
1988
+ /**
1989
+ * Keys pressed while nothing has focus (fresh page load, after closing a
1990
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
1991
+ * Enter opens it. Focus in an input or another control is left alone.
1992
+ */
1993
+ listenToPage(): () => void;
1994
+ };
1995
+ }, object & _ui_sdk_core_renderer.BaseSlotProps, NoInfer<{
1996
+ orientation: ListOrientation;
1997
+ }>>;
1998
+ item: _ui_sdk_core.SlotDefinition<{
1999
+ stop: string | null;
2000
+ labels: string[];
2001
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2002
+ highlighted: string | null;
2003
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2004
+ pointerHidden: boolean;
2005
+ orientation: ListOrientation;
2006
+ }, {
2007
+ focus: (value?: string) => void;
2008
+ items: () => {
2009
+ value: string;
2010
+ label: string;
2011
+ }[];
2012
+ open(target: string): void;
2013
+ internal: {
2014
+ roving: {
2015
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
2016
+ tabIndex(state: {
2017
+ stop: string | null;
2018
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
2019
+ keydown(event: KeyboardEvent, el: HTMLElement): {
2020
+ key: string;
2021
+ from: string;
2022
+ shift: boolean;
2023
+ } | undefined;
2024
+ items: () => {
2025
+ key: string;
2026
+ props: ListItemProps;
2027
+ el: HTMLElement;
2028
+ }[];
2029
+ focus(itemKey?: string): void;
2030
+ remember(itemKey: string): void;
2031
+ check: () => void;
2032
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
2033
+ };
2034
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
2035
+ pointermove(event: PointerEvent): void;
2036
+ pointerleave(): void;
2037
+ focusin(event: FocusEvent): void;
2038
+ focusout(event: FocusEvent, root: HTMLElement): void;
2039
+ /**
2040
+ * Keys pressed while nothing has focus (fresh page load, after closing a
2041
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
2042
+ * Enter opens it. Focus in an input or another control is left alone.
2043
+ */
2044
+ listenToPage(): () => void;
2045
+ };
2046
+ }, NoInfer<ListItemProps> & _ui_sdk_core_renderer.BaseSlotProps, NoInfer<{
2047
+ highlighted: boolean;
2048
+ disabled: boolean;
2049
+ }>>;
2050
+ group: _ui_sdk_core.SlotDefinition<{
2051
+ stop: string | null;
2052
+ labels: string[];
2053
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2054
+ highlighted: string | null;
2055
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2056
+ pointerHidden: boolean;
2057
+ orientation: ListOrientation;
2058
+ }, {
2059
+ focus: (value?: string) => void;
2060
+ items: () => {
2061
+ value: string;
2062
+ label: string;
2063
+ }[];
2064
+ open(target: string): void;
2065
+ internal: {
2066
+ roving: {
2067
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
2068
+ tabIndex(state: {
2069
+ stop: string | null;
2070
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
2071
+ keydown(event: KeyboardEvent, el: HTMLElement): {
2072
+ key: string;
2073
+ from: string;
2074
+ shift: boolean;
2075
+ } | undefined;
2076
+ items: () => {
2077
+ key: string;
2078
+ props: ListItemProps;
2079
+ el: HTMLElement;
2080
+ }[];
2081
+ focus(itemKey?: string): void;
2082
+ remember(itemKey: string): void;
2083
+ check: () => void;
2084
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
2085
+ };
2086
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
2087
+ pointermove(event: PointerEvent): void;
2088
+ pointerleave(): void;
2089
+ focusin(event: FocusEvent): void;
2090
+ focusout(event: FocusEvent, root: HTMLElement): void;
2091
+ /**
2092
+ * Keys pressed while nothing has focus (fresh page load, after closing a
2093
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
2094
+ * Enter opens it. Focus in an input or another control is left alone.
2095
+ */
2096
+ listenToPage(): () => void;
2097
+ };
2098
+ }, NoInfer<{
2099
+ value?: string;
2100
+ }> & _ui_sdk_core_renderer.BaseSlotProps, {}>;
2101
+ label: _ui_sdk_core.SlotDefinition<{
2102
+ stop: string | null;
2103
+ labels: string[];
2104
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2105
+ highlighted: string | null;
2106
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2107
+ pointerHidden: boolean;
2108
+ orientation: ListOrientation;
2109
+ }, {
2110
+ focus: (value?: string) => void;
2111
+ items: () => {
2112
+ value: string;
2113
+ label: string;
2114
+ }[];
2115
+ open(target: string): void;
2116
+ internal: {
2117
+ roving: {
2118
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
2119
+ tabIndex(state: {
2120
+ stop: string | null;
2121
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
2122
+ keydown(event: KeyboardEvent, el: HTMLElement): {
2123
+ key: string;
2124
+ from: string;
2125
+ shift: boolean;
2126
+ } | undefined;
2127
+ items: () => {
2128
+ key: string;
2129
+ props: ListItemProps;
2130
+ el: HTMLElement;
2131
+ }[];
2132
+ focus(itemKey?: string): void;
2133
+ remember(itemKey: string): void;
2134
+ check: () => void;
2135
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
2136
+ };
2137
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
2138
+ pointermove(event: PointerEvent): void;
2139
+ pointerleave(): void;
2140
+ focusin(event: FocusEvent): void;
2141
+ focusout(event: FocusEvent, root: HTMLElement): void;
2142
+ /**
2143
+ * Keys pressed while nothing has focus (fresh page load, after closing a
2144
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
2145
+ * Enter opens it. Focus in an input or another control is left alone.
2146
+ */
2147
+ listenToPage(): () => void;
2148
+ };
2149
+ }, NoInfer<{
2150
+ value?: string;
2151
+ }> & _ui_sdk_core_renderer.BaseSlotProps, {}>;
2152
+ }[S]>>;
2153
+ use: (feature: _ui_sdk_core_renderer.Feature<{
2154
+ focus: (value?: string) => void;
2155
+ items: () => {
2156
+ value: string;
2157
+ label: string;
2158
+ }[];
2159
+ open(target: string): void;
2160
+ internal: {
2161
+ roving: {
2162
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
2163
+ tabIndex(state: {
2164
+ stop: string | null;
2165
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
2166
+ keydown(event: KeyboardEvent, el: HTMLElement): {
2167
+ key: string;
2168
+ from: string;
2169
+ shift: boolean;
2170
+ } | undefined;
2171
+ items: () => {
2172
+ key: string;
2173
+ props: ListItemProps;
2174
+ el: HTMLElement;
2175
+ }[];
2176
+ focus(itemKey?: string): void;
2177
+ remember(itemKey: string): void;
2178
+ check: () => void;
2179
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
2180
+ };
2181
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
2182
+ pointermove(event: PointerEvent): void;
2183
+ pointerleave(): void;
2184
+ focusin(event: FocusEvent): void;
2185
+ focusout(event: FocusEvent, root: HTMLElement): void;
2186
+ /**
2187
+ * Keys pressed while nothing has focus (fresh page load, after closing a
2188
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
2189
+ * Enter opens it. Focus in an input or another control is left alone.
2190
+ */
2191
+ listenToPage(): () => void;
2192
+ };
2193
+ }>) => void;
2194
+ preview(next: ListOptions & {
2195
+ id: string;
2196
+ }): {
2197
+ stop: string | null;
2198
+ labels: string[];
2199
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2200
+ highlighted: string | null;
2201
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2202
+ pointerHidden: boolean;
2203
+ orientation: ListOrientation;
2204
+ } | undefined;
2205
+ view<T>(state: {
2206
+ stop: string | null;
2207
+ labels: string[];
2208
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2209
+ highlighted: string | null;
2210
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2211
+ pointerHidden: boolean;
2212
+ orientation: ListOrientation;
2213
+ }, read: () => T, around?: Record<string, object>): T;
2214
+ setOptions(next: ListOptions & {
2215
+ id: string;
2216
+ }): void;
2217
+ startState: (next: ListOptions & {
2218
+ id: string;
2219
+ }) => {
2220
+ stop: string | null;
2221
+ labels: string[];
2222
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2223
+ highlighted: string | null;
2224
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2225
+ pointerHidden: boolean;
2226
+ orientation: ListOrientation;
2227
+ };
2228
+ follow(current: () => ListOptions & {
2229
+ id: string;
2230
+ }): (state?: {
2231
+ stop: string | null;
2232
+ labels: string[];
2233
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2234
+ highlighted: string | null;
2235
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2236
+ pointerHidden: boolean;
2237
+ orientation: ListOrientation;
2238
+ } | undefined, before?: ListOptions | undefined) => Partial<{
2239
+ stop: string | null;
2240
+ labels: string[];
2241
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2242
+ highlighted: string | null;
2243
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2244
+ pointerHidden: boolean;
2245
+ orientation: ListOrientation;
2246
+ }> | undefined;
2247
+ destroy(): void;
2248
+ }) & {
2249
+ options: Record<string, _ui_sdk_core.PropSpec> | undefined;
2250
+ slots: {
2251
+ root: _ui_sdk_core.SlotDefinition<{
2252
+ stop: string | null;
2253
+ labels: string[];
2254
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2255
+ highlighted: string | null;
2256
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2257
+ pointerHidden: boolean;
2258
+ orientation: ListOrientation;
2259
+ }, {
2260
+ focus: (value?: string) => void;
2261
+ items: () => {
2262
+ value: string;
2263
+ label: string;
2264
+ }[];
2265
+ open(target: string): void;
2266
+ internal: {
2267
+ roving: {
2268
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
2269
+ tabIndex(state: {
2270
+ stop: string | null;
2271
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
2272
+ keydown(event: KeyboardEvent, el: HTMLElement): {
2273
+ key: string;
2274
+ from: string;
2275
+ shift: boolean;
2276
+ } | undefined;
2277
+ items: () => {
2278
+ key: string;
2279
+ props: ListItemProps;
2280
+ el: HTMLElement;
2281
+ }[];
2282
+ focus(itemKey?: string): void;
2283
+ remember(itemKey: string): void;
2284
+ check: () => void;
2285
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
2286
+ };
2287
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
2288
+ pointermove(event: PointerEvent): void;
2289
+ pointerleave(): void;
2290
+ focusin(event: FocusEvent): void;
2291
+ focusout(event: FocusEvent, root: HTMLElement): void;
2292
+ /**
2293
+ * Keys pressed while nothing has focus (fresh page load, after closing a
2294
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
2295
+ * Enter opens it. Focus in an input or another control is left alone.
2296
+ */
2297
+ listenToPage(): () => void;
2298
+ };
2299
+ }, object & _ui_sdk_core_renderer.BaseSlotProps, NoInfer<{
2300
+ orientation: ListOrientation;
2301
+ }>>;
2302
+ item: _ui_sdk_core.SlotDefinition<{
2303
+ stop: string | null;
2304
+ labels: string[];
2305
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2306
+ highlighted: string | null;
2307
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2308
+ pointerHidden: boolean;
2309
+ orientation: ListOrientation;
2310
+ }, {
2311
+ focus: (value?: string) => void;
2312
+ items: () => {
2313
+ value: string;
2314
+ label: string;
2315
+ }[];
2316
+ open(target: string): void;
2317
+ internal: {
2318
+ roving: {
2319
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
2320
+ tabIndex(state: {
2321
+ stop: string | null;
2322
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
2323
+ keydown(event: KeyboardEvent, el: HTMLElement): {
2324
+ key: string;
2325
+ from: string;
2326
+ shift: boolean;
2327
+ } | undefined;
2328
+ items: () => {
2329
+ key: string;
2330
+ props: ListItemProps;
2331
+ el: HTMLElement;
2332
+ }[];
2333
+ focus(itemKey?: string): void;
2334
+ remember(itemKey: string): void;
2335
+ check: () => void;
2336
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
2337
+ };
2338
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
2339
+ pointermove(event: PointerEvent): void;
2340
+ pointerleave(): void;
2341
+ focusin(event: FocusEvent): void;
2342
+ focusout(event: FocusEvent, root: HTMLElement): void;
2343
+ /**
2344
+ * Keys pressed while nothing has focus (fresh page load, after closing a
2345
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
2346
+ * Enter opens it. Focus in an input or another control is left alone.
2347
+ */
2348
+ listenToPage(): () => void;
2349
+ };
2350
+ }, NoInfer<ListItemProps> & _ui_sdk_core_renderer.BaseSlotProps, NoInfer<{
2351
+ highlighted: boolean;
2352
+ disabled: boolean;
2353
+ }>>;
2354
+ group: _ui_sdk_core.SlotDefinition<{
2355
+ stop: string | null;
2356
+ labels: string[];
2357
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2358
+ highlighted: string | null;
2359
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2360
+ pointerHidden: boolean;
2361
+ orientation: ListOrientation;
2362
+ }, {
2363
+ focus: (value?: string) => void;
2364
+ items: () => {
2365
+ value: string;
2366
+ label: string;
2367
+ }[];
2368
+ open(target: string): void;
2369
+ internal: {
2370
+ roving: {
2371
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
2372
+ tabIndex(state: {
2373
+ stop: string | null;
2374
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
2375
+ keydown(event: KeyboardEvent, el: HTMLElement): {
2376
+ key: string;
2377
+ from: string;
2378
+ shift: boolean;
2379
+ } | undefined;
2380
+ items: () => {
2381
+ key: string;
2382
+ props: ListItemProps;
2383
+ el: HTMLElement;
2384
+ }[];
2385
+ focus(itemKey?: string): void;
2386
+ remember(itemKey: string): void;
2387
+ check: () => void;
2388
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
2389
+ };
2390
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
2391
+ pointermove(event: PointerEvent): void;
2392
+ pointerleave(): void;
2393
+ focusin(event: FocusEvent): void;
2394
+ focusout(event: FocusEvent, root: HTMLElement): void;
2395
+ /**
2396
+ * Keys pressed while nothing has focus (fresh page load, after closing a
2397
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
2398
+ * Enter opens it. Focus in an input or another control is left alone.
2399
+ */
2400
+ listenToPage(): () => void;
2401
+ };
2402
+ }, NoInfer<{
2403
+ value?: string;
2404
+ }> & _ui_sdk_core_renderer.BaseSlotProps, {}>;
2405
+ label: _ui_sdk_core.SlotDefinition<{
2406
+ stop: string | null;
2407
+ labels: string[];
2408
+ /** The item shown as current: the hovered one, or the focused one while keys drive. */
2409
+ highlighted: string | null;
2410
+ /** True after arrow-key navigation until the mouse really moves, like cmdk. */
2411
+ pointerHidden: boolean;
2412
+ orientation: ListOrientation;
2413
+ }, {
2414
+ focus: (value?: string) => void;
2415
+ items: () => {
2416
+ value: string;
2417
+ label: string;
2418
+ }[];
2419
+ open(target: string): void;
2420
+ internal: {
2421
+ roving: {
2422
+ bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
2423
+ tabIndex(state: {
2424
+ stop: string | null;
2425
+ }, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): "0" | "-1";
2426
+ keydown(event: KeyboardEvent, el: HTMLElement): {
2427
+ key: string;
2428
+ from: string;
2429
+ shift: boolean;
2430
+ } | undefined;
2431
+ items: () => {
2432
+ key: string;
2433
+ props: ListItemProps;
2434
+ el: HTMLElement;
2435
+ }[];
2436
+ focus(itemKey?: string): void;
2437
+ remember(itemKey: string): void;
2438
+ check: () => void;
2439
+ stopFor: (preferred: (item: _ui_sdk_core.RovingFocusItem<ListItemProps>) => boolean) => string | undefined;
2440
+ };
2441
+ keydown(event: KeyboardEvent, el: HTMLElement): void;
2442
+ pointermove(event: PointerEvent): void;
2443
+ pointerleave(): void;
2444
+ focusin(event: FocusEvent): void;
2445
+ focusout(event: FocusEvent, root: HTMLElement): void;
2446
+ /**
2447
+ * Keys pressed while nothing has focus (fresh page load, after closing a
2448
+ * drawer) act on the hovered item, like cmdk: arrows move from it and
2449
+ * Enter opens it. Focus in an input or another control is left alone.
2450
+ */
2451
+ listenToPage(): () => void;
2452
+ };
2453
+ }, NoInfer<{
2454
+ value?: string;
2455
+ }> & _ui_sdk_core_renderer.BaseSlotProps, {}>;
2456
+ };
2457
+ };
2458
+ type ListSlot = SlotName<typeof list>;
2459
+ type ListPartProps<S extends ListSlot> = PropsOf<typeof list, S> & Omit<PartProps<"div", StateOf<typeof list, S>>, keyof PropsOf<typeof list, S>>;
2460
+ type ListRootProps = OptionsOf<typeof list> & Omit<PartProps<"div", StateOf<typeof list, "root">>, keyof OptionsOf<typeof list>>;
2461
+ /**
2462
+ * A keyboard-navigable collection: one Tab stop, arrows move between items,
2463
+ * Home/End jump to the ends, Enter/Space activate the focused item's `onClick`.
2464
+ * Works for rows (`vertical`), strips (`horizontal`) and wrapping card grids (`grid`).
2465
+ */
2466
+ declare function List({ className, ...props }: ListRootProps): React$1.JSX.Element;
2467
+ /**
2468
+ * How an item shows hover, keyboard focus, press and `active`. Colours come
2469
+ * from CSS variables, so a list can retint without new variants:
2470
+ * `--list-item-hover`, `--list-item-active`, `--list-item-ring`.
2471
+ */
2472
+ declare const listItemVariants: (props?: ({
2473
+ highlight?: "none" | "both" | "outline" | "background" | null | undefined;
2474
+ ring?: "inset" | "offset" | null | undefined;
2475
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
2476
+ type ListItemStyleProps = VariantProps<typeof listItemVariants> & {
2477
+ /** Marks the item that's open or current (e.g. the record shown in a drawer). Sets `aria-current` and `data-active`. */
2478
+ active?: boolean;
2479
+ };
2480
+ /** One focusable entry. Put the action in `onClick`; Enter and Space trigger it too. */
2481
+ declare function ListItem({ className, highlight, ring: ringPlacement, active, ...props }: ListPartProps<"item"> & ListItemStyleProps): React$1.JSX.Element;
2482
+ /** Groups items under a heading (e.g. a day) without breaking arrow navigation across groups. */
2483
+ declare function ListGroup({ className, ...props }: ListPartProps<"group">): React$1.JSX.Element;
2484
+ /** The visible name of its `ListGroup`; announced when focus enters the group. */
2485
+ declare function ListLabel({ className, ...props }: ListPartProps<"label">): React$1.JSX.Element;
2486
+
831
2487
  declare function MessageGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
832
2488
  declare function Message({ className, align, ...props }: React$1.ComponentProps<"div"> & {
833
2489
  align?: "start" | "end";
@@ -1137,4 +2793,45 @@ declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React$1.JSX.Elemen
1137
2793
  declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React$1.JSX.Element;
1138
2794
  declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
1139
2795
 
1140
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedDiv, type AnimatedTAGProps, Apple, AppleHelloEffectEnglish, AppleHelloEffectHindi, AppleHelloEffectSpanish, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlogCardAnimation, Bottom, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeBlock, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CustomRendererProps, DEFAULT_I18N, DEFAULT_OPERATORS, DashedSeparator, DataTable, DataTableBody, DataTableCell, DataTableEmptyBody, DataTableHeader, DataTablePagination, DataTableRow, DataTableSearchFilter, DataTableSkeleton, DataTableToolbarSection, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerDialogRoot as DrawerDialog, DrawerDialogBody, DrawerDialogClose, DrawerDialogContent, type DrawerDialogController, DrawerDialogDescription, DrawerDialogFooter, DrawerDialogHeader, type DrawerDialogProps, DrawerDialogTitle, DrawerDialogTrigger, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EASE_DRAWER, EASE_IN_OUT, EASE_OUT, EASE_OUT_CSS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FadeContainer, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type Filter, type FilterFieldConfig, type FilterFieldGroup, type FilterFieldsConfig, type FilterGroup, type FilterI18nConfig, type FilterOperator, type FilterOption, type FilterOptionListRenderProps, Filters, FiltersContent, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JellyAction, JellyBlob, JellyEmpty, type JellyEmptyProps, JellyGroup, JellyLink, JellyMascot, type JellyMascotConfig, JellyMini, type JellySize, Kbd, KbdGroup, Label, ListItemVariant, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeAppBridge, NumberStepper, OTPInput, type OTPInputProps, type OTPStatus, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, QuantityInput, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RollingNumber, SPRING_LAYOUT, SPRING_MOUSE, SPRING_PANEL, SPRING_PRESS, SPRING_SWAP, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShimmerSkeleton, type SkeletonProps as ShimmerSkeletonProps, Skeleton, SkeletonAvatar, SkeletonButton, type SkeletonProps, type SkeletonRounded, SkeletonText, type SkeletonVariant, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type SortableProps, SwipeAction, SwipeActions, SwipeContent, SwipeItem, SwipeRoot, type SwipeSide, type SwipeState, Switch, Tabs, TabsIcon, TabsList, TabsPanel, TabsTab, Textarea, ThemeSwitcher, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Top, activityItemAnimation, badgeVariants, buttonGroupVariants, buttonVariants, createDrawerDialogController, createFilter, createFilterGroup, fromLeftChildren, fromLeftVariant, fromRightVariant, fromTopVariant, getSkeletonVariantDuration, hamFastFadeContainer, headingFromLeft, kanbanOrderCardAnimation, kanbanOrderCardLayoutTransition, kanbanOrderCardReducedMotionAnimation, mobileNavItemSideways, opacityVariant, popUp, popUpFromBottomForText, resolveSkeletonA11yProps, searchBarSlideAnimation, skeletonRoundedClasses, skeletonVariantDefaultDuration, svgVariant, tabsVariants, useAutocompleteFilter, useCarousel, useComboboxAnchor, useDrawerDialog, useJellyMood };
2796
+ type Agent = ReturnType<(typeof _ui_sdk_react_agent)["createAgent"]>;
2797
+ type UiAgentBrief = {
2798
+ tag: string;
2799
+ slot?: string;
2800
+ role?: string;
2801
+ name?: string;
2802
+ state?: string[];
2803
+ };
2804
+ type UiAgentProbes = {
2805
+ /** Compact list of on-page ui-sdk components: ref, component, label, actions, value/open/checked. */
2806
+ snap: () => unknown[];
2807
+ /** The focused element as a small brief. */
2808
+ focus: () => UiAgentBrief | null;
2809
+ /** Briefs for every element matching `selector` (first `limit`). */
2810
+ state: (selector: string, limit?: number) => UiAgentBrief[];
2811
+ /** Dispatches keydown for each key on the focused element, returns the new focus. */
2812
+ keys: (...keys: string[]) => UiAgentBrief | null;
2813
+ };
2814
+ declare global {
2815
+ interface Window {
2816
+ agent?: Agent;
2817
+ ui?: UiAgentProbes;
2818
+ }
2819
+ }
2820
+ type UiAgentProps = {
2821
+ /**
2822
+ * Also run on a deployed (non-local) site. Off by default, so the agent only
2823
+ * loads in development or on localhost.
2824
+ */
2825
+ prod?: boolean;
2826
+ };
2827
+ /**
2828
+ * Exposes the ui-sdk agent (`window.agent`) and compact DOM probes
2829
+ * (`window.ui`) so a browser tool can check components as small JSON instead
2830
+ * of screenshots. Renders nothing; drop it once in the root layout.
2831
+ *
2832
+ * Runs automatically in development / on localhost. Pass `prod` to enable it
2833
+ * on a deployed site as well.
2834
+ */
2835
+ declare function UiAgent({ prod }: UiAgentProps): null;
2836
+
2837
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedDiv, type AnimatedTAGProps, Apple, AppleHelloEffectEnglish, AppleHelloEffectHindi, AppleHelloEffectSpanish, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlogCardAnimation, Bottom, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselDots, type CarouselDotsProps, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeBlock, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CustomRendererProps, DEFAULT_I18N, DEFAULT_OPERATORS, DashedSeparator, DataTable, DataTableBody, DataTableCell, DataTableEmptyBody, DataTableHeader, DataTablePagination, DataTableRow, DataTableSearchFilter, DataTableSkeleton, DataTableToolbarSection, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerDialogRoot as DrawerDialog, DrawerDialogBody, DrawerDialogClose, DrawerDialogContent, type DrawerDialogController, DrawerDialogDescription, DrawerDialogFooter, DrawerDialogHeader, type DrawerDialogProps, DrawerDialogTitle, DrawerDialogTrigger, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EASE_DRAWER, EASE_IN_OUT, EASE_OUT, EASE_OUT_CSS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FadeContainer, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type Filter, type FilterFieldConfig, type FilterFieldGroup, type FilterFieldsConfig, type FilterGroup, type FilterI18nConfig, type FilterOperator, type FilterOption, type FilterOptionListRenderProps, Filters, FiltersContent, Image, type ImageConfig, ImageFallback, type ImageLoader, ImagePlaceholder, type ImageProps, ImageProvider, ImageRoot, ImageSource, type ImageSrc, type ImageState, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JellyAction, JellyBlob, JellyEmpty, type JellyEmptyProps, JellyGroup, JellyLink, JellyMascot, type JellyMascotConfig, JellyMini, type JellySize, Kbd, KbdGroup, Label, List, type ListController, ListGroup, ListItem, ListItemVariant, ListLabel, type ListOptions, type ListOrientation, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeAppBridge, NumberStepper, OTPInput, type OTPInputProps, type OTPStatus, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, QuantityInput, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RollingNumber, SPRING_LAYOUT, SPRING_MOUSE, SPRING_PANEL, SPRING_PRESS, SPRING_SWAP, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShimmerSkeleton, type SkeletonProps as ShimmerSkeletonProps, Skeleton, SkeletonAvatar, SkeletonButton, type SkeletonProps, type SkeletonRounded, SkeletonText, type SkeletonVariant, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type SortableProps, SwipeAction, SwipeActions, SwipeContent, SwipeItem, SwipeRoot, type SwipeSide, type SwipeState, Switch, Tabs, TabsIcon, TabsList, TabsPanel, TabsTab, Textarea, ThemeSwitcher, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Top, UiAgent, type UiAgentBrief, type UiAgentProbes, type UiAgentProps, activityItemAnimation, badgeVariants, buttonGroupVariants, buttonVariants, createDrawerDialogController, createFilter, createFilterGroup, createListController, fromLeftChildren, fromLeftVariant, fromRightVariant, fromTopVariant, getSkeletonVariantDuration, hamFastFadeContainer, headingFromLeft, kanbanOrderCardAnimation, kanbanOrderCardLayoutTransition, kanbanOrderCardReducedMotionAnimation, listItemVariants, list as listPrimitive, mobileNavItemSideways, opacityVariant, popUp, popUpFromBottomForText, resolveSkeletonA11yProps, searchBarSlideAnimation, skeletonRoundedClasses, skeletonVariantDefaultDuration, svgVariant, tabsVariants, useAutocompleteFilter, useCarousel, useComboboxAnchor, useDrawerDialog, useJellyMood };