UNPKG

@mdfriday/shortcode

Version:

A flexible component-based shortcode system for Markdown content with theme support

42 lines (41 loc) 1.24 kB
import { ComponentVariant, Theme } from '../types'; import { BaseComponent } from './base-component'; /** * Input component implementation */ export declare class InputComponent extends BaseComponent { /** * Create a new InputComponent * @param variant The input variant * @param parent Optional parent component name */ constructor(variant: ComponentVariant, parent?: string); /** * Generate base class CSS * @param theme The jsons * @param prefix Optional prefix for CSS classes * @returns The CSS string */ protected generateBaseCSS(theme: Theme, prefix?: string): string; /** * Generate variant class CSS * @param theme The jsons * @param prefix Optional prefix for CSS classes * @returns The CSS string */ protected generateVariantCSS(theme: Theme, prefix?: string): string; /** * Add focus states * @param css The CSS string * @param theme The jsons * @param prefix Optional prefix for CSS classes */ private addFocusStates; /** * Make a color transparent * @param color The color * @param opacity The opacity * @returns The transparent color */ private transparentize; }