@inkeep/cxkit-primitives 0.5.91 → 0.5.93
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/atoms/dialog.cjs +1 -1
- package/dist/atoms/dialog.js +78 -68
- package/dist/atoms/portal.cjs +1 -1
- package/dist/atoms/select.cjs +1 -0
- package/dist/atoms/select.js +787 -0
- package/dist/atoms/shadow/create.cjs +1 -1
- package/dist/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/components/embedded-chat/use-inkeep-chat.js +71 -71
- package/dist/components/embedded-chat.cjs +4 -4
- package/dist/components/embedded-chat.js +895 -895
- package/dist/components/intelligent-form.cjs +1 -1
- package/dist/components/intelligent-form.js +282 -282
- package/dist/index.d.cts +267 -3
- package/dist/index.d.ts +267 -3
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/dist/providers/chat-events-provider.cjs +1 -1
- package/dist/providers/chat-events-provider.js +45 -43
- package/dist/providers/conversation-provider.cjs +1 -1
- package/dist/providers/conversation-provider.js +18 -17
- package/package.json +9 -5
package/dist/index.d.cts
CHANGED
|
@@ -23,6 +23,7 @@ import { FeebackReason } from '@inkeep/cxkit-types';
|
|
|
23
23
|
import { FeedbackItemType } from '@inkeep/cxkit-types';
|
|
24
24
|
import { FeedbackType } from '@inkeep/cxkit-types';
|
|
25
25
|
import { FieldErrors } from 'react-hook-form';
|
|
26
|
+
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
26
27
|
import { FormField } from '@inkeep/cxkit-types';
|
|
27
28
|
import { FormHTMLAttributes } from 'react';
|
|
28
29
|
import { ForwardRefExoticComponent } from 'react';
|
|
@@ -50,6 +51,7 @@ import { MessageAction } from '@inkeep/cxkit-types';
|
|
|
50
51
|
import { MessageAttachment } from '@inkeep/cxkit-types';
|
|
51
52
|
import { ModalViewTypes } from '@inkeep/cxkit-types';
|
|
52
53
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
54
|
+
import * as PopperPrimitive from '@radix-ui/react-popper';
|
|
53
55
|
import { Portal as Portal_2 } from '@radix-ui/react-portal';
|
|
54
56
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
55
57
|
import { PropsWithChildren } from 'react';
|
|
@@ -61,7 +63,6 @@ import { RefAttributes } from 'react';
|
|
|
61
63
|
import { RefObject } from 'react';
|
|
62
64
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
63
65
|
import { SearchHit } from '@inkeep/cxkit-types';
|
|
64
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
65
66
|
import { SetStateAction } from 'react';
|
|
66
67
|
import { SourceItem } from '@inkeep/cxkit-types';
|
|
67
68
|
import { SVGProps } from 'react';
|
|
@@ -319,6 +320,8 @@ export declare const aiSearchComponentIds: {
|
|
|
319
320
|
|
|
320
321
|
declare type AnyString = string & {};
|
|
321
322
|
|
|
323
|
+
declare const Arrow: React_2.ForwardRefExoticComponent<SelectArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
324
|
+
|
|
322
325
|
export declare type AttachmentItemContextValue = {
|
|
323
326
|
attachment: MessageAttachment;
|
|
324
327
|
};
|
|
@@ -1218,6 +1221,8 @@ export declare interface ContainerSize {
|
|
|
1218
1221
|
|
|
1219
1222
|
declare const Content: React_2.ForwardRefExoticComponent<DialogContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1220
1223
|
|
|
1224
|
+
declare const Content_2: React_2.ForwardRefExoticComponent<SelectContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1225
|
+
|
|
1221
1226
|
declare type CookieData = GlobalCookieData & PerInstanceCookieData;
|
|
1222
1227
|
|
|
1223
1228
|
declare type CookieKey = keyof CookieData;
|
|
@@ -1226,6 +1231,8 @@ declare type CopyFn = (text: string) => void;
|
|
|
1226
1231
|
|
|
1227
1232
|
declare const createDialogScope: CreateScope;
|
|
1228
1233
|
|
|
1234
|
+
declare const createSelectScope: CreateScope;
|
|
1235
|
+
|
|
1229
1236
|
export declare function CustomIcon({ iconKey, ...props }: CustomIconProps): JSX.Element;
|
|
1230
1237
|
|
|
1231
1238
|
export declare interface CustomIconProps {
|
|
@@ -1551,8 +1558,12 @@ declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogTriggerProp
|
|
|
1551
1558
|
declare interface DialogTriggerProps extends PrimitiveButtonProps {
|
|
1552
1559
|
}
|
|
1553
1560
|
|
|
1561
|
+
declare type Direction = 'ltr' | 'rtl';
|
|
1562
|
+
|
|
1554
1563
|
declare type DismissableLayerProps = React_2.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
1555
1564
|
|
|
1565
|
+
declare type DismissableLayerProps_2 = React_2.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
1566
|
+
|
|
1556
1567
|
declare type DivProps = React_2.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
1557
1568
|
|
|
1558
1569
|
export declare namespace EmbeddedChatPrimitive {
|
|
@@ -2726,6 +2737,8 @@ export declare const FeedbackProvider: React.FC<{
|
|
|
2726
2737
|
children: React.ReactNode;
|
|
2727
2738
|
}>;
|
|
2728
2739
|
|
|
2740
|
+
declare type FocusScopeProps = React_2.ComponentPropsWithoutRef<typeof FocusScope>;
|
|
2741
|
+
|
|
2729
2742
|
declare type FormErrors = Record<'title' | 'content', string | undefined>;
|
|
2730
2743
|
|
|
2731
2744
|
export declare interface FormFieldContextValue extends FormFieldCtx {
|
|
@@ -2751,6 +2764,8 @@ declare interface GlobalCookieData {
|
|
|
2751
2764
|
userId?: string | null;
|
|
2752
2765
|
}
|
|
2753
2766
|
|
|
2767
|
+
declare const Group: React_2.ForwardRefExoticComponent<SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2768
|
+
|
|
2754
2769
|
declare interface HelpCallToActions {
|
|
2755
2770
|
pinned: GetHelpOption[];
|
|
2756
2771
|
unpinned: GetHelpOption[];
|
|
@@ -2767,6 +2782,8 @@ export declare type HTMLIkpProps<T extends keyof JSX_2.IntrinsicElements> = HTML
|
|
|
2767
2782
|
|
|
2768
2783
|
export declare type HTMLProps<T extends keyof JSX_2.IntrinsicElements> = ComponentPropsWithoutRef<T>;
|
|
2769
2784
|
|
|
2785
|
+
declare const Icon: React_2.ForwardRefExoticComponent<SelectIconProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
2786
|
+
|
|
2770
2787
|
export declare type IdentificationType = 'ANONYMOUS' | 'COOKIED' | 'ID_PROVIDED' | 'TOKEN';
|
|
2771
2788
|
|
|
2772
2789
|
export declare const ikp: IkpFactory;
|
|
@@ -2790,6 +2807,7 @@ export declare interface InkeepConversationContextValue {
|
|
|
2790
2807
|
conversation: ConversationResponse;
|
|
2791
2808
|
setConversation: React.Dispatch<React.SetStateAction<ConversationResponse>>;
|
|
2792
2809
|
chatId: string | undefined;
|
|
2810
|
+
isSharedChat: boolean;
|
|
2793
2811
|
resetConversation: () => void;
|
|
2794
2812
|
setExternalChatId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
2795
2813
|
}
|
|
@@ -3141,8 +3159,16 @@ export declare interface IntelligentFormProviderProps {
|
|
|
3141
3159
|
|
|
3142
3160
|
export declare const isString: (v: any) => v is string;
|
|
3143
3161
|
|
|
3162
|
+
declare const Item: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3163
|
+
|
|
3164
|
+
declare const ItemIndicator: React_2.ForwardRefExoticComponent<SelectItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
3165
|
+
|
|
3166
|
+
declare const ItemText: React_2.ForwardRefExoticComponent<SelectItemTextProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
3167
|
+
|
|
3144
3168
|
export declare const jsxFactory: () => IkpFactory;
|
|
3145
3169
|
|
|
3170
|
+
declare const Label: React_2.ForwardRefExoticComponent<SelectLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3171
|
+
|
|
3146
3172
|
declare interface LinkProps extends ComponentPropsWithRef<'a'> {
|
|
3147
3173
|
/**
|
|
3148
3174
|
* If `true`, the link will open in new tab
|
|
@@ -3279,10 +3305,16 @@ export declare interface PolymorphicProps {
|
|
|
3279
3305
|
asChild?: boolean;
|
|
3280
3306
|
}
|
|
3281
3307
|
|
|
3308
|
+
declare type PopperArrowProps = React_2.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
3309
|
+
|
|
3310
|
+
declare type PopperContentProps = React_2.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
|
3311
|
+
|
|
3282
3312
|
export declare function Portal(props: PortalProps): JSX_2.Element;
|
|
3283
3313
|
|
|
3284
3314
|
declare const Portal_3: React_2.FC<DialogPortalProps>;
|
|
3285
3315
|
|
|
3316
|
+
declare const Portal_4: React_2.FC<SelectPortalProps>;
|
|
3317
|
+
|
|
3286
3318
|
export declare interface PortalProps {
|
|
3287
3319
|
children: React.ReactNode;
|
|
3288
3320
|
target?: React.RefObject<HTMLElement>;
|
|
@@ -3292,6 +3324,8 @@ export declare interface PortalProps {
|
|
|
3292
3324
|
|
|
3293
3325
|
declare type PortalProps_2 = React_2.ComponentPropsWithoutRef<typeof Portal_2>;
|
|
3294
3326
|
|
|
3327
|
+
declare type PortalProps_3 = React_2.ComponentPropsWithoutRef<typeof Portal_2>;
|
|
3328
|
+
|
|
3295
3329
|
export declare const PortalWithTheme: ({ children, ...props }: PortalProps) => JSX.Element;
|
|
3296
3330
|
|
|
3297
3331
|
declare type PossibleRef<T> = React_2.Ref<T | null> | undefined;
|
|
@@ -3381,6 +3415,8 @@ declare const PrimitiveBotHeadingName: ForwardRefExoticComponent< PolymorphicPro
|
|
|
3381
3415
|
|
|
3382
3416
|
declare type PrimitiveButtonProps = React_2.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
3383
3417
|
|
|
3418
|
+
declare type PrimitiveButtonProps_2 = React_2.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
3419
|
+
|
|
3384
3420
|
declare const PrimitiveChatAction: ForwardRefExoticComponent< PolymorphicProps & Omit<TooltipPrimitive.TooltipTriggerProps & RefAttributes<HTMLButtonElement>, "_id"> & Partial<Pick<TooltipPrimitive.TooltipTriggerProps & RefAttributes<HTMLButtonElement>, "_id">>>;
|
|
3385
3421
|
|
|
3386
3422
|
declare const PrimitiveChatActionFeedback: ForwardRefExoticComponent< PolymorphicProps & Omit<TooltipPrimitive.TooltipContentProps & RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<TooltipPrimitive.TooltipContentProps & RefAttributes<HTMLDivElement>, "_id">>>;
|
|
@@ -3429,6 +3465,8 @@ declare const PrimitiveDisclaimerTrigger: ForwardRefExoticComponent< Polymorphic
|
|
|
3429
3465
|
|
|
3430
3466
|
declare type PrimitiveDivProps = React_2.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
3431
3467
|
|
|
3468
|
+
declare type PrimitiveDivProps_2 = React_2.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
3469
|
+
|
|
3432
3470
|
declare const PrimitiveFeedbackForm: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id"> & Partial<Pick< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id">>>;
|
|
3433
3471
|
|
|
3434
3472
|
declare const PrimitiveFeedbackItem: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
@@ -3477,9 +3515,25 @@ declare const PrimitiveFormFieldLabel: ForwardRefExoticComponent< PolymorphicPro
|
|
|
3477
3515
|
|
|
3478
3516
|
declare const PrimitiveFormFieldLabel_2: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "_id"> & Partial<Pick< DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "_id">>>;
|
|
3479
3517
|
|
|
3480
|
-
declare const PrimitiveFormFieldSelect: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.
|
|
3518
|
+
declare const PrimitiveFormFieldSelect: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectSharedProps & {
|
|
3519
|
+
value?: string;
|
|
3520
|
+
defaultValue?: string;
|
|
3521
|
+
onValueChange?(value: string): void;
|
|
3522
|
+
}, "_id"> & Partial<Pick<SelectPrimitive.SelectSharedProps & {
|
|
3523
|
+
value?: string;
|
|
3524
|
+
defaultValue?: string;
|
|
3525
|
+
onValueChange?(value: string): void;
|
|
3526
|
+
}, "_id">>>;
|
|
3481
3527
|
|
|
3482
|
-
declare const PrimitiveFormFieldSelect_2: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.
|
|
3528
|
+
declare const PrimitiveFormFieldSelect_2: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectSharedProps & {
|
|
3529
|
+
value?: string;
|
|
3530
|
+
defaultValue?: string;
|
|
3531
|
+
onValueChange?(value: string): void;
|
|
3532
|
+
}, "_id"> & Partial<Pick<SelectPrimitive.SelectSharedProps & {
|
|
3533
|
+
value?: string;
|
|
3534
|
+
defaultValue?: string;
|
|
3535
|
+
onValueChange?(value: string): void;
|
|
3536
|
+
}, "_id">>>;
|
|
3483
3537
|
|
|
3484
3538
|
declare const PrimitiveFormFieldSelectValue: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectValueProps & RefAttributes<HTMLSpanElement>, "_id"> & Partial<Pick<SelectPrimitive.SelectValueProps & RefAttributes<HTMLSpanElement>, "_id">>>;
|
|
3485
3539
|
|
|
@@ -3750,6 +3804,8 @@ declare const PrimitiveSourcesList: ForwardRefExoticComponent< PolymorphicProps
|
|
|
3750
3804
|
|
|
3751
3805
|
declare const PrimitiveSourceTitle: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
|
|
3752
3806
|
|
|
3807
|
+
declare type PrimitiveSpanProps = React_2.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
3808
|
+
|
|
3753
3809
|
declare const PrimitiveSuccess: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
3754
3810
|
|
|
3755
3811
|
declare const PrimitiveSuccessHeading: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id">>>;
|
|
@@ -3776,6 +3832,8 @@ declare const ResultsTabList: ForwardRefExoticComponent< PolymorphicProps & Omit
|
|
|
3776
3832
|
|
|
3777
3833
|
declare const Root: React_2.FC<DialogProps>;
|
|
3778
3834
|
|
|
3835
|
+
declare const Root_2: React_2.FC<SelectProps>;
|
|
3836
|
+
|
|
3779
3837
|
export declare function RootProvider(props: RootProviderProps): JSX.Element;
|
|
3780
3838
|
|
|
3781
3839
|
export declare interface RootProviderProps {
|
|
@@ -3784,6 +3842,8 @@ export declare interface RootProviderProps {
|
|
|
3784
3842
|
componentType: (typeof WebWidgetInteractionType)[keyof typeof WebWidgetInteractionType];
|
|
3785
3843
|
}
|
|
3786
3844
|
|
|
3845
|
+
declare const ScrollDownButton: React_2.ForwardRefExoticComponent<SelectScrollDownButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3846
|
+
|
|
3787
3847
|
declare interface ScrollToBottomOptions {
|
|
3788
3848
|
/** Threshold in pixels from bottom to consider "near bottom" */
|
|
3789
3849
|
threshold?: number;
|
|
@@ -3791,6 +3851,8 @@ declare interface ScrollToBottomOptions {
|
|
|
3791
3851
|
interactionTimeout?: number;
|
|
3792
3852
|
}
|
|
3793
3853
|
|
|
3854
|
+
declare const ScrollUpButton: React_2.ForwardRefExoticComponent<SelectScrollUpButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3855
|
+
|
|
3794
3856
|
export declare const SearchBarComponentIds: {
|
|
3795
3857
|
searchBar__Container: "searchBar__Container";
|
|
3796
3858
|
searchBar__Button: "searchBar__Button";
|
|
@@ -3854,8 +3916,204 @@ declare interface SearchProviderProps extends Pick<EmbeddedSearchProviderProps,
|
|
|
3854
3916
|
children: React.ReactNode;
|
|
3855
3917
|
}
|
|
3856
3918
|
|
|
3919
|
+
declare const Select: React_2.FC<SelectProps>;
|
|
3920
|
+
|
|
3921
|
+
declare const SelectArrow: React_2.ForwardRefExoticComponent<SelectArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
3922
|
+
|
|
3923
|
+
declare interface SelectArrowProps extends PopperArrowProps {
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
declare const SelectContent: React_2.ForwardRefExoticComponent<SelectContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3927
|
+
|
|
3928
|
+
declare interface SelectContentImplProps extends Omit<SelectPopperPositionProps, keyof SelectPopperPrivateProps>, Omit<SelectItemAlignedPositionProps, keyof SelectPopperPrivateProps> {
|
|
3929
|
+
/**
|
|
3930
|
+
* Event handler called when auto-focusing on close.
|
|
3931
|
+
* Can be prevented.
|
|
3932
|
+
*/
|
|
3933
|
+
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
|
3934
|
+
/**
|
|
3935
|
+
* Event handler called when the escape key is down.
|
|
3936
|
+
* Can be prevented.
|
|
3937
|
+
*/
|
|
3938
|
+
onEscapeKeyDown?: DismissableLayerProps_2['onEscapeKeyDown'];
|
|
3939
|
+
/**
|
|
3940
|
+
* Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
3941
|
+
* Can be prevented.
|
|
3942
|
+
*/
|
|
3943
|
+
onPointerDownOutside?: DismissableLayerProps_2['onPointerDownOutside'];
|
|
3944
|
+
position?: 'item-aligned' | 'popper';
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
declare interface SelectContentProps extends SelectContentImplProps {
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3950
|
+
declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3951
|
+
|
|
3952
|
+
declare interface SelectGroupProps extends PrimitiveDivProps_2 {
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
declare const SelectIcon: React_2.ForwardRefExoticComponent<SelectIconProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
3956
|
+
|
|
3957
|
+
declare interface SelectIconProps extends PrimitiveSpanProps {
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3960
|
+
declare const SelectItem: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3961
|
+
|
|
3962
|
+
declare interface SelectItemAlignedPositionProps extends PrimitiveDivProps_2, SelectPopperPrivateProps {
|
|
3963
|
+
}
|
|
3964
|
+
|
|
3965
|
+
declare const SelectItemIndicator: React_2.ForwardRefExoticComponent<SelectItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
3966
|
+
|
|
3967
|
+
declare interface SelectItemIndicatorProps extends PrimitiveSpanProps {
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
declare interface SelectItemProps extends PrimitiveDivProps_2 {
|
|
3971
|
+
value: string;
|
|
3972
|
+
disabled?: boolean;
|
|
3973
|
+
textValue?: string;
|
|
3974
|
+
}
|
|
3975
|
+
|
|
3976
|
+
declare const SelectItemText: React_2.ForwardRefExoticComponent<SelectItemTextProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
3977
|
+
|
|
3978
|
+
declare interface SelectItemTextProps extends PrimitiveSpanProps {
|
|
3979
|
+
}
|
|
3980
|
+
|
|
3981
|
+
declare const SelectLabel: React_2.ForwardRefExoticComponent<SelectLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3982
|
+
|
|
3983
|
+
declare interface SelectLabelProps extends PrimitiveDivProps_2 {
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
declare interface SelectPopperPositionProps extends PopperContentProps, SelectPopperPrivateProps {
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
declare type SelectPopperPrivateProps = {
|
|
3990
|
+
onPlaced?: PopperContentProps['onPlaced'];
|
|
3991
|
+
};
|
|
3992
|
+
|
|
3993
|
+
declare const SelectPortal: React_2.FC<SelectPortalProps>;
|
|
3994
|
+
|
|
3995
|
+
declare interface SelectPortalProps {
|
|
3996
|
+
children?: React_2.ReactNode;
|
|
3997
|
+
/**
|
|
3998
|
+
* Specify a container element to portal the content into.
|
|
3999
|
+
*/
|
|
4000
|
+
container?: PortalProps_3['container'];
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
declare namespace SelectPrimitive {
|
|
4004
|
+
export {
|
|
4005
|
+
SelectSharedProps,
|
|
4006
|
+
createSelectScope,
|
|
4007
|
+
Select,
|
|
4008
|
+
SelectTrigger,
|
|
4009
|
+
SelectValue,
|
|
4010
|
+
SelectIcon,
|
|
4011
|
+
SelectPortal,
|
|
4012
|
+
SelectContent,
|
|
4013
|
+
SelectViewport,
|
|
4014
|
+
SelectGroup,
|
|
4015
|
+
SelectLabel,
|
|
4016
|
+
SelectItem,
|
|
4017
|
+
SelectItemText,
|
|
4018
|
+
SelectItemIndicator,
|
|
4019
|
+
SelectScrollUpButton,
|
|
4020
|
+
SelectScrollDownButton,
|
|
4021
|
+
SelectSeparator,
|
|
4022
|
+
SelectArrow,
|
|
4023
|
+
Root_2 as Root,
|
|
4024
|
+
Trigger_2 as Trigger,
|
|
4025
|
+
Value,
|
|
4026
|
+
Icon,
|
|
4027
|
+
Portal_4 as Portal,
|
|
4028
|
+
Content_2 as Content,
|
|
4029
|
+
Viewport,
|
|
4030
|
+
Group,
|
|
4031
|
+
Label,
|
|
4032
|
+
Item,
|
|
4033
|
+
ItemText,
|
|
4034
|
+
ItemIndicator,
|
|
4035
|
+
ScrollUpButton,
|
|
4036
|
+
ScrollDownButton,
|
|
4037
|
+
Separator,
|
|
4038
|
+
Arrow,
|
|
4039
|
+
SelectProps,
|
|
4040
|
+
SelectTriggerProps,
|
|
4041
|
+
SelectValueProps,
|
|
4042
|
+
SelectIconProps,
|
|
4043
|
+
SelectPortalProps,
|
|
4044
|
+
SelectContentProps,
|
|
4045
|
+
SelectViewportProps,
|
|
4046
|
+
SelectGroupProps,
|
|
4047
|
+
SelectLabelProps,
|
|
4048
|
+
SelectItemProps,
|
|
4049
|
+
SelectItemTextProps,
|
|
4050
|
+
SelectItemIndicatorProps,
|
|
4051
|
+
SelectScrollUpButtonProps,
|
|
4052
|
+
SelectScrollDownButtonProps,
|
|
4053
|
+
SelectSeparatorProps,
|
|
4054
|
+
SelectArrowProps
|
|
4055
|
+
}
|
|
4056
|
+
}
|
|
4057
|
+
|
|
4058
|
+
declare type SelectProps = SelectSharedProps & {
|
|
4059
|
+
value?: string;
|
|
4060
|
+
defaultValue?: string;
|
|
4061
|
+
onValueChange?(value: string): void;
|
|
4062
|
+
};
|
|
4063
|
+
|
|
4064
|
+
declare interface SelectScrollButtonImplProps extends PrimitiveDivProps_2 {
|
|
4065
|
+
onAutoScroll(): void;
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
declare const SelectScrollDownButton: React_2.ForwardRefExoticComponent<SelectScrollDownButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
4069
|
+
|
|
4070
|
+
declare interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4073
|
+
declare const SelectScrollUpButton: React_2.ForwardRefExoticComponent<SelectScrollUpButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
4074
|
+
|
|
4075
|
+
declare interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
declare const SelectSeparator: React_2.ForwardRefExoticComponent<SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
4079
|
+
|
|
4080
|
+
declare interface SelectSeparatorProps extends PrimitiveDivProps_2 {
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4083
|
+
declare interface SelectSharedProps {
|
|
4084
|
+
children?: React_2.ReactNode;
|
|
4085
|
+
open?: boolean;
|
|
4086
|
+
defaultOpen?: boolean;
|
|
4087
|
+
onOpenChange?(open: boolean): void;
|
|
4088
|
+
dir?: Direction;
|
|
4089
|
+
name?: string;
|
|
4090
|
+
autoComplete?: string;
|
|
4091
|
+
disabled?: boolean;
|
|
4092
|
+
required?: boolean;
|
|
4093
|
+
form?: string;
|
|
4094
|
+
}
|
|
4095
|
+
|
|
4096
|
+
declare const SelectTrigger: React_2.ForwardRefExoticComponent<SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
4097
|
+
|
|
4098
|
+
declare interface SelectTriggerProps extends PrimitiveButtonProps_2 {
|
|
4099
|
+
}
|
|
4100
|
+
|
|
4101
|
+
declare const SelectValue: React_2.ForwardRefExoticComponent<SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
4102
|
+
|
|
4103
|
+
declare interface SelectValueProps extends Omit<PrimitiveSpanProps, 'placeholder'> {
|
|
4104
|
+
placeholder?: React_2.ReactNode;
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
declare const SelectViewport: React_2.ForwardRefExoticComponent<SelectViewportProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
4108
|
+
|
|
4109
|
+
declare interface SelectViewportProps extends PrimitiveDivProps_2 {
|
|
4110
|
+
nonce?: string;
|
|
4111
|
+
}
|
|
4112
|
+
|
|
3857
4113
|
declare const SendButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id">>>;
|
|
3858
4114
|
|
|
4115
|
+
declare const Separator: React_2.ForwardRefExoticComponent<SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
4116
|
+
|
|
3859
4117
|
declare type SettleFn = () => void;
|
|
3860
4118
|
|
|
3861
4119
|
export declare const ShadowContext: Context<ShadowContextValue | undefined>;
|
|
@@ -3999,6 +4257,8 @@ export declare type TransformedSourceItem = TransformedSource & {
|
|
|
3999
4257
|
|
|
4000
4258
|
declare const Trigger: React_2.ForwardRefExoticComponent<DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
4001
4259
|
|
|
4260
|
+
declare const Trigger_2: React_2.ForwardRefExoticComponent<SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
4261
|
+
|
|
4002
4262
|
export declare const useAttachmentItem: () => AttachmentItemContextValue;
|
|
4003
4263
|
|
|
4004
4264
|
export declare const useAttachmentsBar: () => AttachmentsBarContextValue;
|
|
@@ -4301,6 +4561,10 @@ export declare const useUser: () => UserContextValue;
|
|
|
4301
4561
|
|
|
4302
4562
|
export declare const useWidget: () => WidgetContextValue | undefined;
|
|
4303
4563
|
|
|
4564
|
+
declare const Value: React_2.ForwardRefExoticComponent<SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
4565
|
+
|
|
4566
|
+
declare const Viewport: React_2.ForwardRefExoticComponent<SelectViewportProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
4567
|
+
|
|
4304
4568
|
export declare const WebWidgetInteractionType: {
|
|
4305
4569
|
readonly ChatButton: "ChatButton";
|
|
4306
4570
|
readonly CustomTrigger: "CustomTrigger";
|