/** @packageDocumentation * @module Color */ import * as React from "react"; import { ColorDef } from "@itwin/core-common"; import { RelativePosition } from "@itwin/appui-abstract"; import type { CommonProps } from "@itwin/core-react"; import "./ColorPickerPopup.scss"; /** Properties for the [[ColorPickerPopup]] React component * @public * @deprecated in 4.11.0. Props of deprecated component {@link ColorPickerPopup}. */ export interface ColorPickerPopupProps extends React.ButtonHTMLAttributes, CommonProps { /** Current color */ initialColor: ColorDef; /** Preset colors. Pass undefined to show default preset colors. Pass empty array to show no presets. * Displayed in rows of 9 items */ colorDefs?: ColorDef[]; /** Function to call when the color value is changed */ onColorChange?: ((newColor: ColorDef) => void) | undefined; /** Function to call when the popup is closed */ onClose?: ((colorValue: ColorDef) => void) | undefined; /** Disabled or not */ disabled?: boolean; /** Readonly or not, color displayed on button but button will not trigger pop-up */ readonly?: boolean; /** popup position. If not set RelativePosition.BottomLeft is used */ popupPosition?: RelativePosition; /** Provides ability to return reference to HTMLButtonElement */ ref?: React.Ref; /** If true show up/down caret next to color */ showCaret?: boolean; /** If true, don't propagate clicks out of the ColorPicker */ captureClicks?: boolean; /** If true, don't show close button at top */ hideCloseButton?: boolean; /** If set show input values */ colorInputType?: "hsl" | "rgb" | "hex"; } /** * ColorPickerButton component that allows user to select a color from a set of color swatches or to define a new color. * @note Using forwardRef so the ColorEditor (Type Editor) can access the ref of the button element inside this component. * @public * @deprecated in 4.11.0. Use {@link https://itwinui.bentley.com/docs/colorpicker iTwinUI color picker} instead. */ export declare const ColorPickerPopup: (props: ColorPickerPopupProps) => React.ReactNode; //# sourceMappingURL=ColorPickerPopup.d.ts.map