rockin 0.0.42 → 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.
- package/dist/ui/carousel.js +71 -1
- package/dist/ui/image.js +286 -66
- package/dist/ui/index.d.ts +495 -11
- package/dist/ui/index.js +4 -3
- package/dist/ui/list.js +32 -10
- package/dist/ui/ui-agent.js +81 -0
- package/package.json +1 -1
package/dist/ui/index.d.ts
CHANGED
|
@@ -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,7 +28,13 @@ 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
|
|
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';
|
|
@@ -37,10 +43,6 @@ import { Live, Direct } from './live.js';
|
|
|
37
43
|
import { Unneeded } from './roles.js';
|
|
38
44
|
import { Selects } from './selects.js';
|
|
39
45
|
import { Store } from './store.js';
|
|
40
|
-
import * as _ui_sdk_core_renderer from '@ui-sdk/core/renderer';
|
|
41
|
-
import * as _ui_sdk_core from '@ui-sdk/core';
|
|
42
|
-
import { OptionsOf, StateOf, SlotName, PropsOf } from '@ui-sdk/core';
|
|
43
|
-
import { PartProps } from '@ui-sdk/react/primitive';
|
|
44
46
|
import { MessageScroller as MessageScroller$1 } from '@shadcn/react/message-scroller';
|
|
45
47
|
export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from '@shadcn/react/message-scroller';
|
|
46
48
|
import { Popover as Popover$1 } from '@base-ui/react/popover';
|
|
@@ -57,6 +59,7 @@ import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
|
57
59
|
import { tabs } from '@ui-sdk/core/tabs';
|
|
58
60
|
export { TabsController, TabsOrientation, TabsValueChangeReason, createTabsController } from '@ui-sdk/core/tabs';
|
|
59
61
|
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
62
|
+
import * as _ui_sdk_react_agent from '@ui-sdk/react/agent';
|
|
60
63
|
|
|
61
64
|
declare function Accordion({ className, ...props }: Accordion$1.Root.Props): React$1.JSX.Element;
|
|
62
65
|
declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props): React$1.JSX.Element;
|
|
@@ -221,6 +224,9 @@ type CarouselContextProps = {
|
|
|
221
224
|
scrollNext: () => void;
|
|
222
225
|
canScrollPrev: boolean;
|
|
223
226
|
canScrollNext: boolean;
|
|
227
|
+
selectedIndex: number;
|
|
228
|
+
snapCount: number;
|
|
229
|
+
scrollTo: (index: number) => void;
|
|
224
230
|
} & CarouselProps;
|
|
225
231
|
declare function useCarousel(): CarouselContextProps;
|
|
226
232
|
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React$1.ComponentProps<"div"> & CarouselProps): React$1.JSX.Element;
|
|
@@ -228,6 +234,11 @@ declare function CarouselContent({ className, ...props }: React$1.ComponentProps
|
|
|
228
234
|
declare function CarouselItem({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
229
235
|
declare function CarouselPrevious({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
|
|
230
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;
|
|
231
242
|
|
|
232
243
|
declare const THEMES: {
|
|
233
244
|
readonly light: "";
|
|
@@ -728,14 +739,341 @@ declare function Filters<T = unknown>({ filters, fields, onChange, className, va
|
|
|
728
739
|
declare const createFilter: <T = unknown>(field: string, operator?: string, values?: T[]) => Filter<T>;
|
|
729
740
|
declare const createFilterGroup: <T = unknown>(id: string, label: string, fields: FilterFieldConfig<T>[], initialFilters?: Filter<T>[]) => FilterGroup<T>;
|
|
730
741
|
|
|
731
|
-
|
|
732
|
-
|
|
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;
|
|
733
1056
|
wrapper?: string;
|
|
1057
|
+
fill?: boolean;
|
|
734
1058
|
showSkeleton?: boolean;
|
|
735
|
-
|
|
1059
|
+
preload?: boolean;
|
|
1060
|
+
priority?: boolean;
|
|
1061
|
+
quality?: number;
|
|
1062
|
+
unoptimized?: boolean;
|
|
1063
|
+
loader?: ImageLoader;
|
|
1064
|
+
retry?: number;
|
|
1065
|
+
retryDelay?: number;
|
|
736
1066
|
fallback?: ReactNode;
|
|
1067
|
+
children?: ReactNode;
|
|
1068
|
+
render?: RenderProp<AvatarState>;
|
|
1069
|
+
onStateChange?: (state: ImageState) => void;
|
|
737
1070
|
};
|
|
738
|
-
declare function
|
|
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;
|
|
739
1077
|
|
|
740
1078
|
declare function Input({ className, type, inputMode, onWheel, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
741
1079
|
|
|
@@ -1014,6 +1352,11 @@ type ListOrientation = "vertical" | "horizontal" | "grid";
|
|
|
1014
1352
|
type ListController = {
|
|
1015
1353
|
/** Focuses an item by `value`, or the item holding the tab stop, or the first. */
|
|
1016
1354
|
focus: (value?: string) => void;
|
|
1355
|
+
items: () => {
|
|
1356
|
+
value: string;
|
|
1357
|
+
label: string;
|
|
1358
|
+
}[];
|
|
1359
|
+
open: (target: string) => void;
|
|
1017
1360
|
};
|
|
1018
1361
|
type ListOptions = {
|
|
1019
1362
|
/** Arrow-key axis. Defaults to `vertical`. */
|
|
@@ -1046,6 +1389,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1046
1389
|
};
|
|
1047
1390
|
api: {
|
|
1048
1391
|
focus: (value?: string) => void;
|
|
1392
|
+
items: () => {
|
|
1393
|
+
value: string;
|
|
1394
|
+
label: string;
|
|
1395
|
+
}[];
|
|
1396
|
+
open(target: string): void;
|
|
1049
1397
|
internal: {
|
|
1050
1398
|
roving: {
|
|
1051
1399
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1091,6 +1439,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1091
1439
|
orientation: ListOrientation;
|
|
1092
1440
|
}, {
|
|
1093
1441
|
focus: (value?: string) => void;
|
|
1442
|
+
items: () => {
|
|
1443
|
+
value: string;
|
|
1444
|
+
label: string;
|
|
1445
|
+
}[];
|
|
1446
|
+
open(target: string): void;
|
|
1094
1447
|
internal: {
|
|
1095
1448
|
roving: {
|
|
1096
1449
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1137,6 +1490,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1137
1490
|
orientation: ListOrientation;
|
|
1138
1491
|
}, {
|
|
1139
1492
|
focus: (value?: string) => void;
|
|
1493
|
+
items: () => {
|
|
1494
|
+
value: string;
|
|
1495
|
+
label: string;
|
|
1496
|
+
}[];
|
|
1497
|
+
open(target: string): void;
|
|
1140
1498
|
internal: {
|
|
1141
1499
|
roving: {
|
|
1142
1500
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1184,6 +1542,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1184
1542
|
orientation: ListOrientation;
|
|
1185
1543
|
}, {
|
|
1186
1544
|
focus: (value?: string) => void;
|
|
1545
|
+
items: () => {
|
|
1546
|
+
value: string;
|
|
1547
|
+
label: string;
|
|
1548
|
+
}[];
|
|
1549
|
+
open(target: string): void;
|
|
1187
1550
|
internal: {
|
|
1188
1551
|
roving: {
|
|
1189
1552
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1230,6 +1593,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1230
1593
|
orientation: ListOrientation;
|
|
1231
1594
|
}, {
|
|
1232
1595
|
focus: (value?: string) => void;
|
|
1596
|
+
items: () => {
|
|
1597
|
+
value: string;
|
|
1598
|
+
label: string;
|
|
1599
|
+
}[];
|
|
1600
|
+
open(target: string): void;
|
|
1233
1601
|
internal: {
|
|
1234
1602
|
roving: {
|
|
1235
1603
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1282,6 +1650,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1282
1650
|
subscribe: (listener: _ui_sdk_core_renderer.Listener) => () => void;
|
|
1283
1651
|
readonly api: {
|
|
1284
1652
|
focus: (value?: string) => void;
|
|
1653
|
+
items: () => {
|
|
1654
|
+
value: string;
|
|
1655
|
+
label: string;
|
|
1656
|
+
}[];
|
|
1657
|
+
open(target: string): void;
|
|
1285
1658
|
internal: {
|
|
1286
1659
|
roving: {
|
|
1287
1660
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1327,6 +1700,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1327
1700
|
orientation: ListOrientation;
|
|
1328
1701
|
}, {
|
|
1329
1702
|
focus: (value?: string) => void;
|
|
1703
|
+
items: () => {
|
|
1704
|
+
value: string;
|
|
1705
|
+
label: string;
|
|
1706
|
+
}[];
|
|
1707
|
+
open(target: string): void;
|
|
1330
1708
|
internal: {
|
|
1331
1709
|
roving: {
|
|
1332
1710
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1373,6 +1751,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1373
1751
|
orientation: ListOrientation;
|
|
1374
1752
|
}, {
|
|
1375
1753
|
focus: (value?: string) => void;
|
|
1754
|
+
items: () => {
|
|
1755
|
+
value: string;
|
|
1756
|
+
label: string;
|
|
1757
|
+
}[];
|
|
1758
|
+
open(target: string): void;
|
|
1376
1759
|
internal: {
|
|
1377
1760
|
roving: {
|
|
1378
1761
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1420,6 +1803,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1420
1803
|
orientation: ListOrientation;
|
|
1421
1804
|
}, {
|
|
1422
1805
|
focus: (value?: string) => void;
|
|
1806
|
+
items: () => {
|
|
1807
|
+
value: string;
|
|
1808
|
+
label: string;
|
|
1809
|
+
}[];
|
|
1810
|
+
open(target: string): void;
|
|
1423
1811
|
internal: {
|
|
1424
1812
|
roving: {
|
|
1425
1813
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1466,6 +1854,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1466
1854
|
orientation: ListOrientation;
|
|
1467
1855
|
}, {
|
|
1468
1856
|
focus: (value?: string) => void;
|
|
1857
|
+
items: () => {
|
|
1858
|
+
value: string;
|
|
1859
|
+
label: string;
|
|
1860
|
+
}[];
|
|
1861
|
+
open(target: string): void;
|
|
1469
1862
|
internal: {
|
|
1470
1863
|
roving: {
|
|
1471
1864
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1512,6 +1905,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1512
1905
|
orientation: ListOrientation;
|
|
1513
1906
|
}, {
|
|
1514
1907
|
focus: (value?: string) => void;
|
|
1908
|
+
items: () => {
|
|
1909
|
+
value: string;
|
|
1910
|
+
label: string;
|
|
1911
|
+
}[];
|
|
1912
|
+
open(target: string): void;
|
|
1515
1913
|
internal: {
|
|
1516
1914
|
roving: {
|
|
1517
1915
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1556,6 +1954,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1556
1954
|
orientation: ListOrientation;
|
|
1557
1955
|
}, {
|
|
1558
1956
|
focus: (value?: string) => void;
|
|
1957
|
+
items: () => {
|
|
1958
|
+
value: string;
|
|
1959
|
+
label: string;
|
|
1960
|
+
}[];
|
|
1961
|
+
open(target: string): void;
|
|
1559
1962
|
internal: {
|
|
1560
1963
|
roving: {
|
|
1561
1964
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1602,6 +2005,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1602
2005
|
orientation: ListOrientation;
|
|
1603
2006
|
}, {
|
|
1604
2007
|
focus: (value?: string) => void;
|
|
2008
|
+
items: () => {
|
|
2009
|
+
value: string;
|
|
2010
|
+
label: string;
|
|
2011
|
+
}[];
|
|
2012
|
+
open(target: string): void;
|
|
1605
2013
|
internal: {
|
|
1606
2014
|
roving: {
|
|
1607
2015
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1649,6 +2057,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1649
2057
|
orientation: ListOrientation;
|
|
1650
2058
|
}, {
|
|
1651
2059
|
focus: (value?: string) => void;
|
|
2060
|
+
items: () => {
|
|
2061
|
+
value: string;
|
|
2062
|
+
label: string;
|
|
2063
|
+
}[];
|
|
2064
|
+
open(target: string): void;
|
|
1652
2065
|
internal: {
|
|
1653
2066
|
roving: {
|
|
1654
2067
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1695,6 +2108,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1695
2108
|
orientation: ListOrientation;
|
|
1696
2109
|
}, {
|
|
1697
2110
|
focus: (value?: string) => void;
|
|
2111
|
+
items: () => {
|
|
2112
|
+
value: string;
|
|
2113
|
+
label: string;
|
|
2114
|
+
}[];
|
|
2115
|
+
open(target: string): void;
|
|
1698
2116
|
internal: {
|
|
1699
2117
|
roving: {
|
|
1700
2118
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1734,6 +2152,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1734
2152
|
}[S]>>;
|
|
1735
2153
|
use: (feature: _ui_sdk_core_renderer.Feature<{
|
|
1736
2154
|
focus: (value?: string) => void;
|
|
2155
|
+
items: () => {
|
|
2156
|
+
value: string;
|
|
2157
|
+
label: string;
|
|
2158
|
+
}[];
|
|
2159
|
+
open(target: string): void;
|
|
1737
2160
|
internal: {
|
|
1738
2161
|
roving: {
|
|
1739
2162
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1835,6 +2258,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1835
2258
|
orientation: ListOrientation;
|
|
1836
2259
|
}, {
|
|
1837
2260
|
focus: (value?: string) => void;
|
|
2261
|
+
items: () => {
|
|
2262
|
+
value: string;
|
|
2263
|
+
label: string;
|
|
2264
|
+
}[];
|
|
2265
|
+
open(target: string): void;
|
|
1838
2266
|
internal: {
|
|
1839
2267
|
roving: {
|
|
1840
2268
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1881,6 +2309,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1881
2309
|
orientation: ListOrientation;
|
|
1882
2310
|
}, {
|
|
1883
2311
|
focus: (value?: string) => void;
|
|
2312
|
+
items: () => {
|
|
2313
|
+
value: string;
|
|
2314
|
+
label: string;
|
|
2315
|
+
}[];
|
|
2316
|
+
open(target: string): void;
|
|
1884
2317
|
internal: {
|
|
1885
2318
|
roving: {
|
|
1886
2319
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1928,6 +2361,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1928
2361
|
orientation: ListOrientation;
|
|
1929
2362
|
}, {
|
|
1930
2363
|
focus: (value?: string) => void;
|
|
2364
|
+
items: () => {
|
|
2365
|
+
value: string;
|
|
2366
|
+
label: string;
|
|
2367
|
+
}[];
|
|
2368
|
+
open(target: string): void;
|
|
1931
2369
|
internal: {
|
|
1932
2370
|
roving: {
|
|
1933
2371
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -1974,6 +2412,11 @@ declare const list: ((initialOptions: ListOptions & {
|
|
|
1974
2412
|
orientation: ListOrientation;
|
|
1975
2413
|
}, {
|
|
1976
2414
|
focus: (value?: string) => void;
|
|
2415
|
+
items: () => {
|
|
2416
|
+
value: string;
|
|
2417
|
+
label: string;
|
|
2418
|
+
}[];
|
|
2419
|
+
open(target: string): void;
|
|
1977
2420
|
internal: {
|
|
1978
2421
|
roving: {
|
|
1979
2422
|
bind(el: HTMLElement, part: _ui_sdk_core.RovingFocusItem<ListItemProps>): () => void;
|
|
@@ -2350,4 +2793,45 @@ declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React$1.JSX.Elemen
|
|
|
2350
2793
|
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React$1.JSX.Element;
|
|
2351
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;
|
|
2352
2795
|
|
|
2353
|
-
|
|
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 };
|