// =========== Module contains interfaces for common UI elements. ========== import { HTMLMotionProps } from 'framer-motion'; export namespace CProps { export type Control = { title?: string; disabled?: boolean; noBorder?: boolean; noOutline?: boolean; }; export type Styling = { style?: React.CSSProperties; className?: string; }; export type Editor = Control & { label?: string; }; export type Colors = { colors?: string; }; export type Div = React.DetailedHTMLProps, HTMLDivElement>; export type Button = Omit< React.DetailedHTMLProps, HTMLButtonElement>, 'children' | 'type' >; export type Label = Omit< React.DetailedHTMLProps, HTMLLabelElement>, 'children' >; export type TextArea = React.DetailedHTMLProps< React.TextareaHTMLAttributes, HTMLTextAreaElement >; export type Input = React.DetailedHTMLProps, HTMLInputElement>; export type AnimatedButton = Omit, 'type'>; export type AnimatedDiv = HTMLMotionProps<'div'>; }