@wistia/ui 0.23.0-beta.a11f150c.6a32cc6 → 0.23.0-beta.d1fc8fcf.b4e0ead
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 +59 -154
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +374 -493
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,10 @@ 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
8
|
import { Color } from "culori/fn";
|
|
9
|
+
import * as _$_radix_ui_react_popover0 from "@radix-ui/react-popover";
|
|
10
|
+
import { Anchor, Close, PopoverContentProps as PopoverContentProps$1, Portal, Root, Trigger } from "@radix-ui/react-popover";
|
|
9
11
|
import * as Ariakit from "@ariakit/react";
|
|
12
|
+
import { DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps } from "@radix-ui/react-dropdown-menu";
|
|
10
13
|
import { Schema } from "yup";
|
|
11
14
|
import ReactMarkdown from "react-markdown";
|
|
12
15
|
import { ExtractContentTypeFromConfig, FilePickerReturnTypes, ImperativeFilePickerReturnTypes, UseFilePickerConfig, useImperativeFilePickerConfig } from "use-file-picker/types";
|
|
@@ -610,7 +613,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
|
|
|
610
613
|
* Changes the secondary icon for different use cases
|
|
611
614
|
*/
|
|
612
615
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
613
|
-
} & Omit<ButtonAsButtonProps, "
|
|
616
|
+
} & Omit<ButtonAsButtonProps, "variant" | "unstyled" | "fullWidth" | "leftIcon" | "rightIcon" | "isLoading" | "size">, "ref"> | Omit<{
|
|
614
617
|
/**
|
|
615
618
|
* @override
|
|
616
619
|
* The text to display for the ActionButton
|
|
@@ -639,7 +642,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
|
|
|
639
642
|
* Changes the secondary icon for different use cases
|
|
640
643
|
*/
|
|
641
644
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
642
|
-
} & Omit<ButtonAsLinkProps, "
|
|
645
|
+
} & Omit<ButtonAsLinkProps, "variant" | "unstyled" | "fullWidth" | "leftIcon" | "rightIcon" | "isLoading" | "size">, "ref">) & _$react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
643
646
|
//#endregion
|
|
644
647
|
//#region src/components/Avatar/Avatar.d.ts
|
|
645
648
|
type AvatarInstanceType = 'image' | 'initials';
|
|
@@ -2033,7 +2036,7 @@ declare const ContextMenu: ({
|
|
|
2033
2036
|
side,
|
|
2034
2037
|
onRequestClose,
|
|
2035
2038
|
compact
|
|
2036
|
-
}: ContextMenuProps) => _$react_jsx_runtime0.JSX.Element;
|
|
2039
|
+
}: ContextMenuProps) => _$react_jsx_runtime0.JSX.Element | null;
|
|
2037
2040
|
//#endregion
|
|
2038
2041
|
//#region src/components/CustomizableThemeWrapper/CustomizableThemeWrapper.d.ts
|
|
2039
2042
|
type CustomizableTokens = '--wui-color-backdrop' | '--wui-color-bg-app' | '--wui-color-bg-fill-active' | '--wui-color-bg-fill-hover' | '--wui-color-bg-fill-white ' | '--wui-color-bg-fill' | '--wui-color-bg-surface-active' | '--wui-color-bg-surface-disabled' | '--wui-color-bg-surface-hover' | '--wui-color-bg-surface-secondary-active' | '--wui-color-bg-surface-secondary-hover' | '--wui-color-bg-surface-secondary' | '--wui-color-bg-surface-selected-active' | '--wui-color-bg-surface-selected-hover' | '--wui-color-bg-surface-selected' | '--wui-color-bg-surface-tertiary' | '--wui-color-bg-surface' | '--wui-color-bg-tooltip' | '--wui-color-border-active-selected' | '--wui-color-border-active' | '--wui-color-border-disabled' | '--wui-color-border-hover-selected' | '--wui-color-border-hover' | '--wui-color-border-secondary-active' | '--wui-color-border-secondary-hover' | '--wui-color-border-secondary' | '--wui-color-border-selected' | '--wui-color-border' | '--wui-color-drop-shadow' | '--wui-color-focus-color' | '--wui-color-focus-ring-disabled' | '--wui-color-focus-ring' | '--wui-color-icon-disabled' | '--wui-color-icon-on-fill' | '--wui-color-icon-selected' | '--wui-color-icon' | '--wui-color-invalid-indicator' | '--wui-color-notification-pill-color' | '--wui-color-segmented-control-checked-background' | '--wui-color-text-button' | '--wui-color-text-disabled' | '--wui-color-text-link' | '--wui-color-text-on-fill-white-selected' | '--wui-color-text-on-fill' | '--wui-color-text-secondary' | '--wui-color-text-selected' | '--wui-color-text' | '--wui-typography-family-brand' | '--wui-typography-family-default' | '--wui-typography-family-mono' | '--wui-typography-weight-body-bold' | '--wui-typography-weight-body' | '--wui-typography-weight-heading' | '--wui-typography-weight-label-bold' | '--wui-typography-weight-label';
|
|
@@ -3291,7 +3294,7 @@ type InputClickToCopyProps = Omit<InputProps, 'autoSelect' | 'disabled' | 'right
|
|
|
3291
3294
|
/**
|
|
3292
3295
|
* Provides a readonly input that copies the text to the clipboard when clicked.
|
|
3293
3296
|
*/
|
|
3294
|
-
declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "value" | "disabled" | "
|
|
3297
|
+
declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "value" | "disabled" | "rightIcon" | "type" | "autoSelect"> & {
|
|
3295
3298
|
/**
|
|
3296
3299
|
* When disabled, the copy action will not be triggered
|
|
3297
3300
|
*/
|
|
@@ -3320,7 +3323,7 @@ type InputPasswordProps = Omit<InputProps, 'leftIcon' | 'monospace' | 'rightIcon
|
|
|
3320
3323
|
/**
|
|
3321
3324
|
* A password input component with a toggle button to show or hide the password text.
|
|
3322
3325
|
*/
|
|
3323
|
-
declare const InputPassword: _$react.ForwardRefExoticComponent<Omit<InputProps, "
|
|
3326
|
+
declare const InputPassword: _$react.ForwardRefExoticComponent<Omit<InputProps, "leftIcon" | "rightIcon" | "type" | "monospace"> & {
|
|
3324
3327
|
/**
|
|
3325
3328
|
* Set the disabled state of the input
|
|
3326
3329
|
*/
|
|
@@ -3501,6 +3504,10 @@ type MenuProps = MenuControlProps & {
|
|
|
3501
3504
|
* The label for the trigger element, this is ignored if `trigger` is defined
|
|
3502
3505
|
*/
|
|
3503
3506
|
label?: string;
|
|
3507
|
+
/**
|
|
3508
|
+
* Callback for when the user clicks or focuses outside of the menu
|
|
3509
|
+
*/
|
|
3510
|
+
onInteractOutside?: DropdownMenuContentProps['onInteractOutside'];
|
|
3504
3511
|
/**
|
|
3505
3512
|
* The side the menu appears on, relative to the trigger
|
|
3506
3513
|
*/
|
|
@@ -3622,7 +3629,7 @@ type MenuItemButtonProps = ButtonProps & {
|
|
|
3622
3629
|
};
|
|
3623
3630
|
//#endregion
|
|
3624
3631
|
//#region src/components/Menu/MenuItem.d.ts
|
|
3625
|
-
declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<BaseButtonProps & _$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3632
|
+
declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<DropdownMenuItemProps & BaseButtonProps & _$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3626
3633
|
href?: never;
|
|
3627
3634
|
type?: "button" | "reset" | "submit";
|
|
3628
3635
|
children: _$react.ReactNode;
|
|
@@ -3644,16 +3651,7 @@ declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<BaseButtonProps
|
|
|
3644
3651
|
* Treats the menu item as a link when provided
|
|
3645
3652
|
*/
|
|
3646
3653
|
href?: MenuItemButtonProps["href"];
|
|
3647
|
-
|
|
3648
|
-
* Whether the menu should close when this item is clicked
|
|
3649
|
-
* @default true
|
|
3650
|
-
*/
|
|
3651
|
-
closeOnClick?: boolean;
|
|
3652
|
-
/**
|
|
3653
|
-
* Callback when the item is selected
|
|
3654
|
-
*/
|
|
3655
|
-
onSelect?: (event: SyntheticEvent) => void;
|
|
3656
|
-
}, "ref"> | Omit<BaseButtonProps & _$react.ClassAttributes<HTMLAnchorElement> & _$react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3654
|
+
}, "ref"> | Omit<DropdownMenuItemProps & BaseButtonProps & _$react.ClassAttributes<HTMLAnchorElement> & _$react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3657
3655
|
beforeAction?: (() => Promise<void>) | (() => void);
|
|
3658
3656
|
children: _$react.ReactNode;
|
|
3659
3657
|
colorScheme?: ColorSchemeTypes;
|
|
@@ -3689,16 +3687,7 @@ declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<BaseButtonProps
|
|
|
3689
3687
|
* Treats the menu item as a link when provided
|
|
3690
3688
|
*/
|
|
3691
3689
|
href?: MenuItemButtonProps["href"];
|
|
3692
|
-
|
|
3693
|
-
* Whether the menu should close when this item is clicked
|
|
3694
|
-
* @default true
|
|
3695
|
-
*/
|
|
3696
|
-
closeOnClick?: boolean;
|
|
3697
|
-
/**
|
|
3698
|
-
* Callback when the item is selected
|
|
3699
|
-
*/
|
|
3700
|
-
onSelect?: (event: SyntheticEvent) => void;
|
|
3701
|
-
}, "ref"> | Omit<BaseButtonProps & _$react.ClassAttributes<HTMLAnchorElement> & _$react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3690
|
+
}, "ref"> | Omit<DropdownMenuItemProps & BaseButtonProps & _$react.ClassAttributes<HTMLAnchorElement> & _$react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3702
3691
|
beforeAction?: (() => Promise<void>) | (() => void);
|
|
3703
3692
|
children: _$react.ReactNode;
|
|
3704
3693
|
colorScheme?: ColorSchemeTypes;
|
|
@@ -3740,15 +3729,6 @@ declare const MenuItem: _$react.ForwardRefExoticComponent<(Omit<BaseButtonProps
|
|
|
3740
3729
|
* Treats the menu item as a link when provided
|
|
3741
3730
|
*/
|
|
3742
3731
|
href?: MenuItemButtonProps["href"];
|
|
3743
|
-
/**
|
|
3744
|
-
* Whether the menu should close when this item is clicked
|
|
3745
|
-
* @default true
|
|
3746
|
-
*/
|
|
3747
|
-
closeOnClick?: boolean;
|
|
3748
|
-
/**
|
|
3749
|
-
* Callback when the item is selected
|
|
3750
|
-
*/
|
|
3751
|
-
onSelect?: (event: SyntheticEvent) => void;
|
|
3752
3732
|
}, "ref">) & _$react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
3753
3733
|
//#endregion
|
|
3754
3734
|
//#region src/components/Menu/MenuItemLabel.d.ts
|
|
@@ -3774,19 +3754,15 @@ declare const MenuItemDescription: ({
|
|
|
3774
3754
|
}: MenuItemDescriptionProps) => _$react_jsx_runtime0.JSX.Element;
|
|
3775
3755
|
//#endregion
|
|
3776
3756
|
//#region src/components/Menu/MenuRadioGroup.d.ts
|
|
3777
|
-
type MenuRadioGroupProps = {
|
|
3757
|
+
type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
|
|
3778
3758
|
/**
|
|
3779
3759
|
* The radio items
|
|
3780
3760
|
*/
|
|
3781
3761
|
children: ReactNode | ReactNode[];
|
|
3782
3762
|
/**
|
|
3783
|
-
*
|
|
3784
|
-
*/
|
|
3785
|
-
value?: string;
|
|
3786
|
-
/**
|
|
3787
|
-
* Callback when the value changes
|
|
3763
|
+
* @ignore
|
|
3788
3764
|
*/
|
|
3789
|
-
|
|
3765
|
+
asChild?: never;
|
|
3790
3766
|
};
|
|
3791
3767
|
declare const MenuRadioGroup: {
|
|
3792
3768
|
({
|
|
@@ -3797,7 +3773,7 @@ declare const MenuRadioGroup: {
|
|
|
3797
3773
|
};
|
|
3798
3774
|
//#endregion
|
|
3799
3775
|
//#region src/components/Menu/RadioMenuItem.d.ts
|
|
3800
|
-
type RadioMenuItemProps = MenuItemButtonProps & {
|
|
3776
|
+
type RadioMenuItemProps = DropdownMenuRadioItemProps & MenuItemButtonProps & {
|
|
3801
3777
|
/**
|
|
3802
3778
|
* Optional `Icon` to use as the indicator that the radio item is selected. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
3803
3779
|
*/
|
|
@@ -3805,7 +3781,7 @@ type RadioMenuItemProps = MenuItemButtonProps & {
|
|
|
3805
3781
|
/**
|
|
3806
3782
|
* The value of the item
|
|
3807
3783
|
*/
|
|
3808
|
-
value:
|
|
3784
|
+
value: DropdownMenuRadioItemProps['value'];
|
|
3809
3785
|
/**
|
|
3810
3786
|
* @ignore
|
|
3811
3787
|
*/
|
|
@@ -3818,10 +3794,6 @@ type RadioMenuItemProps = MenuItemButtonProps & {
|
|
|
3818
3794
|
* @ignore
|
|
3819
3795
|
*/
|
|
3820
3796
|
ref?: never;
|
|
3821
|
-
/**
|
|
3822
|
-
* Callback when the item is selected
|
|
3823
|
-
*/
|
|
3824
|
-
onSelect?: (event: SyntheticEvent) => void;
|
|
3825
3797
|
};
|
|
3826
3798
|
declare const RadioMenuItem: {
|
|
3827
3799
|
({
|
|
@@ -3834,7 +3806,7 @@ declare const RadioMenuItem: {
|
|
|
3834
3806
|
};
|
|
3835
3807
|
//#endregion
|
|
3836
3808
|
//#region src/components/Menu/CheckboxMenuItem.d.ts
|
|
3837
|
-
type CheckboxMenuItemProps = MenuItemButtonProps & {
|
|
3809
|
+
type CheckboxMenuItemProps = DropdownMenuCheckboxItemProps & MenuItemButtonProps & {
|
|
3838
3810
|
/** Callback to fire when the checked status changes */onCheckedChange: (checked: boolean) => void;
|
|
3839
3811
|
/**
|
|
3840
3812
|
* Optional `Icon` to use as the indicator that the checkbox item is selected. Must be an instance of [Icon](../?path=/docs/components-icon--docs)
|
|
@@ -3856,10 +3828,6 @@ type CheckboxMenuItemProps = MenuItemButtonProps & {
|
|
|
3856
3828
|
* @ignore
|
|
3857
3829
|
*/
|
|
3858
3830
|
ref?: never;
|
|
3859
|
-
/**
|
|
3860
|
-
* Callback when the item is selected
|
|
3861
|
-
*/
|
|
3862
|
-
onSelect?: (event: SyntheticEvent) => void;
|
|
3863
3831
|
};
|
|
3864
3832
|
declare const CheckboxMenuItem: {
|
|
3865
3833
|
({
|
|
@@ -4104,7 +4072,8 @@ type UncontrolledPopoverProps = {
|
|
|
4104
4072
|
onOpenChange?: never;
|
|
4105
4073
|
};
|
|
4106
4074
|
type PopoverControlProps = ControlledPopoverProps | UncontrolledPopoverProps;
|
|
4107
|
-
type
|
|
4075
|
+
type ContentProps = Omit<PopoverContentProps$1, 'alignOffset' | 'arrowPadding' | 'asChild' | 'collisionPadding' | 'hideWhenDetached' | 'sideOffset' | 'updatePositionStrategy'>;
|
|
4076
|
+
type PopoverProps = ContentProps & PopoverControlProps & {
|
|
4108
4077
|
/**
|
|
4109
4078
|
* The content of the popover
|
|
4110
4079
|
*/
|
|
@@ -4128,13 +4097,13 @@ type PopoverProps = PopoverControlProps & {
|
|
|
4128
4097
|
/**
|
|
4129
4098
|
* An interactive element. Most commonly a [Button](?path=/docs/components-button--docs) or [IconButton]([Button](?path=/docs/components-iconbutton--docs)).
|
|
4130
4099
|
*/
|
|
4131
|
-
trigger:
|
|
4100
|
+
trigger: JSX.Element;
|
|
4132
4101
|
/**
|
|
4133
4102
|
* If true, the popover will use the unstyled Content component instead of StyledContent
|
|
4134
4103
|
*/
|
|
4135
4104
|
unstyled?: boolean;
|
|
4136
4105
|
/**
|
|
4137
|
-
* If true, the popover will use a custom arrow
|
|
4106
|
+
* If true, the popover will use a custom radix arrow to trigger
|
|
4138
4107
|
*/
|
|
4139
4108
|
withArrow?: boolean;
|
|
4140
4109
|
/**
|
|
@@ -4146,24 +4115,13 @@ type PopoverProps = PopoverControlProps & {
|
|
|
4146
4115
|
* Inline styles applied to the popover popup
|
|
4147
4116
|
*/
|
|
4148
4117
|
style?: CSSProperties;
|
|
4149
|
-
/**
|
|
4150
|
-
* The preferred side of the trigger to render on
|
|
4151
|
-
*/
|
|
4152
|
-
side?: 'bottom' | 'left' | 'right' | 'top';
|
|
4153
|
-
/**
|
|
4154
|
-
* The preferred alignment against the trigger
|
|
4155
|
-
*/
|
|
4156
|
-
align?: 'center' | 'end' | 'start';
|
|
4157
|
-
/**
|
|
4158
|
-
* Whether the trigger should be treated as a native button (default: true)
|
|
4159
|
-
*/
|
|
4160
|
-
nativeButton?: boolean;
|
|
4161
4118
|
};
|
|
4162
4119
|
/**
|
|
4163
4120
|
* Displays rich content in a portal, triggered by a button.
|
|
4164
4121
|
*
|
|
4165
|
-
* For more control — custom anchor,
|
|
4166
|
-
*
|
|
4122
|
+
* For more control — custom anchor, access to event handlers like
|
|
4123
|
+
* `onPointerDownOutside`, no injected close button, etc. — compose the
|
|
4124
|
+
* primitives directly: `PopoverRoot`, `PopoverTrigger`, `PopoverAnchor`,
|
|
4167
4125
|
* `PopoverPortal`, `PopoverContent`, `PopoverClose`.
|
|
4168
4126
|
*/
|
|
4169
4127
|
declare const Popover: {
|
|
@@ -4180,31 +4138,19 @@ declare const Popover: {
|
|
|
4180
4138
|
isAnimated,
|
|
4181
4139
|
colorScheme,
|
|
4182
4140
|
style,
|
|
4183
|
-
side,
|
|
4184
|
-
align,
|
|
4185
|
-
nativeButton,
|
|
4186
4141
|
...props
|
|
4187
4142
|
}: PopoverProps): JSX.Element;
|
|
4188
4143
|
displayName: string;
|
|
4189
4144
|
};
|
|
4190
4145
|
//#endregion
|
|
4191
4146
|
//#region src/components/Popover/PopoverAnchor.d.ts
|
|
4192
|
-
type PopoverAnchorProps =
|
|
4193
|
-
children: ReactNode;
|
|
4194
|
-
};
|
|
4147
|
+
type PopoverAnchorProps = ComponentPropsWithoutRef<typeof Anchor>;
|
|
4195
4148
|
/**
|
|
4196
4149
|
* Positions the popover relative to an element other than the trigger. Useful
|
|
4197
4150
|
* when the element the user interacts with (e.g. a text input) is separate
|
|
4198
4151
|
* from what the popover attaches to.
|
|
4199
|
-
*
|
|
4200
|
-
* Wrap the anchor element and nest `PopoverTrigger` inside it.
|
|
4201
4152
|
*/
|
|
4202
|
-
declare const PopoverAnchor:
|
|
4203
|
-
({
|
|
4204
|
-
children
|
|
4205
|
-
}: PopoverAnchorProps): JSX.Element;
|
|
4206
|
-
displayName: string;
|
|
4207
|
-
};
|
|
4153
|
+
declare const PopoverAnchor: _$react.ForwardRefExoticComponent<Omit<_$_radix_ui_react_popover0.PopoverAnchorProps & _$react.RefAttributes<HTMLDivElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
|
|
4208
4154
|
//#endregion
|
|
4209
4155
|
//#region src/components/Popover/PopoverArrow.d.ts
|
|
4210
4156
|
type PopoverArrowProps = {
|
|
@@ -4221,25 +4167,13 @@ declare const PopoverArrow: {
|
|
|
4221
4167
|
};
|
|
4222
4168
|
//#endregion
|
|
4223
4169
|
//#region src/components/Popover/PopoverClose.d.ts
|
|
4224
|
-
type PopoverCloseProps =
|
|
4225
|
-
/**
|
|
4226
|
-
* A React element to merge close behavior onto.
|
|
4227
|
-
* When provided, the close button renders this element instead of a plain `<button>`.
|
|
4228
|
-
*/
|
|
4229
|
-
render?: ReactElement;
|
|
4230
|
-
};
|
|
4170
|
+
type PopoverCloseProps = ComponentPropsWithoutRef<typeof Close>;
|
|
4231
4171
|
/**
|
|
4232
4172
|
* An element that closes the popover when activated. Defaults to a `<button>`;
|
|
4233
|
-
* pass `
|
|
4173
|
+
* pass `asChild` to merge the close behavior onto a single child element. For
|
|
4234
4174
|
* a pre-styled icon close button, use `PopoverCloseButton`.
|
|
4235
4175
|
*/
|
|
4236
|
-
declare const PopoverClose: _$react.ForwardRefExoticComponent<Omit<
|
|
4237
|
-
/**
|
|
4238
|
-
* A React element to merge close behavior onto.
|
|
4239
|
-
* When provided, the close button renders this element instead of a plain `<button>`.
|
|
4240
|
-
*/
|
|
4241
|
-
render?: ReactElement;
|
|
4242
|
-
} & _$react.RefAttributes<HTMLButtonElement>>;
|
|
4176
|
+
declare const PopoverClose: _$react.ForwardRefExoticComponent<Omit<_$_radix_ui_react_popover0.PopoverCloseProps & _$react.RefAttributes<HTMLButtonElement>, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
|
|
4243
4177
|
//#endregion
|
|
4244
4178
|
//#region src/components/Popover/PopoverCloseButton.d.ts
|
|
4245
4179
|
type PopoverCloseButtonProps = {
|
|
@@ -4257,48 +4191,44 @@ declare const PopoverCloseButton: {
|
|
|
4257
4191
|
};
|
|
4258
4192
|
//#endregion
|
|
4259
4193
|
//#region src/components/Popover/PopoverContent.d.ts
|
|
4260
|
-
type PopoverContentProps = {
|
|
4194
|
+
type PopoverContentProps = Omit<PopoverContentProps$1, 'asChild'> & {
|
|
4261
4195
|
/** Sets the [color scheme](/docs/color-schemes) applied inside the portal. */colorScheme?: ColorSchemeTypes; /** Remove the default surface styling (padding, background, border, etc.). */
|
|
4262
4196
|
unstyled?: boolean; /** Applied as `max-width` on the popover surface. Pass `"none"` to uncap. */
|
|
4263
4197
|
maxWidth?: string; /** Applied as `max-height` on the popover surface. Pass `"none"` to uncap. */
|
|
4264
|
-
maxHeight?: string;
|
|
4265
|
-
side?: 'bottom' | 'left' | 'right' | 'top'; /** How to align the popover relative to the specified side. */
|
|
4266
|
-
align?: 'center' | 'end' | 'start'; /** Distance between the anchor and the popup in pixels. */
|
|
4267
|
-
sideOffset?: number; /** Inline styles applied to the popup. */
|
|
4268
|
-
style?: CSSProperties; /** The popover content. */
|
|
4269
|
-
children?: React.ReactNode; /** Role applied to the popup element. */
|
|
4270
|
-
role?: string;
|
|
4198
|
+
maxHeight?: string;
|
|
4271
4199
|
};
|
|
4272
4200
|
/**
|
|
4273
4201
|
* The styled popover surface. Place inside a `PopoverRoot` (typically wrapped
|
|
4274
|
-
* in a `PopoverPortal`).
|
|
4202
|
+
* in a `PopoverPortal`). Forwards all Radix Content props, including
|
|
4203
|
+
* dismissal/focus event handlers such as `onPointerDownOutside`,
|
|
4204
|
+
* `onOpenAutoFocus`, and `onCloseAutoFocus`.
|
|
4275
4205
|
*/
|
|
4276
|
-
declare const PopoverContent: _$react.ForwardRefExoticComponent<PopoverContentProps &
|
|
4206
|
+
declare const PopoverContent: _$react.ForwardRefExoticComponent<Omit<PopoverContentProps$1, "asChild"> & {
|
|
4207
|
+
/** Sets the [color scheme](/docs/color-schemes) applied inside the portal. */colorScheme?: ColorSchemeTypes; /** Remove the default surface styling (padding, background, border, etc.). */
|
|
4208
|
+
unstyled?: boolean; /** Applied as `max-width` on the popover surface. Pass `"none"` to uncap. */
|
|
4209
|
+
maxWidth?: string; /** Applied as `max-height` on the popover surface. Pass `"none"` to uncap. */
|
|
4210
|
+
maxHeight?: string;
|
|
4211
|
+
} & _$react.RefAttributes<HTMLDivElement>>;
|
|
4277
4212
|
//#endregion
|
|
4278
4213
|
//#region src/components/Popover/PopoverPortal.d.ts
|
|
4279
|
-
type PopoverPortalProps =
|
|
4280
|
-
children: ReactNode;
|
|
4281
|
-
};
|
|
4214
|
+
type PopoverPortalProps = ComponentPropsWithoutRef<typeof Portal>;
|
|
4282
4215
|
/**
|
|
4283
4216
|
* Portals the popover content out of the DOM hierarchy of its trigger so it can
|
|
4284
4217
|
* escape clipping ancestors (`overflow: hidden`, transformed containers, etc.).
|
|
4285
4218
|
*/
|
|
4286
4219
|
declare const PopoverPortal: {
|
|
4287
|
-
(
|
|
4288
|
-
children
|
|
4289
|
-
}: PopoverPortalProps): JSX.Element;
|
|
4220
|
+
(props: PopoverPortalProps): JSX.Element;
|
|
4290
4221
|
displayName: string;
|
|
4291
4222
|
};
|
|
4292
4223
|
//#endregion
|
|
4293
4224
|
//#region src/components/Popover/PopoverRoot.d.ts
|
|
4294
|
-
type
|
|
4225
|
+
type RadixRootProps = ComponentPropsWithoutRef<typeof Root>;
|
|
4226
|
+
type PopoverRootProps = Omit<RadixRootProps, 'open'> & {
|
|
4295
4227
|
/**
|
|
4296
4228
|
* Controlled open state. When provided, pair with `onOpenChange` to update it.
|
|
4297
|
-
* Leave unset for uncontrolled behavior.
|
|
4229
|
+
* Leave unset for uncontrolled behavior (Radix manages state internally).
|
|
4298
4230
|
*/
|
|
4299
|
-
isOpen?: boolean;
|
|
4300
|
-
onOpenChange?: (isOpen: boolean) => void; /** The composable popover children (Trigger, Portal, etc.). */
|
|
4301
|
-
children: ReactNode;
|
|
4231
|
+
isOpen?: boolean;
|
|
4302
4232
|
};
|
|
4303
4233
|
/**
|
|
4304
4234
|
* The root of a composable popover. Wrap `PopoverTrigger` (or `PopoverAnchor`)
|
|
@@ -4309,44 +4239,19 @@ type PopoverRootProps = {
|
|
|
4309
4239
|
declare const PopoverRoot: {
|
|
4310
4240
|
({
|
|
4311
4241
|
isOpen,
|
|
4312
|
-
|
|
4313
|
-
children
|
|
4242
|
+
...props
|
|
4314
4243
|
}: PopoverRootProps): JSX.Element;
|
|
4315
4244
|
displayName: string;
|
|
4316
4245
|
};
|
|
4317
4246
|
//#endregion
|
|
4318
4247
|
//#region src/components/Popover/PopoverTrigger.d.ts
|
|
4319
|
-
type PopoverTriggerProps =
|
|
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
|
-
};
|
|
4248
|
+
type PopoverTriggerProps = ComponentPropsWithoutRef<typeof Trigger>;
|
|
4332
4249
|
/**
|
|
4333
4250
|
* The button that toggles the popover open and closed. By default it renders a
|
|
4334
|
-
* `<button>` wrapping its children; pass `
|
|
4251
|
+
* `<button>` wrapping its children; pass `asChild` to merge the trigger
|
|
4335
4252
|
* behavior onto a single child element (e.g. a `Button` or `IconButton`).
|
|
4336
4253
|
*/
|
|
4337
|
-
declare const PopoverTrigger: _$react.ForwardRefExoticComponent<Omit<
|
|
4338
|
-
/**
|
|
4339
|
-
* A React element to merge trigger behavior onto.
|
|
4340
|
-
* When provided, the trigger renders this element instead of a plain `<button>`.
|
|
4341
|
-
*/
|
|
4342
|
-
render?: ReactElement;
|
|
4343
|
-
/**
|
|
4344
|
-
* Whether the trigger should be treated as a native button.
|
|
4345
|
-
* Set to `false` if the rendered element is not a button (e.g. `<div>`).
|
|
4346
|
-
* @default true
|
|
4347
|
-
*/
|
|
4348
|
-
nativeButton?: boolean;
|
|
4349
|
-
} & _$react.RefAttributes<HTMLButtonElement>>;
|
|
4254
|
+
declare const PopoverTrigger: _$react.ForwardRefExoticComponent<Omit<_$_radix_ui_react_popover0.PopoverTriggerProps & _$react.RefAttributes<HTMLButtonElement>, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
|
|
4350
4255
|
//#endregion
|
|
4351
4256
|
//#region src/components/ProgressBar/ProgressBar.d.ts
|
|
4352
4257
|
type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
@@ -4440,7 +4345,7 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label'
|
|
|
4440
4345
|
*/
|
|
4441
4346
|
hideLabel?: boolean;
|
|
4442
4347
|
};
|
|
4443
|
-
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "
|
|
4348
|
+
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "value" | "size" | "hideLabel"> & {
|
|
4444
4349
|
/**
|
|
4445
4350
|
* Indicates the state of the radio
|
|
4446
4351
|
*/
|
|
@@ -4877,19 +4782,19 @@ declare const SelectOptionGroup: ({
|
|
|
4877
4782
|
}: SelectOptionGroupProps) => _$react_jsx_runtime0.JSX.Element;
|
|
4878
4783
|
//#endregion
|
|
4879
4784
|
//#region src/components/Slider/Slider.d.ts
|
|
4880
|
-
type SliderProps = Omit<ComponentPropsWithoutRef<
|
|
4785
|
+
type SliderProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
4881
4786
|
/**
|
|
4882
4787
|
* aria-label for screen-readers to apply to the slider
|
|
4883
4788
|
*/
|
|
4884
|
-
|
|
4789
|
+
'aria-label'?: string;
|
|
4885
4790
|
/**
|
|
4886
4791
|
* aria-labelledby for screen-readers to apply to the slider
|
|
4887
4792
|
*/
|
|
4888
|
-
|
|
4793
|
+
'aria-labelledby'?: string;
|
|
4889
4794
|
/**
|
|
4890
4795
|
* @ignore
|
|
4891
4796
|
*/
|
|
4892
|
-
|
|
4797
|
+
'data-testid'?: string;
|
|
4893
4798
|
/**
|
|
4894
4799
|
* Determines the initial position(s) of the thumb(s)
|
|
4895
4800
|
* Must be an array of numbers.
|