@alegendstale/holly-components
Version:
Reusable UI components created using lit
37 lines • 1.37 kB
TypeScript
import { LitElement } from 'lit';
import { CopyFormat, PaletteSettings } from '../color-palette-utils.js';
import './color-palette-reorder.js';
/**
* A context menu for color-palette.
*
* @dependency color-palette-reorder
*
* @event {Event} open-editor - Emits an event to open the color-palette-editor.
* @event {boolean} hc-palette-edit - Emits a change in editMode.
* @event hc-palette-change - Emits a change in palette colors or settings.
*
*/
export declare class ColorPaletteMenu extends LitElement {
static styles: import("lit").CSSResult[];
/** The settings palette colors. */
colors: string[];
/** The selected palette settings. */
settings?: Partial<PaletteSettings>;
/** The selected palette edit mode status. */
editMode: Boolean;
/** Determines if copying takes the raw value or just the colors. */
copyFormat: CopyFormat;
/** Whether reorder state is active. */
reorder: boolean;
render(): import("lit-html").TemplateResult<1>;
/** Renders the menu items. */
protected menuItems(): import("lit-html").TemplateResult<1>;
/** Renders the reorder items. */
protected reorderItems(): import("lit-html").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
'color-palette-menu': ColorPaletteMenu;
}
}
//# sourceMappingURL=color-palette-menu.d.ts.map