@wistia/ui 0.14.10 → 0.14.11-beta.89cbbae6.bd1ca73

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.mts CHANGED
@@ -3907,4 +3907,166 @@ type ContextMenuProps = {
3907
3907
  */
3908
3908
  declare const ContextMenu: ({ position, triggerRef, children, onRequestClose, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
3909
3909
 
3910
- export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, type ListProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
3910
+ declare const typographicVariantStyleMap: {
3911
+ hero: styled_components.FlattenSimpleInterpolation;
3912
+ heading1: styled_components.FlattenSimpleInterpolation;
3913
+ heading2: styled_components.FlattenSimpleInterpolation;
3914
+ heading3: styled_components.FlattenSimpleInterpolation;
3915
+ heading4: styled_components.FlattenSimpleInterpolation;
3916
+ heading5: styled_components.FlattenSimpleInterpolation;
3917
+ heading6: styled_components.FlattenSimpleInterpolation;
3918
+ body1: styled_components.FlattenSimpleInterpolation;
3919
+ body2: styled_components.FlattenSimpleInterpolation;
3920
+ body3: styled_components.FlattenSimpleInterpolation;
3921
+ body4: styled_components.FlattenSimpleInterpolation;
3922
+ body1Mono: styled_components.FlattenSimpleInterpolation;
3923
+ body2Mono: styled_components.FlattenSimpleInterpolation;
3924
+ body3Mono: styled_components.FlattenSimpleInterpolation;
3925
+ body4Mono: styled_components.FlattenSimpleInterpolation;
3926
+ label1: styled_components.FlattenSimpleInterpolation;
3927
+ label2: styled_components.FlattenSimpleInterpolation;
3928
+ label3: styled_components.FlattenSimpleInterpolation;
3929
+ label4: styled_components.FlattenSimpleInterpolation;
3930
+ };
3931
+ type TypographicVariant = keyof typeof typographicVariantStyleMap;
3932
+
3933
+ type EditableTextRootProps = ComponentPropsWithoutRef<'div'> & {
3934
+ /**
3935
+ * TODO: add a jsdoc description for this prop
3936
+ */
3937
+ children: ReactNode;
3938
+ /**
3939
+ * The initial value for the editable text
3940
+ */
3941
+ defaultValue?: string;
3942
+ /**
3943
+ * The current value for the editable text
3944
+ */
3945
+ value?: string;
3946
+ /**
3947
+ * Callback fired when the value changes
3948
+ */
3949
+ onValueChange?: (value: string) => void;
3950
+ /**
3951
+ * Callback fired when editing is committed (e.g., save button clicked, Enter pressed)
3952
+ */
3953
+ onValueCommit?: (value: string) => void;
3954
+ /**
3955
+ * Callback fired when editing is cancelled (e.g., cancel button clicked, Escape pressed)
3956
+ */
3957
+ onValueRevert?: (originalValue: string) => void;
3958
+ /**
3959
+ * Callback fired when the editing state changes (editing starts or stops)
3960
+ */
3961
+ onEditingChange?: (isEditing: boolean) => void;
3962
+ /**
3963
+ * The typographic variant to use for the display component
3964
+ */
3965
+ typographicVariant?: TypographicVariant;
3966
+ /**
3967
+ * The action(s) that trigger submit or dismiss in edit mode:
3968
+ * - "enter": Trigger submit when the enter key is pressed, or dismiss when the esc key is pressed
3969
+ * - "blur": Trigger submit when the editable is blurred, or dismiss when the esc key is pressed
3970
+ * - "none": No action will trigger submit or dismiss. You need to use the submit or dismiss buttons
3971
+ * - "both": Pressing Enter and blurring the input will trigger submit, or dismiss when the esc key is pressed
3972
+ */
3973
+ submitMode?: 'blur' | 'both' | 'enter' | 'none';
3974
+ /**
3975
+ * Whether the editable text is read only. If true, the editable text will not be editable and the trigger will not be shown.
3976
+ */
3977
+ readOnly?: boolean;
3978
+ /**
3979
+ * The id of the editable text.
3980
+ */
3981
+ id?: string;
3982
+ /**
3983
+ * The label of the editable text.
3984
+ */
3985
+ label: string;
3986
+ /**
3987
+ * Placeholder text for the input field and display
3988
+ */
3989
+ placeholder?: string;
3990
+ /**
3991
+ * Minimum number of lines to display.
3992
+ */
3993
+ minLines?: number;
3994
+ /**
3995
+ * Maximum number of lines to display. If not set, there is no maximum.
3996
+ */
3997
+ maxLines?: number | 'infinity';
3998
+ /**
3999
+ * The element to receive focus when the editable is closed.
4000
+ */
4001
+ finalFocusEl?: () => HTMLElement | null;
4002
+ };
4003
+ type EditableTextContextValues = {
4004
+ isEditing: boolean;
4005
+ setIsEditing: (editing: boolean) => void;
4006
+ value: string;
4007
+ setValue: (value: string) => void;
4008
+ originalValue: string;
4009
+ onValueCommit: ((value: string) => void) | undefined;
4010
+ onValueRevert: ((originalValue: string) => void) | undefined;
4011
+ typographicVariant: TypographicVariant;
4012
+ submitMode: 'blur' | 'both' | 'enter' | 'none';
4013
+ readOnly: boolean;
4014
+ id: string;
4015
+ label: string;
4016
+ placeholder: string;
4017
+ minLines: number;
4018
+ maxLines: number | 'infinity';
4019
+ finalFocusEl: (() => HTMLElement | null) | undefined;
4020
+ };
4021
+ declare const EditableTextContext: react.Context<EditableTextContextValues | null>;
4022
+ declare const EditableTextRoot: ({ children, defaultValue, value: controlledValue, onValueChange, onValueCommit, onValueRevert, onEditingChange, typographicVariant, submitMode, readOnly, id, label, placeholder, minLines, maxLines, finalFocusEl, ...props }: EditableTextRootProps) => JSX.Element;
4023
+
4024
+ type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
4025
+ /**
4026
+ * Whether to visually hide the label.
4027
+ */
4028
+ hideLabel?: boolean;
4029
+ /**
4030
+ * Placeholder text for the input field.
4031
+ */
4032
+ placeholder?: string;
4033
+ };
4034
+ /**
4035
+ * Used for inline editing of text.
4036
+ */
4037
+ declare const EditableText: {
4038
+ ({ hideLabel, ...props }: EditableTextProps): JSX.Element;
4039
+ displayName: string;
4040
+ };
4041
+
4042
+ type EditableTextDisplayProps = ComponentPropsWithoutRef<'div'> & {
4043
+ /**
4044
+ * When true, the user can click on the display to edit the text
4045
+ */
4046
+ asTrigger?: boolean;
4047
+ /**
4048
+ * The element to render the display as
4049
+ */
4050
+ renderAs?: ElementType;
4051
+ };
4052
+ declare const EditableTextDisplay: (<C extends ElementType = "h1">(props: PolymorphicComponentProps<C, EditableTextDisplayProps>) => react.ReactElement | null) & UnknownRecord;
4053
+
4054
+ type EditableTextLabelProps = Omit<LabelProps, 'htmlFor'>;
4055
+ declare const EditableTextLabel: ({ disabled, ...props }: EditableTextLabelProps) => react_jsx_runtime.JSX.Element;
4056
+
4057
+ declare const EditableTextSubmitButton: ({ children, }: {
4058
+ children: ReactElement<React.ButtonHTMLAttributes<HTMLButtonElement>, "button">;
4059
+ }) => React.JSX.Element;
4060
+
4061
+ type EditableTextTriggerProps = {
4062
+ /**
4063
+ * A trigger element (must be a <button>) that will enter editing mode when clicked.
4064
+ */
4065
+ children: ReactElement<React.ButtonHTMLAttributes<HTMLButtonElement>, 'button'>;
4066
+ };
4067
+ declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => React.JSX.Element;
4068
+
4069
+ type EditableTextInputProps = Pick<InputProps, 'autoSelect'>;
4070
+ declare const EditableTextInput: (props: EditableTextInputProps) => JSX.Element;
4071
+
4072
+ export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, type ListProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -3907,4 +3907,166 @@ type ContextMenuProps = {
3907
3907
  */
3908
3908
  declare const ContextMenu: ({ position, triggerRef, children, onRequestClose, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
3909
3909
 
3910
- export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, type ListProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
3910
+ declare const typographicVariantStyleMap: {
3911
+ hero: styled_components.FlattenSimpleInterpolation;
3912
+ heading1: styled_components.FlattenSimpleInterpolation;
3913
+ heading2: styled_components.FlattenSimpleInterpolation;
3914
+ heading3: styled_components.FlattenSimpleInterpolation;
3915
+ heading4: styled_components.FlattenSimpleInterpolation;
3916
+ heading5: styled_components.FlattenSimpleInterpolation;
3917
+ heading6: styled_components.FlattenSimpleInterpolation;
3918
+ body1: styled_components.FlattenSimpleInterpolation;
3919
+ body2: styled_components.FlattenSimpleInterpolation;
3920
+ body3: styled_components.FlattenSimpleInterpolation;
3921
+ body4: styled_components.FlattenSimpleInterpolation;
3922
+ body1Mono: styled_components.FlattenSimpleInterpolation;
3923
+ body2Mono: styled_components.FlattenSimpleInterpolation;
3924
+ body3Mono: styled_components.FlattenSimpleInterpolation;
3925
+ body4Mono: styled_components.FlattenSimpleInterpolation;
3926
+ label1: styled_components.FlattenSimpleInterpolation;
3927
+ label2: styled_components.FlattenSimpleInterpolation;
3928
+ label3: styled_components.FlattenSimpleInterpolation;
3929
+ label4: styled_components.FlattenSimpleInterpolation;
3930
+ };
3931
+ type TypographicVariant = keyof typeof typographicVariantStyleMap;
3932
+
3933
+ type EditableTextRootProps = ComponentPropsWithoutRef<'div'> & {
3934
+ /**
3935
+ * TODO: add a jsdoc description for this prop
3936
+ */
3937
+ children: ReactNode;
3938
+ /**
3939
+ * The initial value for the editable text
3940
+ */
3941
+ defaultValue?: string;
3942
+ /**
3943
+ * The current value for the editable text
3944
+ */
3945
+ value?: string;
3946
+ /**
3947
+ * Callback fired when the value changes
3948
+ */
3949
+ onValueChange?: (value: string) => void;
3950
+ /**
3951
+ * Callback fired when editing is committed (e.g., save button clicked, Enter pressed)
3952
+ */
3953
+ onValueCommit?: (value: string) => void;
3954
+ /**
3955
+ * Callback fired when editing is cancelled (e.g., cancel button clicked, Escape pressed)
3956
+ */
3957
+ onValueRevert?: (originalValue: string) => void;
3958
+ /**
3959
+ * Callback fired when the editing state changes (editing starts or stops)
3960
+ */
3961
+ onEditingChange?: (isEditing: boolean) => void;
3962
+ /**
3963
+ * The typographic variant to use for the display component
3964
+ */
3965
+ typographicVariant?: TypographicVariant;
3966
+ /**
3967
+ * The action(s) that trigger submit or dismiss in edit mode:
3968
+ * - "enter": Trigger submit when the enter key is pressed, or dismiss when the esc key is pressed
3969
+ * - "blur": Trigger submit when the editable is blurred, or dismiss when the esc key is pressed
3970
+ * - "none": No action will trigger submit or dismiss. You need to use the submit or dismiss buttons
3971
+ * - "both": Pressing Enter and blurring the input will trigger submit, or dismiss when the esc key is pressed
3972
+ */
3973
+ submitMode?: 'blur' | 'both' | 'enter' | 'none';
3974
+ /**
3975
+ * Whether the editable text is read only. If true, the editable text will not be editable and the trigger will not be shown.
3976
+ */
3977
+ readOnly?: boolean;
3978
+ /**
3979
+ * The id of the editable text.
3980
+ */
3981
+ id?: string;
3982
+ /**
3983
+ * The label of the editable text.
3984
+ */
3985
+ label: string;
3986
+ /**
3987
+ * Placeholder text for the input field and display
3988
+ */
3989
+ placeholder?: string;
3990
+ /**
3991
+ * Minimum number of lines to display.
3992
+ */
3993
+ minLines?: number;
3994
+ /**
3995
+ * Maximum number of lines to display. If not set, there is no maximum.
3996
+ */
3997
+ maxLines?: number | 'infinity';
3998
+ /**
3999
+ * The element to receive focus when the editable is closed.
4000
+ */
4001
+ finalFocusEl?: () => HTMLElement | null;
4002
+ };
4003
+ type EditableTextContextValues = {
4004
+ isEditing: boolean;
4005
+ setIsEditing: (editing: boolean) => void;
4006
+ value: string;
4007
+ setValue: (value: string) => void;
4008
+ originalValue: string;
4009
+ onValueCommit: ((value: string) => void) | undefined;
4010
+ onValueRevert: ((originalValue: string) => void) | undefined;
4011
+ typographicVariant: TypographicVariant;
4012
+ submitMode: 'blur' | 'both' | 'enter' | 'none';
4013
+ readOnly: boolean;
4014
+ id: string;
4015
+ label: string;
4016
+ placeholder: string;
4017
+ minLines: number;
4018
+ maxLines: number | 'infinity';
4019
+ finalFocusEl: (() => HTMLElement | null) | undefined;
4020
+ };
4021
+ declare const EditableTextContext: react.Context<EditableTextContextValues | null>;
4022
+ declare const EditableTextRoot: ({ children, defaultValue, value: controlledValue, onValueChange, onValueCommit, onValueRevert, onEditingChange, typographicVariant, submitMode, readOnly, id, label, placeholder, minLines, maxLines, finalFocusEl, ...props }: EditableTextRootProps) => JSX.Element;
4023
+
4024
+ type EditableTextProps = Omit<EditableTextRootProps, 'children'> & {
4025
+ /**
4026
+ * Whether to visually hide the label.
4027
+ */
4028
+ hideLabel?: boolean;
4029
+ /**
4030
+ * Placeholder text for the input field.
4031
+ */
4032
+ placeholder?: string;
4033
+ };
4034
+ /**
4035
+ * Used for inline editing of text.
4036
+ */
4037
+ declare const EditableText: {
4038
+ ({ hideLabel, ...props }: EditableTextProps): JSX.Element;
4039
+ displayName: string;
4040
+ };
4041
+
4042
+ type EditableTextDisplayProps = ComponentPropsWithoutRef<'div'> & {
4043
+ /**
4044
+ * When true, the user can click on the display to edit the text
4045
+ */
4046
+ asTrigger?: boolean;
4047
+ /**
4048
+ * The element to render the display as
4049
+ */
4050
+ renderAs?: ElementType;
4051
+ };
4052
+ declare const EditableTextDisplay: (<C extends ElementType = "h1">(props: PolymorphicComponentProps<C, EditableTextDisplayProps>) => react.ReactElement | null) & UnknownRecord;
4053
+
4054
+ type EditableTextLabelProps = Omit<LabelProps, 'htmlFor'>;
4055
+ declare const EditableTextLabel: ({ disabled, ...props }: EditableTextLabelProps) => react_jsx_runtime.JSX.Element;
4056
+
4057
+ declare const EditableTextSubmitButton: ({ children, }: {
4058
+ children: ReactElement<React.ButtonHTMLAttributes<HTMLButtonElement>, "button">;
4059
+ }) => React.JSX.Element;
4060
+
4061
+ type EditableTextTriggerProps = {
4062
+ /**
4063
+ * A trigger element (must be a <button>) that will enter editing mode when clicked.
4064
+ */
4065
+ children: ReactElement<React.ButtonHTMLAttributes<HTMLButtonElement>, 'button'>;
4066
+ };
4067
+ declare const EditableTextTrigger: ({ children, ...props }: EditableTextTriggerProps) => React.JSX.Element;
4068
+
4069
+ type EditableTextInputProps = Pick<InputProps, 'autoSelect'>;
4070
+ declare const EditableTextInput: (props: EditableTextInputProps) => JSX.Element;
4071
+
4072
+ export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, type ListProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };