From c388542844f31712d3743cda05350df6008da259 Mon Sep 17 00:00:00 2001 From: anubrag Date: Wed, 17 Jan 2024 23:35:19 +0530 Subject: [PATCH 1/5] added mail module --- nextpy/backend/module/email/__init__.py | 4 - nextpy/backend/module/mail/__init__.py | 16 +++ nextpy/backend/module/mail/config.py | 19 ++++ nextpy/backend/module/mail/email_template.py | 15 +++ nextpy/backend/module/mail/exceptions.py | 8 ++ nextpy/backend/module/mail/message.py | 61 +++++++++++ nextpy/backend/module/mail/sender.py | 70 ++++++++++++ poetry.lock | 63 ++++++++++- pyproject.toml | 3 +- .../backend/module/mail/test_email_module.py | 103 ++++++++++++++++++ tests/backend/module/mail/test_template.html | 10 ++ 11 files changed, 362 insertions(+), 10 deletions(-) delete mode 100644 nextpy/backend/module/email/__init__.py create mode 100644 nextpy/backend/module/mail/__init__.py create mode 100644 nextpy/backend/module/mail/config.py create mode 100644 nextpy/backend/module/mail/email_template.py create mode 100644 nextpy/backend/module/mail/exceptions.py create mode 100644 nextpy/backend/module/mail/message.py create mode 100644 nextpy/backend/module/mail/sender.py create mode 100644 tests/backend/module/mail/test_email_module.py create mode 100644 tests/backend/module/mail/test_template.html diff --git a/nextpy/backend/module/email/__init__.py b/nextpy/backend/module/email/__init__.py deleted file mode 100644 index 3f7d01b3..00000000 --- a/nextpy/backend/module/email/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. -# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. - -"""The email package builts on top of fastapi-mail.""" diff --git a/nextpy/backend/module/mail/__init__.py b/nextpy/backend/module/mail/__init__.py new file mode 100644 index 00000000..a3ecbd4c --- /dev/null +++ b/nextpy/backend/module/mail/__init__.py @@ -0,0 +1,16 @@ +"""The email package.""" + +from .config import EmailConfig +from .message import EmailMessage +from .sender import EmailSender +from .email_template import EmailTemplateManager +from .exceptions import EmailConfigError, EmailSendError + +__all__ = [ + 'EmailConfig', + 'EmailSender', + 'EmailMessage', + 'EmailTemplateManager', + 'EmailConfigError', + 'EmailSendError' +] diff --git a/nextpy/backend/module/mail/config.py b/nextpy/backend/module/mail/config.py new file mode 100644 index 00000000..b54cea5e --- /dev/null +++ b/nextpy/backend/module/mail/config.py @@ -0,0 +1,19 @@ +from pydantic import BaseModel, EmailStr + + +class EmailConfig(BaseModel): + """Configuration class for the email module.""" + + MAIL_SERVER: str # SMTP server address + MAIL_PORT: int # SMTP server port + MAIL_USERNAME: str # SMTP username + MAIL_PASSWORD: str # SMTP password + MAIL_USE_TLS: bool = False # Whether to use TLS + MAIL_USE_SSL: bool = False # Whether to use SSL + MAIL_DEFAULT_SENDER: EmailStr # Default email sender + MAIL_TEMPLATE_FOLDER: str = None # Path to the email templates directory + MAIL_MAX_EMAILS: int = None # Maximum number of emails to send + MAIL_SUPPRESS_SEND: bool = False # Suppress sending emails for testing + + class Config: + env_prefix = "EMAIL_" # Prefix for environment variable configuration diff --git a/nextpy/backend/module/mail/email_template.py b/nextpy/backend/module/mail/email_template.py new file mode 100644 index 00000000..fc4c3b61 --- /dev/null +++ b/nextpy/backend/module/mail/email_template.py @@ -0,0 +1,15 @@ +from jinja2 import Environment, FileSystemLoader, select_autoescape + +from .config import EmailConfig + + +class EmailTemplateManager: + def __init__(self, config: EmailConfig): + self.env = Environment( + loader=FileSystemLoader(config.MAIL_TEMPLATE_FOLDER), + autoescape=select_autoescape(['html', 'xml']) + ) + + def render_template(self, template_name: str, context: dict) -> str: + template = self.env.get_template(template_name) + return template.render(context) diff --git a/nextpy/backend/module/mail/exceptions.py b/nextpy/backend/module/mail/exceptions.py new file mode 100644 index 00000000..5dbcb41b --- /dev/null +++ b/nextpy/backend/module/mail/exceptions.py @@ -0,0 +1,8 @@ +class EmailError(Exception): + """Base class for email errors.""" + +class EmailConfigError(EmailError): + """Raised for configuration related errors.""" + +class EmailSendError(EmailError): + """Raised when sending an email fails.""" diff --git a/nextpy/backend/module/mail/message.py b/nextpy/backend/module/mail/message.py new file mode 100644 index 00000000..e23d14e3 --- /dev/null +++ b/nextpy/backend/module/mail/message.py @@ -0,0 +1,61 @@ +import mimetypes +import os +from email import encoders +from email.mime.base import MIMEBase +from enum import Enum +from typing import Dict, List, Optional, Union + +from pydantic import BaseModel, EmailStr, validator + + +class MessageType(str, Enum): + PLAIN = "plain" + HTML = "html" + +class MultipartSubtypeEnum(str, Enum): + MIXED = "mixed" + DIGEST = "digest" + ALTERNATIVE = "alternative" + RELATED = "related" + REPORT = "report" + SIGNED = "signed" + ENCRYPTED = "encrypted" + FORM_DATA = "form-data" + MIXED_REPLACE = "x-mixed-replace" + BYTERANGE = "byterange" + +class EmailMessage(BaseModel): + recipients: List[EmailStr] + subject: str + body: Optional[str] = None + html_body: Optional[str] = None + sender: Optional[EmailStr] = None + cc: List[EmailStr] = [] + bcc: List[EmailStr] = [] + attachments: List[str] = [] # List of file paths for attachments + template_body: Optional[Union[dict, list, str]] = None # Template context + subtype: MessageType = MessageType.PLAIN + multipart_subtype: MultipartSubtypeEnum = MultipartSubtypeEnum.MIXED + headers: Optional[Dict[str, str]] = None + + @validator('attachments', each_item=True) + def validate_attachment(cls, v): + if isinstance(v, str) and os.path.isfile(v) and os.access(v, os.R_OK): + return v + raise ValueError("Attachment must be a readable file path") + + def create_attachment(self, filepath: str) -> MIMEBase: + """Creates a MIMEBase object for the given attachment file.""" + ctype, encoding = mimetypes.guess_type(filepath) + if ctype is None or encoding is not None: + ctype = 'application/octet-stream' + maintype, subtype = ctype.split('/', 1) + with open(filepath, 'rb') as fp: + attachment = MIMEBase(maintype, subtype) + attachment.set_payload(fp.read()) + encoders.encode_base64(attachment) + attachment.add_header('Content-Disposition', 'attachment', filename=os.path.basename(filepath)) + return attachment + + class Config: + arbitrary_types_allowed = True diff --git a/nextpy/backend/module/mail/sender.py b/nextpy/backend/module/mail/sender.py new file mode 100644 index 00000000..3238046f --- /dev/null +++ b/nextpy/backend/module/mail/sender.py @@ -0,0 +1,70 @@ +from email.mime.multipart import MIMEMultipart +from email.mime.text import MIMEText +from typing import Optional + +import aiosmtplib + +from .config import EmailConfig +from .email_template import EmailTemplateManager +from .exceptions import EmailSendError +from .message import EmailMessage + + +class EmailSender: + def __init__(self, config: EmailConfig, template_manager: Optional[EmailTemplateManager] = None): + self.config = config + self.template_manager = template_manager + + async def send_email(self, message: EmailMessage, template_name: Optional[str] = None) -> None: + """Sends an email message.""" + if self.config.MAIL_SUPPRESS_SEND: + return + + smtp = aiosmtplib.SMTP() + + try: + await smtp.connect(hostname=self.config.MAIL_SERVER, port=self.config.MAIL_PORT, use_tls=self.config.MAIL_USE_TLS) + if self.config.MAIL_USE_TLS or self.config.MAIL_USE_SSL: + await smtp.starttls() + if self.config.MAIL_USERNAME and self.config.MAIL_PASSWORD: + await smtp.login(self.config.MAIL_USERNAME, self.config.MAIL_PASSWORD) + + mime_message = await self._create_mime_message(message, template_name) + await smtp.send_message(mime_message) + except Exception as error: + # Consider adding logging here + raise EmailSendError(f"Failed to send email: {error}") + finally: + if smtp.is_connected: + await smtp.quit() + + + async def _create_mime_message( + self, message: EmailMessage, template_name: Optional[str] = None + ) -> MIMEMultipart: + """Creates a MIME message from an EmailMessage object.""" + mime_message = MIMEMultipart("mixed" if message.attachments else "alternative") + mime_message["Subject"] = message.subject + mime_message["From"] = ( + message.sender if message.sender else self.config.MAIL_DEFAULT_SENDER + ) + mime_message["To"] = ", ".join(message.recipients) + + # If a template is provided, render the email content using the template + if template_name and self.template_manager: + rendered_content = self.template_manager.render_template( + template_name, message.template_body + ) + mime_message.attach(MIMEText(rendered_content, "html")) + else: + if message.body: + mime_message.attach(MIMEText(message.body, "plain")) + if message.html_body: + mime_message.attach(MIMEText(message.html_body, "html")) + + # Handling attachments + for attachment_path in message.attachments: + attachment = message.create_attachment(attachment_path) + mime_message.attach(attachment) + + return mime_message diff --git a/poetry.lock b/poetry.lock index 30932ee6..583095b4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -112,6 +112,22 @@ files = [ [package.dependencies] frozenlist = ">=1.1.0" +[[package]] +name = "aiosmtplib" +version = "3.0.1" +description = "asyncio SMTP client" +category = "main" +optional = false +python-versions = ">=3.8,<4.0" +files = [ + {file = "aiosmtplib-3.0.1-py3-none-any.whl", hash = "sha256:abcceae7e820577307b4cda2041b2c25e5121469c0e186764ddf8e15b12064cd"}, + {file = "aiosmtplib-3.0.1.tar.gz", hash = "sha256:43580604b152152a221598be3037f0ae6359c2817187ac4433bd857bc3fc6513"}, +] + +[package.extras] +docs = ["furo (>=2023.9.10,<2024.0.0)", "sphinx (>=7.0.0,<8.0.0)", "sphinx-copybutton (>=0.5.0,<0.6.0)", "sphinx_autodoc_typehints (>=1.24.0,<2.0.0)"] +uvloop = ["uvloop (>=0.18,<0.19)"] + [[package]] name = "alembic" version = "1.13.1" @@ -800,6 +816,42 @@ files = [ {file = "distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"}, ] +[[package]] +name = "dnspython" +version = "2.4.2" +description = "DNS toolkit" +category = "main" +optional = false +python-versions = ">=3.8,<4.0" +files = [ + {file = "dnspython-2.4.2-py3-none-any.whl", hash = "sha256:57c6fbaaeaaf39c891292012060beb141791735dbb4004798328fc2c467402d8"}, + {file = "dnspython-2.4.2.tar.gz", hash = "sha256:8dcfae8c7460a2f84b4072e26f1c9f4101ca20c071649cb7c34e8b6a93d58984"}, +] + +[package.extras] +dnssec = ["cryptography (>=2.6,<42.0)"] +doh = ["h2 (>=4.1.0)", "httpcore (>=0.17.3)", "httpx (>=0.24.1)"] +doq = ["aioquic (>=0.9.20)"] +idna = ["idna (>=2.1,<4.0)"] +trio = ["trio (>=0.14,<0.23)"] +wmi = ["wmi (>=1.5.1,<2.0.0)"] + +[[package]] +name = "email-validator" +version = "2.1.0.post1" +description = "A robust email address syntax and deliverability validation library." +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "email_validator-2.1.0.post1-py3-none-any.whl", hash = "sha256:c973053efbeddfef924dc0bd93f6e77a1ea7ee0fce935aea7103c7a3d6d2d637"}, + {file = "email_validator-2.1.0.post1.tar.gz", hash = "sha256:a4b0bd1cf55f073b924258d19321b1f3aa74b4b5a71a42c305575dba920e1a44"}, +] + +[package.dependencies] +dnspython = ">=2.0.0" +idna = ">=2.0.0" + [[package]] name = "exceptiongroup" version = "1.2.0" @@ -1269,14 +1321,14 @@ files = [ [[package]] name = "ipykernel" -version = "6.28.0" +version = "6.29.0" description = "IPython Kernel for Jupyter" category = "dev" optional = false python-versions = ">=3.8" files = [ - {file = "ipykernel-6.28.0-py3-none-any.whl", hash = "sha256:c6e9a9c63a7f4095c0a22a79f765f079f9ec7be4f2430a898ddea889e8665661"}, - {file = "ipykernel-6.28.0.tar.gz", hash = "sha256:69c11403d26de69df02225916f916b37ea4b9af417da0a8c827f84328d88e5f3"}, + {file = "ipykernel-6.29.0-py3-none-any.whl", hash = "sha256:076663ca68492576f051e4af7720d33f34383e655f2be0d544c8b1c9de915b2f"}, + {file = "ipykernel-6.29.0.tar.gz", hash = "sha256:b5dd3013cab7b330df712891c96cd1ab868c27a7159e606f762015e9bf8ceb3f"}, ] [package.dependencies] @@ -1299,7 +1351,7 @@ cov = ["coverage[toml]", "curio", "matplotlib", "pytest-cov", "trio"] docs = ["myst-parser", "pydata-sphinx-theme", "sphinx", "sphinx-autodoc-typehints", "sphinxcontrib-github-alt", "sphinxcontrib-spelling", "trio"] pyqt5 = ["pyqt5"] pyside6 = ["pyside6"] -test = ["flaky", "ipyparallel", "pre-commit", "pytest (>=7.0)", "pytest-asyncio", "pytest-cov", "pytest-timeout"] +test = ["flaky", "ipyparallel", "pre-commit", "pytest (>=7.0)", "pytest-asyncio (==0.23.2)", "pytest-cov", "pytest-timeout"] [[package]] name = "ipython" @@ -2494,6 +2546,7 @@ files = [ ] [package.dependencies] +email-validator = {version = ">=1.0.3", optional = true, markers = "extra == \"email\""} typing-extensions = ">=4.2.0" [package.extras] @@ -4689,4 +4742,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "f858d77a327ef9175faa6593455e7e56277aa68ebdac20a877f40995e80fc9f2" +content-hash = "dec3a720b0436264e305dc74f25d764ae2823dda2de4c822ac89d59da9aa9cdc" diff --git a/pyproject.toml b/pyproject.toml index 05a53d31..8648c3c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ gunicorn = "^20.1.0" httpx = ">=0.24.0,<0.26.0" jinja2 = "^3.1.2" psutil = "^5.9.4" -pydantic = "^1.10.2" +pydantic = {version = "^1.10.2", extras = ["email"]} python-multipart = "^0.0.5" python-socketio = "^5.7.0" redis = "^4.3.5" @@ -50,6 +50,7 @@ websockets = ">=10.4" pyjokes = "^0.6.0" pylint = "^3.0.3" charset-normalizer = "^3.3.2" +aiosmtplib = "^3.0.1" [tool.poetry.group.dev.dependencies] pytest = "^7.1.2" diff --git a/tests/backend/module/mail/test_email_module.py b/tests/backend/module/mail/test_email_module.py new file mode 100644 index 00000000..46653bc2 --- /dev/null +++ b/tests/backend/module/mail/test_email_module.py @@ -0,0 +1,103 @@ +# test_email_module.py +from pathlib import Path +import aiosmtplib +from unittest.mock import AsyncMock, MagicMock, patch +import pytest +import pytest_asyncio +from email.mime.multipart import MIMEMultipart + +from nextpy.backend.module.mail.config import EmailConfig +from nextpy.backend.module.mail.email_template import EmailTemplateManager +from nextpy.backend.module.mail.sender import EmailSender +from nextpy.backend.module.mail.message import EmailMessage +from nextpy.backend.module.mail.exceptions import EmailSendError + +# Fixture for Email Configuration +@pytest.fixture +def email_config(): + # Specify the directory where your test_template.html is located + test_template_dir = Path(__file__).parent + return EmailConfig( + MAIL_SERVER="smtp.example.com", + MAIL_PORT=587, + MAIL_USERNAME="user@example.com", + MAIL_PASSWORD="password", + MAIL_USE_TLS=True, + MAIL_USE_SSL=False, + MAIL_DEFAULT_SENDER="sender@example.com", + MAIL_TEMPLATE_FOLDER=str(test_template_dir) # Set the directory where test_template.html is located + ) + +@pytest.fixture +def mock_template_manager(): + # Mock your EmailTemplateManager here if needed, or provide a real instance + return MagicMock(spec=EmailTemplateManager) + +# Fixture for Email Template Manager +@pytest.fixture +def email_template_manager(email_config): + return EmailTemplateManager(email_config) + +# Fixture for Email Sender +@pytest.fixture +def email_sender(email_config, email_template_manager): + return EmailSender(email_config, email_template_manager) + +# Test for Email Template Rendering +def test_template_rendering(email_template_manager): + rendered_content = email_template_manager.render_template("test_template.html", {"name": "Test"}) + assert "Test" in rendered_content + +# Test for Sending Email +@pytest.mark.asyncio +async def test_send_email(email_config, mock_template_manager): + # Mock the SMTP client + with patch('aiosmtplib.SMTP') as mock_smtp: + mock_smtp.return_value.connect = AsyncMock() + + email_sender = EmailSender(email_config, mock_template_manager) + + # Mock the connect, starttls, login, send_message and quit methods + mock_smtp.return_value.connect = AsyncMock() + mock_smtp.return_value.starttls = AsyncMock() + mock_smtp.return_value.login = AsyncMock() + mock_smtp.return_value.send_message = AsyncMock() + mock_smtp.return_value.quit = AsyncMock() + + # Properly instantiate EmailMessage + message = EmailMessage( + recipients=["recipient@example.com"], + subject="Test Subject", + body="Test email body" + ) + await email_sender.send_email(message) + + # Assertions to ensure methods were called + mock_smtp.return_value.connect.assert_called_once() + mock_smtp.return_value.starttls.assert_called_once() + mock_smtp.return_value.login.assert_called_once() + mock_smtp.return_value.send_message.assert_called_once() + mock_smtp.return_value.quit.assert_called_once() + + +# Test for Handling Email Sending Failure +@pytest.mark.asyncio +async def test_send_email_failure(email_config, mock_template_manager): + # Mock the SMTP client + with patch('aiosmtplib.SMTP') as mock_smtp: + mock_smtp.return_value.connect = AsyncMock(side_effect=aiosmtplib.errors.SMTPConnectError("Connection error")) + mock_smtp.return_value.is_connected = True + mock_smtp.return_value.quit = AsyncMock() + + email_sender = EmailSender(email_config, mock_template_manager) + + # Properly instantiate EmailMessage + message = EmailMessage( + recipients=["recipient@example.com"], + subject="Test Email", + body="This is a test email." + ) + email_sender.config.MAIL_SERVER = "invalid.server.com" # Intentionally incorrect + + with pytest.raises(EmailSendError): + await email_sender.send_email(message) diff --git a/tests/backend/module/mail/test_template.html b/tests/backend/module/mail/test_template.html new file mode 100644 index 00000000..ff524923 --- /dev/null +++ b/tests/backend/module/mail/test_template.html @@ -0,0 +1,10 @@ + + + + Test Email + + +

Hello {{ name }}

+

This is a test email template.

+ + \ No newline at end of file From 041b285197bca2c4213af260d2b0edb75759c902 Mon Sep 17 00:00:00 2001 From: anubrag Date: Thu, 18 Jan 2024 12:08:28 +0530 Subject: [PATCH 2/5] update unstyed --- app-examples/unstyled_example/.gitignore | 4 ++ .../unstyled_example/assets/favicon.ico | Bin 0 -> 15406 bytes .../unstyled_example/assets/github.svg | 10 ++++ .../assets/gradient_underline.svg | 2 + app-examples/unstyled_example/assets/icon.svg | 3 + .../unstyled_example/assets/logo_darkmode.svg | 2 + .../unstyled_example/assets/paneleft.svg | 13 +++++ .../assets/text_logo_darkmode.svg | 2 + .../unstyled_example/__init__.py | 3 + .../unstyled_example/unstyled_example.py | 54 ++++++++++++++++++ app-examples/unstyled_example/xtconfig.py | 5 ++ nextpy/__init__.py | 7 ++- nextpy/__init__.pyi | 19 ++++-- nextpy/frontend/components/__init__.py | 1 - nextpy/frontend/components/proxy/__init__.py | 6 +- nextpy/frontend/components/proxy/unstyled.py | 26 +++++++++ 16 files changed, 145 insertions(+), 12 deletions(-) create mode 100644 app-examples/unstyled_example/.gitignore create mode 100644 app-examples/unstyled_example/assets/favicon.ico create mode 100644 app-examples/unstyled_example/assets/github.svg create mode 100644 app-examples/unstyled_example/assets/gradient_underline.svg create mode 100644 app-examples/unstyled_example/assets/icon.svg create mode 100644 app-examples/unstyled_example/assets/logo_darkmode.svg create mode 100644 app-examples/unstyled_example/assets/paneleft.svg create mode 100644 app-examples/unstyled_example/assets/text_logo_darkmode.svg create mode 100644 app-examples/unstyled_example/unstyled_example/__init__.py create mode 100644 app-examples/unstyled_example/unstyled_example/unstyled_example.py create mode 100644 app-examples/unstyled_example/xtconfig.py create mode 100644 nextpy/frontend/components/proxy/unstyled.py diff --git a/app-examples/unstyled_example/.gitignore b/app-examples/unstyled_example/.gitignore new file mode 100644 index 00000000..eab0d4b0 --- /dev/null +++ b/app-examples/unstyled_example/.gitignore @@ -0,0 +1,4 @@ +*.db +*.py[cod] +.web +__pycache__/ \ No newline at end of file diff --git a/app-examples/unstyled_example/assets/favicon.ico b/app-examples/unstyled_example/assets/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..1f55d3be060bb3a53118ff759b317978debf9f28 GIT binary patch literal 15406 zcmeI33zS`Db;qv-t%3-Ym(T|hAJw2sB&8COIx?Ai?>YBQsxAk`0#c=UP3D<-+?h!x zcV5Z7GOtX6krDx|m7tV@v=$Y#f(v;mk1kL&g^Fk(O+qB^$L??MbG~!WOomJ*tdJ~M zXRW=ybMHOh+5i1N`}@BA?fp$6@rJ~4iBnEV&`wLtJ3f*4>qH_kZCdd8y{9G;Yx(Yi z3&P*ulSusdj6~wS+(Q?71mDw4_$Qe;Ws;ruh-4PrFWK_q32!>cmy(_Tgp@82`if*K z9+#4Z=N#nr1Adb1!e0-t@cIg_DH5- zrDPg2L7%3l#BbV7-~HmZAWM)|Wa)E~T5>)*e?mX7*CF*t1JB6qlT6bd`tTXCev4_f z?@|#jkF@QSbo-U!*WXPa?T0jSPmX(?MTNiNq2lvyoT?fFYKp% zT))K*C*P?)#J7H2cZ#H!?MA)`&VL=F&ole95B;@Y`+jt(1pT}&+GR-h9!Yo4h07bo zH{0kF;Zwq_``U3lQq3@T-O_J{VtfV`y5O4X* zlJ41$(6@j=iel$!5bt!v`{`moj+6AND{a@?%;?K)6SN%Xr=WV6k z&3v^>vJ19IY56VSm@(0u^ICPr`!h%0g6$h^u5|Ndww!sV{3XdO9Fd~xQ(n#Y;?FtU zYsr+~hrL^|H<+t!&eeIh0t}UpGIxIp|9I2kK7X=)*ogjexL2K~S9K#g?^kX@Zjf1x zCr|dA!~H$bUx9wr8S2eeajjClSN!V7Sbt{gTyZEmZ0+zW{+N07Z8p~wEjry={anUa z59c2DEOh<=j<;Yhe6wDu-b}b|Woy7tyP0+5Mk%g3YkXh#3~g&5$6E3QGl z%KZHR^ZwJckFwU>EMD`~lFm)jxzY8N(#l)VxiQdNjc#2lL&?^ne-UdIYp1u!lbJPd zas5oE&9O~qh*$d|@tQs@UgIEZ&Xefd!uqz0HFck@ahb)mi+8flvBtK3L%b!II1K3h zXVb6iw5_+Q+tysL==y1E?^f2(b&{=rw-gl}&)WEQbbOfg`*YYij9?!+gY_6)ZcT1s z?Q!d?u3xs!Ze#trLrOZ{EeYnmZ1p#=7yHp`_L|M;tGNgSX;ep?>scREQU{8Z%hjfPRe| zEDoT}!C~$diy<<^0vba&8KYCzc(WH>8Yh@e)f$ZTd6yed5=>5ZW5* zRC`043-4ET^1HJ)&avv8$X1JW=tq3zYn)`U5*RuQ`aSe#8h$gz)*#lSU&OQOM%1s= zR;SxI=5y@*1~DY}xi~9~?R;W8jqgmlwi7=E_WKRJ=tjSCtnuOj{>*pSoQZRcZ+WWQ zVnJ=WM+KdxSKBc*qgUfY7b7l1|MF0O4*fawn{Uz2+3bAEY(;ugrt6X|vOiLEuh zwisLE<=zLSxa%zJ{v0+wGe)P4A+_g`!czz0rO=P-^24`*vmdMoTq&DH_o2}U*5~UY9srI2Wf9bSBoUO zN+i{FwytH!o4Nite)V7IWDjK=!xef}g1rgt3hYNxD+2pDRqXx^E`(7y<`Qx7%9{ zsD5M+{>SPc^PIAE$4P1a1WEF4*qg+Eo9tSWeP^N2R6ORnfc-)~K)+G}F_ zOK^<9|Hu>U6K5RC^QL-_?P*H}FX0_Ofc`zY=yn*6eI-TTqvb;E67!>MgBuF^KM55Bs=%ha@m}BT0Ujm9+O8O^*<^3 z!a3wqGTV2cmK`x&&WUAg|tbk{6e|p3nv|HuX{9%0cRO`nn7eevJKg1 zl3lQu{KX!y^WDNn$))5Zz2KtPBX>0w9^m@RhVrv*I@Fil1>^{d?+0kCU6ZR_j*Bf(-%wiV%O~D{L?60W?9^RjhAB$;cH=IN~ekOILKeHTSaqc`(DI%XpT}^dpe(=@i z3^>0R?w>+-B8=5aB+Pdnkn^;>=XUaP4Wonyk##}y zYPIXgk6w%qop3N4jAyN7>KkpqL97RDLkw~)_V z{6EM8)Gog!sl|(=B!7X~ok&FWQu4ev!}pIFmpjZ)GUG5?&X>Gvkn_bR@~%Pd_hIs_ z<>Y^-E2rbVD5}5C&Yy#CTr62Id%1;3KU~9Y6Z_dPH=Ak3FUezN$YTY0G+J^jmLFci zo_EP+asiLB*X(3JTolhY8~#ky{f6IRkMhM4=Zf25=egKmxxIQ~q&oK36>l@VTF;}V zAgSiFCEf6s_{AmURj)OkEoa_DKC)>mxXDR0?FF;TDU%b?T$tvj!aSVjrGnfPx>~WX zbvx~P$>jT`wBsH6K9w_k?P~)jrub3cCBFkD)J-b7uc`?yszLR_=V-9!K8UZmphE-r7g$AZb0d24Ji+_aX@rES252I>Nh-$K@c z_3L0|jRSKghd-0oc6n^qx?G&)9W@6S2{>IYP_c)&ea(?M$y2w<{~WnqvK>V_e}f(T zwFUeRyK-H?9`atV*cG=5-&r1fH#p%oM{NV&$mH+~%~{5B@b0?6H@}B|66I_o>;d0~ ze_Vdg&y)Mfzd#P=E^63=vt63|4?R^1$^X+li z9nZ#f46~~}L^S}l1F<>)7-HB1uKCV54{fTF`V;Tybcg@?f7BKi#{i?_+iD8@7Ms7Lap`!r zmOk2sk0rn7oytbu$>-iqVuY8B|N-#D< z{Lz@?UdOq%@j1|8j?E`=|91Io%iqJbVva;>2VGzf#qT1gzpQ}YZ|tDH3;ss%hu95o z=;Kk%DmE_N+!EBS!0N`O!#~k{62tC%Ty2=xPrw}3TjDjB^fK&N7UEyd86o_C4F1@- zjQm9X#bGx;;dAIGIiJloxndF z&u;z>=0N&K^9gng7U47PScYOu?woh8jxx6LMW<3kLhPE}r z?B%D+rJUokya%}x)%9V{t9i>lK|TAs%z@zO32aawaW!pg9oL2*JHq<5)tLth_%)BD zHFCf6Tw?0EVE?*!OCMwoc^+ZU+{T_w@vDERZ+B9Q@8C>9$CF%tkA9qA>*%Bw{aH!n zFSHux^s)oa)4BYF?ej}|FQ6VyE}`ckIHn%0{tee!6F2FnMeOXawk!CIxEgtS5d1^N zzwP1Gh8b(#D9QYp;QuS|GN-nUGM|92{b6vk$8G0KLOW*wI(`D)oAB!zK7Wkscf#ix zGP~y_i$^A@Yg-P>?|nOXeFUz0Sx@zxa^x!^ZsmI*6vNK&u%_TW)8gNaPrW$?^YX9z4%)1ui%_>H;UhJ z9`fxCDCaTZe1M)2NKcI4+2LB_%3=(BR{gjre@fuX2mZf+>vO2B0Z(L=>FmHXi0cw(>*GN;sXCgEoV{BgeB*#vEeLm2}9 z@JpNW zN&hF{RR322T;O-u<7Z3kj0gDbyu(O{fAr|%*ZD!;L3*f?@%an=OW;J%=wg2 zwE_IA;s5C4*SBwDIXP5~lL&vm5+&Ifk`_&FCd zvJ(k?Me#?t^?DEIResI6ky=S#H%A0Fku$Ji4!G|`p5=dkw$b8CtB}<@Xo(xHyNfeQ^JUhm z_i4m7n2EQ8#{aE12(LtbU*C+p%Gk>(8s-SnP5vo`=zOS + + + + + + + + + diff --git a/app-examples/unstyled_example/assets/gradient_underline.svg b/app-examples/unstyled_example/assets/gradient_underline.svg new file mode 100644 index 00000000..36ff3730 --- /dev/null +++ b/app-examples/unstyled_example/assets/gradient_underline.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/app-examples/unstyled_example/assets/icon.svg b/app-examples/unstyled_example/assets/icon.svg new file mode 100644 index 00000000..f7ee063b --- /dev/null +++ b/app-examples/unstyled_example/assets/icon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/app-examples/unstyled_example/assets/logo_darkmode.svg b/app-examples/unstyled_example/assets/logo_darkmode.svg new file mode 100644 index 00000000..e90f7463 --- /dev/null +++ b/app-examples/unstyled_example/assets/logo_darkmode.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/app-examples/unstyled_example/assets/paneleft.svg b/app-examples/unstyled_example/assets/paneleft.svg new file mode 100644 index 00000000..ac9c5040 --- /dev/null +++ b/app-examples/unstyled_example/assets/paneleft.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/app-examples/unstyled_example/assets/text_logo_darkmode.svg b/app-examples/unstyled_example/assets/text_logo_darkmode.svg new file mode 100644 index 00000000..e395e3d7 --- /dev/null +++ b/app-examples/unstyled_example/assets/text_logo_darkmode.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/app-examples/unstyled_example/unstyled_example/__init__.py b/app-examples/unstyled_example/unstyled_example/__init__.py new file mode 100644 index 00000000..847433fd --- /dev/null +++ b/app-examples/unstyled_example/unstyled_example/__init__.py @@ -0,0 +1,3 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + diff --git a/app-examples/unstyled_example/unstyled_example/unstyled_example.py b/app-examples/unstyled_example/unstyled_example/unstyled_example.py new file mode 100644 index 00000000..d7a037ea --- /dev/null +++ b/app-examples/unstyled_example/unstyled_example/unstyled_example.py @@ -0,0 +1,54 @@ +import nextpy as xt + + +class CounterState(xt.State): + value: int = 0 + + def change_value(self, amount): + self.value += amount + + +def create_button(label, amount): + return xt.unstyled.button( + label, + on_click=lambda: CounterState.change_value(amount) + ) + + +def index() -> xt.Component: + heading_color = xt.match( + CounterState.value, + (0, "red"), + (4, "blue"), + (8, "green"), + (12, "orange"), + (16, "lime"), + (20, "orange"), + "black" + ) + + return xt.unstyled.flex( + xt.unstyled.heading( + CounterState.value, + color="white", + background_color=heading_color, + as_="h2" + ), + xt.unstyled.flex( + create_button("decrement", -1), + create_button("increment", 1), + gap="2" + ), + align_items="center", + direction="column", + gap="2" + ) + + +# Global styles defined as a Python dictionary +style = { + "text_align": "center", +} + +app = xt.App(style=style) +app.add_page(index) diff --git a/app-examples/unstyled_example/xtconfig.py b/app-examples/unstyled_example/xtconfig.py new file mode 100644 index 00000000..0477aec0 --- /dev/null +++ b/app-examples/unstyled_example/xtconfig.py @@ -0,0 +1,5 @@ +import nextpy as xt + +config = xt.Config( + app_name="unstyled_example", +) \ No newline at end of file diff --git a/nextpy/__init__.py b/nextpy/__init__.py index 2d8a537a..d2f31aea 100644 --- a/nextpy/__init__.py +++ b/nextpy/__init__.py @@ -289,6 +289,7 @@ "nextpy.frontend.components.el": ["el"], "nextpy.frontend.components.moment.moment": ["MomentDelta"], "nextpy.frontend.page": ["page"], + "nextpy.frontend.components.proxy": ["animation", "unstyled"], "nextpy.frontend.style": ["color_mode", "style", "toggle_color_mode"], "nextpy.frontend.components.recharts": [ "area_chart", "bar_chart", "line_chart", "composed_chart", "pie_chart", @@ -300,7 +301,6 @@ "polar_angle_axis", "polar_grid", "polar_radius_axis", ], "nextpy.utils": ["utils"], - "nextpy.frontend.components.proxy": ["animation"], } @@ -354,6 +354,9 @@ def __getattr__(name: str) -> Type: module = importlib.import_module("nextpy.frontend.components.proxy") return module.animation + # Custom alias handling for 'unstyled' + if name == "unstyled": + return importlib.import_module("nextpy.frontend.components.proxy.unstyled") try: # Check for import of a module that is not in the mapping. @@ -371,4 +374,4 @@ def __getattr__(name: str) -> Type: getattr(module, name) if name != _MAPPING[name].rsplit(".")[-1] else module ) except ModuleNotFoundError: - raise AttributeError(f"module 'nextpy' has no attribute {name}") from None + raise AttributeError(f"module 'nextpy' has no attribute {name}") from None \ No newline at end of file diff --git a/nextpy/__init__.pyi b/nextpy/__init__.pyi index 1f049903..27d4b44b 100644 --- a/nextpy/__init__.pyi +++ b/nextpy/__init__.pyi @@ -1,4 +1,4 @@ -# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. # We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. from nextpy.backend import admin as admin @@ -257,7 +257,9 @@ from nextpy.frontend.components import center as center from nextpy.frontend.components import checkbox as checkbox from nextpy.frontend.components import checkbox_group as checkbox_group from nextpy.frontend.components import circular_progress as circular_progress -from nextpy.frontend.components import circular_progress_label as circular_progress_label +from nextpy.frontend.components import ( + circular_progress_label as circular_progress_label, +) from nextpy.frontend.components import circle as circle from nextpy.frontend.components import code as code from nextpy.frontend.components import code_block as code_block @@ -341,8 +343,12 @@ from nextpy.frontend.components import moment as moment from nextpy.frontend.components import multi_select as multi_select from nextpy.frontend.components import multi_select_option as multi_select_option from nextpy.frontend.components import next_link as next_link -from nextpy.frontend.components import number_decrement_stepper as number_decrement_stepper -from nextpy.frontend.components import number_increment_stepper as number_increment_stepper +from nextpy.frontend.components import ( + number_decrement_stepper as number_decrement_stepper, +) +from nextpy.frontend.components import ( + number_increment_stepper as number_increment_stepper, +) from nextpy.frontend.components import number_input as number_input from nextpy.frontend.components import number_input_field as number_input_field from nextpy.frontend.components import number_input_stepper as number_input_stepper @@ -365,7 +371,9 @@ from nextpy.frontend.components import progress as progress from nextpy.frontend.components import radio as radio from nextpy.frontend.components import radio_group as radio_group from nextpy.frontend.components import range_slider as range_slider -from nextpy.frontend.components import range_slider_filled_track as range_slider_filled_track +from nextpy.frontend.components import ( + range_slider_filled_track as range_slider_filled_track, +) from nextpy.frontend.components import range_slider_thumb as range_slider_thumb from nextpy.frontend.components import range_slider_track as range_slider_track from nextpy.frontend.components import responsive_grid as responsive_grid @@ -455,6 +463,7 @@ from nextpy.build.config import Config as Config from nextpy.build.config import DBConfig as DBConfig from nextpy import constants as constants from nextpy.constants import Env as Env + # from nextpy.frontend.custom_components import custom_components as custom_components from nextpy.frontend.components import el as el from nextpy.backend import event as event diff --git a/nextpy/frontend/components/__init__.py b/nextpy/frontend/components/__init__.py index 45a21556..11039d51 100644 --- a/nextpy/frontend/components/__init__.py +++ b/nextpy/frontend/components/__init__.py @@ -18,4 +18,3 @@ from .react_player import * from .recharts import * from .suneditor import * - diff --git a/nextpy/frontend/components/proxy/__init__.py b/nextpy/frontend/components/proxy/__init__.py index 66ef53aa..8c1c2423 100644 --- a/nextpy/frontend/components/proxy/__init__.py +++ b/nextpy/frontend/components/proxy/__init__.py @@ -1,8 +1,6 @@ -# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. -# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. - """Contains proxy components.""" from .animation import animation +from .unstyled import * # Make sure this line is correctly importing headless -__all__ = ["animation"] +__all__ = ["animation", "headless"] \ No newline at end of file diff --git a/nextpy/frontend/components/proxy/unstyled.py b/nextpy/frontend/components/proxy/unstyled.py new file mode 100644 index 00000000..7816b1f4 --- /dev/null +++ b/nextpy/frontend/components/proxy/unstyled.py @@ -0,0 +1,26 @@ +"""Unstyled Components Alias.""" +# File: nextpy/frontend/components/proxy/unstyled.py + +import sys +from nextpy.frontend.components.radix.themes import * +from nextpy.frontend.components.radix.themes.components import * +from nextpy.frontend.components.radix.themes.layout import * +from nextpy.frontend.components.radix.themes.typography import * +from nextpy.frontend.components.radix.primitives import * + +class Unstyled: + def __getattr__(self, item): + # Check in each submodule for the component + for module in [themes, components, layout, typography, primitives]: + try: + return getattr(module, item) + except AttributeError: + continue + # If not found, raise an attribute error + raise AttributeError(f"No component named '{item}' in unstyled module") + +# Create an instance of the Unstyled class +unstyled = Unstyled() + +# Optionally, you can define __all__ for explicit exports +__all__ = [name for name in dir() if not name.startswith("_") and name != 'Unstyled'] From b6a9ceb03f22e2b85333c7d4af2b40ca1b6e6946 Mon Sep 17 00:00:00 2001 From: anubrag Date: Sun, 21 Jan 2024 04:00:28 +0530 Subject: [PATCH 3/5] added flow and latex wrapping --- nextpy/frontend/components/flow/__init__.py | 7 ++ nextpy/frontend/components/flow/flow.py | 67 ++++++++++++++++++++ nextpy/frontend/components/latex/__init__.py | 5 ++ nextpy/frontend/components/latex/latex.py | 19 ++++++ 4 files changed, 98 insertions(+) create mode 100644 nextpy/frontend/components/flow/__init__.py create mode 100644 nextpy/frontend/components/flow/flow.py create mode 100644 nextpy/frontend/components/latex/__init__.py create mode 100644 nextpy/frontend/components/latex/latex.py diff --git a/nextpy/frontend/components/flow/__init__.py b/nextpy/frontend/components/flow/__init__.py new file mode 100644 index 00000000..c173533f --- /dev/null +++ b/nextpy/frontend/components/flow/__init__.py @@ -0,0 +1,7 @@ +from .flow import ReactFlow, Background, Controls, Panel, MiniMap + +react_flow = ReactFlow.create +background = Background.create +controls = Controls.create +panel = Panel.create +minimap = MiniMap.create \ No newline at end of file diff --git a/nextpy/frontend/components/flow/flow.py b/nextpy/frontend/components/flow/flow.py new file mode 100644 index 00000000..32244083 --- /dev/null +++ b/nextpy/frontend/components/flow/flow.py @@ -0,0 +1,67 @@ +# Import necessary modules from Nextpy +from nextpy.frontend.components.component import Component, NoSSRComponent +from typing import Any, Dict, List, Union +from nextpy.backend.vars import Var + +# Define ReactFlowLib component as the base class +class ReactFlowLib(NoSSRComponent): + """A component that wraps a react flow lib.""" + library = "reactflow" + + def _get_custom_code(self) -> str: + return """import 'reactflow/dist/style.css';""" + +# Define Background component +class Background(ReactFlowLib): + tag = "Background" + color: Var[str] = "#ddd" # Default color + gap: Var[int] = 16 # Default gap + size: Var[int] = 1 # Default size + variant: Var[str] = "dots" # Default variant + +# Define Controls component +class Controls(ReactFlowLib): + tag = "Controls" + +# Define ReactFlow component +class ReactFlow(ReactFlowLib): + tag = "ReactFlow" + nodes: Var[List[Dict[str, Any]]] + edges: Var[List[Dict[str, Any]]] + fit_view: Var[bool] = True + nodes_draggable: Var[bool] = True + nodes_connectable: Var[bool] = True + nodes_focusable: Var[bool] = True + + def get_event_triggers(self) -> dict[str, Any]: + return { + "on_nodes_change": lambda e0: [e0], + "on_edges_change": lambda e0: [e0], + "on_connect": lambda e0: [e0], + } + + # Include Background and Controls by default in create method + @classmethod + def create(cls, nodes: List[Dict[str, Any]], edges: List[Dict[str, Any]], on_connect, **kwargs): + # Create the background and controls components with default values + background = Background.create() + controls = Controls.create() + # Return the ReactFlow component with background and controls included + return super().create( + background, + controls, + nodes=nodes, + edges=edges, + on_connect=on_connect, + **kwargs + ) + +# MiniMap component +class MiniMap(ReactFlowLib): + tag = "MiniMap" + # Additional MiniMap properties can be added here + +# Panel component +class Panel(ReactFlowLib): + tag = "Panel" + position: Var[str] # e.g., "top-left", "top-center", "top-right", etc. diff --git a/nextpy/frontend/components/latex/__init__.py b/nextpy/frontend/components/latex/__init__.py new file mode 100644 index 00000000..add68784 --- /dev/null +++ b/nextpy/frontend/components/latex/__init__.py @@ -0,0 +1,5 @@ +"""Latex component.""" + +from .latex import Latex + +latex = Latex.create diff --git a/nextpy/frontend/components/latex/latex.py b/nextpy/frontend/components/latex/latex.py new file mode 100644 index 00000000..2a1a4ae2 --- /dev/null +++ b/nextpy/frontend/components/latex/latex.py @@ -0,0 +1,19 @@ +from nextpy.frontend.components.component import Component +from nextpy.backend.vars import Var + + +class LatexWrapper(Component): + """Component for rendering LaTeX in nextpy apps.""" + + library = "react-latex-next" + tag = "Latex" + is_default = True + + # Define the props + content: Var[str] = "" # LaTeX content + delimiters: Var[list] = [ + {"left": "$$", "right": "$$", "display": True}, + {"left": "\\(", "right": "\\)", "display": False}, + ] + strict: Var[bool] = False + macros: Var[dict] = {} From 97e12df02df7e0c56701b54e037b675f6675a159 Mon Sep 17 00:00:00 2001 From: anubrag Date: Thu, 25 Jan 2024 01:32:48 +0530 Subject: [PATCH 4/5] WIP --- app-examples/mapping/mapping/mapping.py | 2 +- .../hello => app-examples/todo}/.gitignore | 0 .../todo}/assets/favicon.ico | Bin .../todo}/assets/github.svg | 0 .../todo}/assets/gradient_underline.svg | 0 .../todo}/assets/icon.svg | 0 .../todo}/assets/logo_darkmode.svg | 0 .../todo}/assets/paneleft.svg | 0 .../todo}/assets/text_logo_darkmode.svg | 0 .../todo/todo}/__init__.py | 0 app-examples/todo/todo/todo.py | 40 + app-examples/todo/xtconfig.py | 5 + .../components/base/app_wrap_reference.md | 2 +- .../components/base/body_reference.md | 4 +- .../chakra/forms/iconbutton_reference.md | 2 +- .../chakra/layout/container_reference.md | 2 +- .../chakra/layout/spacer_reference.md | 4 +- .../chakra/media/image_reference.md | 2 +- .../core/layout/center_reference.md | 4 +- .../core/layout/spacer_reference.md | 4 +- .../components/core/layout/stack_reference.md | 2 +- .../themes/components/icons_reference.md | 2 +- nextpy/__init__.py | 20 +- nextpy/__init__.pyi | 890 ++-- nextpy/app.py | 16 +- nextpy/app.pyi | 8 +- nextpy/backend/event.py | 2 +- nextpy/backend/vars.py | 4 +- nextpy/backend/vars.pyi | 2 +- nextpy/build/compiler/compiler.py | 4 +- nextpy/build/compiler/utils.py | 8 +- nextpy/cli.py | 2 +- nextpy/constants/base.py | 4 +- nextpy/constants/compiler.py | 2 +- nextpy/{frontend => interfaces}/__init__.py | 0 .../blueprints/__init__.py | 0 .../blueprints/hero_section.py | 0 .../blueprints/navbar.py | 0 .../blueprints/sidebar.py | 0 .../components/el/elements/inline.pyi | 2 +- .../components/el/elements/media.pyi | 2 +- .../components/el/elements/other.pyi | 2 +- .../components/el/elements/scripts.pyi | 2 +- .../components/el/elements/sectioning.pyi | 2 +- .../components/el/elements/tables.pyi | 2 +- .../components/el/elements/typography.pyi | 2 +- .../components/next/image.pyi | 2 +- .../radix/themes/components/alertdialog.pyi | 2 +- .../radix/themes/components/aspectratio.pyi | 2 +- .../radix/themes/components/avatar.pyi | 2 +- .../radix/themes/components/badge.pyi | 2 +- .../radix/themes/components/button.pyi | 2 +- .../radix/themes/components/callout.pyi | 2 +- .../radix/themes/components/card.pyi | 2 +- .../radix/themes/components/checkbox.pyi | 2 +- .../radix/themes/components/contextmenu.pyi | 2 +- .../radix/themes/components/dialog.pyi | 2 +- .../radix/themes/components/dropdownmenu.pyi | 2 +- .../radix/themes/components/hovercard.pyi | 2 +- .../radix/themes/components/iconbutton.pyi | 2 +- .../radix/themes/components/inset.pyi | 2 +- .../radix/themes/components/popover.pyi | 2 +- .../radix/themes/components/radiogroup.pyi | 2 +- .../radix/themes/components/scrollarea.pyi | 2 +- .../radix/themes/components/select.pyi | 2 +- .../radix/themes/components/separator.pyi | 2 +- .../radix/themes/components/slider.pyi | 2 +- .../radix/themes/components/switch.pyi | 2 +- .../radix/themes/components/table.pyi | 2 +- .../radix/themes/components/tabs.pyi | 2 +- .../radix/themes/components/tooltip.pyi | 2 +- .../components/radix/themes/layout/base.pyi | 2 +- .../components/radix/themes/layout/box.pyi | 2 +- .../radix/themes/layout/container.pyi | 2 +- .../components/radix/themes/layout/flex.pyi | 2 +- .../components/radix/themes/layout/grid.pyi | 2 +- .../radix/themes/layout/section.pyi | 2 +- .../radix/themes/typography/blockquote.pyi | 2 +- .../radix/themes/typography/code.pyi | 2 +- .../components/radix/themes/typography/em.pyi | 2 +- .../radix/themes/typography/heading.pyi | 2 +- .../radix/themes/typography/kbd.pyi | 2 +- .../radix/themes/typography/quote.pyi | 2 +- .../radix/themes/typography/strong.pyi | 2 +- .../radix/themes/typography/text.pyi | 2 +- .../components/recharts/cartesian.pyi | 2 +- .../components/recharts/polar.pyi | 2 +- .../custom_components/__init__.py | 0 .../custom_components/custom_components.py | 0 .../react_components}/base/app_wrap.pyi | 6 +- .../react_components}/base/body.pyi | 4 +- .../react_components}/base/document.pyi | 4 +- .../react_components}/base/fragment.pyi | 4 +- .../react_components}/base/head.pyi | 4 +- .../react_components}/base/link.pyi | 4 +- .../react_components}/base/meta.pyi | 6 +- .../react_components}/base/script.pyi | 4 +- .../react_components}/chakra/base.pyi | 6 +- .../chakra/datadisplay/badge.pyi | 4 +- .../chakra/datadisplay/code.py | 16 +- .../chakra/datadisplay/code.pyi | 16 +- .../chakra/datadisplay/divider.pyi | 4 +- .../chakra/datadisplay/keyboard_key.pyi | 4 +- .../chakra/datadisplay/list.pyi | 8 +- .../chakra/datadisplay/stat.pyi | 6 +- .../chakra/datadisplay/table.pyi | 8 +- .../chakra/datadisplay/tag.pyi | 6 +- .../chakra/disclosure/accordion.pyi | 6 +- .../chakra/disclosure/tabs.pyi | 6 +- .../chakra/disclosure/transition.pyi | 4 +- .../chakra/disclosure/visuallyhidden.pyi | 4 +- .../chakra/feedback/alert.pyi | 6 +- .../chakra/feedback/circularprogress.pyi | 6 +- .../chakra/feedback/progress.pyi | 4 +- .../chakra/feedback/skeleton.pyi | 4 +- .../chakra/feedback/spinner.pyi | 4 +- .../react_components}/chakra/forms/button.pyi | 4 +- .../chakra/forms/checkbox.pyi | 4 +- .../chakra/forms/colormodeswitch.py | 10 +- .../chakra/forms/colormodeswitch.pyi | 12 +- .../chakra/forms/date_picker.pyi | 4 +- .../chakra/forms/date_time_picker.pyi | 4 +- .../chakra/forms/editable.pyi | 4 +- .../react_components}/chakra/forms/email.pyi | 4 +- .../react_components}/chakra/forms/form.pyi | 10 +- .../chakra/forms/iconbutton.pyi | 6 +- .../react_components}/chakra/forms/input.pyi | 12 +- .../chakra/forms/numberinput.pyi | 6 +- .../chakra/forms/password.pyi | 4 +- .../chakra/forms/pininput.pyi | 10 +- .../react_components}/chakra/forms/radio.pyi | 10 +- .../chakra/forms/rangeslider.pyi | 6 +- .../react_components}/chakra/forms/select.pyi | 10 +- .../react_components}/chakra/forms/slider.pyi | 6 +- .../react_components}/chakra/forms/switch.pyi | 4 +- .../chakra/forms/textarea.pyi | 8 +- .../chakra/layout/aspect_ratio.pyi | 4 +- .../react_components}/chakra/layout/box.pyi | 6 +- .../react_components}/chakra/layout/card.pyi | 6 +- .../chakra/layout/center.pyi | 4 +- .../chakra/layout/container.pyi | 4 +- .../react_components}/chakra/layout/flex.pyi | 4 +- .../react_components}/chakra/layout/grid.pyi | 4 +- .../react_components}/chakra/layout/html.pyi | 4 +- .../chakra/layout/spacer.pyi | 4 +- .../react_components}/chakra/layout/stack.pyi | 4 +- .../react_components}/chakra/layout/wrap.pyi | 6 +- .../react_components}/chakra/media/avatar.pyi | 4 +- .../react_components}/chakra/media/icon.pyi | 4 +- .../react_components}/chakra/media/image.pyi | 6 +- .../chakra/navigation/breadcrumb.pyi | 10 +- .../chakra/navigation/link.pyi | 10 +- .../chakra/navigation/linkoverlay.pyi | 4 +- .../chakra/navigation/stepper.pyi | 6 +- .../chakra/overlay/alertdialog.pyi | 8 +- .../chakra/overlay/drawer.pyi | 8 +- .../react_components}/chakra/overlay/menu.pyi | 8 +- .../chakra/overlay/modal.pyi | 8 +- .../chakra/overlay/popover.pyi | 6 +- .../chakra/overlay/tooltip.pyi | 4 +- .../chakra/typography/heading.pyi | 4 +- .../chakra/typography/highlight.pyi | 6 +- .../chakra/typography/span.pyi | 4 +- .../chakra/typography/text.pyi | 4 +- .../react_components}/component.py | 18 +- .../react_components}/core/banner.pyi | 16 +- .../core/client_side_routing.pyi | 6 +- .../react_components}/core/debounce.pyi | 4 +- .../react_components}/core/layout/center.pyi | 6 +- .../react_components}/core/layout/spacer.pyi | 6 +- .../react_components}/core/layout/stack.pyi | 6 +- .../react_components}/core/upload.pyi | 10 +- .../react_components}/el/element.pyi | 4 +- .../react_components}/el/elements/base.pyi | 4 +- .../react_components}/el/elements/forms.pyi | 4 +- .../react_components/el/elements/inline.pyi | 3944 +++++++++++++++++ .../react_components/el/elements/media.pyi | 2243 ++++++++++ .../el/elements/metadata.pyi | 4 +- .../react_components/el/elements/other.pyi | 996 +++++ .../react_components/el/elements/scripts.pyi | 472 ++ .../el/elements/sectioning.pyi | 2106 +++++++++ .../react_components/el/elements/tables.pyi | 1529 +++++++ .../el/elements/typography.pyi | 2134 +++++++++ .../glide_datagrid/dataeditor.pyi | 10 +- .../react_components}/gridjs/datatable.pyi | 8 +- .../react_components}/leaflet/leaflet.py | 4 +- .../react_components}/markdown/markdown.py | 22 +- .../react_components}/markdown/markdown.pyi | 20 +- .../react_components}/moment/moment.pyi | 6 +- .../react_components}/next/base.pyi | 4 +- .../react_components/next/image.pyi | 125 + .../react_components}/next/link.pyi | 4 +- .../react_components}/next/video.pyi | 4 +- .../react_components}/plotly/plotly.pyi | 4 +- .../radix/primitives/accordion.py | 10 +- .../radix/primitives/accordion.pyi | 12 +- .../radix/primitives/base.pyi | 6 +- .../radix/primitives/form.pyi | 8 +- .../radix/primitives/progress.py | 6 +- .../radix/primitives/progress.pyi | 8 +- .../radix/primitives/slider.py | 6 +- .../radix/primitives/slider.pyi | 8 +- .../react_components}/radix/themes/base.pyi | 6 +- .../radix/themes/components/alertdialog.pyi | 1061 +++++ .../radix/themes/components/aspectratio.pyi | 212 + .../radix/themes/components/avatar.pyi | 236 + .../radix/themes/components/badge.pyi | 294 ++ .../radix/themes/components/button.pyi | 337 ++ .../radix/themes/components/callout.pyi | 803 ++++ .../radix/themes/components/card.pyi | 284 ++ .../radix/themes/components/checkbox.pyi | 254 ++ .../radix/themes/components/contextmenu.pyi | 1614 +++++++ .../radix/themes/components/dialog.pyi | 1260 ++++++ .../radix/themes/components/dropdownmenu.pyi | 1397 ++++++ .../radix/themes/components/hovercard.pyi | 685 +++ .../radix/themes/components/iconbutton.pyi | 337 ++ .../radix/themes/components/icons.pyi | 4 +- .../radix/themes/components/inset.pyi | 298 ++ .../radix/themes/components/popover.pyi | 897 ++++ .../radix/themes/components/radiogroup.pyi | 441 ++ .../radix/themes/components/scrollarea.pyi | 233 + .../radix/themes/components/select.pyi | 1451 ++++++ .../radix/themes/components/separator.pyi | 223 + .../radix/themes/components/slider.pyi | 261 ++ .../radix/themes/components/switch.pyi | 255 ++ .../radix/themes/components/table.pyi | 1945 ++++++++ .../radix/themes/components/tabs.pyi | 812 ++++ .../radix/themes/components/textarea.pyi | 6 +- .../radix/themes/components/textfield.pyi | 8 +- .../radix/themes/components/tooltip.pyi | 208 + .../radix/themes/layout/base.pyi | 263 ++ .../radix/themes/layout/box.pyi | 320 ++ .../radix/themes/layout/container.pyi | 328 ++ .../radix/themes/layout/flex.pyi | 371 ++ .../radix/themes/layout/grid.pyi | 271 ++ .../radix/themes/layout/section.pyi | 328 ++ .../radix/themes/typography/blockquote.pyi | 287 ++ .../radix/themes/typography/code.pyi | 297 ++ .../radix/themes/typography/em.pyi | 267 ++ .../radix/themes/typography/heading.pyi | 303 ++ .../radix/themes/typography/kbd.pyi | 276 ++ .../radix/themes/typography/link.pyi | 4 +- .../radix/themes/typography/quote.pyi | 268 ++ .../radix/themes/typography/strong.pyi | 267 ++ .../radix/themes/typography/text.pyi | 303 ++ .../react_components}/react_player/audio.pyi | 4 +- .../react_player/react_player.pyi | 4 +- .../react_components}/react_player/video.pyi | 4 +- .../react_components/recharts/cartesian.pyi | 1911 ++++++++ .../react_components}/recharts/charts.pyi | 6 +- .../react_components}/recharts/general.pyi | 4 +- .../react_components/recharts/polar.pyi | 568 +++ .../react_components}/recharts/recharts.pyi | 4 +- .../react_components}/suneditor/editor.pyi | 6 +- .../templates/apps/base/README.md | 0 .../templates/apps/base}/assets/favicon.ico | Bin .../templates/apps/base}/assets/github.svg | 0 .../apps/base}/assets/gradient_underline.svg | 0 .../templates/apps/base}/assets/icon.svg | 0 .../apps/base}/assets/logo_darkmode.svg | 0 .../templates/apps/base}/assets/paneleft.svg | 0 .../apps/base}/assets/text_logo_darkmode.svg | 0 .../templates/apps/base/code/__init__.py | 0 .../templates/apps/base/code/base.py | 0 .../apps/base/code/components}/__init__.py | 0 .../apps/base/code/components/sidebar.py | 0 .../apps/base/code/pages/__init__.py | 0 .../apps/base/code/pages/dashboard.py | 0 .../templates/apps/base/code/pages/index.py | 0 .../apps/base/code/pages/settings.py | 0 .../templates/apps/base/code/styles.py | 0 .../apps/base/code/templates/__init__.py | 0 .../apps/base/code/templates/template.py | 0 .../templates/apps/blank}/assets/favicon.ico | Bin .../templates/apps/blank}/assets/github.svg | 0 .../apps/blank}/assets/gradient_underline.svg | 0 .../templates/apps/blank}/assets/icon.svg | 0 .../apps/blank}/assets/logo_darkmode.svg | 0 .../templates/apps/blank}/assets/paneleft.svg | 0 .../apps/blank}/assets/text_logo_darkmode.svg | 0 .../templates/apps/blank/code}/__init__.py | 0 .../templates/apps/blank/code/blank.py | 0 .../templates/apps/hello/.gitignore | 4 + .../templates/apps/hello/assets/favicon.ico | Bin 0 -> 15406 bytes .../templates/apps/hello/assets/github.svg | 10 + .../apps/hello/assets/gradient_underline.svg | 2 + .../templates/apps/hello/assets/icon.svg | 3 + .../apps/hello/assets/logo_darkmode.svg | 2 + .../templates/apps/hello/assets/paneleft.svg | 13 + .../apps/hello/assets/text_logo_darkmode.svg | 2 + .../templates/apps/hello/code/__init__.py | 0 .../templates/apps/hello/code/hello.py | 0 .../apps/hello/code/pages/__init__.py | 0 .../apps/hello/code/pages/chatapp.py | 0 .../apps/hello/code/pages/datatable.py | 2 +- .../templates/apps/hello/code/pages/forms.py | 0 .../apps/hello/code/pages/graphing.py | 0 .../templates/apps/hello/code/pages/home.py | 0 .../templates/apps/hello/code/sidebar.py | 0 .../templates/apps/hello/code/state.py | 0 .../apps/hello/code/states/form_state.py | 0 .../apps/hello/code/states/pie_state.py | 0 .../templates/apps/hello/code/styles.py | 0 .../apps/hello/code/webui/__init__.py} | 2 - .../hello/code/webui/components/__init__.py | 0 .../apps/hello/code/webui/components/chat.py | 0 .../code/webui/components/loading_icon.py | 0 .../apps/hello/code/webui/components/modal.py | 0 .../hello/code/webui/components/navbar.py | 0 .../hello/code/webui/components/sidebar.py | 0 .../templates/apps/hello/code/webui/state.py | 0 .../templates/apps/hello/code/webui/styles.py | 0 .../templates/jinja/app/xtconfig.py.jinja2 | 0 .../jinja/custom_components/README.md.jinja2 | 0 .../custom_components/demo_app.py.jinja2 | 0 .../custom_components/pyproject.toml.jinja2 | 0 .../jinja/custom_components/src.py.jinja2 | 2 +- .../templates/jinja/web/package.json.jinja2 | 0 .../templates/jinja/web/pages/_app.js.jinja2 | 0 .../jinja/web/pages/_document.js.jinja2 | 0 .../jinja/web/pages/base_page.js.jinja2 | 0 .../jinja/web/pages/component.js.jinja2 | 0 .../web/pages/custom_component.js.jinja2 | 0 .../templates/jinja/web/pages/index.js.jinja2 | 0 .../web/pages/stateful_component.js.jinja2 | 0 .../web/pages/stateful_components.js.jinja2 | 0 .../templates/jinja/web/pages/utils.js.jinja2 | 0 .../jinja/web/styles/styles.css.jinja2 | 0 .../jinja/web/tailwind.config.js.jinja2 | 0 .../jinja/web/utils/context.js.jinja2 | 0 .../templates/jinja/web/utils/theme.js.jinja2 | 0 .../templates/web/.gitignore | 0 .../nextpy/chakra_color_mode_provider.js | 0 .../radix_themes_color_mode_provider.js | 0 .../templates/web/jsconfig.json | 0 .../templates/web/next.config.js | 0 .../templates/web/postcss.config.js | 0 .../templates/web/styles/code/prism.js | 0 .../templates/web/styles/tailwind.css | 0 .../web/utils/client_side_routing.js | 0 .../templates/web/utils/helpers/dataeditor.js | 0 .../templates/web/utils/helpers/range.js | 0 .../templates/web/utils/state.js | 0 nextpy/interfaces/web/__init__.py | 0 .../{frontend => interfaces/web}/imports.py | 0 nextpy/{frontend => interfaces/web}/page.py | 0 nextpy/{frontend => interfaces/web}/page.pyi | 2 +- .../web/react_components}/__init__.py | 0 .../web/react_components}/base/__init__.py | 0 .../web/react_components}/base/app_wrap.py | 4 +- .../web/react_components/base/app_wrap.pyi | 81 + .../web/react_components}/base/bare.py | 6 +- .../web/react_components}/base/body.py | 2 +- .../web/react_components/base/body.pyi | 92 + .../web/react_components}/base/document.py | 2 +- .../web/react_components/base/document.pyi | 408 ++ .../web/react_components}/base/fragment.py | 2 +- .../web/react_components/base/fragment.pyi | 92 + .../web/react_components}/base/head.py | 2 +- .../web/react_components/base/head.pyi | 168 + .../web/react_components}/base/link.py | 2 +- .../web/react_components/base/link.pyi | 190 + .../web/react_components}/base/meta.py | 4 +- .../web/react_components/base/meta.pyi | 362 ++ .../web/react_components}/base/script.py | 6 +- .../web/react_components/base/script.pyi | 118 + .../web/react_components}/chakra/__init__.py | 0 .../web/react_components}/chakra/base.py | 4 +- .../web/react_components/chakra/base.pyi | 409 ++ .../chakra/datadisplay/__init__.py | 0 .../chakra/datadisplay/badge.py | 2 +- .../chakra/datadisplay/badge.pyi | 102 + .../chakra/datadisplay/code.py | 525 +++ .../chakra/datadisplay/code.pyi | 1194 +++++ .../chakra/datadisplay/divider.py | 2 +- .../chakra/datadisplay/divider.pyi | 107 + .../chakra/datadisplay/keyboard_key.py | 2 +- .../chakra/datadisplay/keyboard_key.pyi | 92 + .../chakra/datadisplay/list.py | 6 +- .../chakra/datadisplay/list.pyi | 347 ++ .../chakra/datadisplay/stat.py | 4 +- .../chakra/datadisplay/stat.pyi | 496 +++ .../chakra/datadisplay/table.py | 6 +- .../chakra/datadisplay/table.pyi | 753 ++++ .../chakra/datadisplay/tag.py | 4 +- .../chakra/datadisplay/tag.pyi | 452 ++ .../chakra/disclosure/__init__.py | 0 .../chakra/disclosure/accordion.py | 4 +- .../chakra/disclosure/accordion.pyi | 432 ++ .../chakra/disclosure/tabs.py | 4 +- .../chakra/disclosure/tabs.pyi | 516 +++ .../chakra/disclosure/transition.py | 2 +- .../chakra/disclosure/transition.pyi | 531 +++ .../chakra/disclosure/visuallyhidden.py | 2 +- .../chakra/disclosure/visuallyhidden.pyi | 92 + .../chakra/feedback/__init__.py | 0 .../chakra/feedback/alert.py | 4 +- .../chakra/feedback/alert.pyi | 348 ++ .../chakra/feedback/circularprogress.py | 4 +- .../chakra/feedback/circularprogress.pyi | 193 + .../chakra/feedback/progress.py | 2 +- .../chakra/feedback/progress.pyi | 108 + .../chakra/feedback/skeleton.py | 2 +- .../chakra/feedback/skeleton.pyi | 283 ++ .../chakra/feedback/spinner.py | 2 +- .../chakra/feedback/spinner.pyi | 108 + .../chakra/forms/__init__.py | 0 .../react_components}/chakra/forms/button.py | 2 +- .../react_components/chakra/forms/button.pyi | 276 ++ .../chakra/forms/checkbox.py | 2 +- .../chakra/forms/checkbox.pyi | 259 ++ .../chakra/forms/colormodeswitch.py | 127 + .../chakra/forms/colormodeswitch.pyi | 483 ++ .../chakra/forms/date_picker.py | 2 +- .../chakra/forms/date_picker.pyi | 132 + .../chakra/forms/date_time_picker.py | 2 +- .../chakra/forms/date_time_picker.pyi | 132 + .../chakra/forms/editable.py | 2 +- .../chakra/forms/editable.pyi | 361 ++ .../react_components}/chakra/forms/email.py | 2 +- .../react_components/chakra/forms/email.pyi | 132 + .../react_components}/chakra/forms/form.py | 8 +- .../react_components/chakra/forms/form.pyi | 448 ++ .../chakra/forms/iconbutton.py | 4 +- .../chakra/forms/iconbutton.pyi | 115 + .../react_components}/chakra/forms/input.py | 10 +- .../react_components/chakra/forms/input.pyi | 591 +++ .../chakra/forms/multiselect.py | 2 +- .../chakra/forms/numberinput.py | 4 +- .../chakra/forms/numberinput.pyi | 463 ++ .../chakra/forms/password.py | 2 +- .../chakra/forms/password.pyi | 132 + .../chakra/forms/pininput.py | 8 +- .../chakra/forms/pininput.pyi | 228 + .../react_components}/chakra/forms/radio.py | 8 +- .../react_components/chakra/forms/radio.pyi | 206 + .../chakra/forms/rangeslider.py | 4 +- .../chakra/forms/rangeslider.pyi | 371 ++ .../react_components}/chakra/forms/select.py | 8 +- .../react_components/chakra/forms/select.pyi | 213 + .../react_components}/chakra/forms/slider.py | 4 +- .../react_components/chakra/forms/slider.pyi | 468 ++ .../react_components}/chakra/forms/switch.py | 2 +- .../react_components/chakra/forms/switch.pyi | 168 + .../chakra/forms/textarea.py | 6 +- .../chakra/forms/textarea.pyi | 131 + .../chakra/layout/__init__.py | 0 .../chakra/layout/aspect_ratio.py | 2 +- .../chakra/layout/aspect_ratio.pyi | 95 + .../react_components}/chakra/layout/box.py | 4 +- .../react_components/chakra/layout/box.pyi | 100 + .../react_components}/chakra/layout/card.py | 4 +- .../react_components/chakra/layout/card.pyi | 395 ++ .../react_components}/chakra/layout/center.py | 2 +- .../react_components/chakra/layout/center.pyi | 250 ++ .../chakra/layout/container.py | 2 +- .../chakra/layout/container.pyi | 95 + .../react_components}/chakra/layout/flex.py | 2 +- .../react_components/chakra/layout/flex.pyi | 110 + .../react_components}/chakra/layout/grid.py | 2 +- .../react_components/chakra/layout/grid.pyi | 306 ++ .../react_components}/chakra/layout/html.py | 2 +- .../react_components/chakra/layout/html.pyi | 104 + .../react_components}/chakra/layout/spacer.py | 2 +- .../react_components/chakra/layout/spacer.pyi | 92 + .../react_components}/chakra/layout/stack.py | 2 +- .../react_components/chakra/layout/stack.pyi | 315 ++ .../react_components}/chakra/layout/wrap.py | 4 +- .../react_components/chakra/layout/wrap.pyi | 186 + .../chakra/media/__init__.py | 0 .../react_components}/chakra/media/avatar.py | 2 +- .../react_components/chakra/media/avatar.pyi | 281 ++ .../react_components}/chakra/media/icon.py | 2 +- .../react_components/chakra/media/icon.pyi | 178 + .../react_components}/chakra/media/image.py | 4 +- .../react_components/chakra/media/image.pyi | 123 + .../chakra/navigation/__init__.py | 0 .../chakra/navigation/breadcrumb.py | 8 +- .../chakra/navigation/breadcrumb.pyi | 359 ++ .../chakra/navigation/link.py | 8 +- .../chakra/navigation/link.pyi | 108 + .../chakra/navigation/linkoverlay.py | 2 +- .../chakra/navigation/linkoverlay.pyi | 176 + .../chakra/navigation/stepper.py | 4 +- .../chakra/navigation/stepper.pyi | 791 ++++ .../chakra/overlay/__init__.py | 0 .../chakra/overlay/alertdialog.py | 6 +- .../chakra/overlay/alertdialog.pyi | 637 +++ .../chakra/overlay/drawer.py | 6 +- .../chakra/overlay/drawer.pyi | 679 +++ .../react_components}/chakra/overlay/menu.py | 6 +- .../react_components/chakra/overlay/menu.pyi | 735 +++ .../react_components}/chakra/overlay/modal.py | 6 +- .../react_components/chakra/overlay/modal.pyi | 624 +++ .../chakra/overlay/popover.py | 4 +- .../chakra/overlay/popover.pyi | 790 ++++ .../chakra/overlay/tooltip.py | 2 +- .../chakra/overlay/tooltip.pyi | 137 + .../chakra/typography/__init__.py | 2 +- .../chakra/typography/heading.py | 2 +- .../chakra/typography/heading.pyi | 102 + .../chakra/typography/highlight.py | 4 +- .../chakra/typography/highlight.pyi | 99 + .../chakra/typography/span.py | 2 +- .../chakra/typography/span.pyi | 95 + .../chakra/typography/text.py | 2 +- .../chakra/typography/text.pyi | 97 + .../web/react_components/component.py | 1732 ++++++++ .../web/react_components}/core/__init__.py | 0 .../web/react_components}/core/banner.py | 14 +- .../web/react_components/core/banner.pyi | 233 + .../core/client_side_routing.py | 4 +- .../core/client_side_routing.pyi | 180 + .../web/react_components}/core/cond.py | 8 +- .../web/react_components}/core/debounce.py | 2 +- .../web/react_components/core/debounce.pyi | 107 + .../web/react_components}/core/foreach.py | 6 +- .../react_components}/core/layout/__init__.py | 0 .../react_components}/core/layout/center.py | 4 +- .../react_components/core/layout/center.pyi | 155 + .../react_components}/core/layout/spacer.py | 4 +- .../react_components/core/layout/spacer.pyi | 155 + .../react_components}/core/layout/stack.py | 4 +- .../react_components/core/layout/stack.pyi | 447 ++ .../web/react_components}/core/match.py | 8 +- .../web/react_components}/core/responsive.py | 2 +- .../web/react_components}/core/upload.py | 8 +- .../web/react_components/core/upload.pyi | 211 + .../web/react_components}/el/__init__.py | 0 .../el/constants/__init__.py | 0 .../react_components}/el/constants/html.py | 0 .../react_components}/el/constants/nextpy.py | 0 .../react_components}/el/constants/react.py | 0 .../web/react_components}/el/element.py | 2 +- .../web/react_components/el/element.pyi | 92 + .../react_components}/el/elements/__init__.py | 0 .../web/react_components}/el/elements/base.py | 2 +- .../web/react_components/el/elements/base.pyi | 154 + .../react_components}/el/elements/forms.py | 2 +- .../react_components/el/elements/forms.pyi | 2255 ++++++++++ .../react_components}/el/elements/inline.py | 0 .../react_components/el/elements/inline.pyi | 3944 +++++++++++++++++ .../react_components}/el/elements/media.py | 0 .../react_components/el/elements/media.pyi | 2243 ++++++++++ .../react_components}/el/elements/metadata.py | 2 +- .../react_components/el/elements/metadata.pyi | 686 +++ .../react_components}/el/elements/other.py | 0 .../react_components/el/elements/other.pyi | 996 +++++ .../react_components}/el/elements/scripts.py | 0 .../react_components/el/elements/scripts.pyi | 472 ++ .../el/elements/sectioning.py | 0 .../el/elements/sectioning.pyi | 2106 +++++++++ .../react_components}/el/elements/tables.py | 0 .../react_components/el/elements/tables.pyi | 1529 +++++++ .../el/elements/typography.py | 0 .../el/elements/typography.pyi | 2134 +++++++++ .../web/react_components}/el/precompile.py | 6 +- .../web/react_components}/flow/__init__.py | 0 .../web/react_components}/flow/flow.py | 2 +- .../web/react_components}/framer/__init__.py | 0 .../framer/motion/__init__.py | 0 .../react_components}/framer/motion/motion.py | 2 +- .../glide_datagrid/__init__.py | 0 .../glide_datagrid/dataeditor.py | 12 +- .../glide_datagrid/dataeditor.pyi | 242 + .../web/react_components}/gridjs/__init__.py | 0 .../web/react_components}/gridjs/datatable.py | 6 +- .../web/react_components/gridjs/datatable.pyi | 189 + .../web/react_components}/latex/__init__.py | 0 .../web/react_components}/latex/latex.py | 2 +- .../web/react_components}/leaflet/__init__.py | 0 .../web/react_components/leaflet/leaflet.py | 99 + .../web/react_components}/literals.py | 0 .../react_components}/markdown/__init__.py | 0 .../web/react_components/markdown/markdown.py | 323 ++ .../react_components/markdown/markdown.pyi | 134 + .../web/react_components}/media/__init__.py | 0 .../web/react_components/media/icon.py | 5 + .../web/react_components}/moment/__init__.py | 0 .../web/react_components}/moment/moment.py | 4 +- .../web/react_components/moment/moment.pyi | 148 + .../web/react_components}/next/__init__.py | 0 .../web/react_components}/next/base.py | 2 +- .../web/react_components/next/base.pyi | 94 + .../web/react_components}/next/image.py | 0 .../web/react_components/next/image.pyi | 125 + .../web/react_components}/next/link.py | 2 +- .../web/react_components/next/link.pyi | 97 + .../web/react_components}/next/video.py | 2 +- .../web/react_components/next/video.pyi | 95 + .../web/react_components}/plotly/__init__.py | 0 .../web/react_components}/plotly/plotly.py | 2 +- .../web/react_components/plotly/plotly.pyi | 188 + .../web/react_components}/proxy/__init__.py | 0 .../web/react_components}/proxy/animation.py | 2 +- .../web/react_components}/proxy/unstyled.py | 10 +- .../web/react_components}/radix/__init__.py | 0 .../radix/primitives/__init__.py | 0 .../radix/primitives/accordion.py | 247 ++ .../radix/primitives/accordion.pyi | 539 +++ .../radix/primitives/base.py | 4 +- .../radix/primitives/base.pyi | 98 + .../radix/primitives/form.py | 6 +- .../radix/primitives/form.pyi | 743 ++++ .../radix/primitives/progress.py | 87 + .../radix/primitives/progress.pyi | 271 ++ .../radix/primitives/slider.py | 182 + .../radix/primitives/slider.pyi | 455 ++ .../radix/themes/__init__.py | 0 .../react_components}/radix/themes/base.py | 4 +- .../react_components/radix/themes/base.pyi | 791 ++++ .../radix/themes/components/__init__.py | 0 .../radix/themes/components/alertdialog.py | 0 .../radix/themes/components/alertdialog.pyi | 1061 +++++ .../radix/themes/components/aspectratio.py | 0 .../radix/themes/components/aspectratio.pyi | 212 + .../radix/themes/components/avatar.py | 0 .../radix/themes/components/avatar.pyi | 236 + .../radix/themes/components/badge.py | 0 .../radix/themes/components/badge.pyi | 294 ++ .../radix/themes/components/button.py | 0 .../radix/themes/components/button.pyi | 337 ++ .../radix/themes/components/callout.py | 0 .../radix/themes/components/callout.pyi | 803 ++++ .../radix/themes/components/card.py | 0 .../radix/themes/components/card.pyi | 284 ++ .../radix/themes/components/checkbox.py | 0 .../radix/themes/components/checkbox.pyi | 254 ++ .../radix/themes/components/contextmenu.py | 0 .../radix/themes/components/contextmenu.pyi | 1614 +++++++ .../radix/themes/components/dialog.py | 0 .../radix/themes/components/dialog.pyi | 1260 ++++++ .../radix/themes/components/dropdownmenu.py | 0 .../radix/themes/components/dropdownmenu.pyi | 1397 ++++++ .../radix/themes/components/hovercard.py | 0 .../radix/themes/components/hovercard.pyi | 685 +++ .../radix/themes/components/iconbutton.py | 0 .../radix/themes/components/iconbutton.pyi | 337 ++ .../radix/themes/components/icons.py | 2 +- .../radix/themes/components/icons.pyi | 188 + .../radix/themes/components/inset.py | 0 .../radix/themes/components/inset.pyi | 298 ++ .../radix/themes/components/popover.py | 0 .../radix/themes/components/popover.pyi | 897 ++++ .../radix/themes/components/radiogroup.py | 0 .../radix/themes/components/radiogroup.pyi | 441 ++ .../radix/themes/components/scrollarea.py | 0 .../radix/themes/components/scrollarea.pyi | 233 + .../radix/themes/components/select.py | 0 .../radix/themes/components/select.pyi | 1451 ++++++ .../radix/themes/components/separator.py | 0 .../radix/themes/components/separator.pyi | 223 + .../radix/themes/components/slider.py | 0 .../radix/themes/components/slider.pyi | 261 ++ .../radix/themes/components/switch.py | 0 .../radix/themes/components/switch.pyi | 255 ++ .../radix/themes/components/table.py | 0 .../radix/themes/components/table.pyi | 1945 ++++++++ .../radix/themes/components/tabs.py | 0 .../radix/themes/components/tabs.pyi | 812 ++++ .../radix/themes/components/textarea.py | 4 +- .../radix/themes/components/textarea.pyi | 336 ++ .../radix/themes/components/textfield.py | 6 +- .../radix/themes/components/textfield.pyi | 834 ++++ .../radix/themes/components/tooltip.py | 0 .../radix/themes/components/tooltip.pyi | 208 + .../radix/themes/layout/__init__.py | 0 .../radix/themes/layout/base.py | 0 .../radix/themes/layout/base.pyi | 263 ++ .../radix/themes/layout/box.py | 0 .../radix/themes/layout/box.pyi | 320 ++ .../radix/themes/layout/container.py | 0 .../radix/themes/layout/container.pyi | 328 ++ .../radix/themes/layout/flex.py | 0 .../radix/themes/layout/flex.pyi | 371 ++ .../radix/themes/layout/grid.py | 0 .../radix/themes/layout/grid.pyi | 271 ++ .../radix/themes/layout/section.py | 0 .../radix/themes/layout/section.pyi | 328 ++ .../radix/themes/typography.py | 0 .../radix/themes/typography/__init__.py | 0 .../radix/themes/typography/base.py | 0 .../radix/themes/typography/blockquote.py | 0 .../radix/themes/typography/blockquote.pyi | 287 ++ .../radix/themes/typography/code.py | 0 .../radix/themes/typography/code.pyi | 297 ++ .../radix/themes/typography/em.py | 0 .../radix/themes/typography/em.pyi | 267 ++ .../radix/themes/typography/heading.py | 0 .../radix/themes/typography/heading.pyi | 303 ++ .../radix/themes/typography/kbd.py | 0 .../radix/themes/typography/kbd.pyi | 276 ++ .../radix/themes/typography/link.py | 2 +- .../radix/themes/typography/link.pyi | 334 ++ .../radix/themes/typography/quote.py | 0 .../radix/themes/typography/quote.pyi | 268 ++ .../radix/themes/typography/strong.py | 0 .../radix/themes/typography/strong.pyi | 267 ++ .../radix/themes/typography/text.py | 0 .../radix/themes/typography/text.pyi | 303 ++ .../react_player/__init__.py | 0 .../react_components}/react_player/audio.py | 2 +- .../react_components/react_player/audio.pyi | 112 + .../react_player/react_player.py | 2 +- .../react_player/react_player.pyi | 111 + .../react_components}/react_player/video.py | 2 +- .../react_components/react_player/video.pyi | 112 + .../react_components}/recharts/__init__.py | 0 .../react_components}/recharts/cartesian.py | 0 .../react_components/recharts/cartesian.pyi | 1911 ++++++++ .../web/react_components}/recharts/charts.py | 4 +- .../web/react_components/recharts/charts.pyi | 898 ++++ .../web/react_components}/recharts/general.py | 2 +- .../web/react_components/recharts/general.pyi | 590 +++ .../web/react_components}/recharts/polar.py | 0 .../web/react_components/recharts/polar.pyi | 568 +++ .../react_components}/recharts/recharts.py | 2 +- .../react_components/recharts/recharts.pyi | 271 ++ .../react_components}/suneditor/__init__.py | 0 .../web/react_components}/suneditor/editor.py | 4 +- .../web/react_components/suneditor/editor.pyi | 241 + .../web/react_components}/tags/__init__.py | 0 .../web/react_components}/tags/cond_tag.py | 2 +- .../web/react_components}/tags/iter_tag.py | 10 +- .../web/react_components}/tags/match_tag.py | 2 +- .../web/react_components}/tags/tag.py | 0 .../web/react_components}/tags/tagless.py | 2 +- nextpy/{frontend => interfaces/web}/style.py | 2 +- nextpy/utils/format.py | 2 +- poetry.lock | 150 +- pyproject.toml | 7 +- scripts/pyi_generator.py | 2 +- tests/compiler/test_compiler.py | 4 +- .../animation/test_framer-motion.py | 2 +- tests/components/base/test_bare.py | 2 +- tests/components/base/test_script.py | 2 +- tests/components/datadisplay/test_code.py | 2 +- .../components/datadisplay/test_datatable.py | 2 +- tests/components/datadisplay/test_table.py | 2 +- tests/components/forms/test_form.py | 2 +- tests/components/layout/test_cond.py | 10 +- tests/components/layout/test_foreach.py | 4 +- tests/components/layout/test_match.py | 6 +- tests/components/media/test_icon.py | 2 +- tests/components/media/test_image.py | 2 +- tests/components/test_component.py | 22 +- tests/components/test_tag.py | 2 +- tests/components/typography/test_markdown.py | 2 +- tests/test_app.py | 6 +- tests/test_imports.py | 2 +- tests/test_style.py | 2 +- tests/utils/test_format.py | 4 +- 752 files changed, 110870 insertions(+), 1261 deletions(-) rename {nextpy/frontend/templates/apps/hello => app-examples/todo}/.gitignore (100%) rename {nextpy/frontend/templates/apps/base => app-examples/todo}/assets/favicon.ico (100%) rename {nextpy/frontend/templates/apps/base => app-examples/todo}/assets/github.svg (100%) rename {nextpy/frontend/templates/apps/base => app-examples/todo}/assets/gradient_underline.svg (100%) rename {nextpy/frontend/templates/apps/base => app-examples/todo}/assets/icon.svg (100%) rename {nextpy/frontend/templates/apps/base => app-examples/todo}/assets/logo_darkmode.svg (100%) rename {nextpy/frontend/templates/apps/base => app-examples/todo}/assets/paneleft.svg (100%) rename {nextpy/frontend/templates/apps/base => app-examples/todo}/assets/text_logo_darkmode.svg (100%) rename {nextpy/frontend/templates/apps/base/code/components => app-examples/todo/todo}/__init__.py (100%) create mode 100644 app-examples/todo/todo/todo.py create mode 100644 app-examples/todo/xtconfig.py rename nextpy/{frontend => interfaces}/__init__.py (100%) rename nextpy/{frontend => interfaces}/blueprints/__init__.py (100%) rename nextpy/{frontend => interfaces}/blueprints/hero_section.py (100%) rename nextpy/{frontend => interfaces}/blueprints/navbar.py (100%) rename nextpy/{frontend => interfaces}/blueprints/sidebar.py (100%) rename nextpy/{frontend => interfaces}/components/el/elements/inline.pyi (99%) rename nextpy/{frontend => interfaces}/components/el/elements/media.pyi (99%) rename nextpy/{frontend => interfaces}/components/el/elements/other.pyi (99%) rename nextpy/{frontend => interfaces}/components/el/elements/scripts.pyi (99%) rename nextpy/{frontend => interfaces}/components/el/elements/sectioning.pyi (99%) rename nextpy/{frontend => interfaces}/components/el/elements/tables.pyi (99%) rename nextpy/{frontend => interfaces}/components/el/elements/typography.pyi (99%) rename nextpy/{frontend => interfaces}/components/next/image.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/alertdialog.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/aspectratio.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/avatar.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/badge.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/button.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/callout.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/card.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/checkbox.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/contextmenu.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/dialog.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/dropdownmenu.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/hovercard.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/iconbutton.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/inset.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/popover.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/radiogroup.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/scrollarea.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/select.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/separator.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/slider.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/switch.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/table.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/tabs.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/components/tooltip.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/layout/base.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/layout/box.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/layout/container.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/layout/flex.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/layout/grid.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/layout/section.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/typography/blockquote.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/typography/code.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/typography/em.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/typography/heading.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/typography/kbd.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/typography/quote.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/typography/strong.pyi (99%) rename nextpy/{frontend => interfaces}/components/radix/themes/typography/text.pyi (99%) rename nextpy/{frontend => interfaces}/components/recharts/cartesian.pyi (99%) rename nextpy/{frontend => interfaces}/components/recharts/polar.pyi (99%) rename nextpy/{frontend => interfaces}/custom_components/__init__.py (100%) rename nextpy/{frontend => interfaces}/custom_components/custom_components.py (100%) rename nextpy/{frontend/components => interfaces/react_components}/base/app_wrap.pyi (94%) rename nextpy/{frontend/components => interfaces/react_components}/base/body.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/base/document.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/base/fragment.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/base/head.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/base/link.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/base/meta.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/base/script.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/base.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/badge.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/code.py (95%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/code.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/divider.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/keyboard_key.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/list.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/stat.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/table.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/datadisplay/tag.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/disclosure/accordion.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/disclosure/tabs.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/disclosure/transition.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/disclosure/visuallyhidden.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/feedback/alert.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/feedback/circularprogress.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/feedback/progress.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/feedback/skeleton.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/feedback/spinner.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/button.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/checkbox.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/colormodeswitch.py (90%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/colormodeswitch.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/date_picker.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/date_time_picker.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/editable.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/email.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/form.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/iconbutton.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/input.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/numberinput.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/password.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/pininput.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/radio.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/rangeslider.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/select.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/slider.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/switch.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/forms/textarea.pyi (94%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/aspect_ratio.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/box.pyi (95%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/card.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/center.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/container.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/flex.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/grid.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/html.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/spacer.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/stack.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/layout/wrap.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/media/avatar.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/media/icon.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/media/image.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/navigation/breadcrumb.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/navigation/link.pyi (93%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/navigation/linkoverlay.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/navigation/stepper.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/overlay/alertdialog.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/overlay/drawer.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/overlay/menu.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/overlay/modal.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/overlay/popover.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/overlay/tooltip.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/typography/heading.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/typography/highlight.pyi (95%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/typography/span.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/chakra/typography/text.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/component.py (98%) rename nextpy/{frontend/components => interfaces/react_components}/core/banner.pyi (94%) rename nextpy/{frontend/components => interfaces/react_components}/core/client_side_routing.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/core/debounce.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/core/layout/center.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/core/layout/spacer.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/core/layout/stack.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/core/upload.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/el/element.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/el/elements/base.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/el/elements/forms.pyi (99%) create mode 100644 nextpy/interfaces/react_components/el/elements/inline.pyi create mode 100644 nextpy/interfaces/react_components/el/elements/media.pyi rename nextpy/{frontend/components => interfaces/react_components}/el/elements/metadata.pyi (99%) create mode 100644 nextpy/interfaces/react_components/el/elements/other.pyi create mode 100644 nextpy/interfaces/react_components/el/elements/scripts.pyi create mode 100644 nextpy/interfaces/react_components/el/elements/sectioning.pyi create mode 100644 nextpy/interfaces/react_components/el/elements/tables.pyi create mode 100644 nextpy/interfaces/react_components/el/elements/typography.pyi rename nextpy/{frontend/components => interfaces/react_components}/glide_datagrid/dataeditor.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/gridjs/datatable.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/leaflet/leaflet.py (96%) rename nextpy/{frontend/components => interfaces/react_components}/markdown/markdown.py (92%) rename nextpy/{frontend/components => interfaces/react_components}/markdown/markdown.pyi (88%) rename nextpy/{frontend/components => interfaces/react_components}/moment/moment.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/next/base.pyi (96%) create mode 100644 nextpy/interfaces/react_components/next/image.pyi rename nextpy/{frontend/components => interfaces/react_components}/next/link.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/next/video.pyi (96%) rename nextpy/{frontend/components => interfaces/react_components}/plotly/plotly.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/radix/primitives/accordion.py (95%) rename nextpy/{frontend/components => interfaces/react_components}/radix/primitives/accordion.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/radix/primitives/base.pyi (95%) rename nextpy/{frontend/components => interfaces/react_components}/radix/primitives/form.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/radix/primitives/progress.py (91%) rename nextpy/{frontend/components => interfaces/react_components}/radix/primitives/progress.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/radix/primitives/slider.py (95%) rename nextpy/{frontend/components => interfaces/react_components}/radix/primitives/slider.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/radix/themes/base.pyi (99%) create mode 100644 nextpy/interfaces/react_components/radix/themes/components/alertdialog.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/aspectratio.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/avatar.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/badge.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/button.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/callout.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/card.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/checkbox.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/contextmenu.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/dialog.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/dropdownmenu.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/hovercard.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/iconbutton.pyi rename nextpy/{frontend/components => interfaces/react_components}/radix/themes/components/icons.pyi (98%) create mode 100644 nextpy/interfaces/react_components/radix/themes/components/inset.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/popover.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/radiogroup.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/scrollarea.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/select.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/separator.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/slider.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/switch.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/table.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/components/tabs.pyi rename nextpy/{frontend/components => interfaces/react_components}/radix/themes/components/textarea.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/radix/themes/components/textfield.pyi (99%) create mode 100644 nextpy/interfaces/react_components/radix/themes/components/tooltip.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/layout/base.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/layout/box.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/layout/container.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/layout/flex.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/layout/grid.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/layout/section.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/typography/blockquote.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/typography/code.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/typography/em.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/typography/heading.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/typography/kbd.pyi rename nextpy/{frontend/components => interfaces/react_components}/radix/themes/typography/link.pyi (99%) create mode 100644 nextpy/interfaces/react_components/radix/themes/typography/quote.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/typography/strong.pyi create mode 100644 nextpy/interfaces/react_components/radix/themes/typography/text.pyi rename nextpy/{frontend/components => interfaces/react_components}/react_player/audio.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/react_player/react_player.pyi (97%) rename nextpy/{frontend/components => interfaces/react_components}/react_player/video.pyi (97%) create mode 100644 nextpy/interfaces/react_components/recharts/cartesian.pyi rename nextpy/{frontend/components => interfaces/react_components}/recharts/charts.pyi (99%) rename nextpy/{frontend/components => interfaces/react_components}/recharts/general.pyi (99%) create mode 100644 nextpy/interfaces/react_components/recharts/polar.pyi rename nextpy/{frontend/components => interfaces/react_components}/recharts/recharts.pyi (98%) rename nextpy/{frontend/components => interfaces/react_components}/suneditor/editor.pyi (98%) rename nextpy/{frontend => interfaces}/templates/apps/base/README.md (100%) rename nextpy/{frontend/templates/apps/blank => interfaces/templates/apps/base}/assets/favicon.ico (100%) rename nextpy/{frontend/templates/apps/blank => interfaces/templates/apps/base}/assets/github.svg (100%) rename nextpy/{frontend/templates/apps/blank => interfaces/templates/apps/base}/assets/gradient_underline.svg (100%) rename nextpy/{frontend/templates/apps/blank => interfaces/templates/apps/base}/assets/icon.svg (100%) rename nextpy/{frontend/templates/apps/blank => interfaces/templates/apps/base}/assets/logo_darkmode.svg (100%) rename nextpy/{frontend/templates/apps/blank => interfaces/templates/apps/base}/assets/paneleft.svg (100%) rename nextpy/{frontend/templates/apps/blank => interfaces/templates/apps/base}/assets/text_logo_darkmode.svg (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/__init__.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/base.py (100%) rename nextpy/{frontend/templates/apps/blank/code => interfaces/templates/apps/base/code/components}/__init__.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/components/sidebar.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/pages/__init__.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/pages/dashboard.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/pages/index.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/pages/settings.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/styles.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/templates/__init__.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/base/code/templates/template.py (100%) rename nextpy/{frontend/templates/apps/hello => interfaces/templates/apps/blank}/assets/favicon.ico (100%) rename nextpy/{frontend/templates/apps/hello => interfaces/templates/apps/blank}/assets/github.svg (100%) rename nextpy/{frontend/templates/apps/hello => interfaces/templates/apps/blank}/assets/gradient_underline.svg (100%) rename nextpy/{frontend/templates/apps/hello => interfaces/templates/apps/blank}/assets/icon.svg (100%) rename nextpy/{frontend/templates/apps/hello => interfaces/templates/apps/blank}/assets/logo_darkmode.svg (100%) rename nextpy/{frontend/templates/apps/hello => interfaces/templates/apps/blank}/assets/paneleft.svg (100%) rename nextpy/{frontend/templates/apps/hello => interfaces/templates/apps/blank}/assets/text_logo_darkmode.svg (100%) rename nextpy/{frontend/templates/apps/hello/code/webui => interfaces/templates/apps/blank/code}/__init__.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/blank/code/blank.py (100%) create mode 100644 nextpy/interfaces/templates/apps/hello/.gitignore create mode 100644 nextpy/interfaces/templates/apps/hello/assets/favicon.ico create mode 100644 nextpy/interfaces/templates/apps/hello/assets/github.svg create mode 100644 nextpy/interfaces/templates/apps/hello/assets/gradient_underline.svg create mode 100644 nextpy/interfaces/templates/apps/hello/assets/icon.svg create mode 100644 nextpy/interfaces/templates/apps/hello/assets/logo_darkmode.svg create mode 100644 nextpy/interfaces/templates/apps/hello/assets/paneleft.svg create mode 100644 nextpy/interfaces/templates/apps/hello/assets/text_logo_darkmode.svg rename nextpy/{frontend => interfaces}/templates/apps/hello/code/__init__.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/hello.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/pages/__init__.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/pages/chatapp.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/pages/datatable.py (99%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/pages/forms.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/pages/graphing.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/pages/home.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/sidebar.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/state.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/states/form_state.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/states/pie_state.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/styles.py (100%) rename nextpy/{frontend/components/media/icon.py => interfaces/templates/apps/hello/code/webui/__init__.py} (70%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/webui/components/__init__.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/webui/components/chat.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/webui/components/loading_icon.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/webui/components/modal.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/webui/components/navbar.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/webui/components/sidebar.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/webui/state.py (100%) rename nextpy/{frontend => interfaces}/templates/apps/hello/code/webui/styles.py (100%) rename nextpy/{frontend => interfaces}/templates/jinja/app/xtconfig.py.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/custom_components/README.md.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/custom_components/demo_app.py.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/custom_components/pyproject.toml.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/custom_components/src.py.jinja2 (96%) rename nextpy/{frontend => interfaces}/templates/jinja/web/package.json.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/_app.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/_document.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/base_page.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/component.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/custom_component.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/index.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/stateful_component.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/stateful_components.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/pages/utils.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/styles/styles.css.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/tailwind.config.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/utils/context.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/jinja/web/utils/theme.js.jinja2 (100%) rename nextpy/{frontend => interfaces}/templates/web/.gitignore (100%) rename nextpy/{frontend => interfaces}/templates/web/components/nextpy/chakra_color_mode_provider.js (100%) rename nextpy/{frontend => interfaces}/templates/web/components/nextpy/radix_themes_color_mode_provider.js (100%) rename nextpy/{frontend => interfaces}/templates/web/jsconfig.json (100%) rename nextpy/{frontend => interfaces}/templates/web/next.config.js (100%) rename nextpy/{frontend => interfaces}/templates/web/postcss.config.js (100%) rename nextpy/{frontend => interfaces}/templates/web/styles/code/prism.js (100%) rename nextpy/{frontend => interfaces}/templates/web/styles/tailwind.css (100%) rename nextpy/{frontend => interfaces}/templates/web/utils/client_side_routing.js (100%) rename nextpy/{frontend => interfaces}/templates/web/utils/helpers/dataeditor.js (100%) rename nextpy/{frontend => interfaces}/templates/web/utils/helpers/range.js (100%) rename nextpy/{frontend => interfaces}/templates/web/utils/state.js (100%) create mode 100644 nextpy/interfaces/web/__init__.py rename nextpy/{frontend => interfaces/web}/imports.py (100%) rename nextpy/{frontend => interfaces/web}/page.py (100%) rename nextpy/{frontend => interfaces/web}/page.pyi (91%) rename nextpy/{frontend/components => interfaces/web/react_components}/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/base/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/base/app_wrap.py (83%) create mode 100644 nextpy/interfaces/web/react_components/base/app_wrap.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/base/bare.py (86%) rename nextpy/{frontend/components => interfaces/web/react_components}/base/body.py (84%) create mode 100644 nextpy/interfaces/web/react_components/base/body.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/base/document.py (91%) create mode 100644 nextpy/interfaces/web/react_components/base/document.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/base/fragment.py (88%) create mode 100644 nextpy/interfaces/web/react_components/base/fragment.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/base/head.py (85%) create mode 100644 nextpy/interfaces/web/react_components/base/head.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/base/link.py (94%) create mode 100644 nextpy/interfaces/web/react_components/base/link.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/base/meta.py (92%) create mode 100644 nextpy/interfaces/web/react_components/base/meta.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/base/script.py (89%) create mode 100644 nextpy/interfaces/web/react_components/base/script.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/base.py (98%) create mode 100644 nextpy/interfaces/web/react_components/chakra/base.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/datadisplay/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/datadisplay/badge.py (86%) create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/badge.pyi create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/code.py create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/code.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/datadisplay/divider.py (89%) create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/divider.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/datadisplay/keyboard_key.py (84%) create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/keyboard_key.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/datadisplay/list.py (88%) create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/list.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/datadisplay/stat.py (94%) create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/stat.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/datadisplay/table.py (97%) create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/table.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/datadisplay/tag.py (95%) create mode 100644 nextpy/interfaces/web/react_components/chakra/datadisplay/tag.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/disclosure/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/disclosure/accordion.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/disclosure/accordion.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/disclosure/tabs.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/disclosure/tabs.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/disclosure/transition.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/disclosure/transition.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/disclosure/visuallyhidden.py (87%) create mode 100644 nextpy/interfaces/web/react_components/chakra/disclosure/visuallyhidden.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/feedback/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/feedback/alert.py (93%) create mode 100644 nextpy/interfaces/web/react_components/chakra/feedback/alert.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/feedback/circularprogress.py (93%) create mode 100644 nextpy/interfaces/web/react_components/chakra/feedback/circularprogress.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/feedback/progress.py (93%) create mode 100644 nextpy/interfaces/web/react_components/chakra/feedback/progress.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/feedback/skeleton.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/feedback/skeleton.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/feedback/spinner.py (90%) create mode 100644 nextpy/interfaces/web/react_components/chakra/feedback/spinner.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/button.py (97%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/button.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/checkbox.py (98%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/checkbox.pyi create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/colormodeswitch.py create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/colormodeswitch.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/date_picker.py (86%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/date_picker.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/date_time_picker.py (87%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/date_time_picker.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/editable.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/editable.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/email.py (86%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/email.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/form.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/form.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/iconbutton.py (87%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/iconbutton.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/input.py (93%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/input.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/multiselect.py (99%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/numberinput.py (97%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/numberinput.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/password.py (86%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/password.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/pininput.py (95%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/pininput.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/radio.py (91%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/radio.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/rangeslider.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/rangeslider.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/select.py (92%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/select.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/slider.py (95%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/slider.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/switch.py (95%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/switch.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/forms/textarea.py (92%) create mode 100644 nextpy/interfaces/web/react_components/chakra/forms/textarea.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/aspect_ratio.py (88%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/aspect_ratio.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/box.py (87%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/box.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/card.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/card.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/center.py (89%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/center.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/container.py (88%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/container.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/flex.py (92%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/flex.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/grid.py (98%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/grid.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/html.py (94%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/html.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/spacer.py (84%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/spacer.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/stack.py (93%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/stack.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/layout/wrap.py (91%) create mode 100644 nextpy/interfaces/web/react_components/chakra/layout/wrap.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/media/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/media/avatar.py (95%) create mode 100644 nextpy/interfaces/web/react_components/chakra/media/avatar.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/media/icon.py (97%) create mode 100644 nextpy/interfaces/web/react_components/chakra/media/icon.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/media/image.py (93%) create mode 100644 nextpy/interfaces/web/react_components/chakra/media/image.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/navigation/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/navigation/breadcrumb.py (91%) create mode 100644 nextpy/interfaces/web/react_components/chakra/navigation/breadcrumb.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/navigation/link.py (86%) create mode 100644 nextpy/interfaces/web/react_components/chakra/navigation/link.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/navigation/linkoverlay.py (91%) create mode 100644 nextpy/interfaces/web/react_components/chakra/navigation/linkoverlay.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/navigation/stepper.py (94%) create mode 100644 nextpy/interfaces/web/react_components/chakra/navigation/stepper.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/overlay/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/overlay/alertdialog.py (95%) create mode 100644 nextpy/interfaces/web/react_components/chakra/overlay/alertdialog.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/overlay/drawer.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/overlay/drawer.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/overlay/menu.py (97%) create mode 100644 nextpy/interfaces/web/react_components/chakra/overlay/menu.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/overlay/modal.py (96%) create mode 100644 nextpy/interfaces/web/react_components/chakra/overlay/modal.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/overlay/popover.py (97%) create mode 100644 nextpy/interfaces/web/react_components/chakra/overlay/popover.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/overlay/tooltip.py (95%) create mode 100644 nextpy/interfaces/web/react_components/chakra/overlay/tooltip.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/typography/__init__.py (87%) rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/typography/heading.py (86%) create mode 100644 nextpy/interfaces/web/react_components/chakra/typography/heading.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/typography/highlight.py (86%) create mode 100644 nextpy/interfaces/web/react_components/chakra/typography/highlight.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/typography/span.py (88%) create mode 100644 nextpy/interfaces/web/react_components/chakra/typography/span.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/chakra/typography/text.py (90%) create mode 100644 nextpy/interfaces/web/react_components/chakra/typography/text.pyi create mode 100644 nextpy/interfaces/web/react_components/component.py rename nextpy/{frontend/components => interfaces/web/react_components}/core/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/core/banner.py (87%) create mode 100644 nextpy/interfaces/web/react_components/core/banner.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/core/client_side_routing.py (93%) create mode 100644 nextpy/interfaces/web/react_components/core/client_side_routing.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/core/cond.py (95%) rename nextpy/{frontend/components => interfaces/web/react_components}/core/debounce.py (98%) create mode 100644 nextpy/interfaces/web/react_components/core/debounce.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/core/foreach.py (95%) rename nextpy/{frontend/components => interfaces/web/react_components}/core/layout/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/core/layout/center.py (81%) create mode 100644 nextpy/interfaces/web/react_components/core/layout/center.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/core/layout/spacer.py (81%) create mode 100644 nextpy/interfaces/web/react_components/core/layout/spacer.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/core/layout/stack.py (92%) create mode 100644 nextpy/interfaces/web/react_components/core/layout/stack.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/core/match.py (97%) rename nextpy/{frontend/components => interfaces/web/react_components}/core/responsive.py (96%) rename nextpy/{frontend/components => interfaces/web/react_components}/core/upload.py (95%) create mode 100644 nextpy/interfaces/web/react_components/core/upload.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/el/constants/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/el/constants/html.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/el/constants/nextpy.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/el/constants/react.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/el/element.py (91%) create mode 100644 nextpy/interfaces/web/react_components/el/element.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/base.py (97%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/base.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/forms.py (99%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/forms.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/inline.py (100%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/inline.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/media.py (100%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/media.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/metadata.py (95%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/metadata.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/other.py (100%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/other.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/scripts.py (100%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/scripts.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/sectioning.py (100%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/sectioning.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/tables.py (100%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/tables.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/elements/typography.py (100%) create mode 100644 nextpy/interfaces/web/react_components/el/elements/typography.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/el/precompile.py (91%) rename nextpy/{frontend/components => interfaces/web/react_components}/flow/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/flow/flow.py (96%) rename nextpy/{frontend/components => interfaces/web/react_components}/framer/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/framer/motion/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/framer/motion/motion.py (99%) rename nextpy/{frontend/components => interfaces/web/react_components}/glide_datagrid/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/glide_datagrid/dataeditor.py (96%) create mode 100644 nextpy/interfaces/web/react_components/glide_datagrid/dataeditor.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/gridjs/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/gridjs/datatable.py (96%) create mode 100644 nextpy/interfaces/web/react_components/gridjs/datatable.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/latex/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/latex/latex.py (87%) rename nextpy/{frontend/components => interfaces/web/react_components}/leaflet/__init__.py (100%) create mode 100644 nextpy/interfaces/web/react_components/leaflet/leaflet.py rename nextpy/{frontend/components => interfaces/web/react_components}/literals.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/markdown/__init__.py (100%) create mode 100644 nextpy/interfaces/web/react_components/markdown/markdown.py create mode 100644 nextpy/interfaces/web/react_components/markdown/markdown.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/media/__init__.py (100%) create mode 100644 nextpy/interfaces/web/react_components/media/icon.py rename nextpy/{frontend/components => interfaces/web/react_components}/moment/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/moment/moment.py (96%) create mode 100644 nextpy/interfaces/web/react_components/moment/moment.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/next/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/next/base.py (85%) create mode 100644 nextpy/interfaces/web/react_components/next/base.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/next/image.py (100%) create mode 100644 nextpy/interfaces/web/react_components/next/image.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/next/link.py (91%) create mode 100644 nextpy/interfaces/web/react_components/next/link.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/next/video.py (93%) create mode 100644 nextpy/interfaces/web/react_components/next/video.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/plotly/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/plotly/plotly.py (93%) create mode 100644 nextpy/interfaces/web/react_components/plotly/plotly.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/proxy/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/proxy/animation.py (85%) rename nextpy/{frontend/components => interfaces/web/react_components}/proxy/unstyled.py (67%) rename nextpy/{frontend/components => interfaces/web/react_components}/radix/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/radix/primitives/__init__.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/primitives/accordion.py create mode 100644 nextpy/interfaces/web/react_components/radix/primitives/accordion.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/primitives/base.py (87%) create mode 100644 nextpy/interfaces/web/react_components/radix/primitives/base.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/primitives/form.py (97%) create mode 100644 nextpy/interfaces/web/react_components/radix/primitives/form.pyi create mode 100644 nextpy/interfaces/web/react_components/radix/primitives/progress.py create mode 100644 nextpy/interfaces/web/react_components/radix/primitives/progress.pyi create mode 100644 nextpy/interfaces/web/react_components/radix/primitives/slider.py create mode 100644 nextpy/interfaces/web/react_components/radix/primitives/slider.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/base.py (98%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/base.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/alertdialog.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/alertdialog.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/aspectratio.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/aspectratio.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/avatar.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/avatar.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/badge.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/badge.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/button.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/button.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/callout.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/callout.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/card.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/card.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/checkbox.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/checkbox.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/contextmenu.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/contextmenu.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/dialog.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/dialog.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/dropdownmenu.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/dropdownmenu.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/hovercard.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/hovercard.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/iconbutton.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/iconbutton.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/icons.py (99%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/icons.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/inset.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/inset.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/popover.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/popover.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/radiogroup.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/radiogroup.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/scrollarea.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/scrollarea.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/select.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/select.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/separator.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/separator.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/slider.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/slider.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/switch.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/switch.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/table.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/table.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/tabs.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/tabs.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/textarea.py (94%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/textarea.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/textfield.py (93%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/textfield.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/components/tooltip.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/components/tooltip.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/layout/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/layout/base.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/layout/base.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/layout/box.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/layout/box.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/layout/container.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/layout/container.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/layout/flex.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/layout/flex.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/layout/grid.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/layout/grid.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/layout/section.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/layout/section.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/base.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/blockquote.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/blockquote.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/code.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/code.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/em.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/em.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/heading.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/heading.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/kbd.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/kbd.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/link.py (95%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/link.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/quote.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/quote.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/strong.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/strong.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/radix/themes/typography/text.py (100%) create mode 100644 nextpy/interfaces/web/react_components/radix/themes/typography/text.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/react_player/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/react_player/audio.py (81%) create mode 100644 nextpy/interfaces/web/react_components/react_player/audio.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/react_player/react_player.py (94%) create mode 100644 nextpy/interfaces/web/react_components/react_player/react_player.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/react_player/video.py (81%) create mode 100644 nextpy/interfaces/web/react_components/react_player/video.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/recharts/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/recharts/cartesian.py (100%) create mode 100644 nextpy/interfaces/web/react_components/recharts/cartesian.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/recharts/charts.py (99%) create mode 100644 nextpy/interfaces/web/react_components/recharts/charts.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/recharts/general.py (98%) create mode 100644 nextpy/interfaces/web/react_components/recharts/general.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/recharts/polar.py (100%) create mode 100644 nextpy/interfaces/web/react_components/recharts/polar.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/recharts/recharts.py (98%) create mode 100644 nextpy/interfaces/web/react_components/recharts/recharts.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/suneditor/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/suneditor/editor.py (98%) create mode 100644 nextpy/interfaces/web/react_components/suneditor/editor.pyi rename nextpy/{frontend/components => interfaces/web/react_components}/tags/__init__.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/tags/cond_tag.py (91%) rename nextpy/{frontend/components => interfaces/web/react_components}/tags/iter_tag.py (90%) rename nextpy/{frontend/components => interfaces/web/react_components}/tags/match_tag.py (90%) rename nextpy/{frontend/components => interfaces/web/react_components}/tags/tag.py (100%) rename nextpy/{frontend/components => interfaces/web/react_components}/tags/tagless.py (93%) rename nextpy/{frontend => interfaces/web}/style.py (99%) diff --git a/app-examples/mapping/mapping/mapping.py b/app-examples/mapping/mapping/mapping.py index 4c82a217..e3eb6ecf 100644 --- a/app-examples/mapping/mapping/mapping.py +++ b/app-examples/mapping/mapping/mapping.py @@ -3,7 +3,7 @@ from typing import Dict, List, Tuple import nextpy as xt -from nextpy.frontend.components.leaflet import ( +from nextpy.interfaces.web.react_components.leaflet import ( map_container, tile_layer, marker, diff --git a/nextpy/frontend/templates/apps/hello/.gitignore b/app-examples/todo/.gitignore similarity index 100% rename from nextpy/frontend/templates/apps/hello/.gitignore rename to app-examples/todo/.gitignore diff --git a/nextpy/frontend/templates/apps/base/assets/favicon.ico b/app-examples/todo/assets/favicon.ico similarity index 100% rename from nextpy/frontend/templates/apps/base/assets/favicon.ico rename to app-examples/todo/assets/favicon.ico diff --git a/nextpy/frontend/templates/apps/base/assets/github.svg b/app-examples/todo/assets/github.svg similarity index 100% rename from nextpy/frontend/templates/apps/base/assets/github.svg rename to app-examples/todo/assets/github.svg diff --git a/nextpy/frontend/templates/apps/base/assets/gradient_underline.svg b/app-examples/todo/assets/gradient_underline.svg similarity index 100% rename from nextpy/frontend/templates/apps/base/assets/gradient_underline.svg rename to app-examples/todo/assets/gradient_underline.svg diff --git a/nextpy/frontend/templates/apps/base/assets/icon.svg b/app-examples/todo/assets/icon.svg similarity index 100% rename from nextpy/frontend/templates/apps/base/assets/icon.svg rename to app-examples/todo/assets/icon.svg diff --git a/nextpy/frontend/templates/apps/base/assets/logo_darkmode.svg b/app-examples/todo/assets/logo_darkmode.svg similarity index 100% rename from nextpy/frontend/templates/apps/base/assets/logo_darkmode.svg rename to app-examples/todo/assets/logo_darkmode.svg diff --git a/nextpy/frontend/templates/apps/base/assets/paneleft.svg b/app-examples/todo/assets/paneleft.svg similarity index 100% rename from nextpy/frontend/templates/apps/base/assets/paneleft.svg rename to app-examples/todo/assets/paneleft.svg diff --git a/nextpy/frontend/templates/apps/base/assets/text_logo_darkmode.svg b/app-examples/todo/assets/text_logo_darkmode.svg similarity index 100% rename from nextpy/frontend/templates/apps/base/assets/text_logo_darkmode.svg rename to app-examples/todo/assets/text_logo_darkmode.svg diff --git a/nextpy/frontend/templates/apps/base/code/components/__init__.py b/app-examples/todo/todo/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/components/__init__.py rename to app-examples/todo/todo/__init__.py diff --git a/app-examples/todo/todo/todo.py b/app-examples/todo/todo/todo.py new file mode 100644 index 00000000..7d567e13 --- /dev/null +++ b/app-examples/todo/todo/todo.py @@ -0,0 +1,40 @@ +import nextpy as xt + +class State(xt.State): + count: int = 0 + message: str = "" + + def increment(self): + self.count += 1 + if self.count == 10: + self.message = "Count is 10!" + + def decrement(self): + self.count -= 1 + if self.count < 10: + self.message = "" + + +def index(): + return xt.hstack( + xt.button( + "Decrement", + bg="#fef2f2", + color="#b91c1c", + border_radius="lg", + on_click=State.decrement, + ), + xt.heading(State.count, font_size="2em"), + xt.text(State.message), + xt.button( + "Increment", + bg="#ecfdf5", + color="#047857", + border_radius="lg", + on_click=State.increment, + ), + spacing="1em", + ) + +app = xt.App() +app.add_page(index) diff --git a/app-examples/todo/xtconfig.py b/app-examples/todo/xtconfig.py new file mode 100644 index 00000000..abe56db8 --- /dev/null +++ b/app-examples/todo/xtconfig.py @@ -0,0 +1,5 @@ +import nextpy as xt + +config = xt.Config( + app_name="todo", +) \ No newline at end of file diff --git a/docs/references/frontend/components/base/app_wrap_reference.md b/docs/references/frontend/components/base/app_wrap_reference.md index 391ca2c7..0fff7ae9 100644 --- a/docs/references/frontend/components/base/app_wrap_reference.md +++ b/docs/references/frontend/components/base/app_wrap_reference.md @@ -11,7 +11,7 @@ ### Basic Implementation ```python -from nextpy.frontend.components.base.app_wrap import AppWrap +from nextpy.interfaces.web.react_components.base.app_wrap import AppWrap from nextpy.frontend.style import Style # Basic usage of AppWrap to group components with an applied style diff --git a/docs/references/frontend/components/base/body_reference.md b/docs/references/frontend/components/base/body_reference.md index 2a2e0cb6..ed6207c4 100644 --- a/docs/references/frontend/components/base/body_reference.md +++ b/docs/references/frontend/components/base/body_reference.md @@ -25,7 +25,7 @@ The `Body` component is used in scenarios such as: Here is a simple example of how to use the `Body` component: ```python -from nextpy.frontend.components.base.body import Body +from nextpy.interfaces.web.react_components.base.body import Body # Create a Body component with a child component body = Body.create( @@ -39,7 +39,7 @@ body = Body.create( For a more advanced usage that involves event handling and custom attributes: ```python -from nextpy.frontend.components.base.body import Body +from nextpy.interfaces.web.react_components.base.body import Body from nextpy.backend.event import EventHandler def on_click_handler(event): diff --git a/docs/references/frontend/components/chakra/forms/iconbutton_reference.md b/docs/references/frontend/components/chakra/forms/iconbutton_reference.md index 97493e05..89953bb2 100644 --- a/docs/references/frontend/components/chakra/forms/iconbutton_reference.md +++ b/docs/references/frontend/components/chakra/forms/iconbutton_reference.md @@ -25,7 +25,7 @@ The primary purpose of the `IconButton` component is to capture user interaction ```python from nextpy.components.chakra.forms.iconbutton import IconButton -from nextpy.frontend.components.font_awesome.icon import FaIcon +from nextpy.interfaces.web.react_components.font_awesome.icon import FaIcon # Create an IconButton with a specific icon icon_button = IconButton.create( diff --git a/docs/references/frontend/components/chakra/layout/container_reference.md b/docs/references/frontend/components/chakra/layout/container_reference.md index 9d3a1cd1..2cd2c82b 100644 --- a/docs/references/frontend/components/chakra/layout/container_reference.md +++ b/docs/references/frontend/components/chakra/layout/container_reference.md @@ -27,7 +27,7 @@ For more complex scenarios, you can include multiple child components, custom at ```python from nextpy.components.chakra.layout import Container -from nextpy.frontend.components.basic import Text +from nextpy.interfaces.web.react_components.basic import Text def app(): return Container.create( diff --git a/docs/references/frontend/components/chakra/layout/spacer_reference.md b/docs/references/frontend/components/chakra/layout/spacer_reference.md index c3ecc76d..067814e8 100644 --- a/docs/references/frontend/components/chakra/layout/spacer_reference.md +++ b/docs/references/frontend/components/chakra/layout/spacer_reference.md @@ -31,7 +31,7 @@ spacer = Spacer.create() ```python # Basic usage of Spacer to push two components apart -from nextpy.frontend.components.chakra import Box, Spacer +from nextpy.interfaces.web.react_components.chakra import Box, Spacer left_component = Box.create("Left Item", style={"width": "100px"}) right_component = Box.create("Right Item", style={"width": "100px"}) @@ -48,7 +48,7 @@ layout = Box.create( ```python # Advanced usage with multiple spacers for different spacing -from nextpy.frontend.components.chakra import Box, Spacer +from nextpy.interfaces.web.react_components.chakra import Box, Spacer left_component = Box.create("Left Item", style={"width": "100px"}) middle_component = Box.create("Middle Item", style={"width": "100px"}) diff --git a/docs/references/frontend/components/chakra/media/image_reference.md b/docs/references/frontend/components/chakra/media/image_reference.md index 801ee5aa..982f150c 100644 --- a/docs/references/frontend/components/chakra/media/image_reference.md +++ b/docs/references/frontend/components/chakra/media/image_reference.md @@ -49,7 +49,7 @@ A more advanced example of the `Image` component might include handling events a ```python from nextpy.components.chakra.media.image import Image -from nextpy.frontend.components.basic import Text +from nextpy.interfaces.web.react_components.basic import Text # Advanced image usage with fallback and events image_with_fallback = Image.create( diff --git a/docs/references/frontend/components/core/layout/center_reference.md b/docs/references/frontend/components/core/layout/center_reference.md index c25d5fed..c27efe8b 100644 --- a/docs/references/frontend/components/core/layout/center_reference.md +++ b/docs/references/frontend/components/core/layout/center_reference.md @@ -25,7 +25,7 @@ The `Center` component serves the purpose of simplifying the alignment of elemen ### Basic Implementation ```python -from nextpy.frontend.components.core.layout.center import Center +from nextpy.interfaces.web.react_components.core.layout.center import Center centered_content = Center.create( "This is a centered text block." @@ -35,7 +35,7 @@ centered_content = Center.create( ### Advanced Implementation ```python -from nextpy.frontend.components.core.layout.center import Center +from nextpy.interfaces.web.react_components.core.layout.center import Center from nextpy.frontend.style import Style centered_content_with_style = Center.create( diff --git a/docs/references/frontend/components/core/layout/spacer_reference.md b/docs/references/frontend/components/core/layout/spacer_reference.md index d0e6b3aa..56eda33e 100644 --- a/docs/references/frontend/components/core/layout/spacer_reference.md +++ b/docs/references/frontend/components/core/layout/spacer_reference.md @@ -19,7 +19,7 @@ The `Spacer` component is essentially a `Div` element with the capability to pro ### Basic Usage ```python -from nextpy.frontend.components.core.layout import spacer +from nextpy.interfaces.web.react_components.core.layout import spacer # Creating a simple spacer with default properties simple_spacer = spacer.create() @@ -28,7 +28,7 @@ simple_spacer = spacer.create() ### Advanced Usage ```python -from nextpy.frontend.components.core.layout import spacer +from nextpy.interfaces.web.react_components.core.layout import spacer from nextpy.frontend.style import Style # Creating a spacer with a specific height and width diff --git a/docs/references/frontend/components/core/layout/stack_reference.md b/docs/references/frontend/components/core/layout/stack_reference.md index 27dce827..f31daac0 100644 --- a/docs/references/frontend/components/core/layout/stack_reference.md +++ b/docs/references/frontend/components/core/layout/stack_reference.md @@ -18,7 +18,7 @@ The `Stack` component in Nextpy is a layout utility designed to stack its child ### Basic Usage ```python -from nextpy.frontend.components.core.layout.stack import HStack, VStack +from nextpy.interfaces.web.react_components.core.layout.stack import HStack, VStack # Horizontal Stack horizontal_stack = HStack.create( diff --git a/docs/references/frontend/components/radix/themes/components/icons_reference.md b/docs/references/frontend/components/radix/themes/components/icons_reference.md index 2f46d773..e65cae97 100644 --- a/docs/references/frontend/components/radix/themes/components/icons_reference.md +++ b/docs/references/frontend/components/radix/themes/components/icons_reference.md @@ -51,7 +51,7 @@ my_icon = Icon.create( ```python from nextpy.components.radix.themes.components.icons import Icon, ICON_LIST -from nextpy.frontend.components.flex import Flex +from nextpy.interfaces.web.react_components.flex import Flex # Displaying a set of icons icon_set = Flex.create( diff --git a/nextpy/__init__.py b/nextpy/__init__.py index d2f31aea..b19d7475 100644 --- a/nextpy/__init__.py +++ b/nextpy/__init__.py @@ -12,7 +12,7 @@ import importlib from typing import Type -from nextpy.frontend.page import page as page +from nextpy.interfaces.web.page import page as page from nextpy.utils import console from nextpy.utils.format import to_snake_case @@ -283,15 +283,15 @@ "nextpy.constants": ["Env", "constants"], "nextpy.data.jsondb": ["JsonDatabase"], "nextpy.data.model": ["Model", "model", "session"], - "nextpy.frontend.components": _ALL_COMPONENTS + ["chakra", "next"], - "nextpy.frontend.components.framer.motion": ["motion"], - "nextpy.frontend.components.component": ["memo"], - "nextpy.frontend.components.el": ["el"], - "nextpy.frontend.components.moment.moment": ["MomentDelta"], + "nextpy.interfaces.web.react_components": _ALL_COMPONENTS + ["chakra", "next"], + "nextpy.interfaces.web.react_components.framer.motion": ["motion"], + "nextpy.interfaces.web.react_components.component": ["memo"], + "nextpy.interfaces.web.react_components.el": ["el"], + "nextpy.interfaces.web.react_components.moment.moment": ["MomentDelta"], "nextpy.frontend.page": ["page"], - "nextpy.frontend.components.proxy": ["animation", "unstyled"], + "nextpy.interfaces.web.react_components.proxy": ["animation", "unstyled"], "nextpy.frontend.style": ["color_mode", "style", "toggle_color_mode"], - "nextpy.frontend.components.recharts": [ + "nextpy.interfaces.web.react_components.recharts": [ "area_chart", "bar_chart", "line_chart", "composed_chart", "pie_chart", "radar_chart", "radial_bar_chart", "scatter_chart", "funnel_chart", "treemap", "area", "bar", "line", "scatter", "x_axis", "y_axis", "z_axis", "brush", @@ -351,12 +351,12 @@ def __getattr__(name: str) -> Type: """ # Custom alias handling if name == "animation": - module = importlib.import_module("nextpy.frontend.components.proxy") + module = importlib.import_module("nextpy.interfaces.web.react_components.proxy") return module.animation # Custom alias handling for 'unstyled' if name == "unstyled": - return importlib.import_module("nextpy.frontend.components.proxy.unstyled") + return importlib.import_module("nextpy.interfaces.web.react_components.proxy.unstyled") try: # Check for import of a module that is not in the mapping. diff --git a/nextpy/__init__.pyi b/nextpy/__init__.pyi index 27d4b44b..f2e65626 100644 --- a/nextpy/__init__.pyi +++ b/nextpy/__init__.pyi @@ -10,454 +10,454 @@ from nextpy import base as base from nextpy.base import Base as Base from nextpy.build import compiler as compiler from nextpy.build.compiler.utils import get_asset_path as get_asset_path -from nextpy.frontend.components import Accordion as Accordion -from nextpy.frontend.components import AccordionButton as AccordionButton -from nextpy.frontend.components import AccordionIcon as AccordionIcon -from nextpy.frontend.components import AccordionItem as AccordionItem -from nextpy.frontend.components import AccordionPanel as AccordionPanel -from nextpy.frontend.components import Alert as Alert -from nextpy.frontend.components import AlertDescription as AlertDescription -from nextpy.frontend.components import AlertDialog as AlertDialog -from nextpy.frontend.components import AlertDialogBody as AlertDialogBody -from nextpy.frontend.components import AlertDialogContent as AlertDialogContent -from nextpy.frontend.components import AlertDialogFooter as AlertDialogFooter -from nextpy.frontend.components import AlertDialogHeader as AlertDialogHeader -from nextpy.frontend.components import AlertDialogOverlay as AlertDialogOverlay -from nextpy.frontend.components import AlertIcon as AlertIcon -from nextpy.frontend.components import AlertTitle as AlertTitle -from nextpy.frontend.components import AspectRatio as AspectRatio -from nextpy.frontend.components import Audio as Audio -from nextpy.frontend.components import Avatar as Avatar -from nextpy.frontend.components import AvatarBadge as AvatarBadge -from nextpy.frontend.components import AvatarGroup as AvatarGroup -from nextpy.frontend.components import Badge as Badge -from nextpy.frontend.components import Box as Box -from nextpy.frontend.components import Breadcrumb as Breadcrumb -from nextpy.frontend.components import BreadcrumbItem as BreadcrumbItem -from nextpy.frontend.components import BreadcrumbLink as BreadcrumbLink -from nextpy.frontend.components import BreadcrumbSeparator as BreadcrumbSeparator -from nextpy.frontend.components import Button as Button -from nextpy.frontend.components import ButtonGroup as ButtonGroup -from nextpy.frontend.components import Card as Card -from nextpy.frontend.components import CardBody as CardBody -from nextpy.frontend.components import CardFooter as CardFooter -from nextpy.frontend.components import CardHeader as CardHeader -from nextpy.frontend.components import Center as Center -from nextpy.frontend.components import Checkbox as Checkbox -from nextpy.frontend.components import CheckboxGroup as CheckboxGroup -from nextpy.frontend.components import CircularProgress as CircularProgress -from nextpy.frontend.components import CircularProgressLabel as CircularProgressLabel -from nextpy.frontend.components import Circle as Circle -from nextpy.frontend.components import Code as Code -from nextpy.frontend.components import CodeBlock as CodeBlock -from nextpy.frontend.components import Collapse as Collapse -from nextpy.frontend.components import ColorModeButton as ColorModeButton -from nextpy.frontend.components import ColorModeIcon as ColorModeIcon -from nextpy.frontend.components import ColorModeSwitch as ColorModeSwitch -from nextpy.frontend.components import Component as Component -from nextpy.frontend.components import Cond as Cond -from nextpy.frontend.components import ConnectionBanner as ConnectionBanner -from nextpy.frontend.components import ConnectionModal as ConnectionModal -from nextpy.frontend.components import Container as Container -from nextpy.frontend.components import DataTable as DataTable -from nextpy.frontend.components import DataEditor as DataEditor -from nextpy.frontend.components import DataEditorTheme as DataEditorTheme -from nextpy.frontend.components import DatePicker as DatePicker -from nextpy.frontend.components import DateTimePicker as DateTimePicker -from nextpy.frontend.components import DebounceInput as DebounceInput -from nextpy.frontend.components import Divider as Divider -from nextpy.frontend.components import Drawer as Drawer -from nextpy.frontend.components import DrawerBody as DrawerBody -from nextpy.frontend.components import DrawerCloseButton as DrawerCloseButton -from nextpy.frontend.components import DrawerContent as DrawerContent -from nextpy.frontend.components import DrawerFooter as DrawerFooter -from nextpy.frontend.components import DrawerHeader as DrawerHeader -from nextpy.frontend.components import DrawerOverlay as DrawerOverlay -from nextpy.frontend.components import Editable as Editable -from nextpy.frontend.components import EditableInput as EditableInput -from nextpy.frontend.components import EditablePreview as EditablePreview -from nextpy.frontend.components import EditableTextarea as EditableTextarea -from nextpy.frontend.components import Editor as Editor -from nextpy.frontend.components import Email as Email -from nextpy.frontend.components import Fade as Fade -from nextpy.frontend.components import Flex as Flex -from nextpy.frontend.components import Foreach as Foreach -from nextpy.frontend.components import Form as Form -from nextpy.frontend.components import FormControl as FormControl -from nextpy.frontend.components import FormErrorMessage as FormErrorMessage -from nextpy.frontend.components import FormHelperText as FormHelperText -from nextpy.frontend.components import FormLabel as FormLabel -from nextpy.frontend.components import Fragment as Fragment -from nextpy.frontend.components import Grid as Grid -from nextpy.frontend.components import GridItem as GridItem -from nextpy.frontend.components import Heading as Heading -from nextpy.frontend.components import Highlight as Highlight -from nextpy.frontend.components import Hstack as Hstack -from nextpy.frontend.components import Html as Html -from nextpy.frontend.components import Icon as Icon -from nextpy.frontend.components import IconButton as IconButton -from nextpy.frontend.components import Image as Image -from nextpy.frontend.components import Input as Input -from nextpy.frontend.components import InputGroup as InputGroup -from nextpy.frontend.components import InputLeftAddon as InputLeftAddon -from nextpy.frontend.components import InputLeftElement as InputLeftElement -from nextpy.frontend.components import InputRightAddon as InputRightAddon -from nextpy.frontend.components import InputRightElement as InputRightElement -from nextpy.frontend.components import Kbd as Kbd -from nextpy.frontend.components import Link as Link -from nextpy.frontend.components import LinkBox as LinkBox -from nextpy.frontend.components import LinkOverlay as LinkOverlay -from nextpy.frontend.components import List as List -from nextpy.frontend.components import ListItem as ListItem -from nextpy.frontend.components import Markdown as Markdown -from nextpy.frontend.components import Match as Match -from nextpy.frontend.components import Menu as Menu -from nextpy.frontend.components import MenuButton as MenuButton -from nextpy.frontend.components import MenuDivider as MenuDivider -from nextpy.frontend.components import MenuGroup as MenuGroup -from nextpy.frontend.components import MenuItem as MenuItem -from nextpy.frontend.components import MenuItemOption as MenuItemOption -from nextpy.frontend.components import MenuList as MenuList -from nextpy.frontend.components import MenuOptionGroup as MenuOptionGroup -from nextpy.frontend.components import Modal as Modal -from nextpy.frontend.components import ModalBody as ModalBody -from nextpy.frontend.components import ModalCloseButton as ModalCloseButton -from nextpy.frontend.components import ModalContent as ModalContent -from nextpy.frontend.components import ModalFooter as ModalFooter -from nextpy.frontend.components import ModalHeader as ModalHeader -from nextpy.frontend.components import ModalOverlay as ModalOverlay -from nextpy.frontend.components import Moment as Moment -from nextpy.frontend.components import MultiSelect as MultiSelect -from nextpy.frontend.components import MultiSelectOption as MultiSelectOption -from nextpy.frontend.components import NextLink as NextLink -from nextpy.frontend.components import NumberDecrementStepper as NumberDecrementStepper -from nextpy.frontend.components import NumberIncrementStepper as NumberIncrementStepper -from nextpy.frontend.components import NumberInput as NumberInput -from nextpy.frontend.components import NumberInputField as NumberInputField -from nextpy.frontend.components import NumberInputStepper as NumberInputStepper -from nextpy.frontend.components import Option as Option -from nextpy.frontend.components import OrderedList as OrderedList -from nextpy.frontend.components import Password as Password -from nextpy.frontend.components import PinInput as PinInput -from nextpy.frontend.components import PinInputField as PinInputField -from nextpy.frontend.components import Plotly as Plotly -from nextpy.frontend.components import Popover as Popover -from nextpy.frontend.components import PopoverAnchor as PopoverAnchor -from nextpy.frontend.components import PopoverArrow as PopoverArrow -from nextpy.frontend.components import PopoverBody as PopoverBody -from nextpy.frontend.components import PopoverCloseButton as PopoverCloseButton -from nextpy.frontend.components import PopoverContent as PopoverContent -from nextpy.frontend.components import PopoverFooter as PopoverFooter -from nextpy.frontend.components import PopoverHeader as PopoverHeader -from nextpy.frontend.components import PopoverTrigger as PopoverTrigger -from nextpy.frontend.components import Progress as Progress -from nextpy.frontend.components import Radio as Radio -from nextpy.frontend.components import RadioGroup as RadioGroup -from nextpy.frontend.components import RangeSlider as RangeSlider -from nextpy.frontend.components import RangeSliderFilledTrack as RangeSliderFilledTrack -from nextpy.frontend.components import RangeSliderThumb as RangeSliderThumb -from nextpy.frontend.components import RangeSliderTrack as RangeSliderTrack -from nextpy.frontend.components import ResponsiveGrid as ResponsiveGrid -from nextpy.frontend.components import ScaleFade as ScaleFade -from nextpy.frontend.components import Script as Script -from nextpy.frontend.components import Select as Select -from nextpy.frontend.components import Skeleton as Skeleton -from nextpy.frontend.components import SkeletonCircle as SkeletonCircle -from nextpy.frontend.components import SkeletonText as SkeletonText -from nextpy.frontend.components import Slide as Slide -from nextpy.frontend.components import SlideFade as SlideFade -from nextpy.frontend.components import Slider as Slider -from nextpy.frontend.components import SliderFilledTrack as SliderFilledTrack -from nextpy.frontend.components import SliderMark as SliderMark -from nextpy.frontend.components import SliderThumb as SliderThumb -from nextpy.frontend.components import SliderTrack as SliderTrack -from nextpy.frontend.components import Spacer as Spacer -from nextpy.frontend.components import Span as Span -from nextpy.frontend.components import Spinner as Spinner -from nextpy.frontend.components import Square as Square -from nextpy.frontend.components import Stack as Stack -from nextpy.frontend.components import Stat as Stat -from nextpy.frontend.components import StatArrow as StatArrow -from nextpy.frontend.components import StatGroup as StatGroup -from nextpy.frontend.components import StatHelpText as StatHelpText -from nextpy.frontend.components import StatLabel as StatLabel -from nextpy.frontend.components import StatNumber as StatNumber -from nextpy.frontend.components import Step as Step -from nextpy.frontend.components import StepDescription as StepDescription -from nextpy.frontend.components import StepIcon as StepIcon -from nextpy.frontend.components import StepIndicator as StepIndicator -from nextpy.frontend.components import StepNumber as StepNumber -from nextpy.frontend.components import StepSeparator as StepSeparator -from nextpy.frontend.components import StepStatus as StepStatus -from nextpy.frontend.components import StepTitle as StepTitle -from nextpy.frontend.components import Stepper as Stepper -from nextpy.frontend.components import Switch as Switch -from nextpy.frontend.components import Tab as Tab -from nextpy.frontend.components import TabList as TabList -from nextpy.frontend.components import TabPanel as TabPanel -from nextpy.frontend.components import TabPanels as TabPanels -from nextpy.frontend.components import Table as Table -from nextpy.frontend.components import TableCaption as TableCaption -from nextpy.frontend.components import TableContainer as TableContainer -from nextpy.frontend.components import Tabs as Tabs -from nextpy.frontend.components import Tag as Tag -from nextpy.frontend.components import TagCloseButton as TagCloseButton -from nextpy.frontend.components import TagLabel as TagLabel -from nextpy.frontend.components import TagLeftIcon as TagLeftIcon -from nextpy.frontend.components import TagRightIcon as TagRightIcon -from nextpy.frontend.components import Tbody as Tbody -from nextpy.frontend.components import Td as Td -from nextpy.frontend.components import Text as Text -from nextpy.frontend.components import TextArea as TextArea -from nextpy.frontend.components import Tfoot as Tfoot -from nextpy.frontend.components import Th as Th -from nextpy.frontend.components import Thead as Thead -from nextpy.frontend.components import Tooltip as Tooltip -from nextpy.frontend.components import Tr as Tr -from nextpy.frontend.components import UnorderedList as UnorderedList -from nextpy.frontend.components import Upload as Upload -from nextpy.frontend.components import Video as Video -from nextpy.frontend.components import VisuallyHidden as VisuallyHidden -from nextpy.frontend.components import Vstack as Vstack -from nextpy.frontend.components import Wrap as Wrap -from nextpy.frontend.components import WrapItem as WrapItem -from nextpy.frontend.components import accordion as accordion -from nextpy.frontend.components import accordion_button as accordion_button -from nextpy.frontend.components import accordion_icon as accordion_icon -from nextpy.frontend.components import accordion_item as accordion_item -from nextpy.frontend.components import accordion_panel as accordion_panel -from nextpy.frontend.components import alert as alert -from nextpy.frontend.components import alert_description as alert_description -from nextpy.frontend.components import alert_dialog as alert_dialog -from nextpy.frontend.components import alert_dialog_body as alert_dialog_body -from nextpy.frontend.components import alert_dialog_content as alert_dialog_content -from nextpy.frontend.components import alert_dialog_footer as alert_dialog_footer -from nextpy.frontend.components import alert_dialog_header as alert_dialog_header -from nextpy.frontend.components import alert_dialog_overlay as alert_dialog_overlay -from nextpy.frontend.components import alert_icon as alert_icon -from nextpy.frontend.components import alert_title as alert_title -from nextpy.frontend.components import aspect_ratio as aspect_ratio -from nextpy.frontend.components import audio as audio -from nextpy.frontend.components import avatar as avatar -from nextpy.frontend.components import avatar_badge as avatar_badge -from nextpy.frontend.components import avatar_group as avatar_group -from nextpy.frontend.components import badge as badge -from nextpy.frontend.components import box as box -from nextpy.frontend.components import breadcrumb as breadcrumb -from nextpy.frontend.components import breadcrumb_item as breadcrumb_item -from nextpy.frontend.components import breadcrumb_link as breadcrumb_link -from nextpy.frontend.components import breadcrumb_separator as breadcrumb_separator -from nextpy.frontend.components import button as button -from nextpy.frontend.components import button_group as button_group -from nextpy.frontend.components import card as card -from nextpy.frontend.components import card_body as card_body -from nextpy.frontend.components import card_footer as card_footer -from nextpy.frontend.components import card_header as card_header -from nextpy.frontend.components import center as center -from nextpy.frontend.components import checkbox as checkbox -from nextpy.frontend.components import checkbox_group as checkbox_group -from nextpy.frontend.components import circular_progress as circular_progress -from nextpy.frontend.components import ( +from nextpy.interfaces.web.react_components import Accordion as Accordion +from nextpy.interfaces.web.react_components import AccordionButton as AccordionButton +from nextpy.interfaces.web.react_components import AccordionIcon as AccordionIcon +from nextpy.interfaces.web.react_components import AccordionItem as AccordionItem +from nextpy.interfaces.web.react_components import AccordionPanel as AccordionPanel +from nextpy.interfaces.web.react_components import Alert as Alert +from nextpy.interfaces.web.react_components import AlertDescription as AlertDescription +from nextpy.interfaces.web.react_components import AlertDialog as AlertDialog +from nextpy.interfaces.web.react_components import AlertDialogBody as AlertDialogBody +from nextpy.interfaces.web.react_components import AlertDialogContent as AlertDialogContent +from nextpy.interfaces.web.react_components import AlertDialogFooter as AlertDialogFooter +from nextpy.interfaces.web.react_components import AlertDialogHeader as AlertDialogHeader +from nextpy.interfaces.web.react_components import AlertDialogOverlay as AlertDialogOverlay +from nextpy.interfaces.web.react_components import AlertIcon as AlertIcon +from nextpy.interfaces.web.react_components import AlertTitle as AlertTitle +from nextpy.interfaces.web.react_components import AspectRatio as AspectRatio +from nextpy.interfaces.web.react_components import Audio as Audio +from nextpy.interfaces.web.react_components import Avatar as Avatar +from nextpy.interfaces.web.react_components import AvatarBadge as AvatarBadge +from nextpy.interfaces.web.react_components import AvatarGroup as AvatarGroup +from nextpy.interfaces.web.react_components import Badge as Badge +from nextpy.interfaces.web.react_components import Box as Box +from nextpy.interfaces.web.react_components import Breadcrumb as Breadcrumb +from nextpy.interfaces.web.react_components import BreadcrumbItem as BreadcrumbItem +from nextpy.interfaces.web.react_components import BreadcrumbLink as BreadcrumbLink +from nextpy.interfaces.web.react_components import BreadcrumbSeparator as BreadcrumbSeparator +from nextpy.interfaces.web.react_components import Button as Button +from nextpy.interfaces.web.react_components import ButtonGroup as ButtonGroup +from nextpy.interfaces.web.react_components import Card as Card +from nextpy.interfaces.web.react_components import CardBody as CardBody +from nextpy.interfaces.web.react_components import CardFooter as CardFooter +from nextpy.interfaces.web.react_components import CardHeader as CardHeader +from nextpy.interfaces.web.react_components import Center as Center +from nextpy.interfaces.web.react_components import Checkbox as Checkbox +from nextpy.interfaces.web.react_components import CheckboxGroup as CheckboxGroup +from nextpy.interfaces.web.react_components import CircularProgress as CircularProgress +from nextpy.interfaces.web.react_components import CircularProgressLabel as CircularProgressLabel +from nextpy.interfaces.web.react_components import Circle as Circle +from nextpy.interfaces.web.react_components import Code as Code +from nextpy.interfaces.web.react_components import CodeBlock as CodeBlock +from nextpy.interfaces.web.react_components import Collapse as Collapse +from nextpy.interfaces.web.react_components import ColorModeButton as ColorModeButton +from nextpy.interfaces.web.react_components import ColorModeIcon as ColorModeIcon +from nextpy.interfaces.web.react_components import ColorModeSwitch as ColorModeSwitch +from nextpy.interfaces.web.react_components import Component as Component +from nextpy.interfaces.web.react_components import Cond as Cond +from nextpy.interfaces.web.react_components import ConnectionBanner as ConnectionBanner +from nextpy.interfaces.web.react_components import ConnectionModal as ConnectionModal +from nextpy.interfaces.web.react_components import Container as Container +from nextpy.interfaces.web.react_components import DataTable as DataTable +from nextpy.interfaces.web.react_components import DataEditor as DataEditor +from nextpy.interfaces.web.react_components import DataEditorTheme as DataEditorTheme +from nextpy.interfaces.web.react_components import DatePicker as DatePicker +from nextpy.interfaces.web.react_components import DateTimePicker as DateTimePicker +from nextpy.interfaces.web.react_components import DebounceInput as DebounceInput +from nextpy.interfaces.web.react_components import Divider as Divider +from nextpy.interfaces.web.react_components import Drawer as Drawer +from nextpy.interfaces.web.react_components import DrawerBody as DrawerBody +from nextpy.interfaces.web.react_components import DrawerCloseButton as DrawerCloseButton +from nextpy.interfaces.web.react_components import DrawerContent as DrawerContent +from nextpy.interfaces.web.react_components import DrawerFooter as DrawerFooter +from nextpy.interfaces.web.react_components import DrawerHeader as DrawerHeader +from nextpy.interfaces.web.react_components import DrawerOverlay as DrawerOverlay +from nextpy.interfaces.web.react_components import Editable as Editable +from nextpy.interfaces.web.react_components import EditableInput as EditableInput +from nextpy.interfaces.web.react_components import EditablePreview as EditablePreview +from nextpy.interfaces.web.react_components import EditableTextarea as EditableTextarea +from nextpy.interfaces.web.react_components import Editor as Editor +from nextpy.interfaces.web.react_components import Email as Email +from nextpy.interfaces.web.react_components import Fade as Fade +from nextpy.interfaces.web.react_components import Flex as Flex +from nextpy.interfaces.web.react_components import Foreach as Foreach +from nextpy.interfaces.web.react_components import Form as Form +from nextpy.interfaces.web.react_components import FormControl as FormControl +from nextpy.interfaces.web.react_components import FormErrorMessage as FormErrorMessage +from nextpy.interfaces.web.react_components import FormHelperText as FormHelperText +from nextpy.interfaces.web.react_components import FormLabel as FormLabel +from nextpy.interfaces.web.react_components import Fragment as Fragment +from nextpy.interfaces.web.react_components import Grid as Grid +from nextpy.interfaces.web.react_components import GridItem as GridItem +from nextpy.interfaces.web.react_components import Heading as Heading +from nextpy.interfaces.web.react_components import Highlight as Highlight +from nextpy.interfaces.web.react_components import Hstack as Hstack +from nextpy.interfaces.web.react_components import Html as Html +from nextpy.interfaces.web.react_components import Icon as Icon +from nextpy.interfaces.web.react_components import IconButton as IconButton +from nextpy.interfaces.web.react_components import Image as Image +from nextpy.interfaces.web.react_components import Input as Input +from nextpy.interfaces.web.react_components import InputGroup as InputGroup +from nextpy.interfaces.web.react_components import InputLeftAddon as InputLeftAddon +from nextpy.interfaces.web.react_components import InputLeftElement as InputLeftElement +from nextpy.interfaces.web.react_components import InputRightAddon as InputRightAddon +from nextpy.interfaces.web.react_components import InputRightElement as InputRightElement +from nextpy.interfaces.web.react_components import Kbd as Kbd +from nextpy.interfaces.web.react_components import Link as Link +from nextpy.interfaces.web.react_components import LinkBox as LinkBox +from nextpy.interfaces.web.react_components import LinkOverlay as LinkOverlay +from nextpy.interfaces.web.react_components import List as List +from nextpy.interfaces.web.react_components import ListItem as ListItem +from nextpy.interfaces.web.react_components import Markdown as Markdown +from nextpy.interfaces.web.react_components import Match as Match +from nextpy.interfaces.web.react_components import Menu as Menu +from nextpy.interfaces.web.react_components import MenuButton as MenuButton +from nextpy.interfaces.web.react_components import MenuDivider as MenuDivider +from nextpy.interfaces.web.react_components import MenuGroup as MenuGroup +from nextpy.interfaces.web.react_components import MenuItem as MenuItem +from nextpy.interfaces.web.react_components import MenuItemOption as MenuItemOption +from nextpy.interfaces.web.react_components import MenuList as MenuList +from nextpy.interfaces.web.react_components import MenuOptionGroup as MenuOptionGroup +from nextpy.interfaces.web.react_components import Modal as Modal +from nextpy.interfaces.web.react_components import ModalBody as ModalBody +from nextpy.interfaces.web.react_components import ModalCloseButton as ModalCloseButton +from nextpy.interfaces.web.react_components import ModalContent as ModalContent +from nextpy.interfaces.web.react_components import ModalFooter as ModalFooter +from nextpy.interfaces.web.react_components import ModalHeader as ModalHeader +from nextpy.interfaces.web.react_components import ModalOverlay as ModalOverlay +from nextpy.interfaces.web.react_components import Moment as Moment +from nextpy.interfaces.web.react_components import MultiSelect as MultiSelect +from nextpy.interfaces.web.react_components import MultiSelectOption as MultiSelectOption +from nextpy.interfaces.web.react_components import NextLink as NextLink +from nextpy.interfaces.web.react_components import NumberDecrementStepper as NumberDecrementStepper +from nextpy.interfaces.web.react_components import NumberIncrementStepper as NumberIncrementStepper +from nextpy.interfaces.web.react_components import NumberInput as NumberInput +from nextpy.interfaces.web.react_components import NumberInputField as NumberInputField +from nextpy.interfaces.web.react_components import NumberInputStepper as NumberInputStepper +from nextpy.interfaces.web.react_components import Option as Option +from nextpy.interfaces.web.react_components import OrderedList as OrderedList +from nextpy.interfaces.web.react_components import Password as Password +from nextpy.interfaces.web.react_components import PinInput as PinInput +from nextpy.interfaces.web.react_components import PinInputField as PinInputField +from nextpy.interfaces.web.react_components import Plotly as Plotly +from nextpy.interfaces.web.react_components import Popover as Popover +from nextpy.interfaces.web.react_components import PopoverAnchor as PopoverAnchor +from nextpy.interfaces.web.react_components import PopoverArrow as PopoverArrow +from nextpy.interfaces.web.react_components import PopoverBody as PopoverBody +from nextpy.interfaces.web.react_components import PopoverCloseButton as PopoverCloseButton +from nextpy.interfaces.web.react_components import PopoverContent as PopoverContent +from nextpy.interfaces.web.react_components import PopoverFooter as PopoverFooter +from nextpy.interfaces.web.react_components import PopoverHeader as PopoverHeader +from nextpy.interfaces.web.react_components import PopoverTrigger as PopoverTrigger +from nextpy.interfaces.web.react_components import Progress as Progress +from nextpy.interfaces.web.react_components import Radio as Radio +from nextpy.interfaces.web.react_components import RadioGroup as RadioGroup +from nextpy.interfaces.web.react_components import RangeSlider as RangeSlider +from nextpy.interfaces.web.react_components import RangeSliderFilledTrack as RangeSliderFilledTrack +from nextpy.interfaces.web.react_components import RangeSliderThumb as RangeSliderThumb +from nextpy.interfaces.web.react_components import RangeSliderTrack as RangeSliderTrack +from nextpy.interfaces.web.react_components import ResponsiveGrid as ResponsiveGrid +from nextpy.interfaces.web.react_components import ScaleFade as ScaleFade +from nextpy.interfaces.web.react_components import Script as Script +from nextpy.interfaces.web.react_components import Select as Select +from nextpy.interfaces.web.react_components import Skeleton as Skeleton +from nextpy.interfaces.web.react_components import SkeletonCircle as SkeletonCircle +from nextpy.interfaces.web.react_components import SkeletonText as SkeletonText +from nextpy.interfaces.web.react_components import Slide as Slide +from nextpy.interfaces.web.react_components import SlideFade as SlideFade +from nextpy.interfaces.web.react_components import Slider as Slider +from nextpy.interfaces.web.react_components import SliderFilledTrack as SliderFilledTrack +from nextpy.interfaces.web.react_components import SliderMark as SliderMark +from nextpy.interfaces.web.react_components import SliderThumb as SliderThumb +from nextpy.interfaces.web.react_components import SliderTrack as SliderTrack +from nextpy.interfaces.web.react_components import Spacer as Spacer +from nextpy.interfaces.web.react_components import Span as Span +from nextpy.interfaces.web.react_components import Spinner as Spinner +from nextpy.interfaces.web.react_components import Square as Square +from nextpy.interfaces.web.react_components import Stack as Stack +from nextpy.interfaces.web.react_components import Stat as Stat +from nextpy.interfaces.web.react_components import StatArrow as StatArrow +from nextpy.interfaces.web.react_components import StatGroup as StatGroup +from nextpy.interfaces.web.react_components import StatHelpText as StatHelpText +from nextpy.interfaces.web.react_components import StatLabel as StatLabel +from nextpy.interfaces.web.react_components import StatNumber as StatNumber +from nextpy.interfaces.web.react_components import Step as Step +from nextpy.interfaces.web.react_components import StepDescription as StepDescription +from nextpy.interfaces.web.react_components import StepIcon as StepIcon +from nextpy.interfaces.web.react_components import StepIndicator as StepIndicator +from nextpy.interfaces.web.react_components import StepNumber as StepNumber +from nextpy.interfaces.web.react_components import StepSeparator as StepSeparator +from nextpy.interfaces.web.react_components import StepStatus as StepStatus +from nextpy.interfaces.web.react_components import StepTitle as StepTitle +from nextpy.interfaces.web.react_components import Stepper as Stepper +from nextpy.interfaces.web.react_components import Switch as Switch +from nextpy.interfaces.web.react_components import Tab as Tab +from nextpy.interfaces.web.react_components import TabList as TabList +from nextpy.interfaces.web.react_components import TabPanel as TabPanel +from nextpy.interfaces.web.react_components import TabPanels as TabPanels +from nextpy.interfaces.web.react_components import Table as Table +from nextpy.interfaces.web.react_components import TableCaption as TableCaption +from nextpy.interfaces.web.react_components import TableContainer as TableContainer +from nextpy.interfaces.web.react_components import Tabs as Tabs +from nextpy.interfaces.web.react_components import Tag as Tag +from nextpy.interfaces.web.react_components import TagCloseButton as TagCloseButton +from nextpy.interfaces.web.react_components import TagLabel as TagLabel +from nextpy.interfaces.web.react_components import TagLeftIcon as TagLeftIcon +from nextpy.interfaces.web.react_components import TagRightIcon as TagRightIcon +from nextpy.interfaces.web.react_components import Tbody as Tbody +from nextpy.interfaces.web.react_components import Td as Td +from nextpy.interfaces.web.react_components import Text as Text +from nextpy.interfaces.web.react_components import TextArea as TextArea +from nextpy.interfaces.web.react_components import Tfoot as Tfoot +from nextpy.interfaces.web.react_components import Th as Th +from nextpy.interfaces.web.react_components import Thead as Thead +from nextpy.interfaces.web.react_components import Tooltip as Tooltip +from nextpy.interfaces.web.react_components import Tr as Tr +from nextpy.interfaces.web.react_components import UnorderedList as UnorderedList +from nextpy.interfaces.web.react_components import Upload as Upload +from nextpy.interfaces.web.react_components import Video as Video +from nextpy.interfaces.web.react_components import VisuallyHidden as VisuallyHidden +from nextpy.interfaces.web.react_components import Vstack as Vstack +from nextpy.interfaces.web.react_components import Wrap as Wrap +from nextpy.interfaces.web.react_components import WrapItem as WrapItem +from nextpy.interfaces.web.react_components import accordion as accordion +from nextpy.interfaces.web.react_components import accordion_button as accordion_button +from nextpy.interfaces.web.react_components import accordion_icon as accordion_icon +from nextpy.interfaces.web.react_components import accordion_item as accordion_item +from nextpy.interfaces.web.react_components import accordion_panel as accordion_panel +from nextpy.interfaces.web.react_components import alert as alert +from nextpy.interfaces.web.react_components import alert_description as alert_description +from nextpy.interfaces.web.react_components import alert_dialog as alert_dialog +from nextpy.interfaces.web.react_components import alert_dialog_body as alert_dialog_body +from nextpy.interfaces.web.react_components import alert_dialog_content as alert_dialog_content +from nextpy.interfaces.web.react_components import alert_dialog_footer as alert_dialog_footer +from nextpy.interfaces.web.react_components import alert_dialog_header as alert_dialog_header +from nextpy.interfaces.web.react_components import alert_dialog_overlay as alert_dialog_overlay +from nextpy.interfaces.web.react_components import alert_icon as alert_icon +from nextpy.interfaces.web.react_components import alert_title as alert_title +from nextpy.interfaces.web.react_components import aspect_ratio as aspect_ratio +from nextpy.interfaces.web.react_components import audio as audio +from nextpy.interfaces.web.react_components import avatar as avatar +from nextpy.interfaces.web.react_components import avatar_badge as avatar_badge +from nextpy.interfaces.web.react_components import avatar_group as avatar_group +from nextpy.interfaces.web.react_components import badge as badge +from nextpy.interfaces.web.react_components import box as box +from nextpy.interfaces.web.react_components import breadcrumb as breadcrumb +from nextpy.interfaces.web.react_components import breadcrumb_item as breadcrumb_item +from nextpy.interfaces.web.react_components import breadcrumb_link as breadcrumb_link +from nextpy.interfaces.web.react_components import breadcrumb_separator as breadcrumb_separator +from nextpy.interfaces.web.react_components import button as button +from nextpy.interfaces.web.react_components import button_group as button_group +from nextpy.interfaces.web.react_components import card as card +from nextpy.interfaces.web.react_components import card_body as card_body +from nextpy.interfaces.web.react_components import card_footer as card_footer +from nextpy.interfaces.web.react_components import card_header as card_header +from nextpy.interfaces.web.react_components import center as center +from nextpy.interfaces.web.react_components import checkbox as checkbox +from nextpy.interfaces.web.react_components import checkbox_group as checkbox_group +from nextpy.interfaces.web.react_components import circular_progress as circular_progress +from nextpy.interfaces.web.react_components import ( circular_progress_label as circular_progress_label, ) -from nextpy.frontend.components import circle as circle -from nextpy.frontend.components import code as code -from nextpy.frontend.components import code_block as code_block -from nextpy.frontend.components import collapse as collapse -from nextpy.frontend.components import color_mode_button as color_mode_button -from nextpy.frontend.components import color_mode_icon as color_mode_icon -from nextpy.frontend.components import color_mode_switch as color_mode_switch -from nextpy.frontend.components import component as component -from nextpy.frontend.components import cond as cond -from nextpy.frontend.components import connection_banner as connection_banner -from nextpy.frontend.components import connection_modal as connection_modal -from nextpy.frontend.components import container as container -from nextpy.frontend.components import data_table as data_table -from nextpy.frontend.components import data_editor as data_editor -from nextpy.frontend.components import data_editor_theme as data_editor_theme -from nextpy.frontend.components import date_picker as date_picker -from nextpy.frontend.components import date_time_picker as date_time_picker -from nextpy.frontend.components import debounce_input as debounce_input -from nextpy.frontend.components import divider as divider -from nextpy.frontend.components import drawer as drawer -from nextpy.frontend.components import drawer_body as drawer_body -from nextpy.frontend.components import drawer_close_button as drawer_close_button -from nextpy.frontend.components import drawer_content as drawer_content -from nextpy.frontend.components import drawer_footer as drawer_footer -from nextpy.frontend.components import drawer_header as drawer_header -from nextpy.frontend.components import drawer_overlay as drawer_overlay -from nextpy.frontend.components import editable as editable -from nextpy.frontend.components import editable_input as editable_input -from nextpy.frontend.components import editable_preview as editable_preview -from nextpy.frontend.components import editable_textarea as editable_textarea -from nextpy.frontend.components import editor as editor -from nextpy.frontend.components import email as email -from nextpy.frontend.components import fade as fade -from nextpy.frontend.components import flex as flex -from nextpy.frontend.components import foreach as foreach -from nextpy.frontend.components import form as form -from nextpy.frontend.components import form_control as form_control -from nextpy.frontend.components import form_error_message as form_error_message -from nextpy.frontend.components import form_helper_text as form_helper_text -from nextpy.frontend.components import form_label as form_label -from nextpy.frontend.components import fragment as fragment -from nextpy.frontend.components import grid as grid -from nextpy.frontend.components import grid_item as grid_item -from nextpy.frontend.components import heading as heading -from nextpy.frontend.components import highlight as highlight -from nextpy.frontend.components import hstack as hstack -from nextpy.frontend.components import html as html -from nextpy.frontend.components import icon as icon -from nextpy.frontend.components import icon_button as icon_button -from nextpy.frontend.components import image as image -from nextpy.frontend.components import input as input -from nextpy.frontend.components import input_group as input_group -from nextpy.frontend.components import input_left_addon as input_left_addon -from nextpy.frontend.components import input_left_element as input_left_element -from nextpy.frontend.components import input_right_addon as input_right_addon -from nextpy.frontend.components import input_right_element as input_right_element -from nextpy.frontend.components import kbd as kbd -from nextpy.frontend.components import link as link -from nextpy.frontend.components import link_box as link_box -from nextpy.frontend.components import link_overlay as link_overlay -from nextpy.frontend.components import list as list -from nextpy.frontend.components import list_item as list_item -from nextpy.frontend.components import markdown as markdown -from nextpy.frontend.components import match as match -from nextpy.frontend.components import menu as menu -from nextpy.frontend.components import menu_button as menu_button -from nextpy.frontend.components import menu_divider as menu_divider -from nextpy.frontend.components import menu_group as menu_group -from nextpy.frontend.components import menu_item as menu_item -from nextpy.frontend.components import menu_item_option as menu_item_option -from nextpy.frontend.components import menu_list as menu_list -from nextpy.frontend.components import menu_option_group as menu_option_group -from nextpy.frontend.components import modal as modal -from nextpy.frontend.components import modal_body as modal_body -from nextpy.frontend.components import modal_close_button as modal_close_button -from nextpy.frontend.components import modal_content as modal_content -from nextpy.frontend.components import modal_footer as modal_footer -from nextpy.frontend.components import modal_header as modal_header -from nextpy.frontend.components import modal_overlay as modal_overlay -from nextpy.frontend.components import moment as moment -from nextpy.frontend.components import multi_select as multi_select -from nextpy.frontend.components import multi_select_option as multi_select_option -from nextpy.frontend.components import next_link as next_link -from nextpy.frontend.components import ( +from nextpy.interfaces.web.react_components import circle as circle +from nextpy.interfaces.web.react_components import code as code +from nextpy.interfaces.web.react_components import code_block as code_block +from nextpy.interfaces.web.react_components import collapse as collapse +from nextpy.interfaces.web.react_components import color_mode_button as color_mode_button +from nextpy.interfaces.web.react_components import color_mode_icon as color_mode_icon +from nextpy.interfaces.web.react_components import color_mode_switch as color_mode_switch +from nextpy.interfaces.web.react_components import component as component +from nextpy.interfaces.web.react_components import cond as cond +from nextpy.interfaces.web.react_components import connection_banner as connection_banner +from nextpy.interfaces.web.react_components import connection_modal as connection_modal +from nextpy.interfaces.web.react_components import container as container +from nextpy.interfaces.web.react_components import data_table as data_table +from nextpy.interfaces.web.react_components import data_editor as data_editor +from nextpy.interfaces.web.react_components import data_editor_theme as data_editor_theme +from nextpy.interfaces.web.react_components import date_picker as date_picker +from nextpy.interfaces.web.react_components import date_time_picker as date_time_picker +from nextpy.interfaces.web.react_components import debounce_input as debounce_input +from nextpy.interfaces.web.react_components import divider as divider +from nextpy.interfaces.web.react_components import drawer as drawer +from nextpy.interfaces.web.react_components import drawer_body as drawer_body +from nextpy.interfaces.web.react_components import drawer_close_button as drawer_close_button +from nextpy.interfaces.web.react_components import drawer_content as drawer_content +from nextpy.interfaces.web.react_components import drawer_footer as drawer_footer +from nextpy.interfaces.web.react_components import drawer_header as drawer_header +from nextpy.interfaces.web.react_components import drawer_overlay as drawer_overlay +from nextpy.interfaces.web.react_components import editable as editable +from nextpy.interfaces.web.react_components import editable_input as editable_input +from nextpy.interfaces.web.react_components import editable_preview as editable_preview +from nextpy.interfaces.web.react_components import editable_textarea as editable_textarea +from nextpy.interfaces.web.react_components import editor as editor +from nextpy.interfaces.web.react_components import email as email +from nextpy.interfaces.web.react_components import fade as fade +from nextpy.interfaces.web.react_components import flex as flex +from nextpy.interfaces.web.react_components import foreach as foreach +from nextpy.interfaces.web.react_components import form as form +from nextpy.interfaces.web.react_components import form_control as form_control +from nextpy.interfaces.web.react_components import form_error_message as form_error_message +from nextpy.interfaces.web.react_components import form_helper_text as form_helper_text +from nextpy.interfaces.web.react_components import form_label as form_label +from nextpy.interfaces.web.react_components import fragment as fragment +from nextpy.interfaces.web.react_components import grid as grid +from nextpy.interfaces.web.react_components import grid_item as grid_item +from nextpy.interfaces.web.react_components import heading as heading +from nextpy.interfaces.web.react_components import highlight as highlight +from nextpy.interfaces.web.react_components import hstack as hstack +from nextpy.interfaces.web.react_components import html as html +from nextpy.interfaces.web.react_components import icon as icon +from nextpy.interfaces.web.react_components import icon_button as icon_button +from nextpy.interfaces.web.react_components import image as image +from nextpy.interfaces.web.react_components import input as input +from nextpy.interfaces.web.react_components import input_group as input_group +from nextpy.interfaces.web.react_components import input_left_addon as input_left_addon +from nextpy.interfaces.web.react_components import input_left_element as input_left_element +from nextpy.interfaces.web.react_components import input_right_addon as input_right_addon +from nextpy.interfaces.web.react_components import input_right_element as input_right_element +from nextpy.interfaces.web.react_components import kbd as kbd +from nextpy.interfaces.web.react_components import link as link +from nextpy.interfaces.web.react_components import link_box as link_box +from nextpy.interfaces.web.react_components import link_overlay as link_overlay +from nextpy.interfaces.web.react_components import list as list +from nextpy.interfaces.web.react_components import list_item as list_item +from nextpy.interfaces.web.react_components import markdown as markdown +from nextpy.interfaces.web.react_components import match as match +from nextpy.interfaces.web.react_components import menu as menu +from nextpy.interfaces.web.react_components import menu_button as menu_button +from nextpy.interfaces.web.react_components import menu_divider as menu_divider +from nextpy.interfaces.web.react_components import menu_group as menu_group +from nextpy.interfaces.web.react_components import menu_item as menu_item +from nextpy.interfaces.web.react_components import menu_item_option as menu_item_option +from nextpy.interfaces.web.react_components import menu_list as menu_list +from nextpy.interfaces.web.react_components import menu_option_group as menu_option_group +from nextpy.interfaces.web.react_components import modal as modal +from nextpy.interfaces.web.react_components import modal_body as modal_body +from nextpy.interfaces.web.react_components import modal_close_button as modal_close_button +from nextpy.interfaces.web.react_components import modal_content as modal_content +from nextpy.interfaces.web.react_components import modal_footer as modal_footer +from nextpy.interfaces.web.react_components import modal_header as modal_header +from nextpy.interfaces.web.react_components import modal_overlay as modal_overlay +from nextpy.interfaces.web.react_components import moment as moment +from nextpy.interfaces.web.react_components import multi_select as multi_select +from nextpy.interfaces.web.react_components import multi_select_option as multi_select_option +from nextpy.interfaces.web.react_components import next_link as next_link +from nextpy.interfaces.web.react_components import ( number_decrement_stepper as number_decrement_stepper, ) -from nextpy.frontend.components import ( +from nextpy.interfaces.web.react_components import ( number_increment_stepper as number_increment_stepper, ) -from nextpy.frontend.components import number_input as number_input -from nextpy.frontend.components import number_input_field as number_input_field -from nextpy.frontend.components import number_input_stepper as number_input_stepper -from nextpy.frontend.components import option as option -from nextpy.frontend.components import ordered_list as ordered_list -from nextpy.frontend.components import password as password -from nextpy.frontend.components import pin_input as pin_input -from nextpy.frontend.components import pin_input_field as pin_input_field -from nextpy.frontend.components import plotly as plotly -from nextpy.frontend.components import popover as popover -from nextpy.frontend.components import popover_anchor as popover_anchor -from nextpy.frontend.components import popover_arrow as popover_arrow -from nextpy.frontend.components import popover_body as popover_body -from nextpy.frontend.components import popover_close_button as popover_close_button -from nextpy.frontend.components import popover_content as popover_content -from nextpy.frontend.components import popover_footer as popover_footer -from nextpy.frontend.components import popover_header as popover_header -from nextpy.frontend.components import popover_trigger as popover_trigger -from nextpy.frontend.components import progress as progress -from nextpy.frontend.components import radio as radio -from nextpy.frontend.components import radio_group as radio_group -from nextpy.frontend.components import range_slider as range_slider -from nextpy.frontend.components import ( +from nextpy.interfaces.web.react_components import number_input as number_input +from nextpy.interfaces.web.react_components import number_input_field as number_input_field +from nextpy.interfaces.web.react_components import number_input_stepper as number_input_stepper +from nextpy.interfaces.web.react_components import option as option +from nextpy.interfaces.web.react_components import ordered_list as ordered_list +from nextpy.interfaces.web.react_components import password as password +from nextpy.interfaces.web.react_components import pin_input as pin_input +from nextpy.interfaces.web.react_components import pin_input_field as pin_input_field +from nextpy.interfaces.web.react_components import plotly as plotly +from nextpy.interfaces.web.react_components import popover as popover +from nextpy.interfaces.web.react_components import popover_anchor as popover_anchor +from nextpy.interfaces.web.react_components import popover_arrow as popover_arrow +from nextpy.interfaces.web.react_components import popover_body as popover_body +from nextpy.interfaces.web.react_components import popover_close_button as popover_close_button +from nextpy.interfaces.web.react_components import popover_content as popover_content +from nextpy.interfaces.web.react_components import popover_footer as popover_footer +from nextpy.interfaces.web.react_components import popover_header as popover_header +from nextpy.interfaces.web.react_components import popover_trigger as popover_trigger +from nextpy.interfaces.web.react_components import progress as progress +from nextpy.interfaces.web.react_components import radio as radio +from nextpy.interfaces.web.react_components import radio_group as radio_group +from nextpy.interfaces.web.react_components import range_slider as range_slider +from nextpy.interfaces.web.react_components import ( range_slider_filled_track as range_slider_filled_track, ) -from nextpy.frontend.components import range_slider_thumb as range_slider_thumb -from nextpy.frontend.components import range_slider_track as range_slider_track -from nextpy.frontend.components import responsive_grid as responsive_grid -from nextpy.frontend.components import scale_fade as scale_fade -from nextpy.frontend.components import script as script -from nextpy.frontend.components import select as select -from nextpy.frontend.components import skeleton as skeleton -from nextpy.frontend.components import skeleton_circle as skeleton_circle -from nextpy.frontend.components import skeleton_text as skeleton_text -from nextpy.frontend.components import slide as slide -from nextpy.frontend.components import slide_fade as slide_fade -from nextpy.frontend.components import slider as slider -from nextpy.frontend.components import slider_filled_track as slider_filled_track -from nextpy.frontend.components import slider_mark as slider_mark -from nextpy.frontend.components import slider_thumb as slider_thumb -from nextpy.frontend.components import slider_track as slider_track -from nextpy.frontend.components import spacer as spacer -from nextpy.frontend.components import span as span -from nextpy.frontend.components import spinner as spinner -from nextpy.frontend.components import square as square -from nextpy.frontend.components import stack as stack -from nextpy.frontend.components import stat as stat -from nextpy.frontend.components import stat_arrow as stat_arrow -from nextpy.frontend.components import stat_group as stat_group -from nextpy.frontend.components import stat_help_text as stat_help_text -from nextpy.frontend.components import stat_label as stat_label -from nextpy.frontend.components import stat_number as stat_number -from nextpy.frontend.components import step as step -from nextpy.frontend.components import step_description as step_description -from nextpy.frontend.components import step_icon as step_icon -from nextpy.frontend.components import step_indicator as step_indicator -from nextpy.frontend.components import step_number as step_number -from nextpy.frontend.components import step_separator as step_separator -from nextpy.frontend.components import step_status as step_status -from nextpy.frontend.components import step_title as step_title -from nextpy.frontend.components import stepper as stepper -from nextpy.frontend.components import switch as switch -from nextpy.frontend.components import tab as tab -from nextpy.frontend.components import tab_list as tab_list -from nextpy.frontend.components import tab_panel as tab_panel -from nextpy.frontend.components import tab_panels as tab_panels -from nextpy.frontend.components import table as table -from nextpy.frontend.components import table_caption as table_caption -from nextpy.frontend.components import table_container as table_container -from nextpy.frontend.components import tabs as tabs -from nextpy.frontend.components import tag as tag -from nextpy.frontend.components import tag_close_button as tag_close_button -from nextpy.frontend.components import tag_label as tag_label -from nextpy.frontend.components import tag_left_icon as tag_left_icon -from nextpy.frontend.components import tag_right_icon as tag_right_icon -from nextpy.frontend.components import tbody as tbody -from nextpy.frontend.components import td as td -from nextpy.frontend.components import text as text -from nextpy.frontend.components import text_area as text_area -from nextpy.frontend.components import tfoot as tfoot -from nextpy.frontend.components import th as th -from nextpy.frontend.components import thead as thead -from nextpy.frontend.components import tooltip as tooltip -from nextpy.frontend.components import tr as tr -from nextpy.frontend.components import unordered_list as unordered_list -from nextpy.frontend.components import upload as upload -from nextpy.frontend.components import video as video -from nextpy.frontend.components import visually_hidden as visually_hidden -from nextpy.frontend.components import vstack as vstack -from nextpy.frontend.components import wrap as wrap -from nextpy.frontend.components import wrap_item as wrap_item -from nextpy.frontend.components import cancel_upload as cancel_upload -from nextpy.frontend import components as components -from nextpy.frontend.components import color_mode_cond as color_mode_cond -from nextpy.frontend.components import desktop_only as desktop_only -from nextpy.frontend.components import mobile_only as mobile_only -from nextpy.frontend.components import tablet_only as tablet_only -from nextpy.frontend.components import mobile_and_tablet as mobile_and_tablet -from nextpy.frontend.components import tablet_and_desktop as tablet_and_desktop -from nextpy.frontend.components import selected_files as selected_files -from nextpy.frontend.components import clear_selected_files as clear_selected_files -from nextpy.frontend.components import EditorButtonList as EditorButtonList -from nextpy.frontend.components import EditorOptions as EditorOptions -from nextpy.frontend.components import NoSSRComponent as NoSSRComponent -from nextpy.frontend.components import chakra as chakra -from nextpy.frontend.components import next as next -from nextpy.frontend.components.component import memo as memo -from nextpy.frontend.components import recharts as recharts -from nextpy.frontend.components.moment.moment import MomentDelta as MomentDelta +from nextpy.interfaces.web.react_components import range_slider_thumb as range_slider_thumb +from nextpy.interfaces.web.react_components import range_slider_track as range_slider_track +from nextpy.interfaces.web.react_components import responsive_grid as responsive_grid +from nextpy.interfaces.web.react_components import scale_fade as scale_fade +from nextpy.interfaces.web.react_components import script as script +from nextpy.interfaces.web.react_components import select as select +from nextpy.interfaces.web.react_components import skeleton as skeleton +from nextpy.interfaces.web.react_components import skeleton_circle as skeleton_circle +from nextpy.interfaces.web.react_components import skeleton_text as skeleton_text +from nextpy.interfaces.web.react_components import slide as slide +from nextpy.interfaces.web.react_components import slide_fade as slide_fade +from nextpy.interfaces.web.react_components import slider as slider +from nextpy.interfaces.web.react_components import slider_filled_track as slider_filled_track +from nextpy.interfaces.web.react_components import slider_mark as slider_mark +from nextpy.interfaces.web.react_components import slider_thumb as slider_thumb +from nextpy.interfaces.web.react_components import slider_track as slider_track +from nextpy.interfaces.web.react_components import spacer as spacer +from nextpy.interfaces.web.react_components import span as span +from nextpy.interfaces.web.react_components import spinner as spinner +from nextpy.interfaces.web.react_components import square as square +from nextpy.interfaces.web.react_components import stack as stack +from nextpy.interfaces.web.react_components import stat as stat +from nextpy.interfaces.web.react_components import stat_arrow as stat_arrow +from nextpy.interfaces.web.react_components import stat_group as stat_group +from nextpy.interfaces.web.react_components import stat_help_text as stat_help_text +from nextpy.interfaces.web.react_components import stat_label as stat_label +from nextpy.interfaces.web.react_components import stat_number as stat_number +from nextpy.interfaces.web.react_components import step as step +from nextpy.interfaces.web.react_components import step_description as step_description +from nextpy.interfaces.web.react_components import step_icon as step_icon +from nextpy.interfaces.web.react_components import step_indicator as step_indicator +from nextpy.interfaces.web.react_components import step_number as step_number +from nextpy.interfaces.web.react_components import step_separator as step_separator +from nextpy.interfaces.web.react_components import step_status as step_status +from nextpy.interfaces.web.react_components import step_title as step_title +from nextpy.interfaces.web.react_components import stepper as stepper +from nextpy.interfaces.web.react_components import switch as switch +from nextpy.interfaces.web.react_components import tab as tab +from nextpy.interfaces.web.react_components import tab_list as tab_list +from nextpy.interfaces.web.react_components import tab_panel as tab_panel +from nextpy.interfaces.web.react_components import tab_panels as tab_panels +from nextpy.interfaces.web.react_components import table as table +from nextpy.interfaces.web.react_components import table_caption as table_caption +from nextpy.interfaces.web.react_components import table_container as table_container +from nextpy.interfaces.web.react_components import tabs as tabs +from nextpy.interfaces.web.react_components import tag as tag +from nextpy.interfaces.web.react_components import tag_close_button as tag_close_button +from nextpy.interfaces.web.react_components import tag_label as tag_label +from nextpy.interfaces.web.react_components import tag_left_icon as tag_left_icon +from nextpy.interfaces.web.react_components import tag_right_icon as tag_right_icon +from nextpy.interfaces.web.react_components import tbody as tbody +from nextpy.interfaces.web.react_components import td as td +from nextpy.interfaces.web.react_components import text as text +from nextpy.interfaces.web.react_components import text_area as text_area +from nextpy.interfaces.web.react_components import tfoot as tfoot +from nextpy.interfaces.web.react_components import th as th +from nextpy.interfaces.web.react_components import thead as thead +from nextpy.interfaces.web.react_components import tooltip as tooltip +from nextpy.interfaces.web.react_components import tr as tr +from nextpy.interfaces.web.react_components import unordered_list as unordered_list +from nextpy.interfaces.web.react_components import upload as upload +from nextpy.interfaces.web.react_components import video as video +from nextpy.interfaces.web.react_components import visually_hidden as visually_hidden +from nextpy.interfaces.web.react_components import vstack as vstack +from nextpy.interfaces.web.react_components import wrap as wrap +from nextpy.interfaces.web.react_components import wrap_item as wrap_item +from nextpy.interfaces.web.react_components import cancel_upload as cancel_upload +from nextpy.interfaces.web import react_components as react_components +from nextpy.interfaces.web.react_components import color_mode_cond as color_mode_cond +from nextpy.interfaces.web.react_components import desktop_only as desktop_only +from nextpy.interfaces.web.react_components import mobile_only as mobile_only +from nextpy.interfaces.web.react_components import tablet_only as tablet_only +from nextpy.interfaces.web.react_components import mobile_and_tablet as mobile_and_tablet +from nextpy.interfaces.web.react_components import tablet_and_desktop as tablet_and_desktop +from nextpy.interfaces.web.react_components import selected_files as selected_files +from nextpy.interfaces.web.react_components import clear_selected_files as clear_selected_files +from nextpy.interfaces.web.react_components import EditorButtonList as EditorButtonList +from nextpy.interfaces.web.react_components import EditorOptions as EditorOptions +from nextpy.interfaces.web.react_components import NoSSRComponent as NoSSRComponent +from nextpy.interfaces.web.react_components import chakra as chakra +from nextpy.interfaces.web.react_components import next as next +from nextpy.interfaces.web.react_components.component import memo as memo +from nextpy.interfaces.web.react_components import recharts as recharts +from nextpy.interfaces.web.react_components.moment.moment import MomentDelta as MomentDelta from nextpy import config as config from nextpy.build.config import Config as Config from nextpy.build.config import DBConfig as DBConfig @@ -465,7 +465,7 @@ from nextpy import constants as constants from nextpy.constants import Env as Env # from nextpy.frontend.custom_components import custom_components as custom_components -from nextpy.frontend.components import el as el +from nextpy.interfaces.web.react_components import el as el from nextpy.backend import event as event from nextpy.backend.event import EventChain as EventChain from nextpy.backend.event import background as background @@ -488,16 +488,16 @@ from nextpy.backend.middleware import Middleware as Middleware from nextpy.data import model as model from nextpy.data.model import session as session from nextpy.data.model import Model as Model -from nextpy.frontend.page import page as page +from nextpy.interfaces.web.page import page as page from nextpy.backend import route as route from nextpy.backend import state as state from nextpy.backend.state import var as var from nextpy.backend.state import Cookie as Cookie from nextpy.backend.state import LocalStorage as LocalStorage from nextpy.backend.state import State as State -from nextpy.frontend import style as style -from nextpy.frontend.style import color_mode as color_mode -from nextpy.frontend.style import toggle_color_mode as toggle_color_mode +from nextpy.interfaces.web import style as style +from nextpy.interfaces.web.style import color_mode as color_mode +from nextpy.interfaces.web.style import toggle_color_mode as toggle_color_mode from nextpy.build import testing as testing from nextpy import utils as utils from nextpy import vars as vars diff --git a/nextpy/app.py b/nextpy/app.py index a50e096d..c6510252 100644 --- a/nextpy/app.py +++ b/nextpy/app.py @@ -60,17 +60,17 @@ from nextpy.build.compiler.compiler import ExecutorSafeFunctions from nextpy.build.config import get_config from nextpy.data.model import Model -from nextpy.frontend.components import connection_modal -from nextpy.frontend.components.base.app_wrap import AppWrap -from nextpy.frontend.components.base.fragment import Fragment -from nextpy.frontend.components.component import Component, ComponentStyle -from nextpy.frontend.components.core.client_side_routing import ( +from nextpy.interfaces.web.react_components import connection_modal +from nextpy.interfaces.web.react_components.base.app_wrap import AppWrap +from nextpy.interfaces.web.react_components.base.fragment import Fragment +from nextpy.interfaces.web.react_components.component import Component, ComponentStyle +from nextpy.interfaces.web.react_components.core.client_side_routing import ( Default404Page, wait_for_client_redirect, ) -from nextpy.frontend.components.radix import themes -from nextpy.frontend.imports import ReactImportVar -from nextpy.frontend.page import ( +from nextpy.interfaces.web.react_components.radix import themes +from nextpy.interfaces.web.imports import ReactImportVar +from nextpy.interfaces.web.page import ( DECORATED_PAGES, ) from nextpy.utils import console, exceptions, format, types diff --git a/nextpy/app.pyi b/nextpy/app.pyi index 386a9b7e..5f1c93ca 100644 --- a/nextpy/app.pyi +++ b/nextpy/app.pyi @@ -11,12 +11,12 @@ from nextpy.backend.admin import AdminDash as AdminDash from nextpy.base import Base as Base from nextpy.build.compiler import compiler as compiler from nextpy.build import prerequisites as prerequisites -from nextpy.frontend.components import connection_modal as connection_modal -from nextpy.frontend.components.component import ( +from nextpy.interfaces.web.react_components import connection_modal as connection_modal +from nextpy.interfaces.web.react_components.component import ( Component as Component, ComponentStyle as ComponentStyle, ) -from nextpy.frontend.components.base.fragment import Fragment as Fragment +from nextpy.interfaces.web.react_components.base.fragment import Fragment as Fragment from nextpy.build.config import get_config as get_config from nextpy.backend.event import ( Event as Event, @@ -28,7 +28,7 @@ from nextpy.backend.middleware import ( Middleware as Middleware, ) from nextpy.data.model import Model as Model -from nextpy.frontend.page import DECORATED_PAGES as DECORATED_PAGES +from nextpy.interfaces.web.page import DECORATED_PAGES as DECORATED_PAGES from nextpy.backend.route import ( catchall_in_route as catchall_in_route, catchall_prefix as catchall_prefix, diff --git a/nextpy/backend/event.py b/nextpy/backend/event.py index 58421480..2f8bafbe 100644 --- a/nextpy/backend/event.py +++ b/nextpy/backend/event.py @@ -332,7 +332,7 @@ def as_event_spec(self, handler: EventHandler) -> EventSpec: Raises: ValueError: If the on_upload_progress is not a valid event handler. """ - from nextpy.frontend.components.core.upload import ( + from nextpy.interfaces.web.react_components.core.upload import ( DEFAULT_UPLOAD_ID, upload_files_context_var_data, ) diff --git a/nextpy/backend/vars.py b/nextpy/backend/vars.py index 9def727a..d4914723 100644 --- a/nextpy/backend/vars.py +++ b/nextpy/backend/vars.py @@ -38,10 +38,10 @@ from nextpy import constants from nextpy.base import Base -from nextpy.frontend import imports +from nextpy.interfaces.web import imports # This module used to export ReactImportVar itself, so we still import it for export here -from nextpy.frontend.imports import ImportDict, ReactImportVar +from nextpy.interfaces.web.imports import ImportDict, ReactImportVar from nextpy.utils import console, format, serializers, types if TYPE_CHECKING: diff --git a/nextpy/backend/vars.pyi b/nextpy/backend/vars.pyi index 1accb280..2581c7b8 100644 --- a/nextpy/backend/vars.pyi +++ b/nextpy/backend/vars.pyi @@ -9,7 +9,7 @@ from nextpy.base import Base as Base from nextpy.backend.state import State as State from nextpy.backend.state import BaseState as BaseState from nextpy.utils import console as console, format as format, types as types -from nextpy.frontend.imports import ReactImportVar +from nextpy.interfaces.web.imports import ReactImportVar from types import FunctionType from typing import ( Any, diff --git a/nextpy/build/compiler/compiler.py b/nextpy/build/compiler/compiler.py index 1bbc2216..99209475 100644 --- a/nextpy/build/compiler/compiler.py +++ b/nextpy/build/compiler/compiler.py @@ -10,7 +10,7 @@ from nextpy import constants from nextpy.build.compiler import templates, utils -from nextpy.frontend.components.component import ( +from nextpy.interfaces.web.react_components.component import ( BaseComponent, Component, ComponentStyle, @@ -19,7 +19,7 @@ ) from nextpy.build.config import get_config from nextpy.backend.state import BaseState -from nextpy.frontend.imports import ImportDict, ReactImportVar +from nextpy.interfaces.web.imports import ImportDict, ReactImportVar def _compile_document_root(root: Component) -> str: diff --git a/nextpy/build/compiler/utils.py b/nextpy/build/compiler/utils.py index 7cc15e9b..c96b1705 100644 --- a/nextpy/build/compiler/utils.py +++ b/nextpy/build/compiler/utils.py @@ -11,7 +11,7 @@ from pydantic.fields import ModelField from nextpy import constants -from nextpy.frontend.components.base import ( +from nextpy.interfaces.web.react_components.base import ( Body, Description, DocumentHead, @@ -23,11 +23,11 @@ NextScript, Title, ) -from nextpy.frontend.components.component import Component, ComponentStyle, CustomComponent +from nextpy.interfaces.web.react_components.component import Component, ComponentStyle, CustomComponent from nextpy.backend.state import BaseState, Cookie, LocalStorage -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy.utils import console, path_ops -from nextpy.frontend import imports +from nextpy.interfaces.web import imports from nextpy.utils import format # To re-export this function. diff --git a/nextpy/cli.py b/nextpy/cli.py index 195eb498..fca806f3 100644 --- a/nextpy/cli.py +++ b/nextpy/cli.py @@ -24,7 +24,7 @@ from nextpy import constants from nextpy.build import dependency from nextpy.build.config import get_config -from nextpy.frontend.custom_components.custom_components import custom_components_cli +from nextpy.interfaces.custom_components.custom_components import custom_components_cli from nextpy.utils import console, telemetry # Disable typer+rich integration for help panels diff --git a/nextpy/constants/base.py b/nextpy/constants/base.py index a62e27aa..90fc263a 100644 --- a/nextpy/constants/base.py +++ b/nextpy/constants/base.py @@ -80,7 +80,7 @@ class Templates(SimpleNamespace): # Dynamically get the enum values from the templates folder template_dir = os.path.join( - Nextpy.ROOT_DIR, Nextpy.MODULE_NAME, "frontend/templates/apps" + Nextpy.ROOT_DIR, Nextpy.MODULE_NAME, "interfaces/templates/apps" ) template_dirs = next(os.walk(template_dir))[1] @@ -91,7 +91,7 @@ class Dirs(SimpleNamespace): """Folders used by the template system of Nextpy.""" # The template directory used during nextpy init. - BASE = os.path.join(Nextpy.ROOT_DIR, Nextpy.MODULE_NAME, "frontend/templates") + BASE = os.path.join(Nextpy.ROOT_DIR, Nextpy.MODULE_NAME, "interfaces/templates") # The web subdirectory of the template directory. WEB_TEMPLATE = os.path.join(BASE, "web") # The jinja template directory. diff --git a/nextpy/constants/compiler.py b/nextpy/constants/compiler.py index 01350509..90ff6708 100644 --- a/nextpy/constants/compiler.py +++ b/nextpy/constants/compiler.py @@ -8,7 +8,7 @@ from nextpy.base import Base from nextpy.constants import Dirs -from nextpy.frontend.imports import ReactImportVar +from nextpy.interfaces.web.imports import ReactImportVar # The prefix used to create setters for state vars. SETTER_PREFIX = "set_" diff --git a/nextpy/frontend/__init__.py b/nextpy/interfaces/__init__.py similarity index 100% rename from nextpy/frontend/__init__.py rename to nextpy/interfaces/__init__.py diff --git a/nextpy/frontend/blueprints/__init__.py b/nextpy/interfaces/blueprints/__init__.py similarity index 100% rename from nextpy/frontend/blueprints/__init__.py rename to nextpy/interfaces/blueprints/__init__.py diff --git a/nextpy/frontend/blueprints/hero_section.py b/nextpy/interfaces/blueprints/hero_section.py similarity index 100% rename from nextpy/frontend/blueprints/hero_section.py rename to nextpy/interfaces/blueprints/hero_section.py diff --git a/nextpy/frontend/blueprints/navbar.py b/nextpy/interfaces/blueprints/navbar.py similarity index 100% rename from nextpy/frontend/blueprints/navbar.py rename to nextpy/interfaces/blueprints/navbar.py diff --git a/nextpy/frontend/blueprints/sidebar.py b/nextpy/interfaces/blueprints/sidebar.py similarity index 100% rename from nextpy/frontend/blueprints/sidebar.py rename to nextpy/interfaces/blueprints/sidebar.py diff --git a/nextpy/frontend/components/el/elements/inline.pyi b/nextpy/interfaces/components/el/elements/inline.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/inline.pyi rename to nextpy/interfaces/components/el/elements/inline.pyi index fe42e7a5..58d80ed9 100644 --- a/nextpy/frontend/components/el/elements/inline.pyi +++ b/nextpy/interfaces/components/el/elements/inline.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union from nextpy.backend.vars import Var from .base import BaseHTML diff --git a/nextpy/frontend/components/el/elements/media.pyi b/nextpy/interfaces/components/el/elements/media.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/media.pyi rename to nextpy/interfaces/components/el/elements/media.pyi index 4073b064..5414427d 100644 --- a/nextpy/frontend/components/el/elements/media.pyi +++ b/nextpy/interfaces/components/el/elements/media.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union from nextpy.backend.vars import Var as Var from .base import BaseHTML diff --git a/nextpy/frontend/components/el/elements/other.pyi b/nextpy/interfaces/components/el/elements/other.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/other.pyi rename to nextpy/interfaces/components/el/elements/other.pyi index d411adaa..8c83cabe 100644 --- a/nextpy/frontend/components/el/elements/other.pyi +++ b/nextpy/interfaces/components/el/elements/other.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union from nextpy.backend.vars import Var as Var from .base import BaseHTML diff --git a/nextpy/frontend/components/el/elements/scripts.pyi b/nextpy/interfaces/components/el/elements/scripts.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/scripts.pyi rename to nextpy/interfaces/components/el/elements/scripts.pyi index 980e92cf..1d94d1c4 100644 --- a/nextpy/frontend/components/el/elements/scripts.pyi +++ b/nextpy/interfaces/components/el/elements/scripts.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union from nextpy.backend.vars import Var as Var from .base import BaseHTML diff --git a/nextpy/frontend/components/el/elements/sectioning.pyi b/nextpy/interfaces/components/el/elements/sectioning.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/sectioning.pyi rename to nextpy/interfaces/components/el/elements/sectioning.pyi index 8ec41010..9ae7b589 100644 --- a/nextpy/frontend/components/el/elements/sectioning.pyi +++ b/nextpy/interfaces/components/el/elements/sectioning.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union from nextpy.backend.vars import Var as Var from .base import BaseHTML diff --git a/nextpy/frontend/components/el/elements/tables.pyi b/nextpy/interfaces/components/el/elements/tables.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/tables.pyi rename to nextpy/interfaces/components/el/elements/tables.pyi index 2e6d5418..978a0838 100644 --- a/nextpy/frontend/components/el/elements/tables.pyi +++ b/nextpy/interfaces/components/el/elements/tables.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union from nextpy.backend.vars import Var as Var from .base import BaseHTML diff --git a/nextpy/frontend/components/el/elements/typography.pyi b/nextpy/interfaces/components/el/elements/typography.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/typography.pyi rename to nextpy/interfaces/components/el/elements/typography.pyi index ad8f1e11..3676514b 100644 --- a/nextpy/frontend/components/el/elements/typography.pyi +++ b/nextpy/interfaces/components/el/elements/typography.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union from nextpy.backend.vars import Var as Var from .base import BaseHTML diff --git a/nextpy/frontend/components/next/image.pyi b/nextpy/interfaces/components/next/image.pyi similarity index 99% rename from nextpy/frontend/components/next/image.pyi rename to nextpy/interfaces/components/next/image.pyi index 07d06f11..605275cc 100644 --- a/nextpy/frontend/components/next/image.pyi +++ b/nextpy/interfaces/components/next/image.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal, Optional, Union from nextpy.utils import types from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/alertdialog.pyi b/nextpy/interfaces/components/radix/themes/components/alertdialog.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/alertdialog.pyi rename to nextpy/interfaces/components/radix/themes/components/alertdialog.pyi index 45f5e0fe..616f44ed 100644 --- a/nextpy/frontend/components/radix/themes/components/alertdialog.pyi +++ b/nextpy/interfaces/components/radix/themes/components/alertdialog.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/aspectratio.pyi b/nextpy/interfaces/components/radix/themes/components/aspectratio.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/aspectratio.pyi rename to nextpy/interfaces/components/radix/themes/components/aspectratio.pyi index b0206a17..ff36584a 100644 --- a/nextpy/frontend/components/radix/themes/components/aspectratio.pyi +++ b/nextpy/interfaces/components/radix/themes/components/aspectratio.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal, Union from nextpy.backend.vars import Var from ..base import CommonMarginProps, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/components/avatar.pyi b/nextpy/interfaces/components/radix/themes/components/avatar.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/avatar.pyi rename to nextpy/interfaces/components/radix/themes/components/avatar.pyi index 5d504ce7..50c00410 100644 --- a/nextpy/frontend/components/radix/themes/components/avatar.pyi +++ b/nextpy/interfaces/components/radix/themes/components/avatar.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy.backend.vars import Var from ..base import ( diff --git a/nextpy/frontend/components/radix/themes/components/badge.pyi b/nextpy/interfaces/components/radix/themes/components/badge.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/badge.pyi rename to nextpy/interfaces/components/radix/themes/components/badge.pyi index 1b0773d1..a41e1aec 100644 --- a/nextpy/frontend/components/radix/themes/components/badge.pyi +++ b/nextpy/interfaces/components/radix/themes/components/badge.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/button.pyi b/nextpy/interfaces/components/radix/themes/components/button.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/button.pyi rename to nextpy/interfaces/components/radix/themes/components/button.pyi index 2aaddbea..08bb6b5b 100644 --- a/nextpy/frontend/components/radix/themes/components/button.pyi +++ b/nextpy/interfaces/components/radix/themes/components/button.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/callout.pyi b/nextpy/interfaces/components/radix/themes/components/callout.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/callout.pyi rename to nextpy/interfaces/components/radix/themes/components/callout.pyi index a9818358..fa798a59 100644 --- a/nextpy/frontend/components/radix/themes/components/callout.pyi +++ b/nextpy/interfaces/components/radix/themes/components/callout.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/card.pyi b/nextpy/interfaces/components/radix/themes/components/card.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/card.pyi rename to nextpy/interfaces/components/radix/themes/components/card.pyi index a5fb53cf..7eaa9479 100644 --- a/nextpy/frontend/components/radix/themes/components/card.pyi +++ b/nextpy/interfaces/components/radix/themes/components/card.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/checkbox.pyi b/nextpy/interfaces/components/radix/themes/components/checkbox.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/checkbox.pyi rename to nextpy/interfaces/components/radix/themes/components/checkbox.pyi index 1cfbff24..da132123 100644 --- a/nextpy/frontend/components/radix/themes/components/checkbox.pyi +++ b/nextpy/interfaces/components/radix/themes/components/checkbox.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy.backend.vars import Var from ..base import ( diff --git a/nextpy/frontend/components/radix/themes/components/contextmenu.pyi b/nextpy/interfaces/components/radix/themes/components/contextmenu.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/contextmenu.pyi rename to nextpy/interfaces/components/radix/themes/components/contextmenu.pyi index 501873c0..fa8d1472 100644 --- a/nextpy/frontend/components/radix/themes/components/contextmenu.pyi +++ b/nextpy/interfaces/components/radix/themes/components/contextmenu.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/components/dialog.pyi b/nextpy/interfaces/components/radix/themes/components/dialog.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/dialog.pyi rename to nextpy/interfaces/components/radix/themes/components/dialog.pyi index 275a9793..985a0a16 100644 --- a/nextpy/frontend/components/radix/themes/components/dialog.pyi +++ b/nextpy/interfaces/components/radix/themes/components/dialog.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/dropdownmenu.pyi b/nextpy/interfaces/components/radix/themes/components/dropdownmenu.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/dropdownmenu.pyi rename to nextpy/interfaces/components/radix/themes/components/dropdownmenu.pyi index 85bb1677..877d083a 100644 --- a/nextpy/frontend/components/radix/themes/components/dropdownmenu.pyi +++ b/nextpy/interfaces/components/radix/themes/components/dropdownmenu.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/components/hovercard.pyi b/nextpy/interfaces/components/radix/themes/components/hovercard.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/hovercard.pyi rename to nextpy/interfaces/components/radix/themes/components/hovercard.pyi index a9129752..f91a14dc 100644 --- a/nextpy/frontend/components/radix/themes/components/hovercard.pyi +++ b/nextpy/interfaces/components/radix/themes/components/hovercard.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/iconbutton.pyi b/nextpy/interfaces/components/radix/themes/components/iconbutton.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/iconbutton.pyi rename to nextpy/interfaces/components/radix/themes/components/iconbutton.pyi index d9083916..7d77f743 100644 --- a/nextpy/frontend/components/radix/themes/components/iconbutton.pyi +++ b/nextpy/interfaces/components/radix/themes/components/iconbutton.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/inset.pyi b/nextpy/interfaces/components/radix/themes/components/inset.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/inset.pyi rename to nextpy/interfaces/components/radix/themes/components/inset.pyi index 217816f4..1ec3a5b0 100644 --- a/nextpy/frontend/components/radix/themes/components/inset.pyi +++ b/nextpy/interfaces/components/radix/themes/components/inset.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal, Union from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/popover.pyi b/nextpy/interfaces/components/radix/themes/components/popover.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/popover.pyi rename to nextpy/interfaces/components/radix/themes/components/popover.pyi index e875c403..1b4cc5a6 100644 --- a/nextpy/frontend/components/radix/themes/components/popover.pyi +++ b/nextpy/interfaces/components/radix/themes/components/popover.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/radiogroup.pyi b/nextpy/interfaces/components/radix/themes/components/radiogroup.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/radiogroup.pyi rename to nextpy/interfaces/components/radix/themes/components/radiogroup.pyi index f79b3249..704d60a8 100644 --- a/nextpy/frontend/components/radix/themes/components/radiogroup.pyi +++ b/nextpy/interfaces/components/radix/themes/components/radiogroup.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/components/scrollarea.pyi b/nextpy/interfaces/components/radix/themes/components/scrollarea.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/scrollarea.pyi rename to nextpy/interfaces/components/radix/themes/components/scrollarea.pyi index 55c869ce..27e8f137 100644 --- a/nextpy/frontend/components/radix/themes/components/scrollarea.pyi +++ b/nextpy/interfaces/components/radix/themes/components/scrollarea.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralRadius, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/components/select.pyi b/nextpy/interfaces/components/radix/themes/components/select.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/select.pyi rename to nextpy/interfaces/components/radix/themes/components/select.pyi index 3fd1aad8..03af5532 100644 --- a/nextpy/frontend/components/radix/themes/components/select.pyi +++ b/nextpy/interfaces/components/radix/themes/components/select.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy.backend.vars import Var from ..base import ( diff --git a/nextpy/frontend/components/radix/themes/components/separator.pyi b/nextpy/interfaces/components/radix/themes/components/separator.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/separator.pyi rename to nextpy/interfaces/components/radix/themes/components/separator.pyi index d5257570..892f74b8 100644 --- a/nextpy/frontend/components/radix/themes/components/separator.pyi +++ b/nextpy/interfaces/components/radix/themes/components/separator.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/components/slider.pyi b/nextpy/interfaces/components/radix/themes/components/slider.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/slider.pyi rename to nextpy/interfaces/components/radix/themes/components/slider.pyi index b8a74357..79d9e9fc 100644 --- a/nextpy/frontend/components/radix/themes/components/slider.pyi +++ b/nextpy/interfaces/components/radix/themes/components/slider.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Literal from nextpy.backend.vars import Var from ..base import ( diff --git a/nextpy/frontend/components/radix/themes/components/switch.pyi b/nextpy/interfaces/components/radix/themes/components/switch.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/switch.pyi rename to nextpy/interfaces/components/radix/themes/components/switch.pyi index f1386500..71239100 100644 --- a/nextpy/frontend/components/radix/themes/components/switch.pyi +++ b/nextpy/interfaces/components/radix/themes/components/switch.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/table.pyi b/nextpy/interfaces/components/radix/themes/components/table.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/table.pyi rename to nextpy/interfaces/components/radix/themes/components/table.pyi index b2271d3e..60c41be1 100644 --- a/nextpy/frontend/components/radix/themes/components/table.pyi +++ b/nextpy/interfaces/components/radix/themes/components/table.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal, Union from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/components/tabs.pyi b/nextpy/interfaces/components/radix/themes/components/tabs.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/tabs.pyi rename to nextpy/interfaces/components/radix/themes/components/tabs.pyi index e7d93661..5fee0f5f 100644 --- a/nextpy/frontend/components/radix/themes/components/tabs.pyi +++ b/nextpy/interfaces/components/radix/themes/components/tabs.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy.backend.vars import Var from ..base import CommonMarginProps, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/components/tooltip.pyi b/nextpy/interfaces/components/radix/themes/components/tooltip.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/tooltip.pyi rename to nextpy/interfaces/components/radix/themes/components/tooltip.pyi index a0da33e9..d1225e0d 100644 --- a/nextpy/frontend/components/radix/themes/components/tooltip.pyi +++ b/nextpy/interfaces/components/radix/themes/components/tooltip.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy.backend.vars import Var from ..base import CommonMarginProps, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/layout/base.pyi b/nextpy/interfaces/components/radix/themes/layout/base.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/layout/base.pyi rename to nextpy/interfaces/components/radix/themes/layout/base.pyi index 770de976..cea27b22 100644 --- a/nextpy/frontend/components/radix/themes/layout/base.pyi +++ b/nextpy/interfaces/components/radix/themes/layout/base.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralSize, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/layout/box.pyi b/nextpy/interfaces/components/radix/themes/layout/box.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/layout/box.pyi rename to nextpy/interfaces/components/radix/themes/layout/box.pyi index 67bfa306..ff873261 100644 --- a/nextpy/frontend/components/radix/themes/layout/box.pyi +++ b/nextpy/interfaces/components/radix/themes/layout/box.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from .base import LayoutComponent diff --git a/nextpy/frontend/components/radix/themes/layout/container.pyi b/nextpy/interfaces/components/radix/themes/layout/container.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/layout/container.pyi rename to nextpy/interfaces/components/radix/themes/layout/container.pyi index 1c4aa72e..8c08e3f5 100644 --- a/nextpy/frontend/components/radix/themes/layout/container.pyi +++ b/nextpy/interfaces/components/radix/themes/layout/container.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/layout/flex.pyi b/nextpy/interfaces/components/radix/themes/layout/flex.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/layout/flex.pyi rename to nextpy/interfaces/components/radix/themes/layout/flex.pyi index 125c3b5c..1d048fcd 100644 --- a/nextpy/frontend/components/radix/themes/layout/flex.pyi +++ b/nextpy/interfaces/components/radix/themes/layout/flex.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/layout/grid.pyi b/nextpy/interfaces/components/radix/themes/layout/grid.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/layout/grid.pyi rename to nextpy/interfaces/components/radix/themes/layout/grid.pyi index 613ec6a2..6e1c67f5 100644 --- a/nextpy/frontend/components/radix/themes/layout/grid.pyi +++ b/nextpy/interfaces/components/radix/themes/layout/grid.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/layout/section.pyi b/nextpy/interfaces/components/radix/themes/layout/section.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/layout/section.pyi rename to nextpy/interfaces/components/radix/themes/layout/section.pyi index 4f83d39d..f2033609 100644 --- a/nextpy/frontend/components/radix/themes/layout/section.pyi +++ b/nextpy/interfaces/components/radix/themes/layout/section.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal from nextpy import el from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/themes/typography/blockquote.pyi b/nextpy/interfaces/components/radix/themes/typography/blockquote.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/blockquote.pyi rename to nextpy/interfaces/components/radix/themes/typography/blockquote.pyi index 02d16841..c2ef4b89 100644 --- a/nextpy/frontend/components/radix/themes/typography/blockquote.pyi +++ b/nextpy/interfaces/components/radix/themes/typography/blockquote.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/typography/code.pyi b/nextpy/interfaces/components/radix/themes/typography/code.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/code.pyi rename to nextpy/interfaces/components/radix/themes/typography/code.pyi index 750778f7..fa6b8ef3 100644 --- a/nextpy/frontend/components/radix/themes/typography/code.pyi +++ b/nextpy/interfaces/components/radix/themes/typography/code.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from nextpy.backend.vars import Var from ..base import ( diff --git a/nextpy/frontend/components/radix/themes/typography/em.pyi b/nextpy/interfaces/components/radix/themes/typography/em.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/em.pyi rename to nextpy/interfaces/components/radix/themes/typography/em.pyi index 7f10b15c..ae4421a8 100644 --- a/nextpy/frontend/components/radix/themes/typography/em.pyi +++ b/nextpy/interfaces/components/radix/themes/typography/em.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from ..base import CommonMarginProps, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/typography/heading.pyi b/nextpy/interfaces/components/radix/themes/typography/heading.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/heading.pyi rename to nextpy/interfaces/components/radix/themes/typography/heading.pyi index 050c19f7..1a581e37 100644 --- a/nextpy/frontend/components/radix/themes/typography/heading.pyi +++ b/nextpy/interfaces/components/radix/themes/typography/heading.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/typography/kbd.pyi b/nextpy/interfaces/components/radix/themes/typography/kbd.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/kbd.pyi rename to nextpy/interfaces/components/radix/themes/typography/kbd.pyi index 2107609d..856f1f1b 100644 --- a/nextpy/frontend/components/radix/themes/typography/kbd.pyi +++ b/nextpy/interfaces/components/radix/themes/typography/kbd.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from nextpy.backend.vars import Var from ..base import CommonMarginProps, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/typography/quote.pyi b/nextpy/interfaces/components/radix/themes/typography/quote.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/quote.pyi rename to nextpy/interfaces/components/radix/themes/typography/quote.pyi index da951a86..76ab39fd 100644 --- a/nextpy/frontend/components/radix/themes/typography/quote.pyi +++ b/nextpy/interfaces/components/radix/themes/typography/quote.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from ..base import CommonMarginProps, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/typography/strong.pyi b/nextpy/interfaces/components/radix/themes/typography/strong.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/strong.pyi rename to nextpy/interfaces/components/radix/themes/typography/strong.pyi index 64f1d192..943af223 100644 --- a/nextpy/frontend/components/radix/themes/typography/strong.pyi +++ b/nextpy/interfaces/components/radix/themes/typography/strong.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from ..base import CommonMarginProps, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/typography/text.pyi b/nextpy/interfaces/components/radix/themes/typography/text.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/text.pyi rename to nextpy/interfaces/components/radix/themes/typography/text.pyi index ac7da247..699adc48 100644 --- a/nextpy/frontend/components/radix/themes/typography/text.pyi +++ b/nextpy/interfaces/components/radix/themes/typography/text.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import el from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent diff --git a/nextpy/frontend/components/recharts/cartesian.pyi b/nextpy/interfaces/components/recharts/cartesian.pyi similarity index 99% rename from nextpy/frontend/components/recharts/cartesian.pyi rename to nextpy/interfaces/components/recharts/cartesian.pyi index d3d66928..b8cb7c59 100644 --- a/nextpy/frontend/components/recharts/cartesian.pyi +++ b/nextpy/interfaces/components/recharts/cartesian.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Union from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/recharts/polar.pyi b/nextpy/interfaces/components/recharts/polar.pyi similarity index 99% rename from nextpy/frontend/components/recharts/polar.pyi rename to nextpy/interfaces/components/recharts/polar.pyi index dabc5dd4..f53b0403 100644 --- a/nextpy/frontend/components/recharts/polar.pyi +++ b/nextpy/interfaces/components/recharts/polar.pyi @@ -9,7 +9,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Union from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/custom_components/__init__.py b/nextpy/interfaces/custom_components/__init__.py similarity index 100% rename from nextpy/frontend/custom_components/__init__.py rename to nextpy/interfaces/custom_components/__init__.py diff --git a/nextpy/frontend/custom_components/custom_components.py b/nextpy/interfaces/custom_components/custom_components.py similarity index 100% rename from nextpy/frontend/custom_components/custom_components.py rename to nextpy/interfaces/custom_components/custom_components.py diff --git a/nextpy/frontend/components/base/app_wrap.pyi b/nextpy/interfaces/react_components/base/app_wrap.pyi similarity index 94% rename from nextpy/frontend/components/base/app_wrap.pyi rename to nextpy/interfaces/react_components/base/app_wrap.pyi index 51c4a89b..8e49eb4b 100644 --- a/nextpy/frontend/components/base/app_wrap.pyi +++ b/nextpy/interfaces/react_components/base/app_wrap.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.base.fragment import Fragment -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.base.fragment import Fragment +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class AppWrap(Fragment): diff --git a/nextpy/frontend/components/base/body.pyi b/nextpy/interfaces/react_components/base/body.pyi similarity index 96% rename from nextpy/frontend/components/base/body.pyi rename to nextpy/interfaces/react_components/base/body.pyi index 9c5f48b3..e51d3cf3 100644 --- a/nextpy/frontend/components/base/body.pyi +++ b/nextpy/interfaces/react_components/base/body.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component class Body(Component): @overload diff --git a/nextpy/frontend/components/base/document.pyi b/nextpy/interfaces/react_components/base/document.pyi similarity index 99% rename from nextpy/frontend/components/base/document.pyi rename to nextpy/interfaces/react_components/base/document.pyi index 7df518e0..7ddb2ca6 100644 --- a/nextpy/frontend/components/base/document.pyi +++ b/nextpy/interfaces/react_components/base/document.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component class NextDocumentLib(Component): @overload diff --git a/nextpy/frontend/components/base/fragment.pyi b/nextpy/interfaces/react_components/base/fragment.pyi similarity index 96% rename from nextpy/frontend/components/base/fragment.pyi rename to nextpy/interfaces/react_components/base/fragment.pyi index c5e967e9..415f1834 100644 --- a/nextpy/frontend/components/base/fragment.pyi +++ b/nextpy/interfaces/react_components/base/fragment.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component class Fragment(Component): @overload diff --git a/nextpy/frontend/components/base/head.pyi b/nextpy/interfaces/react_components/base/head.pyi similarity index 97% rename from nextpy/frontend/components/base/head.pyi rename to nextpy/interfaces/react_components/base/head.pyi index ab52003e..9eb56339 100644 --- a/nextpy/frontend/components/base/head.pyi +++ b/nextpy/interfaces/react_components/base/head.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component, MemoizationLeaf +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component, MemoizationLeaf class NextHeadLib(Component): @overload diff --git a/nextpy/frontend/components/base/link.pyi b/nextpy/interfaces/react_components/base/link.pyi similarity index 98% rename from nextpy/frontend/components/base/link.pyi rename to nextpy/interfaces/react_components/base/link.pyi index 6d5801b5..6131487f 100644 --- a/nextpy/frontend/components/base/link.pyi +++ b/nextpy/interfaces/react_components/base/link.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class RawLink(Component): diff --git a/nextpy/frontend/components/base/meta.pyi b/nextpy/interfaces/react_components/base/meta.pyi similarity index 98% rename from nextpy/frontend/components/base/meta.pyi rename to nextpy/interfaces/react_components/base/meta.pyi index ee46ff60..4a7cb985 100644 --- a/nextpy/frontend/components/base/meta.pyi +++ b/nextpy/interfaces/react_components/base/meta.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Optional -from nextpy.frontend.components.base.bare import Bare -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.base.bare import Bare +from nextpy.interfaces.web.react_components.component import Component class Title(Component): def render(self) -> dict: ... diff --git a/nextpy/frontend/components/base/script.pyi b/nextpy/interfaces/react_components/base/script.pyi similarity index 97% rename from nextpy/frontend/components/base/script.pyi rename to nextpy/interfaces/react_components/base/script.pyi index f96a917a..2a60a3a4 100644 --- a/nextpy/frontend/components/base/script.pyi +++ b/nextpy/interfaces/react_components/base/script.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Script(Component): diff --git a/nextpy/frontend/components/chakra/base.pyi b/nextpy/interfaces/react_components/chakra/base.pyi similarity index 98% rename from nextpy/frontend/components/chakra/base.pyi rename to nextpy/interfaces/react_components/chakra/base.pyi index a2fbc869..083e4ed6 100644 --- a/nextpy/frontend/components/chakra/base.pyi +++ b/nextpy/interfaces/react_components/chakra/base.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from functools import lru_cache from typing import List, Literal -from nextpy.frontend.components.component import Component -from nextpy.frontend import imports +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web import imports from nextpy.backend.vars import Var class ChakraComponent(Component): diff --git a/nextpy/frontend/components/chakra/datadisplay/badge.pyi b/nextpy/interfaces/react_components/chakra/datadisplay/badge.pyi similarity index 96% rename from nextpy/frontend/components/chakra/datadisplay/badge.pyi rename to nextpy/interfaces/react_components/chakra/datadisplay/badge.pyi index 927a42ee..3856a6c2 100644 --- a/nextpy/frontend/components/chakra/datadisplay/badge.pyi +++ b/nextpy/interfaces/react_components/chakra/datadisplay/badge.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent, LiteralVariant +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralVariant from nextpy.backend.vars import Var class Badge(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/datadisplay/code.py b/nextpy/interfaces/react_components/chakra/datadisplay/code.py similarity index 95% rename from nextpy/frontend/components/chakra/datadisplay/code.py rename to nextpy/interfaces/react_components/chakra/datadisplay/code.py index f56adff1..1f0a0dee 100644 --- a/nextpy/frontend/components/chakra/datadisplay/code.py +++ b/nextpy/interfaces/react_components/chakra/datadisplay/code.py @@ -7,16 +7,16 @@ from nextpy.backend.event import set_clipboard from nextpy.backend.vars import Var -from nextpy.frontend import imports -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web import imports +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, ) -from nextpy.frontend.components.chakra.forms import Button, color_mode_cond -from nextpy.frontend.components.chakra.layout import Box -from nextpy.frontend.components.chakra.media import Icon -from nextpy.frontend.components.component import Component -from nextpy.frontend.imports import ReactImportVar -from nextpy.frontend.style import Style +from nextpy.interfaces.web.react_components.chakra.forms import Button, color_mode_cond +from nextpy.interfaces.web.react_components.chakra.layout import Box +from nextpy.interfaces.web.react_components.chakra.media import Icon +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.imports import ReactImportVar +from nextpy.interfaces.web.style import Style from nextpy.utils import format LiteralCodeBlockTheme = Literal[ diff --git a/nextpy/frontend/components/chakra/datadisplay/code.pyi b/nextpy/interfaces/react_components/chakra/datadisplay/code.pyi similarity index 98% rename from nextpy/frontend/components/chakra/datadisplay/code.pyi rename to nextpy/interfaces/react_components/chakra/datadisplay/code.pyi index 08a16594..dd262afc 100644 --- a/nextpy/frontend/components/chakra/datadisplay/code.pyi +++ b/nextpy/interfaces/react_components/chakra/datadisplay/code.pyi @@ -9,18 +9,18 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style import re from typing import Dict, Literal, Optional, Union -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.chakra.forms import Button, color_mode_cond -from nextpy.frontend.components.chakra.layout import Box -from nextpy.frontend.components.chakra.media import Icon -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra.forms import Button, color_mode_cond +from nextpy.interfaces.web.react_components.chakra.layout import Box +from nextpy.interfaces.web.react_components.chakra.media import Icon +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.event import set_clipboard -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy.utils import format -from nextpy.frontend.imports import ReactImportVar +from nextpy.interfaces.web.imports import ReactImportVar from nextpy.backend.vars import Var LiteralCodeBlockTheme = Literal[ diff --git a/nextpy/frontend/components/chakra/datadisplay/divider.pyi b/nextpy/interfaces/react_components/chakra/datadisplay/divider.pyi similarity index 96% rename from nextpy/frontend/components/chakra/datadisplay/divider.pyi rename to nextpy/interfaces/react_components/chakra/datadisplay/divider.pyi index 7b05de56..5d655234 100644 --- a/nextpy/frontend/components/chakra/datadisplay/divider.pyi +++ b/nextpy/interfaces/react_components/chakra/datadisplay/divider.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal -from nextpy.frontend.components.chakra import ChakraComponent, LiteralDividerVariant +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralDividerVariant from nextpy.backend.vars import Var LiteralLayout = Literal["horizontal", "vertical"] diff --git a/nextpy/frontend/components/chakra/datadisplay/keyboard_key.pyi b/nextpy/interfaces/react_components/chakra/datadisplay/keyboard_key.pyi similarity index 96% rename from nextpy/frontend/components/chakra/datadisplay/keyboard_key.pyi rename to nextpy/interfaces/react_components/chakra/datadisplay/keyboard_key.pyi index b1763913..c0a9d39d 100644 --- a/nextpy/frontend/components/chakra/datadisplay/keyboard_key.pyi +++ b/nextpy/interfaces/react_components/chakra/datadisplay/keyboard_key.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent class KeyboardKey(ChakraComponent): @overload diff --git a/nextpy/frontend/components/chakra/datadisplay/list.pyi b/nextpy/interfaces/react_components/chakra/datadisplay/list.pyi similarity index 98% rename from nextpy/frontend/components/chakra/datadisplay/list.pyi rename to nextpy/interfaces/react_components/chakra/datadisplay/list.pyi index b74ba612..7140b46a 100644 --- a/nextpy/frontend/components/chakra/datadisplay/list.pyi +++ b/nextpy/interfaces/react_components/chakra/datadisplay/list.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.foreach import Foreach +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.foreach import Foreach from nextpy.backend.vars import Var class List(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/datadisplay/stat.pyi b/nextpy/interfaces/react_components/chakra/datadisplay/stat.pyi similarity index 98% rename from nextpy/frontend/components/chakra/datadisplay/stat.pyi rename to nextpy/interfaces/react_components/chakra/datadisplay/stat.pyi index 2857be5b..bb1450d6 100644 --- a/nextpy/frontend/components/chakra/datadisplay/stat.pyi +++ b/nextpy/interfaces/react_components/chakra/datadisplay/stat.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Stat(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/datadisplay/table.pyi b/nextpy/interfaces/react_components/chakra/datadisplay/table.pyi similarity index 99% rename from nextpy/frontend/components/chakra/datadisplay/table.pyi rename to nextpy/interfaces/react_components/chakra/datadisplay/table.pyi index 3cfc6151..479e5ff7 100644 --- a/nextpy/frontend/components/chakra/datadisplay/table.pyi +++ b/nextpy/interfaces/react_components/chakra/datadisplay/table.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List, Tuple -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.foreach import Foreach +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.foreach import Foreach from nextpy.utils import types from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/datadisplay/tag.pyi b/nextpy/interfaces/react_components/chakra/datadisplay/tag.pyi similarity index 98% rename from nextpy/frontend/components/chakra/datadisplay/tag.pyi rename to nextpy/interfaces/react_components/chakra/datadisplay/tag.pyi index 8281e5e7..bf6e7db0 100644 --- a/nextpy/frontend/components/chakra/datadisplay/tag.pyi +++ b/nextpy/interfaces/react_components/chakra/datadisplay/tag.pyi @@ -9,15 +9,15 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Optional -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralTagColorScheme, LiteralTagSize, LiteralVariant, ) -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class TagLabel(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/disclosure/accordion.pyi b/nextpy/interfaces/react_components/chakra/disclosure/accordion.pyi similarity index 98% rename from nextpy/frontend/components/chakra/disclosure/accordion.pyi rename to nextpy/interfaces/react_components/chakra/disclosure/accordion.pyi index 15f96c70..37540319 100644 --- a/nextpy/frontend/components/chakra/disclosure/accordion.pyi +++ b/nextpy/interfaces/react_components/chakra/disclosure/accordion.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List, Optional, Union -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Accordion(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/disclosure/tabs.pyi b/nextpy/interfaces/react_components/chakra/disclosure/tabs.pyi similarity index 99% rename from nextpy/frontend/components/chakra/disclosure/tabs.pyi rename to nextpy/interfaces/react_components/chakra/disclosure/tabs.pyi index f1c41608..c2e1665a 100644 --- a/nextpy/frontend/components/chakra/disclosure/tabs.pyi +++ b/nextpy/interfaces/react_components/chakra/disclosure/tabs.pyi @@ -9,15 +9,15 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List, Optional, Tuple -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralColorScheme, LiteralTabsVariant, LiteralTagAlign, ) -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Tabs(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/disclosure/transition.pyi b/nextpy/interfaces/react_components/chakra/disclosure/transition.pyi similarity index 99% rename from nextpy/frontend/components/chakra/disclosure/transition.pyi rename to nextpy/interfaces/react_components/chakra/disclosure/transition.pyi index c0d3c8f7..5df9ed36 100644 --- a/nextpy/frontend/components/chakra/disclosure/transition.pyi +++ b/nextpy/interfaces/react_components/chakra/disclosure/transition.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class Transition(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/disclosure/visuallyhidden.pyi b/nextpy/interfaces/react_components/chakra/disclosure/visuallyhidden.pyi similarity index 96% rename from nextpy/frontend/components/chakra/disclosure/visuallyhidden.pyi rename to nextpy/interfaces/react_components/chakra/disclosure/visuallyhidden.pyi index 303c0231..1ad385c3 100644 --- a/nextpy/frontend/components/chakra/disclosure/visuallyhidden.pyi +++ b/nextpy/interfaces/react_components/chakra/disclosure/visuallyhidden.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent class VisuallyHidden(ChakraComponent): @overload diff --git a/nextpy/frontend/components/chakra/feedback/alert.pyi b/nextpy/interfaces/react_components/chakra/feedback/alert.pyi similarity index 98% rename from nextpy/frontend/components/chakra/feedback/alert.pyi rename to nextpy/interfaces/react_components/chakra/feedback/alert.pyi index aecbc7a2..c993f6ae 100644 --- a/nextpy/frontend/components/chakra/feedback/alert.pyi +++ b/nextpy/interfaces/react_components/chakra/feedback/alert.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent, LiteralAlertVariant, LiteralStatus -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralAlertVariant, LiteralStatus +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Alert(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/feedback/circularprogress.pyi b/nextpy/interfaces/react_components/chakra/feedback/circularprogress.pyi similarity index 97% rename from nextpy/frontend/components/chakra/feedback/circularprogress.pyi rename to nextpy/interfaces/react_components/chakra/feedback/circularprogress.pyi index b946196a..8b12cbad 100644 --- a/nextpy/frontend/components/chakra/feedback/circularprogress.pyi +++ b/nextpy/interfaces/react_components/chakra/feedback/circularprogress.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class CircularProgress(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/feedback/progress.pyi b/nextpy/interfaces/react_components/chakra/feedback/progress.pyi similarity index 97% rename from nextpy/frontend/components/chakra/feedback/progress.pyi rename to nextpy/interfaces/react_components/chakra/feedback/progress.pyi index e71e551a..746b138a 100644 --- a/nextpy/frontend/components/chakra/feedback/progress.pyi +++ b/nextpy/interfaces/react_components/chakra/feedback/progress.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class Progress(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/feedback/skeleton.pyi b/nextpy/interfaces/react_components/chakra/feedback/skeleton.pyi similarity index 98% rename from nextpy/frontend/components/chakra/feedback/skeleton.pyi rename to nextpy/interfaces/react_components/chakra/feedback/skeleton.pyi index 717a8fc8..20c64af3 100644 --- a/nextpy/frontend/components/chakra/feedback/skeleton.pyi +++ b/nextpy/interfaces/react_components/chakra/feedback/skeleton.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class Skeleton(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/feedback/spinner.pyi b/nextpy/interfaces/react_components/chakra/feedback/spinner.pyi similarity index 96% rename from nextpy/frontend/components/chakra/feedback/spinner.pyi rename to nextpy/interfaces/react_components/chakra/feedback/spinner.pyi index ac5bf928..1193efce 100644 --- a/nextpy/frontend/components/chakra/feedback/spinner.pyi +++ b/nextpy/interfaces/react_components/chakra/feedback/spinner.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent, LiteralSpinnerSize +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralSpinnerSize from nextpy.backend.vars import Var class Spinner(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/forms/button.pyi b/nextpy/interfaces/react_components/chakra/forms/button.pyi similarity index 99% rename from nextpy/frontend/components/chakra/forms/button.pyi rename to nextpy/interfaces/react_components/chakra/forms/button.pyi index 58a11c56..42689d13 100644 --- a/nextpy/frontend/components/chakra/forms/button.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/button.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralButtonSize, LiteralButtonVariant, diff --git a/nextpy/frontend/components/chakra/forms/checkbox.pyi b/nextpy/interfaces/react_components/chakra/forms/checkbox.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/checkbox.pyi rename to nextpy/interfaces/react_components/chakra/forms/checkbox.pyi index 9ef10872..7051faf6 100644 --- a/nextpy/frontend/components/chakra/forms/checkbox.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/checkbox.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralColorScheme, LiteralTagSize +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralColorScheme, LiteralTagSize from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/forms/colormodeswitch.py b/nextpy/interfaces/react_components/chakra/forms/colormodeswitch.py similarity index 90% rename from nextpy/frontend/components/chakra/forms/colormodeswitch.py rename to nextpy/interfaces/react_components/chakra/forms/colormodeswitch.py index 77a5c8cb..5ec9dd92 100644 --- a/nextpy/frontend/components/chakra/forms/colormodeswitch.py +++ b/nextpy/interfaces/react_components/chakra/forms/colormodeswitch.py @@ -22,11 +22,11 @@ from typing import Any from nextpy.backend.vars import Var -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.chakra.media.icon import Icon -from nextpy.frontend.components.component import BaseComponent, Component -from nextpy.frontend.components.core.cond import Cond, cond -from nextpy.frontend.style import color_mode, toggle_color_mode +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra.media.icon import Icon +from nextpy.interfaces.web.react_components.component import BaseComponent, Component +from nextpy.interfaces.web.react_components.core.cond import Cond, cond +from nextpy.interfaces.web.style import color_mode, toggle_color_mode from .button import Button from .switch import Switch diff --git a/nextpy/frontend/components/chakra/forms/colormodeswitch.pyi b/nextpy/interfaces/react_components/chakra/forms/colormodeswitch.pyi similarity index 97% rename from nextpy/frontend/components/chakra/forms/colormodeswitch.pyi rename to nextpy/interfaces/react_components/chakra/forms/colormodeswitch.pyi index 99c24232..84472960 100644 --- a/nextpy/frontend/components/chakra/forms/colormodeswitch.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/colormodeswitch.pyi @@ -9,13 +9,13 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.chakra.media.icon import Icon -from nextpy.frontend.components.component import BaseComponent, Component -from nextpy.frontend.components.core.cond import Cond, cond -from nextpy.frontend.style import color_mode, toggle_color_mode +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra.media.icon import Icon +from nextpy.interfaces.web.react_components.component import BaseComponent, Component +from nextpy.interfaces.web.react_components.core.cond import Cond, cond +from nextpy.interfaces.web.style import color_mode, toggle_color_mode from nextpy.backend.vars import Var from .button import Button from .switch import Switch diff --git a/nextpy/frontend/components/chakra/forms/date_picker.pyi b/nextpy/interfaces/react_components/chakra/forms/date_picker.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/date_picker.pyi rename to nextpy/interfaces/react_components/chakra/forms/date_picker.pyi index 0cffc732..4a4129e4 100644 --- a/nextpy/frontend/components/chakra/forms/date_picker.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/date_picker.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra.forms.input import Input +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra.forms.input import Input from nextpy.backend.vars import Var class DatePicker(Input): diff --git a/nextpy/frontend/components/chakra/forms/date_time_picker.pyi b/nextpy/interfaces/react_components/chakra/forms/date_time_picker.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/date_time_picker.pyi rename to nextpy/interfaces/react_components/chakra/forms/date_time_picker.pyi index 3554b02c..6cb08a43 100644 --- a/nextpy/frontend/components/chakra/forms/date_time_picker.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/date_time_picker.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra.forms.input import Input +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra.forms.input import Input from nextpy.backend.vars import Var class DateTimePicker(Input): diff --git a/nextpy/frontend/components/chakra/forms/editable.pyi b/nextpy/interfaces/react_components/chakra/forms/editable.pyi similarity index 99% rename from nextpy/frontend/components/chakra/forms/editable.pyi rename to nextpy/interfaces/react_components/chakra/forms/editable.pyi index e5436495..a1148057 100644 --- a/nextpy/frontend/components/chakra/forms/editable.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/editable.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/forms/email.pyi b/nextpy/interfaces/react_components/chakra/forms/email.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/email.pyi rename to nextpy/interfaces/react_components/chakra/forms/email.pyi index 6ef1575c..7551885d 100644 --- a/nextpy/frontend/components/chakra/forms/email.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/email.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra.forms.input import Input +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra.forms.input import Input from nextpy.backend.vars import Var class Email(Input): diff --git a/nextpy/frontend/components/chakra/forms/form.pyi b/nextpy/interfaces/react_components/chakra/forms/form.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/form.pyi rename to nextpy/interfaces/react_components/chakra/forms/form.pyi index 123ee1f4..4fd7d3af 100644 --- a/nextpy/frontend/components/chakra/forms/form.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/form.pyi @@ -9,16 +9,16 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from hashlib import md5 from typing import Any, Dict, Iterator from jinja2 import Environment -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.tags import Tag +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.tags import Tag from nextpy.constants import Dirs, EventTriggers from nextpy.backend.event import EventChain -from nextpy.frontend import imports +from nextpy.interfaces.web import imports from nextpy.utils.format import format_event_chain, to_camel_case from nextpy.backend.vars import BaseVar, Var diff --git a/nextpy/frontend/components/chakra/forms/iconbutton.pyi b/nextpy/interfaces/react_components/chakra/forms/iconbutton.pyi similarity index 96% rename from nextpy/frontend/components/chakra/forms/iconbutton.pyi rename to nextpy/interfaces/react_components/chakra/forms/iconbutton.pyi index 90346602..ecaace7a 100644 --- a/nextpy/frontend/components/chakra/forms/iconbutton.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/iconbutton.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Optional -from nextpy.frontend.components.chakra.typography.text import Text -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra.typography.text import Text +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class IconButton(Text): diff --git a/nextpy/frontend/components/chakra/forms/input.pyi b/nextpy/interfaces/react_components/chakra/forms/input.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/input.pyi rename to nextpy/interfaces/react_components/chakra/forms/input.pyi index dfd9c766..66da65eb 100644 --- a/nextpy/frontend/components/chakra/forms/input.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/input.pyi @@ -9,18 +9,18 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralButtonSize, LiteralInputVariant, ) -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.debounce import DebounceInput -from nextpy.frontend.components.literals import LiteralInputType +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.debounce import DebounceInput +from nextpy.interfaces.web.react_components.literals import LiteralInputType from nextpy.constants import EventTriggers, MemoizationMode -from nextpy.frontend import imports +from nextpy.interfaces.web import imports from nextpy.backend.vars import Var class Input(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/forms/numberinput.pyi b/nextpy/interfaces/react_components/chakra/forms/numberinput.pyi similarity index 99% rename from nextpy/frontend/components/chakra/forms/numberinput.pyi rename to nextpy/interfaces/react_components/chakra/forms/numberinput.pyi index 02175949..fcebe22b 100644 --- a/nextpy/frontend/components/chakra/forms/numberinput.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/numberinput.pyi @@ -9,15 +9,15 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from numbers import Number from typing import Any, Dict -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralButtonSize, LiteralInputVariant, ) -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/forms/password.pyi b/nextpy/interfaces/react_components/chakra/forms/password.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/password.pyi rename to nextpy/interfaces/react_components/chakra/forms/password.pyi index 4d17f9ba..76dc3e9d 100644 --- a/nextpy/frontend/components/chakra/forms/password.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/password.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra.forms.input import Input +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra.forms.input import Input from nextpy.backend.vars import Var class Password(Input): diff --git a/nextpy/frontend/components/chakra/forms/pininput.pyi b/nextpy/interfaces/react_components/chakra/forms/pininput.pyi similarity index 96% rename from nextpy/frontend/components/chakra/forms/pininput.pyi rename to nextpy/interfaces/react_components/chakra/forms/pininput.pyi index 468c36ca..2079e9f9 100644 --- a/nextpy/frontend/components/chakra/forms/pininput.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/pininput.pyi @@ -9,14 +9,14 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Optional, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralInputVariant -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.tags.tag import Tag +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralInputVariant +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.tags.tag import Tag from nextpy.constants import EventTriggers from nextpy.utils import format -from nextpy.frontend.imports import ImportDict, merge_imports +from nextpy.interfaces.web.imports import ImportDict, merge_imports from nextpy.backend.vars import Var class PinInput(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/forms/radio.pyi b/nextpy/interfaces/react_components/chakra/forms/radio.pyi similarity index 96% rename from nextpy/frontend/components/chakra/forms/radio.pyi rename to nextpy/interfaces/react_components/chakra/forms/radio.pyi index 48b39ba8..d29ef05d 100644 --- a/nextpy/frontend/components/chakra/forms/radio.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/radio.pyi @@ -9,12 +9,12 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Union -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.chakra.typography.text import Text -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.foreach import Foreach +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra.typography.text import Text +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.foreach import Foreach from nextpy.constants import EventTriggers from nextpy.utils.types import _issubclass from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/forms/rangeslider.pyi b/nextpy/interfaces/react_components/chakra/forms/rangeslider.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/rangeslider.pyi rename to nextpy/interfaces/react_components/chakra/forms/rangeslider.pyi index 96576fdf..f8dad172 100644 --- a/nextpy/frontend/components/chakra/forms/rangeslider.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/rangeslider.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, List, Optional, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralChakraDirection -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralChakraDirection +from nextpy.interfaces.web.react_components.component import Component from nextpy.constants import EventTriggers from nextpy.utils import format from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/forms/select.pyi b/nextpy/interfaces/react_components/chakra/forms/select.pyi similarity index 96% rename from nextpy/frontend/components/chakra/forms/select.pyi rename to nextpy/interfaces/react_components/chakra/forms/select.pyi index ec4b818c..e6e999f3 100644 --- a/nextpy/frontend/components/chakra/forms/select.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/select.pyi @@ -9,12 +9,12 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralInputVariant -from nextpy.frontend.components.chakra.typography.text import Text -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.foreach import Foreach +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralInputVariant +from nextpy.interfaces.web.react_components.chakra.typography.text import Text +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.foreach import Foreach from nextpy.constants import EventTriggers from nextpy.utils.types import _issubclass from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/forms/slider.pyi b/nextpy/interfaces/react_components/chakra/forms/slider.pyi similarity index 98% rename from nextpy/frontend/components/chakra/forms/slider.pyi rename to nextpy/interfaces/react_components/chakra/forms/slider.pyi index b37f3eea..a20ca64f 100644 --- a/nextpy/frontend/components/chakra/forms/slider.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/slider.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Literal, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralChakraDirection -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralChakraDirection +from nextpy.interfaces.web.react_components.component import Component from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/forms/switch.pyi b/nextpy/interfaces/react_components/chakra/forms/switch.pyi similarity index 97% rename from nextpy/frontend/components/chakra/forms/switch.pyi rename to nextpy/interfaces/react_components/chakra/forms/switch.pyi index 51a88b50..c763e29c 100644 --- a/nextpy/frontend/components/chakra/forms/switch.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/switch.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralColorScheme +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralColorScheme from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/forms/textarea.pyi b/nextpy/interfaces/react_components/chakra/forms/textarea.pyi similarity index 94% rename from nextpy/frontend/components/chakra/forms/textarea.pyi rename to nextpy/interfaces/react_components/chakra/forms/textarea.pyi index 49189f20..d6db4d6a 100644 --- a/nextpy/frontend/components/chakra/forms/textarea.pyi +++ b/nextpy/interfaces/react_components/chakra/forms/textarea.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralInputVariant -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.debounce import DebounceInput +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralInputVariant +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.debounce import DebounceInput from nextpy.constants import EventTriggers from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/chakra/layout/aspect_ratio.pyi b/nextpy/interfaces/react_components/chakra/layout/aspect_ratio.pyi similarity index 96% rename from nextpy/frontend/components/chakra/layout/aspect_ratio.pyi rename to nextpy/interfaces/react_components/chakra/layout/aspect_ratio.pyi index fd868380..fb507f4c 100644 --- a/nextpy/frontend/components/chakra/layout/aspect_ratio.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/aspect_ratio.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class AspectRatio(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/layout/box.pyi b/nextpy/interfaces/react_components/chakra/layout/box.pyi similarity index 95% rename from nextpy/frontend/components/chakra/layout/box.pyi rename to nextpy/interfaces/react_components/chakra/layout/box.pyi index 6f288397..4abe3d45 100644 --- a/nextpy/frontend/components/chakra/layout/box.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/box.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.tags import Tag +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.tags import Tag from nextpy.backend.vars import Var class Box(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/layout/card.pyi b/nextpy/interfaces/react_components/chakra/layout/card.pyi similarity index 98% rename from nextpy/frontend/components/chakra/layout/card.pyi rename to nextpy/interfaces/react_components/chakra/layout/card.pyi index 16e6bc62..0e25a57c 100644 --- a/nextpy/frontend/components/chakra/layout/card.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/card.pyi @@ -9,15 +9,15 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Optional -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralCardVariant, LiteralColorScheme, LiteralTagSize, ) -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class CardHeader(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/layout/center.pyi b/nextpy/interfaces/react_components/chakra/layout/center.pyi similarity index 98% rename from nextpy/frontend/components/chakra/layout/center.pyi rename to nextpy/interfaces/react_components/chakra/layout/center.pyi index 28bff46a..808d079c 100644 --- a/nextpy/frontend/components/chakra/layout/center.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/center.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent class Center(ChakraComponent): @overload diff --git a/nextpy/frontend/components/chakra/layout/container.pyi b/nextpy/interfaces/react_components/chakra/layout/container.pyi similarity index 96% rename from nextpy/frontend/components/chakra/layout/container.pyi rename to nextpy/interfaces/react_components/chakra/layout/container.pyi index fc1e0c78..d5bf0ef7 100644 --- a/nextpy/frontend/components/chakra/layout/container.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/container.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class Container(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/layout/flex.pyi b/nextpy/interfaces/react_components/chakra/layout/flex.pyi similarity index 97% rename from nextpy/frontend/components/chakra/layout/flex.pyi rename to nextpy/interfaces/react_components/chakra/layout/flex.pyi index eb3440da..9c48fb43 100644 --- a/nextpy/frontend/components/chakra/layout/flex.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/flex.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List, Union -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class Flex(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/layout/grid.pyi b/nextpy/interfaces/react_components/chakra/layout/grid.pyi similarity index 99% rename from nextpy/frontend/components/chakra/layout/grid.pyi rename to nextpy/interfaces/react_components/chakra/layout/grid.pyi index ad1aed94..060c58d4 100644 --- a/nextpy/frontend/components/chakra/layout/grid.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/grid.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class Grid(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/layout/html.pyi b/nextpy/interfaces/react_components/chakra/layout/html.pyi similarity index 97% rename from nextpy/frontend/components/chakra/layout/html.pyi rename to nextpy/interfaces/react_components/chakra/layout/html.pyi index a4218c30..e7e9ee70 100644 --- a/nextpy/frontend/components/chakra/layout/html.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/html.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Dict -from nextpy.frontend.components.chakra.layout.box import Box +from nextpy.interfaces.web.react_components.chakra.layout.box import Box from nextpy.backend.vars import Var class Html(Box): diff --git a/nextpy/frontend/components/chakra/layout/spacer.pyi b/nextpy/interfaces/react_components/chakra/layout/spacer.pyi similarity index 96% rename from nextpy/frontend/components/chakra/layout/spacer.pyi rename to nextpy/interfaces/react_components/chakra/layout/spacer.pyi index 12171d4f..eacf71b8 100644 --- a/nextpy/frontend/components/chakra/layout/spacer.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/spacer.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent class Spacer(ChakraComponent): @overload diff --git a/nextpy/frontend/components/chakra/layout/stack.pyi b/nextpy/interfaces/react_components/chakra/layout/stack.pyi similarity index 98% rename from nextpy/frontend/components/chakra/layout/stack.pyi rename to nextpy/interfaces/react_components/chakra/layout/stack.pyi index e56ac94d..850d8f35 100644 --- a/nextpy/frontend/components/chakra/layout/stack.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/stack.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralStackDirection +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralStackDirection from nextpy.backend.vars import Var class Stack(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/layout/wrap.pyi b/nextpy/interfaces/react_components/chakra/layout/wrap.pyi similarity index 97% rename from nextpy/frontend/components/chakra/layout/wrap.pyi rename to nextpy/interfaces/react_components/chakra/layout/wrap.pyi index 76b3ee37..d63b610d 100644 --- a/nextpy/frontend/components/chakra/layout/wrap.pyi +++ b/nextpy/interfaces/react_components/chakra/layout/wrap.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Wrap(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/media/avatar.pyi b/nextpy/interfaces/react_components/chakra/media/avatar.pyi similarity index 98% rename from nextpy/frontend/components/chakra/media/avatar.pyi rename to nextpy/interfaces/react_components/chakra/media/avatar.pyi index aeb7f71d..ecd39217 100644 --- a/nextpy/frontend/components/chakra/media/avatar.pyi +++ b/nextpy/interfaces/react_components/chakra/media/avatar.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralAvatarSize +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralAvatarSize from nextpy.backend.vars import Var class Avatar(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/media/icon.pyi b/nextpy/interfaces/react_components/chakra/media/icon.pyi similarity index 98% rename from nextpy/frontend/components/chakra/media/icon.pyi rename to nextpy/interfaces/react_components/chakra/media/icon.pyi index 7fd34369..3a3689f0 100644 --- a/nextpy/frontend/components/chakra/media/icon.pyi +++ b/nextpy/interfaces/react_components/chakra/media/icon.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.utils import format class ChakraIconComponent(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/media/image.pyi b/nextpy/interfaces/react_components/chakra/media/image.pyi similarity index 96% rename from nextpy/frontend/components/chakra/media/image.pyi rename to nextpy/interfaces/react_components/chakra/media/image.pyi index ed37f376..ff85bbe2 100644 --- a/nextpy/frontend/components/chakra/media/image.pyi +++ b/nextpy/interfaces/react_components/chakra/media/image.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Optional, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralImageLoading -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralImageLoading +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Image(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/navigation/breadcrumb.pyi b/nextpy/interfaces/react_components/chakra/navigation/breadcrumb.pyi similarity index 97% rename from nextpy/frontend/components/chakra/navigation/breadcrumb.pyi rename to nextpy/interfaces/react_components/chakra/navigation/breadcrumb.pyi index 9bed888b..257c1853 100644 --- a/nextpy/frontend/components/chakra/navigation/breadcrumb.pyi +++ b/nextpy/interfaces/react_components/chakra/navigation/breadcrumb.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.chakra.navigation.link import Link -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.foreach import Foreach +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra.navigation.link import Link +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.foreach import Foreach from nextpy.backend.vars import Var class Breadcrumb(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/navigation/link.pyi b/nextpy/interfaces/react_components/chakra/navigation/link.pyi similarity index 93% rename from nextpy/frontend/components/chakra/navigation/link.pyi rename to nextpy/interfaces/react_components/chakra/navigation/link.pyi index 0875f509..0e674cb7 100644 --- a/nextpy/frontend/components/chakra/navigation/link.pyi +++ b/nextpy/interfaces/react_components/chakra/navigation/link.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.next.link import NextLink -from nextpy.frontend import imports +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.next.link import NextLink +from nextpy.interfaces.web import imports from nextpy.backend.vars import BaseVar, Var next_link = NextLink.create() diff --git a/nextpy/frontend/components/chakra/navigation/linkoverlay.pyi b/nextpy/interfaces/react_components/chakra/navigation/linkoverlay.pyi similarity index 98% rename from nextpy/frontend/components/chakra/navigation/linkoverlay.pyi rename to nextpy/interfaces/react_components/chakra/navigation/linkoverlay.pyi index b8126e45..d9c05857 100644 --- a/nextpy/frontend/components/chakra/navigation/linkoverlay.pyi +++ b/nextpy/interfaces/react_components/chakra/navigation/linkoverlay.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class LinkOverlay(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/navigation/stepper.pyi b/nextpy/interfaces/react_components/chakra/navigation/stepper.pyi similarity index 99% rename from nextpy/frontend/components/chakra/navigation/stepper.pyi rename to nextpy/interfaces/react_components/chakra/navigation/stepper.pyi index 0a1328b8..7786ff87 100644 --- a/nextpy/frontend/components/chakra/navigation/stepper.pyi +++ b/nextpy/interfaces/react_components/chakra/navigation/stepper.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List, Literal, Optional, Tuple -from nextpy.frontend.components.chakra import ChakraComponent, LiteralColorScheme -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralColorScheme +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Stepper(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/overlay/alertdialog.pyi b/nextpy/interfaces/react_components/chakra/overlay/alertdialog.pyi similarity index 98% rename from nextpy/frontend/components/chakra/overlay/alertdialog.pyi rename to nextpy/interfaces/react_components/chakra/overlay/alertdialog.pyi index 6bc179f1..ee483d11 100644 --- a/nextpy/frontend/components/chakra/overlay/alertdialog.pyi +++ b/nextpy/interfaces/react_components/chakra/overlay/alertdialog.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralAlertDialogSize -from nextpy.frontend.components.chakra.media.icon import Icon -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralAlertDialogSize +from nextpy.interfaces.web.react_components.chakra.media.icon import Icon +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class AlertDialog(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/overlay/drawer.pyi b/nextpy/interfaces/react_components/chakra/overlay/drawer.pyi similarity index 99% rename from nextpy/frontend/components/chakra/overlay/drawer.pyi rename to nextpy/interfaces/react_components/chakra/overlay/drawer.pyi index ba97e59b..76806b3d 100644 --- a/nextpy/frontend/components/chakra/overlay/drawer.pyi +++ b/nextpy/interfaces/react_components/chakra/overlay/drawer.pyi @@ -9,15 +9,15 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralColorScheme, LiteralDrawerSize, ) -from nextpy.frontend.components.chakra.media.icon import Icon -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra.media.icon import Icon +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Drawer(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/overlay/menu.pyi b/nextpy/interfaces/react_components/chakra/overlay/menu.pyi similarity index 99% rename from nextpy/frontend/components/chakra/overlay/menu.pyi rename to nextpy/interfaces/react_components/chakra/overlay/menu.pyi index 87f6bbf7..e563b8ec 100644 --- a/nextpy/frontend/components/chakra/overlay/menu.pyi +++ b/nextpy/interfaces/react_components/chakra/overlay/menu.pyi @@ -9,16 +9,16 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, List, Optional, Union -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralChakraDirection, LiteralMenuOption, LiteralMenuStrategy, ) -from nextpy.frontend.components.chakra.forms.button import Button -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra.forms.button import Button +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Menu(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/overlay/modal.pyi b/nextpy/interfaces/react_components/chakra/overlay/modal.pyi similarity index 98% rename from nextpy/frontend/components/chakra/overlay/modal.pyi rename to nextpy/interfaces/react_components/chakra/overlay/modal.pyi index b5bf1533..dd1bf5ed 100644 --- a/nextpy/frontend/components/chakra/overlay/modal.pyi +++ b/nextpy/interfaces/react_components/chakra/overlay/modal.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Literal, Optional, Union -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.chakra.media import Icon -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.chakra.media import Icon +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var ModalSizes = Literal["xs", "sm", "md", "lg", "xl", "full"] diff --git a/nextpy/frontend/components/chakra/overlay/popover.pyi b/nextpy/interfaces/react_components/chakra/overlay/popover.pyi similarity index 99% rename from nextpy/frontend/components/chakra/overlay/popover.pyi rename to nextpy/interfaces/react_components/chakra/overlay/popover.pyi index efa08a27..d28d576f 100644 --- a/nextpy/frontend/components/chakra/overlay/popover.pyi +++ b/nextpy/interfaces/react_components/chakra/overlay/popover.pyi @@ -9,15 +9,15 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ( +from nextpy.interfaces.web.react_components.chakra import ( ChakraComponent, LiteralChakraDirection, LiteralMenuStrategy, LiteralPopOverTrigger, ) -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class Popover(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/overlay/tooltip.pyi b/nextpy/interfaces/react_components/chakra/overlay/tooltip.pyi similarity index 97% rename from nextpy/frontend/components/chakra/overlay/tooltip.pyi rename to nextpy/interfaces/react_components/chakra/overlay/tooltip.pyi index 412882e4..cfd4de54 100644 --- a/nextpy/frontend/components/chakra/overlay/tooltip.pyi +++ b/nextpy/interfaces/react_components/chakra/overlay/tooltip.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Union -from nextpy.frontend.components.chakra import ChakraComponent, LiteralChakraDirection +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralChakraDirection from nextpy.backend.vars import Var class Tooltip(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/typography/heading.pyi b/nextpy/interfaces/react_components/chakra/typography/heading.pyi similarity index 96% rename from nextpy/frontend/components/chakra/typography/heading.pyi rename to nextpy/interfaces/react_components/chakra/typography/heading.pyi index 5e84d1f2..eb9f4bf4 100644 --- a/nextpy/frontend/components/chakra/typography/heading.pyi +++ b/nextpy/interfaces/react_components/chakra/typography/heading.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent, LiteralHeadingSize +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent, LiteralHeadingSize from nextpy.backend.vars import Var class Heading(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/typography/highlight.pyi b/nextpy/interfaces/react_components/chakra/typography/highlight.pyi similarity index 95% rename from nextpy/frontend/components/chakra/typography/highlight.pyi rename to nextpy/interfaces/react_components/chakra/typography/highlight.pyi index e2a81976..b3e2c092 100644 --- a/nextpy/frontend/components/chakra/typography/highlight.pyi +++ b/nextpy/interfaces/react_components/chakra/typography/highlight.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Dict, List -from nextpy.frontend.components.chakra import ChakraComponent -from nextpy.frontend.components.tags import Tag +from nextpy.interfaces.web.react_components.chakra import ChakraComponent +from nextpy.interfaces.web.react_components.tags import Tag from nextpy.backend.vars import Var class Highlight(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/typography/span.pyi b/nextpy/interfaces/react_components/chakra/typography/span.pyi similarity index 96% rename from nextpy/frontend/components/chakra/typography/span.pyi rename to nextpy/interfaces/react_components/chakra/typography/span.pyi index 02980ac0..4eed3938 100644 --- a/nextpy/frontend/components/chakra/typography/span.pyi +++ b/nextpy/interfaces/react_components/chakra/typography/span.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class Span(ChakraComponent): diff --git a/nextpy/frontend/components/chakra/typography/text.pyi b/nextpy/interfaces/react_components/chakra/typography/text.pyi similarity index 97% rename from nextpy/frontend/components/chakra/typography/text.pyi rename to nextpy/interfaces/react_components/chakra/typography/text.pyi index 69fe6356..12c397c0 100644 --- a/nextpy/frontend/components/chakra/typography/text.pyi +++ b/nextpy/interfaces/react_components/chakra/typography/text.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.chakra import ChakraComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.chakra import ChakraComponent from nextpy.backend.vars import Var class Text(ChakraComponent): diff --git a/nextpy/frontend/components/component.py b/nextpy/interfaces/react_components/component.py similarity index 98% rename from nextpy/frontend/components/component.py rename to nextpy/interfaces/react_components/component.py index 0df3ceee..38e88c94 100644 --- a/nextpy/frontend/components/component.py +++ b/nextpy/interfaces/react_components/component.py @@ -43,10 +43,10 @@ MemoizationMode, PageNames, ) -from nextpy.frontend import imports -from nextpy.frontend.components.tags import Tag -from nextpy.frontend.imports import ReactImportVar -from nextpy.frontend.style import Style, format_as_emotion +from nextpy.interfaces.web import imports +from nextpy.interfaces.web.react_components.tags import Tag +from nextpy.interfaces.web.imports import ReactImportVar +from nextpy.interfaces.web.style import Style, format_as_emotion from nextpy.utils import console, format, types from nextpy.utils.serializers import serializer @@ -556,7 +556,7 @@ def create(cls, *children, **props) -> Component: TypeError: If an invalid child is passed. """ # Import here to avoid circular imports. - from nextpy.frontend.components.base.bare import Bare + from nextpy.interfaces.web.react_components.base.bare import Bare # Validate all the children. for child in children: @@ -1384,7 +1384,7 @@ def create(cls, component: Component) -> StatefulComponent | None: Returns: The stateful component or None if the component should not be memoized. """ - from nextpy.frontend.components.core.foreach import Foreach + from nextpy.interfaces.web.react_components.core.foreach import Foreach if component._memoization_mode.disposition == MemoizationDisposition.NEVER: # Never memoize this component. @@ -1466,9 +1466,9 @@ def _child_var(child: Component) -> Var | Component: Returns: The Var from the child component or the child itself (for regular cases). """ - from nextpy.frontend.components.base.bare import Bare - from nextpy.frontend.components.core.cond import Cond - from nextpy.frontend.components.core.foreach import Foreach + from nextpy.interfaces.web.react_components.base.bare import Bare + from nextpy.interfaces.web.react_components.core.cond import Cond + from nextpy.interfaces.web.react_components.core.foreach import Foreach if isinstance(child, Bare): return child.contents diff --git a/nextpy/frontend/components/core/banner.pyi b/nextpy/interfaces/react_components/core/banner.pyi similarity index 94% rename from nextpy/frontend/components/core/banner.pyi rename to nextpy/interfaces/react_components/core/banner.pyi index 990c79f9..c00789d2 100644 --- a/nextpy/frontend/components/core/banner.pyi +++ b/nextpy/interfaces/react_components/core/banner.pyi @@ -9,16 +9,16 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Optional -from nextpy.frontend.components.base.bare import Bare -from nextpy.frontend.components.chakra.layout import Box -from nextpy.frontend.components.chakra.overlay.modal import Modal -from nextpy.frontend.components.chakra.typography import Text -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.cond import cond +from nextpy.interfaces.web.react_components.base.bare import Bare +from nextpy.interfaces.web.react_components.chakra.layout import Box +from nextpy.interfaces.web.react_components.chakra.overlay.modal import Modal +from nextpy.interfaces.web.react_components.chakra.typography import Text +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.cond import cond from nextpy.constants import Hooks, Imports -from nextpy.frontend import imports +from nextpy.interfaces.web import imports from nextpy.backend.vars import Var, VarData connect_error_var_data: VarData diff --git a/nextpy/frontend/components/core/client_side_routing.pyi b/nextpy/interfaces/react_components/core/client_side_routing.pyi similarity index 97% rename from nextpy/frontend/components/core/client_side_routing.pyi rename to nextpy/interfaces/react_components/core/client_side_routing.pyi index f1dc854b..81b9c768 100644 --- a/nextpy/frontend/components/core/client_side_routing.pyi +++ b/nextpy/interfaces/react_components/core/client_side_routing.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from nextpy import constants -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.cond import cond +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.cond import cond from nextpy.backend.vars import Var route_not_found: Var diff --git a/nextpy/frontend/components/core/debounce.pyi b/nextpy/interfaces/react_components/core/debounce.pyi similarity index 97% rename from nextpy/frontend/components/core/debounce.pyi rename to nextpy/interfaces/react_components/core/debounce.pyi index 6106772a..77df86f4 100644 --- a/nextpy/frontend/components/core/debounce.pyi +++ b/nextpy/interfaces/react_components/core/debounce.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Type -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.constants import EventTriggers from nextpy.backend.vars import Var, VarData diff --git a/nextpy/frontend/components/core/layout/center.pyi b/nextpy/interfaces/react_components/core/layout/center.pyi similarity index 97% rename from nextpy/frontend/components/core/layout/center.pyi rename to nextpy/interfaces/react_components/core/layout/center.pyi index cca28f4d..8e4bbaa4 100644 --- a/nextpy/frontend/components/core/layout/center.pyi +++ b/nextpy/interfaces/react_components/core/layout/center.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.el.elements.typography import Div +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.el.elements.typography import Div class Center(Div): @overload diff --git a/nextpy/frontend/components/core/layout/spacer.pyi b/nextpy/interfaces/react_components/core/layout/spacer.pyi similarity index 97% rename from nextpy/frontend/components/core/layout/spacer.pyi rename to nextpy/interfaces/react_components/core/layout/spacer.pyi index cc40dcd5..13e09164 100644 --- a/nextpy/frontend/components/core/layout/spacer.pyi +++ b/nextpy/interfaces/react_components/core/layout/spacer.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.el.elements.typography import Div +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.el.elements.typography import Div class Spacer(Div): @overload diff --git a/nextpy/frontend/components/core/layout/stack.pyi b/nextpy/interfaces/react_components/core/layout/stack.pyi similarity index 99% rename from nextpy/frontend/components/core/layout/stack.pyi rename to nextpy/interfaces/react_components/core/layout/stack.pyi index bc62ed8a..d7a031ee 100644 --- a/nextpy/frontend/components/core/layout/stack.pyi +++ b/nextpy/interfaces/react_components/core/layout/stack.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal, Optional -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.el.elements.typography import Div +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.el.elements.typography import Div LiteralJustify = Literal["start", "center", "end"] LiteralAlign = Literal["start", "center", "end", "stretch"] diff --git a/nextpy/frontend/components/core/upload.pyi b/nextpy/interfaces/react_components/core/upload.pyi similarity index 96% rename from nextpy/frontend/components/core/upload.pyi rename to nextpy/interfaces/react_components/core/upload.pyi index 7a07c189..95ef889f 100644 --- a/nextpy/frontend/components/core/upload.pyi +++ b/nextpy/interfaces/react_components/core/upload.pyi @@ -9,15 +9,15 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Optional, Union from nextpy import constants -from nextpy.frontend.components.chakra.forms.input import Input -from nextpy.frontend.components.chakra.layout.box import Box -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.chakra.forms.input import Input +from nextpy.interfaces.web.react_components.chakra.layout.box import Box +from nextpy.interfaces.web.react_components.component import Component from nextpy.constants import Dirs from nextpy.backend.event import CallableEventSpec, EventChain, EventSpec, call_script -from nextpy.frontend import imports +from nextpy.interfaces.web import imports from nextpy.backend.vars import BaseVar, CallableVar, Var, VarData DEFAULT_UPLOAD_ID: str diff --git a/nextpy/frontend/components/el/element.pyi b/nextpy/interfaces/react_components/el/element.pyi similarity index 96% rename from nextpy/frontend/components/el/element.pyi rename to nextpy/interfaces/react_components/el/element.pyi index 58fdba72..1afa8fbc 100644 --- a/nextpy/frontend/components/el/element.pyi +++ b/nextpy/interfaces/react_components/el/element.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component class Element(Component): @overload diff --git a/nextpy/frontend/components/el/elements/base.pyi b/nextpy/interfaces/react_components/el/elements/base.pyi similarity index 98% rename from nextpy/frontend/components/el/elements/base.pyi rename to nextpy/interfaces/react_components/el/elements/base.pyi index 6f946970..c9674c1b 100644 --- a/nextpy/frontend/components/el/elements/base.pyi +++ b/nextpy/interfaces/react_components/el/elements/base.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union -from nextpy.frontend.components.el.element import Element +from nextpy.interfaces.web.react_components.el.element import Element from nextpy.backend.vars import Var as Var class BaseHTML(Element): diff --git a/nextpy/frontend/components/el/elements/forms.pyi b/nextpy/interfaces/react_components/el/elements/forms.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/forms.pyi rename to nextpy/interfaces/react_components/el/elements/forms.pyi index 75f1bd7e..14730c34 100644 --- a/nextpy/frontend/components/el/elements/forms.pyi +++ b/nextpy/interfaces/react_components/el/elements/forms.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Union -from nextpy.frontend.components.el.element import Element +from nextpy.interfaces.web.react_components.el.element import Element from nextpy.constants.event import EventTriggers from nextpy.backend.vars import Var from .base import BaseHTML diff --git a/nextpy/interfaces/react_components/el/elements/inline.pyi b/nextpy/interfaces/react_components/el/elements/inline.pyi new file mode 100644 index 00000000..58d80ed9 --- /dev/null +++ b/nextpy/interfaces/react_components/el/elements/inline.pyi @@ -0,0 +1,3944 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/el/elements/inline.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Union +from nextpy.backend.vars import Var +from .base import BaseHTML + +class A(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + download: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + href: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + href_lang: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + media: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + ping: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + referrer_policy: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + rel: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + shape: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + target: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "A": + """Create the component. + + Args: + *children: The children of the component. + download: Specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink. + href: Specifies the URL of the page the link goes to + href_lang: Specifies the language of the linked document + media: Specifies what media/device the linked document is optimized for + ping: Specifies which referrer is sent when fetching the resource + referrer_policy: Specifies the relationship between the current document and the linked document + rel: Specifies the relationship between the linked document and the current document + shape: Specifies the shape of the area + target: Specifies where to open the linked document + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Abbr(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Abbr": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class B(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "B": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Bdi(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Bdi": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Bdo(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Bdo": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Br(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Br": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Cite(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Cite": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Code(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Code": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Data(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + value: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Data": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Dfn(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Dfn": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Em(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Em": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class I(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "I": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Kbd(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Kbd": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Mark(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Mark": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Q(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + cite: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Q": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Rp(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Rp": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Rt(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Rt": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Ruby(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Ruby": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class S(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "S": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Samp(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Samp": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Small(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Small": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Span(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Span": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Strong(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Strong": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Sub(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Sub": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Sup(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Sup": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Time(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + date_time: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Time": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class U(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "U": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Wbr(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Wbr": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/interfaces/react_components/el/elements/media.pyi b/nextpy/interfaces/react_components/el/elements/media.pyi new file mode 100644 index 00000000..5414427d --- /dev/null +++ b/nextpy/interfaces/react_components/el/elements/media.pyi @@ -0,0 +1,2243 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/el/elements/media.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Union +from nextpy.backend.vars import Var as Var +from .base import BaseHTML + +class Area(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + alt: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + coords: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + download: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + href: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + href_lang: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + media: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + ping: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + referrer_policy: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + rel: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + shape: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + target: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Area": + """Create the component. + + Args: + *children: The children of the component. + alt: Alternate text for the area, used for accessibility + coords: Coordinates to define the shape of the area + download: Specifies that the target will be downloaded when clicked + href: Hyperlink reference for the area + href_lang: Language of the linked resource + media: Specifies what media/device the linked resource is optimized for + ping: A list of URLs to be notified if the user follows the hyperlink + referrer_policy: Specifies which referrer information to send with the link + rel: Specifies the relationship of the target object to the link object + shape: Defines the shape of the area (rectangle, circle, polygon) + target: Specifies where to open the linked document + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Audio(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + auto_play: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + buffered: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + controls: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + cross_origin: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + loop: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + muted: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + preload: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + src: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Audio": + """Create the component. + + Args: + *children: The children of the component. + auto_play: Specifies that the audio will start playing as soon as it is ready + buffered: Represents the time range of the buffered media + controls: Displays the standard audio controls + cross_origin: Configures the CORS requests for the element + loop: Specifies that the audio will loop + muted: Indicates whether the audio is muted by default + preload: Specifies how the audio file should be preloaded + src: URL of the audio to play + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Img(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + alt: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + border: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + cross_origin: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + decoding: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + height: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + intrinsicsize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + ismap: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + loading: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + referrer_policy: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + sizes: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + src: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + src_set: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + use_map: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + width: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Img": + """Create the component. + + Args: + *children: The children of the component. + align: Image alignment with respect to its surrounding elements + alt: Alternative text for the image + border: Border width around the image + cross_origin: Configures the CORS requests for the image + decoding: How the image should be decoded + height: The intrinsic height of the image + intrinsicsize: Specifies an intrinsic size for the image + ismap: Whether the image is a server-side image map + loading: Specifies the loading behavior of the image + referrer_policy: Referrer policy for the image + sizes: Sizes of the image for different layouts + src: URL of the image to display + src_set: A set of source sizes and URLs for responsive images + use_map: The name of the map to use with the image + width: The intrinsic width of the image + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Map(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Map": + """Create the component. + + Args: + *children: The children of the component. + name: Name of the map, referenced by the 'usemap' attribute in 'img' and 'object' elements + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Track(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + default: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + kind: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + label: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + src: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + src_lang: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Track": + """Create the component. + + Args: + *children: The children of the component. + default: Indicates that the track should be enabled unless the user's preferences indicate otherwise + kind: Specifies the kind of text track + label: Title of the text track, used by the browser when listing available text tracks + src: URL of the track file + src_lang: Language of the track text data + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Video(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + auto_play: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + buffered: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + controls: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + cross_origin: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + height: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + loop: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + muted: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + plays_inline: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + poster: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + preload: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + src: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + width: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Video": + """Create the component. + + Args: + *children: The children of the component. + auto_play: Specifies that the video will start playing as soon as it is ready + buffered: Represents the time range of the buffered media + controls: Displays the standard video controls + cross_origin: Configures the CORS requests for the video + height: The intrinsic height of the video + loop: Specifies that the video will loop + muted: Indicates whether the video is muted by default + plays_inline: Indicates that the video should play 'inline', inside its element's playback area + poster: URL of an image to show while the video is downloading, or until the user hits the play button + preload: Specifies how the video file should be preloaded + src: URL of the video to play + width: The intrinsic width of the video + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Embed(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + height: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + src: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + width: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Embed": + """Create the component. + + Args: + *children: The children of the component. + height: The intrinsic height of the embedded content + src: URL of the embedded content + type: Media type of the embedded content + width: The intrinsic width of the embedded content + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Iframe(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + allow: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + csp: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + height: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + loading: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + referrer_policy: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + sandbox: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + src: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + src_doc: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + width: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Iframe": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the iframe within the page or surrounding elements + allow: Permissions policy for the iframe + csp: Content Security Policy to apply to the iframe's content + height: The height of the iframe + loading: Specifies the loading behavior of the iframe + name: Name of the iframe, used as a target for hyperlinks and forms + referrer_policy: Referrer policy for the iframe + sandbox: Security restrictions for the content in the iframe + src: URL of the document to display in the iframe + src_doc: HTML content to embed directly within the iframe + width: The width of the iframe + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Object(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + border: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + data: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + form: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + height: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + use_map: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + width: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Object": + """Create the component. + + Args: + *children: The children of the component. + border: Border width around the object + data: URL of the data to be used by the object + form: Associates the object with a form element + height: The intrinsic height of the object + name: Name of the object, used for scripting or as a target for forms and links + type: Media type of the data specified in the data attribute + use_map: Name of an image map to use with the object + width: The intrinsic width of the object + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Picture(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Picture": + """Create the component. + + Args: + *children: The children of the component. + access_key: No unique attributes, only common ones are inherited Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Portal(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Portal": + """Create the component. + + Args: + *children: The children of the component. + access_key: No unique attributes, only common ones are inherited Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Source(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + media: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + sizes: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + src: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + src_set: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Source": + """Create the component. + + Args: + *children: The children of the component. + media: Media query indicating what device the linked resource is optimized for + sizes: Sizes of the source for different layouts + src: URL of the media file or an image for the element to use + src_set: A set of source sizes and URLs for responsive images + type: Media type of the source + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Svg(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + width: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + height: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Svg": + """Create the component. + + Args: + *children: The children of the component. + width: Specifies the width of the element + height: Specifies the height of the element + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Path(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + d: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Path": + """Create the component. + + Args: + *children: The children of the component. + d: Defines the shape of the path + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/el/elements/metadata.pyi b/nextpy/interfaces/react_components/el/elements/metadata.pyi similarity index 99% rename from nextpy/frontend/components/el/elements/metadata.pyi rename to nextpy/interfaces/react_components/el/elements/metadata.pyi index 7cf34532..92bc4b8c 100644 --- a/nextpy/frontend/components/el/elements/metadata.pyi +++ b/nextpy/interfaces/react_components/el/elements/metadata.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Union -from nextpy.frontend.components.el.element import Element +from nextpy.interfaces.web.react_components.el.element import Element from nextpy.backend.vars import Var as Var from .base import BaseHTML diff --git a/nextpy/interfaces/react_components/el/elements/other.pyi b/nextpy/interfaces/react_components/el/elements/other.pyi new file mode 100644 index 00000000..8c83cabe --- /dev/null +++ b/nextpy/interfaces/react_components/el/elements/other.pyi @@ -0,0 +1,996 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/el/elements/other.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Union +from nextpy.backend.vars import Var as Var +from .base import BaseHTML + +class Details(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + open: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Details": + """Create the component. + + Args: + *children: The children of the component. + open: Indicates whether the details will be visible (expanded) to the user + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Dialog(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + open: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Dialog": + """Create the component. + + Args: + *children: The children of the component. + open: Indicates whether the dialog is active and can be interacted with + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Summary(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Summary": + """Create the component. + + Args: + *children: The children of the component. + access_key: No unique attributes, only common ones are inherited; used as a summary or caption for a
element Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Slot(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Slot": + """Create the component. + + Args: + *children: The children of the component. + access_key: No unique attributes, only common ones are inherited; used as a placeholder inside a web component Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Template(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Template": + """Create the component. + + Args: + *children: The children of the component. + access_key: No unique attributes, only common ones are inherited; used for declaring fragments of HTML that can be cloned and inserted in the document Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Math(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Math": + """Create the component. + + Args: + *children: The children of the component. + access_key: No unique attributes, only common ones are inherited; used for displaying mathematical expressions Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Html(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + manifest: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Html": + """Create the component. + + Args: + *children: The children of the component. + manifest: Specifies the URL of the document's cache manifest (obsolete in HTML5) + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/interfaces/react_components/el/elements/scripts.pyi b/nextpy/interfaces/react_components/el/elements/scripts.pyi new file mode 100644 index 00000000..1d94d1c4 --- /dev/null +++ b/nextpy/interfaces/react_components/el/elements/scripts.pyi @@ -0,0 +1,472 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/el/elements/scripts.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Union +from nextpy.backend.vars import Var as Var +from .base import BaseHTML + +class Canvas(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + height: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + width: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Canvas": + """Create the component. + + Args: + *children: The children of the component. + height: The height of the canvas in CSS pixels + width: The width of the canvas in CSS pixels + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Noscript(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Noscript": + """Create the component. + + Args: + *children: The children of the component. + access_key: No unique attributes, only common ones are inherited Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Script(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + async_: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + char_set: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + cross_origin: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + defer: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + integrity: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + language: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + referrer_policy: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + src: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Script": + """Create the component. + + Args: + *children: The children of the component. + async_: Indicates that the script should be executed asynchronously + char_set: Character encoding of the external script + cross_origin: Configures the CORS requests for the script + defer: Indicates that the script should be executed after the page has finished parsing + integrity: Security feature allowing browsers to verify what they fetch + language: Specifies the scripting language used in the type attribute + referrer_policy: Specifies which referrer information to send when fetching the script + src: URL of an external script + type: Specifies the MIME type of the script + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/interfaces/react_components/el/elements/sectioning.pyi b/nextpy/interfaces/react_components/el/elements/sectioning.pyi new file mode 100644 index 00000000..9ae7b589 --- /dev/null +++ b/nextpy/interfaces/react_components/el/elements/sectioning.pyi @@ -0,0 +1,2106 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/el/elements/sectioning.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Union +from nextpy.backend.vars import Var as Var +from .base import BaseHTML + +class Body(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + background: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Body": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Address(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Address": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Article(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Article": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Aside(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Aside": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Footer(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Footer": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Header(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Header": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class H1(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "H1": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class H2(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "H2": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class H3(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "H3": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class H4(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "H4": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class H5(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "H5": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class H6(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "H6": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Main(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Main": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Nav(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Nav": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Section(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Section": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/interfaces/react_components/el/elements/tables.pyi b/nextpy/interfaces/react_components/el/elements/tables.pyi new file mode 100644 index 00000000..978a0838 --- /dev/null +++ b/nextpy/interfaces/react_components/el/elements/tables.pyi @@ -0,0 +1,1529 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/el/elements/tables.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Union +from nextpy.backend.vars import Var as Var +from .base import BaseHTML + +class Caption(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Caption": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the caption + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Col(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + span: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Col": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the content within the column + bgcolor: Background color of the column + span: Number of columns the col element spans + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Colgroup(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + span: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Colgroup": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the content within the column group + bgcolor: Background color of the column group + span: Number of columns the colgroup element spans + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Table(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + background: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + border: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + summary: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Table": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the table + background: Background image for the table + bgcolor: Background color of the table + border: Specifies the width of the border around the table + summary: Provides a summary of the table's purpose and structure + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Tbody(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Tbody": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the content within the table body + bgcolor: Background color of the table body + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Td(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + background: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + col_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + headers: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + row_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Td": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the content within the table cell + background: Background image for the table cell + bgcolor: Background color of the table cell + col_span: Number of columns a cell should span + headers: IDs of the headers associated with this cell + row_span: Number of rows a cell should span + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Tfoot(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Tfoot": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the content within the table footer + bgcolor: Background color of the table footer + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Th(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + background: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + col_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + headers: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + row_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + scope: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Th": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the content within the table header cell + background: Background image for the table header cell + bgcolor: Background color of the table header cell + col_span: Number of columns a header cell should span + headers: IDs of the headers associated with this header cell + row_span: Number of rows a header cell should span + scope: Scope of the header cell (row, col, rowgroup, colgroup) + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Thead(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Thead": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the content within the table header + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Tr(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Tr": + """Create the component. + + Args: + *children: The children of the component. + align: Alignment of the content within the table row + bgcolor: Background color of the table row + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/interfaces/react_components/el/elements/typography.pyi b/nextpy/interfaces/react_components/el/elements/typography.pyi new file mode 100644 index 00000000..3676514b --- /dev/null +++ b/nextpy/interfaces/react_components/el/elements/typography.pyi @@ -0,0 +1,2134 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/el/elements/typography.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Union +from nextpy.backend.vars import Var as Var +from .base import BaseHTML + +class Blockquote(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + cite: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Blockquote": + """Create the component. + + Args: + *children: The children of the component. + cite: Define the title of a work. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Dd(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Dd": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Div(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Div": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Dl(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Dl": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Dt(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Dt": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Figcaption(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Figcaption": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Hr(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + color: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Hr": + """Create the component. + + Args: + *children: The children of the component. + align: Used to specify the alignment of text content of The Element. this attribute is used in all elements. + color: Used to specify the color of a Horizontal rule. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Li(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Li": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Menu(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Menu": + """Create the component. + + Args: + *children: The children of the component. + type: Specifies that the menu element is a context menu. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Ol(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + reversed: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + start: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Ol": + """Create the component. + + Args: + *children: The children of the component. + reversed: Reverses the order of the list. + start: Specifies the start value of the first list item in an ordered list. + type: Specifies the kind of marker to use in the list (letters or numbers). + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class P(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "P": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Pre(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Pre": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Ul(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Ul": + """Create the component. + + Args: + *children: The children of the component. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Ins(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + cite: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + date_time: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Ins": + """Create the component. + + Args: + *children: The children of the component. + cite: Specifies the URL of the document that explains the reason why the text was inserted/changed. + date_time: Specifies the date and time of when the text was inserted/changed. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Del(BaseHTML): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + cite: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + date_time: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Del": + """Create the component. + + Args: + *children: The children of the component. + cite: Specifies the URL of the document that explains the reason why the text was deleted. + date_time: Specifies the date and time of when the text was deleted. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/glide_datagrid/dataeditor.pyi b/nextpy/interfaces/react_components/glide_datagrid/dataeditor.pyi similarity index 97% rename from nextpy/frontend/components/glide_datagrid/dataeditor.pyi rename to nextpy/interfaces/react_components/glide_datagrid/dataeditor.pyi index ca6a649e..5cbded07 100644 --- a/nextpy/frontend/components/glide_datagrid/dataeditor.pyi +++ b/nextpy/interfaces/react_components/glide_datagrid/dataeditor.pyi @@ -9,15 +9,15 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from enum import Enum from typing import Any, Callable, Dict, List, Literal, Optional, Union from nextpy.base import Base -from nextpy.frontend.components.component import Component, NoSSRComponent -from nextpy.frontend.components.literals import LiteralRowMarker +from nextpy.interfaces.web.react_components.component import Component, NoSSRComponent +from nextpy.interfaces.web.react_components.literals import LiteralRowMarker from nextpy.utils import console, format, types -from nextpy.frontend import imports -from nextpy.frontend.imports import ReactImportVar +from nextpy.interfaces.web import imports +from nextpy.interfaces.web.imports import ReactImportVar from nextpy.utils.serializers import serializer from nextpy.backend.vars import Var, get_unique_variable_name diff --git a/nextpy/frontend/components/gridjs/datatable.pyi b/nextpy/interfaces/react_components/gridjs/datatable.pyi similarity index 97% rename from nextpy/frontend/components/gridjs/datatable.pyi rename to nextpy/interfaces/react_components/gridjs/datatable.pyi index 02f6eedd..9dfc8012 100644 --- a/nextpy/frontend/components/gridjs/datatable.pyi +++ b/nextpy/interfaces/react_components/gridjs/datatable.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Union -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.tags import Tag -from nextpy.frontend import imports +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.tags import Tag +from nextpy.interfaces.web import imports from nextpy.utils import types from nextpy.utils.serializers import serialize from nextpy.backend.vars import BaseVar, ComputedVar, Var diff --git a/nextpy/frontend/components/leaflet/leaflet.py b/nextpy/interfaces/react_components/leaflet/leaflet.py similarity index 96% rename from nextpy/frontend/components/leaflet/leaflet.py rename to nextpy/interfaces/react_components/leaflet/leaflet.py index 7ec38cde..9527e490 100644 --- a/nextpy/frontend/components/leaflet/leaflet.py +++ b/nextpy/interfaces/react_components/leaflet/leaflet.py @@ -3,8 +3,8 @@ """Leaflet mapping components."".""" from nextpy.backend.vars import Var -from nextpy.frontend.components.component import Component -from nextpy.frontend.style import Style +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.style import Style class LeafletLib(Component): diff --git a/nextpy/frontend/components/markdown/markdown.py b/nextpy/interfaces/react_components/markdown/markdown.py similarity index 92% rename from nextpy/frontend/components/markdown/markdown.py rename to nextpy/interfaces/react_components/markdown/markdown.py index 564701e6..76f39cbc 100644 --- a/nextpy/frontend/components/markdown/markdown.py +++ b/nextpy/interfaces/react_components/markdown/markdown.py @@ -12,19 +12,19 @@ from nextpy.backend.vars import Var from nextpy.build.compiler import utils -from nextpy.frontend import imports -from nextpy.frontend.components.chakra.datadisplay.list import ( +from nextpy.interfaces.web import imports +from nextpy.interfaces.web.react_components.chakra.datadisplay.list import ( ListItem, OrderedList, UnorderedList, ) -from nextpy.frontend.components.chakra.navigation import Link -from nextpy.frontend.components.chakra.typography.heading import Heading -from nextpy.frontend.components.chakra.typography.text import Text -from nextpy.frontend.components.component import Component, CustomComponent -from nextpy.frontend.components.tags.tag import Tag -from nextpy.frontend.imports import ReactImportVar -from nextpy.frontend.style import Style +from nextpy.interfaces.web.react_components.chakra.navigation import Link +from nextpy.interfaces.web.react_components.chakra.typography.heading import Heading +from nextpy.interfaces.web.react_components.chakra.typography.text import Text +from nextpy.interfaces.web.react_components.component import Component, CustomComponent +from nextpy.interfaces.web.react_components.tags.tag import Tag +from nextpy.interfaces.web.imports import ReactImportVar +from nextpy.interfaces.web.style import Style from nextpy.utils import console, types # Special vars used in the component map. @@ -53,7 +53,7 @@ def get_base_component_map() -> dict[str, Callable]: Returns: The base component map. """ - from nextpy.frontend.components.chakra.datadisplay.code import Code, CodeBlock + from nextpy.interfaces.web.react_components.chakra.datadisplay.code import Code, CodeBlock return { "h1": lambda value: Heading.create( @@ -158,7 +158,7 @@ def get_custom_components( def _get_imports(self) -> imports.ImportDict: # Import here to avoid circular imports. - from nextpy.frontend.components.chakra.datadisplay.code import Code, CodeBlock + from nextpy.interfaces.web.react_components.chakra.datadisplay.code import Code, CodeBlock imports = super()._get_imports() diff --git a/nextpy/frontend/components/markdown/markdown.pyi b/nextpy/interfaces/react_components/markdown/markdown.pyi similarity index 88% rename from nextpy/frontend/components/markdown/markdown.pyi rename to nextpy/interfaces/react_components/markdown/markdown.pyi index 3cdaed70..90ac167f 100644 --- a/nextpy/frontend/components/markdown/markdown.pyi +++ b/nextpy/interfaces/react_components/markdown/markdown.pyi @@ -9,26 +9,26 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style import textwrap from functools import lru_cache from hashlib import md5 from typing import Any, Callable, Dict, Union from nextpy.build.compiler import utils -from nextpy.frontend.components.chakra.datadisplay.list import ( +from nextpy.interfaces.web.react_components.chakra.datadisplay.list import ( ListItem, OrderedList, UnorderedList, ) -from nextpy.frontend.components.chakra.navigation import Link -from nextpy.frontend.components.chakra.typography.heading import Heading -from nextpy.frontend.components.chakra.typography.text import Text -from nextpy.frontend.components.component import Component, CustomComponent -from nextpy.frontend.components.tags.tag import Tag -from nextpy.frontend.style import Style +from nextpy.interfaces.web.react_components.chakra.navigation import Link +from nextpy.interfaces.web.react_components.chakra.typography.heading import Heading +from nextpy.interfaces.web.react_components.chakra.typography.text import Text +from nextpy.interfaces.web.react_components.component import Component, CustomComponent +from nextpy.interfaces.web.react_components.tags.tag import Tag +from nextpy.interfaces.web.style import Style from nextpy.utils import console, types -from nextpy.frontend import imports -from nextpy.frontend.imports import ReactImportVar +from nextpy.interfaces.web import imports +from nextpy.interfaces.web.imports import ReactImportVar from nextpy.backend.vars import Var _CHILDREN = Var.create_safe("children", _var_is_local=False) diff --git a/nextpy/frontend/components/moment/moment.pyi b/nextpy/interfaces/react_components/moment/moment.pyi similarity index 97% rename from nextpy/frontend/components/moment/moment.pyi rename to nextpy/interfaces/react_components/moment/moment.pyi index b6876550..09311547 100644 --- a/nextpy/frontend/components/moment/moment.pyi +++ b/nextpy/interfaces/react_components/moment/moment.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Optional from nextpy.base import Base -from nextpy.frontend.components.component import Component, NoSSRComponent -from nextpy.frontend import imports +from nextpy.interfaces.web.react_components.component import Component, NoSSRComponent +from nextpy.interfaces.web import imports from nextpy.backend.vars import Var class MomentDelta(Base): diff --git a/nextpy/frontend/components/next/base.pyi b/nextpy/interfaces/react_components/next/base.pyi similarity index 96% rename from nextpy/frontend/components/next/base.pyi rename to nextpy/interfaces/react_components/next/base.pyi index 7a93a1fe..9a92b3d1 100644 --- a/nextpy/frontend/components/next/base.pyi +++ b/nextpy/interfaces/react_components/next/base.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component class NextComponent(Component): ... diff --git a/nextpy/interfaces/react_components/next/image.pyi b/nextpy/interfaces/react_components/next/image.pyi new file mode 100644 index 00000000..605275cc --- /dev/null +++ b/nextpy/interfaces/react_components/next/image.pyi @@ -0,0 +1,125 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/next/image.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal, Optional, Union +from nextpy.utils import types +from nextpy.backend.vars import Var +from .base import NextComponent + +class Image(NextComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + width: Optional[Union[str, int]] = None, + height: Optional[Union[str, int]] = None, + src: Optional[Union[Var[Any], Any]] = None, + alt: Optional[Union[Var[str], str]] = None, + loader: Optional[Union[Var[Any], Any]] = None, + fill: Optional[Union[Var[bool], bool]] = None, + sizes: Optional[Union[Var[str], str]] = None, + quality: Optional[Union[Var[int], int]] = None, + priority: Optional[Union[Var[bool], bool]] = None, + placeholder: Optional[Union[Var[str], str]] = None, + loading: Optional[ + Union[Var[Literal["lazy", "eager"]], Literal["lazy", "eager"]] + ] = None, + blurDataURL: Optional[Union[Var[str], str]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_error: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_load: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Image": + """Create an Image component from next/image. + + Args: + *children: The children of the component. + width: The width of the image. + height: The height of the image. + src: This can be either an absolute external URL, or an internal path + alt: Used to describe the image for screen readers and search engines. + loader: A custom function used to resolve image URLs. + fill: A boolean that causes the image to fill the parent element, which is useful when the width and height are unknown. Default to True + sizes: A string, similar to a media query, that provides information about how wide the image will be at different breakpoints. + quality: The quality of the optimized image, an integer between 1 and 100, where 100 is the best quality and therefore largest file size. Defaults to 75. + priority: When true, the image will be considered high priority and preload. Lazy loading is automatically disabled for images using priority. + placeholder: A placeholder to use while the image is loading. Possible values are blur, empty, or data:image/.... Defaults to empty. + loading: Allows passing CSS styles to the underlying image element. style: Var[Any] The loading behavior of the image. Defaults to lazy. Can hurt performance, recommended to use `priority` instead. + blurDataURL: A Data URL to be used as a placeholder image before the src image successfully loads. Only takes effect when combined with placeholder="blur". + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props:The props of the component. + + Returns: + _type_: _description_ + """ + ... diff --git a/nextpy/frontend/components/next/link.pyi b/nextpy/interfaces/react_components/next/link.pyi similarity index 96% rename from nextpy/frontend/components/next/link.pyi rename to nextpy/interfaces/react_components/next/link.pyi index 807ee12b..49c27b7b 100644 --- a/nextpy/frontend/components/next/link.pyi +++ b/nextpy/interfaces/react_components/next/link.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var class NextLink(Component): diff --git a/nextpy/frontend/components/next/video.pyi b/nextpy/interfaces/react_components/next/video.pyi similarity index 96% rename from nextpy/frontend/components/next/video.pyi rename to nextpy/interfaces/react_components/next/video.pyi index 2b8018e2..4a5dfd25 100644 --- a/nextpy/frontend/components/next/video.pyi +++ b/nextpy/interfaces/react_components/next/video.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Optional -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.vars import Var from .base import NextComponent diff --git a/nextpy/frontend/components/plotly/plotly.pyi b/nextpy/interfaces/react_components/plotly/plotly.pyi similarity index 98% rename from nextpy/frontend/components/plotly/plotly.pyi rename to nextpy/interfaces/react_components/plotly/plotly.pyi index d21358ff..2cad1618 100644 --- a/nextpy/frontend/components/plotly/plotly.pyi +++ b/nextpy/interfaces/react_components/plotly/plotly.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List -from nextpy.frontend.components.component import NoSSRComponent +from nextpy.interfaces.web.react_components.component import NoSSRComponent from nextpy.backend.vars import Var try: diff --git a/nextpy/frontend/components/radix/primitives/accordion.py b/nextpy/interfaces/react_components/radix/primitives/accordion.py similarity index 95% rename from nextpy/frontend/components/radix/primitives/accordion.py rename to nextpy/interfaces/react_components/radix/primitives/accordion.py index 5a4e3b17..b9ce8412 100644 --- a/nextpy/frontend/components/radix/primitives/accordion.py +++ b/nextpy/interfaces/react_components/radix/primitives/accordion.py @@ -6,11 +6,11 @@ from typing import Literal from nextpy.backend.vars import Var -from nextpy.frontend import imports -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.radix.primitives.base import RadixPrimitiveComponent -from nextpy.frontend.components.radix.themes.components.icons import Icon -from nextpy.frontend.style import Style +from nextpy.interfaces.web import imports +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.radix.primitives.base import RadixPrimitiveComponent +from nextpy.interfaces.web.react_components.radix.themes.components.icons import Icon +from nextpy.interfaces.web.style import Style LiteralAccordionType = Literal["single", "multiple"] LiteralAccordionDir = Literal["ltr", "rtl"] diff --git a/nextpy/frontend/components/radix/primitives/accordion.pyi b/nextpy/interfaces/react_components/radix/primitives/accordion.pyi similarity index 98% rename from nextpy/frontend/components/radix/primitives/accordion.pyi rename to nextpy/interfaces/react_components/radix/primitives/accordion.pyi index 751c0ad8..82417702 100644 --- a/nextpy/frontend/components/radix/primitives/accordion.pyi +++ b/nextpy/interfaces/react_components/radix/primitives/accordion.pyi @@ -9,13 +9,13 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.radix.primitives.base import RadixPrimitiveComponent -from nextpy.frontend.components.radix.themes.components.icons import Icon -from nextpy.frontend.style import Style -from nextpy.frontend import imports +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.radix.primitives.base import RadixPrimitiveComponent +from nextpy.interfaces.web.react_components.radix.themes.components.icons import Icon +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web import imports from nextpy.backend.vars import Var LiteralAccordionType = Literal["single", "multiple"] diff --git a/nextpy/frontend/components/radix/primitives/base.pyi b/nextpy/interfaces/react_components/radix/primitives/base.pyi similarity index 95% rename from nextpy/frontend/components/radix/primitives/base.pyi rename to nextpy/interfaces/react_components/radix/primitives/base.pyi index 745bb3e9..87cfbec2 100644 --- a/nextpy/frontend/components/radix/primitives/base.pyi +++ b/nextpy/interfaces/react_components/radix/primitives/base.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.tags.tag import Tag +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.tags.tag import Tag from nextpy.utils import format from nextpy.backend.vars import Var diff --git a/nextpy/frontend/components/radix/primitives/form.pyi b/nextpy/interfaces/react_components/radix/primitives/form.pyi similarity index 99% rename from nextpy/frontend/components/radix/primitives/form.pyi rename to nextpy/interfaces/react_components/radix/primitives/form.pyi index a3a01816..374a30fe 100644 --- a/nextpy/frontend/components/radix/primitives/form.pyi +++ b/nextpy/interfaces/react_components/radix/primitives/form.pyi @@ -9,16 +9,16 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from hashlib import md5 from typing import Any, Dict, Iterator, Literal from jinja2 import Environment -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.tags.tag import Tag +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.tags.tag import Tag from nextpy.constants.base import Dirs from nextpy.constants.event import EventTriggers from nextpy.backend.event import EventChain -from nextpy.frontend import imports +from nextpy.interfaces.web import imports from nextpy.utils.format import format_event_chain, to_camel_case from nextpy.backend.vars import BaseVar, Var from .base import RadixPrimitiveComponent diff --git a/nextpy/frontend/components/radix/primitives/progress.py b/nextpy/interfaces/react_components/radix/primitives/progress.py similarity index 91% rename from nextpy/frontend/components/radix/primitives/progress.py rename to nextpy/interfaces/react_components/radix/primitives/progress.py index 6adbd6b0..ebeb191d 100644 --- a/nextpy/frontend/components/radix/primitives/progress.py +++ b/nextpy/interfaces/react_components/radix/primitives/progress.py @@ -6,9 +6,9 @@ from typing import Optional from nextpy.backend.vars import Var -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.radix.primitives.base import RadixPrimitiveComponent -from nextpy.frontend.style import Style +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.radix.primitives.base import RadixPrimitiveComponent +from nextpy.interfaces.web.style import Style class ProgressComponent(RadixPrimitiveComponent): diff --git a/nextpy/frontend/components/radix/primitives/progress.pyi b/nextpy/interfaces/react_components/radix/primitives/progress.pyi similarity index 97% rename from nextpy/frontend/components/radix/primitives/progress.pyi rename to nextpy/interfaces/react_components/radix/primitives/progress.pyi index cbaced59..08738508 100644 --- a/nextpy/frontend/components/radix/primitives/progress.pyi +++ b/nextpy/interfaces/react_components/radix/primitives/progress.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Optional -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.radix.primitives.base import RadixPrimitiveComponent -from nextpy.frontend.style import Style +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.radix.primitives.base import RadixPrimitiveComponent +from nextpy.interfaces.web.style import Style from nextpy.backend.vars import Var class ProgressComponent(RadixPrimitiveComponent): diff --git a/nextpy/frontend/components/radix/primitives/slider.py b/nextpy/interfaces/react_components/radix/primitives/slider.py similarity index 95% rename from nextpy/frontend/components/radix/primitives/slider.py rename to nextpy/interfaces/react_components/radix/primitives/slider.py index 470a6d4b..0131bd09 100644 --- a/nextpy/frontend/components/radix/primitives/slider.py +++ b/nextpy/interfaces/react_components/radix/primitives/slider.py @@ -6,9 +6,9 @@ from typing import Any, Dict, Literal from nextpy.backend.vars import Var -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.radix.primitives.base import RadixPrimitiveComponent -from nextpy.frontend.style import Style +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.radix.primitives.base import RadixPrimitiveComponent +from nextpy.interfaces.web.style import Style LiteralSliderOrientation = Literal["horizontal", "vertical"] LiteralSliderDir = Literal["ltr", "rtl"] diff --git a/nextpy/frontend/components/radix/primitives/slider.pyi b/nextpy/interfaces/react_components/radix/primitives/slider.pyi similarity index 98% rename from nextpy/frontend/components/radix/primitives/slider.pyi rename to nextpy/interfaces/react_components/radix/primitives/slider.pyi index 53119687..19b48ec1 100644 --- a/nextpy/frontend/components/radix/primitives/slider.pyi +++ b/nextpy/interfaces/react_components/radix/primitives/slider.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.radix.primitives.base import RadixPrimitiveComponent -from nextpy.frontend.style import Style +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.radix.primitives.base import RadixPrimitiveComponent +from nextpy.interfaces.web.style import Style from nextpy.backend.vars import Var LiteralSliderOrientation = Literal["horizontal", "vertical"] diff --git a/nextpy/frontend/components/radix/themes/base.pyi b/nextpy/interfaces/react_components/radix/themes/base.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/base.pyi rename to nextpy/interfaces/react_components/radix/themes/base.pyi index 3180fdc1..5ee87df7 100644 --- a/nextpy/frontend/components/radix/themes/base.pyi +++ b/nextpy/interfaces/react_components/radix/themes/base.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal -from nextpy.frontend.components import Component -from nextpy.frontend import imports +from nextpy.interfaces.web.react_components import Component +from nextpy.interfaces.web import imports from nextpy.backend.vars import Var LiteralAlign = Literal["start", "center", "end", "baseline", "stretch"] diff --git a/nextpy/interfaces/react_components/radix/themes/components/alertdialog.pyi b/nextpy/interfaces/react_components/radix/themes/components/alertdialog.pyi new file mode 100644 index 00000000..616f44ed --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/alertdialog.pyi @@ -0,0 +1,1061 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/alertdialog.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +LiteralSwitchSize = Literal["1", "2", "3", "4"] + +class AlertDialog(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + open: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "AlertDialog": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + open: The controlled open state of the dialog. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class AlertDialogTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "AlertDialogTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + force_mount: Optional[Union[Var[bool], bool]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_close_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_escape_key_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "AlertDialogContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + force_mount: Whether to force mount the content on open. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class AlertDialogTitle(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "AlertDialogTitle": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class AlertDialogDescription(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "AlertDialogDescription": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/aspectratio.pyi b/nextpy/interfaces/react_components/radix/themes/components/aspectratio.pyi new file mode 100644 index 00000000..ff36584a --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/aspectratio.pyi @@ -0,0 +1,212 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/aspectratio.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal, Union +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +LiteralSwitchSize = Literal["1", "2", "3", "4"] + +class AspectRatio(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + ratio: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "AspectRatio": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + ratio: The ratio of the width to the height of the element + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/avatar.pyi b/nextpy/interfaces/react_components/radix/themes/components/avatar.pyi new file mode 100644 index 00000000..50c00410 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/avatar.pyi @@ -0,0 +1,236 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/avatar.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + LiteralSize, + RadixThemesComponent, +) + +LiteralSwitchSize = Literal["1", "2", "3", "4"] + +class Avatar(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + variant: Optional[ + Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]] + ] = None, + size: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Avatar": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + variant: The variant of the avatar + size: The size of the avatar + high_contrast: Whether to render the avatar with higher contrast color against background + radius: Override theme radius for avatar: "none" | "small" | "medium" | "large" | "full" + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/badge.pyi b/nextpy/interfaces/react_components/radix/themes/components/badge.pyi new file mode 100644 index 00000000..a41e1aec --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/badge.pyi @@ -0,0 +1,294 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/badge.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + RadixThemesComponent, +) + +LiteralSwitchSize = Literal["1", "2", "3", "4"] + +class Badge(el.Span, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + variant: Optional[ + Union[ + Var[Literal["solid", "soft", "surface", "outline"]], + Literal["solid", "soft", "surface", "outline"], + ] + ] = None, + size: Optional[Union[Var[Literal["1", "2"]], Literal["1", "2"]]] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Badge": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + variant: The variant of the avatar + size: The size of the avatar + high_contrast: Whether to render the avatar with higher contrast color against background + radius: Override theme radius for avatar: "none" | "small" | "medium" | "large" | "full" + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/button.pyi b/nextpy/interfaces/react_components/radix/themes/components/button.pyi new file mode 100644 index 00000000..08bb6b5b --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/button.pyi @@ -0,0 +1,337 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/button.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + LiteralVariant, + RadixThemesComponent, +) + +LiteralButtonSize = Literal["1", "2", "3", "4"] + +class Button(el.Button, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]], + Literal["classic", "solid", "soft", "surface", "outline", "ghost"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + auto_focus: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + disabled: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + form_action: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form_enc_type: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form_method: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form_no_validate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form_target: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + value: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Button": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + size: Button size "1" - "4" + variant: Variant of button: "solid" | "soft" | "outline" | "ghost" + high_contrast: Whether to render the button with higher contrast color against background + radius: Override theme radius for button: "none" | "small" | "medium" | "large" | "full" + auto_focus: Automatically focuses the button when the page loads + disabled: Disables the button + form: Associates the button with a form (by id) + form_action: URL to send the form data to (for type="submit" buttons) + form_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons) + form_method: HTTP method to use for sending form data (for type="submit" buttons) + form_no_validate: Bypasses form validation when submitting (for type="submit" buttons) + form_target: Specifies where to display the response after submitting the form (for type="submit" buttons) + name: Name of the button, used when sending form data + type: Type of the button (submit, reset, or button) + value: Value of the button, used when sending form data + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/callout.pyi b/nextpy/interfaces/react_components/radix/themes/components/callout.pyi new file mode 100644 index 00000000..fa798a59 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/callout.pyi @@ -0,0 +1,803 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/callout.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + LiteralVariant, + RadixThemesComponent, +) + +class CalloutRoot(el.Div, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]], + Literal["classic", "solid", "soft", "surface", "outline", "ghost"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "CalloutRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + size: Button size "1" - "4" + variant: Variant of button: "solid" | "soft" | "outline" | "ghost" + high_contrast: Whether to render the button with higher contrast color against background + radius: Override theme radius for button: "none" | "small" | "medium" | "large" | "full" + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class CalloutIcon(el.Div, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "CalloutIcon": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class CalloutText(el.P, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "CalloutText": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/card.pyi b/nextpy/interfaces/react_components/radix/themes/components/card.pyi new file mode 100644 index 00000000..7eaa9479 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/card.pyi @@ -0,0 +1,284 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/card.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +class Card(el.Div, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + size: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5"]], Literal["1", "2", "3", "4", "5"] + ] + ] = None, + variant: Optional[ + Union[ + Var[Literal["surface", "classic", "ghost"]], + Literal["surface", "classic", "ghost"], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Card": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + size: Button size "1" - "5" + variant: Variant of button: "solid" | "soft" | "outline" | "ghost" + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/checkbox.pyi b/nextpy/interfaces/react_components/radix/themes/components/checkbox.pyi new file mode 100644 index 00000000..da132123 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/checkbox.pyi @@ -0,0 +1,254 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/checkbox.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + LiteralVariant, + RadixThemesComponent, +) + +LiteralCheckboxSize = Literal["1", "2", "3"] + +class Checkbox(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]], + Literal["classic", "solid", "soft", "surface", "outline", "ghost"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + default_checked: Optional[Union[Var[bool], bool]] = None, + checked: Optional[Union[Var[bool], bool]] = None, + disabled: Optional[Union[Var[bool], bool]] = None, + required: Optional[Union[Var[bool], bool]] = None, + name: Optional[Union[Var[str], str]] = None, + value: Optional[Union[Var[str], str]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_checked_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Checkbox": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + size: Button size "1" - "3" + variant: Variant of button: "solid" | "soft" | "outline" | "ghost" + high_contrast: Whether to render the button with higher contrast color against background + radius: Override theme radius for button: "none" | "small" | "medium" | "large" | "full" + default_checked: Whether the checkbox is checked by default + checked: Whether the checkbox is checked + disabled: Whether the checkbox is disabled + required: Whether the checkbox is required + name: The name of the checkbox control when submitting the form. + value: The value of the checkbox control when submitting the form. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/contextmenu.pyi b/nextpy/interfaces/react_components/radix/themes/components/contextmenu.pyi new file mode 100644 index 00000000..fa8d1472 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/contextmenu.pyi @@ -0,0 +1,1614 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/contextmenu.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent + +class ContextMenuRoot(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + modal: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ContextMenuRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + modal: The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + disabled: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ContextMenuTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + disabled: Whether the trigger is disabled + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class ContextMenuContent(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[Union[Var[Literal["1", "2"]], Literal["1", "2"]]] = None, + variant: Optional[ + Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + align_offset: Optional[Union[Var[int], int]] = None, + avoid_collisions: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_close_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_escape_key_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_interact_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_pointer_down_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ContextMenuContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: Button size "1" - "4" + variant: Variant of button: "solid" | "soft" | "outline" | "ghost" + high_contrast: Whether to render the button with higher contrast color against background + align_offset: The vertical distance in pixels from the anchor. + avoid_collisions: When true, overrides the side andalign preferences to prevent collisions with boundary edges. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class ContextMenuSub(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ContextMenuSub": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + disabled: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ContextMenuSubTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + disabled: Whether the trigger is disabled + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + loop: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_escape_key_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_interact_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_pointer_down_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ContextMenuSubContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + loop: When true, keyboard navigation will loop from last item to first, and vice versa. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class ContextMenuItem(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + shortcut: Optional[Union[Var[str], str]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ContextMenuItem": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + shortcut: Shortcut to render a menu item as a link + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ContextMenuSeparator": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/dialog.pyi b/nextpy/interfaces/react_components/radix/themes/components/dialog.pyi new file mode 100644 index 00000000..985a0a16 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/dialog.pyi @@ -0,0 +1,1260 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/dialog.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +class DialogRoot(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + open: Optional[Union[Var[bool], bool]] = None, + modal: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DialogRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + open: The controlled open state of the dialog. + modal: The modality of the dialog. When set to true, interaction with outside elements will be disabled and only dialog content will be visible to screen readers. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DialogTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DialogTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DialogTitle(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DialogTitle": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[Union[Var[Literal[1, 2, 3, 4]], Literal[1, 2, 3, 4]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_close_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_escape_key_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_interact_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_pointer_down_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DialogContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: Button size "1" - "4" + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DialogDescription(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DialogDescription": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DialogClose(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DialogClose": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/dropdownmenu.pyi b/nextpy/interfaces/react_components/radix/themes/components/dropdownmenu.pyi new file mode 100644 index 00000000..877d083a --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/dropdownmenu.pyi @@ -0,0 +1,1397 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/dropdownmenu.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent + +class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + open: Optional[Union[Var[bool], bool]] = None, + modal: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DropdownMenuRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + open: The controlled open state of the dropdown menu. Must be used in conjunction with onOpenChange. + modal: The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DropdownMenuTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DropdownMenuContent(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_close_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_escape_key_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_interact_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_pointer_down_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DropdownMenuContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DropdownMenuSubTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[Union[Var[Literal["1", "2"]], Literal["1", "2"]]] = None, + variant: Optional[ + Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DropdownMenuSubContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: Button size "1" - "4" + variant: Variant of button: "solid" | "soft" | "outline" | "ghost" + high_contrast: Whether to render the button with higher contrast color against background + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DropdownMenuItem(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + shortcut: Optional[Union[Var[str], str]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DropdownMenuItem": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + shortcut: Shortcut to render a menu item as a link + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DropdownMenuSeparator": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/hovercard.pyi b/nextpy/interfaces/react_components/radix/themes/components/hovercard.pyi new file mode 100644 index 00000000..f91a14dc --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/hovercard.pyi @@ -0,0 +1,685 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/hovercard.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +class HoverCardRoot(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + default_open: Optional[Union[Var[bool], bool]] = None, + open: Optional[Union[Var[bool], bool]] = None, + open_delay: Optional[Union[Var[int], int]] = None, + close_delay: Optional[Union[Var[int], int]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "HoverCardRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + default_open: The open state of the hover card when it is initially rendered. Use when you do not need to control its open state. + open: The controlled open state of the hover card. Must be used in conjunction with onOpenChange. + open_delay: The duration from when the mouse enters the trigger until the hover card opens. + close_delay: The duration from when the mouse leaves the trigger until the hover card closes. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class HoverCardTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "HoverCardTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class HoverCardContent(el.Div, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + side: Optional[ + Union[ + Var[Literal["top", "right", "bottom", "left"]], + Literal["top", "right", "bottom", "left"], + ] + ] = None, + side_offset: Optional[Union[Var[int], int]] = None, + align: Optional[ + Union[ + Var[Literal["start", "center", "end"]], + Literal["start", "center", "end"], + ] + ] = None, + avoid_collisions: Optional[Union[Var[bool], bool]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "HoverCardContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + side: The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled. + side_offset: The distance in pixels from the trigger. + align: The preferred alignment against the trigger. May change when collisions occur. + avoid_collisions: Whether or not the hover card should avoid collisions with its trigger. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/iconbutton.pyi b/nextpy/interfaces/react_components/radix/themes/components/iconbutton.pyi new file mode 100644 index 00000000..7d77f743 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/iconbutton.pyi @@ -0,0 +1,337 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/iconbutton.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + LiteralVariant, + RadixThemesComponent, +) + +LiteralButtonSize = Literal["1", "2", "3", "4"] + +class IconButton(el.Button, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]], + Literal["classic", "solid", "soft", "surface", "outline", "ghost"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + auto_focus: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + disabled: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + form_action: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form_enc_type: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form_method: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form_no_validate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + form_target: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + value: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "IconButton": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + size: Button size "1" - "4" + variant: Variant of button: "solid" | "soft" | "outline" | "ghost" + high_contrast: Whether to render the button with higher contrast color against background + radius: Override theme radius for button: "none" | "small" | "medium" | "large" | "full" + auto_focus: Automatically focuses the button when the page loads + disabled: Disables the button + form: Associates the button with a form (by id) + form_action: URL to send the form data to (for type="submit" buttons) + form_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons) + form_method: HTTP method to use for sending form data (for type="submit" buttons) + form_no_validate: Bypasses form validation when submitting (for type="submit" buttons) + form_target: Specifies where to display the response after submitting the form (for type="submit" buttons) + name: Name of the button, used when sending form data + type: Type of the button (submit, reset, or button) + value: Value of the button, used when sending form data + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/frontend/components/radix/themes/components/icons.pyi b/nextpy/interfaces/react_components/radix/themes/components/icons.pyi similarity index 98% rename from nextpy/frontend/components/radix/themes/components/icons.pyi rename to nextpy/interfaces/react_components/radix/themes/components/icons.pyi index 31823c85..21fe6bd2 100644 --- a/nextpy/frontend/components/radix/themes/components/icons.pyi +++ b/nextpy/interfaces/react_components/radix/themes/components/icons.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import List -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.utils import format class RadixIconComponent(Component): diff --git a/nextpy/interfaces/react_components/radix/themes/components/inset.pyi b/nextpy/interfaces/react_components/radix/themes/components/inset.pyi new file mode 100644 index 00000000..1ec3a5b0 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/inset.pyi @@ -0,0 +1,298 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/inset.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal, Union +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +LiteralButtonSize = Literal["1", "2", "3", "4"] + +class Inset(el.Div, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + side: Optional[ + Union[ + Var[Literal["x", "y", "top", "bottom", "right", "left"]], + Literal["x", "y", "top", "bottom", "right", "left"], + ] + ] = None, + clip: Optional[ + Union[ + Var[Literal["border-box", "padding-box"]], + Literal["border-box", "padding-box"], + ] + ] = None, + p: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + px: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + py: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + pt: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + pr: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + pb: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + pl: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Inset": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + side: The side + p: Padding + px: Padding on the x axis + py: Padding on the y axis + pt: Padding on the top + pr: Padding on the right + pb: Padding on the bottom + pl: Padding on the left + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/popover.pyi b/nextpy/interfaces/react_components/radix/themes/components/popover.pyi new file mode 100644 index 00000000..1b4cc5a6 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/popover.pyi @@ -0,0 +1,897 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/popover.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +class PopoverRoot(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + open: Optional[Union[Var[bool], bool]] = None, + modal: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "PopoverRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + open: The controlled open state of the popover. + modal: The modality of the popover. When set to true, interaction with outside elements will be disabled and only popover content will be visible to screen readers. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class PopoverTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "PopoverTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class PopoverContent(el.Div, CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[Union[Var[Literal[1, 2, 3, 4]], Literal[1, 2, 3, 4]]] = None, + side: Optional[ + Union[ + Var[Literal["top", "right", "bottom", "left"]], + Literal["top", "right", "bottom", "left"], + ] + ] = None, + side_offset: Optional[Union[Var[int], int]] = None, + align: Optional[ + Union[ + Var[Literal["start", "center", "end"]], + Literal["start", "center", "end"], + ] + ] = None, + align_offset: Optional[Union[Var[int], int]] = None, + avoid_collisions: Optional[Union[Var[bool], bool]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_close_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_escape_key_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_interact_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_pointer_down_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "PopoverContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: Size of the button: "1" | "2" | "3" | "4" + side: The preferred side of the anchor to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled. + side_offset: The distance in pixels from the anchor. + align: The preferred alignment against the anchor. May change when collisions occur. + align_offset: The vertical distance in pixels from the anchor. + avoid_collisions: When true, overrides the side andalign preferences to prevent collisions with boundary edges. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class PopoverClose(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "PopoverClose": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/radiogroup.pyi b/nextpy/interfaces/react_components/radix/themes/components/radiogroup.pyi new file mode 100644 index 00000000..704d60a8 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/radiogroup.pyi @@ -0,0 +1,441 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/radiogroup.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent + +class RadioGroupRoot(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "surface", "soft"]], + Literal["classic", "surface", "soft"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + value: Optional[Union[Var[str], str]] = None, + default_value: Optional[Union[Var[str], str]] = None, + disabled: Optional[Union[Var[bool], bool]] = None, + required: Optional[Union[Var[bool], bool]] = None, + orientation: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + loop: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_value_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "RadioGroupRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: The size of the radio group: "1" | "2" | "3" + variant: The variant of the radio group + high_contrast: Whether to render the radio group with higher contrast color against background + value: The controlled value of the radio item to check. Should be used in conjunction with onValueChange. + default_value: The initial value of checked radio item. Should be used in conjunction with onValueChange. + disabled: Whether the radio group is disabled + required: Whether the radio group is required + orientation: The orientation of the component. + loop: When true, keyboard navigation will loop from last item to first, and vice versa. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class RadioGroupItem(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + value: Optional[Union[Var[str], str]] = None, + disabled: Optional[Union[Var[bool], bool]] = None, + required: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "RadioGroupItem": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + value: The value of the radio item to check. Should be used in conjunction with onCheckedChange. + disabled: When true, prevents the user from interacting with the radio item. + required: When true, indicates that the user must check the radio item before the owning form can be submitted. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/scrollarea.pyi b/nextpy/interfaces/react_components/radix/themes/components/scrollarea.pyi new file mode 100644 index 00000000..27e8f137 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/scrollarea.pyi @@ -0,0 +1,233 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/scrollarea.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralRadius, RadixThemesComponent + +class ScrollArea(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + scrollbars: Optional[ + Union[ + Var[Literal["vertical", "horizontal", "both"]], + Literal["vertical", "horizontal", "both"], + ] + ] = None, + type_: Optional[ + Union[ + Var[Literal["auto", "always", "scroll", "hover"]], + Literal["auto", "always", "scroll", "hover"], + ] + ] = None, + scroll_hide_delay: Optional[Union[Var[int], int]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ScrollArea": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: The size of the radio group: "1" | "2" | "3" + radius: The radius of the radio group + scrollbars: The alignment of the scroll area + type_: Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. "auto" | "always" | "scroll" | "hover" + scroll_hide_delay: If type is set to either "scroll" or "hover", this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/select.pyi b/nextpy/interfaces/react_components/radix/themes/components/select.pyi new file mode 100644 index 00000000..03af5532 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/select.pyi @@ -0,0 +1,1451 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/select.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + RadixThemesComponent, +) + +LiteralButtonSize = Literal[1, 2, 3, 4] + +class SelectRoot(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None, + default_value: Optional[Union[Var[str], str]] = None, + value: Optional[Union[Var[str], str]] = None, + default_open: Optional[Union[Var[bool], bool]] = None, + open: Optional[Union[Var[bool], bool]] = None, + name: Optional[Union[Var[str], str]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_open_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_value_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "SelectRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: The size of the select: "1" | "2" | "3" + default_value: The value of the select when initially rendered. Use when you do not need to control the state of the select. + value: The controlled value of the select. Use when you need to control the state of the select. + default_open: The open state of the select when it is initially rendered. Use when you do not need to control its open state. + open: The controlled open state of the select. Must be used in conjunction with onOpenChange. + name: The name of the select control when submitting the form. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class SelectTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "surface", "soft", "ghost"]], + Literal["classic", "surface", "soft", "ghost"], + ] + ] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + placeholder: Optional[Union[Var[str], str]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "SelectTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + variant: Variant of the select trigger + radius: The radius of the select trigger + placeholder: The placeholder of the select trigger + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class SelectContent(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + variant: Optional[ + Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + position: Optional[ + Union[ + Var[Literal["item-aligned", "popper"]], + Literal["item-aligned", "popper"], + ] + ] = None, + side: Optional[ + Union[ + Var[Literal["top", "right", "bottom", "left"]], + Literal["top", "right", "bottom", "left"], + ] + ] = None, + side_offset: Optional[Union[Var[int], int]] = None, + align: Optional[ + Union[ + Var[Literal["start", "center", "end"]], + Literal["start", "center", "end"], + ] + ] = None, + align_offset: Optional[Union[Var[int], int]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_close_auto_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_escape_key_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_pointer_down_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "SelectContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + variant: The variant of the select content + high_contrast: Whether to render the select content with higher contrast color against background + position: The positioning mode to use, item-aligned is the default and behaves similarly to a native MacOS menu by positioning content relative to the active item. popper positions content in the same way as our other primitives, for example Popover or DropdownMenu. + side: The preferred side of the anchor to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled. Only available when position is set to popper. + side_offset: The distance in pixels from the anchor. Only available when position is set to popper. + align: The preferred alignment against the anchor. May change when collisions occur. Only available when position is set to popper. + align_offset: The vertical distance in pixels from the anchor. Only available when position is set to popper. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class SelectGroup(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "SelectGroup": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class SelectItem(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + value: Optional[Union[Var[str], str]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "SelectItem": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + value: The value of the select item when submitting the form. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class SelectLabel(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "SelectLabel": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class SelectSeparator(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "SelectSeparator": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/separator.pyi b/nextpy/interfaces/react_components/radix/themes/components/separator.pyi new file mode 100644 index 00000000..892f74b8 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/separator.pyi @@ -0,0 +1,223 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/separator.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent + +LiteralSeperatorSize = Literal["1", "2", "3", "4"] + +class Separator(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]] + ] = None, + orientation: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + decorative: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Separator": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: The size of the select: "1" | "2" | "3" + orientation: The orientation of the separator. + decorative: When true, signifies that it is purely visual, carries no semantic meaning, and ensures it is not present in the accessibility tree. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/slider.pyi b/nextpy/interfaces/react_components/radix/themes/components/slider.pyi new file mode 100644 index 00000000..79d9e9fc --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/slider.pyi @@ -0,0 +1,261 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/slider.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, List, Literal +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + RadixThemesComponent, +) + +class Slider(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "surface", "soft"]], + Literal["classic", "surface", "soft"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + default_value: Optional[Union[Var[List[float]], List[float]]] = None, + value: Optional[Union[Var[float], float]] = None, + min: Optional[Union[Var[float], float]] = None, + max: Optional[Union[Var[float], float]] = None, + step: Optional[Union[Var[float], float]] = None, + disabled: Optional[Union[Var[bool], bool]] = None, + orientation: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_value_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_value_commit: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Slider": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + size: Button size "1" - "3" + variant: Variant of button + high_contrast: Whether to render the button with higher contrast color against background + radius: Override theme radius for button: "none" | "small" | "medium" | "large" | "full" + default_value: The value of the slider when initially rendered. Use when you do not need to control the state of the slider. + value: The controlled value of the slider. Must be used in conjunction with onValueChange. + min: The minimum value of the slider. + max: The maximum value of the slider. + step: The step value of the slider. + disabled: Whether the slider is disabled + orientation: The orientation of the slider. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/switch.pyi b/nextpy/interfaces/react_components/radix/themes/components/switch.pyi new file mode 100644 index 00000000..71239100 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/switch.pyi @@ -0,0 +1,255 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/switch.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy.constants import EventTriggers +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralRadius, + LiteralVariant, + RadixThemesComponent, +) + +LiteralSwitchSize = Literal["1", "2", "3", "4"] + +class Switch(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + default_checked: Optional[Union[Var[bool], bool]] = None, + checked: Optional[Union[Var[bool], bool]] = None, + disabled: Optional[Union[Var[bool], bool]] = None, + required: Optional[Union[Var[bool], bool]] = None, + name: Optional[Union[Var[str], str]] = None, + value: Optional[Union[Var[str], str]] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]], + Literal["classic", "solid", "soft", "surface", "outline", "ghost"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_checked_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Switch": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + default_checked: Whether the switch is checked by default + checked: Whether the switch is checked + disabled: If true, prevent the user from interacting with the switch + required: If true, the user must interact with the switch to submit the form + name: The name of the switch (when submitting a form) + value: The value associated with the "on" position + size: Switch size "1" - "4" + variant: Variant of switch: "solid" | "soft" | "outline" | "ghost" + high_contrast: Whether to render the switch with higher contrast color against background + radius: Override theme radius for switch: "none" | "small" | "medium" | "large" | "full" + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/table.pyi b/nextpy/interfaces/react_components/radix/themes/components/table.pyi new file mode 100644 index 00000000..60c41be1 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/table.pyi @@ -0,0 +1,1945 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/table.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal, Union +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]] + ] = None, + variant: Optional[ + Union[Var[Literal["surface", "ghost"]], Literal["surface", "ghost"]] + ] = None, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + background: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + border: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + summary: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TableRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: The size of the table: "1" | "2" | "3" + variant: The variant of the table + align: Alignment of the table + background: Background image for the table + bgcolor: Background color of the table + border: Specifies the width of the border around the table + summary: Provides a summary of the table's purpose and structure + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TableHeader": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + align: Alignment of the content within the table header + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + align: Optional[ + Union[ + Var[Literal["start", "center", "end", "baseline"]], + Literal["start", "center", "end", "baseline"], + ] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TableRow": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + align: Alignment of the content within the table row + bgcolor: Background color of the table row + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + justify: Optional[ + Union[ + Var[Literal["start", "center", "end"]], + Literal["start", "center", "end"], + ] + ] = None, + width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + background: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + col_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + headers: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + row_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + scope: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TableColumnHeaderCell": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + justify: The justification of the column + width: width of the column + align: Alignment of the content within the table header cell + background: Background image for the table header cell + bgcolor: Background color of the table header cell + col_span: Number of columns a header cell should span + headers: IDs of the headers associated with this header cell + row_span: Number of rows a header cell should span + scope: Scope of the header cell (row, col, rowgroup, colgroup) + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TableBody": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + align: Alignment of the content within the table body + bgcolor: Background color of the table body + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TableCell(el.Td, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + justify: Optional[ + Union[ + Var[Literal["start", "center", "end"]], + Literal["start", "center", "end"], + ] + ] = None, + width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + background: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + col_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + headers: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + row_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TableCell": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + justify: The justification of the column + width: width of the column + align: Alignment of the content within the table cell + background: Background image for the table cell + bgcolor: Background color of the table cell + col_span: Number of columns a cell should span + headers: IDs of the headers associated with this cell + row_span: Number of rows a cell should span + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + justify: Optional[ + Union[ + Var[Literal["start", "center", "end"]], + Literal["start", "center", "end"], + ] + ] = None, + width: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + align: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + background: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + bgcolor: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + col_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + headers: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + row_span: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + scope: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TableRowHeaderCell": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + justify: The justification of the column + width: width of the column + align: Alignment of the content within the table header cell + background: Background image for the table header cell + bgcolor: Background color of the table header cell + col_span: Number of columns a header cell should span + headers: IDs of the headers associated with this header cell + row_span: Number of rows a header cell should span + scope: Scope of the header cell (row, col, rowgroup, colgroup) + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/components/tabs.pyi b/nextpy/interfaces/react_components/radix/themes/components/tabs.pyi new file mode 100644 index 00000000..5fee0f5f --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/tabs.pyi @@ -0,0 +1,812 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/tabs.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, Literal +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +class TabsRoot(CommonMarginProps, RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + variant: Optional[ + Union[Var[Literal["surface", "ghost"]], Literal["surface", "ghost"]] + ] = None, + default_value: Optional[Union[Var[str], str]] = None, + value: Optional[Union[Var[str], str]] = None, + orientation: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_value_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TabsRoot": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + variant: The variant of the tab + default_value: The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs. + value: The controlled value of the tab that should be active. Use when you need to control the state of the tabs. + orientation: The orientation of the tabs. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TabsList(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TabsList": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TabsTrigger(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + value: Optional[Union[Var[str], str]] = None, + disabled: Optional[Union[Var[bool], bool]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TabsTrigger": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + value: The value of the tab. Must be unique for each tab. + disabled: Whether the tab is disabled + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... + +class TabsContent(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + value: Optional[Union[Var[str], str]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "TabsContent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + value: The value of the tab. Must be unique for each tab. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/frontend/components/radix/themes/components/textarea.pyi b/nextpy/interfaces/react_components/radix/themes/components/textarea.pyi similarity index 98% rename from nextpy/frontend/components/radix/themes/components/textarea.pyi rename to nextpy/interfaces/react_components/radix/themes/components/textarea.pyi index 14326070..5f5406da 100644 --- a/nextpy/frontend/components/radix/themes/components/textarea.pyi +++ b/nextpy/interfaces/react_components/radix/themes/components/textarea.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal from nextpy import el -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.debounce import DebounceInput +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.debounce import DebounceInput from nextpy.constants import EventTriggers from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent diff --git a/nextpy/frontend/components/radix/themes/components/textfield.pyi b/nextpy/interfaces/react_components/radix/themes/components/textfield.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/components/textfield.pyi rename to nextpy/interfaces/react_components/radix/themes/components/textfield.pyi index 0a4a0801..fdfca017 100644 --- a/nextpy/frontend/components/radix/themes/components/textfield.pyi +++ b/nextpy/interfaces/react_components/radix/themes/components/textfield.pyi @@ -9,11 +9,11 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, Literal -from nextpy.frontend.components import el -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.core.debounce import DebounceInput +from nextpy.interfaces.web.react_components import el +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.core.debounce import DebounceInput from nextpy.constants import EventTriggers from nextpy.backend.vars import Var from ..base import ( diff --git a/nextpy/interfaces/react_components/radix/themes/components/tooltip.pyi b/nextpy/interfaces/react_components/radix/themes/components/tooltip.pyi new file mode 100644 index 00000000..d1225e0d --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/components/tooltip.pyi @@ -0,0 +1,208 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/components/tooltip.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent + +class Tooltip(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + content: Optional[Union[Var[str], str]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Tooltip": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/layout/base.pyi b/nextpy/interfaces/react_components/radix/themes/layout/base.pyi new file mode 100644 index 00000000..cea27b22 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/layout/base.pyi @@ -0,0 +1,263 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/layout/base.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralSize, RadixThemesComponent + +LiteralBoolNumber = Literal["0", "1"] + +class LayoutComponent(CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + p: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + px: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + py: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pl: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "LayoutComponent": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + p: Padding: "0" - "9" + px: Padding horizontal: "0" - "9" + py: Padding vertical: "0" - "9" + pt: Padding top: "0" - "9" + pr: Padding right: "0" - "9" + pb: Padding bottom: "0" - "9" + pl: Padding left: "0" - "9" + shrink: Whether the element will take up the smallest possible space: "0" | "1" + grow: Whether the element will take up the largest possible space: "0" | "1" + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/layout/box.pyi b/nextpy/interfaces/react_components/radix/themes/layout/box.pyi new file mode 100644 index 00000000..ff873261 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/layout/box.pyi @@ -0,0 +1,320 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/layout/box.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from .base import LayoutComponent + +class Box(el.Div, LayoutComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + p: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + px: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + py: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pl: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Box": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + p: Padding: "0" - "9" + px: Padding horizontal: "0" - "9" + py: Padding vertical: "0" - "9" + pt: Padding top: "0" - "9" + pr: Padding right: "0" - "9" + pb: Padding bottom: "0" - "9" + pl: Padding left: "0" - "9" + shrink: Whether the element will take up the smallest possible space: "0" | "1" + grow: Whether the element will take up the largest possible space: "0" | "1" + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/layout/container.pyi b/nextpy/interfaces/react_components/radix/themes/layout/container.pyi new file mode 100644 index 00000000..8c08e3f5 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/layout/container.pyi @@ -0,0 +1,328 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/layout/container.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from .base import LayoutComponent + +LiteralContainerSize = Literal["1", "2", "3", "4"] + +class Container(el.Div, LayoutComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + p: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + px: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + py: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pl: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Container": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: The size of the container: "1" - "4" (default "4") + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + p: Padding: "0" - "9" + px: Padding horizontal: "0" - "9" + py: Padding vertical: "0" - "9" + pt: Padding top: "0" - "9" + pr: Padding right: "0" - "9" + pb: Padding bottom: "0" - "9" + pl: Padding left: "0" - "9" + shrink: Whether the element will take up the smallest possible space: "0" | "1" + grow: Whether the element will take up the largest possible space: "0" | "1" + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/layout/flex.pyi b/nextpy/interfaces/react_components/radix/themes/layout/flex.pyi new file mode 100644 index 00000000..1d048fcd --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/layout/flex.pyi @@ -0,0 +1,371 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/layout/flex.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import LiteralAlign, LiteralJustify, LiteralSize +from .base import LayoutComponent + +LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"] +LiteralFlexDisplay = Literal["none", "inline-flex", "flex"] +LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"] + +class Flex(el.Div, LayoutComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + display: Optional[ + Union[ + Var[Literal["none", "inline-flex", "flex"]], + Literal["none", "inline-flex", "flex"], + ] + ] = None, + direction: Optional[ + Union[ + Var[Literal["row", "column", "row-reverse", "column-reverse"]], + Literal["row", "column", "row-reverse", "column-reverse"], + ] + ] = None, + align: Optional[ + Union[ + Var[Literal["start", "center", "end", "baseline", "stretch"]], + Literal["start", "center", "end", "baseline", "stretch"], + ] + ] = None, + justify: Optional[ + Union[ + Var[Literal["start", "center", "end", "between"]], + Literal["start", "center", "end", "between"], + ] + ] = None, + wrap: Optional[ + Union[ + Var[Literal["nowrap", "wrap", "wrap-reverse"]], + Literal["nowrap", "wrap", "wrap-reverse"], + ] + ] = None, + gap: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + p: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + px: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + py: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pl: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Flex": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + display: How to display the element: "none" | "inline-flex" | "flex" + direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse" + align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch" + justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between" + wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse" + gap: Gap between children: "0" - "9" + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + p: Padding: "0" - "9" + px: Padding horizontal: "0" - "9" + py: Padding vertical: "0" - "9" + pt: Padding top: "0" - "9" + pr: Padding right: "0" - "9" + pb: Padding bottom: "0" - "9" + pl: Padding left: "0" - "9" + shrink: Whether the element will take up the smallest possible space: "0" | "1" + grow: Whether the element will take up the largest possible space: "0" | "1" + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/layout/grid.pyi b/nextpy/interfaces/react_components/radix/themes/layout/grid.pyi new file mode 100644 index 00000000..6e1c67f5 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/layout/grid.pyi @@ -0,0 +1,271 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/layout/grid.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from ..base import LiteralAlign, LiteralJustify, LiteralSize, RadixThemesComponent + +LiteralGridDisplay = Literal["none", "inline-grid", "grid"] +LiteralGridFlow = Literal["row", "column", "dense", "row-dense", "column-dense"] + +class Grid(el.Div, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + display: Optional[ + Union[ + Var[Literal["none", "inline-grid", "grid"]], + Literal["none", "inline-grid", "grid"], + ] + ] = None, + columns: Optional[Union[Var[str], str]] = None, + rows: Optional[Union[Var[str], str]] = None, + flow: Optional[ + Union[ + Var[Literal["row", "column", "dense", "row-dense", "column-dense"]], + Literal["row", "column", "dense", "row-dense", "column-dense"], + ] + ] = None, + align: Optional[ + Union[ + Var[Literal["start", "center", "end", "baseline", "stretch"]], + Literal["start", "center", "end", "baseline", "stretch"], + ] + ] = None, + justify: Optional[ + Union[ + Var[Literal["start", "center", "end", "between"]], + Literal["start", "center", "end", "between"], + ] + ] = None, + gap: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + gap_x: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Grid": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + display: How to display the element: "none" | "inline-grid" | "grid" + columns: Number of columns + rows: Number of rows + flow: How the grid items are layed out: "row" | "column" | "dense" | "row-dense" | "column-dense" + align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch" + justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between" + gap: Gap between children: "0" - "9" + gap_x: Gap between children vertical: "0" - "9" + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/layout/section.pyi b/nextpy/interfaces/react_components/radix/themes/layout/section.pyi new file mode 100644 index 00000000..f2033609 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/layout/section.pyi @@ -0,0 +1,328 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/layout/section.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Literal +from nextpy import el +from nextpy.backend.vars import Var +from .base import LayoutComponent + +LiteralSectionSize = Literal["1", "2", "3"] + +class Section(el.Section, LayoutComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + p: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + px: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + py: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + pl: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Section": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: The size of the section: "1" - "3" (default "3") + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + p: Padding: "0" - "9" + px: Padding horizontal: "0" - "9" + py: Padding vertical: "0" - "9" + pt: Padding top: "0" - "9" + pr: Padding right: "0" - "9" + pb: Padding bottom: "0" - "9" + pl: Padding left: "0" - "9" + shrink: Whether the element will take up the smallest possible space: "0" | "1" + grow: Whether the element will take up the largest possible space: "0" | "1" + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/typography/blockquote.pyi b/nextpy/interfaces/react_components/radix/themes/typography/blockquote.pyi new file mode 100644 index 00000000..c2ef4b89 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/typography/blockquote.pyi @@ -0,0 +1,287 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/typography/blockquote.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent +from .base import LiteralTextSize, LiteralTextWeight + +class Blockquote(el.Blockquote, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + weight: Optional[ + Union[ + Var[Literal["light", "regular", "medium", "bold"]], + Literal["light", "regular", "medium", "bold"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + cite: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Blockquote": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: Text size: "1" - "9" + weight: Thickness of text: "light" | "regular" | "medium" | "bold" + high_contrast: Whether to render the text with higher contrast color + cite: Define the title of a work. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/typography/code.pyi b/nextpy/interfaces/react_components/radix/themes/typography/code.pyi new file mode 100644 index 00000000..fa6b8ef3 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/typography/code.pyi @@ -0,0 +1,297 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/typography/code.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from nextpy.backend.vars import Var +from ..base import ( + CommonMarginProps, + LiteralAccentColor, + LiteralVariant, + RadixThemesComponent, +) +from .base import LiteralTextSize, LiteralTextWeight + +class Code(el.Code, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + variant: Optional[ + Union[ + Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]], + Literal["classic", "solid", "soft", "surface", "outline", "ghost"], + ] + ] = None, + size: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + weight: Optional[ + Union[ + Var[Literal["light", "regular", "medium", "bold"]], + Literal["light", "regular", "medium", "bold"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Code": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + variant: The visual variant to apply: "solid" | "soft" | "outline" | "ghost" + size: Text size: "1" - "9" + weight: Thickness of text: "light" | "regular" | "medium" | "bold" + high_contrast: Whether to render the text with higher contrast color + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/typography/em.pyi b/nextpy/interfaces/react_components/radix/themes/typography/em.pyi new file mode 100644 index 00000000..ae4421a8 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/typography/em.pyi @@ -0,0 +1,267 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/typography/em.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from ..base import CommonMarginProps, RadixThemesComponent + +class Em(el.Em, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Em": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/typography/heading.pyi b/nextpy/interfaces/react_components/radix/themes/typography/heading.pyi new file mode 100644 index 00000000..1a581e37 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/typography/heading.pyi @@ -0,0 +1,303 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/typography/heading.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent +from .base import LiteralTextAlign, LiteralTextSize, LiteralTextTrim, LiteralTextWeight + +class Heading(el.H1, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + as_: Optional[Union[Var[str], str]] = None, + size: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + weight: Optional[ + Union[ + Var[Literal["light", "regular", "medium", "bold"]], + Literal["light", "regular", "medium", "bold"], + ] + ] = None, + align: Optional[ + Union[ + Var[Literal["left", "center", "right"]], + Literal["left", "center", "right"], + ] + ] = None, + trim: Optional[ + Union[ + Var[Literal["normal", "start", "end", "both"]], + Literal["normal", "start", "end", "both"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Heading": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild) + size: Text size: "1" - "9" + weight: Thickness of text: "light" | "regular" | "medium" | "bold" + align: Alignment of text in element: "left" | "center" | "right" + trim: Removes the leading trim space: "normal" | "start" | "end" | "both" + high_contrast: Whether to render the text with higher contrast color + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/typography/kbd.pyi b/nextpy/interfaces/react_components/radix/themes/typography/kbd.pyi new file mode 100644 index 00000000..856f1f1b --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/typography/kbd.pyi @@ -0,0 +1,276 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/typography/kbd.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, RadixThemesComponent +from .base import LiteralTextSize + +class Kbd(el.Kbd, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + size: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Kbd": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + size: Text size: "1" - "9" + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/frontend/components/radix/themes/typography/link.pyi b/nextpy/interfaces/react_components/radix/themes/typography/link.pyi similarity index 99% rename from nextpy/frontend/components/radix/themes/typography/link.pyi rename to nextpy/interfaces/react_components/radix/themes/typography/link.pyi index 811155ca..13423ed3 100644 --- a/nextpy/frontend/components/radix/themes/typography/link.pyi +++ b/nextpy/interfaces/react_components/radix/themes/typography/link.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal -from nextpy.frontend.components.el.elements.inline import A +from nextpy.interfaces.web.react_components.el.elements.inline import A from nextpy.backend.vars import Var from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent from .base import LiteralTextSize, LiteralTextTrim, LiteralTextWeight diff --git a/nextpy/interfaces/react_components/radix/themes/typography/quote.pyi b/nextpy/interfaces/react_components/radix/themes/typography/quote.pyi new file mode 100644 index 00000000..76ab39fd --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/typography/quote.pyi @@ -0,0 +1,268 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/typography/quote.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from ..base import CommonMarginProps, RadixThemesComponent + +class Quote(el.Q, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + cite: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Quote": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/typography/strong.pyi b/nextpy/interfaces/react_components/radix/themes/typography/strong.pyi new file mode 100644 index 00000000..943af223 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/typography/strong.pyi @@ -0,0 +1,267 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/typography/strong.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from ..base import CommonMarginProps, RadixThemesComponent + +class Strong(el.Strong, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Strong": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/interfaces/react_components/radix/themes/typography/text.pyi b/nextpy/interfaces/react_components/radix/themes/typography/text.pyi new file mode 100644 index 00000000..699adc48 --- /dev/null +++ b/nextpy/interfaces/react_components/radix/themes/typography/text.pyi @@ -0,0 +1,303 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/radix/themes/typography/text.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy import el +from nextpy.backend.vars import Var +from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent +from .base import LiteralTextAlign, LiteralTextSize, LiteralTextTrim, LiteralTextWeight + +class Text(el.Span, CommonMarginProps, RadixThemesComponent): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + color: Optional[Union[Var[str], str]] = None, + color_scheme: Optional[ + Union[ + Var[ + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ] + ], + Literal[ + "tomato", + "red", + "ruby", + "crimson", + "pink", + "plum", + "purple", + "violet", + "iris", + "indigo", + "blue", + "cyan", + "teal", + "jade", + "green", + "grass", + "brown", + "orange", + "sky", + "mint", + "lime", + "yellow", + "amber", + "gold", + "bronze", + "gray", + ], + ] + ] = None, + as_child: Optional[Union[Var[bool], bool]] = None, + as_: Optional[Union[Var[str], str]] = None, + size: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + weight: Optional[ + Union[ + Var[Literal["light", "regular", "medium", "bold"]], + Literal["light", "regular", "medium", "bold"], + ] + ] = None, + align: Optional[ + Union[ + Var[Literal["left", "center", "right"]], + Literal["left", "center", "right"], + ] + ] = None, + trim: Optional[ + Union[ + Var[Literal["normal", "start", "end", "both"]], + Literal["normal", "start", "end", "both"], + ] + ] = None, + high_contrast: Optional[Union[Var[bool], bool]] = None, + access_key: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + auto_capitalize: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + content_editable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + context_menu: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + draggable: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + enter_key_hint: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + hidden: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + input_mode: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + item_prop: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None, + spell_check: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + tab_index: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + title: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + translate: Optional[ + Union[Var[Union[str, int, bool]], Union[str, int, bool]] + ] = None, + m: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mx: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + my: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mt: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mr: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + mb: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + ml: Optional[ + Union[ + Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], + Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Text": + """Create a new component instance. + + Will prepend "RadixThemes" to the component tag to avoid conflicts with + other UI libraries for common names, like Text and Button. + + Args: + *children: Child components. + color: map to CSS default color property. + color_scheme: map to radix color property. + as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. + as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild) + size: Text size: "1" - "9" + weight: Thickness of text: "light" | "regular" | "medium" | "bold" + align: Alignment of text in element: "left" | "center" | "right" + trim: Removes the leading trim space: "normal" | "start" | "end" | "both" + high_contrast: Whether to render the text with higher contrast color + access_key: Provides a hint for generating a keyboard shortcut for the current element. + auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. + content_editable: Indicates whether the element's content is editable. + context_menu: Defines the ID of a element which will serve as the element's context menu. + dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) + draggable: Defines whether the element can be dragged. + enter_key_hint: Hints what media types the media element is able to play. + hidden: Defines whether the element is hidden. + input_mode: Defines the type of the element. + item_prop: Defines the name of the element for metadata purposes. + lang: Defines the language used in the element. + role: Defines the role of the element. + slot: Assigns a slot in a shadow DOM shadow tree to an element. + spell_check: Defines whether the element may be checked for spelling errors. + tab_index: Defines the position of the current element in the tabbing order. + title: Defines a tooltip for the element. + translate: Specifies whether the content of an element should be translated or not. + m: Margin: "0" - "9" + mx: Margin horizontal: "0" - "9" + my: Margin vertical: "0" - "9" + mt: Margin top: "0" - "9" + mr: Margin right: "0" - "9" + mb: Margin bottom: "0" - "9" + ml: Margin left: "0" - "9" + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: Component properties. + + Returns: + A new component instance. + """ + ... diff --git a/nextpy/frontend/components/react_player/audio.pyi b/nextpy/interfaces/react_components/react_player/audio.pyi similarity index 97% rename from nextpy/frontend/components/react_player/audio.pyi rename to nextpy/interfaces/react_components/react_player/audio.pyi index af3d6332..bf2f9329 100644 --- a/nextpy/frontend/components/react_player/audio.pyi +++ b/nextpy/interfaces/react_components/react_player/audio.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.react_player.react_player import ReactPlayer +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.react_player.react_player import ReactPlayer class Audio(ReactPlayer): pass diff --git a/nextpy/frontend/components/react_player/react_player.pyi b/nextpy/interfaces/react_components/react_player/react_player.pyi similarity index 97% rename from nextpy/frontend/components/react_player/react_player.pyi rename to nextpy/interfaces/react_components/react_player/react_player.pyi index 18401b85..edce10ac 100644 --- a/nextpy/frontend/components/react_player/react_player.pyi +++ b/nextpy/interfaces/react_components/react_player/react_player.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.component import NoSSRComponent +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import NoSSRComponent from nextpy.backend.vars import Var class ReactPlayer(NoSSRComponent): diff --git a/nextpy/frontend/components/react_player/video.pyi b/nextpy/interfaces/react_components/react_player/video.pyi similarity index 97% rename from nextpy/frontend/components/react_player/video.pyi rename to nextpy/interfaces/react_components/react_player/video.pyi index 0f9767e0..a1edfb8c 100644 --- a/nextpy/frontend/components/react_player/video.pyi +++ b/nextpy/interfaces/react_components/react_player/video.pyi @@ -9,8 +9,8 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style -from nextpy.frontend.components.react_player.react_player import ReactPlayer +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.react_player.react_player import ReactPlayer class Video(ReactPlayer): pass diff --git a/nextpy/interfaces/react_components/recharts/cartesian.pyi b/nextpy/interfaces/react_components/recharts/cartesian.pyi new file mode 100644 index 00000000..b8cb7c59 --- /dev/null +++ b/nextpy/interfaces/react_components/recharts/cartesian.pyi @@ -0,0 +1,1911 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/recharts/cartesian.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, List, Union +from nextpy.constants import EventTriggers +from nextpy.backend.vars import Var +from .recharts import ( + LiteralAnimationEasing, + LiteralAreaType, + LiteralDirection, + LiteralIfOverflow, + LiteralInterval, + LiteralLayout, + LiteralLineType, + LiteralOrientationTopBottom, + LiteralOrientationTopBottomLeftRight, + LiteralPolarRadiusType, + LiteralScale, + LiteralShape, + Recharts, +) + +class Axis(Recharts): + def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + hide: Optional[Union[Var[bool], bool]] = None, + orientation: Optional[ + Union[Var[Literal["top", "bottom"]], Literal["top", "bottom"]] + ] = None, + type_: Optional[ + Union[Var[Literal["number", "category"]], Literal["number", "category"]] + ] = None, + allow_decimals: Optional[Union[Var[bool], bool]] = None, + allow_data_overflow: Optional[Union[Var[bool], bool]] = None, + allow_duplicated_category: Optional[Union[Var[bool], bool]] = None, + axis_line: Optional[Union[Var[bool], bool]] = None, + tick_line: Optional[Union[Var[bool], bool]] = None, + mirror: Optional[Union[Var[bool], bool]] = None, + reversed: Optional[Union[Var[bool], bool]] = None, + scale: Optional[ + Union[ + Var[ + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ] + ], + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ], + ] + ] = None, + unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Axis": + """Create the component. + + Args: + *children: The children of the component. + data_key: The key of a group of data which should be unique in an area chart. + hide: If set true, the axis do not display in the chart. + orientation: The orientation of axis 'top' | 'bottom' + type_: The type of axis 'number' | 'category' + allow_decimals: Allow the ticks of XAxis to be decimals or not. + allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. + allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". + axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line. + tick_line: If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines. + mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. + reversed: Reverse the ticks or not. + scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function + unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart. + name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class XAxis(Axis): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + hide: Optional[Union[Var[bool], bool]] = None, + orientation: Optional[ + Union[Var[Literal["top", "bottom"]], Literal["top", "bottom"]] + ] = None, + type_: Optional[ + Union[Var[Literal["number", "category"]], Literal["number", "category"]] + ] = None, + allow_decimals: Optional[Union[Var[bool], bool]] = None, + allow_data_overflow: Optional[Union[Var[bool], bool]] = None, + allow_duplicated_category: Optional[Union[Var[bool], bool]] = None, + axis_line: Optional[Union[Var[bool], bool]] = None, + tick_line: Optional[Union[Var[bool], bool]] = None, + mirror: Optional[Union[Var[bool], bool]] = None, + reversed: Optional[Union[Var[bool], bool]] = None, + scale: Optional[ + Union[ + Var[ + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ] + ], + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ], + ] + ] = None, + unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "XAxis": + """Create the component. + + Args: + *children: The children of the component. + data_key: The key of a group of data which should be unique in an area chart. + hide: If set true, the axis do not display in the chart. + orientation: The orientation of axis 'top' | 'bottom' + type_: The type of axis 'number' | 'category' + allow_decimals: Allow the ticks of XAxis to be decimals or not. + allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. + allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". + axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line. + tick_line: If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines. + mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. + reversed: Reverse the ticks or not. + scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function + unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart. + name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class YAxis(Axis): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + hide: Optional[Union[Var[bool], bool]] = None, + orientation: Optional[ + Union[Var[Literal["top", "bottom"]], Literal["top", "bottom"]] + ] = None, + type_: Optional[ + Union[Var[Literal["number", "category"]], Literal["number", "category"]] + ] = None, + allow_decimals: Optional[Union[Var[bool], bool]] = None, + allow_data_overflow: Optional[Union[Var[bool], bool]] = None, + allow_duplicated_category: Optional[Union[Var[bool], bool]] = None, + axis_line: Optional[Union[Var[bool], bool]] = None, + tick_line: Optional[Union[Var[bool], bool]] = None, + mirror: Optional[Union[Var[bool], bool]] = None, + reversed: Optional[Union[Var[bool], bool]] = None, + scale: Optional[ + Union[ + Var[ + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ] + ], + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ], + ] + ] = None, + unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "YAxis": + """Create the component. + + Args: + *children: The children of the component. + data_key: The key of a group of data which should be unique in an area chart. + hide: If set true, the axis do not display in the chart. + orientation: The orientation of axis 'top' | 'bottom' + type_: The type of axis 'number' | 'category' + allow_decimals: Allow the ticks of XAxis to be decimals or not. + allow_data_overflow: When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. + allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". + axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line. + tick_line: If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines. + mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. + reversed: Reverse the ticks or not. + scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' | Function + unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart. + name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class ZAxis(Recharts): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + range: Optional[Union[Var[List[int]], List[int]]] = None, + unit: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + scale: Optional[ + Union[ + Var[ + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ] + ], + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ZAxis": + """Create the component. + + Args: + *children: The children of the component. + data_key: The key of data displayed in the axis. + range: The range of axis. + unit: The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart. + name: The name of data displayed in the axis. This option will be used to represent an index in a scatter chart. + scale: If 'auto' set, the scale function is decided by the type of chart, and the props type. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Brush(Recharts): + def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + stroke: Optional[Union[Var[str], str]] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x: Optional[Union[Var[int], int]] = None, + y: Optional[Union[Var[int], int]] = None, + width: Optional[Union[Var[int], int]] = None, + height: Optional[Union[Var[int], int]] = None, + data: Optional[Union[Var[List[Any]], List[Any]]] = None, + traveller_width: Optional[Union[Var[int], int]] = None, + gap: Optional[Union[Var[int], int]] = None, + start_index: Optional[Union[Var[int], int]] = None, + end_index: Optional[Union[Var[int], int]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Brush": + """Create the component. + + Args: + *children: The children of the component. + stroke: Stroke color + data_key: The key of data displayed in the axis. + x: The x-coordinate of brush. + y: The y-coordinate of brush. + width: The width of brush. + height: The height of brush. + data: The data domain of brush, [min, max]. + traveller_width: The width of each traveller. + gap: The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time + start_index: The default start index of brush. If the option is not set, the start index will be 0. + end_index: The default end index of brush. If the option is not set, the end index will be 1. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Cartesian(Recharts): + def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + layout: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Cartesian": + """Create the component. + + Args: + *children: The children of the component. + layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical' + data_key: The key of a group of data which should be unique in an area chart. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + style: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional legend_type: Var[LiteralLegendType] The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Area(Cartesian): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + stroke: Optional[Union[Var[str], str]] = None, + stroke_width: Optional[Union[Var[int], int]] = None, + fill: Optional[Union[Var[str], str]] = None, + type_: Optional[ + Union[ + Var[ + Literal[ + "basis", + "basisClosed", + "basisOpen", + "bumpX", + "bumpY", + "bump", + "linear", + "linearClosed", + "natural", + "monotoneX", + "monotoneY", + "monotone", + "step", + "stepBefore", + "stepAfter", + ] + ], + Literal[ + "basis", + "basisClosed", + "basisOpen", + "bumpX", + "bumpY", + "bump", + "linear", + "linearClosed", + "natural", + "monotoneX", + "monotoneY", + "monotone", + "step", + "stepBefore", + "stepAfter", + ], + ] + ] = None, + dot: Optional[Union[Var[bool], bool]] = None, + active_dot: Optional[Union[Var[bool], bool]] = None, + label: Optional[Union[Var[bool], bool]] = None, + stack_id: Optional[Union[Var[str], str]] = None, + layout: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Area": + """Create the component. + + Args: + *children: The children of the component. + stroke: The color of the line stroke. + stroke_width: The width of the line stroke. + fill: The color of the area fill. + type_: The interpolation type of area. And customized interpolation function can be set to type. 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | + dot: If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. + active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. + label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. + stack_id: The stack id of area, when two areas have the same value axis and same stackId, then the two areas area stacked in order. + layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical' + data_key: The key of a group of data which should be unique in an area chart. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + style: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional legend_type: Var[LiteralLegendType] The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Bar(Cartesian): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + stroke: Optional[Union[Var[str], str]] = None, + stroke_width: Optional[Union[Var[int], int]] = None, + fill: Optional[Union[Var[str], str]] = None, + background: Optional[Union[Var[bool], bool]] = None, + label: Optional[Union[Var[bool], bool]] = None, + stack_id: Optional[Union[Var[str], str]] = None, + bar_size: Optional[Union[Var[int], int]] = None, + max_bar_size: Optional[Union[Var[int], int]] = None, + layout: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Bar": + """Create the component. + + Args: + *children: The children of the component. + stroke: The color of the line stroke. + stroke_width: The width of the line stroke. + fill: The width of the line stroke. + background: If false set, background of bars will not be drawn. If true set, background of bars will be drawn which have the props calculated internally. + label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. + stack_id: The stack id of bar, when two areas have the same value axis and same stackId, then the two areas area stacked in order. + bar_size: Size of the bar + max_bar_size: Max size of the bar + layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical' + data_key: The key of a group of data which should be unique in an area chart. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + style: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional legend_type: Var[LiteralLegendType] The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Line(Cartesian): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + type_: Optional[ + Union[ + Var[ + Literal[ + "basis", + "basisClosed", + "basisOpen", + "bumpX", + "bumpY", + "bump", + "linear", + "linearClosed", + "natural", + "monotoneX", + "monotoneY", + "monotone", + "step", + "stepBefore", + "stepAfter", + ] + ], + Literal[ + "basis", + "basisClosed", + "basisOpen", + "bumpX", + "bumpY", + "bump", + "linear", + "linearClosed", + "natural", + "monotoneX", + "monotoneY", + "monotone", + "step", + "stepBefore", + "stepAfter", + ], + ] + ] = None, + stroke: Optional[Union[Var[str], str]] = None, + stoke_width: Optional[Union[Var[int], int]] = None, + dot: Optional[Union[Var[bool], bool]] = None, + active_dot: Optional[Union[Var[bool], bool]] = None, + label: Optional[Union[Var[bool], bool]] = None, + hide: Optional[Union[Var[bool], bool]] = None, + connect_nulls: Optional[Union[Var[bool], bool]] = None, + layout: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Line": + """Create the component. + + Args: + *children: The children of the component. + type_: The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area. + stroke: The color of the line stroke. + stoke_width: The width of the line stroke. + dot: The dot is shown when mouse enter a line chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. + active_dot: The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. + label: If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. + hide: Hides the line when true, useful when toggling visibility state via legend. + connect_nulls: Whether to connect a graph line across null points. + layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical' + data_key: The key of a group of data which should be unique in an area chart. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + style: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional legend_type: Var[LiteralLegendType] The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Scatter(Cartesian): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None, + z_axis_id: Optional[Union[Var[str], str]] = None, + line: Optional[Union[Var[bool], bool]] = None, + shape: Optional[ + Union[ + Var[ + Literal[ + "square", + "circle", + "cross", + "diamond", + "star", + "triangle", + "wye", + ] + ], + Literal[ + "square", "circle", "cross", "diamond", "star", "triangle", "wye" + ], + ] + ] = None, + line_type: Optional[ + Union[Var[Literal["joint", "fitting"]], Literal["joint", "fitting"]] + ] = None, + fill: Optional[Union[Var[str], str]] = None, + name: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + layout: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Scatter": + """Create the component. + + Args: + *children: The children of the component. + data: The source data, in which each element is an object. + z_axis_id: The id of z-axis which is corresponding to the data. + line: If false set, line will not be drawn. If true set, line will be drawn which have the props calculated internally. + shape: If a string set, specified symbol will be used to show scatter item. 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' + line_type: If 'joint' set, line will generated by just jointing all the points. If 'fitting' set, line will be generated by fitting algorithm. 'joint' | 'fitting' + fill: The fill + name: the name + layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical' + data_key: The key of a group of data which should be unique in an area chart. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + style: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional legend_type: Var[LiteralLegendType] The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Funnel(Cartesian): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None, + animation_begin: Optional[Union[Var[int], int]] = None, + animation_duration: Optional[Union[Var[int], int]] = None, + animation_easing: Optional[ + Union[ + Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]], + Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"], + ] + ] = None, + layout: Optional[ + Union[ + Var[Literal["horizontal", "vertical"]], + Literal["horizontal", "vertical"], + ] + ] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Funnel": + """Create the component. + + Args: + *children: The children of the component. + data: The source data, in which each element is an object. + animation_begin: Specifies when the animation should begin, the unit of this option is ms. + animation_duration: Specifies the duration of animation, the unit of this option is ms. + animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear' + layout: The layout of bar in the chart, usually inherited from parent. 'horizontal' | 'vertical' + data_key: The key of a group of data which should be unique in an area chart. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + style: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none'optional legend_type: Var[LiteralLegendType] The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class ErrorBar(Recharts): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + direction: Optional[ + Union[Var[Literal["x", "y", "both"]], Literal["x", "y", "both"]] + ] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + width: Optional[Union[Var[int], int]] = None, + stroke: Optional[Union[Var[str], str]] = None, + stroke_width: Optional[Union[Var[int], int]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ErrorBar": + """Create the component. + + Args: + *children: The children of the component. + direction: The direction of error bar. 'x' | 'y' | 'both' + data_key: The key of a group of data which should be unique in an area chart. + width: The width of the error bar ends. + stroke: The stroke color of error bar. + stroke_width: The stroke width of error bar. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Reference(Recharts): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x: Optional[Union[Var[str], str]] = None, + y: Optional[Union[Var[str], str]] = None, + if_overflow: Optional[ + Union[ + Var[Literal["discard", "hidden", "visible", "extendDomain"]], + Literal["discard", "hidden", "visible", "extendDomain"], + ] + ] = None, + is_front: Optional[Union[Var[bool], bool]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Reference": + """Create the component. + + Args: + *children: The children of the component. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn. + y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn. + if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. + is_front: If set true, the line will be rendered in front of bars in BarChart, etc. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class ReferenceLine(Reference): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + stroke_width: Optional[Union[Var[int], int]] = None, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x: Optional[Union[Var[str], str]] = None, + y: Optional[Union[Var[str], str]] = None, + if_overflow: Optional[ + Union[ + Var[Literal["discard", "hidden", "visible", "extendDomain"]], + Literal["discard", "hidden", "visible", "extendDomain"], + ] + ] = None, + is_front: Optional[Union[Var[bool], bool]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ReferenceLine": + """Create the component. + + Args: + *children: The children of the component. + stroke_width: The width of the stroke. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn. + y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn. + if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. + is_front: If set true, the line will be rendered in front of bars in BarChart, etc. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class ReferenceDot(Reference): + def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x: Optional[Union[Var[str], str]] = None, + y: Optional[Union[Var[str], str]] = None, + if_overflow: Optional[ + Union[ + Var[Literal["discard", "hidden", "visible", "extendDomain"]], + Literal["discard", "hidden", "visible", "extendDomain"], + ] + ] = None, + is_front: Optional[Union[Var[bool], bool]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ReferenceDot": + """Create the component. + + Args: + *children: The children of the component. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn. + y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn. + if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. + is_front: If set true, the line will be rendered in front of bars in BarChart, etc. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class ReferenceArea(Recharts): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + stroke: Optional[Union[Var[str], str]] = None, + fill: Optional[Union[Var[str], str]] = None, + fill_opacity: Optional[Union[Var[float], float]] = None, + x_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y_axis_id: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x1: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + x2: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y1: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + y2: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + if_overflow: Optional[ + Union[ + Var[Literal["discard", "hidden", "visible", "extendDomain"]], + Literal["discard", "hidden", "visible", "extendDomain"], + ] + ] = None, + is_front: Optional[Union[Var[bool], bool]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ReferenceArea": + """Create the component. + + Args: + *children: The children of the component. + stroke: Stroke color + fill: Fill color + fill_opacity: The opacity of area. + x_axis_id: The id of x-axis which is corresponding to the data. + y_axis_id: The id of y-axis which is corresponding to the data. + x1: A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys. If one of x1 or x2 is invalidate, the area will cover along x-axis. + x2: A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys. If one of x1 or x2 is invalidate, the area will cover along x-axis. + y1: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis. + y2: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis. + if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. + is_front: If set true, the line will be rendered in front of bars in BarChart, etc. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Grid(Recharts): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + x: Optional[Union[Var[int], int]] = None, + y: Optional[Union[Var[int], int]] = None, + width: Optional[Union[Var[int], int]] = None, + height: Optional[Union[Var[int], int]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Grid": + """Create the component. + + Args: + *children: The children of the component. + x: The x-coordinate of grid. + y: The y-coordinate of grid. + width: The width of grid. + height: The height of grid. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class CartesianGrid(Grid): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + horizontal: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None, + vertical: Optional[Union[Var[Dict[str, Any]], Dict[str, Any]]] = None, + fill: Optional[Union[Var[str], str]] = None, + fill_opacity: Optional[Union[Var[float], float]] = None, + stroke_dasharray: Optional[Union[Var[str], str]] = None, + x: Optional[Union[Var[int], int]] = None, + y: Optional[Union[Var[int], int]] = None, + width: Optional[Union[Var[int], int]] = None, + height: Optional[Union[Var[int], int]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "CartesianGrid": + """Create the component. + + Args: + *children: The children of the component. + horizontal: The horizontal line configuration. + vertical: The vertical line configuration. + fill: The background of grid. + fill_opacity: The opacity of the background used to fill the space between grid lines + stroke_dasharray: The pattern of dashes and gaps used to paint the lines of the grid + x: The x-coordinate of grid. + y: The y-coordinate of grid. + width: The width of grid. + height: The height of grid. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class CartesianAxis(Grid): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + orientation: Optional[ + Union[ + Var[Literal["top", "bottom", "left", "right"]], + Literal["top", "bottom", "left", "right"], + ] + ] = None, + axis_line: Optional[Union[Var[bool], bool]] = None, + tick_line: Optional[Union[Var[bool], bool]] = None, + tick_size: Optional[Union[Var[int], int]] = None, + interval: Optional[ + Union[ + Var[Literal["preserveStart", "preserveEnd", "preserveStartEnd"]], + Literal["preserveStart", "preserveEnd", "preserveStartEnd"], + ] + ] = None, + ticks: Optional[Union[Var[bool], bool]] = None, + label: Optional[Union[Var[str], str]] = None, + mirror: Optional[Union[Var[bool], bool]] = None, + tick_margin: Optional[Union[Var[int], int]] = None, + x: Optional[Union[Var[int], int]] = None, + y: Optional[Union[Var[int], int]] = None, + width: Optional[Union[Var[int], int]] = None, + height: Optional[Union[Var[int], int]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "CartesianAxis": + """Create the component. + + Args: + *children: The children of the component. + orientation: The orientation of axis 'top' | 'bottom' | 'left' | 'right' + axis_line: If set false, no axis line will be drawn. If set a object, the option is the configuration of axis line. + tick_line: If set false, no axis tick lines will be drawn. If set a object, the option is the configuration of tick lines. + tick_size: The length of tick line. + interval: If set 0, all the ticks will be shown. If set preserveStart", "preserveEnd" or "preserveStartEnd", the ticks which is to be shown or hidden will be calculated automatically. + ticks: If set false, no ticks will be drawn. + label: If set a string or a number, default label will be drawn, and the option is content. + mirror: If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. + tick_margin: The margin between tick line and tick. + x: The x-coordinate of grid. + y: The y-coordinate of grid. + width: The width of grid. + height: The height of grid. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/recharts/charts.pyi b/nextpy/interfaces/react_components/recharts/charts.pyi similarity index 99% rename from nextpy/frontend/components/recharts/charts.pyi rename to nextpy/interfaces/react_components/recharts/charts.pyi index 39673983..5e4e206c 100644 --- a/nextpy/frontend/components/recharts/charts.pyi +++ b/nextpy/interfaces/react_components/recharts/charts.pyi @@ -9,10 +9,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Union -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.recharts.general import ResponsiveContainer +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.recharts.general import ResponsiveContainer from nextpy.constants import EventTriggers from nextpy.backend.vars import Var from .recharts import ( diff --git a/nextpy/frontend/components/recharts/general.pyi b/nextpy/interfaces/react_components/recharts/general.pyi similarity index 99% rename from nextpy/frontend/components/recharts/general.pyi rename to nextpy/interfaces/react_components/recharts/general.pyi index c379e971..53397699 100644 --- a/nextpy/frontend/components/recharts/general.pyi +++ b/nextpy/interfaces/react_components/recharts/general.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Any, Dict, List, Union -from nextpy.frontend.components.component import MemoizationLeaf +from nextpy.interfaces.web.react_components.component import MemoizationLeaf from nextpy.constants import EventTriggers from nextpy.backend.vars import Var from .recharts import ( diff --git a/nextpy/interfaces/react_components/recharts/polar.pyi b/nextpy/interfaces/react_components/recharts/polar.pyi new file mode 100644 index 00000000..f53b0403 --- /dev/null +++ b/nextpy/interfaces/react_components/recharts/polar.pyi @@ -0,0 +1,568 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/recharts/polar.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Any, Dict, List, Union +from nextpy.constants import EventTriggers +from nextpy.backend.vars import Var +from .recharts import ( + LiteralAnimationEasing, + LiteralGridType, + LiteralPolarRadiusType, + LiteralScale, + Recharts, +) + +class Pie(Recharts): + def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + inner_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + outer_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + start_angle: Optional[Union[Var[int], int]] = None, + end_angle: Optional[Union[Var[int], int]] = None, + min_angle: Optional[Union[Var[int], int]] = None, + padding_angle: Optional[Union[Var[int], int]] = None, + name_key: Optional[Union[Var[str], str]] = None, + legend_type: Optional[Union[Var[str], str]] = None, + label: Optional[Union[Var[bool], bool]] = None, + label_line: Optional[Union[Var[bool], bool]] = None, + fill: Optional[Union[Var[str], str]] = None, + stroke: Optional[Union[Var[str], str]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Pie": + """Create the component. + + Args: + *children: The children of the component. + data: data + data_key: The key of each sector's value. + cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. + cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. + inner_radius: The inner radius of pie, which can be set to a percent value. + outer_radius: The outer radius of pie, which can be set to a percent value. + start_angle: The angle of first sector. + end_angle: The direction of sectors. 1 means clockwise and -1 means anticlockwise. + min_angle: The minimum angle of each unzero data. + padding_angle: The angle between two sectors. + name_key: The key of each sector's name. + legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. + label: If false set, labels will not be drawn. + label_line: If false set, label lines will not be drawn. + fill: fill color + stroke: stroke color + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Radar(Recharts): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + points: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None, + dot: Optional[Union[Var[bool], bool]] = None, + stroke: Optional[Union[Var[str], str]] = None, + fill: Optional[Union[Var[str], str]] = None, + fill_opacity: Optional[Union[Var[float], float]] = None, + legend_type: Optional[Union[Var[str], str]] = None, + label: Optional[Union[Var[bool], bool]] = None, + animation_begin: Optional[Union[Var[int], int]] = None, + animation_duration: Optional[Union[Var[int], int]] = None, + animation_easing: Optional[ + Union[ + Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]], + Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Radar": + """Create the component. + + Args: + *children: The children of the component. + data_key: The key of a group of data which should be unique in a radar chart. + points: The coordinates of all the vertexes of the radar shape, like [{ x, y }]. + dot: If false set, dots will not be drawn + stroke: Stoke color + fill: Fill color + fill_opacity: opacity + legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. + label: If false set, labels will not be drawn + animation_begin: Specifies when the animation should begin, the unit of this option is ms. + animation_duration: Specifies the duration of animation, the unit of this option is ms. + animation_easing: The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear' + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class RadialBar(Recharts): + def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None, + min_angle: Optional[Union[Var[int], int]] = None, + legend_type: Optional[Union[Var[str], str]] = None, + label: Optional[Union[Var[bool], bool]] = None, + background: Optional[Union[Var[bool], bool]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "RadialBar": + """Create the component. + + Args: + *children: The children of the component. + data: The source data which each element is an object. + min_angle: Min angle of each bar. A positive value between 0 and 360. + legend_type: Type of legend + label: If false set, labels will not be drawn. + background: If false set, background sector will not be drawn. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class PolarAngleAxis(Recharts): + def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + data_key: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None, + cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + axis_line: Optional[ + Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]] + ] = None, + axis_line_type: Optional[Union[Var[str], str]] = None, + tick_line: Optional[ + Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]] + ] = None, + tick: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + ticks: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None, + orient: Optional[Union[Var[str], str]] = None, + allow_duplicated_category: Optional[Union[Var[bool], bool]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "PolarAngleAxis": + """Create the component. + + Args: + *children: The children of the component. + data_key: The key of a group of data which should be unique to show the meaning of angle axis. + cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. + cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. + radius: The outer radius of circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy. + axis_line: If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option. + axis_line_type: The type of axis line. + tick_line: If false set, tick lines will not be drawn. If true set, tick lines will be drawn which have the props calculated internally. If object set, tick lines will be drawn which have the props mergered by the internal calculated props and the option. + tick: The width or height of tick. + ticks: The array of every tick's value and angle. + orient: The orientation of axis text. + allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class PolarGrid(Recharts): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + inner_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + outer_radius: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + polar_angles: Optional[Union[Var[List[int]], List[int]]] = None, + polar_radius: Optional[Union[Var[List[int]], List[int]]] = None, + grid_type: Optional[ + Union[Var[Literal["polygon", "circle"]], Literal["polygon", "circle"]] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "PolarGrid": + """Create the component. + + Args: + *children: The children of the component. + cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. + cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. + inner_radius: The radius of the inner polar grid. + outer_radius: The radius of the outer polar grid. + polar_angles: The array of every line grid's angle. + polar_radius: The array of every line grid's radius. + grid_type: The type of polar grids. 'polygon' | 'circle' + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class PolarRadiusAxis(Recharts): + def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + angle: Optional[Union[Var[int], int]] = None, + type_: Optional[ + Union[Var[Literal["number", "category"]], Literal["number", "category"]] + ] = None, + allow_duplicated_category: Optional[Union[Var[bool], bool]] = None, + cx: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + cy: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + reversed: Optional[Union[Var[bool], bool]] = None, + orientation: Optional[Union[Var[str], str]] = None, + axis_line: Optional[ + Union[Var[Union[bool, Dict[str, Any]]], Union[bool, Dict[str, Any]]] + ] = None, + tick: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None, + tick_count: Optional[Union[Var[int], int]] = None, + scale: Optional[ + Union[ + Var[ + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ] + ], + Literal[ + "auto", + "linear", + "pow", + "sqrt", + "log", + "identity", + "time", + "band", + "point", + "ordinal", + "quantile", + "quantize", + "utc", + "sequential", + "threshold", + ], + ] + ] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "PolarRadiusAxis": + """Create the component. + + Args: + *children: The children of the component. + angle: The angle of radial direction line to display axis text. + type_: The type of axis line. 'number' | 'category' + allow_duplicated_category: Allow the axis has duplicated categorys or not when the type of axis is "category". + cx: The x-coordinate of center. + cy: The y-coordinate of center. + reversed: If set to true, the ticks of this axis are reversed. + orientation: The orientation of axis text. + axis_line: If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option. + tick: The width or height of tick. + tick_count: The count of ticks. + scale: If 'auto' set, the scale funtion is linear scale. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold' + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/recharts/recharts.pyi b/nextpy/interfaces/react_components/recharts/recharts.pyi similarity index 98% rename from nextpy/frontend/components/recharts/recharts.pyi rename to nextpy/interfaces/react_components/recharts/recharts.pyi index 9bf2cea7..95b121f3 100644 --- a/nextpy/frontend/components/recharts/recharts.pyi +++ b/nextpy/interfaces/react_components/recharts/recharts.pyi @@ -9,9 +9,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style from typing import Literal -from nextpy.frontend.components.component import Component, MemoizationLeaf, NoSSRComponent +from nextpy.interfaces.web.react_components.component import Component, MemoizationLeaf, NoSSRComponent class Recharts(Component): @overload diff --git a/nextpy/frontend/components/suneditor/editor.pyi b/nextpy/interfaces/react_components/suneditor/editor.pyi similarity index 98% rename from nextpy/frontend/components/suneditor/editor.pyi rename to nextpy/interfaces/react_components/suneditor/editor.pyi index b21fbe5e..7422e51f 100644 --- a/nextpy/frontend/components/suneditor/editor.pyi +++ b/nextpy/interfaces/react_components/suneditor/editor.pyi @@ -9,14 +9,14 @@ from typing import Any, Dict, Literal, Optional, Union, overload from nextpy.backend.vars import Var, BaseVar, ComputedVar from nextpy.backend.event import EventChain, EventHandler, EventSpec -from nextpy.frontend.style import Style +from nextpy.interfaces.web.style import Style import enum from typing import Any, Dict, List, Literal, Optional, Union from nextpy.base import Base -from nextpy.frontend.components.component import Component, NoSSRComponent +from nextpy.interfaces.web.react_components.component import Component, NoSSRComponent from nextpy.constants import EventTriggers from nextpy.utils.format import to_camel_case -from nextpy.frontend.imports import ReactImportVar +from nextpy.interfaces.web.imports import ReactImportVar from nextpy.backend.vars import Var class EditorButtonList(list, enum.Enum): diff --git a/nextpy/frontend/templates/apps/base/README.md b/nextpy/interfaces/templates/apps/base/README.md similarity index 100% rename from nextpy/frontend/templates/apps/base/README.md rename to nextpy/interfaces/templates/apps/base/README.md diff --git a/nextpy/frontend/templates/apps/blank/assets/favicon.ico b/nextpy/interfaces/templates/apps/base/assets/favicon.ico similarity index 100% rename from nextpy/frontend/templates/apps/blank/assets/favicon.ico rename to nextpy/interfaces/templates/apps/base/assets/favicon.ico diff --git a/nextpy/frontend/templates/apps/blank/assets/github.svg b/nextpy/interfaces/templates/apps/base/assets/github.svg similarity index 100% rename from nextpy/frontend/templates/apps/blank/assets/github.svg rename to nextpy/interfaces/templates/apps/base/assets/github.svg diff --git a/nextpy/frontend/templates/apps/blank/assets/gradient_underline.svg b/nextpy/interfaces/templates/apps/base/assets/gradient_underline.svg similarity index 100% rename from nextpy/frontend/templates/apps/blank/assets/gradient_underline.svg rename to nextpy/interfaces/templates/apps/base/assets/gradient_underline.svg diff --git a/nextpy/frontend/templates/apps/blank/assets/icon.svg b/nextpy/interfaces/templates/apps/base/assets/icon.svg similarity index 100% rename from nextpy/frontend/templates/apps/blank/assets/icon.svg rename to nextpy/interfaces/templates/apps/base/assets/icon.svg diff --git a/nextpy/frontend/templates/apps/blank/assets/logo_darkmode.svg b/nextpy/interfaces/templates/apps/base/assets/logo_darkmode.svg similarity index 100% rename from nextpy/frontend/templates/apps/blank/assets/logo_darkmode.svg rename to nextpy/interfaces/templates/apps/base/assets/logo_darkmode.svg diff --git a/nextpy/frontend/templates/apps/blank/assets/paneleft.svg b/nextpy/interfaces/templates/apps/base/assets/paneleft.svg similarity index 100% rename from nextpy/frontend/templates/apps/blank/assets/paneleft.svg rename to nextpy/interfaces/templates/apps/base/assets/paneleft.svg diff --git a/nextpy/frontend/templates/apps/blank/assets/text_logo_darkmode.svg b/nextpy/interfaces/templates/apps/base/assets/text_logo_darkmode.svg similarity index 100% rename from nextpy/frontend/templates/apps/blank/assets/text_logo_darkmode.svg rename to nextpy/interfaces/templates/apps/base/assets/text_logo_darkmode.svg diff --git a/nextpy/frontend/templates/apps/base/code/__init__.py b/nextpy/interfaces/templates/apps/base/code/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/__init__.py rename to nextpy/interfaces/templates/apps/base/code/__init__.py diff --git a/nextpy/frontend/templates/apps/base/code/base.py b/nextpy/interfaces/templates/apps/base/code/base.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/base.py rename to nextpy/interfaces/templates/apps/base/code/base.py diff --git a/nextpy/frontend/templates/apps/blank/code/__init__.py b/nextpy/interfaces/templates/apps/base/code/components/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/blank/code/__init__.py rename to nextpy/interfaces/templates/apps/base/code/components/__init__.py diff --git a/nextpy/frontend/templates/apps/base/code/components/sidebar.py b/nextpy/interfaces/templates/apps/base/code/components/sidebar.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/components/sidebar.py rename to nextpy/interfaces/templates/apps/base/code/components/sidebar.py diff --git a/nextpy/frontend/templates/apps/base/code/pages/__init__.py b/nextpy/interfaces/templates/apps/base/code/pages/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/pages/__init__.py rename to nextpy/interfaces/templates/apps/base/code/pages/__init__.py diff --git a/nextpy/frontend/templates/apps/base/code/pages/dashboard.py b/nextpy/interfaces/templates/apps/base/code/pages/dashboard.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/pages/dashboard.py rename to nextpy/interfaces/templates/apps/base/code/pages/dashboard.py diff --git a/nextpy/frontend/templates/apps/base/code/pages/index.py b/nextpy/interfaces/templates/apps/base/code/pages/index.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/pages/index.py rename to nextpy/interfaces/templates/apps/base/code/pages/index.py diff --git a/nextpy/frontend/templates/apps/base/code/pages/settings.py b/nextpy/interfaces/templates/apps/base/code/pages/settings.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/pages/settings.py rename to nextpy/interfaces/templates/apps/base/code/pages/settings.py diff --git a/nextpy/frontend/templates/apps/base/code/styles.py b/nextpy/interfaces/templates/apps/base/code/styles.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/styles.py rename to nextpy/interfaces/templates/apps/base/code/styles.py diff --git a/nextpy/frontend/templates/apps/base/code/templates/__init__.py b/nextpy/interfaces/templates/apps/base/code/templates/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/templates/__init__.py rename to nextpy/interfaces/templates/apps/base/code/templates/__init__.py diff --git a/nextpy/frontend/templates/apps/base/code/templates/template.py b/nextpy/interfaces/templates/apps/base/code/templates/template.py similarity index 100% rename from nextpy/frontend/templates/apps/base/code/templates/template.py rename to nextpy/interfaces/templates/apps/base/code/templates/template.py diff --git a/nextpy/frontend/templates/apps/hello/assets/favicon.ico b/nextpy/interfaces/templates/apps/blank/assets/favicon.ico similarity index 100% rename from nextpy/frontend/templates/apps/hello/assets/favicon.ico rename to nextpy/interfaces/templates/apps/blank/assets/favicon.ico diff --git a/nextpy/frontend/templates/apps/hello/assets/github.svg b/nextpy/interfaces/templates/apps/blank/assets/github.svg similarity index 100% rename from nextpy/frontend/templates/apps/hello/assets/github.svg rename to nextpy/interfaces/templates/apps/blank/assets/github.svg diff --git a/nextpy/frontend/templates/apps/hello/assets/gradient_underline.svg b/nextpy/interfaces/templates/apps/blank/assets/gradient_underline.svg similarity index 100% rename from nextpy/frontend/templates/apps/hello/assets/gradient_underline.svg rename to nextpy/interfaces/templates/apps/blank/assets/gradient_underline.svg diff --git a/nextpy/frontend/templates/apps/hello/assets/icon.svg b/nextpy/interfaces/templates/apps/blank/assets/icon.svg similarity index 100% rename from nextpy/frontend/templates/apps/hello/assets/icon.svg rename to nextpy/interfaces/templates/apps/blank/assets/icon.svg diff --git a/nextpy/frontend/templates/apps/hello/assets/logo_darkmode.svg b/nextpy/interfaces/templates/apps/blank/assets/logo_darkmode.svg similarity index 100% rename from nextpy/frontend/templates/apps/hello/assets/logo_darkmode.svg rename to nextpy/interfaces/templates/apps/blank/assets/logo_darkmode.svg diff --git a/nextpy/frontend/templates/apps/hello/assets/paneleft.svg b/nextpy/interfaces/templates/apps/blank/assets/paneleft.svg similarity index 100% rename from nextpy/frontend/templates/apps/hello/assets/paneleft.svg rename to nextpy/interfaces/templates/apps/blank/assets/paneleft.svg diff --git a/nextpy/frontend/templates/apps/hello/assets/text_logo_darkmode.svg b/nextpy/interfaces/templates/apps/blank/assets/text_logo_darkmode.svg similarity index 100% rename from nextpy/frontend/templates/apps/hello/assets/text_logo_darkmode.svg rename to nextpy/interfaces/templates/apps/blank/assets/text_logo_darkmode.svg diff --git a/nextpy/frontend/templates/apps/hello/code/webui/__init__.py b/nextpy/interfaces/templates/apps/blank/code/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/__init__.py rename to nextpy/interfaces/templates/apps/blank/code/__init__.py diff --git a/nextpy/frontend/templates/apps/blank/code/blank.py b/nextpy/interfaces/templates/apps/blank/code/blank.py similarity index 100% rename from nextpy/frontend/templates/apps/blank/code/blank.py rename to nextpy/interfaces/templates/apps/blank/code/blank.py diff --git a/nextpy/interfaces/templates/apps/hello/.gitignore b/nextpy/interfaces/templates/apps/hello/.gitignore new file mode 100644 index 00000000..eab0d4b0 --- /dev/null +++ b/nextpy/interfaces/templates/apps/hello/.gitignore @@ -0,0 +1,4 @@ +*.db +*.py[cod] +.web +__pycache__/ \ No newline at end of file diff --git a/nextpy/interfaces/templates/apps/hello/assets/favicon.ico b/nextpy/interfaces/templates/apps/hello/assets/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..1f55d3be060bb3a53118ff759b317978debf9f28 GIT binary patch literal 15406 zcmeI33zS`Db;qv-t%3-Ym(T|hAJw2sB&8COIx?Ai?>YBQsxAk`0#c=UP3D<-+?h!x zcV5Z7GOtX6krDx|m7tV@v=$Y#f(v;mk1kL&g^Fk(O+qB^$L??MbG~!WOomJ*tdJ~M zXRW=ybMHOh+5i1N`}@BA?fp$6@rJ~4iBnEV&`wLtJ3f*4>qH_kZCdd8y{9G;Yx(Yi z3&P*ulSusdj6~wS+(Q?71mDw4_$Qe;Ws;ruh-4PrFWK_q32!>cmy(_Tgp@82`if*K z9+#4Z=N#nr1Adb1!e0-t@cIg_DH5- zrDPg2L7%3l#BbV7-~HmZAWM)|Wa)E~T5>)*e?mX7*CF*t1JB6qlT6bd`tTXCev4_f z?@|#jkF@QSbo-U!*WXPa?T0jSPmX(?MTNiNq2lvyoT?fFYKp% zT))K*C*P?)#J7H2cZ#H!?MA)`&VL=F&ole95B;@Y`+jt(1pT}&+GR-h9!Yo4h07bo zH{0kF;Zwq_``U3lQq3@T-O_J{VtfV`y5O4X* zlJ41$(6@j=iel$!5bt!v`{`moj+6AND{a@?%;?K)6SN%Xr=WV6k z&3v^>vJ19IY56VSm@(0u^ICPr`!h%0g6$h^u5|Ndww!sV{3XdO9Fd~xQ(n#Y;?FtU zYsr+~hrL^|H<+t!&eeIh0t}UpGIxIp|9I2kK7X=)*ogjexL2K~S9K#g?^kX@Zjf1x zCr|dA!~H$bUx9wr8S2eeajjClSN!V7Sbt{gTyZEmZ0+zW{+N07Z8p~wEjry={anUa z59c2DEOh<=j<;Yhe6wDu-b}b|Woy7tyP0+5Mk%g3YkXh#3~g&5$6E3QGl z%KZHR^ZwJckFwU>EMD`~lFm)jxzY8N(#l)VxiQdNjc#2lL&?^ne-UdIYp1u!lbJPd zas5oE&9O~qh*$d|@tQs@UgIEZ&Xefd!uqz0HFck@ahb)mi+8flvBtK3L%b!II1K3h zXVb6iw5_+Q+tysL==y1E?^f2(b&{=rw-gl}&)WEQbbOfg`*YYij9?!+gY_6)ZcT1s z?Q!d?u3xs!Ze#trLrOZ{EeYnmZ1p#=7yHp`_L|M;tGNgSX;ep?>scREQU{8Z%hjfPRe| zEDoT}!C~$diy<<^0vba&8KYCzc(WH>8Yh@e)f$ZTd6yed5=>5ZW5* zRC`043-4ET^1HJ)&avv8$X1JW=tq3zYn)`U5*RuQ`aSe#8h$gz)*#lSU&OQOM%1s= zR;SxI=5y@*1~DY}xi~9~?R;W8jqgmlwi7=E_WKRJ=tjSCtnuOj{>*pSoQZRcZ+WWQ zVnJ=WM+KdxSKBc*qgUfY7b7l1|MF0O4*fawn{Uz2+3bAEY(;ugrt6X|vOiLEuh zwisLE<=zLSxa%zJ{v0+wGe)P4A+_g`!czz0rO=P-^24`*vmdMoTq&DH_o2}U*5~UY9srI2Wf9bSBoUO zN+i{FwytH!o4Nite)V7IWDjK=!xef}g1rgt3hYNxD+2pDRqXx^E`(7y<`Qx7%9{ zsD5M+{>SPc^PIAE$4P1a1WEF4*qg+Eo9tSWeP^N2R6ORnfc-)~K)+G}F_ zOK^<9|Hu>U6K5RC^QL-_?P*H}FX0_Ofc`zY=yn*6eI-TTqvb;E67!>MgBuF^KM55Bs=%ha@m}BT0Ujm9+O8O^*<^3 z!a3wqGTV2cmK`x&&WUAg|tbk{6e|p3nv|HuX{9%0cRO`nn7eevJKg1 zl3lQu{KX!y^WDNn$))5Zz2KtPBX>0w9^m@RhVrv*I@Fil1>^{d?+0kCU6ZR_j*Bf(-%wiV%O~D{L?60W?9^RjhAB$;cH=IN~ekOILKeHTSaqc`(DI%XpT}^dpe(=@i z3^>0R?w>+-B8=5aB+Pdnkn^;>=XUaP4Wonyk##}y zYPIXgk6w%qop3N4jAyN7>KkpqL97RDLkw~)_V z{6EM8)Gog!sl|(=B!7X~ok&FWQu4ev!}pIFmpjZ)GUG5?&X>Gvkn_bR@~%Pd_hIs_ z<>Y^-E2rbVD5}5C&Yy#CTr62Id%1;3KU~9Y6Z_dPH=Ak3FUezN$YTY0G+J^jmLFci zo_EP+asiLB*X(3JTolhY8~#ky{f6IRkMhM4=Zf25=egKmxxIQ~q&oK36>l@VTF;}V zAgSiFCEf6s_{AmURj)OkEoa_DKC)>mxXDR0?FF;TDU%b?T$tvj!aSVjrGnfPx>~WX zbvx~P$>jT`wBsH6K9w_k?P~)jrub3cCBFkD)J-b7uc`?yszLR_=V-9!K8UZmphE-r7g$AZb0d24Ji+_aX@rES252I>Nh-$K@c z_3L0|jRSKghd-0oc6n^qx?G&)9W@6S2{>IYP_c)&ea(?M$y2w<{~WnqvK>V_e}f(T zwFUeRyK-H?9`atV*cG=5-&r1fH#p%oM{NV&$mH+~%~{5B@b0?6H@}B|66I_o>;d0~ ze_Vdg&y)Mfzd#P=E^63=vt63|4?R^1$^X+li z9nZ#f46~~}L^S}l1F<>)7-HB1uKCV54{fTF`V;Tybcg@?f7BKi#{i?_+iD8@7Ms7Lap`!r zmOk2sk0rn7oytbu$>-iqVuY8B|N-#D< z{Lz@?UdOq%@j1|8j?E`=|91Io%iqJbVva;>2VGzf#qT1gzpQ}YZ|tDH3;ss%hu95o z=;Kk%DmE_N+!EBS!0N`O!#~k{62tC%Ty2=xPrw}3TjDjB^fK&N7UEyd86o_C4F1@- zjQm9X#bGx;;dAIGIiJloxndF z&u;z>=0N&K^9gng7U47PScYOu?woh8jxx6LMW<3kLhPE}r z?B%D+rJUokya%}x)%9V{t9i>lK|TAs%z@zO32aawaW!pg9oL2*JHq<5)tLth_%)BD zHFCf6Tw?0EVE?*!OCMwoc^+ZU+{T_w@vDERZ+B9Q@8C>9$CF%tkA9qA>*%Bw{aH!n zFSHux^s)oa)4BYF?ej}|FQ6VyE}`ckIHn%0{tee!6F2FnMeOXawk!CIxEgtS5d1^N zzwP1Gh8b(#D9QYp;QuS|GN-nUGM|92{b6vk$8G0KLOW*wI(`D)oAB!zK7Wkscf#ix zGP~y_i$^A@Yg-P>?|nOXeFUz0Sx@zxa^x!^ZsmI*6vNK&u%_TW)8gNaPrW$?^YX9z4%)1ui%_>H;UhJ z9`fxCDCaTZe1M)2NKcI4+2LB_%3=(BR{gjre@fuX2mZf+>vO2B0Z(L=>FmHXi0cw(>*GN;sXCgEoV{BgeB*#vEeLm2}9 z@JpNW zN&hF{RR322T;O-u<7Z3kj0gDbyu(O{fAr|%*ZD!;L3*f?@%an=OW;J%=wg2 zwE_IA;s5C4*SBwDIXP5~lL&vm5+&Ifk`_&FCd zvJ(k?Me#?t^?DEIResI6ky=S#H%A0Fku$Ji4!G|`p5=dkw$b8CtB}<@Xo(xHyNfeQ^JUhm z_i4m7n2EQ8#{aE12(LtbU*C+p%Gk>(8s-SnP5vo`=zOS + + + + + + + + + diff --git a/nextpy/interfaces/templates/apps/hello/assets/gradient_underline.svg b/nextpy/interfaces/templates/apps/hello/assets/gradient_underline.svg new file mode 100644 index 00000000..36ff3730 --- /dev/null +++ b/nextpy/interfaces/templates/apps/hello/assets/gradient_underline.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/nextpy/interfaces/templates/apps/hello/assets/icon.svg b/nextpy/interfaces/templates/apps/hello/assets/icon.svg new file mode 100644 index 00000000..f7ee063b --- /dev/null +++ b/nextpy/interfaces/templates/apps/hello/assets/icon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/nextpy/interfaces/templates/apps/hello/assets/logo_darkmode.svg b/nextpy/interfaces/templates/apps/hello/assets/logo_darkmode.svg new file mode 100644 index 00000000..e90f7463 --- /dev/null +++ b/nextpy/interfaces/templates/apps/hello/assets/logo_darkmode.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/nextpy/interfaces/templates/apps/hello/assets/paneleft.svg b/nextpy/interfaces/templates/apps/hello/assets/paneleft.svg new file mode 100644 index 00000000..ac9c5040 --- /dev/null +++ b/nextpy/interfaces/templates/apps/hello/assets/paneleft.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/nextpy/interfaces/templates/apps/hello/assets/text_logo_darkmode.svg b/nextpy/interfaces/templates/apps/hello/assets/text_logo_darkmode.svg new file mode 100644 index 00000000..e395e3d7 --- /dev/null +++ b/nextpy/interfaces/templates/apps/hello/assets/text_logo_darkmode.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/nextpy/frontend/templates/apps/hello/code/__init__.py b/nextpy/interfaces/templates/apps/hello/code/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/__init__.py rename to nextpy/interfaces/templates/apps/hello/code/__init__.py diff --git a/nextpy/frontend/templates/apps/hello/code/hello.py b/nextpy/interfaces/templates/apps/hello/code/hello.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/hello.py rename to nextpy/interfaces/templates/apps/hello/code/hello.py diff --git a/nextpy/frontend/templates/apps/hello/code/pages/__init__.py b/nextpy/interfaces/templates/apps/hello/code/pages/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/pages/__init__.py rename to nextpy/interfaces/templates/apps/hello/code/pages/__init__.py diff --git a/nextpy/frontend/templates/apps/hello/code/pages/chatapp.py b/nextpy/interfaces/templates/apps/hello/code/pages/chatapp.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/pages/chatapp.py rename to nextpy/interfaces/templates/apps/hello/code/pages/chatapp.py diff --git a/nextpy/frontend/templates/apps/hello/code/pages/datatable.py b/nextpy/interfaces/templates/apps/hello/code/pages/datatable.py similarity index 99% rename from nextpy/frontend/templates/apps/hello/code/pages/datatable.py rename to nextpy/interfaces/templates/apps/hello/code/pages/datatable.py index b11b148b..eb46bd62 100644 --- a/nextpy/frontend/templates/apps/hello/code/pages/datatable.py +++ b/nextpy/interfaces/templates/apps/hello/code/pages/datatable.py @@ -5,7 +5,7 @@ from typing import Any import nextpy as xt -from nextpy.frontend.components.glide_datagrid.dataeditor import DataEditorTheme +from nextpy.interfaces.web.react_components.glide_datagrid.dataeditor import DataEditorTheme from ..styles import * from ..webui.state import State diff --git a/nextpy/frontend/templates/apps/hello/code/pages/forms.py b/nextpy/interfaces/templates/apps/hello/code/pages/forms.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/pages/forms.py rename to nextpy/interfaces/templates/apps/hello/code/pages/forms.py diff --git a/nextpy/frontend/templates/apps/hello/code/pages/graphing.py b/nextpy/interfaces/templates/apps/hello/code/pages/graphing.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/pages/graphing.py rename to nextpy/interfaces/templates/apps/hello/code/pages/graphing.py diff --git a/nextpy/frontend/templates/apps/hello/code/pages/home.py b/nextpy/interfaces/templates/apps/hello/code/pages/home.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/pages/home.py rename to nextpy/interfaces/templates/apps/hello/code/pages/home.py diff --git a/nextpy/frontend/templates/apps/hello/code/sidebar.py b/nextpy/interfaces/templates/apps/hello/code/sidebar.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/sidebar.py rename to nextpy/interfaces/templates/apps/hello/code/sidebar.py diff --git a/nextpy/frontend/templates/apps/hello/code/state.py b/nextpy/interfaces/templates/apps/hello/code/state.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/state.py rename to nextpy/interfaces/templates/apps/hello/code/state.py diff --git a/nextpy/frontend/templates/apps/hello/code/states/form_state.py b/nextpy/interfaces/templates/apps/hello/code/states/form_state.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/states/form_state.py rename to nextpy/interfaces/templates/apps/hello/code/states/form_state.py diff --git a/nextpy/frontend/templates/apps/hello/code/states/pie_state.py b/nextpy/interfaces/templates/apps/hello/code/states/pie_state.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/states/pie_state.py rename to nextpy/interfaces/templates/apps/hello/code/states/pie_state.py diff --git a/nextpy/frontend/templates/apps/hello/code/styles.py b/nextpy/interfaces/templates/apps/hello/code/styles.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/styles.py rename to nextpy/interfaces/templates/apps/hello/code/styles.py diff --git a/nextpy/frontend/components/media/icon.py b/nextpy/interfaces/templates/apps/hello/code/webui/__init__.py similarity index 70% rename from nextpy/frontend/components/media/icon.py rename to nextpy/interfaces/templates/apps/hello/code/webui/__init__.py index ce426f0d..847433fd 100644 --- a/nextpy/frontend/components/media/icon.py +++ b/nextpy/interfaces/templates/apps/hello/code/webui/__init__.py @@ -1,5 +1,3 @@ # This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. # We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. -"""Shim for nextpy.frontend.components.chakra.media.icon.""" -from nextpy.frontend.components.chakra.media.icon import * diff --git a/nextpy/frontend/templates/apps/hello/code/webui/components/__init__.py b/nextpy/interfaces/templates/apps/hello/code/webui/components/__init__.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/components/__init__.py rename to nextpy/interfaces/templates/apps/hello/code/webui/components/__init__.py diff --git a/nextpy/frontend/templates/apps/hello/code/webui/components/chat.py b/nextpy/interfaces/templates/apps/hello/code/webui/components/chat.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/components/chat.py rename to nextpy/interfaces/templates/apps/hello/code/webui/components/chat.py diff --git a/nextpy/frontend/templates/apps/hello/code/webui/components/loading_icon.py b/nextpy/interfaces/templates/apps/hello/code/webui/components/loading_icon.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/components/loading_icon.py rename to nextpy/interfaces/templates/apps/hello/code/webui/components/loading_icon.py diff --git a/nextpy/frontend/templates/apps/hello/code/webui/components/modal.py b/nextpy/interfaces/templates/apps/hello/code/webui/components/modal.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/components/modal.py rename to nextpy/interfaces/templates/apps/hello/code/webui/components/modal.py diff --git a/nextpy/frontend/templates/apps/hello/code/webui/components/navbar.py b/nextpy/interfaces/templates/apps/hello/code/webui/components/navbar.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/components/navbar.py rename to nextpy/interfaces/templates/apps/hello/code/webui/components/navbar.py diff --git a/nextpy/frontend/templates/apps/hello/code/webui/components/sidebar.py b/nextpy/interfaces/templates/apps/hello/code/webui/components/sidebar.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/components/sidebar.py rename to nextpy/interfaces/templates/apps/hello/code/webui/components/sidebar.py diff --git a/nextpy/frontend/templates/apps/hello/code/webui/state.py b/nextpy/interfaces/templates/apps/hello/code/webui/state.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/state.py rename to nextpy/interfaces/templates/apps/hello/code/webui/state.py diff --git a/nextpy/frontend/templates/apps/hello/code/webui/styles.py b/nextpy/interfaces/templates/apps/hello/code/webui/styles.py similarity index 100% rename from nextpy/frontend/templates/apps/hello/code/webui/styles.py rename to nextpy/interfaces/templates/apps/hello/code/webui/styles.py diff --git a/nextpy/frontend/templates/jinja/app/xtconfig.py.jinja2 b/nextpy/interfaces/templates/jinja/app/xtconfig.py.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/app/xtconfig.py.jinja2 rename to nextpy/interfaces/templates/jinja/app/xtconfig.py.jinja2 diff --git a/nextpy/frontend/templates/jinja/custom_components/README.md.jinja2 b/nextpy/interfaces/templates/jinja/custom_components/README.md.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/custom_components/README.md.jinja2 rename to nextpy/interfaces/templates/jinja/custom_components/README.md.jinja2 diff --git a/nextpy/frontend/templates/jinja/custom_components/demo_app.py.jinja2 b/nextpy/interfaces/templates/jinja/custom_components/demo_app.py.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/custom_components/demo_app.py.jinja2 rename to nextpy/interfaces/templates/jinja/custom_components/demo_app.py.jinja2 diff --git a/nextpy/frontend/templates/jinja/custom_components/pyproject.toml.jinja2 b/nextpy/interfaces/templates/jinja/custom_components/pyproject.toml.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/custom_components/pyproject.toml.jinja2 rename to nextpy/interfaces/templates/jinja/custom_components/pyproject.toml.jinja2 diff --git a/nextpy/frontend/templates/jinja/custom_components/src.py.jinja2 b/nextpy/interfaces/templates/jinja/custom_components/src.py.jinja2 similarity index 96% rename from nextpy/frontend/templates/jinja/custom_components/src.py.jinja2 rename to nextpy/interfaces/templates/jinja/custom_components/src.py.jinja2 index 75c64bc5..e0242ccf 100644 --- a/nextpy/frontend/templates/jinja/custom_components/src.py.jinja2 +++ b/nextpy/interfaces/templates/jinja/custom_components/src.py.jinja2 @@ -9,7 +9,7 @@ from typing import Any # This is because they they may not be compatible with Server-Side Rendering (SSR). # To handle this in Nextpy all you need to do is subclass NoSSRComponent instead. # For example: -# from nextpy.frontend.components.component import NoSSRComponent +# from nextpy.interfaces.web.react_components.component import NoSSRComponent # class {{ component_class_name }}(NoSSRComponent): # pass diff --git a/nextpy/frontend/templates/jinja/web/package.json.jinja2 b/nextpy/interfaces/templates/jinja/web/package.json.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/package.json.jinja2 rename to nextpy/interfaces/templates/jinja/web/package.json.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/_app.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/_app.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/_app.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/_app.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/_document.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/_document.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/_document.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/_document.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/base_page.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/base_page.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/base_page.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/base_page.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/component.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/component.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/component.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/component.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/custom_component.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/custom_component.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/custom_component.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/custom_component.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/index.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/index.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/index.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/index.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/stateful_component.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/stateful_component.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/stateful_component.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/stateful_component.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/stateful_components.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/stateful_components.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/stateful_components.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/stateful_components.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/pages/utils.js.jinja2 b/nextpy/interfaces/templates/jinja/web/pages/utils.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/pages/utils.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/pages/utils.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/styles/styles.css.jinja2 b/nextpy/interfaces/templates/jinja/web/styles/styles.css.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/styles/styles.css.jinja2 rename to nextpy/interfaces/templates/jinja/web/styles/styles.css.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/tailwind.config.js.jinja2 b/nextpy/interfaces/templates/jinja/web/tailwind.config.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/tailwind.config.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/tailwind.config.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/utils/context.js.jinja2 b/nextpy/interfaces/templates/jinja/web/utils/context.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/utils/context.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/utils/context.js.jinja2 diff --git a/nextpy/frontend/templates/jinja/web/utils/theme.js.jinja2 b/nextpy/interfaces/templates/jinja/web/utils/theme.js.jinja2 similarity index 100% rename from nextpy/frontend/templates/jinja/web/utils/theme.js.jinja2 rename to nextpy/interfaces/templates/jinja/web/utils/theme.js.jinja2 diff --git a/nextpy/frontend/templates/web/.gitignore b/nextpy/interfaces/templates/web/.gitignore similarity index 100% rename from nextpy/frontend/templates/web/.gitignore rename to nextpy/interfaces/templates/web/.gitignore diff --git a/nextpy/frontend/templates/web/components/nextpy/chakra_color_mode_provider.js b/nextpy/interfaces/templates/web/components/nextpy/chakra_color_mode_provider.js similarity index 100% rename from nextpy/frontend/templates/web/components/nextpy/chakra_color_mode_provider.js rename to nextpy/interfaces/templates/web/components/nextpy/chakra_color_mode_provider.js diff --git a/nextpy/frontend/templates/web/components/nextpy/radix_themes_color_mode_provider.js b/nextpy/interfaces/templates/web/components/nextpy/radix_themes_color_mode_provider.js similarity index 100% rename from nextpy/frontend/templates/web/components/nextpy/radix_themes_color_mode_provider.js rename to nextpy/interfaces/templates/web/components/nextpy/radix_themes_color_mode_provider.js diff --git a/nextpy/frontend/templates/web/jsconfig.json b/nextpy/interfaces/templates/web/jsconfig.json similarity index 100% rename from nextpy/frontend/templates/web/jsconfig.json rename to nextpy/interfaces/templates/web/jsconfig.json diff --git a/nextpy/frontend/templates/web/next.config.js b/nextpy/interfaces/templates/web/next.config.js similarity index 100% rename from nextpy/frontend/templates/web/next.config.js rename to nextpy/interfaces/templates/web/next.config.js diff --git a/nextpy/frontend/templates/web/postcss.config.js b/nextpy/interfaces/templates/web/postcss.config.js similarity index 100% rename from nextpy/frontend/templates/web/postcss.config.js rename to nextpy/interfaces/templates/web/postcss.config.js diff --git a/nextpy/frontend/templates/web/styles/code/prism.js b/nextpy/interfaces/templates/web/styles/code/prism.js similarity index 100% rename from nextpy/frontend/templates/web/styles/code/prism.js rename to nextpy/interfaces/templates/web/styles/code/prism.js diff --git a/nextpy/frontend/templates/web/styles/tailwind.css b/nextpy/interfaces/templates/web/styles/tailwind.css similarity index 100% rename from nextpy/frontend/templates/web/styles/tailwind.css rename to nextpy/interfaces/templates/web/styles/tailwind.css diff --git a/nextpy/frontend/templates/web/utils/client_side_routing.js b/nextpy/interfaces/templates/web/utils/client_side_routing.js similarity index 100% rename from nextpy/frontend/templates/web/utils/client_side_routing.js rename to nextpy/interfaces/templates/web/utils/client_side_routing.js diff --git a/nextpy/frontend/templates/web/utils/helpers/dataeditor.js b/nextpy/interfaces/templates/web/utils/helpers/dataeditor.js similarity index 100% rename from nextpy/frontend/templates/web/utils/helpers/dataeditor.js rename to nextpy/interfaces/templates/web/utils/helpers/dataeditor.js diff --git a/nextpy/frontend/templates/web/utils/helpers/range.js b/nextpy/interfaces/templates/web/utils/helpers/range.js similarity index 100% rename from nextpy/frontend/templates/web/utils/helpers/range.js rename to nextpy/interfaces/templates/web/utils/helpers/range.js diff --git a/nextpy/frontend/templates/web/utils/state.js b/nextpy/interfaces/templates/web/utils/state.js similarity index 100% rename from nextpy/frontend/templates/web/utils/state.js rename to nextpy/interfaces/templates/web/utils/state.js diff --git a/nextpy/interfaces/web/__init__.py b/nextpy/interfaces/web/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nextpy/frontend/imports.py b/nextpy/interfaces/web/imports.py similarity index 100% rename from nextpy/frontend/imports.py rename to nextpy/interfaces/web/imports.py diff --git a/nextpy/frontend/page.py b/nextpy/interfaces/web/page.py similarity index 100% rename from nextpy/frontend/page.py rename to nextpy/interfaces/web/page.py diff --git a/nextpy/frontend/page.pyi b/nextpy/interfaces/web/page.pyi similarity index 91% rename from nextpy/frontend/page.pyi rename to nextpy/interfaces/web/page.pyi index e8308a51..84277706 100644 --- a/nextpy/frontend/page.pyi +++ b/nextpy/interfaces/web/page.pyi @@ -3,7 +3,7 @@ """The page decorator and associated variables and functions.""" -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component from nextpy.backend.event import EventHandler DECORATED_PAGES: list diff --git a/nextpy/frontend/components/__init__.py b/nextpy/interfaces/web/react_components/__init__.py similarity index 100% rename from nextpy/frontend/components/__init__.py rename to nextpy/interfaces/web/react_components/__init__.py diff --git a/nextpy/frontend/components/base/__init__.py b/nextpy/interfaces/web/react_components/base/__init__.py similarity index 100% rename from nextpy/frontend/components/base/__init__.py rename to nextpy/interfaces/web/react_components/base/__init__.py diff --git a/nextpy/frontend/components/base/app_wrap.py b/nextpy/interfaces/web/react_components/base/app_wrap.py similarity index 83% rename from nextpy/frontend/components/base/app_wrap.py rename to nextpy/interfaces/web/react_components/base/app_wrap.py index 29842689..21dd7885 100644 --- a/nextpy/frontend/components/base/app_wrap.py +++ b/nextpy/interfaces/web/react_components/base/app_wrap.py @@ -3,8 +3,8 @@ """Top-level component that wraps the entire app.""" from nextpy.backend.vars import Var -from nextpy.frontend.components.base.fragment import Fragment -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.base.fragment import Fragment +from nextpy.interfaces.web.react_components.component import Component class AppWrap(Fragment): diff --git a/nextpy/interfaces/web/react_components/base/app_wrap.pyi b/nextpy/interfaces/web/react_components/base/app_wrap.pyi new file mode 100644 index 00000000..8e49eb4b --- /dev/null +++ b/nextpy/interfaces/web/react_components/base/app_wrap.pyi @@ -0,0 +1,81 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/base/app_wrap.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.base.fragment import Fragment +from nextpy.interfaces.web.react_components.component import Component +from nextpy.backend.vars import Var + +class AppWrap(Fragment): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "AppWrap": + """Create a new AppWrap component. + + Returns: + A new AppWrap component containing {children}. + """ + ... diff --git a/nextpy/frontend/components/base/bare.py b/nextpy/interfaces/web/react_components/base/bare.py similarity index 86% rename from nextpy/frontend/components/base/bare.py rename to nextpy/interfaces/web/react_components/base/bare.py index ce71b046..016c8e6b 100644 --- a/nextpy/frontend/components/base/bare.py +++ b/nextpy/interfaces/web/react_components/base/bare.py @@ -7,9 +7,9 @@ from typing import Any, Iterator from nextpy.backend.vars import Var -from nextpy.frontend.components.component import Component -from nextpy.frontend.components.tags import Tag -from nextpy.frontend.components.tags.tagless import Tagless +from nextpy.interfaces.web.react_components.component import Component +from nextpy.interfaces.web.react_components.tags import Tag +from nextpy.interfaces.web.react_components.tags.tagless import Tagless class Bare(Component): diff --git a/nextpy/frontend/components/base/body.py b/nextpy/interfaces/web/react_components/base/body.py similarity index 84% rename from nextpy/frontend/components/base/body.py rename to nextpy/interfaces/web/react_components/base/body.py index cc4d9e81..52994e90 100644 --- a/nextpy/frontend/components/base/body.py +++ b/nextpy/interfaces/web/react_components/base/body.py @@ -3,7 +3,7 @@ """Display the page body.""" -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component class Body(Component): diff --git a/nextpy/interfaces/web/react_components/base/body.pyi b/nextpy/interfaces/web/react_components/base/body.pyi new file mode 100644 index 00000000..e51d3cf3 --- /dev/null +++ b/nextpy/interfaces/web/react_components/base/body.pyi @@ -0,0 +1,92 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/base/body.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component + +class Body(Component): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Body": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/base/document.py b/nextpy/interfaces/web/react_components/base/document.py similarity index 91% rename from nextpy/frontend/components/base/document.py rename to nextpy/interfaces/web/react_components/base/document.py index 9fc052dc..611c62e5 100644 --- a/nextpy/frontend/components/base/document.py +++ b/nextpy/interfaces/web/react_components/base/document.py @@ -3,7 +3,7 @@ """Document components.""" -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component class NextDocumentLib(Component): diff --git a/nextpy/interfaces/web/react_components/base/document.pyi b/nextpy/interfaces/web/react_components/base/document.pyi new file mode 100644 index 00000000..7ddb2ca6 --- /dev/null +++ b/nextpy/interfaces/web/react_components/base/document.pyi @@ -0,0 +1,408 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/base/document.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component + +class NextDocumentLib(Component): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "NextDocumentLib": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Html(NextDocumentLib): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Html": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class DocumentHead(NextDocumentLib): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "DocumentHead": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Main(NextDocumentLib): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Main": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class NextScript(NextDocumentLib): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "NextScript": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/base/fragment.py b/nextpy/interfaces/web/react_components/base/fragment.py similarity index 88% rename from nextpy/frontend/components/base/fragment.py rename to nextpy/interfaces/web/react_components/base/fragment.py index 6f772265..ab76d625 100644 --- a/nextpy/frontend/components/base/fragment.py +++ b/nextpy/interfaces/web/react_components/base/fragment.py @@ -2,7 +2,7 @@ # We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. """React fragments to enable bare returns of component trees from functions.""" -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component class Fragment(Component): diff --git a/nextpy/interfaces/web/react_components/base/fragment.pyi b/nextpy/interfaces/web/react_components/base/fragment.pyi new file mode 100644 index 00000000..415f1834 --- /dev/null +++ b/nextpy/interfaces/web/react_components/base/fragment.pyi @@ -0,0 +1,92 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/base/fragment.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component + +class Fragment(Component): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Fragment": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/base/head.py b/nextpy/interfaces/web/react_components/base/head.py similarity index 85% rename from nextpy/frontend/components/base/head.py rename to nextpy/interfaces/web/react_components/base/head.py index b0649f5d..98f7a68b 100644 --- a/nextpy/frontend/components/base/head.py +++ b/nextpy/interfaces/web/react_components/base/head.py @@ -3,7 +3,7 @@ """The head component.""" -from nextpy.frontend.components.component import Component, MemoizationLeaf +from nextpy.interfaces.web.react_components.component import Component, MemoizationLeaf class NextHeadLib(Component): diff --git a/nextpy/interfaces/web/react_components/base/head.pyi b/nextpy/interfaces/web/react_components/base/head.pyi new file mode 100644 index 00000000..9eb56339 --- /dev/null +++ b/nextpy/interfaces/web/react_components/base/head.pyi @@ -0,0 +1,168 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/base/head.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component, MemoizationLeaf + +class NextHeadLib(Component): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "NextHeadLib": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Head(NextHeadLib, MemoizationLeaf): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Head": + """Create a new memoization leaf component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The memoization leaf + """ + ... diff --git a/nextpy/frontend/components/base/link.py b/nextpy/interfaces/web/react_components/base/link.py similarity index 94% rename from nextpy/frontend/components/base/link.py rename to nextpy/interfaces/web/react_components/base/link.py index 1b1b7ac7..0d07f181 100644 --- a/nextpy/frontend/components/base/link.py +++ b/nextpy/interfaces/web/react_components/base/link.py @@ -5,7 +5,7 @@ from nextpy.backend.vars import Var -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component class RawLink(Component): diff --git a/nextpy/interfaces/web/react_components/base/link.pyi b/nextpy/interfaces/web/react_components/base/link.pyi new file mode 100644 index 00000000..6131487f --- /dev/null +++ b/nextpy/interfaces/web/react_components/base/link.pyi @@ -0,0 +1,190 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/base/link.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from nextpy.interfaces.web.react_components.component import Component +from nextpy.backend.vars import Var + +class RawLink(Component): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + href: Optional[Union[Var[str], str]] = None, + rel: Optional[Union[Var[str], str]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "RawLink": + """Create the component. + + Args: + *children: The children of the component. + href: The href. + rel: The type of link. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class ScriptTag(Component): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + type_: Optional[Union[Var[str], str]] = None, + source: Optional[Union[Var[str], str]] = None, + integrity: Optional[Union[Var[str], str]] = None, + crossorigin: Optional[Union[Var[str], str]] = None, + referrer_policy: Optional[Union[Var[str], str]] = None, + is_async: Optional[Union[Var[bool], bool]] = None, + defer: Optional[Union[Var[bool], bool]] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "ScriptTag": + """Create the component. + + Args: + *children: The children of the component. + type_: The type of script represented. + source: The URI of an external script. + integrity: Metadata to verify the content of the script. + crossorigin: Whether to allow cross-origin requests. + referrer_policy: Indicates which referrer to send when fetching the script. + is_async: Whether to asynchronously load the script. + defer: Whether to defer loading the script. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/base/meta.py b/nextpy/interfaces/web/react_components/base/meta.py similarity index 92% rename from nextpy/frontend/components/base/meta.py rename to nextpy/interfaces/web/react_components/base/meta.py index 07f043a7..6788951d 100644 --- a/nextpy/frontend/components/base/meta.py +++ b/nextpy/interfaces/web/react_components/base/meta.py @@ -7,8 +7,8 @@ from typing import Optional -from nextpy.frontend.components.base.bare import Bare -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.base.bare import Bare +from nextpy.interfaces.web.react_components.component import Component class Title(Component): diff --git a/nextpy/interfaces/web/react_components/base/meta.pyi b/nextpy/interfaces/web/react_components/base/meta.pyi new file mode 100644 index 00000000..4a7cb985 --- /dev/null +++ b/nextpy/interfaces/web/react_components/base/meta.pyi @@ -0,0 +1,362 @@ +# This file has been modified by the Nextpy Team in 2023 using AI tools and automation scripts. +# We have rigorously tested these modifications to ensure reliability and performance. Based on successful test results, we are confident in the quality and stability of these changes. + +"""Stub file for nextpy/components/base/meta.py""" +# ------------------- DO NOT EDIT ---------------------- +# This file was generated by `scripts/pyi_generator.py`! +# ------------------------------------------------------ + +from typing import Any, Dict, Literal, Optional, Union, overload +from nextpy.backend.vars import Var, BaseVar, ComputedVar +from nextpy.backend.event import EventChain, EventHandler, EventSpec +from nextpy.interfaces.web.style import Style +from typing import Optional +from nextpy.interfaces.web.react_components.base.bare import Bare +from nextpy.interfaces.web.react_components.component import Component + +class Title(Component): + def render(self) -> dict: ... + @overload + @classmethod + def create( # type: ignore + cls, + *children, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Title": + """Create the component. + + Args: + *children: The children of the component. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Meta(Component): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + char_set: Optional[str] = None, + content: Optional[str] = None, + name: Optional[str] = None, + property: Optional[str] = None, + http_equiv: Optional[str] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Meta": + """Create the component. + + Args: + *children: The children of the component. + char_set: The description of character encoding. + content: The value of meta. + name: The name of metadata. + property: The type of metadata value. + http_equiv: The type of metadata value. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Description(Meta): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + name: Optional[str] = None, + char_set: Optional[str] = None, + content: Optional[str] = None, + property: Optional[str] = None, + http_equiv: Optional[str] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Description": + """Create the component. + + Args: + *children: The children of the component. + name: The name of metadata. + char_set: The description of character encoding. + content: The value of meta. + property: The type of metadata value. + http_equiv: The type of metadata value. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... + +class Image(Meta): + @overload + @classmethod + def create( # type: ignore + cls, + *children, + property: Optional[str] = None, + char_set: Optional[str] = None, + content: Optional[str] = None, + name: Optional[str] = None, + http_equiv: Optional[str] = None, + style: Optional[Style] = None, + key: Optional[Any] = None, + id: Optional[Any] = None, + class_name: Optional[Any] = None, + autofocus: Optional[bool] = None, + custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, + on_blur: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_context_menu: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_double_click: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_focus: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_enter: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_leave: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_move: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_out: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_over: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_mouse_up: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_scroll: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_unmount: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + **props + ) -> "Image": + """Create the component. + + Args: + *children: The children of the component. + property: The type of metadata value. + char_set: The description of character encoding. + content: The value of meta. + name: The name of metadata. + http_equiv: The type of metadata value. + style: The style of the component. + key: A unique key for the component. + id: The id for the component. + class_name: The class name for the component. + autofocus: Whether the component should take the focus once the page is loaded + custom_attrs: custom attribute + **props: The props of the component. + + Returns: + The component. + + Raises: + TypeError: If an invalid child is passed. + """ + ... diff --git a/nextpy/frontend/components/base/script.py b/nextpy/interfaces/web/react_components/base/script.py similarity index 89% rename from nextpy/frontend/components/base/script.py rename to nextpy/interfaces/web/react_components/base/script.py index 0e4959ae..4629e883 100644 --- a/nextpy/frontend/components/base/script.py +++ b/nextpy/interfaces/web/react_components/base/script.py @@ -10,16 +10,16 @@ from typing import Any, Union from nextpy.backend.vars import Var -from nextpy.frontend.components.component import Component +from nextpy.interfaces.web.react_components.component import Component class Script(Component): """Next.js script component. - Note that this component differs from nextpy.frontend.components.base.document.NextScript + Note that this component differs from nextpy.interfaces.web.react_components.base.document.NextScript in that it is intended for use with custom and user-defined scripts. - It also differs from nextpy.frontend.components.base.link.ScriptTag, which is the plain + It also differs from nextpy.interfaces.web.react_components.base.link.ScriptTag, which is the plain HTML