import * as react_jsx_runtime from 'react/jsx-runtime'; import React__default, { ComponentType, SVGProps } from 'react'; import { TooltipTriggerProps, KeyboardProps } from 'react-aria'; import { ButtonProps, TooltipProps, MenuItemProps, LabelProps, MenuProps, MenuTriggerProps, PopoverProps, NumberFieldProps, GroupProps, InputProps, RadioGroupProps, RadioProps, SliderProps, SliderOutputProps, SliderTrackProps, SliderThumbProps, SwitchProps, HeadingProps, SelectProps, Button, ListBoxProps, ListBox, ListBoxItemProps, Heading } from 'react-aria-components'; import { h as ThActionEntry, i as ThActionsBarProps, C as CollapsiblePref } from './actions-C33UN3Ji.mjs'; interface HTMLAttributesWithRef extends React.HTMLAttributes { ref?: React.ForwardedRef; } type WithRef = T & { ref?: React.ForwardedRef; }; interface ThActionButtonProps extends ButtonProps { label?: string; ref?: React__default.ForwardedRef; compounds?: { /** * Props for the tooltipTrigger component. See `TooltipTriggerProps` for more information. */ tooltipTrigger?: WithRef; /** * Props for the tooltip component. See `TooltipProps` for more information. */ tooltip?: WithRef; /** * Content for the tooltip */ label: React__default.ReactNode; }; } declare const ThActionButton: ({ ref, compounds, children, ...props }: ThActionButtonProps) => react_jsx_runtime.JSX.Element; interface ThMenuItemProps extends MenuItemProps { ref?: React__default.Ref; id: string; SVGIcon?: React__default.ComponentType>; label: string; shortcut?: string; compounds?: { label: WithRef; shortcut: WithRef; }; } declare const ThMenuItem: ({ ref, id, SVGIcon, label, shortcut, compounds, children, ...props }: ThMenuItemProps) => react_jsx_runtime.JSX.Element; interface THMenuProps extends MenuProps> { ref?: React__default.ForwardedRef; triggerRef?: React__default.RefObject; items?: Iterable>; children?: never; compounds?: { /** * Props for the trigger component. See `MenuTriggerProps` for more information. */ menuTrigger?: Omit, "children">; /** * Props for the button component. See `ThActionButtonProps` for more information. * Alternatively you can provide your own component */ button?: ThActionButtonProps | React__default.ReactElement; /** * Props for the popover component. See `PopoverProps` for more information. */ popover?: WithRef; }; } declare const ThMenu: ({ ref, id, triggerRef, items, dependencies, compounds, ...props }: THMenuProps) => react_jsx_runtime.JSX.Element | undefined; interface ThCollapsibleActionsBarProps extends ThActionsBarProps { id: string; items: ThActionEntry[]; prefs: CollapsiblePref; breakpoint?: string; targetPlacement?: "top" | "bottom"; children?: never; compounds?: { menu: THMenuProps | React__default.ReactElement; }; } declare const ThCollapsibleActionsBar: ({ ref, id, items, prefs, breakpoint, targetPlacement, compounds, ...props }: ThCollapsibleActionsBarProps) => react_jsx_runtime.JSX.Element; interface ThNumberFieldProps extends Omit { ref?: React.ForwardedRef; onReset?: () => void; onInputChange?: (rawValue: string) => void; label?: string; placeholder?: string; range: number[]; isVirtualKeyboardDisabled?: boolean; steppers?: { decrementIcon?: ComponentType> | null; decrementLabel: string; incrementIcon?: ComponentType> | null; incrementLabel: string; }; compounds?: { /** * Props for the wrapper component. */ wrapper?: HTMLAttributesWithRef; /** * Props for the Group component. See `GroupProps` for more information. */ group?: WithRef; /** * Props for the Input component. See `InputProps` for more information. */ input?: Omit, "placeholder">; /** * Props for the Label component. See `LabelProps` for more information. */ label?: WithRef; /** * Props for the Button component used for decrement/increment. See `ButtonProps` for more information. */ stepper?: ButtonProps; /** * Props for the Button component used for resetting the value. See `ThActionButtonProps` for more information. */ reset?: ThActionButtonProps; }; } declare const ThNumberField: ({ ref, onReset, onInputChange, label, placeholder, range, isVirtualKeyboardDisabled, steppers, compounds, value, ...props }: ThNumberFieldProps) => react_jsx_runtime.JSX.Element; interface ThRadioGroupItems { id: string; value: string; icon?: ComponentType>; label: string; isDisabled?: boolean; } interface ThRadioGroupProps extends RadioGroupProps { ref?: React__default.ForwardedRef; label?: string; items?: ThRadioGroupItems[]; compounds?: { /** * Props for the wrapper component. See `HTMLAttributesWithRef` for more information. */ wrapper?: HTMLAttributesWithRef; /** * Props for the label component. See `LabelProps` for more information. */ label?: WithRef; /** * Props for the radio component. See `RadioProps` for more information. */ radio?: Omit; /** * Props for the radio label component. See `HTMLAttributesWithRef` for more information. */ radioLabel?: HTMLAttributesWithRef; }; } declare const ThRadioGroup: ({ ref, label, items, compounds, children, value, ...props }: ThRadioGroupProps) => react_jsx_runtime.JSX.Element | undefined; interface ThSliderProps extends Omit { ref?: React.ForwardedRef; onReset?: () => void; label?: string; placeholder?: string; range: number[]; compounds?: { /** * Props for the wrapper component. */ wrapper?: HTMLAttributesWithRef; /** * Props for the label component. See `LabelProps` for more information. */ label?: WithRef; /** * Props for the slider output component. See `SliderOutputProps` for more information. */ output?: WithRef; /** * Props for the slider placeholder component. See `HTMLSpanElement` for more information. */ placeholder?: HTMLAttributesWithRef; /** * Props for the slider track component. See `SliderTrackProps` for more information. */ track?: WithRef; /** * Props for the slider thumb component. See `SliderThumbProps` for more information. */ thumb?: WithRef; /** * Props for the reset button component. See `ThActionButtonProps` for more information. */ reset?: ThActionButtonProps; }; } declare const ThSlider: ({ ref, onReset, label, placeholder, range, compounds, value, ...props }: ThSliderProps) => react_jsx_runtime.JSX.Element; interface ThSliderWithPresetsProps extends Omit { presets: number[]; formatValue?: (value: number) => string; compounds?: { /** * Props for the outer wrapper div (contains slider + presets). */ wrapper?: HTMLAttributesWithRef; /** * Compounds forwarded to the inner ThSlider. */ slider?: ThSliderProps["compounds"]; /** * Props for the RadioGroup element wrapping the presets. */ presetsList?: Omit; /** * Props for the inner wrapper div containing the Radio items (grid container). */ presetsWrapper?: HTMLAttributesWithRef; /** * Props applied to each preset Radio. */ preset?: ThRadioGroupProps["compounds"] extends infer C ? C extends { radio?: infer R; } ? R : never : never; /** * Props applied to the label span inside each preset Radio. */ presetLabel?: ThRadioGroupProps["compounds"] extends infer C ? C extends { radioLabel?: infer L; } ? L : never : never; }; } declare const ThSliderWithPresets: ({ presets, formatValue, value, onChange, compounds, range, step, ...props }: ThSliderWithPresetsProps) => react_jsx_runtime.JSX.Element; interface ThSwitchProps extends SwitchProps { ref?: React.ForwardedRef; label: string; heading?: string; compounds?: { /** * Props for the wrapper component. See `HTMLAttributesWithRef` for more information. */ wrapper?: HTMLAttributesWithRef; /** * Props for the heading component. See `HeadingProps` for more information. */ heading?: WithRef; /** * Props for the indicator component. See `HTMLAttributesWithRef` for more information. */ indicator?: HTMLAttributesWithRef; }; } declare const ThSwitch: ({ ref, label, compounds, heading, ...props }: ThSwitchProps) => react_jsx_runtime.JSX.Element; interface ThDropdownEntry { id: string; label: string; value: string; } interface ThDropdownProps extends SelectProps { ref?: React__default.ForwardedRef; label?: string; items?: Iterable; children?: never; compounds?: { /** * Props for the label component. See `LabelProps` for more information. */ label?: WithRef; /** * Props for the button component. See `ThDropdownButtonProps` for more information. * Alternatively you can provide your own Button component */ button?: WithRef | React__default.ReactElement; /** * Props for the popover component. See `PopoverProps` for more information. */ popover?: WithRef; /** * Props for the listbox component. See `LisboxProps` for more information. * Alternatively you can provide your own Listbox component */ listbox?: WithRef, HTMLDivElement> | React__default.ReactElement; /** * Props for the listboxItem component. See `ListBoxItemProps` for more information. */ listboxItem?: ListBoxItemProps; }; } declare const ThDropdown: ({ ref, label, items, compounds, ...props }: ThDropdownProps) => react_jsx_runtime.JSX.Element | null; interface ThSettingsEntry { Comp: React__default.ComponentType; } interface ThSettingsPrefs { main: string[]; subPanel?: string[] | null; } interface ThSettingsWrapperProps extends HTMLAttributesWithRef { /** * Label for advanced settings that will be displayed as a heading */ label?: string; items?: Record | null; prefs: ThSettingsPrefs; compounds?: { /** * Props for the heading. Can be either: * - A React element that will be rendered directly * - Props that will be spread onto the default Heading component */ heading?: WithRef | React__default.ReactElement; /** * Props for the button that triggers the subpanel. See `ThActionButtonProps` for more information. */ button?: ThActionButtonProps; }; } declare const ThSettingsWrapper: ({ ref, label, items, prefs, compounds, ...props }: ThSettingsWrapperProps) => react_jsx_runtime.JSX.Element | undefined; export { type HTMLAttributesWithRef as H, type ThActionButtonProps as T, type WithRef as W, type ThCollapsibleActionsBarProps as a, ThCollapsibleActionsBar as b, ThActionButton as c, type THMenuProps as d, ThMenu as e, type ThMenuItemProps as f, ThMenuItem as g, type ThNumberFieldProps as h, ThNumberField as i, type ThRadioGroupItems as j, type ThRadioGroupProps as k, ThRadioGroup as l, type ThSliderProps as m, ThSlider as n, type ThSliderWithPresetsProps as o, ThSliderWithPresets as p, type ThSwitchProps as q, ThSwitch as r, type ThDropdownEntry as s, type ThDropdownProps as t, ThDropdown as u, type ThSettingsEntry as v, type ThSettingsPrefs as w, type ThSettingsWrapperProps as x, ThSettingsWrapper as y };