"""Base classes.""" from typing import Literal from reflex.components.el.element import Element from reflex.vars.base import Var AutoCapitalize = Literal["off", "none", "on", "sentences", "words", "characters"] ContentEditable = Literal[True, False, "inherit", "plaintext-only"] EnterKeyHint = Literal["enter", "done", "go", "next", "previous", "search", "send"] InputMode = Literal[ "none", "text", "tel", "url", "email", "numeric", "decimal", "search", "search" ] AriaRole = Literal[ "alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem", ] class BaseHTML(Element): """Base class for common attributes.""" # Provides a hint for generating a keyboard shortcut for the current element. access_key: Var[str] # Controls whether and how text input is automatically capitalized as it is entered/edited by the user. auto_capitalize: Var[AutoCapitalize] # Indicates whether the element's content is editable. content_editable: Var[ContentEditable] # Defines the ID of a