merge
This commit is contained in:
commit
efd1eac6d6
173
poetry.lock
generated
173
poetry.lock
generated
@ -112,7 +112,7 @@ description = "Backport of CPython tarfile module"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and python_version <= \"3.11\""
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
||||||
files = [
|
files = [
|
||||||
{file = "backports.tarfile-1.2.0-py3-none-any.whl", hash = "sha256:77e284d754527b01fb1e6fa8a1afe577858ebe4e9dad8919e34c862cb399bc34"},
|
{file = "backports.tarfile-1.2.0-py3-none-any.whl", hash = "sha256:77e284d754527b01fb1e6fa8a1afe577858ebe4e9dad8919e34c862cb399bc34"},
|
||||||
{file = "backports_tarfile-1.2.0.tar.gz", hash = "sha256:d75e02c268746e1b8144c278978b6e98e85de6ad16f8e4b0844a154557eca991"},
|
{file = "backports_tarfile-1.2.0.tar.gz", hash = "sha256:d75e02c268746e1b8144c278978b6e98e85de6ad16f8e4b0844a154557eca991"},
|
||||||
@ -251,7 +251,7 @@ files = [
|
|||||||
{file = "cffi-1.17.1-cp39-cp39-win_amd64.whl", hash = "sha256:d016c76bdd850f3c626af19b0542c9677ba156e4ee4fccfdd7848803533ef662"},
|
{file = "cffi-1.17.1-cp39-cp39-win_amd64.whl", hash = "sha256:d016c76bdd850f3c626af19b0542c9677ba156e4ee4fccfdd7848803533ef662"},
|
||||||
{file = "cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"},
|
{file = "cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"},
|
||||||
]
|
]
|
||||||
markers = {main = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and platform_python_implementation != \"PyPy\" and (python_version <= \"3.11\" or python_version >= \"3.12\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\""}
|
markers = {main = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and platform_python_implementation != \"PyPy\" or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and platform_python_implementation != \"PyPy\"", dev = "python_version <= \"3.11\" or python_version >= \"3.12\""}
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
pycparser = "*"
|
pycparser = "*"
|
||||||
@ -399,7 +399,7 @@ files = [
|
|||||||
{file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
|
{file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
|
||||||
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
|
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
|
||||||
]
|
]
|
||||||
markers = {main = "(platform_system == \"Windows\" or os_name == \"nt\") and (python_version <= \"3.11\" or python_version >= \"3.12\")", dev = "(python_version <= \"3.11\" or python_version >= \"3.12\") and sys_platform == \"win32\""}
|
markers = {main = "python_version <= \"3.11\" and platform_system == \"Windows\" or python_version <= \"3.11\" and os_name == \"nt\" or python_version >= \"3.12\" and platform_system == \"Windows\" or python_version >= \"3.12\" and os_name == \"nt\"", dev = "python_version <= \"3.11\" and sys_platform == \"win32\" or python_version >= \"3.12\" and sys_platform == \"win32\""}
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coverage"
|
name = "coverage"
|
||||||
@ -488,7 +488,7 @@ description = "cryptography is a package which provides cryptographic recipes an
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = "!=3.9.0,!=3.9.1,>=3.7"
|
python-versions = "!=3.9.0,!=3.9.1,>=3.7"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and (python_version <= \"3.11\" or python_version >= \"3.12\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\""
|
||||||
files = [
|
files = [
|
||||||
{file = "cryptography-44.0.1-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:bf688f615c29bfe9dfc44312ca470989279f0e94bb9f631f85e3459af8efc009"},
|
{file = "cryptography-44.0.1-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:bf688f615c29bfe9dfc44312ca470989279f0e94bb9f631f85e3459af8efc009"},
|
||||||
{file = "cryptography-44.0.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd7c7e2d71d908dc0f8d2027e1604102140d84b155e658c20e8ad1304317691f"},
|
{file = "cryptography-44.0.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd7c7e2d71d908dc0f8d2027e1604102140d84b155e658c20e8ad1304317691f"},
|
||||||
@ -586,7 +586,7 @@ description = "Distro - an OS platform information API"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.6"
|
python-versions = ">=3.6"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and sys_platform == \"linux\""
|
markers = "python_version <= \"3.11\" and sys_platform == \"linux\" or python_version >= \"3.12\" and sys_platform == \"linux\""
|
||||||
files = [
|
files = [
|
||||||
{file = "distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2"},
|
{file = "distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2"},
|
||||||
{file = "distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"},
|
{file = "distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"},
|
||||||
@ -743,7 +743,7 @@ files = [
|
|||||||
{file = "greenlet-3.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:3319aa75e0e0639bc15ff54ca327e8dc7a6fe404003496e3c6925cd3142e0e22"},
|
{file = "greenlet-3.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:3319aa75e0e0639bc15ff54ca327e8dc7a6fe404003496e3c6925cd3142e0e22"},
|
||||||
{file = "greenlet-3.1.1.tar.gz", hash = "sha256:4ce3ac6cdb6adf7946475d7ef31777c26d94bccc377e070a7986bd2d5c515467"},
|
{file = "greenlet-3.1.1.tar.gz", hash = "sha256:4ce3ac6cdb6adf7946475d7ef31777c26d94bccc377e070a7986bd2d5c515467"},
|
||||||
]
|
]
|
||||||
markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\") and python_version < \"3.14\"", dev = "python_version <= \"3.11\" or python_version >= \"3.12\""}
|
markers = {main = "python_version <= \"3.11\" and (platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\") or python_version >= \"3.12\" and python_version < \"3.14\" and (platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\""}
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
docs = ["Sphinx", "furo"]
|
docs = ["Sphinx", "furo"]
|
||||||
@ -894,7 +894,7 @@ description = "Read metadata from Python packages"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.9"
|
python-versions = ">=3.9"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and python_version <= \"3.11\" or python_full_version < \"3.10.2\""
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") or python_full_version < \"3.10.2\""
|
||||||
files = [
|
files = [
|
||||||
{file = "importlib_metadata-8.6.1-py3-none-any.whl", hash = "sha256:02a89390c1e15fdfdc0d7c6b25cb3e62650d0494005c97d6f148bf5b9787525e"},
|
{file = "importlib_metadata-8.6.1-py3-none-any.whl", hash = "sha256:02a89390c1e15fdfdc0d7c6b25cb3e62650d0494005c97d6f148bf5b9787525e"},
|
||||||
{file = "importlib_metadata-8.6.1.tar.gz", hash = "sha256:310b41d755445d74569f993ccfc22838295d9fe005425094fad953d7f15c8580"},
|
{file = "importlib_metadata-8.6.1.tar.gz", hash = "sha256:310b41d755445d74569f993ccfc22838295d9fe005425094fad953d7f15c8580"},
|
||||||
@ -932,7 +932,7 @@ description = "Utility functions for Python class constructs"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
||||||
files = [
|
files = [
|
||||||
{file = "jaraco.classes-3.4.0-py3-none-any.whl", hash = "sha256:f662826b6bed8cace05e7ff873ce0f9283b5c924470fe664fff1c2f00f581790"},
|
{file = "jaraco.classes-3.4.0-py3-none-any.whl", hash = "sha256:f662826b6bed8cace05e7ff873ce0f9283b5c924470fe664fff1c2f00f581790"},
|
||||||
{file = "jaraco.classes-3.4.0.tar.gz", hash = "sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd"},
|
{file = "jaraco.classes-3.4.0.tar.gz", hash = "sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd"},
|
||||||
@ -952,7 +952,7 @@ description = "Useful decorators and context managers"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
||||||
files = [
|
files = [
|
||||||
{file = "jaraco.context-6.0.1-py3-none-any.whl", hash = "sha256:f797fc481b490edb305122c9181830a3a5b76d84ef6d1aef2fb9b47ab956f9e4"},
|
{file = "jaraco.context-6.0.1-py3-none-any.whl", hash = "sha256:f797fc481b490edb305122c9181830a3a5b76d84ef6d1aef2fb9b47ab956f9e4"},
|
||||||
{file = "jaraco_context-6.0.1.tar.gz", hash = "sha256:9bae4ea555cf0b14938dc0aee7c9f32ed303aa20a3b73e7dc80111628792d1b3"},
|
{file = "jaraco_context-6.0.1.tar.gz", hash = "sha256:9bae4ea555cf0b14938dc0aee7c9f32ed303aa20a3b73e7dc80111628792d1b3"},
|
||||||
@ -972,7 +972,7 @@ description = "Functools like those found in stdlib"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
||||||
files = [
|
files = [
|
||||||
{file = "jaraco.functools-4.1.0-py3-none-any.whl", hash = "sha256:ad159f13428bc4acbf5541ad6dec511f91573b90fba04df61dafa2a1231cf649"},
|
{file = "jaraco.functools-4.1.0-py3-none-any.whl", hash = "sha256:ad159f13428bc4acbf5541ad6dec511f91573b90fba04df61dafa2a1231cf649"},
|
||||||
{file = "jaraco_functools-4.1.0.tar.gz", hash = "sha256:70f7e0e2ae076498e212562325e805204fc092d7b4c17e0e86c959e249701a9d"},
|
{file = "jaraco_functools-4.1.0.tar.gz", hash = "sha256:70f7e0e2ae076498e212562325e805204fc092d7b4c17e0e86c959e249701a9d"},
|
||||||
@ -996,7 +996,7 @@ description = "Low-level, pure Python DBus protocol wrapper."
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and (python_version <= \"3.11\" or python_version >= \"3.12\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\""
|
||||||
files = [
|
files = [
|
||||||
{file = "jeepney-0.8.0-py3-none-any.whl", hash = "sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755"},
|
{file = "jeepney-0.8.0-py3-none-any.whl", hash = "sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755"},
|
||||||
{file = "jeepney-0.8.0.tar.gz", hash = "sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806"},
|
{file = "jeepney-0.8.0.tar.gz", hash = "sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806"},
|
||||||
@ -1032,7 +1032,7 @@ description = "Store and access your passwords safely."
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.9"
|
python-versions = ">=3.9"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
||||||
files = [
|
files = [
|
||||||
{file = "keyring-25.6.0-py3-none-any.whl", hash = "sha256:552a3f7af126ece7ed5c89753650eec89c7eaae8617d0aa4d9ad2b75111266bd"},
|
{file = "keyring-25.6.0-py3-none-any.whl", hash = "sha256:552a3f7af126ece7ed5c89753650eec89c7eaae8617d0aa4d9ad2b75111266bd"},
|
||||||
{file = "keyring-25.6.0.tar.gz", hash = "sha256:0b39998aa941431eb3d9b0d4b2460bc773b9df6fed7621c2dfb291a7e0187a66"},
|
{file = "keyring-25.6.0.tar.gz", hash = "sha256:0b39998aa941431eb3d9b0d4b2460bc773b9df6fed7621c2dfb291a7e0187a66"},
|
||||||
@ -1216,7 +1216,7 @@ description = "More routines for operating on iterables, beyond itertools"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.9"
|
python-versions = ">=3.9"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\")"
|
||||||
files = [
|
files = [
|
||||||
{file = "more-itertools-10.6.0.tar.gz", hash = "sha256:2cd7fad1009c31cc9fb6a035108509e6547547a7a738374f10bd49a09eb3ee3b"},
|
{file = "more-itertools-10.6.0.tar.gz", hash = "sha256:2cd7fad1009c31cc9fb6a035108509e6547547a7a738374f10bd49a09eb3ee3b"},
|
||||||
{file = "more_itertools-10.6.0-py3-none-any.whl", hash = "sha256:6eb054cb4b6db1473f6e15fcc676a08e4732548acd47c708f0e179c2c7c01e89"},
|
{file = "more_itertools-10.6.0-py3-none-any.whl", hash = "sha256:6eb054cb4b6db1473f6e15fcc676a08e4732548acd47c708f0e179c2c7c01e89"},
|
||||||
@ -1272,68 +1272,68 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "numpy"
|
name = "numpy"
|
||||||
version = "2.2.2"
|
version = "2.2.3"
|
||||||
description = "Fundamental package for array computing in Python"
|
description = "Fundamental package for array computing in Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.10"
|
python-versions = ">=3.10"
|
||||||
groups = ["dev"]
|
groups = ["dev"]
|
||||||
markers = "python_version <= \"3.11\" or python_version >= \"3.12\""
|
markers = "python_version <= \"3.11\" or python_version >= \"3.12\""
|
||||||
files = [
|
files = [
|
||||||
{file = "numpy-2.2.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7079129b64cb78bdc8d611d1fd7e8002c0a2565da6a47c4df8062349fee90e3e"},
|
{file = "numpy-2.2.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:cbc6472e01952d3d1b2772b720428f8b90e2deea8344e854df22b0618e9cce71"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2ec6c689c61df613b783aeb21f945c4cbe6c51c28cb70aae8430577ab39f163e"},
|
{file = "numpy-2.2.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cdfe0c22692a30cd830c0755746473ae66c4a8f2e7bd508b35fb3b6a0813d787"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:40c7ff5da22cd391944a28c6a9c638a5eef77fcf71d6e3a79e1d9d9e82752715"},
|
{file = "numpy-2.2.3-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:e37242f5324ffd9f7ba5acf96d774f9276aa62a966c0bad8dae692deebec7716"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:995f9e8181723852ca458e22de5d9b7d3ba4da3f11cc1cb113f093b271d7965a"},
|
{file = "numpy-2.2.3-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:95172a21038c9b423e68be78fd0be6e1b97674cde269b76fe269a5dfa6fadf0b"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b78ea78450fd96a498f50ee096f69c75379af5138f7881a51355ab0e11286c97"},
|
{file = "numpy-2.2.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d5b47c440210c5d1d67e1cf434124e0b5c395eee1f5806fdd89b553ed1acd0a3"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3fbe72d347fbc59f94124125e73fc4976a06927ebc503ec5afbfb35f193cd957"},
|
{file = "numpy-2.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0391ea3622f5c51a2e29708877d56e3d276827ac5447d7f45e9bc4ade8923c52"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:8e6da5cffbbe571f93588f562ed130ea63ee206d12851b60819512dd3e1ba50d"},
|
{file = "numpy-2.2.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f6b3dfc7661f8842babd8ea07e9897fe3d9b69a1d7e5fbb743e4160f9387833b"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:09d6a2032faf25e8d0cadde7fd6145118ac55d2740132c1d845f98721b5ebcfd"},
|
{file = "numpy-2.2.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:1ad78ce7f18ce4e7df1b2ea4019b5817a2f6a8a16e34ff2775f646adce0a5027"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-win32.whl", hash = "sha256:159ff6ee4c4a36a23fe01b7c3d07bd8c14cc433d9720f977fcd52c13c0098160"},
|
{file = "numpy-2.2.3-cp310-cp310-win32.whl", hash = "sha256:5ebeb7ef54a7be11044c33a17b2624abe4307a75893c001a4800857956b41094"},
|
||||||
{file = "numpy-2.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:64bd6e1762cd7f0986a740fee4dff927b9ec2c5e4d9a28d056eb17d332158014"},
|
{file = "numpy-2.2.3-cp310-cp310-win_amd64.whl", hash = "sha256:596140185c7fa113563c67c2e894eabe0daea18cf8e33851738c19f70ce86aeb"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:642199e98af1bd2b6aeb8ecf726972d238c9877b0f6e8221ee5ab945ec8a2189"},
|
{file = "numpy-2.2.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:16372619ee728ed67a2a606a614f56d3eabc5b86f8b615c79d01957062826ca8"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6d9fc9d812c81e6168b6d405bf00b8d6739a7f72ef22a9214c4241e0dc70b323"},
|
{file = "numpy-2.2.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5521a06a3148686d9269c53b09f7d399a5725c47bbb5b35747e1cb76326b714b"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:c7d1fd447e33ee20c1f33f2c8e6634211124a9aabde3c617687d8b739aa69eac"},
|
{file = "numpy-2.2.3-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:7c8dde0ca2f77828815fd1aedfdf52e59071a5bae30dac3b4da2a335c672149a"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:451e854cfae0febe723077bd0cf0a4302a5d84ff25f0bfece8f29206c7bed02e"},
|
{file = "numpy-2.2.3-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:77974aba6c1bc26e3c205c2214f0d5b4305bdc719268b93e768ddb17e3fdd636"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bd249bc894af67cbd8bad2c22e7cbcd46cf87ddfca1f1289d1e7e54868cc785c"},
|
{file = "numpy-2.2.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d42f9c36d06440e34226e8bd65ff065ca0963aeecada587b937011efa02cdc9d"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:02935e2c3c0c6cbe9c7955a8efa8908dd4221d7755644c59d1bba28b94fd334f"},
|
{file = "numpy-2.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f2712c5179f40af9ddc8f6727f2bd910ea0eb50206daea75f58ddd9fa3f715bb"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a972cec723e0563aa0823ee2ab1df0cb196ed0778f173b381c871a03719d4826"},
|
{file = "numpy-2.2.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c8b0451d2ec95010d1db8ca733afc41f659f425b7f608af569711097fd6014e2"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:d6d6a0910c3b4368d89dde073e630882cdb266755565155bc33520283b2d9df8"},
|
{file = "numpy-2.2.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:d9b4a8148c57ecac25a16b0e11798cbe88edf5237b0df99973687dd866f05e1b"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-win32.whl", hash = "sha256:860fd59990c37c3ef913c3ae390b3929d005243acca1a86facb0773e2d8d9e50"},
|
{file = "numpy-2.2.3-cp311-cp311-win32.whl", hash = "sha256:1f45315b2dc58d8a3e7754fe4e38b6fce132dab284a92851e41b2b344f6441c5"},
|
||||||
{file = "numpy-2.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:da1eeb460ecce8d5b8608826595c777728cdf28ce7b5a5a8c8ac8d949beadcf2"},
|
{file = "numpy-2.2.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f48ba6f6c13e5e49f3d3efb1b51c8193215c42ac82610a04624906a9270be6f"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ac9bea18d6d58a995fac1b2cb4488e17eceeac413af014b1dd26170b766d8467"},
|
{file = "numpy-2.2.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:12c045f43b1d2915eca6b880a7f4a256f59d62df4f044788c8ba67709412128d"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:23ae9f0c2d889b7b2d88a3791f6c09e2ef827c2446f1c4a3e3e76328ee4afd9a"},
|
{file = "numpy-2.2.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:87eed225fd415bbae787f93a457af7f5990b92a334e346f72070bf569b9c9c95"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:3074634ea4d6df66be04f6728ee1d173cfded75d002c75fac79503a880bf3825"},
|
{file = "numpy-2.2.3-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:712a64103d97c404e87d4d7c47fb0c7ff9acccc625ca2002848e0d53288b90ea"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:8ec0636d3f7d68520afc6ac2dc4b8341ddb725039de042faf0e311599f54eb37"},
|
{file = "numpy-2.2.3-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:a5ae282abe60a2db0fd407072aff4599c279bcd6e9a2475500fc35b00a57c532"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2ffbb1acd69fdf8e89dd60ef6182ca90a743620957afb7066385a7bbe88dc748"},
|
{file = "numpy-2.2.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5266de33d4c3420973cf9ae3b98b54a2a6d53a559310e3236c4b2b06b9c07d4e"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0349b025e15ea9d05c3d63f9657707a4e1d471128a3b1d876c095f328f8ff7f0"},
|
{file = "numpy-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b787adbf04b0db1967798dba8da1af07e387908ed1553a0d6e74c084d1ceafe"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:463247edcee4a5537841d5350bc87fe8e92d7dd0e8c71c995d2c6eecb8208278"},
|
{file = "numpy-2.2.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:34c1b7e83f94f3b564b35f480f5652a47007dd91f7c839f404d03279cc8dd021"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:9dd47ff0cb2a656ad69c38da850df3454da88ee9a6fde0ba79acceee0e79daba"},
|
{file = "numpy-2.2.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4d8335b5f1b6e2bce120d55fb17064b0262ff29b459e8493d1785c18ae2553b8"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-win32.whl", hash = "sha256:4525b88c11906d5ab1b0ec1f290996c0020dd318af8b49acaa46f198b1ffc283"},
|
{file = "numpy-2.2.3-cp312-cp312-win32.whl", hash = "sha256:4d9828d25fb246bedd31e04c9e75714a4087211ac348cb39c8c5f99dbb6683fe"},
|
||||||
{file = "numpy-2.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:5acea83b801e98541619af398cc0109ff48016955cc0818f478ee9ef1c5c3dcb"},
|
{file = "numpy-2.2.3-cp312-cp312-win_amd64.whl", hash = "sha256:83807d445817326b4bcdaaaf8e8e9f1753da04341eceec705c001ff342002e5d"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b208cfd4f5fe34e1535c08983a1a6803fdbc7a1e86cf13dd0c61de0b51a0aadc"},
|
{file = "numpy-2.2.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7bfdb06b395385ea9b91bf55c1adf1b297c9fdb531552845ff1d3ea6e40d5aba"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d0bbe7dd86dca64854f4b6ce2ea5c60b51e36dfd597300057cf473d3615f2369"},
|
{file = "numpy-2.2.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:23c9f4edbf4c065fddb10a4f6e8b6a244342d95966a48820c614891e5059bb50"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:22ea3bb552ade325530e72a0c557cdf2dea8914d3a5e1fecf58fa5dbcc6f43cd"},
|
{file = "numpy-2.2.3-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:a0c03b6be48aaf92525cccf393265e02773be8fd9551a2f9adbe7db1fa2b60f1"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:128c41c085cab8a85dc29e66ed88c05613dccf6bc28b3866cd16050a2f5448be"},
|
{file = "numpy-2.2.3-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:2376e317111daa0a6739e50f7ee2a6353f768489102308b0d98fcf4a04f7f3b5"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:250c16b277e3b809ac20d1f590716597481061b514223c7badb7a0f9993c7f84"},
|
{file = "numpy-2.2.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8fb62fe3d206d72fe1cfe31c4a1106ad2b136fcc1606093aeab314f02930fdf2"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e0c8854b09bc4de7b041148d8550d3bd712b5c21ff6a8ed308085f190235d7ff"},
|
{file = "numpy-2.2.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:52659ad2534427dffcc36aac76bebdd02b67e3b7a619ac67543bc9bfe6b7cdb1"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b6fb9c32a91ec32a689ec6410def76443e3c750e7cfc3fb2206b985ffb2b85f0"},
|
{file = "numpy-2.2.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1b416af7d0ed3271cad0f0a0d0bee0911ed7eba23e66f8424d9f3dfcdcae1304"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:57b4012e04cc12b78590a334907e01b3a85efb2107df2b8733ff1ed05fce71de"},
|
{file = "numpy-2.2.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1402da8e0f435991983d0a9708b779f95a8c98c6b18a171b9f1be09005e64d9d"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-win32.whl", hash = "sha256:4dbd80e453bd34bd003b16bd802fac70ad76bd463f81f0c518d1245b1c55e3d9"},
|
{file = "numpy-2.2.3-cp313-cp313-win32.whl", hash = "sha256:136553f123ee2951bfcfbc264acd34a2fc2f29d7cdf610ce7daf672b6fbaa693"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:5a8c863ceacae696aff37d1fd636121f1a512117652e5dfb86031c8d84836369"},
|
{file = "numpy-2.2.3-cp313-cp313-win_amd64.whl", hash = "sha256:5b732c8beef1d7bc2d9e476dbba20aaff6167bf205ad9aa8d30913859e82884b"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:b3482cb7b3325faa5f6bc179649406058253d91ceda359c104dac0ad320e1391"},
|
{file = "numpy-2.2.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:435e7a933b9fda8126130b046975a968cc2d833b505475e588339e09f7672890"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:9491100aba630910489c1d0158034e1c9a6546f0b1340f716d522dc103788e39"},
|
{file = "numpy-2.2.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:7678556eeb0152cbd1522b684dcd215250885993dd00adb93679ec3c0e6e091c"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:41184c416143defa34cc8eb9d070b0a5ba4f13a0fa96a709e20584638254b317"},
|
{file = "numpy-2.2.3-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:2e8da03bd561504d9b20e7a12340870dfc206c64ea59b4cfee9fceb95070ee94"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:7dca87ca328f5ea7dafc907c5ec100d187911f94825f8700caac0b3f4c384b49"},
|
{file = "numpy-2.2.3-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:c9aa4496fd0e17e3843399f533d62857cef5900facf93e735ef65aa4bbc90ef0"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0bc61b307655d1a7f9f4b043628b9f2b721e80839914ede634e3d485913e1fb2"},
|
{file = "numpy-2.2.3-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f4ca91d61a4bf61b0f2228f24bbfa6a9facd5f8af03759fe2a655c50ae2c6610"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fad446ad0bc886855ddf5909cbf8cb5d0faa637aaa6277fb4b19ade134ab3c7"},
|
{file = "numpy-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:deaa09cd492e24fd9b15296844c0ad1b3c976da7907e1c1ed3a0ad21dded6f76"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:149d1113ac15005652e8d0d3f6fd599360e1a708a4f98e43c9c77834a28238cb"},
|
{file = "numpy-2.2.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:246535e2f7496b7ac85deffe932896a3577be7af8fb7eebe7146444680297e9a"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:106397dbbb1896f99e044efc90360d098b3335060375c26aa89c0d8a97c5f648"},
|
{file = "numpy-2.2.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:daf43a3d1ea699402c5a850e5313680ac355b4adc9770cd5cfc2940e7861f1bf"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-win32.whl", hash = "sha256:0eec19f8af947a61e968d5429f0bd92fec46d92b0008d0a6685b40d6adf8a4f4"},
|
{file = "numpy-2.2.3-cp313-cp313t-win32.whl", hash = "sha256:cf802eef1f0134afb81fef94020351be4fe1d6681aadf9c5e862af6602af64ef"},
|
||||||
{file = "numpy-2.2.2-cp313-cp313t-win_amd64.whl", hash = "sha256:97b974d3ba0fb4612b77ed35d7627490e8e3dff56ab41454d9e8b23448940576"},
|
{file = "numpy-2.2.3-cp313-cp313t-win_amd64.whl", hash = "sha256:aee2512827ceb6d7f517c8b85aa5d3923afe8fc7a57d028cffcd522f1c6fd082"},
|
||||||
{file = "numpy-2.2.2-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:b0531f0b0e07643eb089df4c509d30d72c9ef40defa53e41363eca8a8cc61495"},
|
{file = "numpy-2.2.3-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:3c2ec8a0f51d60f1e9c0c5ab116b7fc104b165ada3f6c58abf881cb2eb16044d"},
|
||||||
{file = "numpy-2.2.2-pp310-pypy310_pp73-macosx_14_0_x86_64.whl", hash = "sha256:e9e82dcb3f2ebbc8cb5ce1102d5f1c5ed236bf8a11730fb45ba82e2841ec21df"},
|
{file = "numpy-2.2.3-pp310-pypy310_pp73-macosx_14_0_x86_64.whl", hash = "sha256:ed2cf9ed4e8ebc3b754d398cba12f24359f018b416c380f577bbae112ca52fc9"},
|
||||||
{file = "numpy-2.2.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e0d4142eb40ca6f94539e4db929410f2a46052a0fe7a2c1c59f6179c39938d2a"},
|
{file = "numpy-2.2.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:39261798d208c3095ae4f7bc8eaeb3481ea8c6e03dc48028057d3cbdbdb8937e"},
|
||||||
{file = "numpy-2.2.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:356ca982c188acbfa6af0d694284d8cf20e95b1c3d0aefa8929376fea9146f60"},
|
{file = "numpy-2.2.3-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:783145835458e60fa97afac25d511d00a1eca94d4a8f3ace9fe2043003c678e4"},
|
||||||
{file = "numpy-2.2.2.tar.gz", hash = "sha256:ed6906f61834d687738d25988ae117683705636936cc605be0bb208b23df4d8f"},
|
{file = "numpy-2.2.3.tar.gz", hash = "sha256:dbdc15f0c81611925f382dfa97b3bd0bc2c1ce19d4fe50482cb0ddc12ba30020"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -1420,9 +1420,9 @@ files = [
|
|||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
numpy = [
|
numpy = [
|
||||||
|
{version = ">=1.22.4", markers = "python_version < \"3.11\""},
|
||||||
{version = ">=1.23.2", markers = "python_version == \"3.11\""},
|
{version = ">=1.23.2", markers = "python_version == \"3.11\""},
|
||||||
{version = ">=1.26.0", markers = "python_version >= \"3.12\""},
|
{version = ">=1.26.0", markers = "python_version >= \"3.12\""},
|
||||||
{version = ">=1.22.4", markers = "python_version < \"3.11\""},
|
|
||||||
]
|
]
|
||||||
python-dateutil = ">=2.8.2"
|
python-dateutil = ">=2.8.2"
|
||||||
pytz = ">=2020.1"
|
pytz = ">=2020.1"
|
||||||
@ -1693,7 +1693,7 @@ files = [
|
|||||||
{file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"},
|
{file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"},
|
||||||
{file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"},
|
{file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"},
|
||||||
]
|
]
|
||||||
markers = {main = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and platform_python_implementation != \"PyPy\" and (python_version <= \"3.11\" or python_version >= \"3.12\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\""}
|
markers = {main = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and platform_python_implementation != \"PyPy\" or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and platform_python_implementation != \"PyPy\"", dev = "python_version <= \"3.11\" or python_version >= \"3.12\""}
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pydantic"
|
name = "pydantic"
|
||||||
@ -1881,15 +1881,15 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pyright"
|
name = "pyright"
|
||||||
version = "1.1.393"
|
version = "1.1.394"
|
||||||
description = "Command line wrapper for pyright"
|
description = "Command line wrapper for pyright"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
groups = ["dev"]
|
groups = ["dev"]
|
||||||
markers = "python_version <= \"3.11\" or python_version >= \"3.12\""
|
markers = "python_version <= \"3.11\" or python_version >= \"3.12\""
|
||||||
files = [
|
files = [
|
||||||
{file = "pyright-1.1.393-py3-none-any.whl", hash = "sha256:8320629bb7a44ca90944ba599390162bf59307f3d9fb6e27da3b7011b8c17ae5"},
|
{file = "pyright-1.1.394-py3-none-any.whl", hash = "sha256:5f74cce0a795a295fb768759bbeeec62561215dea657edcaab48a932b031ddbb"},
|
||||||
{file = "pyright-1.1.393.tar.gz", hash = "sha256:aeeb7ff4e0364775ef416a80111613f91a05c8e01e58ecfefc370ca0db7aed9c"},
|
{file = "pyright-1.1.394.tar.gz", hash = "sha256:56f2a3ab88c5214a451eb71d8f2792b7700434f841ea219119ade7f42ca93608"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@ -2203,7 +2203,7 @@ description = "A (partial) reimplementation of pywin32 using ctypes/cffi"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.6"
|
python-versions = ">=3.6"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"win32\" and (python_version <= \"3.11\" or python_version >= \"3.12\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"win32\" or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"win32\""
|
||||||
files = [
|
files = [
|
||||||
{file = "pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755"},
|
{file = "pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755"},
|
||||||
{file = "pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8"},
|
{file = "pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8"},
|
||||||
@ -2449,7 +2449,7 @@ description = "Python bindings to FreeDesktop.org Secret Service API"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.6"
|
python-versions = ">=3.6"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" and (python_version <= \"3.11\" or python_version >= \"3.12\")"
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\" or python_version >= \"3.12\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and sys_platform == \"linux\""
|
||||||
files = [
|
files = [
|
||||||
{file = "SecretStorage-3.3.3-py3-none-any.whl", hash = "sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99"},
|
{file = "SecretStorage-3.3.3-py3-none-any.whl", hash = "sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99"},
|
||||||
{file = "SecretStorage-3.3.3.tar.gz", hash = "sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77"},
|
{file = "SecretStorage-3.3.3.tar.gz", hash = "sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77"},
|
||||||
@ -2798,7 +2798,6 @@ description = "A lil' TOML parser"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
groups = ["main", "dev"]
|
groups = ["main", "dev"]
|
||||||
markers = "python_version < \"3.11\""
|
|
||||||
files = [
|
files = [
|
||||||
{file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"},
|
{file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"},
|
||||||
{file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"},
|
{file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"},
|
||||||
@ -2833,6 +2832,7 @@ files = [
|
|||||||
{file = "tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc"},
|
{file = "tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc"},
|
||||||
{file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"},
|
{file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"},
|
||||||
]
|
]
|
||||||
|
markers = {main = "python_version < \"3.11\"", dev = "python_full_version <= \"3.11.0a6\""}
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tomlkit"
|
name = "tomlkit"
|
||||||
@ -2849,15 +2849,15 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "trio"
|
name = "trio"
|
||||||
version = "0.28.0"
|
version = "0.29.0"
|
||||||
description = "A friendly Python library for async concurrency and I/O"
|
description = "A friendly Python library for async concurrency and I/O"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.9"
|
python-versions = ">=3.9"
|
||||||
groups = ["dev"]
|
groups = ["dev"]
|
||||||
markers = "python_version <= \"3.11\" or python_version >= \"3.12\""
|
markers = "python_version <= \"3.11\" or python_version >= \"3.12\""
|
||||||
files = [
|
files = [
|
||||||
{file = "trio-0.28.0-py3-none-any.whl", hash = "sha256:56d58977acc1635735a96581ec70513cc781b8b6decd299c487d3be2a721cd94"},
|
{file = "trio-0.29.0-py3-none-any.whl", hash = "sha256:d8c463f1a9cc776ff63e331aba44c125f423a5a13c684307e828d930e625ba66"},
|
||||||
{file = "trio-0.28.0.tar.gz", hash = "sha256:4e547896fe9e8a5658e54e4c7c5fa1db748cbbbaa7c965e7d40505b928c73c05"},
|
{file = "trio-0.29.0.tar.gz", hash = "sha256:ea0d3967159fc130acb6939a0be0e558e364fee26b5deeecc893a6b08c361bdf"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@ -2871,19 +2871,20 @@ sortedcontainers = "*"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "trio-websocket"
|
name = "trio-websocket"
|
||||||
version = "0.11.1"
|
version = "0.12.1"
|
||||||
description = "WebSocket library for Trio"
|
description = "WebSocket library for Trio"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.8"
|
||||||
groups = ["dev"]
|
groups = ["dev"]
|
||||||
markers = "python_version <= \"3.11\" or python_version >= \"3.12\""
|
markers = "python_version <= \"3.11\" or python_version >= \"3.12\""
|
||||||
files = [
|
files = [
|
||||||
{file = "trio-websocket-0.11.1.tar.gz", hash = "sha256:18c11793647703c158b1f6e62de638acada927344d534e3c7628eedcb746839f"},
|
{file = "trio_websocket-0.12.1-py3-none-any.whl", hash = "sha256:608ec746bb287e5d5a66baf483e41194193c5cf05ffaad6240e7d1fcd80d1e6f"},
|
||||||
{file = "trio_websocket-0.11.1-py3-none-any.whl", hash = "sha256:520d046b0d030cf970b8b2b2e00c4c2245b3807853ecd44214acd33d74581638"},
|
{file = "trio_websocket-0.12.1.tar.gz", hash = "sha256:d55ccd4d3eae27c494f3fdae14823317839bdcb8214d1173eacc4d42c69fc91b"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
exceptiongroup = {version = "*", markers = "python_version < \"3.11\""}
|
exceptiongroup = {version = "*", markers = "python_version < \"3.11\""}
|
||||||
|
outcome = ">=1.2.0"
|
||||||
trio = ">=0.11"
|
trio = ">=0.11"
|
||||||
wsproto = ">=0.14"
|
wsproto = ">=0.14"
|
||||||
|
|
||||||
@ -3171,7 +3172,7 @@ description = "Backport of pathlib-compatible object wrapper for zip files"
|
|||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.9"
|
python-versions = ">=3.9"
|
||||||
groups = ["main"]
|
groups = ["main"]
|
||||||
markers = "(platform_machine != \"ppc64le\" and platform_machine != \"s390x\") and python_version <= \"3.11\" or python_full_version < \"3.10.2\""
|
markers = "python_version <= \"3.11\" and (platform_machine != \"ppc64le\" and platform_machine != \"s390x\") or python_full_version < \"3.10.2\""
|
||||||
files = [
|
files = [
|
||||||
{file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"},
|
{file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"},
|
||||||
{file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"},
|
{file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"},
|
||||||
@ -3188,4 +3189,4 @@ type = ["pytest-mypy"]
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.1"
|
lock-version = "2.1"
|
||||||
python-versions = ">=3.10, <4.0"
|
python-versions = ">=3.10, <4.0"
|
||||||
content-hash = "7ae644e1c5b910f4fd0d8ab0b530818077a96e5d329b2be1269e967c6b0b3d25"
|
content-hash = "36de501672441a558232190e75c187dd92682b56a99fcd84dc2dc6ab78f7dfc8"
|
||||||
|
@ -23,23 +23,20 @@ fastapi = ">=0.96.0,!=0.111.0,!=0.111.1"
|
|||||||
gunicorn = ">=20.1.0,<24.0"
|
gunicorn = ">=20.1.0,<24.0"
|
||||||
jinja2 = ">=3.1.2,<4.0"
|
jinja2 = ">=3.1.2,<4.0"
|
||||||
psutil = ">=5.9.4,<7.0"
|
psutil = ">=5.9.4,<7.0"
|
||||||
pydantic = ">=1.10.2,<3.0"
|
pydantic = ">=1.10.21,<3.0"
|
||||||
python-multipart = ">=0.0.5,<0.1"
|
python-multipart = ">=0.0.5,<0.1"
|
||||||
python-socketio = ">=5.7.0,<6.0"
|
python-socketio = ">=5.7.0,<6.0"
|
||||||
redis = ">=4.3.5,<6.0"
|
redis = ">=4.3.5,<6.0"
|
||||||
rich = ">=13.0.0,<14.0"
|
rich = ">=13.0.0,<14.0"
|
||||||
sqlmodel = ">=0.0.14,<0.1"
|
sqlmodel = ">=0.0.14,<0.1"
|
||||||
typer = ">=0.4.2,<1.0"
|
typer = ">=0.15.1,<1.0"
|
||||||
uvicorn = ">=0.20.0"
|
uvicorn = ">=0.20.0"
|
||||||
starlette-admin = ">=0.11.0,<1.0"
|
starlette-admin = ">=0.11.0,<1.0"
|
||||||
alembic = ">=1.11.1,<2.0"
|
alembic = ">=1.11.1,<2.0"
|
||||||
platformdirs = ">=3.10.0,<5.0"
|
platformdirs = ">=3.10.0,<5.0"
|
||||||
distro = { version = ">=1.8.0,<2.0", platform = "linux" }
|
distro = { version = ">=1.8.0,<2.0", platform = "linux" }
|
||||||
python-engineio = "!=4.6.0"
|
python-engineio = "!=4.6.0"
|
||||||
wrapt = [
|
wrapt = ">=1.17.0,<2.0"
|
||||||
{ version = ">=1.14.0,<2.0", python = ">=3.11" },
|
|
||||||
{ version = ">=1.11.0,<2.0", python = "<3.11" },
|
|
||||||
]
|
|
||||||
packaging = ">=23.1,<25.0"
|
packaging = ">=23.1,<25.0"
|
||||||
reflex-hosting-cli = ">=0.1.29"
|
reflex-hosting-cli = ">=0.1.29"
|
||||||
charset-normalizer = ">=3.3.2,<4.0"
|
charset-normalizer = ">=3.3.2,<4.0"
|
||||||
@ -55,7 +52,7 @@ typing_extensions = ">=4.6.0"
|
|||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
pytest = ">=7.1.2,<9.0"
|
pytest = ">=7.1.2,<9.0"
|
||||||
pytest-mock = ">=3.10.0,<4.0"
|
pytest-mock = ">=3.10.0,<4.0"
|
||||||
pyright = ">=1.1.392, <1.2"
|
pyright = ">=1.1.394, <1.2"
|
||||||
darglint = ">=1.8.1,<2.0"
|
darglint = ">=1.8.1,<2.0"
|
||||||
dill = ">=0.3.8"
|
dill = ">=0.3.8"
|
||||||
toml = ">=0.10.2,<1.0"
|
toml = ">=0.10.2,<1.0"
|
||||||
@ -87,8 +84,37 @@ reportIncompatibleMethodOverride = false
|
|||||||
target-version = "py310"
|
target-version = "py310"
|
||||||
output-format = "concise"
|
output-format = "concise"
|
||||||
lint.isort.split-on-trailing-comma = false
|
lint.isort.split-on-trailing-comma = false
|
||||||
lint.select = ["ANN001","B", "C4", "D", "E", "ERA", "F", "FURB", "I", "N", "PERF", "PGH", "PTH", "RUF", "SIM", "T", "TRY", "W"]
|
lint.select = [
|
||||||
lint.ignore = ["B008", "D205", "E501", "F403", "SIM115", "RUF006", "RUF008", "RUF012", "TRY0"]
|
"ANN001",
|
||||||
|
"B",
|
||||||
|
"C4",
|
||||||
|
"D",
|
||||||
|
"E",
|
||||||
|
"ERA",
|
||||||
|
"F",
|
||||||
|
"FURB",
|
||||||
|
"I",
|
||||||
|
"N",
|
||||||
|
"PERF",
|
||||||
|
"PGH",
|
||||||
|
"PTH",
|
||||||
|
"RUF",
|
||||||
|
"SIM",
|
||||||
|
"T",
|
||||||
|
"TRY",
|
||||||
|
"W",
|
||||||
|
]
|
||||||
|
lint.ignore = [
|
||||||
|
"B008",
|
||||||
|
"D205",
|
||||||
|
"E501",
|
||||||
|
"F403",
|
||||||
|
"SIM115",
|
||||||
|
"RUF006",
|
||||||
|
"RUF008",
|
||||||
|
"RUF012",
|
||||||
|
"TRY0",
|
||||||
|
]
|
||||||
lint.pydocstyle.convention = "google"
|
lint.pydocstyle.convention = "google"
|
||||||
|
|
||||||
[tool.ruff.lint.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
|
@ -248,6 +248,7 @@ COMPONENTS_CORE_MAPPING: dict = {
|
|||||||
"selected_files",
|
"selected_files",
|
||||||
"upload",
|
"upload",
|
||||||
],
|
],
|
||||||
|
"components.core.auto_scroll": ["auto_scroll"],
|
||||||
}
|
}
|
||||||
|
|
||||||
COMPONENTS_BASE_MAPPING: dict = {
|
COMPONENTS_BASE_MAPPING: dict = {
|
||||||
|
@ -34,6 +34,7 @@ from .components.component import Component as Component
|
|||||||
from .components.component import ComponentNamespace as ComponentNamespace
|
from .components.component import ComponentNamespace as ComponentNamespace
|
||||||
from .components.component import NoSSRComponent as NoSSRComponent
|
from .components.component import NoSSRComponent as NoSSRComponent
|
||||||
from .components.component import memo as memo
|
from .components.component import memo as memo
|
||||||
|
from .components.core.auto_scroll import auto_scroll as auto_scroll
|
||||||
from .components.core.banner import connection_banner as connection_banner
|
from .components.core.banner import connection_banner as connection_banner
|
||||||
from .components.core.banner import connection_modal as connection_modal
|
from .components.core.banner import connection_modal as connection_modal
|
||||||
from .components.core.breakpoints import breakpoints as breakpoints
|
from .components.core.breakpoints import breakpoints as breakpoints
|
||||||
|
@ -111,7 +111,7 @@ from reflex.utils import (
|
|||||||
prerequisites,
|
prerequisites,
|
||||||
types,
|
types,
|
||||||
)
|
)
|
||||||
from reflex.utils.exec import is_prod_mode, is_testing_env
|
from reflex.utils.exec import get_compile_context, is_prod_mode, is_testing_env
|
||||||
from reflex.utils.imports import ImportVar
|
from reflex.utils.imports import ImportVar
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
@ -201,14 +201,17 @@ def default_overlay_component() -> Component:
|
|||||||
Returns:
|
Returns:
|
||||||
The default overlay_component, which is a connection_modal.
|
The default overlay_component, which is a connection_modal.
|
||||||
"""
|
"""
|
||||||
config = get_config()
|
|
||||||
from reflex.components.component import memo
|
from reflex.components.component import memo
|
||||||
|
|
||||||
def default_overlay_components():
|
def default_overlay_components():
|
||||||
return Fragment.create(
|
return Fragment.create(
|
||||||
connection_pulser(),
|
connection_pulser(),
|
||||||
connection_toaster(),
|
connection_toaster(),
|
||||||
*([backend_disabled()] if config.is_reflex_cloud else []),
|
*(
|
||||||
|
[backend_disabled()]
|
||||||
|
if get_compile_context() == constants.CompileContext.DEPLOY
|
||||||
|
else []
|
||||||
|
),
|
||||||
*codespaces.codespaces_auto_redirect(),
|
*codespaces.codespaces_auto_redirect(),
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1136,6 +1139,16 @@ class App(MiddlewareMixin, LifespanMixin):
|
|||||||
|
|
||||||
self._validate_var_dependencies()
|
self._validate_var_dependencies()
|
||||||
self._setup_overlay_component()
|
self._setup_overlay_component()
|
||||||
|
|
||||||
|
if config.show_built_with_reflex is None:
|
||||||
|
if (
|
||||||
|
get_compile_context() == constants.CompileContext.DEPLOY
|
||||||
|
and prerequisites.get_user_tier() in ["pro", "team", "enterprise"]
|
||||||
|
):
|
||||||
|
config.show_built_with_reflex = False
|
||||||
|
else:
|
||||||
|
config.show_built_with_reflex = True
|
||||||
|
|
||||||
if is_prod_mode() and config.show_built_with_reflex:
|
if is_prod_mode() and config.show_built_with_reflex:
|
||||||
self._setup_sticky_badge()
|
self._setup_sticky_badge()
|
||||||
|
|
||||||
|
@ -5,15 +5,9 @@ from __future__ import annotations
|
|||||||
import os
|
import os
|
||||||
from typing import TYPE_CHECKING, Any, List, Type
|
from typing import TYPE_CHECKING, Any, List, Type
|
||||||
|
|
||||||
try:
|
import pydantic.v1.main as pydantic_main
|
||||||
import pydantic.v1.main as pydantic_main
|
from pydantic.v1 import BaseModel
|
||||||
from pydantic.v1 import BaseModel
|
from pydantic.v1.fields import ModelField
|
||||||
from pydantic.v1.fields import ModelField
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
if not TYPE_CHECKING:
|
|
||||||
import pydantic.main as pydantic_main
|
|
||||||
from pydantic import BaseModel
|
|
||||||
from pydantic.fields import ModelField
|
|
||||||
|
|
||||||
|
|
||||||
def validate_field_name(bases: List[Type["BaseModel"]], field_name: str) -> None:
|
def validate_field_name(bases: List[Type["BaseModel"]], field_name: str) -> None:
|
||||||
@ -50,7 +44,7 @@ if TYPE_CHECKING:
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
|
|
||||||
class Base(BaseModel): # pyright: ignore [reportPossiblyUnboundVariable]
|
class Base(BaseModel):
|
||||||
"""The base class subclassed by all Reflex classes.
|
"""The base class subclassed by all Reflex classes.
|
||||||
|
|
||||||
This class wraps Pydantic and provides common methods such as
|
This class wraps Pydantic and provides common methods such as
|
||||||
|
@ -10,16 +10,7 @@ from pathlib import Path
|
|||||||
from typing import Any, Callable, Dict, Optional, Type, Union
|
from typing import Any, Callable, Dict, Optional, Type, Union
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from reflex.utils.exec import is_in_app_harness
|
from pydantic.v1.fields import ModelField
|
||||||
from reflex.utils.prerequisites import get_web_dir
|
|
||||||
from reflex.vars.base import Var
|
|
||||||
|
|
||||||
try:
|
|
||||||
from pydantic.v1.fields import ModelField
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
from pydantic.fields import (
|
|
||||||
ModelField, # pyright: ignore [reportAttributeAccessIssue]
|
|
||||||
)
|
|
||||||
|
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
from reflex.components.base import (
|
from reflex.components.base import (
|
||||||
@ -39,7 +30,10 @@ from reflex.istate.storage import Cookie, LocalStorage, SessionStorage
|
|||||||
from reflex.state import BaseState, _resolve_delta
|
from reflex.state import BaseState, _resolve_delta
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils import console, format, imports, path_ops
|
from reflex.utils import console, format, imports, path_ops
|
||||||
|
from reflex.utils.exec import is_in_app_harness
|
||||||
from reflex.utils.imports import ImportVar, ParsedImportDict
|
from reflex.utils.imports import ImportVar, ParsedImportDict
|
||||||
|
from reflex.utils.prerequisites import get_web_dir
|
||||||
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
# To re-export this function.
|
# To re-export this function.
|
||||||
merge_imports = imports.merge_imports
|
merge_imports = imports.merge_imports
|
||||||
|
@ -48,6 +48,7 @@ _SUBMOD_ATTRS: dict[str, list[str]] = {
|
|||||||
"get_upload_url",
|
"get_upload_url",
|
||||||
"selected_files",
|
"selected_files",
|
||||||
],
|
],
|
||||||
|
"auto_scroll": ["auto_scroll"],
|
||||||
}
|
}
|
||||||
|
|
||||||
__getattr__, __dir__, __all__ = lazy_loader.attach(
|
__getattr__, __dir__, __all__ = lazy_loader.attach(
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
from . import layout as layout
|
from . import layout as layout
|
||||||
|
from .auto_scroll import auto_scroll as auto_scroll
|
||||||
from .banner import ConnectionBanner as ConnectionBanner
|
from .banner import ConnectionBanner as ConnectionBanner
|
||||||
from .banner import ConnectionModal as ConnectionModal
|
from .banner import ConnectionModal as ConnectionModal
|
||||||
from .banner import ConnectionPulser as ConnectionPulser
|
from .banner import ConnectionPulser as ConnectionPulser
|
||||||
|
111
reflex/components/core/auto_scroll.py
Normal file
111
reflex/components/core/auto_scroll.py
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
"""A component that automatically scrolls to the bottom when new content is added."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from reflex.components.el.elements.typography import Div
|
||||||
|
from reflex.constants.compiler import MemoizationDisposition, MemoizationMode
|
||||||
|
from reflex.utils.imports import ImportDict
|
||||||
|
from reflex.vars.base import Var, get_unique_variable_name
|
||||||
|
|
||||||
|
|
||||||
|
class AutoScroll(Div):
|
||||||
|
"""A div that automatically scrolls to the bottom when new content is added."""
|
||||||
|
|
||||||
|
_memoization_mode = MemoizationMode(disposition=MemoizationDisposition.ALWAYS)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def create(cls, *children, **props):
|
||||||
|
"""Create an AutoScroll component.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
*children: The children of the component.
|
||||||
|
**props: The props of the component.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
An AutoScroll component.
|
||||||
|
"""
|
||||||
|
props.setdefault("overflow", "auto")
|
||||||
|
props.setdefault("id", get_unique_variable_name())
|
||||||
|
return super().create(*children, **props)
|
||||||
|
|
||||||
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
||||||
|
"""Add imports required for the component.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The imports required for the component.
|
||||||
|
"""
|
||||||
|
return {"react": ["useEffect", "useRef"]}
|
||||||
|
|
||||||
|
def add_hooks(self) -> list[str | Var]:
|
||||||
|
"""Add hooks required for the component.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The hooks required for the component.
|
||||||
|
"""
|
||||||
|
ref_name = self.get_ref()
|
||||||
|
return [
|
||||||
|
"const containerRef = useRef(null);",
|
||||||
|
"const wasNearBottom = useRef(false);",
|
||||||
|
"const hadScrollbar = useRef(false);",
|
||||||
|
f"""
|
||||||
|
const checkIfNearBottom = () => {{
|
||||||
|
if (!{ref_name}.current) return;
|
||||||
|
|
||||||
|
const container = {ref_name}.current;
|
||||||
|
const nearBottomThreshold = 50; // pixels from bottom to trigger auto-scroll
|
||||||
|
|
||||||
|
const distanceFromBottom = container.scrollHeight - container.scrollTop - container.clientHeight;
|
||||||
|
|
||||||
|
wasNearBottom.current = distanceFromBottom <= nearBottomThreshold;
|
||||||
|
|
||||||
|
// Track if container had a scrollbar
|
||||||
|
hadScrollbar.current = container.scrollHeight > container.clientHeight;
|
||||||
|
}};
|
||||||
|
""",
|
||||||
|
f"""
|
||||||
|
const scrollToBottomIfNeeded = () => {{
|
||||||
|
if (!{ref_name}.current) return;
|
||||||
|
|
||||||
|
const container = {ref_name}.current;
|
||||||
|
const hasScrollbarNow = container.scrollHeight > container.clientHeight;
|
||||||
|
|
||||||
|
// Scroll if:
|
||||||
|
// 1. User was near bottom, OR
|
||||||
|
// 2. Container didn't have scrollbar before but does now
|
||||||
|
if (wasNearBottom.current || (!hadScrollbar.current && hasScrollbarNow)) {{
|
||||||
|
container.scrollTop = container.scrollHeight;
|
||||||
|
}}
|
||||||
|
|
||||||
|
// Update scrollbar state for next check
|
||||||
|
hadScrollbar.current = hasScrollbarNow;
|
||||||
|
}};
|
||||||
|
""",
|
||||||
|
f"""
|
||||||
|
useEffect(() => {{
|
||||||
|
const container = {ref_name}.current;
|
||||||
|
if (!container) return;
|
||||||
|
|
||||||
|
// Create ResizeObserver to detect height changes
|
||||||
|
const resizeObserver = new ResizeObserver(() => {{
|
||||||
|
scrollToBottomIfNeeded();
|
||||||
|
}});
|
||||||
|
|
||||||
|
// Track scroll position before height changes
|
||||||
|
container.addEventListener('scroll', checkIfNearBottom);
|
||||||
|
|
||||||
|
// Initial check
|
||||||
|
checkIfNearBottom();
|
||||||
|
|
||||||
|
// Observe container for size changes
|
||||||
|
resizeObserver.observe(container);
|
||||||
|
|
||||||
|
return () => {{
|
||||||
|
container.removeEventListener('scroll', checkIfNearBottom);
|
||||||
|
resizeObserver.disconnect();
|
||||||
|
}};
|
||||||
|
}});
|
||||||
|
""",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
auto_scroll = AutoScroll.create
|
284
reflex/components/core/auto_scroll.pyi
Normal file
284
reflex/components/core/auto_scroll.pyi
Normal file
@ -0,0 +1,284 @@
|
|||||||
|
"""Stub file for reflex/components/core/auto_scroll.py"""
|
||||||
|
|
||||||
|
# ------------------- DO NOT EDIT ----------------------
|
||||||
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
|
# ------------------------------------------------------
|
||||||
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
|
from reflex.components.el.elements.typography import Div
|
||||||
|
from reflex.event import EventType
|
||||||
|
from reflex.style import Style
|
||||||
|
from reflex.utils.imports import ImportDict
|
||||||
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
|
class AutoScroll(Div):
|
||||||
|
@overload
|
||||||
|
@classmethod
|
||||||
|
def create( # type: ignore
|
||||||
|
cls,
|
||||||
|
*children,
|
||||||
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
|
auto_capitalize: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
content_editable: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
enter_key_hint: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
input_mode: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: 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, Any]]] = None,
|
||||||
|
on_blur: Optional[EventType[()]] = None,
|
||||||
|
on_click: Optional[EventType[()]] = None,
|
||||||
|
on_context_menu: Optional[EventType[()]] = None,
|
||||||
|
on_double_click: Optional[EventType[()]] = None,
|
||||||
|
on_focus: Optional[EventType[()]] = None,
|
||||||
|
on_mount: Optional[EventType[()]] = None,
|
||||||
|
on_mouse_down: Optional[EventType[()]] = None,
|
||||||
|
on_mouse_enter: Optional[EventType[()]] = None,
|
||||||
|
on_mouse_leave: Optional[EventType[()]] = None,
|
||||||
|
on_mouse_move: Optional[EventType[()]] = None,
|
||||||
|
on_mouse_out: Optional[EventType[()]] = None,
|
||||||
|
on_mouse_over: Optional[EventType[()]] = None,
|
||||||
|
on_mouse_up: Optional[EventType[()]] = None,
|
||||||
|
on_scroll: Optional[EventType[()]] = None,
|
||||||
|
on_unmount: Optional[EventType[()]] = None,
|
||||||
|
**props,
|
||||||
|
) -> "AutoScroll":
|
||||||
|
"""Create an AutoScroll 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 <menu> 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.
|
||||||
|
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:
|
||||||
|
An AutoScroll component.
|
||||||
|
"""
|
||||||
|
...
|
||||||
|
|
||||||
|
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
||||||
|
def add_hooks(self) -> list[str | Var]: ...
|
||||||
|
|
||||||
|
auto_scroll = AutoScroll.create
|
@ -271,30 +271,211 @@ class ConnectionPulser(Div):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -356,30 +537,211 @@ class BackendDisabled(Div):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -18,7 +18,7 @@ def set_breakpoints(values: Tuple[str, str, str, str, str]):
|
|||||||
breakpoints_values.extend(values)
|
breakpoints_values.extend(values)
|
||||||
|
|
||||||
|
|
||||||
K = TypeVar("K")
|
K = TypeVar("K", bound=str)
|
||||||
V = TypeVar("V")
|
V = TypeVar("V")
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# ------------------- DO NOT EDIT ----------------------
|
# ------------------- DO NOT EDIT ----------------------
|
||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from typing import Any, Dict, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.el.elements.typography import Div
|
from reflex.components.el.elements.typography import Div
|
||||||
from reflex.event import EventType
|
from reflex.event import EventType
|
||||||
@ -19,30 +19,211 @@ class Html(Div):
|
|||||||
dangerouslySetInnerHTML: Optional[
|
dangerouslySetInnerHTML: Optional[
|
||||||
Union[Dict[str, str], Var[Dict[str, str]]]
|
Union[Dict[str, str], Var[Dict[str, str]]]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3,9 +3,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Any, Dict, List, Literal, Optional, Tuple, Union
|
from typing import Any, Dict, List, Literal, Optional, Tuple, TypedDict, Union
|
||||||
|
|
||||||
from typing_extensions import TypedDict
|
|
||||||
|
|
||||||
from reflex.base import Base
|
from reflex.base import Base
|
||||||
from reflex.components.component import Component, NoSSRComponent
|
from reflex.components.component import Component, NoSSRComponent
|
||||||
|
@ -4,9 +4,7 @@
|
|||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Any, Dict, List, Literal, Optional, Union, overload
|
from typing import Any, Dict, List, Literal, Optional, TypedDict, Union, overload
|
||||||
|
|
||||||
from typing_extensions import TypedDict
|
|
||||||
|
|
||||||
from reflex.base import Base
|
from reflex.base import Base
|
||||||
from reflex.components.component import NoSSRComponent
|
from reflex.components.component import NoSSRComponent
|
||||||
|
@ -1,58 +1,136 @@
|
|||||||
"""Base classes."""
|
"""Base classes."""
|
||||||
|
|
||||||
from typing import Union
|
from typing import Literal
|
||||||
|
|
||||||
from reflex.components.el.element import Element
|
from reflex.components.el.element import Element
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
|
AutoCapitalize = Literal["off", "none", "on", "sentences", "words", "characters"]
|
||||||
|
ContentEditable = Literal[True, False, "inherit", "plaintext-only"]
|
||||||
|
EnterKeyHint = Literal["enter", "done", "go", "next", "previous", "search", "send"]
|
||||||
|
InputMode = Literal[
|
||||||
|
"none", "text", "tel", "url", "email", "numeric", "decimal", "search", "search"
|
||||||
|
]
|
||||||
|
AriaRole = Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class BaseHTML(Element):
|
class BaseHTML(Element):
|
||||||
"""Base class for common attributes."""
|
"""Base class for common attributes."""
|
||||||
|
|
||||||
# Provides a hint for generating a keyboard shortcut for the current element.
|
# Provides a hint for generating a keyboard shortcut for the current element.
|
||||||
access_key: Var[Union[str, int, bool]]
|
access_key: Var[str]
|
||||||
|
|
||||||
# Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
# Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
||||||
auto_capitalize: Var[Union[str, int, bool]]
|
auto_capitalize: Var[AutoCapitalize]
|
||||||
|
|
||||||
# Indicates whether the element's content is editable.
|
# Indicates whether the element's content is editable.
|
||||||
content_editable: Var[Union[str, int, bool]]
|
content_editable: Var[ContentEditable]
|
||||||
|
|
||||||
# Defines the ID of a <menu> element which will serve as the element's context menu.
|
# Defines the ID of a <menu> element which will serve as the element's context menu.
|
||||||
context_menu: Var[Union[str, int, bool]]
|
context_menu: Var[str]
|
||||||
|
|
||||||
# Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
# Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
||||||
dir: Var[Union[str, int, bool]]
|
dir: Var[str]
|
||||||
|
|
||||||
# Defines whether the element can be dragged.
|
# Defines whether the element can be dragged.
|
||||||
draggable: Var[Union[str, int, bool]]
|
draggable: Var[bool]
|
||||||
|
|
||||||
# Hints what media types the media element is able to play.
|
# Hints what media types the media element is able to play.
|
||||||
enter_key_hint: Var[Union[str, int, bool]]
|
enter_key_hint: Var[EnterKeyHint]
|
||||||
|
|
||||||
# Defines whether the element is hidden.
|
# Defines whether the element is hidden.
|
||||||
hidden: Var[Union[str, int, bool]]
|
hidden: Var[bool]
|
||||||
|
|
||||||
# Defines the type of the element.
|
# Defines the type of the element.
|
||||||
input_mode: Var[Union[str, int, bool]]
|
input_mode: Var[InputMode]
|
||||||
|
|
||||||
# Defines the name of the element for metadata purposes.
|
# Defines the name of the element for metadata purposes.
|
||||||
item_prop: Var[Union[str, int, bool]]
|
item_prop: Var[str]
|
||||||
|
|
||||||
# Defines the language used in the element.
|
# Defines the language used in the element.
|
||||||
lang: Var[Union[str, int, bool]]
|
lang: Var[str]
|
||||||
|
|
||||||
# Defines the role of the element.
|
# Defines the role of the element.
|
||||||
role: Var[Union[str, int, bool]]
|
role: Var[AriaRole]
|
||||||
|
|
||||||
# Assigns a slot in a shadow DOM shadow tree to an element.
|
# Assigns a slot in a shadow DOM shadow tree to an element.
|
||||||
slot: Var[Union[str, int, bool]]
|
slot: Var[str]
|
||||||
|
|
||||||
# Defines whether the element may be checked for spelling errors.
|
# Defines whether the element may be checked for spelling errors.
|
||||||
spell_check: Var[Union[str, int, bool]]
|
spell_check: Var[bool]
|
||||||
|
|
||||||
# Defines the position of the current element in the tabbing order.
|
# Defines the position of the current element in the tabbing order.
|
||||||
tab_index: Var[Union[str, int, bool]]
|
tab_index: Var[int]
|
||||||
|
|
||||||
# Defines a tooltip for the element.
|
# Defines a tooltip for the element.
|
||||||
title: Var[Union[str, int, bool]]
|
title: Var[str]
|
||||||
|
@ -3,43 +3,302 @@
|
|||||||
# ------------------- DO NOT EDIT ----------------------
|
# ------------------- DO NOT EDIT ----------------------
|
||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from typing import Any, Dict, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.el.element import Element
|
from reflex.components.el.element import Element
|
||||||
from reflex.event import EventType
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
|
AutoCapitalize = Literal["off", "none", "on", "sentences", "words", "characters"]
|
||||||
|
ContentEditable = Literal[True, False, "inherit", "plaintext-only"]
|
||||||
|
EnterKeyHint = Literal["enter", "done", "go", "next", "previous", "search", "send"]
|
||||||
|
InputMode = Literal[
|
||||||
|
"none", "text", "tel", "url", "email", "numeric", "decimal", "search", "search"
|
||||||
|
]
|
||||||
|
AriaRole = Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
|
||||||
class BaseHTML(Element):
|
class BaseHTML(Element):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
from typing import Any, Dict, Iterator, Set, Tuple, Union
|
from typing import Any, Dict, Iterator, Literal, Set, Tuple, Union
|
||||||
|
|
||||||
from jinja2 import Environment
|
from jinja2 import Environment
|
||||||
|
|
||||||
@ -41,6 +41,8 @@ HANDLE_SUBMIT_JS_JINJA2 = Environment().from_string(
|
|||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ButtonType = Literal["submit", "reset", "button"]
|
||||||
|
|
||||||
|
|
||||||
class Button(BaseHTML):
|
class Button(BaseHTML):
|
||||||
"""Display the button element."""
|
"""Display the button element."""
|
||||||
@ -48,37 +50,37 @@ class Button(BaseHTML):
|
|||||||
tag = "button"
|
tag = "button"
|
||||||
|
|
||||||
# Automatically focuses the button when the page loads
|
# Automatically focuses the button when the page loads
|
||||||
auto_focus: Var[Union[str, int, bool]]
|
auto_focus: Var[bool]
|
||||||
|
|
||||||
# Disables the button
|
# Disables the button
|
||||||
disabled: Var[bool]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Associates the button with a form (by id)
|
# Associates the button with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# URL to send the form data to (for type="submit" buttons)
|
# URL to send the form data to (for type="submit" buttons)
|
||||||
form_action: Var[Union[str, int, bool]]
|
form_action: Var[str]
|
||||||
|
|
||||||
# How the form data should be encoded when submitting to the server (for type="submit" buttons)
|
# How the form data should be encoded when submitting to the server (for type="submit" buttons)
|
||||||
form_enc_type: Var[Union[str, int, bool]]
|
form_enc_type: Var[str]
|
||||||
|
|
||||||
# HTTP method to use for sending form data (for type="submit" buttons)
|
# HTTP method to use for sending form data (for type="submit" buttons)
|
||||||
form_method: Var[Union[str, int, bool]]
|
form_method: Var[str]
|
||||||
|
|
||||||
# Bypasses form validation when submitting (for type="submit" buttons)
|
# Bypasses form validation when submitting (for type="submit" buttons)
|
||||||
form_no_validate: Var[Union[str, int, bool]]
|
form_no_validate: Var[bool]
|
||||||
|
|
||||||
# Specifies where to display the response after submitting the form (for type="submit" buttons)
|
# Specifies where to display the response after submitting the form (for type="submit" buttons)
|
||||||
form_target: Var[Union[str, int, bool]]
|
form_target: Var[str]
|
||||||
|
|
||||||
# Name of the button, used when sending form data
|
# Name of the button, used when sending form data
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
# Type of the button (submit, reset, or button)
|
# Type of the button (submit, reset, or button)
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[ButtonType]
|
||||||
|
|
||||||
# Value of the button, used when sending form data
|
# Value of the button, used when sending form data
|
||||||
value: Var[Union[str, int, bool]]
|
value: Var[Union[str, int, float]]
|
||||||
|
|
||||||
|
|
||||||
class Datalist(BaseHTML):
|
class Datalist(BaseHTML):
|
||||||
@ -93,13 +95,13 @@ class Fieldset(Element):
|
|||||||
tag = "fieldset"
|
tag = "fieldset"
|
||||||
|
|
||||||
# Disables all the form control descendants of the fieldset
|
# Disables all the form control descendants of the fieldset
|
||||||
disabled: Var[Union[str, int, bool]]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Associates the fieldset with a form (by id)
|
# Associates the fieldset with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# Name of the fieldset, used for scripting
|
# Name of the fieldset, used for scripting
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
|
|
||||||
def on_submit_event_spec() -> Tuple[Var[dict[str, Any]]]:
|
def on_submit_event_spec() -> Tuple[Var[dict[str, Any]]]:
|
||||||
@ -126,31 +128,31 @@ class Form(BaseHTML):
|
|||||||
tag = "form"
|
tag = "form"
|
||||||
|
|
||||||
# MIME types the server accepts for file upload
|
# MIME types the server accepts for file upload
|
||||||
accept: Var[Union[str, int, bool]]
|
accept: Var[str]
|
||||||
|
|
||||||
# Character encodings to be used for form submission
|
# Character encodings to be used for form submission
|
||||||
accept_charset: Var[Union[str, int, bool]]
|
accept_charset: Var[str]
|
||||||
|
|
||||||
# URL where the form's data should be submitted
|
# URL where the form's data should be submitted
|
||||||
action: Var[Union[str, int, bool]]
|
action: Var[str]
|
||||||
|
|
||||||
# Whether the form should have autocomplete enabled
|
# Whether the form should have autocomplete enabled
|
||||||
auto_complete: Var[Union[str, int, bool]]
|
auto_complete: Var[str]
|
||||||
|
|
||||||
# Encoding type for the form data when submitted
|
# Encoding type for the form data when submitted
|
||||||
enc_type: Var[Union[str, int, bool]]
|
enc_type: Var[str]
|
||||||
|
|
||||||
# HTTP method to use for form submission
|
# HTTP method to use for form submission
|
||||||
method: Var[Union[str, int, bool]]
|
method: Var[str]
|
||||||
|
|
||||||
# Name of the form
|
# Name of the form
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
# Indicates that the form should not be validated on submit
|
# Indicates that the form should not be validated on submit
|
||||||
no_validate: Var[Union[str, int, bool]]
|
no_validate: Var[bool]
|
||||||
|
|
||||||
# Where to display the response after submitting the form
|
# Where to display the response after submitting the form
|
||||||
target: Var[Union[str, int, bool]]
|
target: Var[str]
|
||||||
|
|
||||||
# If true, the form will be cleared after submit.
|
# If true, the form will be cleared after submit.
|
||||||
reset_on_submit: Var[bool] = Var.create(False)
|
reset_on_submit: Var[bool] = Var.create(False)
|
||||||
@ -266,106 +268,126 @@ class Form(BaseHTML):
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
HTMLInputTypeAttribute = Literal[
|
||||||
|
"button",
|
||||||
|
"checkbox",
|
||||||
|
"color",
|
||||||
|
"date",
|
||||||
|
"datetime-local",
|
||||||
|
"email",
|
||||||
|
"file",
|
||||||
|
"hidden",
|
||||||
|
"image",
|
||||||
|
"month",
|
||||||
|
"number",
|
||||||
|
"password",
|
||||||
|
"radio",
|
||||||
|
"range",
|
||||||
|
"reset",
|
||||||
|
"search",
|
||||||
|
"submit",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"time",
|
||||||
|
"url",
|
||||||
|
"week",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class Input(BaseHTML):
|
class Input(BaseHTML):
|
||||||
"""Display the input element."""
|
"""Display the input element."""
|
||||||
|
|
||||||
tag = "input"
|
tag = "input"
|
||||||
|
|
||||||
# Accepted types of files when the input is file type
|
# Accepted types of files when the input is file type
|
||||||
accept: Var[Union[str, int, bool]]
|
accept: Var[str]
|
||||||
|
|
||||||
# Alternate text for input type="image"
|
# Alternate text for input type="image"
|
||||||
alt: Var[Union[str, int, bool]]
|
alt: Var[str]
|
||||||
|
|
||||||
# Whether the input should have autocomplete enabled
|
# Whether the input should have autocomplete enabled
|
||||||
auto_complete: Var[Union[str, int, bool]]
|
auto_complete: Var[str]
|
||||||
|
|
||||||
# Automatically focuses the input when the page loads
|
# Automatically focuses the input when the page loads
|
||||||
auto_focus: Var[Union[str, int, bool]]
|
auto_focus: Var[bool]
|
||||||
|
|
||||||
# Captures media from the user (camera or microphone)
|
# Captures media from the user (camera or microphone)
|
||||||
capture: Var[Union[str, int, bool]]
|
capture: Var[Literal[True, False, "user", "environment"]]
|
||||||
|
|
||||||
# Indicates whether the input is checked (for checkboxes and radio buttons)
|
# Indicates whether the input is checked (for checkboxes and radio buttons)
|
||||||
checked: Var[Union[str, int, bool]]
|
checked: Var[bool]
|
||||||
|
|
||||||
# The initial value (for checkboxes and radio buttons)
|
# The initial value (for checkboxes and radio buttons)
|
||||||
default_checked: Var[bool]
|
default_checked: Var[bool]
|
||||||
|
|
||||||
# The initial value for a text field
|
# The initial value for a text field
|
||||||
default_value: Var[str]
|
default_value: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Name part of the input to submit in 'dir' and 'name' pair when form is submitted
|
|
||||||
dirname: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Disables the input
|
# Disables the input
|
||||||
disabled: Var[Union[str, int, bool]]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Associates the input with a form (by id)
|
# Associates the input with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# URL to send the form data to (for type="submit" buttons)
|
# URL to send the form data to (for type="submit" buttons)
|
||||||
form_action: Var[Union[str, int, bool]]
|
form_action: Var[str]
|
||||||
|
|
||||||
# How the form data should be encoded when submitting to the server (for type="submit" buttons)
|
# How the form data should be encoded when submitting to the server (for type="submit" buttons)
|
||||||
form_enc_type: Var[Union[str, int, bool]]
|
form_enc_type: Var[str]
|
||||||
|
|
||||||
# HTTP method to use for sending form data (for type="submit" buttons)
|
# HTTP method to use for sending form data (for type="submit" buttons)
|
||||||
form_method: Var[Union[str, int, bool]]
|
form_method: Var[str]
|
||||||
|
|
||||||
# Bypasses form validation when submitting (for type="submit" buttons)
|
# Bypasses form validation when submitting (for type="submit" buttons)
|
||||||
form_no_validate: Var[Union[str, int, bool]]
|
form_no_validate: Var[bool]
|
||||||
|
|
||||||
# Specifies where to display the response after submitting the form (for type="submit" buttons)
|
# Specifies where to display the response after submitting the form (for type="submit" buttons)
|
||||||
form_target: Var[Union[str, int, bool]]
|
form_target: Var[str]
|
||||||
|
|
||||||
# References a datalist for suggested options
|
# References a datalist for suggested options
|
||||||
list: Var[Union[str, int, bool]]
|
list: Var[str]
|
||||||
|
|
||||||
# Specifies the maximum value for the input
|
# Specifies the maximum value for the input
|
||||||
max: Var[Union[str, int, bool]]
|
max: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Specifies the maximum number of characters allowed in the input
|
# Specifies the maximum number of characters allowed in the input
|
||||||
max_length: Var[Union[str, int, bool]]
|
max_length: Var[Union[int, float]]
|
||||||
|
|
||||||
# Specifies the minimum number of characters required in the input
|
# Specifies the minimum number of characters required in the input
|
||||||
min_length: Var[Union[str, int, bool]]
|
min_length: Var[Union[int, float]]
|
||||||
|
|
||||||
# Specifies the minimum value for the input
|
# Specifies the minimum value for the input
|
||||||
min: Var[Union[str, int, bool]]
|
min: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Indicates whether multiple values can be entered in an input of the type email or file
|
# Indicates whether multiple values can be entered in an input of the type email or file
|
||||||
multiple: Var[Union[str, int, bool]]
|
multiple: Var[bool]
|
||||||
|
|
||||||
# Name of the input, used when sending form data
|
# Name of the input, used when sending form data
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
# Regex pattern the input's value must match to be valid
|
# Regex pattern the input's value must match to be valid
|
||||||
pattern: Var[Union[str, int, bool]]
|
pattern: Var[str]
|
||||||
|
|
||||||
# Placeholder text in the input
|
# Placeholder text in the input
|
||||||
placeholder: Var[Union[str, int, bool]]
|
placeholder: Var[str]
|
||||||
|
|
||||||
# Indicates whether the input is read-only
|
# Indicates whether the input is read-only
|
||||||
read_only: Var[Union[str, int, bool]]
|
read_only: Var[bool]
|
||||||
|
|
||||||
# Indicates that the input is required
|
# Indicates that the input is required
|
||||||
required: Var[Union[str, int, bool]]
|
required: Var[bool]
|
||||||
|
|
||||||
# Specifies the visible width of a text control
|
# Specifies the visible width of a text control
|
||||||
size: Var[Union[str, int, bool]]
|
size: Var[Union[int, float]]
|
||||||
|
|
||||||
# URL for image inputs
|
# URL for image inputs
|
||||||
src: Var[Union[str, int, bool]]
|
src: Var[str]
|
||||||
|
|
||||||
# Specifies the legal number intervals for an input
|
# Specifies the legal number intervals for an input
|
||||||
step: Var[Union[str, int, bool]]
|
step: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Specifies the type of input
|
# Specifies the type of input
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[HTMLInputTypeAttribute]
|
||||||
|
|
||||||
# Name of the image map used with the input
|
|
||||||
use_map: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Value of the input
|
# Value of the input
|
||||||
value: Var[Union[str, int, float]]
|
value: Var[Union[str, int, float]]
|
||||||
@ -419,10 +441,10 @@ class Label(BaseHTML):
|
|||||||
tag = "label"
|
tag = "label"
|
||||||
|
|
||||||
# ID of a form control with which the label is associated
|
# ID of a form control with which the label is associated
|
||||||
html_for: Var[Union[str, int, bool]]
|
html_for: Var[str]
|
||||||
|
|
||||||
# Associates the label with a form (by id)
|
# Associates the label with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Legend(BaseHTML):
|
class Legend(BaseHTML):
|
||||||
@ -437,25 +459,25 @@ class Meter(BaseHTML):
|
|||||||
tag = "meter"
|
tag = "meter"
|
||||||
|
|
||||||
# Associates the meter with a form (by id)
|
# Associates the meter with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# High limit of range (above this is considered high value)
|
# High limit of range (above this is considered high value)
|
||||||
high: Var[Union[str, int, bool]]
|
high: Var[Union[int, float]]
|
||||||
|
|
||||||
# Low limit of range (below this is considered low value)
|
# Low limit of range (below this is considered low value)
|
||||||
low: Var[Union[str, int, bool]]
|
low: Var[Union[int, float]]
|
||||||
|
|
||||||
# Maximum value of the range
|
# Maximum value of the range
|
||||||
max: Var[Union[str, int, bool]]
|
max: Var[Union[int, float]]
|
||||||
|
|
||||||
# Minimum value of the range
|
# Minimum value of the range
|
||||||
min: Var[Union[str, int, bool]]
|
min: Var[Union[int, float]]
|
||||||
|
|
||||||
# Optimum value in the range
|
# Optimum value in the range
|
||||||
optimum: Var[Union[str, int, bool]]
|
optimum: Var[Union[int, float]]
|
||||||
|
|
||||||
# Current value of the meter
|
# Current value of the meter
|
||||||
value: Var[Union[str, int, bool]]
|
value: Var[Union[int, float]]
|
||||||
|
|
||||||
|
|
||||||
class Optgroup(BaseHTML):
|
class Optgroup(BaseHTML):
|
||||||
@ -464,10 +486,10 @@ class Optgroup(BaseHTML):
|
|||||||
tag = "optgroup"
|
tag = "optgroup"
|
||||||
|
|
||||||
# Disables the optgroup
|
# Disables the optgroup
|
||||||
disabled: Var[Union[str, int, bool]]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Label for the optgroup
|
# Label for the optgroup
|
||||||
label: Var[Union[str, int, bool]]
|
label: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Option(BaseHTML):
|
class Option(BaseHTML):
|
||||||
@ -476,16 +498,16 @@ class Option(BaseHTML):
|
|||||||
tag = "option"
|
tag = "option"
|
||||||
|
|
||||||
# Disables the option
|
# Disables the option
|
||||||
disabled: Var[Union[str, int, bool]]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Label for the option, if the text is not the label
|
# Label for the option, if the text is not the label
|
||||||
label: Var[Union[str, int, bool]]
|
label: Var[str]
|
||||||
|
|
||||||
# Indicates that the option is initially selected
|
# Indicates that the option is initially selected
|
||||||
selected: Var[Union[str, int, bool]]
|
selected: Var[bool]
|
||||||
|
|
||||||
# Value to be sent as form data
|
# Value to be sent as form data
|
||||||
value: Var[Union[str, int, bool]]
|
value: Var[Union[str, int, float]]
|
||||||
|
|
||||||
|
|
||||||
class Output(BaseHTML):
|
class Output(BaseHTML):
|
||||||
@ -494,13 +516,13 @@ class Output(BaseHTML):
|
|||||||
tag = "output"
|
tag = "output"
|
||||||
|
|
||||||
# Associates the output with one or more elements (by their IDs)
|
# Associates the output with one or more elements (by their IDs)
|
||||||
html_for: Var[Union[str, int, bool]]
|
html_for: Var[str]
|
||||||
|
|
||||||
# Associates the output with a form (by id)
|
# Associates the output with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# Name of the output element for form submission
|
# Name of the output element for form submission
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Progress(BaseHTML):
|
class Progress(BaseHTML):
|
||||||
@ -509,13 +531,13 @@ class Progress(BaseHTML):
|
|||||||
tag = "progress"
|
tag = "progress"
|
||||||
|
|
||||||
# Associates the progress element with a form (by id)
|
# Associates the progress element with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# Maximum value of the progress indicator
|
# Maximum value of the progress indicator
|
||||||
max: Var[Union[str, int, bool]]
|
max: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Current value of the progress indicator
|
# Current value of the progress indicator
|
||||||
value: Var[Union[str, int, bool]]
|
value: Var[Union[str, int, float]]
|
||||||
|
|
||||||
|
|
||||||
class Select(BaseHTML):
|
class Select(BaseHTML):
|
||||||
@ -524,28 +546,28 @@ class Select(BaseHTML):
|
|||||||
tag = "select"
|
tag = "select"
|
||||||
|
|
||||||
# Whether the form control should have autocomplete enabled
|
# Whether the form control should have autocomplete enabled
|
||||||
auto_complete: Var[Union[str, int, bool]]
|
auto_complete: Var[str]
|
||||||
|
|
||||||
# Automatically focuses the select when the page loads
|
# Automatically focuses the select when the page loads
|
||||||
auto_focus: Var[Union[str, int, bool]]
|
auto_focus: Var[bool]
|
||||||
|
|
||||||
# Disables the select control
|
# Disables the select control
|
||||||
disabled: Var[Union[str, int, bool]]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Associates the select with a form (by id)
|
# Associates the select with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# Indicates that multiple options can be selected
|
# Indicates that multiple options can be selected
|
||||||
multiple: Var[Union[str, int, bool]]
|
multiple: Var[bool]
|
||||||
|
|
||||||
# Name of the select, used when submitting the form
|
# Name of the select, used when submitting the form
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
# Indicates that the select control must have a selected option
|
# Indicates that the select control must have a selected option
|
||||||
required: Var[Union[str, int, bool]]
|
required: Var[bool]
|
||||||
|
|
||||||
# Number of visible options in a drop-down list
|
# Number of visible options in a drop-down list
|
||||||
size: Var[Union[str, int, bool]]
|
size: Var[int]
|
||||||
|
|
||||||
# Fired when the select value changes
|
# Fired when the select value changes
|
||||||
on_change: EventHandler[input_event]
|
on_change: EventHandler[input_event]
|
||||||
@ -587,58 +609,58 @@ class Textarea(BaseHTML):
|
|||||||
tag = "textarea"
|
tag = "textarea"
|
||||||
|
|
||||||
# Whether the form control should have autocomplete enabled
|
# Whether the form control should have autocomplete enabled
|
||||||
auto_complete: Var[Union[str, int, bool]]
|
auto_complete: Var[str]
|
||||||
|
|
||||||
# Automatically focuses the textarea when the page loads
|
# Automatically focuses the textarea when the page loads
|
||||||
auto_focus: Var[Union[str, int, bool]]
|
auto_focus: Var[bool]
|
||||||
|
|
||||||
# Automatically fit the content height to the text (use min-height with this prop)
|
# Automatically fit the content height to the text (use min-height with this prop)
|
||||||
auto_height: Var[bool]
|
auto_height: Var[bool]
|
||||||
|
|
||||||
# Visible width of the text control, in average character widths
|
# Visible width of the text control, in average character widths
|
||||||
cols: Var[Union[str, int, bool]]
|
cols: Var[int]
|
||||||
|
|
||||||
# The default value of the textarea when initially rendered
|
# The default value of the textarea when initially rendered
|
||||||
default_value: Var[str]
|
default_value: Var[str]
|
||||||
|
|
||||||
# Name part of the textarea to submit in 'dir' and 'name' pair when form is submitted
|
# Name part of the textarea to submit in 'dir' and 'name' pair when form is submitted
|
||||||
dirname: Var[Union[str, int, bool]]
|
dirname: Var[str]
|
||||||
|
|
||||||
# Disables the textarea
|
# Disables the textarea
|
||||||
disabled: Var[Union[str, int, bool]]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Enter key submits form (shift-enter adds new line)
|
# Enter key submits form (shift-enter adds new line)
|
||||||
enter_key_submit: Var[bool]
|
enter_key_submit: Var[bool]
|
||||||
|
|
||||||
# Associates the textarea with a form (by id)
|
# Associates the textarea with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# Maximum number of characters allowed in the textarea
|
# Maximum number of characters allowed in the textarea
|
||||||
max_length: Var[Union[str, int, bool]]
|
max_length: Var[int]
|
||||||
|
|
||||||
# Minimum number of characters required in the textarea
|
# Minimum number of characters required in the textarea
|
||||||
min_length: Var[Union[str, int, bool]]
|
min_length: Var[int]
|
||||||
|
|
||||||
# Name of the textarea, used when submitting the form
|
# Name of the textarea, used when submitting the form
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
# Placeholder text in the textarea
|
# Placeholder text in the textarea
|
||||||
placeholder: Var[Union[str, int, bool]]
|
placeholder: Var[str]
|
||||||
|
|
||||||
# Indicates whether the textarea is read-only
|
# Indicates whether the textarea is read-only
|
||||||
read_only: Var[Union[str, int, bool]]
|
read_only: Var[bool]
|
||||||
|
|
||||||
# Indicates that the textarea is required
|
# Indicates that the textarea is required
|
||||||
required: Var[Union[str, int, bool]]
|
required: Var[bool]
|
||||||
|
|
||||||
# Visible number of lines in the text control
|
# Visible number of lines in the text control
|
||||||
rows: Var[Union[str, int, bool]]
|
rows: Var[int]
|
||||||
|
|
||||||
# The controlled value of the textarea, read only unless used with on_change
|
# The controlled value of the textarea, read only unless used with on_change
|
||||||
value: Var[Union[str, int, bool]]
|
value: Var[str]
|
||||||
|
|
||||||
# How the text in the textarea is to be wrapped when submitting the form
|
# How the text in the textarea is to be wrapped when submitting the form
|
||||||
wrap: Var[Union[str, int, bool]]
|
wrap: Var[str]
|
||||||
|
|
||||||
# Fired when the input value changes
|
# Fired when the input value changes
|
||||||
on_change: EventHandler[input_event]
|
on_change: EventHandler[input_event]
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,23 @@
|
|||||||
"""Inline classes."""
|
"""Inline classes."""
|
||||||
|
|
||||||
from typing import Union
|
from typing import Literal, Union
|
||||||
|
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
from .base import BaseHTML
|
from .base import BaseHTML
|
||||||
|
|
||||||
|
ReferrerPolicy = Literal[
|
||||||
|
"",
|
||||||
|
"no-referrer",
|
||||||
|
"no-referrer-when-downgrade",
|
||||||
|
"origin",
|
||||||
|
"origin-when-cross-origin",
|
||||||
|
"same-origin",
|
||||||
|
"strict-origin",
|
||||||
|
"strict-origin-when-cross-origin",
|
||||||
|
"unsafe-url",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class A(BaseHTML): # Inherits common attributes from BaseMeta
|
class A(BaseHTML): # Inherits common attributes from BaseMeta
|
||||||
"""Display the 'a' element."""
|
"""Display the 'a' element."""
|
||||||
@ -13,31 +25,28 @@ class A(BaseHTML): # Inherits common attributes from BaseMeta
|
|||||||
tag = "a"
|
tag = "a"
|
||||||
|
|
||||||
# Specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.
|
# Specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.
|
||||||
download: Var[Union[str, int, bool]]
|
download: Var[Union[str, bool]]
|
||||||
|
|
||||||
# Specifies the URL of the page the link goes to
|
# Specifies the URL of the page the link goes to
|
||||||
href: Var[Union[str, int, bool]]
|
href: Var[str]
|
||||||
|
|
||||||
# Specifies the language of the linked document
|
# Specifies the language of the linked document
|
||||||
href_lang: Var[Union[str, int, bool]]
|
href_lang: Var[str]
|
||||||
|
|
||||||
# Specifies what media/device the linked document is optimized for
|
# Specifies what media/device the linked document is optimized for
|
||||||
media: Var[Union[str, int, bool]]
|
media: Var[str]
|
||||||
|
|
||||||
# Specifies which referrer is sent when fetching the resource
|
# Specifies which referrer is sent when fetching the resource
|
||||||
ping: Var[Union[str, int, bool]]
|
ping: Var[str]
|
||||||
|
|
||||||
# Specifies the relationship between the current document and the linked document
|
# Specifies the relationship between the current document and the linked document
|
||||||
referrer_policy: Var[Union[str, int, bool]]
|
referrer_policy: Var[ReferrerPolicy]
|
||||||
|
|
||||||
# Specifies the relationship between the linked document and the current document
|
# Specifies the relationship between the linked document and the current document
|
||||||
rel: Var[Union[str, int, bool]]
|
rel: Var[str]
|
||||||
|
|
||||||
# Specifies the shape of the area
|
|
||||||
shape: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Specifies where to open the linked document
|
# Specifies where to open the linked document
|
||||||
target: Var[Union[str, int, bool]]
|
target: Var[Union[str, Literal["_self", "_blank", "_parent", "_top"]]]
|
||||||
|
|
||||||
|
|
||||||
class Abbr(BaseHTML):
|
class Abbr(BaseHTML):
|
||||||
@ -88,7 +97,7 @@ class Data(BaseHTML):
|
|||||||
tag = "data"
|
tag = "data"
|
||||||
|
|
||||||
# Specifies the machine-readable translation of the data element.
|
# Specifies the machine-readable translation of the data element.
|
||||||
value: Var[Union[str, int, bool]]
|
value: Var[Union[str, int, float]]
|
||||||
|
|
||||||
|
|
||||||
class Dfn(BaseHTML):
|
class Dfn(BaseHTML):
|
||||||
@ -127,7 +136,7 @@ class Q(BaseHTML):
|
|||||||
tag = "q"
|
tag = "q"
|
||||||
|
|
||||||
# Specifies the source URL of the quote.
|
# Specifies the source URL of the quote.
|
||||||
cite: Var[Union[str, int, bool]]
|
cite: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Rp(BaseHTML):
|
class Rp(BaseHTML):
|
||||||
@ -196,7 +205,7 @@ class Time(BaseHTML):
|
|||||||
tag = "time"
|
tag = "time"
|
||||||
|
|
||||||
# Specifies the date and/or time of the element.
|
# Specifies the date and/or time of the element.
|
||||||
date_time: Var[Union[str, int, bool]]
|
date_time: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class U(BaseHTML):
|
class U(BaseHTML):
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,9 @@
|
|||||||
"""Media classes."""
|
"""Media classes."""
|
||||||
|
|
||||||
from typing import Any, Union
|
from typing import Any, Literal, Union
|
||||||
|
|
||||||
from reflex import Component, ComponentNamespace
|
from reflex import Component, ComponentNamespace
|
||||||
|
from reflex.components.el.elements.inline import ReferrerPolicy
|
||||||
from reflex.constants.colors import Color
|
from reflex.constants.colors import Color
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
@ -15,37 +16,37 @@ class Area(BaseHTML):
|
|||||||
tag = "area"
|
tag = "area"
|
||||||
|
|
||||||
# Alternate text for the area, used for accessibility
|
# Alternate text for the area, used for accessibility
|
||||||
alt: Var[Union[str, int, bool]]
|
alt: Var[str]
|
||||||
|
|
||||||
# Coordinates to define the shape of the area
|
# Coordinates to define the shape of the area
|
||||||
coords: Var[Union[str, int, bool]]
|
coords: Var[str]
|
||||||
|
|
||||||
# Specifies that the target will be downloaded when clicked
|
# Specifies that the target will be downloaded when clicked
|
||||||
download: Var[Union[str, int, bool]]
|
download: Var[Union[str, bool]]
|
||||||
|
|
||||||
# Hyperlink reference for the area
|
# Hyperlink reference for the area
|
||||||
href: Var[Union[str, int, bool]]
|
href: Var[str]
|
||||||
|
|
||||||
# Language of the linked resource
|
# Language of the linked resource
|
||||||
href_lang: Var[Union[str, int, bool]]
|
href_lang: Var[str]
|
||||||
|
|
||||||
# Specifies what media/device the linked resource is optimized for
|
# Specifies what media/device the linked resource is optimized for
|
||||||
media: Var[Union[str, int, bool]]
|
media: Var[str]
|
||||||
|
|
||||||
# A list of URLs to be notified if the user follows the hyperlink
|
|
||||||
ping: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Specifies which referrer information to send with the link
|
# Specifies which referrer information to send with the link
|
||||||
referrer_policy: Var[Union[str, int, bool]]
|
referrer_policy: Var[ReferrerPolicy]
|
||||||
|
|
||||||
# Specifies the relationship of the target object to the link object
|
# Specifies the relationship of the target object to the link object
|
||||||
rel: Var[Union[str, int, bool]]
|
rel: Var[str]
|
||||||
|
|
||||||
# Defines the shape of the area (rectangle, circle, polygon)
|
# Defines the shape of the area (rectangle, circle, polygon)
|
||||||
shape: Var[Union[str, int, bool]]
|
shape: Var[str]
|
||||||
|
|
||||||
# Specifies where to open the linked document
|
# Specifies where to open the linked document
|
||||||
target: Var[Union[str, int, bool]]
|
target: Var[str]
|
||||||
|
|
||||||
|
|
||||||
|
CrossOrigin = Literal["anonymous", "use-credentials", ""]
|
||||||
|
|
||||||
|
|
||||||
class Audio(BaseHTML):
|
class Audio(BaseHTML):
|
||||||
@ -54,28 +55,29 @@ class Audio(BaseHTML):
|
|||||||
tag = "audio"
|
tag = "audio"
|
||||||
|
|
||||||
# Specifies that the audio will start playing as soon as it is ready
|
# Specifies that the audio will start playing as soon as it is ready
|
||||||
auto_play: Var[Union[str, int, bool]]
|
auto_play: Var[bool]
|
||||||
|
|
||||||
# Represents the time range of the buffered media
|
|
||||||
buffered: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Displays the standard audio controls
|
# Displays the standard audio controls
|
||||||
controls: Var[Union[str, int, bool]]
|
controls: Var[bool]
|
||||||
|
|
||||||
# Configures the CORS requests for the element
|
# Configures the CORS requests for the element
|
||||||
cross_origin: Var[Union[str, int, bool]]
|
cross_origin: Var[CrossOrigin]
|
||||||
|
|
||||||
# Specifies that the audio will loop
|
# Specifies that the audio will loop
|
||||||
loop: Var[Union[str, int, bool]]
|
loop: Var[bool]
|
||||||
|
|
||||||
# Indicates whether the audio is muted by default
|
# Indicates whether the audio is muted by default
|
||||||
muted: Var[Union[str, int, bool]]
|
muted: Var[bool]
|
||||||
|
|
||||||
# Specifies how the audio file should be preloaded
|
# Specifies how the audio file should be preloaded
|
||||||
preload: Var[Union[str, int, bool]]
|
preload: Var[str]
|
||||||
|
|
||||||
# URL of the audio to play
|
# URL of the audio to play
|
||||||
src: Var[Union[str, int, bool]]
|
src: Var[str]
|
||||||
|
|
||||||
|
|
||||||
|
ImageDecoding = Literal["async", "auto", "sync"]
|
||||||
|
ImageLoading = Literal["eager", "lazy"]
|
||||||
|
|
||||||
|
|
||||||
class Img(BaseHTML):
|
class Img(BaseHTML):
|
||||||
@ -83,41 +85,32 @@ class Img(BaseHTML):
|
|||||||
|
|
||||||
tag = "img"
|
tag = "img"
|
||||||
|
|
||||||
# Image alignment with respect to its surrounding elements
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Alternative text for the image
|
# Alternative text for the image
|
||||||
alt: Var[Union[str, int, bool]]
|
alt: Var[str]
|
||||||
|
|
||||||
# Configures the CORS requests for the image
|
# Configures the CORS requests for the image
|
||||||
cross_origin: Var[Union[str, int, bool]]
|
cross_origin: Var[CrossOrigin]
|
||||||
|
|
||||||
# How the image should be decoded
|
# How the image should be decoded
|
||||||
decoding: Var[Union[str, int, bool]]
|
decoding: Var[ImageDecoding]
|
||||||
|
|
||||||
# Specifies an intrinsic size for the image
|
|
||||||
intrinsicsize: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Whether the image is a server-side image map
|
|
||||||
ismap: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Specifies the loading behavior of the image
|
# Specifies the loading behavior of the image
|
||||||
loading: Var[Union[str, int, bool]]
|
loading: Var[ImageLoading]
|
||||||
|
|
||||||
# Referrer policy for the image
|
# Referrer policy for the image
|
||||||
referrer_policy: Var[Union[str, int, bool]]
|
referrer_policy: Var[ReferrerPolicy]
|
||||||
|
|
||||||
# Sizes of the image for different layouts
|
# Sizes of the image for different layouts
|
||||||
sizes: Var[Union[str, int, bool]]
|
sizes: Var[str]
|
||||||
|
|
||||||
# URL of the image to display
|
# URL of the image to display
|
||||||
src: Var[Any]
|
src: Var[Any]
|
||||||
|
|
||||||
# A set of source sizes and URLs for responsive images
|
# A set of source sizes and URLs for responsive images
|
||||||
src_set: Var[Union[str, int, bool]]
|
src_set: Var[str]
|
||||||
|
|
||||||
# The name of the map to use with the image
|
# The name of the map to use with the image
|
||||||
use_map: Var[Union[str, int, bool]]
|
use_map: Var[str]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(cls, *children, **props) -> Component:
|
def create(cls, *children, **props) -> Component:
|
||||||
@ -143,7 +136,7 @@ class Map(BaseHTML):
|
|||||||
tag = "map"
|
tag = "map"
|
||||||
|
|
||||||
# Name of the map, referenced by the 'usemap' attribute in 'img' and 'object' elements
|
# Name of the map, referenced by the 'usemap' attribute in 'img' and 'object' elements
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Track(BaseHTML):
|
class Track(BaseHTML):
|
||||||
@ -152,19 +145,19 @@ class Track(BaseHTML):
|
|||||||
tag = "track"
|
tag = "track"
|
||||||
|
|
||||||
# Indicates that the track should be enabled unless the user's preferences indicate otherwise
|
# Indicates that the track should be enabled unless the user's preferences indicate otherwise
|
||||||
default: Var[Union[str, int, bool]]
|
default: Var[bool]
|
||||||
|
|
||||||
# Specifies the kind of text track
|
# Specifies the kind of text track
|
||||||
kind: Var[Union[str, int, bool]]
|
kind: Var[str]
|
||||||
|
|
||||||
# Title of the text track, used by the browser when listing available text tracks
|
# Title of the text track, used by the browser when listing available text tracks
|
||||||
label: Var[Union[str, int, bool]]
|
label: Var[str]
|
||||||
|
|
||||||
# URL of the track file
|
# URL of the track file
|
||||||
src: Var[Union[str, int, bool]]
|
src: Var[str]
|
||||||
|
|
||||||
# Language of the track text data
|
# Language of the track text data
|
||||||
src_lang: Var[Union[str, int, bool]]
|
src_lang: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Video(BaseHTML):
|
class Video(BaseHTML):
|
||||||
@ -173,34 +166,31 @@ class Video(BaseHTML):
|
|||||||
tag = "video"
|
tag = "video"
|
||||||
|
|
||||||
# Specifies that the video will start playing as soon as it is ready
|
# Specifies that the video will start playing as soon as it is ready
|
||||||
auto_play: Var[Union[str, int, bool]]
|
auto_play: Var[bool]
|
||||||
|
|
||||||
# Represents the time range of the buffered media
|
|
||||||
buffered: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Displays the standard video controls
|
# Displays the standard video controls
|
||||||
controls: Var[Union[str, int, bool]]
|
controls: Var[bool]
|
||||||
|
|
||||||
# Configures the CORS requests for the video
|
# Configures the CORS requests for the video
|
||||||
cross_origin: Var[Union[str, int, bool]]
|
cross_origin: Var[CrossOrigin]
|
||||||
|
|
||||||
# Specifies that the video will loop
|
# Specifies that the video will loop
|
||||||
loop: Var[Union[str, int, bool]]
|
loop: Var[bool]
|
||||||
|
|
||||||
# Indicates whether the video is muted by default
|
# Indicates whether the video is muted by default
|
||||||
muted: Var[Union[str, int, bool]]
|
muted: Var[bool]
|
||||||
|
|
||||||
# Indicates that the video should play 'inline', inside its element's playback area
|
# Indicates that the video should play 'inline', inside its element's playback area
|
||||||
plays_inline: Var[Union[str, int, bool]]
|
plays_inline: Var[bool]
|
||||||
|
|
||||||
# URL of an image to show while the video is downloading, or until the user hits the play button
|
# URL of an image to show while the video is downloading, or until the user hits the play button
|
||||||
poster: Var[Union[str, int, bool]]
|
poster: Var[str]
|
||||||
|
|
||||||
# Specifies how the video file should be preloaded
|
# Specifies how the video file should be preloaded
|
||||||
preload: Var[Union[str, int, bool]]
|
preload: Var[str]
|
||||||
|
|
||||||
# URL of the video to play
|
# URL of the video to play
|
||||||
src: Var[Union[str, int, bool]]
|
src: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Embed(BaseHTML):
|
class Embed(BaseHTML):
|
||||||
@ -209,10 +199,10 @@ class Embed(BaseHTML):
|
|||||||
tag = "embed"
|
tag = "embed"
|
||||||
|
|
||||||
# URL of the embedded content
|
# URL of the embedded content
|
||||||
src: Var[Union[str, int, bool]]
|
src: Var[str]
|
||||||
|
|
||||||
# Media type of the embedded content
|
# Media type of the embedded content
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Iframe(BaseHTML):
|
class Iframe(BaseHTML):
|
||||||
@ -220,32 +210,26 @@ class Iframe(BaseHTML):
|
|||||||
|
|
||||||
tag = "iframe"
|
tag = "iframe"
|
||||||
|
|
||||||
# Alignment of the iframe within the page or surrounding elements
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Permissions policy for the iframe
|
# Permissions policy for the iframe
|
||||||
allow: Var[Union[str, int, bool]]
|
allow: Var[str]
|
||||||
|
|
||||||
# Content Security Policy to apply to the iframe's content
|
|
||||||
csp: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Specifies the loading behavior of the iframe
|
# Specifies the loading behavior of the iframe
|
||||||
loading: Var[Union[str, int, bool]]
|
loading: Var[Literal["eager", "lazy"]]
|
||||||
|
|
||||||
# Name of the iframe, used as a target for hyperlinks and forms
|
# Name of the iframe, used as a target for hyperlinks and forms
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
# Referrer policy for the iframe
|
# Referrer policy for the iframe
|
||||||
referrer_policy: Var[Union[str, int, bool]]
|
referrer_policy: Var[ReferrerPolicy]
|
||||||
|
|
||||||
# Security restrictions for the content in the iframe
|
# Security restrictions for the content in the iframe
|
||||||
sandbox: Var[Union[str, int, bool]]
|
sandbox: Var[str]
|
||||||
|
|
||||||
# URL of the document to display in the iframe
|
# URL of the document to display in the iframe
|
||||||
src: Var[Union[str, int, bool]]
|
src: Var[str]
|
||||||
|
|
||||||
# HTML content to embed directly within the iframe
|
# HTML content to embed directly within the iframe
|
||||||
src_doc: Var[Union[str, int, bool]]
|
src_doc: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Object(BaseHTML):
|
class Object(BaseHTML):
|
||||||
@ -254,19 +238,19 @@ class Object(BaseHTML):
|
|||||||
tag = "object"
|
tag = "object"
|
||||||
|
|
||||||
# URL of the data to be used by the object
|
# URL of the data to be used by the object
|
||||||
data: Var[Union[str, int, bool]]
|
data: Var[str]
|
||||||
|
|
||||||
# Associates the object with a form element
|
# Associates the object with a form element
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# Name of the object, used for scripting or as a target for forms and links
|
# Name of the object, used for scripting or as a target for forms and links
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
# Media type of the data specified in the data attribute
|
# Media type of the data specified in the data attribute
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[str]
|
||||||
|
|
||||||
# Name of an image map to use with the object
|
# Name of an image map to use with the object
|
||||||
use_map: Var[Union[str, int, bool]]
|
use_map: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Picture(BaseHTML):
|
class Picture(BaseHTML):
|
||||||
@ -287,19 +271,19 @@ class Source(BaseHTML):
|
|||||||
tag = "source"
|
tag = "source"
|
||||||
|
|
||||||
# Media query indicating what device the linked resource is optimized for
|
# Media query indicating what device the linked resource is optimized for
|
||||||
media: Var[Union[str, int, bool]]
|
media: Var[str]
|
||||||
|
|
||||||
# Sizes of the source for different layouts
|
# Sizes of the source for different layouts
|
||||||
sizes: Var[Union[str, int, bool]]
|
sizes: Var[str]
|
||||||
|
|
||||||
# URL of the media file or an image for the element to use
|
# URL of the media file or an image for the element to use
|
||||||
src: Var[Union[str, int, bool]]
|
src: Var[str]
|
||||||
|
|
||||||
# A set of source sizes and URLs for responsive images
|
# A set of source sizes and URLs for responsive images
|
||||||
src_set: Var[Union[str, int, bool]]
|
src_set: Var[str]
|
||||||
|
|
||||||
# Media type of the source
|
# Media type of the source
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Svg(BaseHTML):
|
class Svg(BaseHTML):
|
||||||
@ -431,16 +415,16 @@ class LinearGradient(BaseHTML):
|
|||||||
spread_method: Var[Union[str, bool]]
|
spread_method: Var[Union[str, bool]]
|
||||||
|
|
||||||
# X coordinate of the starting point of the gradient.
|
# X coordinate of the starting point of the gradient.
|
||||||
x1: Var[Union[str, int, bool]]
|
x1: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# X coordinate of the ending point of the gradient.
|
# X coordinate of the ending point of the gradient.
|
||||||
x2: Var[Union[str, int, bool]]
|
x2: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Y coordinate of the starting point of the gradient.
|
# Y coordinate of the starting point of the gradient.
|
||||||
y1: Var[Union[str, int, bool]]
|
y1: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Y coordinate of the ending point of the gradient.
|
# Y coordinate of the ending point of the gradient.
|
||||||
y2: Var[Union[str, int, bool]]
|
y2: Var[Union[str, int, float]]
|
||||||
|
|
||||||
|
|
||||||
class RadialGradient(BaseHTML):
|
class RadialGradient(BaseHTML):
|
||||||
@ -449,19 +433,19 @@ class RadialGradient(BaseHTML):
|
|||||||
tag = "radialGradient"
|
tag = "radialGradient"
|
||||||
|
|
||||||
# The x coordinate of the end circle of the radial gradient.
|
# The x coordinate of the end circle of the radial gradient.
|
||||||
cx: Var[Union[str, int, bool]]
|
cx: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# The y coordinate of the end circle of the radial gradient.
|
# The y coordinate of the end circle of the radial gradient.
|
||||||
cy: Var[Union[str, int, bool]]
|
cy: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# The radius of the start circle of the radial gradient.
|
# The radius of the start circle of the radial gradient.
|
||||||
fr: Var[Union[str, int, bool]]
|
fr: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# The x coordinate of the start circle of the radial gradient.
|
# The x coordinate of the start circle of the radial gradient.
|
||||||
fx: Var[Union[str, int, bool]]
|
fx: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# The y coordinate of the start circle of the radial gradient.
|
# The y coordinate of the start circle of the radial gradient.
|
||||||
fy: Var[Union[str, int, bool]]
|
fy: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Units for the gradient.
|
# Units for the gradient.
|
||||||
gradient_units: Var[Union[str, bool]]
|
gradient_units: Var[Union[str, bool]]
|
||||||
@ -470,7 +454,7 @@ class RadialGradient(BaseHTML):
|
|||||||
gradient_transform: Var[Union[str, bool]]
|
gradient_transform: Var[Union[str, bool]]
|
||||||
|
|
||||||
# The radius of the end circle of the radial gradient.
|
# The radius of the end circle of the radial gradient.
|
||||||
r: Var[Union[str, int, bool]]
|
r: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Method used to spread the gradient.
|
# Method used to spread the gradient.
|
||||||
spread_method: Var[Union[str, bool]]
|
spread_method: Var[Union[str, bool]]
|
||||||
@ -497,7 +481,7 @@ class Path(BaseHTML):
|
|||||||
tag = "path"
|
tag = "path"
|
||||||
|
|
||||||
# Defines the shape of the path.
|
# Defines the shape of the path.
|
||||||
d: Var[Union[str, int, bool]]
|
d: Var[Union[str, int, float]]
|
||||||
|
|
||||||
|
|
||||||
class SVG(ComponentNamespace):
|
class SVG(ComponentNamespace):
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,10 @@
|
|||||||
"""Metadata classes."""
|
"""Metadata classes."""
|
||||||
|
|
||||||
from typing import List, Union
|
from typing import List
|
||||||
|
|
||||||
from reflex.components.el.element import Element
|
from reflex.components.el.element import Element
|
||||||
|
from reflex.components.el.elements.inline import ReferrerPolicy
|
||||||
|
from reflex.components.el.elements.media import CrossOrigin
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
from .base import BaseHTML
|
from .base import BaseHTML
|
||||||
@ -14,8 +16,8 @@ class Base(BaseHTML):
|
|||||||
tag = "base"
|
tag = "base"
|
||||||
|
|
||||||
tag = "base"
|
tag = "base"
|
||||||
href: Var[Union[str, int, bool]]
|
href: Var[str]
|
||||||
target: Var[Union[str, int, bool]]
|
target: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Head(BaseHTML):
|
class Head(BaseHTML):
|
||||||
@ -30,31 +32,31 @@ class Link(BaseHTML):
|
|||||||
tag = "link"
|
tag = "link"
|
||||||
|
|
||||||
# Specifies the CORS settings for the linked resource
|
# Specifies the CORS settings for the linked resource
|
||||||
cross_origin: Var[Union[str, int, bool]]
|
cross_origin: Var[CrossOrigin]
|
||||||
|
|
||||||
# Specifies the URL of the linked document/resource
|
# Specifies the URL of the linked document/resource
|
||||||
href: Var[Union[str, int, bool]]
|
href: Var[str]
|
||||||
|
|
||||||
# Specifies the language of the text in the linked document
|
# Specifies the language of the text in the linked document
|
||||||
href_lang: Var[Union[str, int, bool]]
|
href_lang: Var[str]
|
||||||
|
|
||||||
# Allows a browser to check the fetched link for integrity
|
# Allows a browser to check the fetched link for integrity
|
||||||
integrity: Var[Union[str, int, bool]]
|
integrity: Var[str]
|
||||||
|
|
||||||
# Specifies on what device the linked document will be displayed
|
# Specifies on what device the linked document will be displayed
|
||||||
media: Var[Union[str, int, bool]]
|
media: Var[str]
|
||||||
|
|
||||||
# Specifies the referrer policy of the linked document
|
# Specifies the referrer policy of the linked document
|
||||||
referrer_policy: Var[Union[str, int, bool]]
|
referrer_policy: Var[ReferrerPolicy]
|
||||||
|
|
||||||
# Specifies the relationship between the current document and the linked one
|
# Specifies the relationship between the current document and the linked one
|
||||||
rel: Var[Union[str, int, bool]]
|
rel: Var[str]
|
||||||
|
|
||||||
# Specifies the sizes of icons for visual media
|
# Specifies the sizes of icons for visual media
|
||||||
sizes: Var[Union[str, int, bool]]
|
sizes: Var[str]
|
||||||
|
|
||||||
# Specifies the MIME type of the linked document
|
# Specifies the MIME type of the linked document
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Meta(BaseHTML): # Inherits common attributes from BaseHTML
|
class Meta(BaseHTML): # Inherits common attributes from BaseHTML
|
||||||
@ -63,16 +65,16 @@ class Meta(BaseHTML): # Inherits common attributes from BaseHTML
|
|||||||
tag = "meta" # The HTML tag for this element is <meta>
|
tag = "meta" # The HTML tag for this element is <meta>
|
||||||
|
|
||||||
# Specifies the character encoding for the HTML document
|
# Specifies the character encoding for the HTML document
|
||||||
char_set: Var[Union[str, int, bool]]
|
char_set: Var[str]
|
||||||
|
|
||||||
# Defines the content of the metadata
|
# Defines the content of the metadata
|
||||||
content: Var[Union[str, int, bool]]
|
content: Var[str]
|
||||||
|
|
||||||
# Provides an HTTP header for the information/value of the content attribute
|
# Provides an HTTP header for the information/value of the content attribute
|
||||||
http_equiv: Var[Union[str, int, bool]]
|
http_equiv: Var[str]
|
||||||
|
|
||||||
# Specifies a name for the metadata
|
# Specifies a name for the metadata
|
||||||
name: Var[Union[str, int, bool]]
|
name: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Title(Element):
|
class Title(Element):
|
||||||
@ -87,7 +89,7 @@ class StyleEl(Element):
|
|||||||
|
|
||||||
tag = "style"
|
tag = "style"
|
||||||
|
|
||||||
media: Var[Union[str, int, bool]]
|
media: Var[str]
|
||||||
|
|
||||||
special_props: List[Var] = [Var(_js_expr="suppressHydrationWarning")]
|
special_props: List[Var] = [Var(_js_expr="suppressHydrationWarning")]
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# ------------------- DO NOT EDIT ----------------------
|
# ------------------- DO NOT EDIT ----------------------
|
||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from typing import Any, Dict, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.el.element import Element
|
from reflex.components.el.element import Element
|
||||||
from reflex.event import EventType
|
from reflex.event import EventType
|
||||||
@ -18,32 +18,213 @@ class Base(BaseHTML):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
href: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
href: Optional[Union[Var[str], str]] = None,
|
||||||
target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
target: Optional[Union[Var[str], str]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -106,30 +287,211 @@ class Head(BaseHTML):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -193,42 +555,251 @@ class Link(BaseHTML):
|
|||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
cross_origin: Optional[
|
cross_origin: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["", "anonymous", "use-credentials"],
|
||||||
|
Var[Literal["", "anonymous", "use-credentials"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
href: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
href: Optional[Union[Var[str], str]] = None,
|
||||||
href_lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
href_lang: Optional[Union[Var[str], str]] = None,
|
||||||
integrity: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
integrity: Optional[Union[Var[str], str]] = None,
|
||||||
media: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
media: Optional[Union[Var[str], str]] = None,
|
||||||
referrer_policy: Optional[
|
referrer_policy: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal[
|
||||||
|
"",
|
||||||
|
"no-referrer",
|
||||||
|
"no-referrer-when-downgrade",
|
||||||
|
"origin",
|
||||||
|
"origin-when-cross-origin",
|
||||||
|
"same-origin",
|
||||||
|
"strict-origin",
|
||||||
|
"strict-origin-when-cross-origin",
|
||||||
|
"unsafe-url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"",
|
||||||
|
"no-referrer",
|
||||||
|
"no-referrer-when-downgrade",
|
||||||
|
"origin",
|
||||||
|
"origin-when-cross-origin",
|
||||||
|
"same-origin",
|
||||||
|
"strict-origin",
|
||||||
|
"strict-origin-when-cross-origin",
|
||||||
|
"unsafe-url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
rel: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
rel: Optional[Union[Var[str], str]] = None,
|
||||||
sizes: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
sizes: Optional[Union[Var[str], str]] = None,
|
||||||
type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
type: Optional[Union[Var[str], str]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -300,34 +871,215 @@ class Meta(BaseHTML):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
char_set: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
char_set: Optional[Union[Var[str], str]] = None,
|
||||||
content: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
content: Optional[Union[Var[str], str]] = None,
|
||||||
http_equiv: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
http_equiv: Optional[Union[Var[str], str]] = None,
|
||||||
name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -440,7 +1192,7 @@ class StyleEl(Element):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
media: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
media: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
"""Other classes."""
|
"""Other classes."""
|
||||||
|
|
||||||
from typing import Union
|
|
||||||
|
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
from .base import BaseHTML
|
from .base import BaseHTML
|
||||||
@ -13,7 +11,7 @@ class Details(BaseHTML):
|
|||||||
tag = "details"
|
tag = "details"
|
||||||
|
|
||||||
# Indicates whether the details will be visible (expanded) to the user
|
# Indicates whether the details will be visible (expanded) to the user
|
||||||
open: Var[Union[str, int, bool]]
|
open: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class Dialog(BaseHTML):
|
class Dialog(BaseHTML):
|
||||||
@ -22,7 +20,7 @@ class Dialog(BaseHTML):
|
|||||||
tag = "dialog"
|
tag = "dialog"
|
||||||
|
|
||||||
# Indicates whether the dialog is active and can be interacted with
|
# Indicates whether the dialog is active and can be interacted with
|
||||||
open: Var[Union[str, int, bool]]
|
open: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class Summary(BaseHTML):
|
class Summary(BaseHTML):
|
||||||
@ -67,7 +65,7 @@ class Html(BaseHTML):
|
|||||||
tag = "html"
|
tag = "html"
|
||||||
|
|
||||||
# Specifies the URL of the document's cache manifest (obsolete in HTML5)
|
# Specifies the URL of the document's cache manifest (obsolete in HTML5)
|
||||||
manifest: Var[Union[str, int, bool]]
|
manifest: Var[str]
|
||||||
|
|
||||||
|
|
||||||
details = Details.create
|
details = Details.create
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
"""Scripts classes."""
|
"""Scripts classes."""
|
||||||
|
|
||||||
from typing import Union
|
from reflex.components.el.elements.inline import ReferrerPolicy
|
||||||
|
from reflex.components.el.elements.media import CrossOrigin
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
from .base import BaseHTML
|
from .base import BaseHTML
|
||||||
@ -25,31 +25,28 @@ class Script(BaseHTML):
|
|||||||
tag = "script"
|
tag = "script"
|
||||||
|
|
||||||
# Indicates that the script should be executed asynchronously
|
# Indicates that the script should be executed asynchronously
|
||||||
async_: Var[Union[str, int, bool]]
|
async_: Var[bool]
|
||||||
|
|
||||||
# Character encoding of the external script
|
# Character encoding of the external script
|
||||||
char_set: Var[Union[str, int, bool]]
|
char_set: Var[str]
|
||||||
|
|
||||||
# Configures the CORS requests for the script
|
# Configures the CORS requests for the script
|
||||||
cross_origin: Var[Union[str, int, bool]]
|
cross_origin: Var[CrossOrigin]
|
||||||
|
|
||||||
# Indicates that the script should be executed after the page has finished parsing
|
# Indicates that the script should be executed after the page has finished parsing
|
||||||
defer: Var[Union[str, int, bool]]
|
defer: Var[bool]
|
||||||
|
|
||||||
# Security feature allowing browsers to verify what they fetch
|
# Security feature allowing browsers to verify what they fetch
|
||||||
integrity: Var[Union[str, int, bool]]
|
integrity: Var[str]
|
||||||
|
|
||||||
# Specifies the scripting language used in the type attribute
|
|
||||||
language: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Specifies which referrer information to send when fetching the script
|
# Specifies which referrer information to send when fetching the script
|
||||||
referrer_policy: Var[Union[str, int, bool]]
|
referrer_policy: Var[ReferrerPolicy]
|
||||||
|
|
||||||
# URL of an external script
|
# URL of an external script
|
||||||
src: Var[Union[str, int, bool]]
|
src: Var[str]
|
||||||
|
|
||||||
# Specifies the MIME type of the script
|
# Specifies the MIME type of the script
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[str]
|
||||||
|
|
||||||
|
|
||||||
canvas = Canvas.create
|
canvas = Canvas.create
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# ------------------- DO NOT EDIT ----------------------
|
# ------------------- DO NOT EDIT ----------------------
|
||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from typing import Any, Dict, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.event import EventType
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
@ -17,30 +17,211 @@ class Canvas(BaseHTML):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -103,30 +284,211 @@ class Noscript(BaseHTML):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -189,43 +551,251 @@ class Script(BaseHTML):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
async_: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
async_: Optional[Union[Var[bool], bool]] = None,
|
||||||
char_set: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
char_set: Optional[Union[Var[str], str]] = None,
|
||||||
cross_origin: Optional[
|
cross_origin: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["", "anonymous", "use-credentials"],
|
||||||
|
Var[Literal["", "anonymous", "use-credentials"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
defer: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
defer: Optional[Union[Var[bool], bool]] = None,
|
||||||
integrity: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
integrity: Optional[Union[Var[str], str]] = None,
|
||||||
language: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
referrer_policy: Optional[
|
referrer_policy: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal[
|
||||||
|
"",
|
||||||
|
"no-referrer",
|
||||||
|
"no-referrer-when-downgrade",
|
||||||
|
"origin",
|
||||||
|
"origin-when-cross-origin",
|
||||||
|
"same-origin",
|
||||||
|
"strict-origin",
|
||||||
|
"strict-origin-when-cross-origin",
|
||||||
|
"unsafe-url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"",
|
||||||
|
"no-referrer",
|
||||||
|
"no-referrer-when-downgrade",
|
||||||
|
"origin",
|
||||||
|
"origin-when-cross-origin",
|
||||||
|
"same-origin",
|
||||||
|
"strict-origin",
|
||||||
|
"strict-origin-when-cross-origin",
|
||||||
|
"unsafe-url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
src: Optional[Union[Var[str], str]] = None,
|
||||||
type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
type: Optional[Union[Var[str], str]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -258,7 +828,6 @@ class Script(BaseHTML):
|
|||||||
cross_origin: Configures the CORS requests for the script
|
cross_origin: Configures the CORS requests for the script
|
||||||
defer: Indicates that the script should be executed after the page has finished parsing
|
defer: Indicates that the script should be executed after the page has finished parsing
|
||||||
integrity: Security feature allowing browsers to verify what they fetch
|
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
|
referrer_policy: Specifies which referrer information to send when fetching the script
|
||||||
src: URL of an external script
|
src: URL of an external script
|
||||||
type: Specifies the MIME type of the script
|
type: Specifies the MIME type of the script
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
"""Tables classes."""
|
"""Tables classes."""
|
||||||
|
|
||||||
from typing import Union
|
from typing import Literal
|
||||||
|
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
@ -12,20 +12,14 @@ class Caption(BaseHTML):
|
|||||||
|
|
||||||
tag = "caption"
|
tag = "caption"
|
||||||
|
|
||||||
# Alignment of the caption
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
|
|
||||||
class Col(BaseHTML):
|
class Col(BaseHTML):
|
||||||
"""Display the col element."""
|
"""Display the col element."""
|
||||||
|
|
||||||
tag = "col"
|
tag = "col"
|
||||||
|
|
||||||
# Alignment of the content within the column
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Number of columns the col element spans
|
# Number of columns the col element spans
|
||||||
span: Var[Union[str, int, bool]]
|
span: Var[int]
|
||||||
|
|
||||||
|
|
||||||
class Colgroup(BaseHTML):
|
class Colgroup(BaseHTML):
|
||||||
@ -33,11 +27,8 @@ class Colgroup(BaseHTML):
|
|||||||
|
|
||||||
tag = "colgroup"
|
tag = "colgroup"
|
||||||
|
|
||||||
# Alignment of the content within the column group
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
# Number of columns the colgroup element spans
|
# Number of columns the colgroup element spans
|
||||||
span: Var[Union[str, int, bool]]
|
span: Var[int]
|
||||||
|
|
||||||
|
|
||||||
class Table(BaseHTML):
|
class Table(BaseHTML):
|
||||||
@ -46,10 +37,10 @@ class Table(BaseHTML):
|
|||||||
tag = "table"
|
tag = "table"
|
||||||
|
|
||||||
# Alignment of the table
|
# Alignment of the table
|
||||||
align: Var[Union[str, int, bool]]
|
align: Var[Literal["left", "center", "right"]]
|
||||||
|
|
||||||
# Provides a summary of the table's purpose and structure
|
# Provides a summary of the table's purpose and structure
|
||||||
summary: Var[Union[str, int, bool]]
|
summary: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Tbody(BaseHTML):
|
class Tbody(BaseHTML):
|
||||||
@ -57,9 +48,6 @@ class Tbody(BaseHTML):
|
|||||||
|
|
||||||
tag = "tbody"
|
tag = "tbody"
|
||||||
|
|
||||||
# Alignment of the content within the table body
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
|
|
||||||
class Td(BaseHTML):
|
class Td(BaseHTML):
|
||||||
"""Display the td element."""
|
"""Display the td element."""
|
||||||
@ -67,16 +55,16 @@ class Td(BaseHTML):
|
|||||||
tag = "td"
|
tag = "td"
|
||||||
|
|
||||||
# Alignment of the content within the table cell
|
# Alignment of the content within the table cell
|
||||||
align: Var[Union[str, int, bool]]
|
align: Var[Literal["left", "center", "right", "justify", "char"]]
|
||||||
|
|
||||||
# Number of columns a cell should span
|
# Number of columns a cell should span
|
||||||
col_span: Var[Union[str, int, bool]]
|
col_span: Var[int]
|
||||||
|
|
||||||
# IDs of the headers associated with this cell
|
# IDs of the headers associated with this cell
|
||||||
headers: Var[Union[str, int, bool]]
|
headers: Var[str]
|
||||||
|
|
||||||
# Number of rows a cell should span
|
# Number of rows a cell should span
|
||||||
row_span: Var[Union[str, int, bool]]
|
row_span: Var[int]
|
||||||
|
|
||||||
|
|
||||||
class Tfoot(BaseHTML):
|
class Tfoot(BaseHTML):
|
||||||
@ -84,9 +72,6 @@ class Tfoot(BaseHTML):
|
|||||||
|
|
||||||
tag = "tfoot"
|
tag = "tfoot"
|
||||||
|
|
||||||
# Alignment of the content within the table footer
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
|
|
||||||
class Th(BaseHTML):
|
class Th(BaseHTML):
|
||||||
"""Display the th element."""
|
"""Display the th element."""
|
||||||
@ -94,19 +79,19 @@ class Th(BaseHTML):
|
|||||||
tag = "th"
|
tag = "th"
|
||||||
|
|
||||||
# Alignment of the content within the table header cell
|
# Alignment of the content within the table header cell
|
||||||
align: Var[Union[str, int, bool]]
|
align: Var[Literal["left", "center", "right", "justify", "char"]]
|
||||||
|
|
||||||
# Number of columns a header cell should span
|
# Number of columns a header cell should span
|
||||||
col_span: Var[Union[str, int, bool]]
|
col_span: Var[int]
|
||||||
|
|
||||||
# IDs of the headers associated with this header cell
|
# IDs of the headers associated with this header cell
|
||||||
headers: Var[Union[str, int, bool]]
|
headers: Var[str]
|
||||||
|
|
||||||
# Number of rows a header cell should span
|
# Number of rows a header cell should span
|
||||||
row_span: Var[Union[str, int, bool]]
|
row_span: Var[int]
|
||||||
|
|
||||||
# Scope of the header cell (row, col, rowgroup, colgroup)
|
# Scope of the header cell (row, col, rowgroup, colgroup)
|
||||||
scope: Var[Union[str, int, bool]]
|
scope: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Thead(BaseHTML):
|
class Thead(BaseHTML):
|
||||||
@ -114,18 +99,12 @@ class Thead(BaseHTML):
|
|||||||
|
|
||||||
tag = "thead"
|
tag = "thead"
|
||||||
|
|
||||||
# Alignment of the content within the table header
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
|
|
||||||
class Tr(BaseHTML):
|
class Tr(BaseHTML):
|
||||||
"""Display the tr element."""
|
"""Display the tr element."""
|
||||||
|
|
||||||
tag = "tr"
|
tag = "tr"
|
||||||
|
|
||||||
# Alignment of the content within the table row
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
|
|
||||||
caption = Caption.create
|
caption = Caption.create
|
||||||
col = Col.create
|
col = Col.create
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
"""Typography classes."""
|
"""Typography classes."""
|
||||||
|
|
||||||
from typing import Union
|
from typing import Literal
|
||||||
|
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ class Blockquote(BaseHTML):
|
|||||||
tag = "blockquote"
|
tag = "blockquote"
|
||||||
|
|
||||||
# Define the title of a work.
|
# Define the title of a work.
|
||||||
cite: Var[Union[str, int, bool]]
|
cite: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Dd(BaseHTML):
|
class Dd(BaseHTML):
|
||||||
@ -51,9 +51,6 @@ class Hr(BaseHTML):
|
|||||||
|
|
||||||
tag = "hr"
|
tag = "hr"
|
||||||
|
|
||||||
# Used to specify the alignment of text content of The Element. this attribute is used in all elements.
|
|
||||||
align: Var[Union[str, int, bool]]
|
|
||||||
|
|
||||||
|
|
||||||
class Li(BaseHTML):
|
class Li(BaseHTML):
|
||||||
"""Display the li element."""
|
"""Display the li element."""
|
||||||
@ -67,7 +64,7 @@ class Menu(BaseHTML):
|
|||||||
tag = "menu"
|
tag = "menu"
|
||||||
|
|
||||||
# Specifies that the menu element is a context menu.
|
# Specifies that the menu element is a context menu.
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Ol(BaseHTML):
|
class Ol(BaseHTML):
|
||||||
@ -76,13 +73,13 @@ class Ol(BaseHTML):
|
|||||||
tag = "ol"
|
tag = "ol"
|
||||||
|
|
||||||
# Reverses the order of the list.
|
# Reverses the order of the list.
|
||||||
reversed: Var[Union[str, int, bool]]
|
reversed: Var[bool]
|
||||||
|
|
||||||
# Specifies the start value of the first list item in an ordered list.
|
# Specifies the start value of the first list item in an ordered list.
|
||||||
start: Var[Union[str, int, bool]]
|
start: Var[int]
|
||||||
|
|
||||||
# Specifies the kind of marker to use in the list (letters or numbers).
|
# Specifies the kind of marker to use in the list (letters or numbers).
|
||||||
type: Var[Union[str, int, bool]]
|
type: Var[Literal["1", "a", "A", "i", "I"]]
|
||||||
|
|
||||||
|
|
||||||
class P(BaseHTML):
|
class P(BaseHTML):
|
||||||
@ -109,10 +106,10 @@ class Ins(BaseHTML):
|
|||||||
tag = "ins"
|
tag = "ins"
|
||||||
|
|
||||||
# Specifies the URL of the document that explains the reason why the text was inserted/changed.
|
# Specifies the URL of the document that explains the reason why the text was inserted/changed.
|
||||||
cite: Var[Union[str, int, bool]]
|
cite: Var[str]
|
||||||
|
|
||||||
# Specifies the date and time of when the text was inserted/changed.
|
# Specifies the date and time of when the text was inserted/changed.
|
||||||
date_time: Var[Union[str, int, bool]]
|
date_time: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class Del(BaseHTML):
|
class Del(BaseHTML):
|
||||||
@ -121,10 +118,10 @@ class Del(BaseHTML):
|
|||||||
tag = "del"
|
tag = "del"
|
||||||
|
|
||||||
# Specifies the URL of the document that explains the reason why the text was deleted.
|
# Specifies the URL of the document that explains the reason why the text was deleted.
|
||||||
cite: Var[Union[str, int, bool]]
|
cite: Var[str]
|
||||||
|
|
||||||
# Specifies the date and time of when the text was deleted.
|
# Specifies the date and time of when the text was deleted.
|
||||||
date_time: Var[Union[str, int, bool]]
|
date_time: Var[str]
|
||||||
|
|
||||||
|
|
||||||
blockquote = Blockquote.create
|
blockquote = Blockquote.create
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any, Dict, List, Tuple, Union
|
from typing import Any, Dict, List, Tuple, TypedDict, TypeVar, Union
|
||||||
|
|
||||||
from typing_extensions import TypedDict, TypeVar
|
|
||||||
|
|
||||||
from reflex.components.component import Component, NoSSRComponent
|
from reflex.components.component import Component, NoSSRComponent
|
||||||
from reflex.components.core.cond import color_mode_cond
|
from reflex.components.core.cond import color_mode_cond
|
||||||
|
@ -3,9 +3,7 @@
|
|||||||
# ------------------- DO NOT EDIT ----------------------
|
# ------------------- DO NOT EDIT ----------------------
|
||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from typing import Any, Dict, List, Optional, Union, overload
|
from typing import Any, Dict, List, Optional, TypedDict, TypeVar, Union, overload
|
||||||
|
|
||||||
from typing_extensions import TypedDict, TypeVar
|
|
||||||
|
|
||||||
from reflex.components.component import NoSSRComponent
|
from reflex.components.component import NoSSRComponent
|
||||||
from reflex.event import EventType
|
from reflex.event import EventType
|
||||||
|
@ -69,45 +69,222 @@ class FormRoot(FormComponent, HTMLForm):
|
|||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||||
accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
accept: Optional[Union[Var[str], str]] = None,
|
||||||
accept_charset: Optional[
|
accept_charset: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
action: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
auto_complete: Optional[Union[Var[str], str]] = None,
|
||||||
action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
enc_type: Optional[Union[Var[str], str]] = None,
|
||||||
auto_complete: Optional[
|
method: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
no_validate: Optional[Union[Var[bool], bool]] = None,
|
||||||
enc_type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
target: Optional[Union[Var[str], str]] = None,
|
||||||
method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
no_validate: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
||||||
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -541,45 +718,222 @@ class Form(FormRoot):
|
|||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||||
accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
accept: Optional[Union[Var[str], str]] = None,
|
||||||
accept_charset: Optional[
|
accept_charset: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
action: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
auto_complete: Optional[Union[Var[str], str]] = None,
|
||||||
action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
enc_type: Optional[Union[Var[str], str]] = None,
|
||||||
auto_complete: Optional[
|
method: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
no_validate: Optional[Union[Var[bool], bool]] = None,
|
||||||
enc_type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
target: Optional[Union[Var[str], str]] = None,
|
||||||
method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
no_validate: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
||||||
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -670,45 +1024,222 @@ class FormNamespace(ComponentNamespace):
|
|||||||
def __call__(
|
def __call__(
|
||||||
*children,
|
*children,
|
||||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||||
accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
accept: Optional[Union[Var[str], str]] = None,
|
||||||
accept_charset: Optional[
|
accept_charset: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
action: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
auto_complete: Optional[Union[Var[str], str]] = None,
|
||||||
action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
enc_type: Optional[Union[Var[str], str]] = None,
|
||||||
auto_complete: Optional[
|
method: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
no_validate: Optional[Union[Var[bool], bool]] = None,
|
||||||
enc_type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
target: Optional[Union[Var[str], str]] = None,
|
||||||
method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
no_validate: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
||||||
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -172,45 +172,227 @@ class ColorModeIconButton(IconButton):
|
|||||||
Var[Literal["full", "large", "medium", "none", "small"]],
|
Var[Literal["full", "large", "medium", "none", "small"]],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
auto_focus: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
auto_focus: Optional[Union[Var[bool], bool]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form: Optional[Union[Var[str], str]] = None,
|
||||||
form_action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form_action: Optional[Union[Var[str], str]] = None,
|
||||||
form_enc_type: Optional[
|
form_enc_type: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
form_method: Optional[Union[Var[str], str]] = None,
|
||||||
|
form_no_validate: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
form_target: Optional[Union[Var[str], str]] = None,
|
||||||
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
|
type: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["button", "reset", "submit"],
|
||||||
|
Var[Literal["button", "reset", "submit"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
form_method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
form_no_validate: Optional[
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
|
||||||
] = None,
|
|
||||||
form_target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
value: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
loading: Optional[Union[Var[bool], bool]] = None,
|
loading: Optional[Union[Var[bool], bool]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
|
@ -130,30 +130,211 @@ class AlertDialogContent(elements.Div, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
force_mount: Optional[Union[Var[bool], bool]] = None,
|
force_mount: Optional[Union[Var[bool], bool]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -105,30 +105,211 @@ class Badge(elements.Span, RadixThemesComponent):
|
|||||||
Var[Literal["full", "large", "medium", "none", "small"]],
|
Var[Literal["full", "large", "medium", "none", "small"]],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -109,45 +109,227 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|||||||
Var[Literal["full", "large", "medium", "none", "small"]],
|
Var[Literal["full", "large", "medium", "none", "small"]],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
auto_focus: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
auto_focus: Optional[Union[Var[bool], bool]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form: Optional[Union[Var[str], str]] = None,
|
||||||
form_action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form_action: Optional[Union[Var[str], str]] = None,
|
||||||
form_enc_type: Optional[
|
form_enc_type: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
form_method: Optional[Union[Var[str], str]] = None,
|
||||||
|
form_no_validate: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
form_target: Optional[Union[Var[str], str]] = None,
|
||||||
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
|
type: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["button", "reset", "submit"],
|
||||||
|
Var[Literal["button", "reset", "submit"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
form_method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
form_no_validate: Optional[
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
|
||||||
] = None,
|
|
||||||
form_target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
value: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
loading: Optional[Union[Var[bool], bool]] = None,
|
loading: Optional[Union[Var[bool], bool]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -38,30 +38,211 @@ class Card(elements.Div, RadixThemesComponent):
|
|||||||
Var[Literal["classic", "ghost", "surface"]],
|
Var[Literal["classic", "ghost", "surface"]],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -176,30 +176,211 @@ class DialogContent(elements.Div, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -163,30 +163,211 @@ class HoverCardContent(elements.Div, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -110,45 +110,227 @@ class IconButton(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|||||||
Var[Literal["full", "large", "medium", "none", "small"]],
|
Var[Literal["full", "large", "medium", "none", "small"]],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
auto_focus: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
auto_focus: Optional[Union[Var[bool], bool]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form: Optional[Union[Var[str], str]] = None,
|
||||||
form_action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form_action: Optional[Union[Var[str], str]] = None,
|
||||||
form_enc_type: Optional[
|
form_enc_type: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
form_method: Optional[Union[Var[str], str]] = None,
|
||||||
|
form_no_validate: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
form_target: Optional[Union[Var[str], str]] = None,
|
||||||
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
|
type: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["button", "reset", "submit"],
|
||||||
|
Var[Literal["button", "reset", "submit"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
form_method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
form_no_validate: Optional[
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
|
||||||
] = None,
|
|
||||||
form_target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
value: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
loading: Optional[Union[Var[bool], bool]] = None,
|
loading: Optional[Union[Var[bool], bool]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
|
@ -103,30 +103,211 @@ class Inset(elements.Div, RadixThemesComponent):
|
|||||||
str,
|
str,
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -156,30 +156,211 @@ class PopoverContent(elements.Div, RadixThemesComponent):
|
|||||||
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
|
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
|
||||||
] = None,
|
] = None,
|
||||||
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
|
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
"""Interactive components provided by @radix-ui/themes."""
|
"""Interactive components provided by @radix-ui/themes."""
|
||||||
|
|
||||||
from typing import Literal, Union
|
from typing import Literal
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.components.core.breakpoints import Responsive
|
from reflex.components.core.breakpoints import Responsive
|
||||||
@ -51,7 +51,7 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|||||||
disabled: Var[bool]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Associates the textarea with a form (by id)
|
# Associates the textarea with a form (by id)
|
||||||
form: Var[Union[str, int, bool]]
|
form: Var[str]
|
||||||
|
|
||||||
# Maximum number of characters allowed in the textarea
|
# Maximum number of characters allowed in the textarea
|
||||||
max_length: Var[int]
|
max_length: Var[int]
|
||||||
|
@ -126,7 +126,7 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|||||||
default_value: Optional[Union[Var[str], str]] = None,
|
default_value: Optional[Union[Var[str], str]] = None,
|
||||||
dirname: Optional[Union[Var[str], str]] = None,
|
dirname: Optional[Union[Var[str], str]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form: Optional[Union[Var[str], str]] = None,
|
||||||
max_length: Optional[Union[Var[int], int]] = None,
|
max_length: Optional[Union[Var[int], int]] = None,
|
||||||
min_length: Optional[Union[Var[int], int]] = None,
|
min_length: Optional[Union[Var[int], int]] = None,
|
||||||
name: Optional[Union[Var[str], str]] = None,
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
@ -137,32 +137,213 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|||||||
value: Optional[Union[Var[str], str]] = None,
|
value: Optional[Union[Var[str], str]] = None,
|
||||||
wrap: Optional[Union[Var[str], str]] = None,
|
wrap: Optional[Union[Var[str], str]] = None,
|
||||||
auto_height: Optional[Union[Var[bool], bool]] = None,
|
auto_height: Optional[Union[Var[bool], bool]] = None,
|
||||||
cols: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
cols: Optional[Union[Var[int], int]] = None,
|
||||||
enter_key_submit: Optional[Union[Var[bool], bool]] = None,
|
enter_key_submit: Optional[Union[Var[bool], bool]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -70,7 +70,7 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
|
|||||||
value: Var[Union[str, int, float]]
|
value: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# References a datalist for suggested options
|
# References a datalist for suggested options
|
||||||
list: Var[Union[str, int, bool]]
|
list: Var[str]
|
||||||
|
|
||||||
# Fired when the value of the textarea changes.
|
# Fired when the value of the textarea changes.
|
||||||
on_change: EventHandler[input_event]
|
on_change: EventHandler[input_event]
|
||||||
|
@ -119,55 +119,235 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
|
|||||||
required: Optional[Union[Var[bool], bool]] = None,
|
required: Optional[Union[Var[bool], bool]] = None,
|
||||||
type: Optional[Union[Var[str], str]] = None,
|
type: Optional[Union[Var[str], str]] = None,
|
||||||
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
list: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
list: Optional[Union[Var[str], str]] = None,
|
||||||
accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
accept: Optional[Union[Var[str], str]] = None,
|
||||||
alt: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
alt: Optional[Union[Var[str], str]] = None,
|
||||||
auto_focus: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
auto_focus: Optional[Union[Var[bool], bool]] = None,
|
||||||
capture: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
capture: Optional[
|
||||||
checked: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
|
Literal["environment", "user", False, True],
|
||||||
|
Var[Literal["environment", "user", False, True]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
checked: Optional[Union[Var[bool], bool]] = None,
|
||||||
default_checked: Optional[Union[Var[bool], bool]] = None,
|
default_checked: Optional[Union[Var[bool], bool]] = None,
|
||||||
dirname: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form: Optional[Union[Var[str], str]] = None,
|
||||||
form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form_action: Optional[Union[Var[str], str]] = None,
|
||||||
form_action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form_enc_type: Optional[Union[Var[str], str]] = None,
|
||||||
form_enc_type: Optional[
|
form_method: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
form_no_validate: Optional[Union[Var[bool], bool]] = None,
|
||||||
] = None,
|
form_target: Optional[Union[Var[str], str]] = None,
|
||||||
form_method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
max: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
form_no_validate: Optional[
|
min: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
multiple: Optional[Union[Var[bool], bool]] = None,
|
||||||
] = None,
|
pattern: Optional[Union[Var[str], str]] = None,
|
||||||
form_target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
src: Optional[Union[Var[str], str]] = None,
|
||||||
max: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
step: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
min: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
multiple: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
pattern: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
step: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
use_map: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -229,7 +409,6 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
|
|||||||
capture: Captures media from the user (camera or microphone)
|
capture: Captures media from the user (camera or microphone)
|
||||||
checked: Indicates whether the input is checked (for checkboxes and radio buttons)
|
checked: Indicates whether the input is checked (for checkboxes and radio buttons)
|
||||||
default_checked: The initial value (for checkboxes and radio buttons)
|
default_checked: The initial value (for checkboxes and radio buttons)
|
||||||
dirname: Name part of the input to submit in 'dir' and 'name' pair when form is submitted
|
|
||||||
form: Associates the input with a form (by id)
|
form: Associates the input with a form (by id)
|
||||||
form_action: URL to send the form data to (for type="submit" buttons)
|
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_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons)
|
||||||
@ -242,7 +421,6 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
|
|||||||
pattern: Regex pattern the input's value must match to be valid
|
pattern: Regex pattern the input's value must match to be valid
|
||||||
src: URL for image inputs
|
src: URL for image inputs
|
||||||
step: Specifies the legal number intervals for an input
|
step: Specifies the legal number intervals for an input
|
||||||
use_map: Name of the image map used with the input
|
|
||||||
access_key: Provides a hint for generating a keyboard shortcut for the current 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.
|
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.
|
content_editable: Indicates whether the element's content is editable.
|
||||||
@ -486,55 +664,235 @@ class TextField(ComponentNamespace):
|
|||||||
required: Optional[Union[Var[bool], bool]] = None,
|
required: Optional[Union[Var[bool], bool]] = None,
|
||||||
type: Optional[Union[Var[str], str]] = None,
|
type: Optional[Union[Var[str], str]] = None,
|
||||||
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
list: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
list: Optional[Union[Var[str], str]] = None,
|
||||||
accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
accept: Optional[Union[Var[str], str]] = None,
|
||||||
alt: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
alt: Optional[Union[Var[str], str]] = None,
|
||||||
auto_focus: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
auto_focus: Optional[Union[Var[bool], bool]] = None,
|
||||||
capture: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
capture: Optional[
|
||||||
checked: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
|
Literal["environment", "user", False, True],
|
||||||
|
Var[Literal["environment", "user", False, True]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
checked: Optional[Union[Var[bool], bool]] = None,
|
||||||
default_checked: Optional[Union[Var[bool], bool]] = None,
|
default_checked: Optional[Union[Var[bool], bool]] = None,
|
||||||
dirname: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form: Optional[Union[Var[str], str]] = None,
|
||||||
form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form_action: Optional[Union[Var[str], str]] = None,
|
||||||
form_action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
form_enc_type: Optional[Union[Var[str], str]] = None,
|
||||||
form_enc_type: Optional[
|
form_method: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
form_no_validate: Optional[Union[Var[bool], bool]] = None,
|
||||||
] = None,
|
form_target: Optional[Union[Var[str], str]] = None,
|
||||||
form_method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
max: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
form_no_validate: Optional[
|
min: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
multiple: Optional[Union[Var[bool], bool]] = None,
|
||||||
] = None,
|
pattern: Optional[Union[Var[str], str]] = None,
|
||||||
form_target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
src: Optional[Union[Var[str], str]] = None,
|
||||||
max: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
step: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
|
||||||
min: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
multiple: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
pattern: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
step: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
use_map: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -596,7 +954,6 @@ class TextField(ComponentNamespace):
|
|||||||
capture: Captures media from the user (camera or microphone)
|
capture: Captures media from the user (camera or microphone)
|
||||||
checked: Indicates whether the input is checked (for checkboxes and radio buttons)
|
checked: Indicates whether the input is checked (for checkboxes and radio buttons)
|
||||||
default_checked: The initial value (for checkboxes and radio buttons)
|
default_checked: The initial value (for checkboxes and radio buttons)
|
||||||
dirname: Name part of the input to submit in 'dir' and 'name' pair when form is submitted
|
|
||||||
form: Associates the input with a form (by id)
|
form: Associates the input with a form (by id)
|
||||||
form_action: URL to send the form data to (for type="submit" buttons)
|
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_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons)
|
||||||
@ -609,7 +966,6 @@ class TextField(ComponentNamespace):
|
|||||||
pattern: Regex pattern the input's value must match to be valid
|
pattern: Regex pattern the input's value must match to be valid
|
||||||
src: URL for image inputs
|
src: URL for image inputs
|
||||||
step: Specifies the legal number intervals for an input
|
step: Specifies the legal number intervals for an input
|
||||||
use_map: Name of the image map used with the input
|
|
||||||
access_key: Provides a hint for generating a keyboard shortcut for the current 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.
|
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.
|
content_editable: Indicates whether the element's content is editable.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# ------------------- DO NOT EDIT ----------------------
|
# ------------------- DO NOT EDIT ----------------------
|
||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from typing import Any, Dict, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.el import elements
|
from reflex.components.el import elements
|
||||||
from reflex.event import EventType
|
from reflex.event import EventType
|
||||||
@ -18,30 +18,211 @@ class Box(elements.Div, RadixThemesComponent):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -95,30 +95,211 @@ class Center(Flex):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -35,30 +35,211 @@ class Container(elements.Div, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -98,30 +98,211 @@ class Flex(elements.Div, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -127,30 +127,211 @@ class Grid(elements.Div, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -172,30 +172,211 @@ class UnorderedList(BaseList, Ul):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -303,33 +484,218 @@ class OrderedList(BaseList, Ol):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
||||||
reversed: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
reversed: Optional[Union[Var[bool], bool]] = None,
|
||||||
start: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
start: Optional[Union[Var[int], int]] = None,
|
||||||
type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
type: Optional[
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
|
Literal["1", "A", "I", "a", "i"], Var[Literal["1", "A", "I", "a", "i"]]
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -397,30 +763,211 @@ class ListItem(Li, MarkdownComponentMap):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -32,30 +32,211 @@ class Section(elements.Section, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -95,30 +95,211 @@ class Spacer(Flex):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -72,30 +72,211 @@ class Stack(Flex):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -207,30 +388,211 @@ class VStack(Stack):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -342,30 +704,211 @@ class HStack(Stack):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -108,31 +108,212 @@ class Blockquote(elements.Blockquote, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
||||||
cite: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
cite: Optional[Union[Var[str], str]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -115,30 +115,211 @@ class Code(elements.Code, RadixThemesComponent, MarkdownComponentMap):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -135,30 +135,211 @@ class Heading(elements.H1, RadixThemesComponent, MarkdownComponentMap):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -136,41 +136,252 @@ class Link(RadixThemesComponent, A, MemoizationLeaf, MarkdownComponentMap):
|
|||||||
] = None,
|
] = None,
|
||||||
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
||||||
is_external: Optional[Union[Var[bool], bool]] = None,
|
is_external: Optional[Union[Var[bool], bool]] = None,
|
||||||
download: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
download: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
|
||||||
href: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
href: Optional[Union[Var[str], str]] = None,
|
||||||
href_lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
href_lang: Optional[Union[Var[str], str]] = None,
|
||||||
media: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
media: Optional[Union[Var[str], str]] = None,
|
||||||
ping: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
ping: Optional[Union[Var[str], str]] = None,
|
||||||
referrer_policy: Optional[
|
referrer_policy: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal[
|
||||||
|
"",
|
||||||
|
"no-referrer",
|
||||||
|
"no-referrer-when-downgrade",
|
||||||
|
"origin",
|
||||||
|
"origin-when-cross-origin",
|
||||||
|
"same-origin",
|
||||||
|
"strict-origin",
|
||||||
|
"strict-origin-when-cross-origin",
|
||||||
|
"unsafe-url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"",
|
||||||
|
"no-referrer",
|
||||||
|
"no-referrer-when-downgrade",
|
||||||
|
"origin",
|
||||||
|
"origin-when-cross-origin",
|
||||||
|
"same-origin",
|
||||||
|
"strict-origin",
|
||||||
|
"strict-origin-when-cross-origin",
|
||||||
|
"unsafe-url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
rel: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
rel: Optional[Union[Var[str], str]] = None,
|
||||||
shape: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
target: Optional[
|
||||||
target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal["_blank", "_parent", "_self", "_top"],
|
||||||
|
Var[Union[Literal["_blank", "_parent", "_self", "_top"], str]],
|
||||||
|
str,
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -213,7 +424,6 @@ class Link(RadixThemesComponent, A, MemoizationLeaf, MarkdownComponentMap):
|
|||||||
ping: Specifies which referrer is sent when fetching the resource
|
ping: Specifies which referrer is sent when fetching the resource
|
||||||
referrer_policy: Specifies the relationship between the current document and the linked document
|
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
|
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
|
target: Specifies where to open the linked document
|
||||||
access_key: Provides a hint for generating a keyboard shortcut for the current 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.
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing_extensions import TypedDict
|
from typing import TypedDict
|
||||||
|
|
||||||
from reflex.components.component import NoSSRComponent
|
from reflex.components.component import NoSSRComponent
|
||||||
from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
|
from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
|
||||||
|
@ -3,9 +3,7 @@
|
|||||||
# ------------------- DO NOT EDIT ----------------------
|
# ------------------- DO NOT EDIT ----------------------
|
||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from typing import Any, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, TypedDict, Union, overload
|
||||||
|
|
||||||
from typing_extensions import TypedDict
|
|
||||||
|
|
||||||
from reflex.components.component import NoSSRComponent
|
from reflex.components.component import NoSSRComponent
|
||||||
from reflex.event import EventType
|
from reflex.event import EventType
|
||||||
|
@ -19,6 +19,7 @@ from pathlib import Path
|
|||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
from typing import (
|
from typing import (
|
||||||
TYPE_CHECKING,
|
TYPE_CHECKING,
|
||||||
|
Annotated,
|
||||||
Any,
|
Any,
|
||||||
Callable,
|
Callable,
|
||||||
Dict,
|
Dict,
|
||||||
@ -29,10 +30,11 @@ from typing import (
|
|||||||
TypeVar,
|
TypeVar,
|
||||||
get_args,
|
get_args,
|
||||||
get_origin,
|
get_origin,
|
||||||
|
get_type_hints,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
import pydantic.v1 as pydantic
|
||||||
from reflex_cli.constants.hosting import Hosting
|
from reflex_cli.constants.hosting import Hosting
|
||||||
from typing_extensions import Annotated, get_type_hints
|
|
||||||
|
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
from reflex.base import Base
|
from reflex.base import Base
|
||||||
@ -40,12 +42,6 @@ from reflex.utils import console
|
|||||||
from reflex.utils.exceptions import ConfigError, EnvironmentVarValueError
|
from reflex.utils.exceptions import ConfigError, EnvironmentVarValueError
|
||||||
from reflex.utils.types import GenericType, is_union, value_inside_optional
|
from reflex.utils.types import GenericType, is_union, value_inside_optional
|
||||||
|
|
||||||
try:
|
|
||||||
import pydantic.v1 as pydantic
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from dotenv import load_dotenv # pyright: ignore [reportMissingImports]
|
from dotenv import load_dotenv # pyright: ignore [reportMissingImports]
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -593,6 +589,11 @@ class ExecutorType(enum.Enum):
|
|||||||
class EnvironmentVariables:
|
class EnvironmentVariables:
|
||||||
"""Environment variables class to instantiate environment variables."""
|
"""Environment variables class to instantiate environment variables."""
|
||||||
|
|
||||||
|
# Indicate the current command that was invoked in the reflex CLI.
|
||||||
|
REFLEX_COMPILE_CONTEXT: EnvVar[constants.CompileContext] = env_var(
|
||||||
|
constants.CompileContext.UNDEFINED, internal=True
|
||||||
|
)
|
||||||
|
|
||||||
# Whether to use npm over bun to install frontend packages.
|
# Whether to use npm over bun to install frontend packages.
|
||||||
REFLEX_USE_NPM: EnvVar[bool] = env_var(False)
|
REFLEX_USE_NPM: EnvVar[bool] = env_var(False)
|
||||||
|
|
||||||
@ -640,7 +641,7 @@ class EnvironmentVariables:
|
|||||||
REFLEX_COMPILE_THREADS: EnvVar[Optional[int]] = env_var(None)
|
REFLEX_COMPILE_THREADS: EnvVar[Optional[int]] = env_var(None)
|
||||||
|
|
||||||
# The directory to store reflex dependencies.
|
# The directory to store reflex dependencies.
|
||||||
REFLEX_DIR: EnvVar[Path] = env_var(Path(constants.Reflex.DIR))
|
REFLEX_DIR: EnvVar[Path] = env_var(constants.Reflex.DIR)
|
||||||
|
|
||||||
# Whether to print the SQL queries if the log level is INFO or lower.
|
# Whether to print the SQL queries if the log level is INFO or lower.
|
||||||
SQLALCHEMY_ECHO: EnvVar[bool] = env_var(False)
|
SQLALCHEMY_ECHO: EnvVar[bool] = env_var(False)
|
||||||
@ -848,7 +849,7 @@ class Config(Base):
|
|||||||
env_file: Optional[str] = None
|
env_file: Optional[str] = None
|
||||||
|
|
||||||
# Whether to display the sticky "Built with Reflex" badge on all pages.
|
# Whether to display the sticky "Built with Reflex" badge on all pages.
|
||||||
show_built_with_reflex: bool = True
|
show_built_with_reflex: Optional[bool] = None
|
||||||
|
|
||||||
# Whether the app is running in the reflex cloud environment.
|
# Whether the app is running in the reflex cloud environment.
|
||||||
is_reflex_cloud: bool = False
|
is_reflex_cloud: bool = False
|
||||||
|
@ -25,6 +25,7 @@ from .base import (
|
|||||||
from .compiler import (
|
from .compiler import (
|
||||||
NOCOMPILE_FILE,
|
NOCOMPILE_FILE,
|
||||||
SETTER_PREFIX,
|
SETTER_PREFIX,
|
||||||
|
CompileContext,
|
||||||
CompileVars,
|
CompileVars,
|
||||||
ComponentName,
|
ComponentName,
|
||||||
Ext,
|
Ext,
|
||||||
@ -65,6 +66,7 @@ __ALL__ = [
|
|||||||
ColorMode,
|
ColorMode,
|
||||||
Config,
|
Config,
|
||||||
COOKIES,
|
COOKIES,
|
||||||
|
CompileContext,
|
||||||
ComponentName,
|
ComponentName,
|
||||||
CustomComponents,
|
CustomComponents,
|
||||||
DefaultPage,
|
DefaultPage,
|
||||||
|
@ -111,6 +111,15 @@ class ComponentName(Enum):
|
|||||||
return self.value.lower() + Ext.ZIP
|
return self.value.lower() + Ext.ZIP
|
||||||
|
|
||||||
|
|
||||||
|
class CompileContext(str, Enum):
|
||||||
|
"""The context in which the compiler is running."""
|
||||||
|
|
||||||
|
RUN = "run"
|
||||||
|
EXPORT = "export"
|
||||||
|
DEPLOY = "deploy"
|
||||||
|
UNDEFINED = "undefined"
|
||||||
|
|
||||||
|
|
||||||
class Imports(SimpleNamespace):
|
class Imports(SimpleNamespace):
|
||||||
"""Common sets of import vars."""
|
"""Common sets of import vars."""
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
"""Utility functions for constants."""
|
"""Utility functions for constants."""
|
||||||
|
|
||||||
from typing import Any, Callable, Generic, Type
|
from typing import Any, Callable, Generic, Type, TypeVar
|
||||||
|
|
||||||
from typing_extensions import TypeVar
|
|
||||||
|
|
||||||
T = TypeVar("T")
|
T = TypeVar("T")
|
||||||
V = TypeVar("V")
|
V = TypeVar("V")
|
||||||
|
@ -10,31 +10,27 @@ from base64 import b64encode
|
|||||||
from functools import partial
|
from functools import partial
|
||||||
from typing import (
|
from typing import (
|
||||||
TYPE_CHECKING,
|
TYPE_CHECKING,
|
||||||
|
Annotated,
|
||||||
Any,
|
Any,
|
||||||
Callable,
|
Callable,
|
||||||
Dict,
|
Dict,
|
||||||
Generic,
|
Generic,
|
||||||
List,
|
List,
|
||||||
Optional,
|
Optional,
|
||||||
|
Protocol,
|
||||||
Sequence,
|
Sequence,
|
||||||
Tuple,
|
Tuple,
|
||||||
Type,
|
Type,
|
||||||
|
TypedDict,
|
||||||
|
TypeVar,
|
||||||
Union,
|
Union,
|
||||||
|
get_args,
|
||||||
|
get_origin,
|
||||||
get_type_hints,
|
get_type_hints,
|
||||||
overload,
|
overload,
|
||||||
)
|
)
|
||||||
|
|
||||||
from typing_extensions import (
|
from typing_extensions import Self, TypeAliasType, TypeVarTuple, Unpack
|
||||||
Protocol,
|
|
||||||
Self,
|
|
||||||
TypeAliasType,
|
|
||||||
TypedDict,
|
|
||||||
TypeVar,
|
|
||||||
TypeVarTuple,
|
|
||||||
Unpack,
|
|
||||||
get_args,
|
|
||||||
get_origin,
|
|
||||||
)
|
|
||||||
|
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
from reflex.constants.compiler import CompileVars, Hooks, Imports
|
from reflex.constants.compiler import CompileVars, Hooks, Imports
|
||||||
@ -59,11 +55,6 @@ from reflex.vars.function import (
|
|||||||
)
|
)
|
||||||
from reflex.vars.object import ObjectVar
|
from reflex.vars.object import ObjectVar
|
||||||
|
|
||||||
try:
|
|
||||||
from typing import Annotated
|
|
||||||
except ImportError:
|
|
||||||
from typing_extensions import Annotated
|
|
||||||
|
|
||||||
|
|
||||||
@dataclasses.dataclass(
|
@dataclasses.dataclass(
|
||||||
init=True,
|
init=True,
|
||||||
|
@ -21,30 +21,211 @@ class Sidebar(Box, MemoizationLeaf):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -204,30 +385,211 @@ class Layout(Box):
|
|||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
sidebar: Optional[Component] = None,
|
sidebar: Optional[Component] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -272,30 +634,211 @@ class LayoutNamespace(ComponentNamespace):
|
|||||||
def __call__(
|
def __call__(
|
||||||
*children,
|
*children,
|
||||||
sidebar: Optional[Component] = None,
|
sidebar: Optional[Component] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[str], str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["characters", "none", "off", "on", "sentences", "words"],
|
||||||
|
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content_editable: Optional[
|
content_editable: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["inherit", "plaintext-only", False, True],
|
||||||
|
Var[Literal["inherit", "plaintext-only", False, True]],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
context_menu: Optional[
|
context_menu: Optional[Union[Var[str], str]] = None,
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
dir: Optional[Union[Var[str], str]] = None,
|
||||||
] = None,
|
draggable: Optional[Union[Var[bool], bool]] = None,
|
||||||
dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
||||||
enter_key_hint: Optional[
|
enter_key_hint: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"],
|
||||||
|
Var[
|
||||||
|
Literal["done", "enter", "go", "next", "previous", "search", "send"]
|
||||||
|
],
|
||||||
|
]
|
||||||
] = None,
|
] = None,
|
||||||
hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
hidden: Optional[Union[Var[bool], bool]] = None,
|
||||||
input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
input_mode: Optional[
|
||||||
item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Union[
|
||||||
lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
Literal[
|
||||||
role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"decimal",
|
||||||
slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"email",
|
||||||
spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"none",
|
||||||
tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"numeric",
|
||||||
title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"decimal",
|
||||||
|
"email",
|
||||||
|
"none",
|
||||||
|
"numeric",
|
||||||
|
"search",
|
||||||
|
"tel",
|
||||||
|
"text",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
item_prop: Optional[Union[Var[str], str]] = None,
|
||||||
|
lang: Optional[Union[Var[str], str]] = None,
|
||||||
|
role: Optional[
|
||||||
|
Union[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"alert",
|
||||||
|
"alertdialog",
|
||||||
|
"application",
|
||||||
|
"article",
|
||||||
|
"banner",
|
||||||
|
"button",
|
||||||
|
"cell",
|
||||||
|
"checkbox",
|
||||||
|
"columnheader",
|
||||||
|
"combobox",
|
||||||
|
"complementary",
|
||||||
|
"contentinfo",
|
||||||
|
"definition",
|
||||||
|
"dialog",
|
||||||
|
"directory",
|
||||||
|
"document",
|
||||||
|
"feed",
|
||||||
|
"figure",
|
||||||
|
"form",
|
||||||
|
"grid",
|
||||||
|
"gridcell",
|
||||||
|
"group",
|
||||||
|
"heading",
|
||||||
|
"img",
|
||||||
|
"link",
|
||||||
|
"list",
|
||||||
|
"listbox",
|
||||||
|
"listitem",
|
||||||
|
"log",
|
||||||
|
"main",
|
||||||
|
"marquee",
|
||||||
|
"math",
|
||||||
|
"menu",
|
||||||
|
"menubar",
|
||||||
|
"menuitem",
|
||||||
|
"menuitemcheckbox",
|
||||||
|
"menuitemradio",
|
||||||
|
"navigation",
|
||||||
|
"none",
|
||||||
|
"note",
|
||||||
|
"option",
|
||||||
|
"presentation",
|
||||||
|
"progressbar",
|
||||||
|
"radio",
|
||||||
|
"radiogroup",
|
||||||
|
"region",
|
||||||
|
"row",
|
||||||
|
"rowgroup",
|
||||||
|
"rowheader",
|
||||||
|
"scrollbar",
|
||||||
|
"search",
|
||||||
|
"searchbox",
|
||||||
|
"separator",
|
||||||
|
"slider",
|
||||||
|
"spinbutton",
|
||||||
|
"status",
|
||||||
|
"switch",
|
||||||
|
"tab",
|
||||||
|
"table",
|
||||||
|
"tablist",
|
||||||
|
"tabpanel",
|
||||||
|
"term",
|
||||||
|
"textbox",
|
||||||
|
"timer",
|
||||||
|
"toolbar",
|
||||||
|
"tooltip",
|
||||||
|
"tree",
|
||||||
|
"treegrid",
|
||||||
|
"treeitem",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
slot: Optional[Union[Var[str], str]] = None,
|
||||||
|
spell_check: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
tab_index: Optional[Union[Var[int], int]] = None,
|
||||||
|
title: Optional[Union[Var[str], str]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
|
@ -20,11 +20,8 @@ from reflex.utils import console, telemetry
|
|||||||
typer.core.rich = None # pyright: ignore [reportPrivateImportUsage]
|
typer.core.rich = None # pyright: ignore [reportPrivateImportUsage]
|
||||||
|
|
||||||
# Create the app.
|
# Create the app.
|
||||||
try:
|
cli = typer.Typer(add_completion=False, pretty_exceptions_enable=False)
|
||||||
cli = typer.Typer(add_completion=False, pretty_exceptions_enable=False)
|
|
||||||
except TypeError:
|
|
||||||
# Fallback for older typer versions.
|
|
||||||
cli = typer.Typer(add_completion=False)
|
|
||||||
|
|
||||||
SHOW_BUILT_WITH_REFLEX_INFO = "https://reflex.dev/docs/hosting/reflex-branding/"
|
SHOW_BUILT_WITH_REFLEX_INFO = "https://reflex.dev/docs/hosting/reflex-branding/"
|
||||||
|
|
||||||
@ -196,7 +193,7 @@ def _run(
|
|||||||
prerequisites.check_latest_package_version(constants.Reflex.MODULE_NAME)
|
prerequisites.check_latest_package_version(constants.Reflex.MODULE_NAME)
|
||||||
|
|
||||||
if frontend:
|
if frontend:
|
||||||
if not config.show_built_with_reflex:
|
if config.show_built_with_reflex is False:
|
||||||
# The sticky badge may be disabled at runtime for team/enterprise tiers.
|
# The sticky badge may be disabled at runtime for team/enterprise tiers.
|
||||||
prerequisites.check_config_option_in_tier(
|
prerequisites.check_config_option_in_tier(
|
||||||
option_name="show_built_with_reflex",
|
option_name="show_built_with_reflex",
|
||||||
@ -306,6 +303,8 @@ def run(
|
|||||||
if frontend and backend:
|
if frontend and backend:
|
||||||
console.error("Cannot use both --frontend-only and --backend-only options.")
|
console.error("Cannot use both --frontend-only and --backend-only options.")
|
||||||
raise typer.Exit(1)
|
raise typer.Exit(1)
|
||||||
|
|
||||||
|
environment.REFLEX_COMPILE_CONTEXT.set(constants.CompileContext.RUN)
|
||||||
environment.REFLEX_BACKEND_ONLY.set(backend)
|
environment.REFLEX_BACKEND_ONLY.set(backend)
|
||||||
environment.REFLEX_FRONTEND_ONLY.set(frontend)
|
environment.REFLEX_FRONTEND_ONLY.set(frontend)
|
||||||
|
|
||||||
@ -352,17 +351,19 @@ def export(
|
|||||||
from reflex.utils import export as export_utils
|
from reflex.utils import export as export_utils
|
||||||
from reflex.utils import prerequisites
|
from reflex.utils import prerequisites
|
||||||
|
|
||||||
|
environment.REFLEX_COMPILE_CONTEXT.set(constants.CompileContext.EXPORT)
|
||||||
|
|
||||||
frontend, backend = prerequisites.check_running_mode(frontend, backend)
|
frontend, backend = prerequisites.check_running_mode(frontend, backend)
|
||||||
|
|
||||||
if prerequisites.needs_reinit(frontend=frontend or not backend):
|
if prerequisites.needs_reinit(frontend=frontend or not backend):
|
||||||
_init(name=config.app_name, loglevel=loglevel)
|
_init(name=config.app_name, loglevel=loglevel)
|
||||||
|
|
||||||
if frontend and not config.show_built_with_reflex:
|
if frontend and config.show_built_with_reflex is False:
|
||||||
# The sticky badge may be disabled on export for team/enterprise tiers.
|
# The sticky badge may be disabled on export for team/enterprise tiers.
|
||||||
prerequisites.check_config_option_in_tier(
|
prerequisites.check_config_option_in_tier(
|
||||||
option_name="show_built_with_reflex",
|
option_name="show_built_with_reflex",
|
||||||
allowed_tiers=["team", "enterprise"],
|
allowed_tiers=["team", "enterprise"],
|
||||||
fallback_value=False,
|
fallback_value=True,
|
||||||
help_link=SHOW_BUILT_WITH_REFLEX_INFO,
|
help_link=SHOW_BUILT_WITH_REFLEX_INFO,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -560,6 +561,8 @@ def deploy(
|
|||||||
|
|
||||||
check_version()
|
check_version()
|
||||||
|
|
||||||
|
environment.REFLEX_COMPILE_CONTEXT.set(constants.CompileContext.DEPLOY)
|
||||||
|
|
||||||
if not config.show_built_with_reflex:
|
if not config.show_built_with_reflex:
|
||||||
# The sticky badge may be disabled on deploy for pro/team/enterprise tiers.
|
# The sticky badge may be disabled on deploy for pro/team/enterprise tiers.
|
||||||
prerequisites.check_config_option_in_tier(
|
prerequisites.check_config_option_in_tier(
|
||||||
|
@ -40,50 +40,22 @@ from typing import (
|
|||||||
get_type_hints,
|
get_type_hints,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
import pydantic.v1 as pydantic
|
||||||
|
import wrapt
|
||||||
|
from pydantic import BaseModel as BaseModelV2
|
||||||
|
from pydantic.v1 import BaseModel as BaseModelV1
|
||||||
|
from pydantic.v1 import validator
|
||||||
|
from pydantic.v1.fields import ModelField
|
||||||
|
from redis.asyncio import Redis
|
||||||
from redis.asyncio.client import PubSub
|
from redis.asyncio.client import PubSub
|
||||||
|
from redis.exceptions import ResponseError
|
||||||
from sqlalchemy.orm import DeclarativeBase
|
from sqlalchemy.orm import DeclarativeBase
|
||||||
from typing_extensions import Self
|
from typing_extensions import Self
|
||||||
|
|
||||||
from reflex import event
|
|
||||||
from reflex.config import PerformanceMode, get_config
|
|
||||||
from reflex.istate.data import RouterData
|
|
||||||
from reflex.istate.storage import ClientStorageBase
|
|
||||||
from reflex.model import Model
|
|
||||||
from reflex.vars.base import (
|
|
||||||
ComputedVar,
|
|
||||||
DynamicRouteVar,
|
|
||||||
Var,
|
|
||||||
computed_var,
|
|
||||||
dispatch,
|
|
||||||
get_unique_variable_name,
|
|
||||||
is_computed_var,
|
|
||||||
)
|
|
||||||
|
|
||||||
try:
|
|
||||||
import pydantic.v1 as pydantic
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
from pydantic import BaseModel as BaseModelV2
|
|
||||||
|
|
||||||
try:
|
|
||||||
from pydantic.v1 import BaseModel as BaseModelV1
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
BaseModelV1 = BaseModelV2
|
|
||||||
|
|
||||||
try:
|
|
||||||
from pydantic.v1 import validator
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
from pydantic import validator
|
|
||||||
|
|
||||||
import wrapt
|
|
||||||
from redis.asyncio import Redis
|
|
||||||
from redis.exceptions import ResponseError
|
|
||||||
|
|
||||||
import reflex.istate.dynamic
|
import reflex.istate.dynamic
|
||||||
from reflex import constants
|
from reflex import constants, event
|
||||||
from reflex.base import Base
|
from reflex.base import Base
|
||||||
from reflex.config import environment
|
from reflex.config import PerformanceMode, environment, get_config
|
||||||
from reflex.event import (
|
from reflex.event import (
|
||||||
BACKGROUND_TASK_MARKER,
|
BACKGROUND_TASK_MARKER,
|
||||||
Event,
|
Event,
|
||||||
@ -91,6 +63,9 @@ from reflex.event import (
|
|||||||
EventSpec,
|
EventSpec,
|
||||||
fix_events,
|
fix_events,
|
||||||
)
|
)
|
||||||
|
from reflex.istate.data import RouterData
|
||||||
|
from reflex.istate.storage import ClientStorageBase
|
||||||
|
from reflex.model import Model
|
||||||
from reflex.utils import console, format, path_ops, prerequisites, types
|
from reflex.utils import console, format, path_ops, prerequisites, types
|
||||||
from reflex.utils.exceptions import (
|
from reflex.utils.exceptions import (
|
||||||
ComputedVarShadowsBaseVarsError,
|
ComputedVarShadowsBaseVarsError,
|
||||||
@ -121,6 +96,15 @@ from reflex.utils.types import (
|
|||||||
value_inside_optional,
|
value_inside_optional,
|
||||||
)
|
)
|
||||||
from reflex.vars import VarData
|
from reflex.vars import VarData
|
||||||
|
from reflex.vars.base import (
|
||||||
|
ComputedVar,
|
||||||
|
DynamicRouteVar,
|
||||||
|
Var,
|
||||||
|
computed_var,
|
||||||
|
dispatch,
|
||||||
|
get_unique_variable_name,
|
||||||
|
is_computed_var,
|
||||||
|
)
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
@ -289,10 +273,6 @@ class EventHandlerSetVar(EventHandler):
|
|||||||
return super().__call__(*args)
|
return super().__call__(*args)
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
|
||||||
from pydantic.v1.fields import ModelField
|
|
||||||
|
|
||||||
|
|
||||||
def _unwrap_field_type(type_: Type) -> Type:
|
def _unwrap_field_type(type_: Type) -> Type:
|
||||||
"""Unwrap rx.Field type annotations.
|
"""Unwrap rx.Field type annotations.
|
||||||
|
|
||||||
|
@ -584,3 +584,12 @@ def is_prod_mode() -> bool:
|
|||||||
"""
|
"""
|
||||||
current_mode = environment.REFLEX_ENV_MODE.get()
|
current_mode = environment.REFLEX_ENV_MODE.get()
|
||||||
return current_mode == constants.Env.PROD
|
return current_mode == constants.Env.PROD
|
||||||
|
|
||||||
|
|
||||||
|
def get_compile_context() -> constants.CompileContext:
|
||||||
|
"""Check if the app is compiled for deploy.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Whether the app is being compiled for deploy.
|
||||||
|
"""
|
||||||
|
return environment.REFLEX_COMPILE_CONTEXT.get()
|
||||||
|
@ -2001,6 +2001,22 @@ def is_generation_hash(template: str) -> bool:
|
|||||||
return re.match(r"^[0-9a-f]{32,}$", template) is not None
|
return re.match(r"^[0-9a-f]{32,}$", template) is not None
|
||||||
|
|
||||||
|
|
||||||
|
def get_user_tier():
|
||||||
|
"""Get the current user's tier.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The current user's tier.
|
||||||
|
"""
|
||||||
|
from reflex_cli.v2.utils import hosting
|
||||||
|
|
||||||
|
authenticated_token = hosting.authenticated_token()
|
||||||
|
return (
|
||||||
|
authenticated_token[1].get("tier", "").lower()
|
||||||
|
if authenticated_token[0]
|
||||||
|
else "anonymous"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def check_config_option_in_tier(
|
def check_config_option_in_tier(
|
||||||
option_name: str,
|
option_name: str,
|
||||||
allowed_tiers: list[str],
|
allowed_tiers: list[str],
|
||||||
@ -2015,23 +2031,21 @@ def check_config_option_in_tier(
|
|||||||
fallback_value: The fallback value if the option is not allowed.
|
fallback_value: The fallback value if the option is not allowed.
|
||||||
help_link: The help link to show to a user that is authenticated.
|
help_link: The help link to show to a user that is authenticated.
|
||||||
"""
|
"""
|
||||||
from reflex_cli.v2.utils import hosting
|
|
||||||
|
|
||||||
config = get_config()
|
config = get_config()
|
||||||
authenticated_token = hosting.authenticated_token()
|
current_tier = get_user_tier()
|
||||||
if not authenticated_token[0]:
|
|
||||||
|
if current_tier == "anonymous":
|
||||||
the_remedy = (
|
the_remedy = (
|
||||||
"You are currently logged out. Run `reflex login` to access this option."
|
"You are currently logged out. Run `reflex login` to access this option."
|
||||||
)
|
)
|
||||||
current_tier = "anonymous"
|
|
||||||
else:
|
else:
|
||||||
current_tier = authenticated_token[1].get("tier", "").lower()
|
|
||||||
the_remedy = (
|
the_remedy = (
|
||||||
f"Your current subscription tier is `{current_tier}`. "
|
f"Your current subscription tier is `{current_tier}`. "
|
||||||
f"Please upgrade to {allowed_tiers} to access this option. "
|
f"Please upgrade to {allowed_tiers} to access this option. "
|
||||||
)
|
)
|
||||||
if help_link:
|
if help_link:
|
||||||
the_remedy += f"See {help_link} for more information."
|
the_remedy += f"See {help_link} for more information."
|
||||||
|
|
||||||
if current_tier not in allowed_tiers:
|
if current_tier not in allowed_tiers:
|
||||||
console.warn(f"Config option `{option_name}` is restricted. {the_remedy}")
|
console.warn(f"Config option `{option_name}` is restricted. {the_remedy}")
|
||||||
setattr(config, option_name, fallback_value)
|
setattr(config, option_name, fallback_value)
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import contextlib
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import functools
|
import functools
|
||||||
import json
|
import json
|
||||||
@ -24,6 +25,9 @@ from typing import (
|
|||||||
overload,
|
overload,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from pydantic import BaseModel as BaseModelV2
|
||||||
|
from pydantic.v1 import BaseModel as BaseModelV1
|
||||||
|
|
||||||
from reflex.base import Base
|
from reflex.base import Base
|
||||||
from reflex.constants.colors import Color, format_color
|
from reflex.constants.colors import Color, format_color
|
||||||
from reflex.utils import types
|
from reflex.utils import types
|
||||||
@ -270,12 +274,24 @@ def serialize_base(value: Base) -> dict:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
try:
|
@serializer(to=dict)
|
||||||
from pydantic.v1 import BaseModel as BaseModelV1
|
def serialize_base_model_v1(model: BaseModelV1) -> dict:
|
||||||
|
"""Serialize a pydantic v1 BaseModel instance.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
model: The BaseModel to serialize.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The serialized BaseModel.
|
||||||
|
"""
|
||||||
|
return model.dict()
|
||||||
|
|
||||||
|
|
||||||
|
if BaseModelV1 is not BaseModelV2:
|
||||||
|
|
||||||
@serializer(to=dict)
|
@serializer(to=dict)
|
||||||
def serialize_base_model_v1(model: BaseModelV1) -> dict:
|
def serialize_base_model_v2(model: BaseModelV2) -> dict:
|
||||||
"""Serialize a pydantic v1 BaseModel instance.
|
"""Serialize a pydantic v2 BaseModel instance.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
model: The BaseModel to serialize.
|
model: The BaseModel to serialize.
|
||||||
@ -283,38 +299,7 @@ try:
|
|||||||
Returns:
|
Returns:
|
||||||
The serialized BaseModel.
|
The serialized BaseModel.
|
||||||
"""
|
"""
|
||||||
return model.dict()
|
return model.model_dump()
|
||||||
|
|
||||||
from pydantic import BaseModel as BaseModelV2
|
|
||||||
|
|
||||||
if BaseModelV1 is not BaseModelV2:
|
|
||||||
|
|
||||||
@serializer(to=dict)
|
|
||||||
def serialize_base_model_v2(model: BaseModelV2) -> dict:
|
|
||||||
"""Serialize a pydantic v2 BaseModel instance.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
model: The BaseModel to serialize.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
The serialized BaseModel.
|
|
||||||
"""
|
|
||||||
return model.model_dump()
|
|
||||||
except ImportError:
|
|
||||||
# Older pydantic v1 import
|
|
||||||
from pydantic import BaseModel as BaseModelV1
|
|
||||||
|
|
||||||
@serializer(to=dict)
|
|
||||||
def serialize_base_model_v1(model: BaseModelV1) -> dict:
|
|
||||||
"""Serialize a pydantic v1 BaseModel instance.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
model: The BaseModel to serialize.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
The serialized BaseModel.
|
|
||||||
"""
|
|
||||||
return model.dict()
|
|
||||||
|
|
||||||
|
|
||||||
@serializer
|
@serializer
|
||||||
@ -382,7 +367,7 @@ def serialize_color(color: Color) -> str:
|
|||||||
return format_color(color.color, color.shade, color.alpha)
|
return format_color(color.color, color.shade, color.alpha)
|
||||||
|
|
||||||
|
|
||||||
try:
|
with contextlib.suppress(ImportError):
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
|
|
||||||
def format_dataframe_values(df: DataFrame) -> List[List[Any]]:
|
def format_dataframe_values(df: DataFrame) -> List[List[Any]]:
|
||||||
@ -414,10 +399,8 @@ try:
|
|||||||
"data": format_dataframe_values(df),
|
"data": format_dataframe_values(df),
|
||||||
}
|
}
|
||||||
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
try:
|
with contextlib.suppress(ImportError):
|
||||||
from plotly.graph_objects import Figure, layout
|
from plotly.graph_objects import Figure, layout
|
||||||
from plotly.io import to_json
|
from plotly.io import to_json
|
||||||
|
|
||||||
@ -448,11 +431,8 @@ try:
|
|||||||
"layout": json.loads(str(to_json(template.layout))),
|
"layout": json.loads(str(to_json(template.layout))),
|
||||||
}
|
}
|
||||||
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
with contextlib.suppress(ImportError):
|
||||||
try:
|
|
||||||
import base64
|
import base64
|
||||||
import io
|
import io
|
||||||
|
|
||||||
@ -489,6 +469,3 @@ try:
|
|||||||
mime_type = "image/png"
|
mime_type = "image/png"
|
||||||
|
|
||||||
return f"data:{mime_type};base64,{base64_image}"
|
return f"data:{mime_type};base64,{base64_image}"
|
||||||
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
@ -8,23 +8,17 @@ import multiprocessing
|
|||||||
import platform
|
import platform
|
||||||
import warnings
|
import warnings
|
||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
|
from datetime import datetime, timezone
|
||||||
from reflex.config import environment
|
|
||||||
|
|
||||||
try:
|
|
||||||
from datetime import UTC, datetime
|
|
||||||
except ImportError:
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
UTC = None
|
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
import psutil
|
import psutil
|
||||||
|
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
|
from reflex.config import environment
|
||||||
from reflex.utils import console
|
from reflex.utils import console
|
||||||
from reflex.utils.prerequisites import ensure_reflex_installation_id, get_project_hash
|
from reflex.utils.prerequisites import ensure_reflex_installation_id, get_project_hash
|
||||||
|
|
||||||
|
UTC = timezone.utc
|
||||||
POSTHOG_API_URL: str = "https://app.posthog.com/capture/"
|
POSTHOG_API_URL: str = "https://app.posthog.com/capture/"
|
||||||
|
|
||||||
|
|
||||||
@ -121,12 +115,7 @@ def _prepare_event(event: str, **kwargs) -> dict:
|
|||||||
)
|
)
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
if UTC is None:
|
stamp = datetime.now(UTC).isoformat()
|
||||||
# for python 3.10
|
|
||||||
stamp = datetime.utcnow().isoformat()
|
|
||||||
else:
|
|
||||||
# for python 3.11 & 3.12
|
|
||||||
stamp = datetime.now(UTC).isoformat()
|
|
||||||
|
|
||||||
cpuinfo = get_cpu_info()
|
cpuinfo = get_cpu_info()
|
||||||
|
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import contextlib
|
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import inspect
|
import inspect
|
||||||
import sys
|
import sys
|
||||||
import types
|
import types
|
||||||
from functools import cached_property, lru_cache, wraps
|
from functools import cached_property, lru_cache, wraps
|
||||||
|
from types import GenericAlias
|
||||||
from typing import (
|
from typing import (
|
||||||
TYPE_CHECKING,
|
TYPE_CHECKING,
|
||||||
Any,
|
Any,
|
||||||
@ -25,66 +25,29 @@ from typing import (
|
|||||||
Type,
|
Type,
|
||||||
Union,
|
Union,
|
||||||
_GenericAlias, # pyright: ignore [reportAttributeAccessIssue]
|
_GenericAlias, # pyright: ignore [reportAttributeAccessIssue]
|
||||||
|
_SpecialGenericAlias, # pyright: ignore [reportAttributeAccessIssue]
|
||||||
get_args,
|
get_args,
|
||||||
get_type_hints,
|
get_type_hints,
|
||||||
)
|
)
|
||||||
from typing import get_origin as get_origin_og
|
from typing import get_origin as get_origin_og
|
||||||
|
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
from typing_extensions import is_typeddict
|
from pydantic.v1.fields import ModelField
|
||||||
|
|
||||||
import reflex
|
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
|
||||||
|
|
||||||
try:
|
|
||||||
from pydantic.v1.fields import ModelField
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
from pydantic.fields import (
|
|
||||||
ModelField, # pyright: ignore [reportAttributeAccessIssue]
|
|
||||||
)
|
|
||||||
|
|
||||||
from sqlalchemy.ext.associationproxy import AssociationProxyInstance
|
from sqlalchemy.ext.associationproxy import AssociationProxyInstance
|
||||||
from sqlalchemy.ext.hybrid import hybrid_property
|
from sqlalchemy.ext.hybrid import hybrid_property
|
||||||
from sqlalchemy.orm import DeclarativeBase, Mapped, QueryableAttribute, Relationship
|
from sqlalchemy.orm import DeclarativeBase, Mapped, QueryableAttribute, Relationship
|
||||||
|
from typing_extensions import Self as Self
|
||||||
|
from typing_extensions import is_typeddict
|
||||||
|
from typing_extensions import override as override
|
||||||
|
|
||||||
|
import reflex
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
from reflex.base import Base
|
from reflex.base import Base
|
||||||
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.utils import console
|
from reflex.utils import console
|
||||||
|
|
||||||
if sys.version_info >= (3, 12):
|
|
||||||
from typing import override as override
|
|
||||||
else:
|
|
||||||
|
|
||||||
def override(func: Callable) -> Callable:
|
|
||||||
"""Fallback for @override decorator.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
func: The function to decorate.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
The unmodified function.
|
|
||||||
"""
|
|
||||||
return func
|
|
||||||
|
|
||||||
|
|
||||||
# Potential GenericAlias types for isinstance checks.
|
# Potential GenericAlias types for isinstance checks.
|
||||||
GenericAliasTypes = [_GenericAlias]
|
GenericAliasTypes = (_GenericAlias, GenericAlias, _SpecialGenericAlias)
|
||||||
|
|
||||||
with contextlib.suppress(ImportError):
|
|
||||||
# For newer versions of Python.
|
|
||||||
from types import GenericAlias
|
|
||||||
|
|
||||||
GenericAliasTypes.append(GenericAlias)
|
|
||||||
|
|
||||||
with contextlib.suppress(ImportError):
|
|
||||||
# For older versions of Python.
|
|
||||||
from typing import (
|
|
||||||
_SpecialGenericAlias, # pyright: ignore [reportAttributeAccessIssue]
|
|
||||||
)
|
|
||||||
|
|
||||||
GenericAliasTypes.append(_SpecialGenericAlias)
|
|
||||||
|
|
||||||
GenericAliasTypes = tuple(GenericAliasTypes)
|
|
||||||
|
|
||||||
# Potential Union types for isinstance checks (UnionType added in py3.10).
|
# Potential Union types for isinstance checks (UnionType added in py3.10).
|
||||||
UnionTypes = (Union, types.UnionType) if hasattr(types, "UnionType") else (Union,)
|
UnionTypes = (Union, types.UnionType) if hasattr(types, "UnionType") else (Union,)
|
||||||
@ -128,11 +91,6 @@ RESERVED_BACKEND_VAR_NAMES = {
|
|||||||
"_was_touched",
|
"_was_touched",
|
||||||
}
|
}
|
||||||
|
|
||||||
if sys.version_info >= (3, 11):
|
|
||||||
from typing import Self as Self
|
|
||||||
else:
|
|
||||||
from typing_extensions import Self as Self
|
|
||||||
|
|
||||||
|
|
||||||
class Unset:
|
class Unset:
|
||||||
"""A class to represent an unset value.
|
"""A class to represent an unset value.
|
||||||
|
@ -29,19 +29,22 @@ from typing import (
|
|||||||
Mapping,
|
Mapping,
|
||||||
NoReturn,
|
NoReturn,
|
||||||
Optional,
|
Optional,
|
||||||
|
ParamSpec,
|
||||||
Sequence,
|
Sequence,
|
||||||
Set,
|
Set,
|
||||||
Tuple,
|
Tuple,
|
||||||
Type,
|
Type,
|
||||||
|
TypeGuard,
|
||||||
TypeVar,
|
TypeVar,
|
||||||
Union,
|
Union,
|
||||||
cast,
|
cast,
|
||||||
get_args,
|
get_args,
|
||||||
|
get_type_hints,
|
||||||
overload,
|
overload,
|
||||||
)
|
)
|
||||||
|
|
||||||
from sqlalchemy.orm import DeclarativeBase
|
from sqlalchemy.orm import DeclarativeBase
|
||||||
from typing_extensions import ParamSpec, TypeGuard, deprecated, get_type_hints, override
|
from typing_extensions import deprecated, override
|
||||||
|
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
from reflex.base import Base
|
from reflex.base import Base
|
||||||
|
@ -4,9 +4,21 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import sys
|
import sys
|
||||||
from typing import Any, Callable, Optional, Sequence, Tuple, Type, Union, overload
|
from typing import (
|
||||||
|
Any,
|
||||||
from typing_extensions import Concatenate, Generic, ParamSpec, Protocol, TypeVar
|
Callable,
|
||||||
|
Concatenate,
|
||||||
|
Generic,
|
||||||
|
Optional,
|
||||||
|
ParamSpec,
|
||||||
|
Protocol,
|
||||||
|
Sequence,
|
||||||
|
Tuple,
|
||||||
|
Type,
|
||||||
|
TypeVar,
|
||||||
|
Union,
|
||||||
|
overload,
|
||||||
|
)
|
||||||
|
|
||||||
from reflex.utils import format
|
from reflex.utils import format
|
||||||
from reflex.utils.types import GenericType
|
from reflex.utils.types import GenericType
|
||||||
@ -29,9 +41,9 @@ class ReflexCallable(Protocol[P, R]):
|
|||||||
__call__: Callable[P, R]
|
__call__: Callable[P, R]
|
||||||
|
|
||||||
|
|
||||||
CALLABLE_TYPE = TypeVar("CALLABLE_TYPE", bound=ReflexCallable, infer_variance=True)
|
CALLABLE_TYPE = TypeVar("CALLABLE_TYPE", bound=ReflexCallable, covariant=True)
|
||||||
OTHER_CALLABLE_TYPE = TypeVar(
|
OTHER_CALLABLE_TYPE = TypeVar(
|
||||||
"OTHER_CALLABLE_TYPE", bound=ReflexCallable, infer_variance=True
|
"OTHER_CALLABLE_TYPE", bound=ReflexCallable, covariant=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,11 +17,12 @@ from typing import (
|
|||||||
Sequence,
|
Sequence,
|
||||||
Tuple,
|
Tuple,
|
||||||
Type,
|
Type,
|
||||||
|
TypeVar,
|
||||||
Union,
|
Union,
|
||||||
overload,
|
overload,
|
||||||
)
|
)
|
||||||
|
|
||||||
from typing_extensions import TypeVar
|
from typing_extensions import TypeVar as TypingExtensionsTypeVar
|
||||||
|
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
from reflex.constants.base import REFLEX_VAR_OPENING_TAG
|
from reflex.constants.base import REFLEX_VAR_OPENING_TAG
|
||||||
@ -58,7 +59,7 @@ if TYPE_CHECKING:
|
|||||||
from .object import ObjectVar
|
from .object import ObjectVar
|
||||||
|
|
||||||
|
|
||||||
STRING_TYPE = TypeVar("STRING_TYPE", default=str)
|
STRING_TYPE = TypingExtensionsTypeVar("STRING_TYPE", default=str)
|
||||||
|
|
||||||
|
|
||||||
class StringVar(Var[STRING_TYPE], python_types=str):
|
class StringVar(Var[STRING_TYPE], python_types=str):
|
||||||
@ -191,6 +192,22 @@ class StringVar(Var[STRING_TYPE], python_types=str):
|
|||||||
"""
|
"""
|
||||||
return string_upper_operation(self)
|
return string_upper_operation(self)
|
||||||
|
|
||||||
|
def title(self) -> StringVar:
|
||||||
|
"""Convert the string to title case.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The string title operation.
|
||||||
|
"""
|
||||||
|
return string_title_operation(self)
|
||||||
|
|
||||||
|
def capitalize(self) -> StringVar:
|
||||||
|
"""Capitalize the string.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The string capitalize operation.
|
||||||
|
"""
|
||||||
|
return string_capitalize_operation(self)
|
||||||
|
|
||||||
def strip(self) -> StringVar:
|
def strip(self) -> StringVar:
|
||||||
"""Strip the string.
|
"""Strip the string.
|
||||||
|
|
||||||
@ -482,6 +499,38 @@ def string_upper_operation(string: StringVar[Any]):
|
|||||||
return var_operation_return(js_expression=f"{string}.toUpperCase()", var_type=str)
|
return var_operation_return(js_expression=f"{string}.toUpperCase()", var_type=str)
|
||||||
|
|
||||||
|
|
||||||
|
@var_operation
|
||||||
|
def string_title_operation(string: StringVar[Any]):
|
||||||
|
"""Convert a string to title case.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
string: The string to convert.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The title case string.
|
||||||
|
"""
|
||||||
|
return var_operation_return(
|
||||||
|
js_expression=f"{string}.split(' ').map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(' ')",
|
||||||
|
var_type=str,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@var_operation
|
||||||
|
def string_capitalize_operation(string: StringVar[Any]):
|
||||||
|
"""Capitalize a string.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
string: The string to capitalize.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The capitalized string.
|
||||||
|
"""
|
||||||
|
return var_operation_return(
|
||||||
|
js_expression=f"(((s) => s.charAt(0).toUpperCase() + s.slice(1).toLowerCase())({string}))",
|
||||||
|
var_type=str,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@var_operation
|
@var_operation
|
||||||
def string_strip_operation(string: StringVar[Any]):
|
def string_strip_operation(string: StringVar[Any]):
|
||||||
"""Strip a string.
|
"""Strip a string.
|
||||||
|
@ -7,24 +7,19 @@ import pytest
|
|||||||
from selenium.common.exceptions import NoSuchElementException
|
from selenium.common.exceptions import NoSuchElementException
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
|
|
||||||
|
from reflex import constants
|
||||||
|
from reflex.config import environment
|
||||||
from reflex.testing import AppHarness, WebDriver
|
from reflex.testing import AppHarness, WebDriver
|
||||||
|
|
||||||
from .utils import SessionStorage
|
from .utils import SessionStorage
|
||||||
|
|
||||||
|
|
||||||
def ConnectionBanner(is_reflex_cloud: bool = False):
|
def ConnectionBanner():
|
||||||
"""App with a connection banner.
|
"""App with a connection banner."""
|
||||||
|
|
||||||
Args:
|
|
||||||
is_reflex_cloud: The value for config.is_reflex_cloud.
|
|
||||||
"""
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
import reflex as rx
|
import reflex as rx
|
||||||
|
|
||||||
# Simulate reflex cloud deploy
|
|
||||||
rx.config.get_config().is_reflex_cloud = is_reflex_cloud
|
|
||||||
|
|
||||||
class State(rx.State):
|
class State(rx.State):
|
||||||
foo: int = 0
|
foo: int = 0
|
||||||
|
|
||||||
@ -49,16 +44,17 @@ def ConnectionBanner(is_reflex_cloud: bool = False):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(
|
@pytest.fixture(
|
||||||
params=[False, True], ids=["reflex_cloud_disabled", "reflex_cloud_enabled"]
|
params=[constants.CompileContext.RUN, constants.CompileContext.DEPLOY],
|
||||||
|
ids=["compile_context_run", "compile_context_deploy"],
|
||||||
)
|
)
|
||||||
def simulate_is_reflex_cloud(request) -> bool:
|
def simulate_compile_context(request) -> constants.CompileContext:
|
||||||
"""Fixture to simulate reflex cloud deployment.
|
"""Fixture to simulate reflex cloud deployment.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
request: pytest request fixture.
|
request: pytest request fixture.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
True if reflex cloud is enabled, False otherwise.
|
The context to run the app with.
|
||||||
"""
|
"""
|
||||||
return request.param
|
return request.param
|
||||||
|
|
||||||
@ -66,25 +62,27 @@ def simulate_is_reflex_cloud(request) -> bool:
|
|||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def connection_banner(
|
def connection_banner(
|
||||||
tmp_path,
|
tmp_path,
|
||||||
simulate_is_reflex_cloud: bool,
|
simulate_compile_context: constants.CompileContext,
|
||||||
) -> Generator[AppHarness, None, None]:
|
) -> Generator[AppHarness, None, None]:
|
||||||
"""Start ConnectionBanner app at tmp_path via AppHarness.
|
"""Start ConnectionBanner app at tmp_path via AppHarness.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
tmp_path: pytest tmp_path fixture
|
tmp_path: pytest tmp_path fixture
|
||||||
simulate_is_reflex_cloud: Whether is_reflex_cloud is set for the app.
|
simulate_compile_context: Which context to run the app with.
|
||||||
|
|
||||||
Yields:
|
Yields:
|
||||||
running AppHarness instance
|
running AppHarness instance
|
||||||
"""
|
"""
|
||||||
|
environment.REFLEX_COMPILE_CONTEXT.set(simulate_compile_context)
|
||||||
|
|
||||||
with AppHarness.create(
|
with AppHarness.create(
|
||||||
root=tmp_path,
|
root=tmp_path,
|
||||||
app_source=functools.partial(
|
app_source=functools.partial(ConnectionBanner),
|
||||||
ConnectionBanner, is_reflex_cloud=simulate_is_reflex_cloud
|
app_name=(
|
||||||
|
"connection_banner_reflex_cloud"
|
||||||
|
if simulate_compile_context == constants.CompileContext.DEPLOY
|
||||||
|
else "connection_banner"
|
||||||
),
|
),
|
||||||
app_name="connection_banner_reflex_cloud"
|
|
||||||
if simulate_is_reflex_cloud
|
|
||||||
else "connection_banner",
|
|
||||||
) as harness:
|
) as harness:
|
||||||
yield harness
|
yield harness
|
||||||
|
|
||||||
@ -194,13 +192,13 @@ async def test_connection_banner(connection_banner: AppHarness):
|
|||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_cloud_banner(
|
async def test_cloud_banner(
|
||||||
connection_banner: AppHarness, simulate_is_reflex_cloud: bool
|
connection_banner: AppHarness, simulate_compile_context: constants.CompileContext
|
||||||
):
|
):
|
||||||
"""Test that the connection banner is displayed when the websocket drops.
|
"""Test that the connection banner is displayed when the websocket drops.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
connection_banner: AppHarness instance.
|
connection_banner: AppHarness instance.
|
||||||
simulate_is_reflex_cloud: Whether is_reflex_cloud is set for the app.
|
simulate_compile_context: Which context to set for the app.
|
||||||
"""
|
"""
|
||||||
assert connection_banner.app_instance is not None
|
assert connection_banner.app_instance is not None
|
||||||
assert connection_banner.backend is not None
|
assert connection_banner.backend is not None
|
||||||
@ -213,7 +211,7 @@ async def test_cloud_banner(
|
|||||||
|
|
||||||
driver.add_cookie({"name": "backend-enabled", "value": "false"})
|
driver.add_cookie({"name": "backend-enabled", "value": "false"})
|
||||||
driver.refresh()
|
driver.refresh()
|
||||||
if simulate_is_reflex_cloud:
|
if simulate_compile_context == constants.CompileContext.DEPLOY:
|
||||||
assert connection_banner._poll_for(lambda: has_cloud_banner(driver))
|
assert connection_banner._poll_for(lambda: has_cloud_banner(driver))
|
||||||
else:
|
else:
|
||||||
_assert_token(connection_banner, driver)
|
_assert_token(connection_banner, driver)
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
import pytest
|
import pytest
|
||||||
|
from pydantic.v1 import ValidationError
|
||||||
|
|
||||||
from reflex.components.props import NoExtrasAllowedProps
|
from reflex.components.props import NoExtrasAllowedProps
|
||||||
from reflex.utils.exceptions import InvalidPropValueError
|
from reflex.utils.exceptions import InvalidPropValueError
|
||||||
|
|
||||||
try:
|
|
||||||
from pydantic.v1 import ValidationError
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
from pydantic import ValidationError
|
|
||||||
|
|
||||||
|
|
||||||
class PropA(NoExtrasAllowedProps):
|
class PropA(NoExtrasAllowedProps):
|
||||||
"""Base prop class."""
|
"""Base prop class."""
|
||||||
|
Loading…
Reference in New Issue
Block a user