import type { Size } from '../../../Types/Size'; import { CustomElement } from '../../Abstracts/CustomElement'; import type { IColorSwatchElementProps } from './IColorSwatchElementProps'; declare const ColorSwatchElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Valueable").IValueableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Sizeable").ISizeableProps) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Color Swatch - A user interface component for displaying colors. * * @description * The Color Swatch component is designed to showcase a collection of colors, typically in a grid or list format. * Users can interact with the swatch to view different color options and select a color for various purposes, * such as choosing a text color, background color, or customizing the look and feel of elements. * Color Swatches are commonly used in design applications, theming interfaces, or color selection tools. * * @element mosaik-color-swatch * @category Media * * @csspart back - The back part. * @csspart front - The front part. * @csspart root - The root part. * * @cssprop {String} --color-swatch-background-color - The swatch background color CSS custom property. * @cssprop {String} --color-swatch-border-color - The swatch border color CSS custom property. * @cssprop {String} --color-swatch-border-radius - The swatch border radius CSS custom property. * @cssprop {String} --color-swatch-border-style - The swatch border style CSS custom property. * @cssprop {String} --color-swatch-border-width - The swatch border width CSS custom property. * @cssprop {String} --color-swatch-font-family - The swatch font family CSS custom property. * @cssprop {String} --color-swatch-font-letter-spacing - The swatch font letter spacing CSS custom property. * @cssprop {String} --color-swatch-font-line-height - The swatch font line height CSS custom property. * @cssprop {String} --color-swatch-font-size - The swatch font size CSS custom property. * @cssprop {String} --color-swatch-font-text-decoration - The swatch font text decoration CSS custom property. * @cssprop {String} --color-swatch-font-text-transform - The swatch font text transform CSS custom property. * @cssprop {String} --color-swatch-font-weight - The swatch font weight CSS custom property. * @cssprop {String} --color-swatch-foreground-color - The swatch foreground color CSS custom property. * @cssprop {String} --color-swatch-gap - The swatch gap CSS custom property. * @cssprop {String} --color-swatch-padding-bottom - The swatch padding bottom CSS custom property. * @cssprop {String} --color-swatch-padding-left - The swatch padding left CSS custom property. * @cssprop {String} --color-swatch-padding-right - The swatch padding right CSS custom property. * @cssprop {String} --color-swatch-padding-top - The swatch padding top CSS custom property. * @cssprop {String} --color-swatch-shadow - The swatch shadow CSS custom property. * @cssprop {String} --color-swatch-shadow-blur - The swatch shadow blur CSS custom property. * @cssprop {String} --color-swatch-shadow-color - The swatch shadow color CSS custom property. * @cssprop {String} --color-swatch-shadow-offset-x - The swatch shadow offset x CSS custom property. * @cssprop {String} --color-swatch-shadow-offset-y - The swatch shadow offset y CSS custom property. * @cssprop {String} --color-swatch-shadow-spread - The swatch shadow spread CSS custom property. * @cssprop {String} --color-swatch-size - The swatch size CSS custom property. * @cssprop {String} --color-swatch-transition-duration - The swatch transition duration CSS custom property. * @cssprop {String} --color-swatch-transition-mode - The swatch transition mode CSS custom property. * @cssprop {String} --color-swatch-transition-property - The swatch transition property CSS custom property. * @cssprop {String} --color-swatch-translate - The swatch translate CSS custom property. * * @example * Basic usage displaying a color: * ```html * * ``` * * @example * With a name and large size: * ```html * * ``` * * @example * With a checkerboard background for semi-transparent colors: * ```html * * ``` * * @public */ export declare class ColorSwatchElement extends ColorSwatchElement_base implements IColorSwatchElementProps { private readonly _inheritance; private _name; private _value; private _hasBackground; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `size` property. * When used inside a ColorSwatchGroup, inherits the group's size unless explicitly set. * * @public * @override */ get size(): Size; set size(value: Size); /** * Gets or sets the `name` property. * * @public * @attr */ get name(): string | null; set name(value: string | null); /** * Gets or sets the `value` property. * * @public * @override */ get value(): string | null; set value(value: string | null); /** * Gets or sets the `hasBackground` property. * * @public * @attr */ get hasBackground(): boolean; set hasBackground(value: boolean); } /** * @public */ export declare namespace ColorSwatchElement { type Props = IColorSwatchElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-color-swatch': ColorSwatchElement; } } export {}; //# sourceMappingURL=ColorSwatchElement.d.ts.map