@wistia/ui 0.22.8 → 0.22.9-beta.014159f2.bdc0210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +190 -76
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +590 -456
- package/dist/index.js.map +1 -1
- package/package.json +24 -23
package/dist/index.d.ts
CHANGED
|
@@ -5,17 +5,10 @@ import * as _$styled_components0 from "styled-components";
|
|
|
5
5
|
import { css } from "styled-components";
|
|
6
6
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
import { FileAmountLimitValidator, FileSizeValidator, FileTypeValidator, ImageDimensionsValidator, PersistentFileAmountLimitValidator } from "use-file-picker/validators";
|
|
8
|
-
import { CollapsibleContentProps } from "@radix-ui/react-collapsible";
|
|
9
8
|
import { Color } from "culori/fn";
|
|
10
|
-
import { ToggleGroupSingleProps } from "@radix-ui/react-toggle-group";
|
|
11
|
-
import * as _$_radix_ui_react_popover0 from "@radix-ui/react-popover";
|
|
12
|
-
import { Anchor, Close, PopoverContentProps as PopoverContentProps$1, Portal, Root as Root$2, Trigger as Trigger$1 } from "@radix-ui/react-popover";
|
|
13
9
|
import * as Ariakit from "@ariakit/react";
|
|
14
|
-
import { DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps } from "@radix-ui/react-dropdown-menu";
|
|
15
10
|
import { Schema } from "yup";
|
|
16
|
-
import { HoverCardContentProps } from "@radix-ui/react-hover-card";
|
|
17
11
|
import ReactMarkdown from "react-markdown";
|
|
18
|
-
import { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps } from "@radix-ui/react-tabs";
|
|
19
12
|
import { ExtractContentTypeFromConfig, FilePickerReturnTypes, ImperativeFilePickerReturnTypes, UseFilePickerConfig, useImperativeFilePickerConfig } from "use-file-picker/types";
|
|
20
13
|
export * from "use-file-picker/types";
|
|
21
14
|
|
|
@@ -616,7 +609,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
|
|
|
616
609
|
* Changes the secondary icon for different use cases
|
|
617
610
|
*/
|
|
618
611
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
619
|
-
} & Omit<ButtonAsButtonProps, "
|
|
612
|
+
} & Omit<ButtonAsButtonProps, "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "size" | "unstyled" | "variant">, "ref"> | Omit<{
|
|
620
613
|
/**
|
|
621
614
|
* @override
|
|
622
615
|
* The text to display for the ActionButton
|
|
@@ -645,7 +638,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
|
|
|
645
638
|
* Changes the secondary icon for different use cases
|
|
646
639
|
*/
|
|
647
640
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
648
|
-
} & Omit<ButtonAsLinkProps, "
|
|
641
|
+
} & Omit<ButtonAsLinkProps, "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "size" | "unstyled" | "variant">, "ref">) & _$react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
649
642
|
//#endregion
|
|
650
643
|
//#region src/components/Avatar/Avatar.d.ts
|
|
651
644
|
type AvatarInstanceType = 'image' | 'initials';
|
|
@@ -1231,7 +1224,7 @@ declare const Center: _$react.ForwardRefExoticComponent<Omit<_$react.DetailedHTM
|
|
|
1231
1224
|
//#endregion
|
|
1232
1225
|
//#region src/components/Checkbox/Checkbox.d.ts
|
|
1233
1226
|
type CheckboxSizeType = 'lg' | 'md' | 'sm';
|
|
1234
|
-
declare const Checkbox: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "
|
|
1227
|
+
declare const Checkbox: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "size" | "onChange" | "hideLabel"> & {
|
|
1235
1228
|
/**
|
|
1236
1229
|
* Indicates the state of the checkbox
|
|
1237
1230
|
*/
|
|
@@ -1340,7 +1333,7 @@ type CollapsibleTriggerProps = {
|
|
|
1340
1333
|
* A trigger element that will toggle the collapsible content.
|
|
1341
1334
|
* Usually a [Button](?path=/docs/components-button--docs).
|
|
1342
1335
|
*/
|
|
1343
|
-
children:
|
|
1336
|
+
children: ReactElement;
|
|
1344
1337
|
};
|
|
1345
1338
|
declare const CollapsibleTrigger: ({
|
|
1346
1339
|
children
|
|
@@ -1638,7 +1631,7 @@ declare const CollapsibleTriggerIcon: {
|
|
|
1638
1631
|
};
|
|
1639
1632
|
//#endregion
|
|
1640
1633
|
//#region src/components/Collapsible/CollapsibleContent.d.ts
|
|
1641
|
-
type CollapsibleContentProps
|
|
1634
|
+
type CollapsibleContentProps = {
|
|
1642
1635
|
/**
|
|
1643
1636
|
* The number of lines to clamp the content to when `Collapsible` is closed.
|
|
1644
1637
|
*/
|
|
@@ -1646,12 +1639,12 @@ type CollapsibleContentProps$1 = {
|
|
|
1646
1639
|
/**
|
|
1647
1640
|
* The content that will be hidden when `Collapsible` is closed.
|
|
1648
1641
|
*/
|
|
1649
|
-
children:
|
|
1642
|
+
children: ReactNode;
|
|
1650
1643
|
};
|
|
1651
1644
|
declare const CollapsibleContent: ({
|
|
1652
1645
|
clamp,
|
|
1653
1646
|
children
|
|
1654
|
-
}: CollapsibleContentProps
|
|
1647
|
+
}: CollapsibleContentProps) => _$react_jsx_runtime0.JSX.Element;
|
|
1655
1648
|
//#endregion
|
|
1656
1649
|
//#region src/components/ColorPicker/ColorGrid.d.ts
|
|
1657
1650
|
type ColorGridProps = PropsWithChildren & {
|
|
@@ -3095,8 +3088,7 @@ type GridProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3095
3088
|
declare const Grid: (<C extends ElementType = "div">(props: PolymorphicComponentProps<C, GridProps>) => _$react.ReactElement | null) & UnknownRecord;
|
|
3096
3089
|
//#endregion
|
|
3097
3090
|
//#region src/components/PreviewCard/PreviewCard.d.ts
|
|
3098
|
-
type
|
|
3099
|
-
type PreviewCardProps = ContentProps$1 & {
|
|
3091
|
+
type PreviewCardProps = {
|
|
3100
3092
|
/**
|
|
3101
3093
|
* The content of the preview card
|
|
3102
3094
|
*/
|
|
@@ -3113,7 +3105,7 @@ type PreviewCardProps = ContentProps$1 & {
|
|
|
3113
3105
|
* The [Link](?path=/docs/components-link--docs) that opens the preview card when hovered.
|
|
3114
3106
|
* Preview cards should only be used on links—do not use on non-interactive elements (e.g. buttons or plain text).
|
|
3115
3107
|
*/
|
|
3116
|
-
trigger:
|
|
3108
|
+
trigger: ReactElement;
|
|
3117
3109
|
/**
|
|
3118
3110
|
* If true, the preview card will use the unstyled Content component instead of StyledContent
|
|
3119
3111
|
*/
|
|
@@ -3136,6 +3128,14 @@ type PreviewCardProps = ContentProps$1 & {
|
|
|
3136
3128
|
* Force the preview card to be open without user interaction (for debugging and CI)
|
|
3137
3129
|
*/
|
|
3138
3130
|
forceOpen?: boolean;
|
|
3131
|
+
/**
|
|
3132
|
+
* The preferred side of the trigger to render on
|
|
3133
|
+
*/
|
|
3134
|
+
side?: 'bottom' | 'left' | 'right' | 'top';
|
|
3135
|
+
/**
|
|
3136
|
+
* The preferred alignment against the trigger
|
|
3137
|
+
*/
|
|
3138
|
+
align?: 'center' | 'end' | 'start';
|
|
3139
3139
|
};
|
|
3140
3140
|
/**
|
|
3141
3141
|
* Preview cards reveal content on hover. **Everything in the card must also exist at the destination**—never put information only in the preview. This pattern is for sighted-only, so treat the card as a preview, not a source of truth.
|
|
@@ -3152,6 +3152,8 @@ declare const PreviewCard: {
|
|
|
3152
3152
|
closeDelay,
|
|
3153
3153
|
colorScheme,
|
|
3154
3154
|
forceOpen,
|
|
3155
|
+
side,
|
|
3156
|
+
align,
|
|
3155
3157
|
...props
|
|
3156
3158
|
}: PreviewCardProps): JSX.Element;
|
|
3157
3159
|
displayName: string;
|
|
@@ -3270,7 +3272,7 @@ type InputClickToCopyProps = Omit<InputProps, 'autoSelect' | 'disabled' | 'right
|
|
|
3270
3272
|
/**
|
|
3271
3273
|
* Provides a readonly input that copies the text to the clipboard when clicked.
|
|
3272
3274
|
*/
|
|
3273
|
-
declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "
|
|
3275
|
+
declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "rightIcon" | "disabled" | "type" | "value" | "autoSelect"> & {
|
|
3274
3276
|
/**
|
|
3275
3277
|
* When disabled, the copy action will not be triggered
|
|
3276
3278
|
*/
|
|
@@ -3299,7 +3301,7 @@ type InputPasswordProps = Omit<InputProps, 'leftIcon' | 'monospace' | 'rightIcon
|
|
|
3299
3301
|
/**
|
|
3300
3302
|
* A password input component with a toggle button to show or hide the password text.
|
|
3301
3303
|
*/
|
|
3302
|
-
declare const InputPassword: _$react.ForwardRefExoticComponent<Omit<InputProps, "
|
|
3304
|
+
declare const InputPassword: _$react.ForwardRefExoticComponent<Omit<InputProps, "leftIcon" | "rightIcon" | "type" | "monospace"> & {
|
|
3303
3305
|
/**
|
|
3304
3306
|
* Set the disabled state of the input
|
|
3305
3307
|
*/
|
|
@@ -3480,10 +3482,6 @@ type MenuProps = MenuControlProps & {
|
|
|
3480
3482
|
* The label for the trigger element, this is ignored if `trigger` is defined
|
|
3481
3483
|
*/
|
|
3482
3484
|
label?: string;
|
|
3483
|
-
/**
|
|
3484
|
-
* Callback for when the user clicks or focuses outside of the menu
|
|
3485
|
-
*/
|
|
3486
|
-
onInteractOutside?: DropdownMenuContentProps['onInteractOutside'];
|
|
3487
3485
|
/**
|
|
3488
3486
|
* The side the menu appears on, relative to the trigger
|
|
3489
3487
|
*/
|
|
@@ -3605,7 +3603,7 @@ type MenuItemButtonProps = ButtonProps & {
|
|
|
3605
3603
|
};
|
|
3606
3604
|
//#endregion
|
|
3607
3605
|
//#region src/components/Menu/MenuItem.d.ts
|
|
3608
|
-
declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<
|
|
3606
|
+
declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<BaseButtonProps & _$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3609
3607
|
href?: never;
|
|
3610
3608
|
type?: "button" | "reset" | "submit";
|
|
3611
3609
|
children: _$react.ReactNode;
|
|
@@ -3627,7 +3625,16 @@ declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<DropdownMenuItem
|
|
|
3627
3625
|
* Treats the menu item as a link when provided
|
|
3628
3626
|
*/
|
|
3629
3627
|
href?: MenuItemButtonProps["href"];
|
|
3630
|
-
|
|
3628
|
+
/**
|
|
3629
|
+
* Whether the menu should close when this item is clicked
|
|
3630
|
+
* @default true
|
|
3631
|
+
*/
|
|
3632
|
+
closeOnClick?: boolean;
|
|
3633
|
+
/**
|
|
3634
|
+
* Callback when the item is selected
|
|
3635
|
+
*/
|
|
3636
|
+
onSelect?: (event: SyntheticEvent) => void;
|
|
3637
|
+
}, "ref"> | Omit<BaseButtonProps & _$react.ClassAttributes<HTMLAnchorElement> & _$react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3631
3638
|
beforeAction?: (() => Promise<void>) | (() => void);
|
|
3632
3639
|
children: _$react.ReactNode;
|
|
3633
3640
|
colorScheme?: ColorSchemeTypes;
|
|
@@ -3663,7 +3670,16 @@ declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<DropdownMenuItem
|
|
|
3663
3670
|
* Treats the menu item as a link when provided
|
|
3664
3671
|
*/
|
|
3665
3672
|
href?: MenuItemButtonProps["href"];
|
|
3666
|
-
|
|
3673
|
+
/**
|
|
3674
|
+
* Whether the menu should close when this item is clicked
|
|
3675
|
+
* @default true
|
|
3676
|
+
*/
|
|
3677
|
+
closeOnClick?: boolean;
|
|
3678
|
+
/**
|
|
3679
|
+
* Callback when the item is selected
|
|
3680
|
+
*/
|
|
3681
|
+
onSelect?: (event: SyntheticEvent) => void;
|
|
3682
|
+
}, "ref"> | Omit<BaseButtonProps & _$react.ClassAttributes<HTMLAnchorElement> & _$react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3667
3683
|
beforeAction?: (() => Promise<void>) | (() => void);
|
|
3668
3684
|
children: _$react.ReactNode;
|
|
3669
3685
|
colorScheme?: ColorSchemeTypes;
|
|
@@ -3705,6 +3721,15 @@ declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<DropdownMenuItem
|
|
|
3705
3721
|
* Treats the menu item as a link when provided
|
|
3706
3722
|
*/
|
|
3707
3723
|
href?: MenuItemButtonProps["href"];
|
|
3724
|
+
/**
|
|
3725
|
+
* Whether the menu should close when this item is clicked
|
|
3726
|
+
* @default true
|
|
3727
|
+
*/
|
|
3728
|
+
closeOnClick?: boolean;
|
|
3729
|
+
/**
|
|
3730
|
+
* Callback when the item is selected
|
|
3731
|
+
*/
|
|
3732
|
+
onSelect?: (event: SyntheticEvent) => void;
|
|
3708
3733
|
}, "ref">) & _$react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
3709
3734
|
//#endregion
|
|
3710
3735
|
//#region src/components/Menu/MenuItemLabel.d.ts
|
|
@@ -3730,15 +3755,19 @@ declare const MenuItemDescription: ({
|
|
|
3730
3755
|
}: MenuItemDescriptionProps) => _$react_jsx_runtime0.JSX.Element;
|
|
3731
3756
|
//#endregion
|
|
3732
3757
|
//#region src/components/Menu/MenuRadioGroup.d.ts
|
|
3733
|
-
type MenuRadioGroupProps =
|
|
3758
|
+
type MenuRadioGroupProps = {
|
|
3734
3759
|
/**
|
|
3735
3760
|
* The radio items
|
|
3736
3761
|
*/
|
|
3737
3762
|
children: ReactNode | ReactNode[];
|
|
3738
3763
|
/**
|
|
3739
|
-
*
|
|
3764
|
+
* The value of the selected radio item
|
|
3740
3765
|
*/
|
|
3741
|
-
|
|
3766
|
+
value?: string;
|
|
3767
|
+
/**
|
|
3768
|
+
* Callback when the value changes
|
|
3769
|
+
*/
|
|
3770
|
+
onValueChange?: (value: string) => void;
|
|
3742
3771
|
};
|
|
3743
3772
|
declare const MenuRadioGroup: {
|
|
3744
3773
|
({
|
|
@@ -3749,7 +3778,7 @@ declare const MenuRadioGroup: {
|
|
|
3749
3778
|
};
|
|
3750
3779
|
//#endregion
|
|
3751
3780
|
//#region src/components/Menu/RadioMenuItem.d.ts
|
|
3752
|
-
type RadioMenuItemProps =
|
|
3781
|
+
type RadioMenuItemProps = MenuItemButtonProps & {
|
|
3753
3782
|
/**
|
|
3754
3783
|
* Optional `Icon` to use as the indicator that the radio item is selected. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
3755
3784
|
*/
|
|
@@ -3757,7 +3786,7 @@ type RadioMenuItemProps = DropdownMenuRadioItemProps & MenuItemButtonProps & {
|
|
|
3757
3786
|
/**
|
|
3758
3787
|
* The value of the item
|
|
3759
3788
|
*/
|
|
3760
|
-
value:
|
|
3789
|
+
value: string;
|
|
3761
3790
|
/**
|
|
3762
3791
|
* @ignore
|
|
3763
3792
|
*/
|
|
@@ -3770,6 +3799,10 @@ type RadioMenuItemProps = DropdownMenuRadioItemProps & MenuItemButtonProps & {
|
|
|
3770
3799
|
* @ignore
|
|
3771
3800
|
*/
|
|
3772
3801
|
ref?: never;
|
|
3802
|
+
/**
|
|
3803
|
+
* Callback when the item is selected
|
|
3804
|
+
*/
|
|
3805
|
+
onSelect?: (event: SyntheticEvent) => void;
|
|
3773
3806
|
};
|
|
3774
3807
|
declare const RadioMenuItem: {
|
|
3775
3808
|
({
|
|
@@ -3782,7 +3815,7 @@ declare const RadioMenuItem: {
|
|
|
3782
3815
|
};
|
|
3783
3816
|
//#endregion
|
|
3784
3817
|
//#region src/components/Menu/CheckboxMenuItem.d.ts
|
|
3785
|
-
type CheckboxMenuItemProps =
|
|
3818
|
+
type CheckboxMenuItemProps = MenuItemButtonProps & {
|
|
3786
3819
|
/** Callback to fire when the checked status changes */onCheckedChange: (checked: boolean) => void;
|
|
3787
3820
|
/**
|
|
3788
3821
|
* Optional `Icon` to use as the indicator that the checkbox item is selected. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
@@ -3804,6 +3837,10 @@ type CheckboxMenuItemProps = DropdownMenuCheckboxItemProps & MenuItemButtonProps
|
|
|
3804
3837
|
* @ignore
|
|
3805
3838
|
*/
|
|
3806
3839
|
ref?: never;
|
|
3840
|
+
/**
|
|
3841
|
+
* Callback when the item is selected
|
|
3842
|
+
*/
|
|
3843
|
+
onSelect?: (event: SyntheticEvent) => void;
|
|
3807
3844
|
};
|
|
3808
3845
|
declare const CheckboxMenuItem: {
|
|
3809
3846
|
({
|
|
@@ -4048,8 +4085,7 @@ type UncontrolledPopoverProps = {
|
|
|
4048
4085
|
onOpenChange?: never;
|
|
4049
4086
|
};
|
|
4050
4087
|
type PopoverControlProps = ControlledPopoverProps | UncontrolledPopoverProps;
|
|
4051
|
-
type
|
|
4052
|
-
type PopoverProps = ContentProps & PopoverControlProps & {
|
|
4088
|
+
type PopoverProps = PopoverControlProps & {
|
|
4053
4089
|
/**
|
|
4054
4090
|
* The content of the popover
|
|
4055
4091
|
*/
|
|
@@ -4073,13 +4109,13 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
4073
4109
|
/**
|
|
4074
4110
|
* An interactive element. Most commonly a [Button](?path=/docs/components-button--docs) or [IconButton]([Button](?path=/docs/components-iconbutton--docs)).
|
|
4075
4111
|
*/
|
|
4076
|
-
trigger:
|
|
4112
|
+
trigger: ReactElement;
|
|
4077
4113
|
/**
|
|
4078
4114
|
* If true, the popover will use the unstyled Content component instead of StyledContent
|
|
4079
4115
|
*/
|
|
4080
4116
|
unstyled?: boolean;
|
|
4081
4117
|
/**
|
|
4082
|
-
* If true, the popover will use a custom
|
|
4118
|
+
* If true, the popover will use a custom arrow on the trigger
|
|
4083
4119
|
*/
|
|
4084
4120
|
withArrow?: boolean;
|
|
4085
4121
|
/**
|
|
@@ -4091,6 +4127,18 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
4091
4127
|
* Inline styles applied to the popover popup
|
|
4092
4128
|
*/
|
|
4093
4129
|
style?: CSSProperties;
|
|
4130
|
+
/**
|
|
4131
|
+
* The preferred side of the trigger to render on
|
|
4132
|
+
*/
|
|
4133
|
+
side?: 'bottom' | 'left' | 'right' | 'top';
|
|
4134
|
+
/**
|
|
4135
|
+
* The preferred alignment against the trigger
|
|
4136
|
+
*/
|
|
4137
|
+
align?: 'center' | 'end' | 'start';
|
|
4138
|
+
/**
|
|
4139
|
+
* Whether the trigger should be treated as a native button (default: true)
|
|
4140
|
+
*/
|
|
4141
|
+
nativeButton?: boolean;
|
|
4094
4142
|
};
|
|
4095
4143
|
/**
|
|
4096
4144
|
* Displays rich content in a portal, triggered by a button.
|
|
@@ -4114,19 +4162,31 @@ declare const Popover: {
|
|
|
4114
4162
|
isAnimated,
|
|
4115
4163
|
colorScheme,
|
|
4116
4164
|
style,
|
|
4165
|
+
side,
|
|
4166
|
+
align,
|
|
4167
|
+
nativeButton,
|
|
4117
4168
|
...props
|
|
4118
4169
|
}: PopoverProps): JSX.Element;
|
|
4119
4170
|
displayName: string;
|
|
4120
4171
|
};
|
|
4121
4172
|
//#endregion
|
|
4122
4173
|
//#region src/components/Popover/PopoverAnchor.d.ts
|
|
4123
|
-
type PopoverAnchorProps =
|
|
4174
|
+
type PopoverAnchorProps = {
|
|
4175
|
+
children: ReactNode;
|
|
4176
|
+
};
|
|
4124
4177
|
/**
|
|
4125
4178
|
* Positions the popover relative to an element other than the trigger. Useful
|
|
4126
4179
|
* when the element the user interacts with (e.g. a text input) is separate
|
|
4127
4180
|
* from what the popover attaches to.
|
|
4181
|
+
*
|
|
4182
|
+
* Wrap the anchor element and nest `PopoverTrigger` inside it.
|
|
4128
4183
|
*/
|
|
4129
|
-
declare const PopoverAnchor:
|
|
4184
|
+
declare const PopoverAnchor: {
|
|
4185
|
+
({
|
|
4186
|
+
children
|
|
4187
|
+
}: PopoverAnchorProps): JSX.Element;
|
|
4188
|
+
displayName: string;
|
|
4189
|
+
};
|
|
4130
4190
|
//#endregion
|
|
4131
4191
|
//#region src/components/Popover/PopoverArrow.d.ts
|
|
4132
4192
|
type PopoverArrowProps = {
|
|
@@ -4143,13 +4203,25 @@ declare const PopoverArrow: {
|
|
|
4143
4203
|
};
|
|
4144
4204
|
//#endregion
|
|
4145
4205
|
//#region src/components/Popover/PopoverClose.d.ts
|
|
4146
|
-
type PopoverCloseProps = ComponentPropsWithoutRef<
|
|
4206
|
+
type PopoverCloseProps = Omit<ComponentPropsWithoutRef<'button'>, 'render'> & {
|
|
4207
|
+
/**
|
|
4208
|
+
* A React element to merge close behavior onto.
|
|
4209
|
+
* When provided, the close button renders this element instead of a plain `<button>`.
|
|
4210
|
+
*/
|
|
4211
|
+
render?: ReactElement;
|
|
4212
|
+
};
|
|
4147
4213
|
/**
|
|
4148
4214
|
* An element that closes the popover when activated. Defaults to a `<button>`;
|
|
4149
|
-
* pass `
|
|
4215
|
+
* pass `render` to merge the close behavior onto a single child element. For
|
|
4150
4216
|
* a pre-styled icon close button, use `PopoverCloseButton`.
|
|
4151
4217
|
*/
|
|
4152
|
-
declare const PopoverClose: _$react.ForwardRefExoticComponent<Omit<_$
|
|
4218
|
+
declare const PopoverClose: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "render"> & {
|
|
4219
|
+
/**
|
|
4220
|
+
* A React element to merge close behavior onto.
|
|
4221
|
+
* When provided, the close button renders this element instead of a plain `<button>`.
|
|
4222
|
+
*/
|
|
4223
|
+
render?: ReactElement;
|
|
4224
|
+
} & _$react.RefAttributes<HTMLButtonElement>>;
|
|
4153
4225
|
//#endregion
|
|
4154
4226
|
//#region src/components/Popover/PopoverCloseButton.d.ts
|
|
4155
4227
|
type PopoverCloseButtonProps = {
|
|
@@ -4167,44 +4239,48 @@ declare const PopoverCloseButton: {
|
|
|
4167
4239
|
};
|
|
4168
4240
|
//#endregion
|
|
4169
4241
|
//#region src/components/Popover/PopoverContent.d.ts
|
|
4170
|
-
type PopoverContentProps =
|
|
4242
|
+
type PopoverContentProps = {
|
|
4171
4243
|
/** Sets the [color scheme](/docs/color-schemes) applied inside the portal. */colorScheme?: ColorSchemeTypes; /** Remove the default surface styling (padding, background, border, etc.). */
|
|
4172
4244
|
unstyled?: boolean; /** Applied as `max-width` on the popover surface. Pass `"none"` to uncap. */
|
|
4173
4245
|
maxWidth?: string; /** Applied as `max-height` on the popover surface. Pass `"none"` to uncap. */
|
|
4174
|
-
maxHeight?: string;
|
|
4246
|
+
maxHeight?: string; /** Which side of the trigger to render the popover on. */
|
|
4247
|
+
side?: 'bottom' | 'left' | 'right' | 'top'; /** How to align the popover relative to the specified side. */
|
|
4248
|
+
align?: 'center' | 'end' | 'start'; /** Distance between the anchor and the popup in pixels. */
|
|
4249
|
+
sideOffset?: number; /** Inline styles applied to the popup. */
|
|
4250
|
+
style?: CSSProperties; /** The popover content. */
|
|
4251
|
+
children?: React.ReactNode; /** Role applied to the popup element. */
|
|
4252
|
+
role?: string;
|
|
4175
4253
|
};
|
|
4176
4254
|
/**
|
|
4177
4255
|
* The styled popover surface. Place inside a `PopoverRoot` (typically wrapped
|
|
4178
|
-
* in a `PopoverPortal`).
|
|
4179
|
-
* dismissal/focus event handlers such as `onPointerDownOutside`,
|
|
4180
|
-
* `onOpenAutoFocus`, and `onCloseAutoFocus`.
|
|
4256
|
+
* in a `PopoverPortal`). Wraps a `Positioner` and `Popup` internally.
|
|
4181
4257
|
*/
|
|
4182
|
-
declare const PopoverContent: _$react.ForwardRefExoticComponent<
|
|
4183
|
-
/** Sets the [color scheme](/docs/color-schemes) applied inside the portal. */colorScheme?: ColorSchemeTypes; /** Remove the default surface styling (padding, background, border, etc.). */
|
|
4184
|
-
unstyled?: boolean; /** Applied as `max-width` on the popover surface. Pass `"none"` to uncap. */
|
|
4185
|
-
maxWidth?: string; /** Applied as `max-height` on the popover surface. Pass `"none"` to uncap. */
|
|
4186
|
-
maxHeight?: string;
|
|
4187
|
-
} & _$react.RefAttributes<HTMLDivElement>>;
|
|
4258
|
+
declare const PopoverContent: _$react.ForwardRefExoticComponent<PopoverContentProps & _$react.RefAttributes<HTMLDivElement>>;
|
|
4188
4259
|
//#endregion
|
|
4189
4260
|
//#region src/components/Popover/PopoverPortal.d.ts
|
|
4190
|
-
type PopoverPortalProps =
|
|
4261
|
+
type PopoverPortalProps = {
|
|
4262
|
+
children: ReactNode;
|
|
4263
|
+
};
|
|
4191
4264
|
/**
|
|
4192
4265
|
* Portals the popover content out of the DOM hierarchy of its trigger so it can
|
|
4193
4266
|
* escape clipping ancestors (`overflow: hidden`, transformed containers, etc.).
|
|
4194
4267
|
*/
|
|
4195
4268
|
declare const PopoverPortal: {
|
|
4196
|
-
(
|
|
4269
|
+
({
|
|
4270
|
+
children
|
|
4271
|
+
}: PopoverPortalProps): JSX.Element;
|
|
4197
4272
|
displayName: string;
|
|
4198
4273
|
};
|
|
4199
4274
|
//#endregion
|
|
4200
4275
|
//#region src/components/Popover/PopoverRoot.d.ts
|
|
4201
|
-
type
|
|
4202
|
-
type PopoverRootProps = Omit<RadixRootProps, 'open'> & {
|
|
4276
|
+
type PopoverRootProps = {
|
|
4203
4277
|
/**
|
|
4204
4278
|
* Controlled open state. When provided, pair with `onOpenChange` to update it.
|
|
4205
|
-
* Leave unset for uncontrolled behavior
|
|
4279
|
+
* Leave unset for uncontrolled behavior.
|
|
4206
4280
|
*/
|
|
4207
|
-
isOpen?: boolean;
|
|
4281
|
+
isOpen?: boolean; /** Called when the popover open state changes. */
|
|
4282
|
+
onOpenChange?: (isOpen: boolean) => void; /** The composable popover children (Trigger, Portal, etc.). */
|
|
4283
|
+
children: ReactNode;
|
|
4208
4284
|
};
|
|
4209
4285
|
/**
|
|
4210
4286
|
* The root of a composable popover. Wrap `PopoverTrigger` (or `PopoverAnchor`)
|
|
@@ -4215,19 +4291,44 @@ type PopoverRootProps = Omit<RadixRootProps, 'open'> & {
|
|
|
4215
4291
|
declare const PopoverRoot: {
|
|
4216
4292
|
({
|
|
4217
4293
|
isOpen,
|
|
4218
|
-
|
|
4294
|
+
onOpenChange,
|
|
4295
|
+
children
|
|
4219
4296
|
}: PopoverRootProps): JSX.Element;
|
|
4220
4297
|
displayName: string;
|
|
4221
4298
|
};
|
|
4222
4299
|
//#endregion
|
|
4223
4300
|
//#region src/components/Popover/PopoverTrigger.d.ts
|
|
4224
|
-
type PopoverTriggerProps = ComponentPropsWithoutRef<
|
|
4301
|
+
type PopoverTriggerProps = Omit<ComponentPropsWithoutRef<'button'>, 'render'> & {
|
|
4302
|
+
/**
|
|
4303
|
+
* A React element to merge trigger behavior onto.
|
|
4304
|
+
* When provided, the trigger renders this element instead of a plain `<button>`.
|
|
4305
|
+
*/
|
|
4306
|
+
render?: ReactElement;
|
|
4307
|
+
/**
|
|
4308
|
+
* Whether the trigger should be treated as a native button.
|
|
4309
|
+
* Set to `false` if the rendered element is not a button (e.g. `<div>`).
|
|
4310
|
+
* @default true
|
|
4311
|
+
*/
|
|
4312
|
+
nativeButton?: boolean;
|
|
4313
|
+
};
|
|
4225
4314
|
/**
|
|
4226
4315
|
* The button that toggles the popover open and closed. By default it renders a
|
|
4227
|
-
* `<button>` wrapping its children; pass `
|
|
4316
|
+
* `<button>` wrapping its children; pass `render` to merge the trigger
|
|
4228
4317
|
* behavior onto a single child element (e.g. a `Button` or `IconButton`).
|
|
4229
4318
|
*/
|
|
4230
|
-
declare const PopoverTrigger: _$react.ForwardRefExoticComponent<Omit<_$
|
|
4319
|
+
declare const PopoverTrigger: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "render"> & {
|
|
4320
|
+
/**
|
|
4321
|
+
* A React element to merge trigger behavior onto.
|
|
4322
|
+
* When provided, the trigger renders this element instead of a plain `<button>`.
|
|
4323
|
+
*/
|
|
4324
|
+
render?: ReactElement;
|
|
4325
|
+
/**
|
|
4326
|
+
* Whether the trigger should be treated as a native button.
|
|
4327
|
+
* Set to `false` if the rendered element is not a button (e.g. `<div>`).
|
|
4328
|
+
* @default true
|
|
4329
|
+
*/
|
|
4330
|
+
nativeButton?: boolean;
|
|
4331
|
+
} & _$react.RefAttributes<HTMLButtonElement>>;
|
|
4231
4332
|
//#endregion
|
|
4232
4333
|
//#region src/components/ProgressBar/ProgressBar.d.ts
|
|
4233
4334
|
type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
@@ -4321,7 +4422,7 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label'
|
|
|
4321
4422
|
*/
|
|
4322
4423
|
hideLabel?: boolean;
|
|
4323
4424
|
};
|
|
4324
|
-
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "
|
|
4425
|
+
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "size" | "value" | "onChange" | "hideLabel"> & {
|
|
4325
4426
|
/**
|
|
4326
4427
|
* Indicates the state of the radio
|
|
4327
4428
|
*/
|
|
@@ -4583,7 +4684,7 @@ declare const ScrollArea: _$react.ForwardRefExoticComponent<HTMLAttributes<HTMLD
|
|
|
4583
4684
|
} & _$react.RefAttributes<HTMLDivElement>>;
|
|
4584
4685
|
//#endregion
|
|
4585
4686
|
//#region src/components/SegmentedControl/SegmentedControl.d.ts
|
|
4586
|
-
type SegmentedControlProps =
|
|
4687
|
+
type SegmentedControlProps = {
|
|
4587
4688
|
/**
|
|
4588
4689
|
* `SegmentedControlItem`s that will be rendered in grouping
|
|
4589
4690
|
*/
|
|
@@ -4612,7 +4713,7 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
|
4612
4713
|
/**
|
|
4613
4714
|
* Provides a horizontal set of segments for switching between different values
|
|
4614
4715
|
*/
|
|
4615
|
-
declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps
|
|
4716
|
+
declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps & HTMLAttributes<HTMLDivElement>>;
|
|
4616
4717
|
//#endregion
|
|
4617
4718
|
//#region src/components/SegmentedControl/SegmentedControlItem.d.ts
|
|
4618
4719
|
type BaseProps$1 = {
|
|
@@ -4797,7 +4898,7 @@ type SliderProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
|
4797
4898
|
* (e.g. on mouseup, touchend, or keyup). Useful for analytics or
|
|
4798
4899
|
* expensive operations where only the final value matters.
|
|
4799
4900
|
*/
|
|
4800
|
-
|
|
4901
|
+
onValueCommitted?: (value: number[]) => void;
|
|
4801
4902
|
/**
|
|
4802
4903
|
* Value to be added or subtracted on each step
|
|
4803
4904
|
*/
|
|
@@ -4817,7 +4918,7 @@ declare const Slider: {
|
|
|
4817
4918
|
max,
|
|
4818
4919
|
min,
|
|
4819
4920
|
onChange,
|
|
4820
|
-
|
|
4921
|
+
onValueCommitted,
|
|
4821
4922
|
step,
|
|
4822
4923
|
value,
|
|
4823
4924
|
"data-testid": dataTestId,
|
|
@@ -5104,7 +5205,12 @@ declare const TableRow: ({
|
|
|
5104
5205
|
}: TableRowProps) => JSX.Element;
|
|
5105
5206
|
//#endregion
|
|
5106
5207
|
//#region src/components/Tabs/Tabs.d.ts
|
|
5107
|
-
type TabsProps
|
|
5208
|
+
type TabsProps = {
|
|
5209
|
+
children?: React.ReactNode;
|
|
5210
|
+
defaultValue?: string;
|
|
5211
|
+
onValueChange?: (value: string) => void;
|
|
5212
|
+
value?: string;
|
|
5213
|
+
};
|
|
5108
5214
|
declare const Tabs: {
|
|
5109
5215
|
({
|
|
5110
5216
|
children,
|
|
@@ -5112,22 +5218,27 @@ declare const Tabs: {
|
|
|
5112
5218
|
onValueChange: onValueChangeProp,
|
|
5113
5219
|
defaultValue,
|
|
5114
5220
|
...props
|
|
5115
|
-
}: TabsProps
|
|
5221
|
+
}: TabsProps): JSX.Element;
|
|
5116
5222
|
displayName: string;
|
|
5117
5223
|
};
|
|
5118
5224
|
//#endregion
|
|
5119
5225
|
//#region src/components/Tabs/TabsContent.d.ts
|
|
5120
|
-
type TabsContentProps
|
|
5226
|
+
type TabsContentProps = {
|
|
5227
|
+
children?: ReactNode;
|
|
5228
|
+
value: string;
|
|
5229
|
+
};
|
|
5121
5230
|
declare const TabsContent: {
|
|
5122
5231
|
({
|
|
5123
5232
|
children,
|
|
5124
5233
|
value
|
|
5125
|
-
}: TabsContentProps
|
|
5234
|
+
}: TabsContentProps): JSX.Element;
|
|
5126
5235
|
displayName: string;
|
|
5127
5236
|
};
|
|
5128
5237
|
//#endregion
|
|
5129
5238
|
//#region src/components/Tabs/TabsList.d.ts
|
|
5130
|
-
type TabsListProps
|
|
5239
|
+
type TabsListProps = {
|
|
5240
|
+
'aria-label'?: string;
|
|
5241
|
+
} & PropsWithChildren<{
|
|
5131
5242
|
fullWidth?: boolean;
|
|
5132
5243
|
}>;
|
|
5133
5244
|
declare const TabsList: {
|
|
@@ -5135,12 +5246,15 @@ declare const TabsList: {
|
|
|
5135
5246
|
children,
|
|
5136
5247
|
fullWidth,
|
|
5137
5248
|
...props
|
|
5138
|
-
}: TabsListProps
|
|
5249
|
+
}: TabsListProps): JSX.Element;
|
|
5139
5250
|
displayName: string;
|
|
5140
5251
|
};
|
|
5141
5252
|
//#endregion
|
|
5142
5253
|
//#region src/components/Tabs/TabsTrigger.d.ts
|
|
5143
|
-
type BaseProps =
|
|
5254
|
+
type BaseProps = {
|
|
5255
|
+
disabled?: boolean;
|
|
5256
|
+
value: string;
|
|
5257
|
+
};
|
|
5144
5258
|
type IconWithLabel = {
|
|
5145
5259
|
/**
|
|
5146
5260
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
@@ -5171,8 +5285,8 @@ type NoIcon = {
|
|
|
5171
5285
|
label?: ReactNode | string;
|
|
5172
5286
|
'aria-label'?: never;
|
|
5173
5287
|
};
|
|
5174
|
-
type TabsTriggerProps
|
|
5175
|
-
declare const TabsTrigger: _$react.ForwardRefExoticComponent<TabsTriggerProps
|
|
5288
|
+
type TabsTriggerProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
|
|
5289
|
+
declare const TabsTrigger: _$react.ForwardRefExoticComponent<TabsTriggerProps & _$react.RefAttributes<HTMLButtonElement>>;
|
|
5176
5290
|
//#endregion
|
|
5177
5291
|
//#region src/components/Tag/Tag.d.ts
|
|
5178
5292
|
type TagProps = ComponentPropsWithoutRef<'div'> & {
|