Merge branch 'main' into simon/gunicorn_max_request_limit
This commit is contained in:
commit
ec15549180
2
.github/actions/setup_build_env/action.yml
vendored
2
.github/actions/setup_build_env/action.yml
vendored
@ -18,7 +18,7 @@ inputs:
|
|||||||
poetry-version:
|
poetry-version:
|
||||||
description: 'Poetry version to install'
|
description: 'Poetry version to install'
|
||||||
required: false
|
required: false
|
||||||
default: '1.3.1'
|
default: '1.8.3'
|
||||||
run-poetry-install:
|
run-poetry-install:
|
||||||
description: 'Whether to run poetry install on current dir'
|
description: 'Whether to run poetry install on current dir'
|
||||||
required: false
|
required: false
|
||||||
|
2
.github/workflows/check_node_latest.yml
vendored
2
.github/workflows/check_node_latest.yml
vendored
@ -14,7 +14,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_latest_node:
|
check_latest_node:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.12']
|
python-version: ['3.12']
|
||||||
|
88
.github/workflows/check_outdated_dependencies.yml
vendored
Normal file
88
.github/workflows/check_outdated_dependencies.yml
vendored
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
name: check-outdated-dependencies
|
||||||
|
|
||||||
|
on:
|
||||||
|
push: # This will trigger the action when a pull request is opened or updated.
|
||||||
|
branches:
|
||||||
|
- 'release/**' # This will trigger the action when any branch starting with "release/" is created.
|
||||||
|
workflow_dispatch: # Allow manual triggering if needed.
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
backend:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: ./.github/actions/setup_build_env
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
run-poetry-install: true
|
||||||
|
create-venv-at-path: .venv
|
||||||
|
|
||||||
|
- name: Check outdated backend dependencies
|
||||||
|
run: |
|
||||||
|
outdated=$(poetry show -oT)
|
||||||
|
echo "Outdated:"
|
||||||
|
echo "$outdated"
|
||||||
|
|
||||||
|
filtered_outdated=$(echo "$outdated" | grep -vE 'pyright|ruff' || true)
|
||||||
|
|
||||||
|
if [ ! -z "$filtered_outdated" ]; then
|
||||||
|
echo "Outdated dependencies found:"
|
||||||
|
echo "$filtered_outdated"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "All dependencies are up to date. (pyright and ruff are ignored)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- uses: ./.github/actions/setup_build_env
|
||||||
|
with:
|
||||||
|
python-version: '3.10.11'
|
||||||
|
run-poetry-install: true
|
||||||
|
create-venv-at-path: .venv
|
||||||
|
- name: Clone Reflex Website Repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: reflex-dev/reflex-web
|
||||||
|
ref: main
|
||||||
|
path: reflex-web
|
||||||
|
- name: Install Requirements for reflex-web
|
||||||
|
working-directory: ./reflex-web
|
||||||
|
run: poetry run uv pip install -r requirements.txt
|
||||||
|
- name: Install additional dependencies for DB access
|
||||||
|
run: poetry run uv pip install psycopg2-binary
|
||||||
|
- name: Init Website for reflex-web
|
||||||
|
working-directory: ./reflex-web
|
||||||
|
run: poetry run reflex init
|
||||||
|
- name: Run Website and Check for errors
|
||||||
|
run: |
|
||||||
|
poetry run bash scripts/integration.sh ./reflex-web dev
|
||||||
|
- name: Check outdated frontend dependencies
|
||||||
|
working-directory: ./reflex-web/.web
|
||||||
|
run: |
|
||||||
|
raw_outdated=$(/home/runner/.local/share/reflex/bun/bin/bun outdated)
|
||||||
|
outdated=$(echo "$raw_outdated" | grep -vE '\|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\|' || true)
|
||||||
|
echo "Outdated:"
|
||||||
|
echo "$outdated"
|
||||||
|
|
||||||
|
# Ignore 3rd party dependencies that are not updated.
|
||||||
|
filtered_outdated=$(echo "$outdated" | grep -vE 'Package|@chakra-ui|lucide-react|@splinetool/runtime|ag-grid-react|framer-motion|react-markdown|remark-math|remark-gfm|rehype-katex|rehype-raw|remark-unwrap-images' || true)
|
||||||
|
no_extra=$(echo "$filtered_outdated" | grep -vE '\|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-' || true)
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -z "$no_extra" ]; then
|
||||||
|
echo "Outdated dependencies found:"
|
||||||
|
echo "$filtered_outdated"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "All dependencies are up to date. (3rd party packages are ignored)"
|
||||||
|
fi
|
||||||
|
|
@ -24,7 +24,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
state_manager: ['redis', 'memory']
|
state_manager: ['redis', 'memory']
|
||||||
python-version: ['3.11.5', '3.12.0']
|
python-version: ['3.11.5', '3.12.0']
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
services:
|
services:
|
||||||
# Label used to access the service container
|
# Label used to access the service container
|
||||||
redis:
|
redis:
|
||||||
|
45
.github/workflows/integration_tests.yml
vendored
45
.github/workflows/integration_tests.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# Show OS combos first in GUI
|
# Show OS combos first in GUI
|
||||||
os: [ubuntu-latest, windows-latest, macos-12]
|
os: [ubuntu-latest, windows-latest]
|
||||||
python-version: ['3.9.18', '3.10.13', '3.11.5', '3.12.0']
|
python-version: ['3.9.18', '3.10.13', '3.11.5', '3.12.0']
|
||||||
exclude:
|
exclude:
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
@ -122,7 +122,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# Show OS combos first in GUI
|
# Show OS combos first in GUI
|
||||||
os: [ubuntu-latest, windows-latest, macos-12]
|
os: [ubuntu-latest, windows-latest]
|
||||||
python-version: ['3.10.11', '3.11.4']
|
python-version: ['3.10.11', '3.11.4']
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -162,3 +162,44 @@ jobs:
|
|||||||
--python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}"
|
--python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}"
|
||||||
--pr-id "${{ github.event.pull_request.id }}" --branch-name "${{ github.head_ref || github.ref_name }}"
|
--pr-id "${{ github.event.pull_request.id }}" --branch-name "${{ github.head_ref || github.ref_name }}"
|
||||||
--app-name "reflex-web" --path ./reflex-web/.web
|
--app-name "reflex-web" --path ./reflex-web/.web
|
||||||
|
|
||||||
|
reflex-web-macos:
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version: ['3.11.5', '3.12.0']
|
||||||
|
runs-on: macos-12
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: ./.github/actions/setup_build_env
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
run-poetry-install: true
|
||||||
|
create-venv-at-path: .venv
|
||||||
|
- name: Clone Reflex Website Repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: reflex-dev/reflex-web
|
||||||
|
ref: main
|
||||||
|
path: reflex-web
|
||||||
|
- name: Install Requirements for reflex-web
|
||||||
|
working-directory: ./reflex-web
|
||||||
|
run: poetry run uv pip install -r requirements.txt
|
||||||
|
- name: Install additional dependencies for DB access
|
||||||
|
run: poetry run uv pip install psycopg2-binary
|
||||||
|
- name: Init Website for reflex-web
|
||||||
|
working-directory: ./reflex-web
|
||||||
|
run: poetry run reflex init
|
||||||
|
- name: Run Website and Check for errors
|
||||||
|
run: |
|
||||||
|
# Check that npm is home
|
||||||
|
npm -v
|
||||||
|
poetry run bash scripts/integration.sh ./reflex-web prod
|
||||||
|
- name: Measure and upload .web size
|
||||||
|
run:
|
||||||
|
poetry run python benchmarks/benchmark_web_size.py --os "${{ matrix.os }}"
|
||||||
|
--python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}"
|
||||||
|
--pr-id "${{ github.event.pull_request.id }}" --branch-name "${{ github.head_ref || github.ref_name }}"
|
||||||
|
--app-name "reflex-web" --path ./reflex-web/.web
|
||||||
|
|
31
.github/workflows/unit_tests.yml
vendored
31
.github/workflows/unit_tests.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-12]
|
os: [ubuntu-latest, windows-latest]
|
||||||
python-version: ['3.9.18', '3.10.13', '3.11.5', '3.12.0']
|
python-version: ['3.9.18', '3.10.13', '3.11.5', '3.12.0']
|
||||||
# Windows is a bit behind on Python version availability in Github
|
# Windows is a bit behind on Python version availability in Github
|
||||||
exclude:
|
exclude:
|
||||||
@ -41,6 +41,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
python-version: '3.9.13'
|
python-version: '3.9.13'
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
# Service containers to run with `runner-job`
|
# Service containers to run with `runner-job`
|
||||||
services:
|
services:
|
||||||
# Label used to access the service container
|
# Label used to access the service container
|
||||||
@ -78,4 +79,30 @@ jobs:
|
|||||||
export PYTHONUNBUFFERED=1
|
export PYTHONUNBUFFERED=1
|
||||||
poetry run uv pip install "pydantic~=1.10"
|
poetry run uv pip install "pydantic~=1.10"
|
||||||
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report=
|
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report=
|
||||||
- run: poetry run coverage html
|
- name: Generate coverage report
|
||||||
|
run: poetry run coverage html
|
||||||
|
|
||||||
|
unit-tests-macos:
|
||||||
|
timeout-minutes: 30
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version: ['3.9.18', '3.10.13', '3.11.5', '3.12.0']
|
||||||
|
runs-on: macos-12
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: ./.github/actions/setup_build_env
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
run-poetry-install: true
|
||||||
|
create-venv-at-path: .venv
|
||||||
|
- name: Run unit tests
|
||||||
|
run: |
|
||||||
|
export PYTHONUNBUFFERED=1
|
||||||
|
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report=
|
||||||
|
- name: Run unit tests w/ pydantic v1
|
||||||
|
run: |
|
||||||
|
export PYTHONUNBUFFERED=1
|
||||||
|
poetry run uv pip install "pydantic~=1.10"
|
||||||
|
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report=
|
@ -3,7 +3,7 @@ fail_fast: true
|
|||||||
repos:
|
repos:
|
||||||
|
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.4.10
|
rev: v0.6.9
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
args: [reflex, tests]
|
args: [reflex, tests]
|
||||||
@ -25,7 +25,7 @@ repos:
|
|||||||
rev: v1.1.313
|
rev: v1.1.313
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyright
|
- id: pyright
|
||||||
args: [integration, reflex, tests]
|
args: [reflex, tests]
|
||||||
language: system
|
language: system
|
||||||
|
|
||||||
- repo: https://github.com/terrencepreilly/darglint
|
- repo: https://github.com/terrencepreilly/darglint
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
[English](https://github.com/reflex-dev/reflex/blob/main/README.md) | [简体中文](https://github.com/reflex-dev/reflex/blob/main/docs/zh/zh_cn/README.md) | [繁體中文](https://github.com/reflex-dev/reflex/blob/main/docs/zh/zh_tw/README.md) | [Türkçe](https://github.com/reflex-dev/reflex/blob/main/docs/tr/README.md) | [हिंदी](https://github.com/reflex-dev/reflex/blob/main/docs/in/README.md) | [Português (Brasil)](https://github.com/reflex-dev/reflex/blob/main/docs/pt/pt_br/README.md) | [Italiano](https://github.com/reflex-dev/reflex/blob/main/docs/it/README.md) | [Español](https://github.com/reflex-dev/reflex/blob/main/docs/es/README.md) | [한국어](https://github.com/reflex-dev/reflex/blob/main/docs/kr/README.md) | [日本語](https://github.com/reflex-dev/reflex/blob/main/docs/ja/README.md) | [Deutsch](https://github.com/reflex-dev/reflex/blob/main/docs/de/README.md) | [Persian (پارسی)](https://github.com/reflex-dev/reflex/blob/main/docs/pe/README.md)
|
[English](https://github.com/reflex-dev/reflex/blob/main/README.md) | [简体中文](https://github.com/reflex-dev/reflex/blob/main/docs/zh/zh_cn/README.md) | [繁體中文](https://github.com/reflex-dev/reflex/blob/main/docs/zh/zh_tw/README.md) | [Türkçe](https://github.com/reflex-dev/reflex/blob/main/docs/tr/README.md) | [हिंदी](https://github.com/reflex-dev/reflex/blob/main/docs/in/README.md) | [Português (Brasil)](https://github.com/reflex-dev/reflex/blob/main/docs/pt/pt_br/README.md) | [Italiano](https://github.com/reflex-dev/reflex/blob/main/docs/it/README.md) | [Español](https://github.com/reflex-dev/reflex/blob/main/docs/es/README.md) | [한국어](https://github.com/reflex-dev/reflex/blob/main/docs/kr/README.md) | [日本語](https://github.com/reflex-dev/reflex/blob/main/docs/ja/README.md) | [Deutsch](https://github.com/reflex-dev/reflex/blob/main/docs/de/README.md) | [Persian (پارسی)](https://github.com/reflex-dev/reflex/blob/main/docs/pe/README.md) | [Tiếng Việt](https://github.com/reflex-dev/reflex/blob/main/docs/vi/README.md)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
267
docs/vi/README.md
Normal file
267
docs/vi/README.md
Normal file
@ -0,0 +1,267 @@
|
|||||||
|
```diff
|
||||||
|
+ Bạn đang tìm kiếm Pynecone? Bạn đã tìm đúng. Pynecone đã được đổi tên thành Reflex. +
|
||||||
|
```
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/reflex-dev/reflex/main/docs/images/reflex_dark.svg#gh-light-mode-only" alt="Reflex Logo" width="300px">
|
||||||
|
<img src="https://raw.githubusercontent.com/reflex-dev/reflex/main/docs/images/reflex_light.svg#gh-dark-mode-only" alt="Reflex Logo" width="300px">
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
### **✨ Ứng dụng web hiệu suất cao, tùy chỉnh bằng Python thuần. Deploy trong vài giây. ✨**
|
||||||
|
[](https://badge.fury.io/py/reflex)
|
||||||
|

|
||||||
|
[](https://reflex.dev/docs/getting-started/introduction)
|
||||||
|
[](https://discord.gg/T5WSbC2YtQ)
|
||||||
|
</div>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[English](https://github.com/reflex-dev/reflex/blob/main/README.md) | [简体中文](https://github.com/reflex-dev/reflex/blob/main/docs/zh/zh_cn/README.md) | [繁體中文](https://github.com/reflex-dev/reflex/blob/main/docs/zh/zh_tw/README.md) | [Türkçe](https://github.com/reflex-dev/reflex/blob/main/docs/tr/README.md) | [हिंदी](https://github.com/reflex-dev/reflex/blob/main/docs/in/README.md) | [Português (Brasil)](https://github.com/reflex-dev/reflex/blob/main/docs/pt/pt_br/README.md) | [Italiano](https://github.com/reflex-dev/reflex/blob/main/docs/it/README.md) | [Español](https://github.com/reflex-dev/reflex/blob/main/docs/es/README.md) | [한국어](https://github.com/reflex-dev/reflex/blob/main/docs/kr/README.md) | [日本語](https://github.com/reflex-dev/reflex/blob/main/docs/ja/README.md) | [Deutsch](https://github.com/reflex-dev/reflex/blob/main/docs/de/README.md) | [Persian (پارسی)](https://github.com/reflex-dev/reflex/blob/main/docs/pe/README.md) | [Tiếng Việt](https://github.com/reflex-dev/reflex/blob/main/docs/vi/README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Reflex
|
||||||
|
|
||||||
|
Reflex là một thư viện để xây dựng ứng dụng web toàn bộ bằng Python thuần.
|
||||||
|
|
||||||
|
Các tính năng chính:
|
||||||
|
* **Python thuần tuý** - Viết toàn bộ ứng dụng cả backend và frontend hoàn toàn bằng Python, không cần học JavaScript.
|
||||||
|
* **Full Flexibility** - Reflex dễ dàng để bắt đầu, nhưng cũng có thể mở rộng lên các ứng dụng phức tạp.
|
||||||
|
* **Deploy Instantly** - Sau khi xây dựng ứng dụng, bạn có thể triển khai bằng [một dòng lệnh](https://reflex.dev/docs/hosting/deploy-quick-start/) hoặc triển khai trên server của riêng bạn.
|
||||||
|
|
||||||
|
Đọc [bài viết về kiến trúc hệ thống](https://reflex.dev/blog/2024-03-21-reflex-architecture/#the-reflex-architecture) để hiểu rõ các hoạt động của Reflex.
|
||||||
|
|
||||||
|
## ⚙️ Cài đặt
|
||||||
|
|
||||||
|
Mở cửa sổ lệnh và chạy (Yêu cầu Python phiên bản 3.9+):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install reflex
|
||||||
|
```
|
||||||
|
|
||||||
|
## 🥳 Tạo ứng dụng đầu tiên
|
||||||
|
|
||||||
|
Cài đặt `reflex` cũng như cài đặt công cụ dòng lệnh `reflex`.
|
||||||
|
|
||||||
|
Kiểm tra việc cài đặt đã thành công hay chưa bằng cách tạo mới một ứng dụng. (Thay `my_app_name` bằng tên ứng dụng của bạn):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir my_app_name
|
||||||
|
cd my_app_name
|
||||||
|
reflex init
|
||||||
|
```
|
||||||
|
|
||||||
|
Lệnh này tạo ra một ứng dụng mẫu trong một thư mục mới.
|
||||||
|
|
||||||
|
Bạn có thể chạy ứng dụng ở chế độ phát triển.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
reflex run
|
||||||
|
```
|
||||||
|
|
||||||
|
Bạn có thể xem ứng dụng của bạn ở địa chỉ http://localhost:3000.
|
||||||
|
|
||||||
|
Bạn có thể thay đổi mã nguồn ở `my_app_name/my_app_name.py`. Reflex nhanh chóng làm mới và bạn có thể thấy thay đổi trên ứng dụng của bạn ngay lập tức khi bạn lưu file.
|
||||||
|
|
||||||
|
|
||||||
|
## 🫧 Ứng dụng ví dụ
|
||||||
|
|
||||||
|
Bắt đầu với ví dụ: tạo một ứng dụng tạo ảnh bằng [DALL·E](https://platform.openai.com/docs/guides/images/image-generation?context=node). Để cho đơn giản, chúng ta sẽ sử dụng [OpenAI API](https://platform.openai.com/docs/api-reference/authentication), nhưng bạn có thể sử dụng model của chính bạn được triển khai trên local.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/reflex-dev/reflex/main/docs/images/dalle.gif" alt="A frontend wrapper for DALL·E, shown in the process of generating an image." width="550" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Đây là toàn bộ đoạn mã để xây dựng ứng dụng trên. Nó được viết hoàn toàn trong một file Python!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import reflex as rx
|
||||||
|
import openai
|
||||||
|
|
||||||
|
openai_client = openai.OpenAI()
|
||||||
|
|
||||||
|
|
||||||
|
class State(rx.State):
|
||||||
|
"""The app state."""
|
||||||
|
|
||||||
|
prompt = ""
|
||||||
|
image_url = ""
|
||||||
|
processing = False
|
||||||
|
complete = False
|
||||||
|
|
||||||
|
def get_image(self):
|
||||||
|
"""Get the image from the prompt."""
|
||||||
|
if self.prompt == "":
|
||||||
|
return rx.window_alert("Prompt Empty")
|
||||||
|
|
||||||
|
self.processing, self.complete = True, False
|
||||||
|
yield
|
||||||
|
response = openai_client.images.generate(
|
||||||
|
prompt=self.prompt, n=1, size="1024x1024"
|
||||||
|
)
|
||||||
|
self.image_url = response.data[0].url
|
||||||
|
self.processing, self.complete = False, True
|
||||||
|
|
||||||
|
|
||||||
|
def index():
|
||||||
|
return rx.center(
|
||||||
|
rx.vstack(
|
||||||
|
rx.heading("DALL-E", font_size="1.5em"),
|
||||||
|
rx.input(
|
||||||
|
placeholder="Enter a prompt..",
|
||||||
|
on_blur=State.set_prompt,
|
||||||
|
width="25em",
|
||||||
|
),
|
||||||
|
rx.button(
|
||||||
|
"Generate Image",
|
||||||
|
on_click=State.get_image,
|
||||||
|
width="25em",
|
||||||
|
loading=State.processing
|
||||||
|
),
|
||||||
|
rx.cond(
|
||||||
|
State.complete,
|
||||||
|
rx.image(src=State.image_url, width="20em"),
|
||||||
|
),
|
||||||
|
align="center",
|
||||||
|
),
|
||||||
|
width="100%",
|
||||||
|
height="100vh",
|
||||||
|
)
|
||||||
|
|
||||||
|
# Add state and page to the app.
|
||||||
|
app = rx.App()
|
||||||
|
app.add_page(index, title="Reflex:DALL-E")
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Hãy phân tích chi tiết.
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="../images/dalle_colored_code_example.png" alt="Explaining the differences between backend and frontend parts of the DALL-E app." width="900" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
### **Reflex UI**
|
||||||
|
|
||||||
|
Bắt đầu với giao diện chính.
|
||||||
|
|
||||||
|
```python
|
||||||
|
def index():
|
||||||
|
return rx.center(
|
||||||
|
...
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
Hàm `index` định nghĩa phần giao diện chính của ứng dụng.
|
||||||
|
|
||||||
|
Chúng tôi sử dụng các component (thành phần) khác nhau như `center`, `vstack`, `input` và `button` để xây dựng giao diện phía trước.
|
||||||
|
Các component có thể được lồng vào nhau để tạo ra các bố cục phức tạp. Và bạn cũng có thể sử dụng từ khoá `args` để tận dụng đầy đủ sức mạnh của CSS.
|
||||||
|
|
||||||
|
Reflex có đến hơn [60 component được xây dựng sẵn](https://reflex.dev/docs/library) để giúp bạn bắt đầu. Chúng ta có thể tạo ra một component mới khá dễ dàng, thao khảo: [xây dựng component của riêng bạn](https://reflex.dev/docs/wrapping-react/overview/).
|
||||||
|
|
||||||
|
### **State**
|
||||||
|
|
||||||
|
Reflex biểu diễn giao diện bằng các hàm của state (trạng thái).
|
||||||
|
|
||||||
|
```python
|
||||||
|
class State(rx.State):
|
||||||
|
"""The app state."""
|
||||||
|
prompt = ""
|
||||||
|
image_url = ""
|
||||||
|
processing = False
|
||||||
|
complete = False
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Một state định nghĩa các biến (được gọi là vars) có thể thay đổi trong một ứng dụng và cho phép các hàm có thể thay đổi chúng.
|
||||||
|
|
||||||
|
Tại đây state được cấu thành từ một `prompt` và `image_url`.
|
||||||
|
Có cũng những biến boolean `processing` và `complete`
|
||||||
|
để chỉ ra khi nào tắt nút (trong quá trình tạo hình ảnh)
|
||||||
|
và khi nào hiển thị hình ảnh kết quả.
|
||||||
|
|
||||||
|
### **Event Handlers**
|
||||||
|
|
||||||
|
```python
|
||||||
|
def get_image(self):
|
||||||
|
"""Get the image from the prompt."""
|
||||||
|
if self.prompt == "":
|
||||||
|
return rx.window_alert("Prompt Empty")
|
||||||
|
|
||||||
|
self.processing, self.complete = True, False
|
||||||
|
yield
|
||||||
|
response = openai_client.images.generate(
|
||||||
|
prompt=self.prompt, n=1, size="1024x1024"
|
||||||
|
)
|
||||||
|
self.image_url = response.data[0].url
|
||||||
|
self.processing, self.complete = False, True
|
||||||
|
```
|
||||||
|
|
||||||
|
Với các state, chúng ta định nghĩa các hàm có thể thay đổi state vars được gọi là event handlers. Event handler là cách chúng ta có thể thay đổi state trong Reflex. Chúng có thể là phản hồi khi người dùng thao tác, chằng hạn khi nhấn vào nút hoặc khi đang nhập trong text box. Các hành động này được gọi là event.
|
||||||
|
|
||||||
|
Ứng dụng DALL·E. của chúng ta có một event handler, `get_image` để lấy hình ảnh từ OpenAI API. Sử dụng từ khoá `yield` in ở giữa event handler để cập nhật giao diện. Hoặc giao diện có thể cập nhật ở cuối event handler.
|
||||||
|
|
||||||
|
### **Routing**
|
||||||
|
|
||||||
|
Cuối cùng, chúng ta định nghĩa một ứng dụng.
|
||||||
|
|
||||||
|
```python
|
||||||
|
app = rx.App()
|
||||||
|
```
|
||||||
|
|
||||||
|
Chúng ta thêm một trang ở đầu ứng dụng bằng index component. Chúng ta cũng thêm tiêu đề của ứng dụng để hiển thị lên trình duyệt.
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
app.add_page(index, title="DALL-E")
|
||||||
|
```
|
||||||
|
|
||||||
|
Bạn có thể tạo một ứng dụng nhiều trang bằng cách thêm trang.
|
||||||
|
|
||||||
|
## 📑 Tài liệu
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
|
||||||
|
📑 [Docs](https://reflex.dev/docs/getting-started/introduction) | 🗞️ [Blog](https://reflex.dev/blog) | 📱 [Component Library](https://reflex.dev/docs/library) | 🖼️ [Gallery](https://reflex.dev/docs/gallery) | 🛸 [Deployment](https://reflex.dev/docs/hosting/deploy-quick-start)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
## ✅ Status
|
||||||
|
|
||||||
|
Reflex phát hành vào tháng 12/2022 với tên là Pynecone.
|
||||||
|
|
||||||
|
Đến tháng 02/2024, chúng tôi tạo ra dịch vụ dưới phiên bản alpha! Trong thời gian này mọi người có thể triển khai ứng dụng hoàn toàn miễn phí. Xem [roadmap](https://github.com/reflex-dev/reflex/issues/2727) để biết thêm chi tiết.
|
||||||
|
|
||||||
|
Reflex ra phiên bản mới với các tính năng mới hàng tuần! Hãy :star: star và :eyes: watch repo này để thấy các cập nhật mới nhất.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Chúng tôi chào đón mọi đóng góp dù lớn hay nhỏ. Dưới đây là các cách để bắt đầu với cộng đồng Reflex.
|
||||||
|
|
||||||
|
- **Discord**: [Discord](https://discord.gg/T5WSbC2YtQ) của chúng tôi là nơi tốt nhất để nhờ sự giúp đỡ và thảo luận các bạn có thể đóng góp.
|
||||||
|
- **GitHub Discussions**: Là cách tốt nhất để thảo luận về các tính năng mà bạn có thể đóng góp hoặc những điều bạn chưa rõ.
|
||||||
|
- **GitHub Issues**: [Issues](https://github.com/reflex-dev/reflex/issues) là nơi tốt nhất để thông báo. Ngoài ra bạn có thể sửa chữa các vấn đề bằng cách tạo PR.
|
||||||
|
|
||||||
|
Chúng tôi luôn sẵn sàng tìm kiếm các contributor, bất kể kinh nghiệm. Để tham gia đóng góp, xin mời xem
|
||||||
|
[CONTIBUTING.md](https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md)
|
||||||
|
|
||||||
|
|
||||||
|
## Xin cảm ơn các Contributors:
|
||||||
|
<a href="https://github.com/reflex-dev/reflex/graphs/contributors">
|
||||||
|
<img src="https://contrib.rocks/image?repo=reflex-dev/reflex" />
|
||||||
|
</a>
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Reflex là mã nguồn mở và sử dụng giấy phép [Apache License 2.0](LICENSE).
|
1334
poetry.lock
generated
1334
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "reflex"
|
name = "reflex"
|
||||||
version = "0.6.2dev1"
|
version = "0.6.4dev1"
|
||||||
description = "Web apps in pure Python."
|
description = "Web apps in pure Python."
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
authors = [
|
authors = [
|
||||||
@ -27,7 +27,6 @@ packages = [
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.9"
|
python = "^3.9"
|
||||||
dill = ">=0.3.8,<0.4"
|
|
||||||
fastapi = ">=0.96.0,!=0.111.0,!=0.111.1"
|
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"
|
||||||
@ -54,7 +53,7 @@ reflex-hosting-cli = ">=0.1.2,<2.0"
|
|||||||
charset-normalizer = ">=3.3.2,<4.0"
|
charset-normalizer = ">=3.3.2,<4.0"
|
||||||
wheel = ">=0.42.0,<1.0"
|
wheel = ">=0.42.0,<1.0"
|
||||||
build = ">=1.0.3,<2.0"
|
build = ">=1.0.3,<2.0"
|
||||||
setuptools = ">=69.1.1,<70.2"
|
setuptools = ">=75.0"
|
||||||
httpx = ">=0.25.1,<1.0"
|
httpx = ">=0.25.1,<1.0"
|
||||||
twine = ">=4.0.0,<6.0"
|
twine = ">=4.0.0,<6.0"
|
||||||
tomlkit = ">=0.12.4,<1.0"
|
tomlkit = ">=0.12.4,<1.0"
|
||||||
@ -62,16 +61,16 @@ lazy_loader = ">=0.4"
|
|||||||
reflex-chakra = ">=0.6.0"
|
reflex-chakra = ">=0.6.0"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
pytest = ">=7.1.2,<8.0"
|
pytest = ">=7.1.2,<9.0"
|
||||||
pytest-mock = ">=3.10.0,<4.0"
|
pytest-mock = ">=3.10.0,<4.0"
|
||||||
pyright = ">=1.1.229,<1.1.335"
|
pyright = ">=1.1.229,<1.1.335"
|
||||||
darglint = ">=1.8.1,<2.0"
|
darglint = ">=1.8.1,<2.0"
|
||||||
toml = ">=0.10.2,<1.0"
|
toml = ">=0.10.2,<1.0"
|
||||||
pytest-asyncio = ">=0.20.1,<0.22.0" # https://github.com/pytest-dev/pytest-asyncio/issues/706
|
pytest-asyncio = ">=0.24.0"
|
||||||
pytest-cov = ">=4.0.0,<5.0"
|
pytest-cov = ">=4.0.0,<6.0"
|
||||||
ruff = "^0.4.9"
|
ruff = "^0.6.9"
|
||||||
pandas = ">=2.1.1,<3.0"
|
pandas = ">=2.1.1,<3.0"
|
||||||
pillow = ">=10.0.0,<11.0"
|
pillow = ">=10.0.0,<12.0"
|
||||||
plotly = ">=5.13.0,<6.0"
|
plotly = ">=5.13.0,<6.0"
|
||||||
asynctest = ">=0.13.0,<1.0"
|
asynctest = ">=0.13.0,<1.0"
|
||||||
pre-commit = ">=3.2.1"
|
pre-commit = ">=3.2.1"
|
||||||
@ -101,3 +100,7 @@ lint.pydocstyle.convention = "google"
|
|||||||
"reflex/.templates/*.py" = ["D100", "D103", "D104"]
|
"reflex/.templates/*.py" = ["D100", "D103", "D104"]
|
||||||
"*.pyi" = ["D301", "D415", "D417", "D418", "E742"]
|
"*.pyi" = ["D301", "D415", "D417", "D418", "E742"]
|
||||||
"*/blank.py" = ["I001"]
|
"*/blank.py" = ["I001"]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
asyncio_default_fixture_loop_scope = "function"
|
||||||
|
asyncio_mode = "auto"
|
@ -7,10 +7,9 @@ import '/styles/styles.css'
|
|||||||
{% block declaration %}
|
{% block declaration %}
|
||||||
import { EventLoopProvider, StateProvider, defaultColorMode } from "/utils/context.js";
|
import { EventLoopProvider, StateProvider, defaultColorMode } from "/utils/context.js";
|
||||||
import { ThemeProvider } from 'next-themes'
|
import { ThemeProvider } from 'next-themes'
|
||||||
import * as React from "react";
|
{% for library_alias, library_path in window_libraries %}
|
||||||
import * as utils_context from "/utils/context.js";
|
import * as {{library_alias}} from "{{library_path}}";
|
||||||
import * as utils_state from "/utils/state.js";
|
{% endfor %}
|
||||||
import * as radix from "@radix-ui/themes";
|
|
||||||
|
|
||||||
{% for custom_code in custom_codes %}
|
{% for custom_code in custom_codes %}
|
||||||
{{custom_code}}
|
{{custom_code}}
|
||||||
@ -33,10 +32,9 @@ export default function MyApp({ Component, pageProps }) {
|
|||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
// Make contexts and state objects available globally for dynamic eval'd components
|
// Make contexts and state objects available globally for dynamic eval'd components
|
||||||
let windowImports = {
|
let windowImports = {
|
||||||
"react": React,
|
{% for library_alias, library_path in window_libraries %}
|
||||||
"@radix-ui/themes": radix,
|
"{{library_path}}": {{library_alias}},
|
||||||
"/utils/context": utils_context,
|
{% endfor %}
|
||||||
"/utils/state": utils_state,
|
|
||||||
};
|
};
|
||||||
window["__reflex"] = windowImports;
|
window["__reflex"] = windowImports;
|
||||||
}, []);
|
}, []);
|
||||||
|
29
reflex/.templates/web/components/shiki/code.js
Normal file
29
reflex/.templates/web/components/shiki/code.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import { useEffect, useState } from "react"
|
||||||
|
import { codeToHtml} from "shiki"
|
||||||
|
|
||||||
|
export function Code ({code, theme, language, transformers, ...divProps}) {
|
||||||
|
const [codeResult, setCodeResult] = useState("")
|
||||||
|
useEffect(() => {
|
||||||
|
async function fetchCode() {
|
||||||
|
let final_code;
|
||||||
|
|
||||||
|
if (Array.isArray(code)) {
|
||||||
|
final_code = code[0];
|
||||||
|
} else {
|
||||||
|
final_code = code;
|
||||||
|
}
|
||||||
|
const result = await codeToHtml(final_code, {
|
||||||
|
lang: language,
|
||||||
|
theme,
|
||||||
|
transformers
|
||||||
|
});
|
||||||
|
setCodeResult(result);
|
||||||
|
}
|
||||||
|
fetchCode();
|
||||||
|
}, [code, language, theme, transformers]
|
||||||
|
|
||||||
|
)
|
||||||
|
return (
|
||||||
|
<div dangerouslySetInnerHTML={{__html: codeResult}} {...divProps} ></div>
|
||||||
|
)
|
||||||
|
}
|
@ -544,13 +544,19 @@ export const uploadFiles = async (
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an event object.
|
* Create an event object.
|
||||||
* @param name The name of the event.
|
* @param {string} name The name of the event.
|
||||||
* @param payload The payload of the event.
|
* @param {Object.<string, Any>} payload The payload of the event.
|
||||||
* @param handler The client handler to process event.
|
* @param {Object.<string, (number|boolean)>} event_actions The actions to take on the event.
|
||||||
|
* @param {string} handler The client handler to process event.
|
||||||
* @returns The event object.
|
* @returns The event object.
|
||||||
*/
|
*/
|
||||||
export const Event = (name, payload = {}, handler = null) => {
|
export const Event = (
|
||||||
return { name, payload, handler };
|
name,
|
||||||
|
payload = {},
|
||||||
|
event_actions = {},
|
||||||
|
handler = null
|
||||||
|
) => {
|
||||||
|
return { name, payload, handler, event_actions };
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -676,6 +682,12 @@ export const useEventLoop = (
|
|||||||
if (!(args instanceof Array)) {
|
if (!(args instanceof Array)) {
|
||||||
args = [args];
|
args = [args];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
event_actions = events.reduce(
|
||||||
|
(acc, e) => ({ ...acc, ...e.event_actions }),
|
||||||
|
event_actions ?? {}
|
||||||
|
);
|
||||||
|
|
||||||
const _e = args.filter((o) => o?.preventDefault !== undefined)[0];
|
const _e = args.filter((o) => o?.preventDefault !== undefined)[0];
|
||||||
|
|
||||||
if (event_actions?.preventDefault && _e?.preventDefault) {
|
if (event_actions?.preventDefault && _e?.preventDefault) {
|
||||||
@ -731,6 +743,7 @@ export const useEventLoop = (
|
|||||||
addEvents([
|
addEvents([
|
||||||
Event(`${exception_state_name}.handle_frontend_exception`, {
|
Event(`${exception_state_name}.handle_frontend_exception`, {
|
||||||
stack: error.stack,
|
stack: error.stack,
|
||||||
|
component_stack: "",
|
||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
return false;
|
return false;
|
||||||
@ -742,6 +755,7 @@ export const useEventLoop = (
|
|||||||
addEvents([
|
addEvents([
|
||||||
Event(`${exception_state_name}.handle_frontend_exception`, {
|
Event(`${exception_state_name}.handle_frontend_exception`, {
|
||||||
stack: event.reason.stack,
|
stack: event.reason.stack,
|
||||||
|
component_stack: "",
|
||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
return false;
|
return false;
|
||||||
|
@ -89,6 +89,8 @@ from reflex.utils import (
|
|||||||
lazy_loader,
|
lazy_loader,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from .event import event as event
|
||||||
|
|
||||||
# import this here explicitly to avoid returning the page module since page attr has the
|
# import this here explicitly to avoid returning the page module since page attr has the
|
||||||
# same name as page module(page.py)
|
# same name as page module(page.py)
|
||||||
from .page import page as page
|
from .page import page as page
|
||||||
@ -331,12 +333,11 @@ _MAPPING: dict = {
|
|||||||
"style": ["Style", "toggle_color_mode"],
|
"style": ["Style", "toggle_color_mode"],
|
||||||
"utils.imports": ["ImportVar"],
|
"utils.imports": ["ImportVar"],
|
||||||
"utils.serializers": ["serializer"],
|
"utils.serializers": ["serializer"],
|
||||||
"vars": ["Var"],
|
"vars": ["Var", "field", "Field"],
|
||||||
}
|
}
|
||||||
|
|
||||||
_SUBMODULES: set[str] = {
|
_SUBMODULES: set[str] = {
|
||||||
"components",
|
"components",
|
||||||
"event",
|
|
||||||
"app",
|
"app",
|
||||||
"style",
|
"style",
|
||||||
"admin",
|
"admin",
|
||||||
|
@ -11,7 +11,6 @@ from . import base as base
|
|||||||
from . import compiler as compiler
|
from . import compiler as compiler
|
||||||
from . import components as components
|
from . import components as components
|
||||||
from . import config as config
|
from . import config as config
|
||||||
from . import event as event
|
|
||||||
from . import model as model
|
from . import model as model
|
||||||
from . import style as style
|
from . import style as style
|
||||||
from . import testing as testing
|
from . import testing as testing
|
||||||
@ -161,6 +160,7 @@ from .event import clear_local_storage as clear_local_storage
|
|||||||
from .event import clear_session_storage as clear_session_storage
|
from .event import clear_session_storage as clear_session_storage
|
||||||
from .event import console_log as console_log
|
from .event import console_log as console_log
|
||||||
from .event import download as download
|
from .event import download as download
|
||||||
|
from .event import event as event
|
||||||
from .event import prevent_default as prevent_default
|
from .event import prevent_default as prevent_default
|
||||||
from .event import redirect as redirect
|
from .event import redirect as redirect
|
||||||
from .event import remove_cookie as remove_cookie
|
from .event import remove_cookie as remove_cookie
|
||||||
@ -189,7 +189,9 @@ from .style import Style as Style
|
|||||||
from .style import toggle_color_mode as toggle_color_mode
|
from .style import toggle_color_mode as toggle_color_mode
|
||||||
from .utils.imports import ImportVar as ImportVar
|
from .utils.imports import ImportVar as ImportVar
|
||||||
from .utils.serializers import serializer as serializer
|
from .utils.serializers import serializer as serializer
|
||||||
|
from .vars import Field as Field
|
||||||
from .vars import Var as Var
|
from .vars import Var as Var
|
||||||
|
from .vars import field as field
|
||||||
|
|
||||||
del compat
|
del compat
|
||||||
RADIX_THEMES_MAPPING: dict
|
RADIX_THEMES_MAPPING: dict
|
||||||
|
@ -64,7 +64,7 @@ from reflex.components.core.client_side_routing import (
|
|||||||
)
|
)
|
||||||
from reflex.components.core.upload import Upload, get_upload_dir
|
from reflex.components.core.upload import Upload, get_upload_dir
|
||||||
from reflex.components.radix import themes
|
from reflex.components.radix import themes
|
||||||
from reflex.config import get_config
|
from reflex.config import environment, get_config
|
||||||
from reflex.event import Event, EventHandler, EventSpec, window_alert
|
from reflex.event import Event, EventHandler, EventSpec, window_alert
|
||||||
from reflex.model import Model, get_db_status
|
from reflex.model import Model, get_db_status
|
||||||
from reflex.page import (
|
from reflex.page import (
|
||||||
@ -431,25 +431,12 @@ class App(MiddlewareMixin, LifespanMixin, Base):
|
|||||||
The generated component.
|
The generated component.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
VarOperationTypeError: When an invalid component var related function is passed.
|
|
||||||
TypeError: When an invalid component function is passed.
|
|
||||||
exceptions.MatchTypeError: If the return types of match cases in rx.match are different.
|
exceptions.MatchTypeError: If the return types of match cases in rx.match are different.
|
||||||
"""
|
"""
|
||||||
from reflex.utils.exceptions import VarOperationTypeError
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return component if isinstance(component, Component) else component()
|
return component if isinstance(component, Component) else component()
|
||||||
except exceptions.MatchTypeError:
|
except exceptions.MatchTypeError:
|
||||||
raise
|
raise
|
||||||
except TypeError as e:
|
|
||||||
message = str(e)
|
|
||||||
if "Var" in message:
|
|
||||||
raise VarOperationTypeError(
|
|
||||||
"You may be trying to use an invalid Python function on a state var. "
|
|
||||||
"When referencing a var inside your render code, only limited var operations are supported. "
|
|
||||||
"See the var operation docs here: https://reflex.dev/docs/vars/var-operations/"
|
|
||||||
) from e
|
|
||||||
raise e
|
|
||||||
|
|
||||||
def add_page(
|
def add_page(
|
||||||
self,
|
self,
|
||||||
@ -970,15 +957,16 @@ class App(MiddlewareMixin, LifespanMixin, Base):
|
|||||||
executor = None
|
executor = None
|
||||||
if (
|
if (
|
||||||
platform.system() in ("Linux", "Darwin")
|
platform.system() in ("Linux", "Darwin")
|
||||||
and os.environ.get("REFLEX_COMPILE_PROCESSES") is not None
|
and (number_of_processes := environment.REFLEX_COMPILE_PROCESSES)
|
||||||
|
is not None
|
||||||
):
|
):
|
||||||
executor = concurrent.futures.ProcessPoolExecutor(
|
executor = concurrent.futures.ProcessPoolExecutor(
|
||||||
max_workers=int(os.environ.get("REFLEX_COMPILE_PROCESSES", 0)) or None,
|
max_workers=number_of_processes,
|
||||||
mp_context=multiprocessing.get_context("fork"),
|
mp_context=multiprocessing.get_context("fork"),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
executor = concurrent.futures.ThreadPoolExecutor(
|
executor = concurrent.futures.ThreadPoolExecutor(
|
||||||
max_workers=int(os.environ.get("REFLEX_COMPILE_THREADS", 0)) or None,
|
max_workers=environment.REFLEX_COMPILE_THREADS
|
||||||
)
|
)
|
||||||
|
|
||||||
with executor:
|
with executor:
|
||||||
@ -1536,7 +1524,9 @@ class EventNamespace(AsyncNamespace):
|
|||||||
"""
|
"""
|
||||||
fields = json.loads(data)
|
fields = json.loads(data)
|
||||||
# Get the event.
|
# Get the event.
|
||||||
event = Event(**{k: v for k, v in fields.items() if k != "handler"})
|
event = Event(
|
||||||
|
**{k: v for k, v in fields.items() if k not in ("handler", "event_actions")}
|
||||||
|
)
|
||||||
|
|
||||||
self.token_to_sid[event.token] = sid
|
self.token_to_sid[event.token] = sid
|
||||||
self.sid_to_token[sid] = event.token
|
self.sid_to_token[sid] = event.token
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Dict, Iterable, Optional, Type, Union
|
from typing import Dict, Iterable, Optional, Type, Union
|
||||||
@ -16,7 +15,7 @@ from reflex.components.component import (
|
|||||||
CustomComponent,
|
CustomComponent,
|
||||||
StatefulComponent,
|
StatefulComponent,
|
||||||
)
|
)
|
||||||
from reflex.config import get_config
|
from reflex.config import environment, get_config
|
||||||
from reflex.state import BaseState
|
from reflex.state import BaseState
|
||||||
from reflex.style import SYSTEM_COLOR_MODE
|
from reflex.style import SYSTEM_COLOR_MODE
|
||||||
from reflex.utils.exec import is_prod_mode
|
from reflex.utils.exec import is_prod_mode
|
||||||
@ -40,6 +39,20 @@ def _compile_document_root(root: Component) -> str:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def _normalize_library_name(lib: str) -> str:
|
||||||
|
"""Normalize the library name.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
lib: The library name to normalize.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The normalized library name.
|
||||||
|
"""
|
||||||
|
if lib == "react":
|
||||||
|
return "React"
|
||||||
|
return lib.replace("@", "").replace("/", "_").replace("-", "_")
|
||||||
|
|
||||||
|
|
||||||
def _compile_app(app_root: Component) -> str:
|
def _compile_app(app_root: Component) -> str:
|
||||||
"""Compile the app template component.
|
"""Compile the app template component.
|
||||||
|
|
||||||
@ -49,10 +62,20 @@ def _compile_app(app_root: Component) -> str:
|
|||||||
Returns:
|
Returns:
|
||||||
The compiled app.
|
The compiled app.
|
||||||
"""
|
"""
|
||||||
|
from reflex.components.dynamic import bundled_libraries
|
||||||
|
|
||||||
|
window_libraries = [
|
||||||
|
(_normalize_library_name(name), name) for name in bundled_libraries
|
||||||
|
] + [
|
||||||
|
("utils_context", f"/{constants.Dirs.UTILS}/context"),
|
||||||
|
("utils_state", f"/{constants.Dirs.UTILS}/state"),
|
||||||
|
]
|
||||||
|
|
||||||
return templates.APP_ROOT.render(
|
return templates.APP_ROOT.render(
|
||||||
imports=utils.compile_imports(app_root._get_all_imports()),
|
imports=utils.compile_imports(app_root._get_all_imports()),
|
||||||
custom_codes=app_root._get_all_custom_code(),
|
custom_codes=app_root._get_all_custom_code(),
|
||||||
hooks={**app_root._get_all_hooks_internal(), **app_root._get_all_hooks()},
|
hooks={**app_root._get_all_hooks_internal(), **app_root._get_all_hooks()},
|
||||||
|
window_libraries=window_libraries,
|
||||||
render=app_root.render(),
|
render=app_root.render(),
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -503,7 +526,7 @@ def remove_tailwind_from_postcss() -> tuple[str, str]:
|
|||||||
|
|
||||||
def purge_web_pages_dir():
|
def purge_web_pages_dir():
|
||||||
"""Empty out .web/pages directory."""
|
"""Empty out .web/pages directory."""
|
||||||
if not is_prod_mode() and os.environ.get("REFLEX_PERSIST_WEB_DIR"):
|
if not is_prod_mode() and environment.REFLEX_PERSIST_WEB_DIR:
|
||||||
# Skip purging the web directory in dev mode if REFLEX_PERSIST_WEB_DIR is set.
|
# Skip purging the web directory in dev mode if REFLEX_PERSIST_WEB_DIR is set.
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.base.fragment import Fragment
|
from reflex.components.base.fragment import Fragment
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -22,41 +22,21 @@ class AppWrap(Fragment):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AppWrap":
|
) -> "AppWrap":
|
||||||
"""Create a new AppWrap component.
|
"""Create a new AppWrap component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -22,41 +22,21 @@ class Body(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Body":
|
) -> "Body":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -22,41 +22,21 @@ class NextDocumentLib(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "NextDocumentLib":
|
) -> "NextDocumentLib":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -89,41 +69,21 @@ class Html(NextDocumentLib):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Html":
|
) -> "Html":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -155,41 +115,21 @@ class DocumentHead(NextDocumentLib):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DocumentHead":
|
) -> "DocumentHead":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -221,41 +161,21 @@ class Main(NextDocumentLib):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Main":
|
) -> "Main":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -287,41 +207,21 @@ class NextScript(NextDocumentLib):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "NextScript":
|
) -> "NextScript":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -2,16 +2,32 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import List
|
from typing import Dict, List, Tuple
|
||||||
|
|
||||||
from reflex.compiler.compiler import _compile_component
|
from reflex.compiler.compiler import _compile_component
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.components.el import div, p
|
from reflex.components.el import div, p
|
||||||
from reflex.constants import Hooks, Imports
|
from reflex.event import EventHandler
|
||||||
from reflex.event import EventChain, EventHandler
|
from reflex.state import FrontendEventExceptionState
|
||||||
from reflex.utils.imports import ImportVar
|
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
from reflex.vars.function import FunctionVar
|
|
||||||
|
|
||||||
|
def on_error_spec(
|
||||||
|
error: Var[Dict[str, str]], info: Var[Dict[str, str]]
|
||||||
|
) -> Tuple[Var[str], Var[str]]:
|
||||||
|
"""The spec for the on_error event handler.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
error: The error message.
|
||||||
|
info: Additional information about the error.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The arguments for the event handler.
|
||||||
|
"""
|
||||||
|
return (
|
||||||
|
error.stack,
|
||||||
|
info.componentStack,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ErrorBoundary(Component):
|
class ErrorBoundary(Component):
|
||||||
@ -21,31 +37,13 @@ class ErrorBoundary(Component):
|
|||||||
tag = "ErrorBoundary"
|
tag = "ErrorBoundary"
|
||||||
|
|
||||||
# Fired when the boundary catches an error.
|
# Fired when the boundary catches an error.
|
||||||
on_error: EventHandler[lambda error, info: [error, info]] = Var( # type: ignore
|
on_error: EventHandler[on_error_spec]
|
||||||
"logFrontendError"
|
|
||||||
).to(FunctionVar, EventChain)
|
|
||||||
|
|
||||||
# Rendered instead of the children when an error is caught.
|
# Rendered instead of the children when an error is caught.
|
||||||
Fallback_component: Var[Component] = Var(_js_expr="Fallback")._replace(
|
Fallback_component: Var[Component] = Var(_js_expr="Fallback")._replace(
|
||||||
_var_type=Component
|
_var_type=Component
|
||||||
)
|
)
|
||||||
|
|
||||||
def add_imports(self) -> dict[str, list[ImportVar]]:
|
|
||||||
"""Add imports for the component.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
The imports to add.
|
|
||||||
"""
|
|
||||||
return Imports.EVENTS
|
|
||||||
|
|
||||||
def add_hooks(self) -> List[str | Var]:
|
|
||||||
"""Add hooks for the component.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
The hooks to add.
|
|
||||||
"""
|
|
||||||
return [Hooks.EVENTS, Hooks.FRONTEND_ERRORS]
|
|
||||||
|
|
||||||
def add_custom_code(self) -> List[str]:
|
def add_custom_code(self) -> List[str]:
|
||||||
"""Add custom Javascript code into the page that contains this component.
|
"""Add custom Javascript code into the page that contains this component.
|
||||||
|
|
||||||
@ -75,5 +73,20 @@ class ErrorBoundary(Component):
|
|||||||
"""
|
"""
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def create(cls, *children, **props):
|
||||||
|
"""Create an ErrorBoundary component.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
*children: The children of the component.
|
||||||
|
**props: The props of the component.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The ErrorBoundary component.
|
||||||
|
"""
|
||||||
|
if "on_error" not in props:
|
||||||
|
props["on_error"] = FrontendEventExceptionState.handle_frontend_exception
|
||||||
|
return super().create(*children, **props)
|
||||||
|
|
||||||
|
|
||||||
error_boundary = ErrorBoundary.create
|
error_boundary = ErrorBoundary.create
|
||||||
|
@ -3,17 +3,18 @@
|
|||||||
# ------------------- 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, Callable, Dict, List, Optional, Union, overload
|
from typing import Any, Dict, List, Optional, Tuple, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportVar
|
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
|
def on_error_spec(
|
||||||
|
error: Var[Dict[str, str]], info: Var[Dict[str, str]]
|
||||||
|
) -> Tuple[Var[str], Var[str]]: ...
|
||||||
|
|
||||||
class ErrorBoundary(Component):
|
class ErrorBoundary(Component):
|
||||||
def add_imports(self) -> dict[str, list[ImportVar]]: ...
|
|
||||||
def add_hooks(self) -> List[str | Var]: ...
|
|
||||||
def add_custom_code(self) -> List[str]: ...
|
def add_custom_code(self) -> List[str]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -27,45 +28,25 @@ class ErrorBoundary(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_error: Optional[EventType[str, str]] = None,
|
||||||
on_double_click: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_error: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ErrorBoundary":
|
) -> "ErrorBoundary":
|
||||||
"""Create the component.
|
"""Create an ErrorBoundary component.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the component.
|
*children: The children of the component.
|
||||||
@ -79,7 +60,7 @@ class ErrorBoundary(Component):
|
|||||||
**props: The props of the component.
|
**props: The props of the component.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The component.
|
The ErrorBoundary component.
|
||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -22,41 +22,21 @@ class Fragment(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Fragment":
|
) -> "Fragment":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component, MemoizationLeaf
|
from reflex.components.component import Component, MemoizationLeaf
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -22,41 +22,21 @@ class NextHeadLib(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "NextHeadLib":
|
) -> "NextHeadLib":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -88,41 +68,21 @@ class Head(NextHeadLib, MemoizationLeaf):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Head":
|
) -> "Head":
|
||||||
"""Create a new memoization leaf component.
|
"""Create a new memoization leaf component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -24,41 +24,21 @@ class RawLink(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "RawLink":
|
) -> "RawLink":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -99,41 +79,21 @@ class ScriptTag(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ScriptTag":
|
) -> "ScriptTag":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -23,41 +23,21 @@ class Title(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Title":
|
) -> "Title":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -94,41 +74,21 @@ class Meta(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Meta":
|
) -> "Meta":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -170,41 +130,21 @@ class Description(Meta):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Description":
|
) -> "Description":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -246,41 +186,21 @@ class Image(Meta):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Image":
|
) -> "Image":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -8,7 +8,7 @@ from __future__ import annotations
|
|||||||
from typing import Literal
|
from typing import Literal
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, empty_event
|
||||||
from reflex.vars.base import LiteralVar, Var
|
from reflex.vars.base import LiteralVar, Var
|
||||||
|
|
||||||
|
|
||||||
@ -35,13 +35,13 @@ class Script(Component):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Triggered when the script is loading
|
# Triggered when the script is loading
|
||||||
on_load: EventHandler[lambda: []]
|
on_load: EventHandler[empty_event]
|
||||||
|
|
||||||
# Triggered when the script has loaded
|
# Triggered when the script has loaded
|
||||||
on_ready: EventHandler[lambda: []]
|
on_ready: EventHandler[empty_event]
|
||||||
|
|
||||||
# Triggered when the script has errored
|
# Triggered when the script has errored
|
||||||
on_error: EventHandler[lambda: []]
|
on_error: EventHandler[empty_event]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(cls, *children, **props) -> Component:
|
def create(cls, *children, **props) -> Component:
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -29,44 +29,24 @@ class Script(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_error: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_load: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
on_error: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_load: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_ready: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_ready: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Script":
|
) -> "Script":
|
||||||
"""Create an inline or user-defined script.
|
"""Create an inline or user-defined script.
|
||||||
|
@ -36,12 +36,16 @@ from reflex.constants import (
|
|||||||
MemoizationMode,
|
MemoizationMode,
|
||||||
PageNames,
|
PageNames,
|
||||||
)
|
)
|
||||||
|
from reflex.constants.compiler import SpecialAttributes
|
||||||
from reflex.event import (
|
from reflex.event import (
|
||||||
EventChain,
|
EventChain,
|
||||||
|
EventChainVar,
|
||||||
EventHandler,
|
EventHandler,
|
||||||
EventSpec,
|
EventSpec,
|
||||||
|
EventVar,
|
||||||
call_event_fn,
|
call_event_fn,
|
||||||
call_event_handler,
|
call_event_handler,
|
||||||
|
empty_event,
|
||||||
get_handler_args,
|
get_handler_args,
|
||||||
)
|
)
|
||||||
from reflex.style import Style, format_as_emotion
|
from reflex.style import Style, format_as_emotion
|
||||||
@ -472,6 +476,17 @@ class Component(BaseComponent, ABC):
|
|||||||
for key in kwargs["event_triggers"]:
|
for key in kwargs["event_triggers"]:
|
||||||
del kwargs[key]
|
del kwargs[key]
|
||||||
|
|
||||||
|
# Place data_ and aria_ attributes into custom_attrs
|
||||||
|
special_attributes = tuple(
|
||||||
|
key
|
||||||
|
for key in kwargs
|
||||||
|
if key not in fields and SpecialAttributes.is_special(key)
|
||||||
|
)
|
||||||
|
if special_attributes:
|
||||||
|
custom_attrs = kwargs.setdefault("custom_attrs", {})
|
||||||
|
for key in special_attributes:
|
||||||
|
custom_attrs[format.to_kebab_case(key)] = kwargs.pop(key)
|
||||||
|
|
||||||
# Add style props to the component.
|
# Add style props to the component.
|
||||||
style = kwargs.get("style", {})
|
style = kwargs.get("style", {})
|
||||||
if isinstance(style, List):
|
if isinstance(style, List):
|
||||||
@ -491,8 +506,6 @@ class Component(BaseComponent, ABC):
|
|||||||
**{attr: value for attr, value in kwargs.items() if attr not in fields},
|
**{attr: value for attr, value in kwargs.items() if attr not in fields},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if "custom_attrs" not in kwargs:
|
|
||||||
kwargs["custom_attrs"] = {}
|
|
||||||
|
|
||||||
# Convert class_name to str if it's list
|
# Convert class_name to str if it's list
|
||||||
class_name = kwargs.get("class_name", "")
|
class_name = kwargs.get("class_name", "")
|
||||||
@ -514,7 +527,7 @@ class Component(BaseComponent, ABC):
|
|||||||
Var,
|
Var,
|
||||||
EventHandler,
|
EventHandler,
|
||||||
EventSpec,
|
EventSpec,
|
||||||
List[Union[EventHandler, EventSpec]],
|
List[Union[EventHandler, EventSpec, EventVar]],
|
||||||
Callable,
|
Callable,
|
||||||
],
|
],
|
||||||
) -> Union[EventChain, Var]:
|
) -> Union[EventChain, Var]:
|
||||||
@ -532,11 +545,16 @@ class Component(BaseComponent, ABC):
|
|||||||
"""
|
"""
|
||||||
# If it's an event chain var, return it.
|
# If it's an event chain var, return it.
|
||||||
if isinstance(value, Var):
|
if isinstance(value, Var):
|
||||||
if value._var_type is not EventChain:
|
if isinstance(value, EventChainVar):
|
||||||
raise ValueError(
|
|
||||||
f"Invalid event chain: {repr(value)} of type {type(value)}"
|
|
||||||
)
|
|
||||||
return value
|
return value
|
||||||
|
elif isinstance(value, EventVar):
|
||||||
|
value = [value]
|
||||||
|
elif issubclass(value._var_type, (EventChain, EventSpec)):
|
||||||
|
return self._create_event_chain(args_spec, value.guess_type())
|
||||||
|
else:
|
||||||
|
raise ValueError(
|
||||||
|
f"Invalid event chain: {str(value)} of type {value._var_type}"
|
||||||
|
)
|
||||||
elif isinstance(value, EventChain):
|
elif isinstance(value, EventChain):
|
||||||
# Trust that the caller knows what they're doing passing an EventChain directly
|
# Trust that the caller knows what they're doing passing an EventChain directly
|
||||||
return value
|
return value
|
||||||
@ -547,7 +565,7 @@ class Component(BaseComponent, ABC):
|
|||||||
|
|
||||||
# If the input is a list of event handlers, create an event chain.
|
# If the input is a list of event handlers, create an event chain.
|
||||||
if isinstance(value, List):
|
if isinstance(value, List):
|
||||||
events: list[EventSpec] = []
|
events: List[Union[EventSpec, EventVar]] = []
|
||||||
for v in value:
|
for v in value:
|
||||||
if isinstance(v, (EventHandler, EventSpec)):
|
if isinstance(v, (EventHandler, EventSpec)):
|
||||||
# Call the event handler to get the event.
|
# Call the event handler to get the event.
|
||||||
@ -561,6 +579,8 @@ class Component(BaseComponent, ABC):
|
|||||||
"lambda inside an EventChain list."
|
"lambda inside an EventChain list."
|
||||||
)
|
)
|
||||||
events.extend(result)
|
events.extend(result)
|
||||||
|
elif isinstance(v, EventVar):
|
||||||
|
events.append(v)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Invalid event: {v}")
|
raise ValueError(f"Invalid event: {v}")
|
||||||
|
|
||||||
@ -570,32 +590,30 @@ class Component(BaseComponent, ABC):
|
|||||||
if isinstance(result, Var):
|
if isinstance(result, Var):
|
||||||
# Recursively call this function if the lambda returned an EventChain Var.
|
# Recursively call this function if the lambda returned an EventChain Var.
|
||||||
return self._create_event_chain(args_spec, result)
|
return self._create_event_chain(args_spec, result)
|
||||||
events = result
|
events = [*result]
|
||||||
|
|
||||||
# Otherwise, raise an error.
|
# Otherwise, raise an error.
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Invalid event chain: {value}")
|
raise ValueError(f"Invalid event chain: {value}")
|
||||||
|
|
||||||
# Add args to the event specs if necessary.
|
# Add args to the event specs if necessary.
|
||||||
events = [e.with_args(get_handler_args(e)) for e in events]
|
events = [
|
||||||
|
(e.with_args(get_handler_args(e)) if isinstance(e, EventSpec) else e)
|
||||||
# Collect event_actions from each spec
|
for e in events
|
||||||
event_actions = {}
|
]
|
||||||
for e in events:
|
|
||||||
event_actions.update(e.event_actions)
|
|
||||||
|
|
||||||
# Return the event chain.
|
# Return the event chain.
|
||||||
if isinstance(args_spec, Var):
|
if isinstance(args_spec, Var):
|
||||||
return EventChain(
|
return EventChain(
|
||||||
events=events,
|
events=events,
|
||||||
args_spec=None,
|
args_spec=None,
|
||||||
event_actions=event_actions,
|
event_actions={},
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return EventChain(
|
return EventChain(
|
||||||
events=events,
|
events=events,
|
||||||
args_spec=args_spec,
|
args_spec=args_spec,
|
||||||
event_actions=event_actions,
|
event_actions={},
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_event_triggers(self) -> Dict[str, Any]:
|
def get_event_triggers(self) -> Dict[str, Any]:
|
||||||
@ -606,21 +624,21 @@ class Component(BaseComponent, ABC):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
default_triggers = {
|
default_triggers = {
|
||||||
EventTriggers.ON_FOCUS: lambda: [],
|
EventTriggers.ON_FOCUS: empty_event,
|
||||||
EventTriggers.ON_BLUR: lambda: [],
|
EventTriggers.ON_BLUR: empty_event,
|
||||||
EventTriggers.ON_CLICK: lambda: [],
|
EventTriggers.ON_CLICK: empty_event,
|
||||||
EventTriggers.ON_CONTEXT_MENU: lambda: [],
|
EventTriggers.ON_CONTEXT_MENU: empty_event,
|
||||||
EventTriggers.ON_DOUBLE_CLICK: lambda: [],
|
EventTriggers.ON_DOUBLE_CLICK: empty_event,
|
||||||
EventTriggers.ON_MOUSE_DOWN: lambda: [],
|
EventTriggers.ON_MOUSE_DOWN: empty_event,
|
||||||
EventTriggers.ON_MOUSE_ENTER: lambda: [],
|
EventTriggers.ON_MOUSE_ENTER: empty_event,
|
||||||
EventTriggers.ON_MOUSE_LEAVE: lambda: [],
|
EventTriggers.ON_MOUSE_LEAVE: empty_event,
|
||||||
EventTriggers.ON_MOUSE_MOVE: lambda: [],
|
EventTriggers.ON_MOUSE_MOVE: empty_event,
|
||||||
EventTriggers.ON_MOUSE_OUT: lambda: [],
|
EventTriggers.ON_MOUSE_OUT: empty_event,
|
||||||
EventTriggers.ON_MOUSE_OVER: lambda: [],
|
EventTriggers.ON_MOUSE_OVER: empty_event,
|
||||||
EventTriggers.ON_MOUSE_UP: lambda: [],
|
EventTriggers.ON_MOUSE_UP: empty_event,
|
||||||
EventTriggers.ON_SCROLL: lambda: [],
|
EventTriggers.ON_SCROLL: empty_event,
|
||||||
EventTriggers.ON_MOUNT: lambda: [],
|
EventTriggers.ON_MOUNT: empty_event,
|
||||||
EventTriggers.ON_UNMOUNT: lambda: [],
|
EventTriggers.ON_UNMOUNT: empty_event,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Look for component specific triggers,
|
# Look for component specific triggers,
|
||||||
@ -631,7 +649,7 @@ class Component(BaseComponent, ABC):
|
|||||||
annotation = field.annotation
|
annotation = field.annotation
|
||||||
if (metadata := getattr(annotation, "__metadata__", None)) is not None:
|
if (metadata := getattr(annotation, "__metadata__", None)) is not None:
|
||||||
args_spec = metadata[0]
|
args_spec = metadata[0]
|
||||||
default_triggers[field.name] = args_spec or (lambda: [])
|
default_triggers[field.name] = args_spec or (empty_event) # type: ignore
|
||||||
return default_triggers
|
return default_triggers
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
@ -1030,8 +1048,11 @@ class Component(BaseComponent, ABC):
|
|||||||
elif isinstance(event, EventChain):
|
elif isinstance(event, EventChain):
|
||||||
event_args = []
|
event_args = []
|
||||||
for spec in event.events:
|
for spec in event.events:
|
||||||
|
if isinstance(spec, EventSpec):
|
||||||
for args in spec.args:
|
for args in spec.args:
|
||||||
event_args.extend(args)
|
event_args.extend(args)
|
||||||
|
else:
|
||||||
|
event_args.append(spec)
|
||||||
yield event_trigger, event_args
|
yield event_trigger, event_args
|
||||||
|
|
||||||
def _get_vars(self, include_children: bool = False) -> list[Var]:
|
def _get_vars(self, include_children: bool = False) -> list[Var]:
|
||||||
@ -1105,8 +1126,12 @@ class Component(BaseComponent, ABC):
|
|||||||
for trigger in self.event_triggers.values():
|
for trigger in self.event_triggers.values():
|
||||||
if isinstance(trigger, EventChain):
|
if isinstance(trigger, EventChain):
|
||||||
for event in trigger.events:
|
for event in trigger.events:
|
||||||
|
if isinstance(event, EventSpec):
|
||||||
if event.handler.state_full_name:
|
if event.handler.state_full_name:
|
||||||
return True
|
return True
|
||||||
|
else:
|
||||||
|
if event._var_state:
|
||||||
|
return True
|
||||||
elif isinstance(trigger, Var) and trigger._var_state:
|
elif isinstance(trigger, Var) and trigger._var_state:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
@ -1681,7 +1706,7 @@ class CustomComponent(Component):
|
|||||||
value = self._create_event_chain(
|
value = self._create_event_chain(
|
||||||
value=value,
|
value=value,
|
||||||
args_spec=event_triggers_in_component_declaration.get(
|
args_spec=event_triggers_in_component_declaration.get(
|
||||||
key, lambda: []
|
key, empty_event
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
self.props[format.to_camel_case(key)] = value
|
self.props[format.to_camel_case(key)] = value
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.components.el.elements.typography import Div
|
from reflex.components.el.elements.typography import Div
|
||||||
from reflex.components.lucide.icon import Icon
|
from reflex.components.lucide.icon import Icon
|
||||||
from reflex.components.sonner.toast import Toaster, ToastProps
|
from reflex.components.sonner.toast import Toaster, ToastProps
|
||||||
from reflex.constants.compiler import CompileVars
|
from reflex.constants.compiler import CompileVars
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportVar
|
from reflex.utils.imports import ImportVar
|
||||||
from reflex.vars import VarData
|
from reflex.vars import VarData
|
||||||
@ -89,41 +89,21 @@ class ConnectionToaster(Toaster):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ConnectionToaster":
|
) -> "ConnectionToaster":
|
||||||
"""Create a connection toaster component.
|
"""Create a connection toaster component.
|
||||||
@ -169,41 +149,21 @@ class ConnectionBanner(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ConnectionBanner":
|
) -> "ConnectionBanner":
|
||||||
"""Create a connection banner component.
|
"""Create a connection banner component.
|
||||||
@ -228,41 +188,21 @@ class ConnectionModal(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ConnectionModal":
|
) -> "ConnectionModal":
|
||||||
"""Create a connection banner component.
|
"""Create a connection banner component.
|
||||||
@ -288,41 +228,21 @@ class WifiOffPulse(Icon):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "WifiOffPulse":
|
) -> "WifiOffPulse":
|
||||||
"""Create a wifi_off icon with an animated opacity pulse.
|
"""Create a wifi_off icon with an animated opacity pulse.
|
||||||
@ -381,41 +301,21 @@ class ConnectionPulser(Div):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ConnectionPulser":
|
) -> "ConnectionPulser":
|
||||||
"""Create a connection pulser component.
|
"""Create a connection pulser component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -26,41 +26,21 @@ class ClientSideRouting(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ClientSideRouting":
|
) -> "ClientSideRouting":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -95,41 +75,21 @@ class Default404Page(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Default404Page":
|
) -> "Default404Page":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Dict, List, Union
|
from typing import Dict, List, Tuple, Union
|
||||||
|
|
||||||
from reflex.components.base.fragment import Fragment
|
from reflex.components.base.fragment import Fragment
|
||||||
from reflex.components.tags.tag import Tag
|
from reflex.components.tags.tag import Tag
|
||||||
from reflex.event import EventChain, EventHandler
|
from reflex.event import EventChain, EventHandler, identity_event
|
||||||
from reflex.utils.format import format_prop, wrap
|
from reflex.utils.format import format_prop, wrap
|
||||||
from reflex.utils.imports import ImportVar
|
from reflex.utils.imports import ImportVar
|
||||||
from reflex.vars import get_unique_variable_name
|
from reflex.vars import get_unique_variable_name
|
||||||
@ -20,7 +20,7 @@ class Clipboard(Fragment):
|
|||||||
targets: Var[List[str]]
|
targets: Var[List[str]]
|
||||||
|
|
||||||
# Called when the user pastes data into the document. Data is a list of tuples of (mime_type, data). Binary types will be base64 encoded as a data uri.
|
# Called when the user pastes data into the document. Data is a list of tuples of (mime_type, data). Binary types will be base64 encoded as a data uri.
|
||||||
on_paste: EventHandler[lambda data: [data]]
|
on_paste: EventHandler[identity_event(List[Tuple[str, str]])]
|
||||||
|
|
||||||
# Save the original event actions for the on_paste event.
|
# Save the original event actions for the on_paste event.
|
||||||
on_paste_event_actions: Var[Dict[str, Union[bool, int]]]
|
on_paste_event_actions: Var[Dict[str, Union[bool, int]]]
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, List, Optional, Union, overload
|
from typing import Any, Dict, List, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.base.fragment import Fragment
|
from reflex.components.base.fragment import Fragment
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportVar
|
from reflex.utils.imports import ImportVar
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
@ -27,42 +27,22 @@ class Clipboard(Fragment):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_paste: Optional[EventType[list[tuple[str, str]]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_paste: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Clipboard":
|
) -> "Clipboard":
|
||||||
"""Create a Clipboard component.
|
"""Create a Clipboard component.
|
||||||
|
@ -6,7 +6,7 @@ from typing import Any, Type, Union
|
|||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.constants import EventTriggers
|
from reflex.constants import EventTriggers
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, empty_event
|
||||||
from reflex.vars import VarData
|
from reflex.vars import VarData
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ class DebounceInput(Component):
|
|||||||
element: Var[Type[Component]]
|
element: Var[Type[Component]]
|
||||||
|
|
||||||
# Fired when the input value changes
|
# Fired when the input value changes
|
||||||
on_change: EventHandler[lambda e0: [e0.value]]
|
on_change: EventHandler[empty_event]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(cls, *children: Component, **props: Any) -> Component:
|
def create(cls, *children: Component, **props: Any) -> Component:
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Type, Union, overload
|
from typing import Any, Dict, Optional, Type, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -31,42 +31,22 @@ class DebounceInput(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DebounceInput":
|
) -> "DebounceInput":
|
||||||
"""Create a DebounceInput component.
|
"""Create a DebounceInput component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.el.elements.typography import Div
|
from reflex.components.el.elements.typography import Div
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -49,41 +49,21 @@ class Html(Div):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Html":
|
) -> "Html":
|
||||||
"""Create a html component.
|
"""Create a html component.
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Callable, ClassVar, Dict, List, Optional
|
from typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple
|
||||||
|
|
||||||
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
|
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
|
||||||
from reflex.components.el.elements.forms import Input
|
from reflex.components.el.elements.forms import Input
|
||||||
from reflex.components.radix.themes.layout.box import Box
|
from reflex.components.radix.themes.layout.box import Box
|
||||||
|
from reflex.config import environment
|
||||||
from reflex.constants import Dirs
|
from reflex.constants import Dirs
|
||||||
from reflex.event import (
|
from reflex.event import (
|
||||||
CallableEventSpec,
|
CallableEventSpec,
|
||||||
@ -125,9 +125,7 @@ def get_upload_dir() -> Path:
|
|||||||
"""
|
"""
|
||||||
Upload.is_used = True
|
Upload.is_used = True
|
||||||
|
|
||||||
uploaded_files_dir = Path(
|
uploaded_files_dir = environment.REFLEX_UPLOADED_FILES_DIR
|
||||||
os.environ.get("REFLEX_UPLOADED_FILES_DIR", "./uploaded_files")
|
|
||||||
)
|
|
||||||
uploaded_files_dir.mkdir(parents=True, exist_ok=True)
|
uploaded_files_dir.mkdir(parents=True, exist_ok=True)
|
||||||
return uploaded_files_dir
|
return uploaded_files_dir
|
||||||
|
|
||||||
@ -157,7 +155,7 @@ def get_upload_url(file_path: str) -> Var[str]:
|
|||||||
return uploaded_files_url_prefix + "/" + file_path
|
return uploaded_files_url_prefix + "/" + file_path
|
||||||
|
|
||||||
|
|
||||||
def _on_drop_spec(files: Var):
|
def _on_drop_spec(files: Var) -> Tuple[Var[Any]]:
|
||||||
"""Args spec for the on_drop event trigger.
|
"""Args spec for the on_drop event trigger.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -166,7 +164,7 @@ def _on_drop_spec(files: Var):
|
|||||||
Returns:
|
Returns:
|
||||||
Signature for on_drop handler including the files to upload.
|
Signature for on_drop handler including the files to upload.
|
||||||
"""
|
"""
|
||||||
return [files]
|
return (files,)
|
||||||
|
|
||||||
|
|
||||||
class UploadFilesProvider(Component):
|
class UploadFilesProvider(Component):
|
||||||
@ -179,7 +177,7 @@ class UploadFilesProvider(Component):
|
|||||||
class Upload(MemoizationLeaf):
|
class Upload(MemoizationLeaf):
|
||||||
"""A file upload component."""
|
"""A file upload component."""
|
||||||
|
|
||||||
library = "react-dropzone@14.2.3"
|
library = "react-dropzone@14.2.10"
|
||||||
|
|
||||||
tag = "ReactDropzone"
|
tag = "ReactDropzone"
|
||||||
|
|
||||||
|
@ -4,14 +4,14 @@
|
|||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Callable, ClassVar, Dict, List, Optional, Union, overload
|
from typing import Any, ClassVar, Dict, List, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
|
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
|
||||||
from reflex.constants import Dirs
|
from reflex.constants import Dirs
|
||||||
from reflex.event import (
|
from reflex.event import (
|
||||||
CallableEventSpec,
|
CallableEventSpec,
|
||||||
EventHandler,
|
|
||||||
EventSpec,
|
EventSpec,
|
||||||
|
EventType,
|
||||||
)
|
)
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportVar
|
from reflex.utils.imports import ImportVar
|
||||||
@ -54,41 +54,21 @@ class UploadFilesProvider(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "UploadFilesProvider":
|
) -> "UploadFilesProvider":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -131,42 +111,22 @@ class Upload(MemoizationLeaf):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_drop: Optional[EventType[Any]] = None,
|
||||||
on_double_click: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_drop: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Upload":
|
) -> "Upload":
|
||||||
"""Create an upload component.
|
"""Create an upload component.
|
||||||
@ -216,42 +176,22 @@ class StyledUpload(Upload):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_drop: Optional[EventType[Any]] = None,
|
||||||
on_double_click: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_drop: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "StyledUpload":
|
) -> "StyledUpload":
|
||||||
"""Create the styled upload component.
|
"""Create the styled upload component.
|
||||||
@ -301,42 +241,22 @@ class UploadNamespace(ComponentNamespace):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_drop: Optional[EventType[Any]] = None,
|
||||||
on_double_click: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_drop: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "StyledUpload":
|
) -> "StyledUpload":
|
||||||
"""Create the styled upload component.
|
"""Create the styled upload component.
|
||||||
|
@ -381,7 +381,7 @@ for theme_name in dir(Theme):
|
|||||||
class CodeBlock(Component):
|
class CodeBlock(Component):
|
||||||
"""A code block."""
|
"""A code block."""
|
||||||
|
|
||||||
library = "react-syntax-highlighter@15.5.0"
|
library = "react-syntax-highlighter@15.6.1"
|
||||||
|
|
||||||
tag = "PrismAsyncLight"
|
tag = "PrismAsyncLight"
|
||||||
|
|
||||||
|
@ -4,11 +4,11 @@
|
|||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
import dataclasses
|
import dataclasses
|
||||||
from typing import Any, Callable, ClassVar, Dict, Literal, Optional, Union, overload
|
from typing import Any, ClassVar, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component, ComponentNamespace
|
from reflex.components.component import Component, ComponentNamespace
|
||||||
from reflex.constants.colors import Color
|
from reflex.constants.colors import Color
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
@ -939,41 +939,21 @@ class CodeBlock(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CodeBlock":
|
) -> "CodeBlock":
|
||||||
"""Create a text component.
|
"""Create a text component.
|
||||||
@ -1594,41 +1574,21 @@ class CodeblockNamespace(ComponentNamespace):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CodeBlock":
|
) -> "CodeBlock":
|
||||||
"""Create a text component.
|
"""Create a text component.
|
||||||
|
@ -3,12 +3,14 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Any, Dict, List, Literal, Optional, Union
|
from typing import Any, Dict, List, Literal, Optional, Tuple, 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
|
||||||
from reflex.components.literals import LiteralRowMarker
|
from reflex.components.literals import LiteralRowMarker
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, empty_event, identity_event
|
||||||
from reflex.utils import console, format, types
|
from reflex.utils import console, format, types
|
||||||
from reflex.utils.imports import ImportDict, ImportVar
|
from reflex.utils.imports import ImportDict, ImportVar
|
||||||
from reflex.utils.serializers import serializer
|
from reflex.utils.serializers import serializer
|
||||||
@ -120,15 +122,87 @@ def on_edit_spec(pos, data: dict[str, Any]):
|
|||||||
return [pos, data]
|
return [pos, data]
|
||||||
|
|
||||||
|
|
||||||
|
class Bounds(TypedDict):
|
||||||
|
"""The bounds of the group header."""
|
||||||
|
|
||||||
|
x: int
|
||||||
|
y: int
|
||||||
|
width: int
|
||||||
|
height: int
|
||||||
|
|
||||||
|
|
||||||
|
class CompatSelection(TypedDict):
|
||||||
|
"""The selection."""
|
||||||
|
|
||||||
|
items: list
|
||||||
|
|
||||||
|
|
||||||
|
class Rectangle(TypedDict):
|
||||||
|
"""The bounds of the group header."""
|
||||||
|
|
||||||
|
x: int
|
||||||
|
y: int
|
||||||
|
width: int
|
||||||
|
height: int
|
||||||
|
|
||||||
|
|
||||||
|
class GridSelectionCurrent(TypedDict):
|
||||||
|
"""The current selection."""
|
||||||
|
|
||||||
|
cell: list[int]
|
||||||
|
range: Rectangle
|
||||||
|
rangeStack: list[Rectangle]
|
||||||
|
|
||||||
|
|
||||||
|
class GridSelection(TypedDict):
|
||||||
|
"""The grid selection."""
|
||||||
|
|
||||||
|
current: Optional[GridSelectionCurrent]
|
||||||
|
columns: CompatSelection
|
||||||
|
rows: CompatSelection
|
||||||
|
|
||||||
|
|
||||||
|
class GroupHeaderClickedEventArgs(TypedDict):
|
||||||
|
"""The arguments for the group header clicked event."""
|
||||||
|
|
||||||
|
kind: str
|
||||||
|
group: str
|
||||||
|
location: list[int]
|
||||||
|
bounds: Bounds
|
||||||
|
isEdge: bool
|
||||||
|
shiftKey: bool
|
||||||
|
ctrlKey: bool
|
||||||
|
metaKey: bool
|
||||||
|
isTouch: bool
|
||||||
|
localEventX: int
|
||||||
|
localEventY: int
|
||||||
|
button: int
|
||||||
|
buttons: int
|
||||||
|
scrollEdge: list[int]
|
||||||
|
|
||||||
|
|
||||||
|
class GridCell(TypedDict):
|
||||||
|
"""The grid cell."""
|
||||||
|
|
||||||
|
span: Optional[List[int]]
|
||||||
|
|
||||||
|
|
||||||
|
class GridColumn(TypedDict):
|
||||||
|
"""The grid column."""
|
||||||
|
|
||||||
|
title: str
|
||||||
|
group: Optional[str]
|
||||||
|
|
||||||
|
|
||||||
class DataEditor(NoSSRComponent):
|
class DataEditor(NoSSRComponent):
|
||||||
"""The DataEditor Component."""
|
"""The DataEditor Component."""
|
||||||
|
|
||||||
tag = "DataEditor"
|
tag = "DataEditor"
|
||||||
is_default = True
|
is_default = True
|
||||||
library: str = "@glideapps/glide-data-grid@^5.3.0"
|
library: str = "@glideapps/glide-data-grid@^6.0.3"
|
||||||
lib_dependencies: List[str] = [
|
lib_dependencies: List[str] = [
|
||||||
"lodash@^4.17.21",
|
"lodash@^4.17.21",
|
||||||
"marked@^4.0.10",
|
"marked@^14.1.2",
|
||||||
"react-responsive-carousel@^3.2.7",
|
"react-responsive-carousel@^3.2.7",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -223,13 +297,13 @@ class DataEditor(NoSSRComponent):
|
|||||||
theme: Var[Union[DataEditorTheme, Dict]]
|
theme: Var[Union[DataEditorTheme, Dict]]
|
||||||
|
|
||||||
# Fired when a cell is activated.
|
# Fired when a cell is activated.
|
||||||
on_cell_activated: EventHandler[lambda pos: [pos]]
|
on_cell_activated: EventHandler[identity_event(Tuple[int, int])]
|
||||||
|
|
||||||
# Fired when a cell is clicked.
|
# Fired when a cell is clicked.
|
||||||
on_cell_clicked: EventHandler[lambda pos: [pos]]
|
on_cell_clicked: EventHandler[identity_event(Tuple[int, int])]
|
||||||
|
|
||||||
# Fired when a cell is right-clicked.
|
# Fired when a cell is right-clicked.
|
||||||
on_cell_context_menu: EventHandler[lambda pos: [pos]]
|
on_cell_context_menu: EventHandler[identity_event(Tuple[int, int])]
|
||||||
|
|
||||||
# Fired when a cell is edited.
|
# Fired when a cell is edited.
|
||||||
on_cell_edited: EventHandler[on_edit_spec]
|
on_cell_edited: EventHandler[on_edit_spec]
|
||||||
@ -238,37 +312,39 @@ class DataEditor(NoSSRComponent):
|
|||||||
on_group_header_clicked: EventHandler[on_edit_spec]
|
on_group_header_clicked: EventHandler[on_edit_spec]
|
||||||
|
|
||||||
# Fired when a group header is right-clicked.
|
# Fired when a group header is right-clicked.
|
||||||
on_group_header_context_menu: EventHandler[lambda grp_idx, data: [grp_idx, data]]
|
on_group_header_context_menu: EventHandler[
|
||||||
|
identity_event(int, GroupHeaderClickedEventArgs)
|
||||||
|
]
|
||||||
|
|
||||||
# Fired when a group header is renamed.
|
# Fired when a group header is renamed.
|
||||||
on_group_header_renamed: EventHandler[lambda idx, val: [idx, val]]
|
on_group_header_renamed: EventHandler[identity_event(str, str)]
|
||||||
|
|
||||||
# Fired when a header is clicked.
|
# Fired when a header is clicked.
|
||||||
on_header_clicked: EventHandler[lambda pos: [pos]]
|
on_header_clicked: EventHandler[identity_event(Tuple[int, int])]
|
||||||
|
|
||||||
# Fired when a header is right-clicked.
|
# Fired when a header is right-clicked.
|
||||||
on_header_context_menu: EventHandler[lambda pos: [pos]]
|
on_header_context_menu: EventHandler[identity_event(Tuple[int, int])]
|
||||||
|
|
||||||
# Fired when a header menu item is clicked.
|
# Fired when a header menu item is clicked.
|
||||||
on_header_menu_click: EventHandler[lambda col, pos: [col, pos]]
|
on_header_menu_click: EventHandler[identity_event(int, Rectangle)]
|
||||||
|
|
||||||
# Fired when an item is hovered.
|
# Fired when an item is hovered.
|
||||||
on_item_hovered: EventHandler[lambda pos: [pos]]
|
on_item_hovered: EventHandler[identity_event(Tuple[int, int])]
|
||||||
|
|
||||||
# Fired when a selection is deleted.
|
# Fired when a selection is deleted.
|
||||||
on_delete: EventHandler[lambda selection: [selection]]
|
on_delete: EventHandler[identity_event(GridSelection)]
|
||||||
|
|
||||||
# Fired when editing is finished.
|
# Fired when editing is finished.
|
||||||
on_finished_editing: EventHandler[lambda new_value, movement: [new_value, movement]]
|
on_finished_editing: EventHandler[identity_event(Union[GridCell, None], list[int])]
|
||||||
|
|
||||||
# Fired when a row is appended.
|
# Fired when a row is appended.
|
||||||
on_row_appended: EventHandler[lambda: []]
|
on_row_appended: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the selection is cleared.
|
# Fired when the selection is cleared.
|
||||||
on_selection_cleared: EventHandler[lambda: []]
|
on_selection_cleared: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when a column is resized.
|
# Fired when a column is resized.
|
||||||
on_column_resize: EventHandler[lambda col, width: [col, width]]
|
on_column_resize: EventHandler[identity_event(GridColumn, int)]
|
||||||
|
|
||||||
def add_imports(self) -> ImportDict:
|
def add_imports(self) -> ImportDict:
|
||||||
"""Add imports for the component.
|
"""Add imports for the component.
|
||||||
@ -329,7 +405,7 @@ class DataEditor(NoSSRComponent):
|
|||||||
|
|
||||||
columns = props.get("columns", [])
|
columns = props.get("columns", [])
|
||||||
data = props.get("data", [])
|
data = props.get("data", [])
|
||||||
rows = props.get("rows", None)
|
rows = props.get("rows")
|
||||||
|
|
||||||
# If rows is not provided, determine from data.
|
# If rows is not provided, determine from data.
|
||||||
if rows is None:
|
if rows is None:
|
||||||
|
@ -4,11 +4,13 @@
|
|||||||
# 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, Callable, Dict, List, Literal, Optional, Union, overload
|
from typing import Any, Dict, List, Literal, Optional, 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
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.utils.serializers import serializer
|
from reflex.utils.serializers import serializer
|
||||||
@ -78,6 +80,54 @@ class DataEditorTheme(Base):
|
|||||||
|
|
||||||
def on_edit_spec(pos, data: dict[str, Any]): ...
|
def on_edit_spec(pos, data: dict[str, Any]): ...
|
||||||
|
|
||||||
|
class Bounds(TypedDict):
|
||||||
|
x: int
|
||||||
|
y: int
|
||||||
|
width: int
|
||||||
|
height: int
|
||||||
|
|
||||||
|
class CompatSelection(TypedDict):
|
||||||
|
items: list
|
||||||
|
|
||||||
|
class Rectangle(TypedDict):
|
||||||
|
x: int
|
||||||
|
y: int
|
||||||
|
width: int
|
||||||
|
height: int
|
||||||
|
|
||||||
|
class GridSelectionCurrent(TypedDict):
|
||||||
|
cell: list[int]
|
||||||
|
range: Rectangle
|
||||||
|
rangeStack: list[Rectangle]
|
||||||
|
|
||||||
|
class GridSelection(TypedDict):
|
||||||
|
current: Optional[GridSelectionCurrent]
|
||||||
|
columns: CompatSelection
|
||||||
|
rows: CompatSelection
|
||||||
|
|
||||||
|
class GroupHeaderClickedEventArgs(TypedDict):
|
||||||
|
kind: str
|
||||||
|
group: str
|
||||||
|
location: list[int]
|
||||||
|
bounds: Bounds
|
||||||
|
isEdge: bool
|
||||||
|
shiftKey: bool
|
||||||
|
ctrlKey: bool
|
||||||
|
metaKey: bool
|
||||||
|
isTouch: bool
|
||||||
|
localEventX: int
|
||||||
|
localEventY: int
|
||||||
|
button: int
|
||||||
|
buttons: int
|
||||||
|
scrollEdge: list[int]
|
||||||
|
|
||||||
|
class GridCell(TypedDict):
|
||||||
|
span: Optional[List[int]]
|
||||||
|
|
||||||
|
class GridColumn(TypedDict):
|
||||||
|
title: str
|
||||||
|
group: Optional[str]
|
||||||
|
|
||||||
class DataEditor(NoSSRComponent):
|
class DataEditor(NoSSRComponent):
|
||||||
def add_imports(self) -> ImportDict: ...
|
def add_imports(self) -> ImportDict: ...
|
||||||
def add_hooks(self) -> list[str]: ...
|
def add_hooks(self) -> list[str]: ...
|
||||||
@ -135,87 +185,41 @@ class DataEditor(NoSSRComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_cell_activated: Optional[
|
on_cell_activated: Optional[EventType[tuple[int, int]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_cell_clicked: Optional[EventType[tuple[int, int]]] = None,
|
||||||
] = None,
|
on_cell_context_menu: Optional[EventType[tuple[int, int]]] = None,
|
||||||
on_cell_clicked: Optional[
|
on_cell_edited: Optional[EventType] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_column_resize: Optional[EventType[GridColumn, int]] = None,
|
||||||
on_cell_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_delete: Optional[EventType[GridSelection]] = None,
|
||||||
] = None,
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
on_cell_edited: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_column_resize: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_context_menu: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_delete: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_double_click: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_finished_editing: Optional[
|
on_finished_editing: Optional[
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
EventType[Union[GridCell, None], list[int]]
|
||||||
] = None,
|
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_group_header_clicked: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
] = None,
|
||||||
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
|
on_group_header_clicked: Optional[EventType] = None,
|
||||||
on_group_header_context_menu: Optional[
|
on_group_header_context_menu: Optional[
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
EventType[int, GroupHeaderClickedEventArgs]
|
||||||
] = None,
|
|
||||||
on_group_header_renamed: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_header_clicked: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_header_context_menu: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_header_menu_click: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_item_hovered: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_mouse_down: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_enter: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_row_appended: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_selection_cleared: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
] = None,
|
||||||
|
on_group_header_renamed: Optional[EventType[str, str]] = None,
|
||||||
|
on_header_clicked: Optional[EventType[tuple[int, int]]] = None,
|
||||||
|
on_header_context_menu: Optional[EventType[tuple[int, int]]] = None,
|
||||||
|
on_header_menu_click: Optional[EventType[int, Rectangle]] = None,
|
||||||
|
on_item_hovered: Optional[EventType[tuple[int, int]]] = 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_row_appended: Optional[EventType[[]]] = None,
|
||||||
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
|
on_selection_cleared: Optional[EventType[[]]] = None,
|
||||||
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
**props,
|
**props,
|
||||||
) -> "DataEditor":
|
) -> "DataEditor":
|
||||||
"""Create the DataEditor component.
|
"""Create the DataEditor component.
|
||||||
|
813
reflex/components/datadisplay/shiki_code_block.py
Normal file
813
reflex/components/datadisplay/shiki_code_block.py
Normal file
@ -0,0 +1,813 @@
|
|||||||
|
"""Shiki syntax hghlighter component."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import re
|
||||||
|
from collections import defaultdict
|
||||||
|
from typing import Any, Literal, Optional, Union
|
||||||
|
|
||||||
|
from reflex.base import Base
|
||||||
|
from reflex.components.component import Component, ComponentNamespace
|
||||||
|
from reflex.components.core.colors import color
|
||||||
|
from reflex.components.core.cond import color_mode_cond
|
||||||
|
from reflex.components.el.elements.forms import Button
|
||||||
|
from reflex.components.lucide.icon import Icon
|
||||||
|
from reflex.components.radix.themes.layout.box import Box
|
||||||
|
from reflex.event import call_script, set_clipboard
|
||||||
|
from reflex.style import Style
|
||||||
|
from reflex.utils.exceptions import VarTypeError
|
||||||
|
from reflex.utils.imports import ImportVar
|
||||||
|
from reflex.vars.base import LiteralVar, Var
|
||||||
|
from reflex.vars.function import FunctionStringVar
|
||||||
|
from reflex.vars.sequence import StringVar, string_replace_operation
|
||||||
|
|
||||||
|
|
||||||
|
def copy_script() -> Any:
|
||||||
|
"""Copy script for the code block and modify the child SVG element.
|
||||||
|
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Any: The result of calling the script.
|
||||||
|
"""
|
||||||
|
return call_script(
|
||||||
|
f"""
|
||||||
|
// Event listener for the parent click
|
||||||
|
document.addEventListener('click', function(event) {{
|
||||||
|
// Find the closest div (parent element)
|
||||||
|
const parent = event.target.closest('div');
|
||||||
|
// If the parent is found
|
||||||
|
if (parent) {{
|
||||||
|
// Find the SVG element within the parent
|
||||||
|
const svgIcon = parent.querySelector('svg');
|
||||||
|
// If the SVG exists, proceed with the script
|
||||||
|
if (svgIcon) {{
|
||||||
|
const originalPath = svgIcon.innerHTML;
|
||||||
|
const checkmarkPath = '<polyline points="20 6 9 17 4 12"></polyline>'; // Checkmark SVG path
|
||||||
|
function transition(element, scale, opacity) {{
|
||||||
|
element.style.transform = `scale(${{scale}})`;
|
||||||
|
element.style.opacity = opacity;
|
||||||
|
}}
|
||||||
|
// Animate the SVG
|
||||||
|
transition(svgIcon, 0, '0');
|
||||||
|
setTimeout(() => {{
|
||||||
|
svgIcon.innerHTML = checkmarkPath; // Replace content with checkmark
|
||||||
|
svgIcon.setAttribute('viewBox', '0 0 24 24'); // Adjust viewBox if necessary
|
||||||
|
transition(svgIcon, 1, '1');
|
||||||
|
setTimeout(() => {{
|
||||||
|
transition(svgIcon, 0, '0');
|
||||||
|
setTimeout(() => {{
|
||||||
|
svgIcon.innerHTML = originalPath; // Restore original SVG content
|
||||||
|
transition(svgIcon, 1, '1');
|
||||||
|
}}, 125);
|
||||||
|
}}, 600);
|
||||||
|
}}, 125);
|
||||||
|
}} else {{
|
||||||
|
// console.error('SVG element not found within the parent.');
|
||||||
|
}}
|
||||||
|
}} else {{
|
||||||
|
// console.error('Parent element not found.');
|
||||||
|
}}
|
||||||
|
}});
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
SHIKIJS_TRANSFORMER_FNS = {
|
||||||
|
"transformerNotationDiff",
|
||||||
|
"transformerNotationHighlight",
|
||||||
|
"transformerNotationWordHighlight",
|
||||||
|
"transformerNotationFocus",
|
||||||
|
"transformerNotationErrorLevel",
|
||||||
|
"transformerRenderWhitespace",
|
||||||
|
"transformerMetaHighlight",
|
||||||
|
"transformerMetaWordHighlight",
|
||||||
|
"transformerCompactLineOptions",
|
||||||
|
# TODO: this transformer when included adds a weird behavior which removes other code lines. Need to figure out why.
|
||||||
|
# "transformerRemoveLineBreak",
|
||||||
|
"transformerRemoveNotationEscape",
|
||||||
|
}
|
||||||
|
LINE_NUMBER_STYLING = {
|
||||||
|
"code": {
|
||||||
|
"counter-reset": "step",
|
||||||
|
"counter-increment": "step 0",
|
||||||
|
"display": "grid",
|
||||||
|
"line-height": "1.7",
|
||||||
|
"font-size": "0.875em",
|
||||||
|
},
|
||||||
|
"code .line::before": {
|
||||||
|
"content": "counter(step)",
|
||||||
|
"counter-increment": "step",
|
||||||
|
"width": "1rem",
|
||||||
|
"margin-right": "1.5rem",
|
||||||
|
"display": "inline-block",
|
||||||
|
"text-align": "right",
|
||||||
|
"color": "rgba(115,138,148,.4)",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
BOX_PARENT_STYLING = {
|
||||||
|
"pre": {
|
||||||
|
"margin": "0",
|
||||||
|
"padding": "24px",
|
||||||
|
"background": "transparent",
|
||||||
|
"overflow-x": "auto",
|
||||||
|
"border-radius": "6px",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
THEME_MAPPING = {
|
||||||
|
"light": "one-light",
|
||||||
|
"dark": "one-dark-pro",
|
||||||
|
"a11y-dark": "github-dark",
|
||||||
|
}
|
||||||
|
LANGUAGE_MAPPING = {"bash": "shellscript"}
|
||||||
|
LiteralCodeLanguage = Literal[
|
||||||
|
"abap",
|
||||||
|
"actionscript-3",
|
||||||
|
"ada",
|
||||||
|
"angular-html",
|
||||||
|
"angular-ts",
|
||||||
|
"apache",
|
||||||
|
"apex",
|
||||||
|
"apl",
|
||||||
|
"applescript",
|
||||||
|
"ara",
|
||||||
|
"asciidoc",
|
||||||
|
"asm",
|
||||||
|
"astro",
|
||||||
|
"awk",
|
||||||
|
"ballerina",
|
||||||
|
"bat",
|
||||||
|
"beancount",
|
||||||
|
"berry",
|
||||||
|
"bibtex",
|
||||||
|
"bicep",
|
||||||
|
"blade",
|
||||||
|
"c",
|
||||||
|
"cadence",
|
||||||
|
"clarity",
|
||||||
|
"clojure",
|
||||||
|
"cmake",
|
||||||
|
"cobol",
|
||||||
|
"codeowners",
|
||||||
|
"codeql",
|
||||||
|
"coffee",
|
||||||
|
"common-lisp",
|
||||||
|
"coq",
|
||||||
|
"cpp",
|
||||||
|
"crystal",
|
||||||
|
"csharp",
|
||||||
|
"css",
|
||||||
|
"csv",
|
||||||
|
"cue",
|
||||||
|
"cypher",
|
||||||
|
"d",
|
||||||
|
"dart",
|
||||||
|
"dax",
|
||||||
|
"desktop",
|
||||||
|
"diff",
|
||||||
|
"docker",
|
||||||
|
"dotenv",
|
||||||
|
"dream-maker",
|
||||||
|
"edge",
|
||||||
|
"elixir",
|
||||||
|
"elm",
|
||||||
|
"emacs-lisp",
|
||||||
|
"erb",
|
||||||
|
"erlang",
|
||||||
|
"fennel",
|
||||||
|
"fish",
|
||||||
|
"fluent",
|
||||||
|
"fortran-fixed-form",
|
||||||
|
"fortran-free-form",
|
||||||
|
"fsharp",
|
||||||
|
"gdresource",
|
||||||
|
"gdscript",
|
||||||
|
"gdshader",
|
||||||
|
"genie",
|
||||||
|
"gherkin",
|
||||||
|
"git-commit",
|
||||||
|
"git-rebase",
|
||||||
|
"gleam",
|
||||||
|
"glimmer-js",
|
||||||
|
"glimmer-ts",
|
||||||
|
"glsl",
|
||||||
|
"gnuplot",
|
||||||
|
"go",
|
||||||
|
"graphql",
|
||||||
|
"groovy",
|
||||||
|
"hack",
|
||||||
|
"haml",
|
||||||
|
"handlebars",
|
||||||
|
"haskell",
|
||||||
|
"haxe",
|
||||||
|
"hcl",
|
||||||
|
"hjson",
|
||||||
|
"hlsl",
|
||||||
|
"html",
|
||||||
|
"html-derivative",
|
||||||
|
"http",
|
||||||
|
"hxml",
|
||||||
|
"hy",
|
||||||
|
"imba",
|
||||||
|
"ini",
|
||||||
|
"java",
|
||||||
|
"javascript",
|
||||||
|
"jinja",
|
||||||
|
"jison",
|
||||||
|
"json",
|
||||||
|
"json5",
|
||||||
|
"jsonc",
|
||||||
|
"jsonl",
|
||||||
|
"jsonnet",
|
||||||
|
"jssm",
|
||||||
|
"jsx",
|
||||||
|
"julia",
|
||||||
|
"kotlin",
|
||||||
|
"kusto",
|
||||||
|
"latex",
|
||||||
|
"lean",
|
||||||
|
"less",
|
||||||
|
"liquid",
|
||||||
|
"log",
|
||||||
|
"logo",
|
||||||
|
"lua",
|
||||||
|
"luau",
|
||||||
|
"make",
|
||||||
|
"markdown",
|
||||||
|
"marko",
|
||||||
|
"matlab",
|
||||||
|
"mdc",
|
||||||
|
"mdx",
|
||||||
|
"mermaid",
|
||||||
|
"mojo",
|
||||||
|
"move",
|
||||||
|
"narrat",
|
||||||
|
"nextflow",
|
||||||
|
"nginx",
|
||||||
|
"nim",
|
||||||
|
"nix",
|
||||||
|
"nushell",
|
||||||
|
"objective-c",
|
||||||
|
"objective-cpp",
|
||||||
|
"ocaml",
|
||||||
|
"pascal",
|
||||||
|
"perl",
|
||||||
|
"php",
|
||||||
|
"plsql",
|
||||||
|
"po",
|
||||||
|
"postcss",
|
||||||
|
"powerquery",
|
||||||
|
"powershell",
|
||||||
|
"prisma",
|
||||||
|
"prolog",
|
||||||
|
"proto",
|
||||||
|
"pug",
|
||||||
|
"puppet",
|
||||||
|
"purescript",
|
||||||
|
"python",
|
||||||
|
"qml",
|
||||||
|
"qmldir",
|
||||||
|
"qss",
|
||||||
|
"r",
|
||||||
|
"racket",
|
||||||
|
"raku",
|
||||||
|
"razor",
|
||||||
|
"reg",
|
||||||
|
"regexp",
|
||||||
|
"rel",
|
||||||
|
"riscv",
|
||||||
|
"rst",
|
||||||
|
"ruby",
|
||||||
|
"rust",
|
||||||
|
"sas",
|
||||||
|
"sass",
|
||||||
|
"scala",
|
||||||
|
"scheme",
|
||||||
|
"scss",
|
||||||
|
"shaderlab",
|
||||||
|
"shellscript",
|
||||||
|
"shellsession",
|
||||||
|
"smalltalk",
|
||||||
|
"solidity",
|
||||||
|
"soy",
|
||||||
|
"sparql",
|
||||||
|
"splunk",
|
||||||
|
"sql",
|
||||||
|
"ssh-config",
|
||||||
|
"stata",
|
||||||
|
"stylus",
|
||||||
|
"svelte",
|
||||||
|
"swift",
|
||||||
|
"system-verilog",
|
||||||
|
"systemd",
|
||||||
|
"tasl",
|
||||||
|
"tcl",
|
||||||
|
"templ",
|
||||||
|
"terraform",
|
||||||
|
"tex",
|
||||||
|
"toml",
|
||||||
|
"ts-tags",
|
||||||
|
"tsv",
|
||||||
|
"tsx",
|
||||||
|
"turtle",
|
||||||
|
"twig",
|
||||||
|
"typescript",
|
||||||
|
"typespec",
|
||||||
|
"typst",
|
||||||
|
"v",
|
||||||
|
"vala",
|
||||||
|
"vb",
|
||||||
|
"verilog",
|
||||||
|
"vhdl",
|
||||||
|
"viml",
|
||||||
|
"vue",
|
||||||
|
"vue-html",
|
||||||
|
"vyper",
|
||||||
|
"wasm",
|
||||||
|
"wenyan",
|
||||||
|
"wgsl",
|
||||||
|
"wikitext",
|
||||||
|
"wolfram",
|
||||||
|
"xml",
|
||||||
|
"xsl",
|
||||||
|
"yaml",
|
||||||
|
"zenscript",
|
||||||
|
"zig",
|
||||||
|
]
|
||||||
|
LiteralCodeTheme = Literal[
|
||||||
|
"andromeeda",
|
||||||
|
"aurora-x",
|
||||||
|
"ayu-dark",
|
||||||
|
"catppuccin-frappe",
|
||||||
|
"catppuccin-latte",
|
||||||
|
"catppuccin-macchiato",
|
||||||
|
"catppuccin-mocha",
|
||||||
|
"dark-plus",
|
||||||
|
"dracula",
|
||||||
|
"dracula-soft",
|
||||||
|
"everforest-dark",
|
||||||
|
"everforest-light",
|
||||||
|
"github-dark",
|
||||||
|
"github-dark-default",
|
||||||
|
"github-dark-dimmed",
|
||||||
|
"github-dark-high-contrast",
|
||||||
|
"github-light",
|
||||||
|
"github-light-default",
|
||||||
|
"github-light-high-contrast",
|
||||||
|
"houston",
|
||||||
|
"laserwave",
|
||||||
|
"light-plus",
|
||||||
|
"material-theme",
|
||||||
|
"material-theme-darker",
|
||||||
|
"material-theme-lighter",
|
||||||
|
"material-theme-ocean",
|
||||||
|
"material-theme-palenight",
|
||||||
|
"min-dark",
|
||||||
|
"min-light",
|
||||||
|
"monokai",
|
||||||
|
"night-owl",
|
||||||
|
"nord",
|
||||||
|
"one-dark-pro",
|
||||||
|
"one-light",
|
||||||
|
"plain",
|
||||||
|
"plastic",
|
||||||
|
"poimandres",
|
||||||
|
"red",
|
||||||
|
"rose-pine",
|
||||||
|
"rose-pine-dawn",
|
||||||
|
"rose-pine-moon",
|
||||||
|
"slack-dark",
|
||||||
|
"slack-ochin",
|
||||||
|
"snazzy-light",
|
||||||
|
"solarized-dark",
|
||||||
|
"solarized-light",
|
||||||
|
"synthwave-84",
|
||||||
|
"tokyo-night",
|
||||||
|
"vesper",
|
||||||
|
"vitesse-black",
|
||||||
|
"vitesse-dark",
|
||||||
|
"vitesse-light",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
class ShikiBaseTransformers(Base):
|
||||||
|
"""Base for creating transformers."""
|
||||||
|
|
||||||
|
library: str
|
||||||
|
fns: list[FunctionStringVar]
|
||||||
|
style: Optional[Style]
|
||||||
|
|
||||||
|
|
||||||
|
class ShikiJsTransformer(ShikiBaseTransformers):
|
||||||
|
"""A Wrapped shikijs transformer."""
|
||||||
|
|
||||||
|
library: str = "@shikijs/transformers"
|
||||||
|
fns: list[FunctionStringVar] = [
|
||||||
|
FunctionStringVar.create(fn) for fn in SHIKIJS_TRANSFORMER_FNS
|
||||||
|
]
|
||||||
|
style: Optional[Style] = Style(
|
||||||
|
{
|
||||||
|
"code": {"line-height": "1.7", "font-size": "0.875em", "display": "grid"},
|
||||||
|
# Diffs
|
||||||
|
".diff": {
|
||||||
|
"margin": "0 -24px",
|
||||||
|
"padding": "0 24px",
|
||||||
|
"width": "calc(100% + 48px)",
|
||||||
|
"display": "inline-block",
|
||||||
|
},
|
||||||
|
".diff.add": {
|
||||||
|
"background-color": "rgba(16, 185, 129, .14)",
|
||||||
|
"position": "relative",
|
||||||
|
},
|
||||||
|
".diff.remove": {
|
||||||
|
"background-color": "rgba(244, 63, 94, .14)",
|
||||||
|
"opacity": "0.7",
|
||||||
|
"position": "relative",
|
||||||
|
},
|
||||||
|
".diff.remove:after": {
|
||||||
|
"position": "absolute",
|
||||||
|
"left": "10px",
|
||||||
|
"content": "'-'",
|
||||||
|
"color": "#b34e52",
|
||||||
|
},
|
||||||
|
".diff.add:after": {
|
||||||
|
"position": "absolute",
|
||||||
|
"left": "10px",
|
||||||
|
"content": "'+'",
|
||||||
|
"color": "#18794e",
|
||||||
|
},
|
||||||
|
# Highlight
|
||||||
|
".highlighted": {
|
||||||
|
"background-color": "rgba(142, 150, 170, .14)",
|
||||||
|
"margin": "0 -24px",
|
||||||
|
"padding": "0 24px",
|
||||||
|
"width": "calc(100% + 48px)",
|
||||||
|
"display": "inline-block",
|
||||||
|
},
|
||||||
|
".highlighted.error": {
|
||||||
|
"background-color": "rgba(244, 63, 94, .14)",
|
||||||
|
},
|
||||||
|
".highlighted.warning": {
|
||||||
|
"background-color": "rgba(234, 179, 8, .14)",
|
||||||
|
},
|
||||||
|
# Highlighted Word
|
||||||
|
".highlighted-word": {
|
||||||
|
"background-color": color("gray", 2),
|
||||||
|
"border": f"1px solid {color('gray', 5)}",
|
||||||
|
"padding": "1px 3px",
|
||||||
|
"margin": "-1px -3px",
|
||||||
|
"border-radius": "4px",
|
||||||
|
},
|
||||||
|
# Focused Lines
|
||||||
|
".has-focused .line:not(.focused)": {
|
||||||
|
"opacity": "0.7",
|
||||||
|
"filter": "blur(0.095rem)",
|
||||||
|
"transition": "filter .35s, opacity .35s",
|
||||||
|
},
|
||||||
|
".has-focused:hover .line:not(.focused)": {
|
||||||
|
"opacity": "1",
|
||||||
|
"filter": "none",
|
||||||
|
},
|
||||||
|
# White Space
|
||||||
|
# ".tab, .space": {
|
||||||
|
# "position": "relative",
|
||||||
|
# },
|
||||||
|
# ".tab::before": {
|
||||||
|
# "content": "'⇥'",
|
||||||
|
# "position": "absolute",
|
||||||
|
# "opacity": "0.3",
|
||||||
|
# },
|
||||||
|
# ".space::before": {
|
||||||
|
# "content": "'·'",
|
||||||
|
# "position": "absolute",
|
||||||
|
# "opacity": "0.3",
|
||||||
|
# },
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
"""Initialize the transformer.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
kwargs: Kwargs to initialize the props.
|
||||||
|
|
||||||
|
"""
|
||||||
|
fns = kwargs.pop("fns", None)
|
||||||
|
style = kwargs.pop("style", None)
|
||||||
|
if fns:
|
||||||
|
kwargs["fns"] = [
|
||||||
|
(
|
||||||
|
FunctionStringVar.create(x)
|
||||||
|
if not isinstance(x, FunctionStringVar)
|
||||||
|
else x
|
||||||
|
)
|
||||||
|
for x in fns
|
||||||
|
]
|
||||||
|
|
||||||
|
if style:
|
||||||
|
kwargs["style"] = Style(style)
|
||||||
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
class ShikiCodeBlock(Component):
|
||||||
|
"""A Code block."""
|
||||||
|
|
||||||
|
library = "/components/shiki/code"
|
||||||
|
|
||||||
|
tag = "Code"
|
||||||
|
|
||||||
|
alias = "ShikiCode"
|
||||||
|
|
||||||
|
lib_dependencies: list[str] = ["shiki"]
|
||||||
|
|
||||||
|
# The language to use.
|
||||||
|
language: Var[LiteralCodeLanguage] = Var.create("python")
|
||||||
|
|
||||||
|
# The theme to use ("light" or "dark").
|
||||||
|
theme: Var[LiteralCodeTheme] = Var.create("one-light")
|
||||||
|
|
||||||
|
# The set of themes to use for different modes.
|
||||||
|
themes: Var[Union[list[dict[str, Any]], dict[str, str]]]
|
||||||
|
|
||||||
|
# The code to display.
|
||||||
|
code: Var[str]
|
||||||
|
|
||||||
|
# The transformers to use for the syntax highlighter.
|
||||||
|
transformers: Var[list[Union[ShikiBaseTransformers, dict[str, Any]]]] = Var.create(
|
||||||
|
[]
|
||||||
|
)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def create(
|
||||||
|
cls,
|
||||||
|
*children,
|
||||||
|
**props,
|
||||||
|
) -> Component:
|
||||||
|
"""Create a code block component using [shiki syntax highlighter](https://shiki.matsu.io/).
|
||||||
|
|
||||||
|
Args:
|
||||||
|
*children: The children of the component.
|
||||||
|
**props: The props to pass to the component.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The code block component.
|
||||||
|
"""
|
||||||
|
# Separate props for the code block and the wrapper
|
||||||
|
code_block_props = {}
|
||||||
|
code_wrapper_props = {}
|
||||||
|
|
||||||
|
class_props = cls.get_props()
|
||||||
|
|
||||||
|
# Distribute props between the code block and wrapper
|
||||||
|
for key, value in props.items():
|
||||||
|
(code_block_props if key in class_props else code_wrapper_props)[key] = (
|
||||||
|
value
|
||||||
|
)
|
||||||
|
|
||||||
|
code_block_props["code"] = children[0]
|
||||||
|
code_block = super().create(**code_block_props)
|
||||||
|
|
||||||
|
transformer_styles = {}
|
||||||
|
# Collect styles from transformers and wrapper
|
||||||
|
for transformer in code_block.transformers._var_value: # type: ignore
|
||||||
|
if isinstance(transformer, ShikiBaseTransformers) and transformer.style:
|
||||||
|
transformer_styles.update(transformer.style)
|
||||||
|
transformer_styles.update(code_wrapper_props.pop("style", {}))
|
||||||
|
|
||||||
|
return Box.create(
|
||||||
|
code_block,
|
||||||
|
*children[1:],
|
||||||
|
style=Style({**transformer_styles, **BOX_PARENT_STYLING}),
|
||||||
|
**code_wrapper_props,
|
||||||
|
)
|
||||||
|
|
||||||
|
def add_imports(self) -> dict[str, list[str]]:
|
||||||
|
"""Add the necessary imports.
|
||||||
|
We add all referenced transformer functions as imports from their corresponding
|
||||||
|
libraries.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Imports for the component.
|
||||||
|
"""
|
||||||
|
imports = defaultdict(list)
|
||||||
|
for transformer in self.transformers._var_value:
|
||||||
|
if isinstance(transformer, ShikiBaseTransformers):
|
||||||
|
imports[transformer.library].extend(
|
||||||
|
[ImportVar(tag=str(fn)) for fn in transformer.fns]
|
||||||
|
)
|
||||||
|
(
|
||||||
|
self.lib_dependencies.append(transformer.library)
|
||||||
|
if transformer.library not in self.lib_dependencies
|
||||||
|
else None
|
||||||
|
)
|
||||||
|
return imports
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def create_transformer(cls, library: str, fns: list[str]) -> ShikiBaseTransformers:
|
||||||
|
"""Create a transformer from a third party library.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
library: The name of the library.
|
||||||
|
fns: The str names of the functions/callables to invoke from the library.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
A transformer for the specified library.
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
ValueError: If a supplied function name is not valid str.
|
||||||
|
"""
|
||||||
|
if any(not isinstance(fn_name, str) for fn_name in fns):
|
||||||
|
raise ValueError(
|
||||||
|
f"the function names should be str names of functions in the specified transformer: {library!r}"
|
||||||
|
)
|
||||||
|
return ShikiBaseTransformers( # type: ignore
|
||||||
|
library=library, fns=[FunctionStringVar.create(fn) for fn in fns]
|
||||||
|
)
|
||||||
|
|
||||||
|
def _render(self, props: dict[str, Any] | None = None):
|
||||||
|
"""Renders the component with the given properties, processing transformers if present.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
props: Optional properties to pass to the render function.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Rendered component output.
|
||||||
|
"""
|
||||||
|
# Ensure props is initialized from class attributes if not provided
|
||||||
|
props = props or {
|
||||||
|
attr.rstrip("_"): getattr(self, attr) for attr in self.get_props()
|
||||||
|
}
|
||||||
|
|
||||||
|
# Extract transformers and apply transformations
|
||||||
|
transformers = props.get("transformers")
|
||||||
|
if transformers is not None:
|
||||||
|
transformed_values = self._process_transformers(transformers._var_value)
|
||||||
|
props["transformers"] = LiteralVar.create(transformed_values)
|
||||||
|
|
||||||
|
return super()._render(props)
|
||||||
|
|
||||||
|
def _process_transformers(self, transformer_list: list) -> list:
|
||||||
|
"""Processes a list of transformers, applying transformations where necessary.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
transformer_list: List of transformer objects or values.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
list: A list of transformed values.
|
||||||
|
"""
|
||||||
|
processed = []
|
||||||
|
|
||||||
|
for transformer in transformer_list:
|
||||||
|
if isinstance(transformer, ShikiBaseTransformers):
|
||||||
|
processed.extend(fn.call() for fn in transformer.fns)
|
||||||
|
else:
|
||||||
|
processed.append(transformer)
|
||||||
|
|
||||||
|
return processed
|
||||||
|
|
||||||
|
|
||||||
|
class ShikiHighLevelCodeBlock(ShikiCodeBlock):
|
||||||
|
"""High level component for the shiki syntax highlighter."""
|
||||||
|
|
||||||
|
# If this is enabled, the default transformers(shikijs transformer) will be used.
|
||||||
|
use_transformers: Var[bool]
|
||||||
|
|
||||||
|
# If this is enabled line numbers will be shown next to the code block.
|
||||||
|
show_line_numbers: Var[bool]
|
||||||
|
|
||||||
|
# Whether a copy button should appear.
|
||||||
|
can_copy: Var[bool] = Var.create(False)
|
||||||
|
|
||||||
|
# copy_button: A custom copy button to override the default one.
|
||||||
|
copy_button: Var[Optional[Union[Component, bool]]] = Var.create(None)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def create(
|
||||||
|
cls,
|
||||||
|
*children,
|
||||||
|
**props,
|
||||||
|
) -> Component:
|
||||||
|
"""Create a code block component using [shiki syntax highlighter](https://shiki.matsu.io/).
|
||||||
|
|
||||||
|
Args:
|
||||||
|
*children: The children of the component.
|
||||||
|
**props: The props to pass to the component.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The code block component.
|
||||||
|
"""
|
||||||
|
use_transformers = props.pop("use_transformers", False)
|
||||||
|
show_line_numbers = props.pop("show_line_numbers", False)
|
||||||
|
language = props.pop("language", None)
|
||||||
|
can_copy = props.pop("can_copy", False)
|
||||||
|
copy_button = props.pop("copy_button", None)
|
||||||
|
|
||||||
|
if use_transformers:
|
||||||
|
props["transformers"] = [ShikiJsTransformer()]
|
||||||
|
|
||||||
|
if language is not None:
|
||||||
|
props["language"] = cls._map_languages(language)
|
||||||
|
|
||||||
|
# line numbers are generated via css
|
||||||
|
if show_line_numbers:
|
||||||
|
props["style"] = {**LINE_NUMBER_STYLING, **props.get("style", {})}
|
||||||
|
|
||||||
|
theme = props.pop("theme", None)
|
||||||
|
props["theme"] = props["theme"] = (
|
||||||
|
cls._map_themes(theme)
|
||||||
|
if theme is not None
|
||||||
|
else color_mode_cond( # Default color scheme responds to global color mode.
|
||||||
|
light="one-light",
|
||||||
|
dark="one-dark-pro",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if can_copy:
|
||||||
|
code = children[0]
|
||||||
|
copy_button = ( # type: ignore
|
||||||
|
copy_button
|
||||||
|
if copy_button is not None
|
||||||
|
else Button.create(
|
||||||
|
Icon.create(tag="copy", size=16, color=color("gray", 11)),
|
||||||
|
on_click=[
|
||||||
|
set_clipboard(cls._strip_transformer_triggers(code)), # type: ignore
|
||||||
|
copy_script(),
|
||||||
|
],
|
||||||
|
style=Style(
|
||||||
|
{
|
||||||
|
"position": "absolute",
|
||||||
|
"top": "4px",
|
||||||
|
"right": "4px",
|
||||||
|
"background": color("gray", 3),
|
||||||
|
"border": "1px solid",
|
||||||
|
"border-color": color("gray", 5),
|
||||||
|
"border-radius": "6px",
|
||||||
|
"padding": "5px",
|
||||||
|
"opacity": "1",
|
||||||
|
"cursor": "pointer",
|
||||||
|
"_hover": {
|
||||||
|
"background": color("gray", 4),
|
||||||
|
},
|
||||||
|
"transition": "background 0.250s ease-out",
|
||||||
|
"&>svg": {
|
||||||
|
"transition": "transform 0.250s ease-out, opacity 0.250s ease-out",
|
||||||
|
},
|
||||||
|
"_active": {
|
||||||
|
"background": color("gray", 5),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if copy_button:
|
||||||
|
return ShikiCodeBlock.create(
|
||||||
|
children[0], copy_button, position="relative", **props
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ShikiCodeBlock.create(children[0], **props)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def _map_themes(theme: str) -> str:
|
||||||
|
if isinstance(theme, str) and theme in THEME_MAPPING:
|
||||||
|
return THEME_MAPPING[theme]
|
||||||
|
return theme
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def _map_languages(language: str) -> str:
|
||||||
|
if isinstance(language, str) and language in LANGUAGE_MAPPING:
|
||||||
|
return LANGUAGE_MAPPING[language]
|
||||||
|
return language
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def _strip_transformer_triggers(code: str | StringVar) -> StringVar | str:
|
||||||
|
if not isinstance(code, (StringVar, str)):
|
||||||
|
raise VarTypeError(
|
||||||
|
f"code should be string literal or a StringVar type. Got {type(code)} instead."
|
||||||
|
)
|
||||||
|
regex_pattern = r"[\/#]+ *\[!code.*?\]"
|
||||||
|
|
||||||
|
if isinstance(code, Var):
|
||||||
|
return string_replace_operation(
|
||||||
|
code, StringVar(_js_expr=f"/{regex_pattern}/g", _var_type=str), ""
|
||||||
|
)
|
||||||
|
if isinstance(code, str):
|
||||||
|
return re.sub(regex_pattern, "", code)
|
||||||
|
|
||||||
|
|
||||||
|
class TransformerNamespace(ComponentNamespace):
|
||||||
|
"""Namespace for the Transformers."""
|
||||||
|
|
||||||
|
shikijs = ShikiJsTransformer
|
||||||
|
|
||||||
|
|
||||||
|
class CodeblockNamespace(ComponentNamespace):
|
||||||
|
"""Namespace for the CodeBlock component."""
|
||||||
|
|
||||||
|
root = staticmethod(ShikiCodeBlock.create)
|
||||||
|
create_transformer = staticmethod(ShikiCodeBlock.create_transformer)
|
||||||
|
transformers = TransformerNamespace()
|
||||||
|
__call__ = staticmethod(ShikiHighLevelCodeBlock.create)
|
||||||
|
|
||||||
|
|
||||||
|
code_block = CodeblockNamespace()
|
2211
reflex/components/datadisplay/shiki_code_block.pyi
Normal file
2211
reflex/components/datadisplay/shiki_code_block.pyi
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,12 +1,18 @@
|
|||||||
"""Components that are dynamically generated on the backend."""
|
"""Components that are dynamically generated on the backend."""
|
||||||
|
|
||||||
|
from typing import TYPE_CHECKING, Union
|
||||||
|
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
from reflex.utils import imports
|
from reflex.utils import imports
|
||||||
|
from reflex.utils.exceptions import DynamicComponentMissingLibrary
|
||||||
from reflex.utils.format import format_library_name
|
from reflex.utils.format import format_library_name
|
||||||
from reflex.utils.serializers import serializer
|
from reflex.utils.serializers import serializer
|
||||||
from reflex.vars import Var, get_unique_variable_name
|
from reflex.vars import Var, get_unique_variable_name
|
||||||
from reflex.vars.base import VarData, transform
|
from reflex.vars.base import VarData, transform
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from reflex.components.component import Component
|
||||||
|
|
||||||
|
|
||||||
def get_cdn_url(lib: str) -> str:
|
def get_cdn_url(lib: str) -> str:
|
||||||
"""Get the CDN URL for a library.
|
"""Get the CDN URL for a library.
|
||||||
@ -20,6 +26,26 @@ def get_cdn_url(lib: str) -> str:
|
|||||||
return f"https://cdn.jsdelivr.net/npm/{lib}" + "/+esm"
|
return f"https://cdn.jsdelivr.net/npm/{lib}" + "/+esm"
|
||||||
|
|
||||||
|
|
||||||
|
bundled_libraries = {"react", "@radix-ui/themes", "@emotion/react", "next/link"}
|
||||||
|
|
||||||
|
|
||||||
|
def bundle_library(component: Union["Component", str]):
|
||||||
|
"""Bundle a library with the component.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
component: The component to bundle the library with.
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
DynamicComponentMissingLibrary: Raised when a dynamic component is missing a library.
|
||||||
|
"""
|
||||||
|
if isinstance(component, str):
|
||||||
|
bundled_libraries.add(component)
|
||||||
|
return
|
||||||
|
if component.library is None:
|
||||||
|
raise DynamicComponentMissingLibrary("Component must have a library to bundle.")
|
||||||
|
bundled_libraries.add(format_library_name(component.library))
|
||||||
|
|
||||||
|
|
||||||
def load_dynamic_serializer():
|
def load_dynamic_serializer():
|
||||||
"""Load the serializer for dynamic components."""
|
"""Load the serializer for dynamic components."""
|
||||||
# Causes a circular import, so we import here.
|
# Causes a circular import, so we import here.
|
||||||
@ -58,10 +84,7 @@ def load_dynamic_serializer():
|
|||||||
)
|
)
|
||||||
] = None
|
] = None
|
||||||
|
|
||||||
libs_in_window = [
|
libs_in_window = bundled_libraries
|
||||||
"react",
|
|
||||||
"@radix-ui/themes",
|
|
||||||
]
|
|
||||||
|
|
||||||
imports = {}
|
imports = {}
|
||||||
for lib, names in component._get_all_imports().items():
|
for lib, names in component._get_all_imports().items():
|
||||||
@ -69,10 +92,7 @@ def load_dynamic_serializer():
|
|||||||
if (
|
if (
|
||||||
not lib.startswith((".", "/"))
|
not lib.startswith((".", "/"))
|
||||||
and not lib.startswith("http")
|
and not lib.startswith("http")
|
||||||
and all(
|
and formatted_lib_name not in libs_in_window
|
||||||
formatted_lib_name != lib_in_window
|
|
||||||
for lib_in_window in libs_in_window
|
|
||||||
)
|
|
||||||
):
|
):
|
||||||
imports[get_cdn_url(lib)] = names
|
imports[get_cdn_url(lib)] = names
|
||||||
else:
|
else:
|
||||||
@ -110,7 +130,14 @@ def load_dynamic_serializer():
|
|||||||
|
|
||||||
module_code_lines.insert(0, "const React = window.__reflex.react;")
|
module_code_lines.insert(0, "const React = window.__reflex.react;")
|
||||||
|
|
||||||
return "//__reflex_evaluate\n" + "\n".join(module_code_lines)
|
return "\n".join(
|
||||||
|
[
|
||||||
|
"//__reflex_evaluate",
|
||||||
|
"/** @jsx jsx */",
|
||||||
|
"const { jsx } = window.__reflex['@emotion/react']",
|
||||||
|
*module_code_lines,
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
@transform
|
@transform
|
||||||
def evaluate_component(js_string: Var[str]) -> Var[Component]:
|
def evaluate_component(js_string: Var[str]) -> Var[Component]:
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
from . import elements as elements
|
||||||
from .elements.forms import Button as Button
|
from .elements.forms import Button as Button
|
||||||
from .elements.forms import Fieldset as Fieldset
|
from .elements.forms import Fieldset as Fieldset
|
||||||
from .elements.forms import Form as Form
|
from .elements.forms import Form as Form
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -22,41 +22,21 @@ class Element(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Element":
|
) -> "Element":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.el.element import Element
|
from reflex.components.el.element import Element
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -46,41 +46,21 @@ class BaseHTML(Element):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "BaseHTML":
|
) -> "BaseHTML":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,14 +3,20 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
from typing import Any, Dict, Iterator, Set, Union
|
from typing import Any, Dict, Iterator, Set, Tuple, Union
|
||||||
|
|
||||||
from jinja2 import Environment
|
from jinja2 import Environment
|
||||||
|
|
||||||
from reflex.components.el.element import Element
|
from reflex.components.el.element import Element
|
||||||
from reflex.components.tags.tag import Tag
|
from reflex.components.tags.tag import Tag
|
||||||
from reflex.constants import Dirs, EventTriggers
|
from reflex.constants import Dirs, EventTriggers
|
||||||
from reflex.event import EventChain, EventHandler, prevent_default
|
from reflex.event import (
|
||||||
|
EventChain,
|
||||||
|
EventHandler,
|
||||||
|
input_event,
|
||||||
|
key_event,
|
||||||
|
prevent_default,
|
||||||
|
)
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.vars import VarData
|
from reflex.vars import VarData
|
||||||
from reflex.vars.base import LiteralVar, Var
|
from reflex.vars.base import LiteralVar, Var
|
||||||
@ -96,6 +102,15 @@ class Fieldset(Element):
|
|||||||
name: Var[Union[str, int, bool]]
|
name: Var[Union[str, int, bool]]
|
||||||
|
|
||||||
|
|
||||||
|
def on_submit_event_spec() -> Tuple[Var[Dict[str, Any]]]:
|
||||||
|
"""Event handler spec for the on_submit event.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The event handler spec.
|
||||||
|
"""
|
||||||
|
return (FORM_DATA,)
|
||||||
|
|
||||||
|
|
||||||
class Form(BaseHTML):
|
class Form(BaseHTML):
|
||||||
"""Display the form element."""
|
"""Display the form element."""
|
||||||
|
|
||||||
@ -135,7 +150,7 @@ class Form(BaseHTML):
|
|||||||
handle_submit_unique_name: Var[str]
|
handle_submit_unique_name: Var[str]
|
||||||
|
|
||||||
# Fired when the form is submitted
|
# Fired when the form is submitted
|
||||||
on_submit: EventHandler[lambda e0: [FORM_DATA]]
|
on_submit: EventHandler[on_submit_event_spec]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(cls, *children, **props):
|
def create(cls, *children, **props):
|
||||||
@ -345,19 +360,19 @@ class Input(BaseHTML):
|
|||||||
value: Var[Union[str, int, float]]
|
value: Var[Union[str, int, float]]
|
||||||
|
|
||||||
# Fired when the input value changes
|
# Fired when the input value changes
|
||||||
on_change: EventHandler[lambda e0: [e0.target.value]]
|
on_change: EventHandler[input_event]
|
||||||
|
|
||||||
# Fired when the input gains focus
|
# Fired when the input gains focus
|
||||||
on_focus: EventHandler[lambda e0: [e0.target.value]]
|
on_focus: EventHandler[input_event]
|
||||||
|
|
||||||
# Fired when the input loses focus
|
# Fired when the input loses focus
|
||||||
on_blur: EventHandler[lambda e0: [e0.target.value]]
|
on_blur: EventHandler[input_event]
|
||||||
|
|
||||||
# Fired when a key is pressed down
|
# Fired when a key is pressed down
|
||||||
on_key_down: EventHandler[lambda e0: [e0.key]]
|
on_key_down: EventHandler[key_event]
|
||||||
|
|
||||||
# Fired when a key is released
|
# Fired when a key is released
|
||||||
on_key_up: EventHandler[lambda e0: [e0.key]]
|
on_key_up: EventHandler[key_event]
|
||||||
|
|
||||||
|
|
||||||
class Label(BaseHTML):
|
class Label(BaseHTML):
|
||||||
@ -496,7 +511,7 @@ class Select(BaseHTML):
|
|||||||
size: Var[Union[str, int, bool]]
|
size: Var[Union[str, int, bool]]
|
||||||
|
|
||||||
# Fired when the select value changes
|
# Fired when the select value changes
|
||||||
on_change: EventHandler[lambda e0: [e0.target.value]]
|
on_change: EventHandler[input_event]
|
||||||
|
|
||||||
|
|
||||||
AUTO_HEIGHT_JS = """
|
AUTO_HEIGHT_JS = """
|
||||||
@ -586,19 +601,19 @@ class Textarea(BaseHTML):
|
|||||||
wrap: Var[Union[str, int, bool]]
|
wrap: Var[Union[str, int, bool]]
|
||||||
|
|
||||||
# Fired when the input value changes
|
# Fired when the input value changes
|
||||||
on_change: EventHandler[lambda e0: [e0.target.value]]
|
on_change: EventHandler[input_event]
|
||||||
|
|
||||||
# Fired when the input gains focus
|
# Fired when the input gains focus
|
||||||
on_focus: EventHandler[lambda e0: [e0.target.value]]
|
on_focus: EventHandler[input_event]
|
||||||
|
|
||||||
# Fired when the input loses focus
|
# Fired when the input loses focus
|
||||||
on_blur: EventHandler[lambda e0: [e0.target.value]]
|
on_blur: EventHandler[input_event]
|
||||||
|
|
||||||
# Fired when a key is pressed down
|
# Fired when a key is pressed down
|
||||||
on_key_down: EventHandler[lambda e0: [e0.key]]
|
on_key_down: EventHandler[key_event]
|
||||||
|
|
||||||
# Fired when a key is released
|
# Fired when a key is released
|
||||||
on_key_up: EventHandler[lambda e0: [e0.key]]
|
on_key_up: EventHandler[key_event]
|
||||||
|
|
||||||
def _exclude_props(self) -> list[str]:
|
def _exclude_props(self) -> list[str]:
|
||||||
return super()._exclude_props() + [
|
return super()._exclude_props() + [
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Tuple, Union, overload
|
||||||
|
|
||||||
from jinja2 import Environment
|
from jinja2 import Environment
|
||||||
|
|
||||||
from reflex.components.el.element import Element
|
from reflex.components.el.element import Element
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
@ -71,41 +71,21 @@ class Button(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Button":
|
) -> "Button":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -188,41 +168,21 @@ class Datalist(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Datalist":
|
) -> "Datalist":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -273,41 +233,21 @@ class Fieldset(Element):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Fieldset":
|
) -> "Fieldset":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -330,6 +270,8 @@ class Fieldset(Element):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
|
def on_submit_event_spec() -> Tuple[Var[Dict[str, Any]]]: ...
|
||||||
|
|
||||||
class Form(BaseHTML):
|
class Form(BaseHTML):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -381,42 +323,22 @@ class Form(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_submit: Optional[EventType[Dict[str, Any]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_submit: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Form":
|
) -> "Form":
|
||||||
"""Create a form component.
|
"""Create a form component.
|
||||||
@ -541,46 +463,24 @@ class Input(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[str]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[str]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[str]] = None,
|
||||||
on_double_click: Optional[
|
on_key_down: Optional[EventType[str]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_key_up: Optional[EventType[str]] = None,
|
||||||
] = None,
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_key_down: Optional[
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_key_up: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Input":
|
) -> "Input":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -687,41 +587,21 @@ class Label(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Label":
|
) -> "Label":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -795,41 +675,21 @@ class Legend(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Legend":
|
) -> "Legend":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -908,41 +768,21 @@ class Meter(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Meter":
|
) -> "Meter":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1023,41 +863,21 @@ class Optgroup(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Optgroup":
|
) -> "Optgroup":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1135,41 +955,21 @@ class Option(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Option":
|
) -> "Option":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1248,41 +1048,21 @@ class Output(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Output":
|
) -> "Output":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1360,41 +1140,21 @@ class Progress(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Progress":
|
) -> "Progress":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1479,42 +1239,22 @@ class Select(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[str]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Select":
|
) -> "Select":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1616,46 +1356,24 @@ class Textarea(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[str]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[str]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[str]] = None,
|
||||||
on_double_click: Optional[
|
on_key_down: Optional[EventType[str]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_key_up: Optional[EventType[str]] = None,
|
||||||
] = None,
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_key_down: Optional[
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_key_up: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Textarea":
|
) -> "Textarea":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.el.element import Element
|
from reflex.components.el.element import Element
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -50,41 +50,21 @@ class Base(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Base":
|
) -> "Base":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -156,41 +136,21 @@ class Head(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Head":
|
) -> "Head":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -275,41 +235,21 @@ class Link(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Link":
|
) -> "Link":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -394,41 +334,21 @@ class Meta(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Meta":
|
) -> "Meta":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -480,41 +400,21 @@ class Title(Element):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Title":
|
) -> "Title":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -547,41 +447,21 @@ class StyleEl(Element):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "StyleEl":
|
) -> "StyleEl":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -48,41 +48,21 @@ class Details(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Details":
|
) -> "Details":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -156,41 +136,21 @@ class Dialog(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Dialog":
|
) -> "Dialog":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -263,41 +223,21 @@ class Summary(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Summary":
|
) -> "Summary":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -369,41 +309,21 @@ class Slot(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Slot":
|
) -> "Slot":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -475,41 +395,21 @@ class Template(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Template":
|
) -> "Template":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -581,41 +481,21 @@ class Math(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Math":
|
) -> "Math":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -688,41 +568,21 @@ class Html(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Html":
|
) -> "Html":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -47,41 +47,21 @@ class Canvas(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Canvas":
|
) -> "Canvas":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -153,41 +133,21 @@ class Noscript(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Noscript":
|
) -> "Noscript":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -272,41 +232,21 @@ class Script(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Script":
|
) -> "Script":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -47,41 +47,21 @@ class Body(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Body":
|
) -> "Body":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -153,41 +133,21 @@ class Address(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Address":
|
) -> "Address":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -259,41 +219,21 @@ class Article(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Article":
|
) -> "Article":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -365,41 +305,21 @@ class Aside(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Aside":
|
) -> "Aside":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -471,41 +391,21 @@ class Footer(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Footer":
|
) -> "Footer":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -577,41 +477,21 @@ class Header(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Header":
|
) -> "Header":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -683,41 +563,21 @@ class H1(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "H1":
|
) -> "H1":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -789,41 +649,21 @@ class H2(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "H2":
|
) -> "H2":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -895,41 +735,21 @@ class H3(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "H3":
|
) -> "H3":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1001,41 +821,21 @@ class H4(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "H4":
|
) -> "H4":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1107,41 +907,21 @@ class H5(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "H5":
|
) -> "H5":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1213,41 +993,21 @@ class H6(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "H6":
|
) -> "H6":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1319,41 +1079,21 @@ class Main(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Main":
|
) -> "Main":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1425,41 +1165,21 @@ class Nav(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Nav":
|
) -> "Nav":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1531,41 +1251,21 @@ class Section(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Section":
|
) -> "Section":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -48,41 +48,21 @@ class Caption(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Caption":
|
) -> "Caption":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -157,41 +137,21 @@ class Col(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Col":
|
) -> "Col":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -267,41 +227,21 @@ class Colgroup(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Colgroup":
|
) -> "Colgroup":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -377,41 +317,21 @@ class Table(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Table":
|
) -> "Table":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -486,41 +406,21 @@ class Tbody(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Tbody":
|
) -> "Tbody":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -597,41 +497,21 @@ class Td(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Td":
|
) -> "Td":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -708,41 +588,21 @@ class Tfoot(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Tfoot":
|
) -> "Tfoot":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -820,41 +680,21 @@ class Th(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Th":
|
) -> "Th":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -932,41 +772,21 @@ class Thead(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Thead":
|
) -> "Thead":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1040,41 +860,21 @@ class Tr(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Tr":
|
) -> "Tr":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -48,41 +48,21 @@ class Blockquote(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Blockquote":
|
) -> "Blockquote":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -155,41 +135,21 @@ class Dd(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Dd":
|
) -> "Dd":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -261,41 +221,21 @@ class Div(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Div":
|
) -> "Div":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -367,41 +307,21 @@ class Dl(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Dl":
|
) -> "Dl":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -473,41 +393,21 @@ class Dt(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Dt":
|
) -> "Dt":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -579,41 +479,21 @@ class Figcaption(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Figcaption":
|
) -> "Figcaption":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -686,41 +566,21 @@ class Hr(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Hr":
|
) -> "Hr":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -793,41 +653,21 @@ class Li(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Li":
|
) -> "Li":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -900,41 +740,21 @@ class Menu(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Menu":
|
) -> "Menu":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1010,41 +830,21 @@ class Ol(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Ol":
|
) -> "Ol":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1119,41 +919,21 @@ class P(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "P":
|
) -> "P":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1225,41 +1005,21 @@ class Pre(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Pre":
|
) -> "Pre":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1331,41 +1091,21 @@ class Ul(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Ul":
|
) -> "Ul":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1439,41 +1179,21 @@ class Ins(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Ins":
|
) -> "Ins":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -1549,41 +1269,21 @@ class Del(BaseHTML):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Del":
|
) -> "Del":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -15,9 +15,9 @@ from reflex.vars.base import LiteralVar, Var, is_computed_var
|
|||||||
class Gridjs(Component):
|
class Gridjs(Component):
|
||||||
"""A component that wraps a nivo bar component."""
|
"""A component that wraps a nivo bar component."""
|
||||||
|
|
||||||
library = "gridjs-react@6.0.1"
|
library = "gridjs-react@6.1.1"
|
||||||
|
|
||||||
lib_dependencies: List[str] = ["gridjs@6.0.6"]
|
lib_dependencies: List[str] = ["gridjs@6.2.0"]
|
||||||
|
|
||||||
|
|
||||||
class DataTable(Gridjs):
|
class DataTable(Gridjs):
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, List, Optional, Union, overload
|
from typing import Any, Dict, List, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
@ -23,41 +23,21 @@ class Gridjs(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Gridjs":
|
) -> "Gridjs":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -95,41 +75,21 @@ class DataTable(Gridjs):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DataTable":
|
) -> "DataTable":
|
||||||
"""Create a datatable component.
|
"""Create a datatable component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -22,41 +22,21 @@ class LucideIconComponent(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "LucideIconComponent":
|
) -> "LucideIconComponent":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -89,41 +69,21 @@ class Icon(LucideIconComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Icon":
|
) -> "Icon":
|
||||||
"""Initialize the Icon component.
|
"""Initialize the Icon component.
|
||||||
|
@ -20,6 +20,8 @@ from reflex.components.tags.tag import Tag
|
|||||||
from reflex.utils import types
|
from reflex.utils import types
|
||||||
from reflex.utils.imports import ImportDict, ImportVar
|
from reflex.utils.imports import ImportDict, ImportVar
|
||||||
from reflex.vars.base import LiteralVar, Var
|
from reflex.vars.base import LiteralVar, Var
|
||||||
|
from reflex.vars.function import ARRAY_ISARRAY
|
||||||
|
from reflex.vars.number import ternary_operation
|
||||||
|
|
||||||
# Special vars used in the component map.
|
# Special vars used in the component map.
|
||||||
_CHILDREN = Var(_js_expr="children", _var_type=str)
|
_CHILDREN = Var(_js_expr="children", _var_type=str)
|
||||||
@ -199,7 +201,16 @@ class Markdown(Component):
|
|||||||
raise ValueError(f"No markdown component found for tag: {tag}.")
|
raise ValueError(f"No markdown component found for tag: {tag}.")
|
||||||
|
|
||||||
special_props = [_PROPS_IN_TAG]
|
special_props = [_PROPS_IN_TAG]
|
||||||
children = [_CHILDREN]
|
children = [
|
||||||
|
_CHILDREN
|
||||||
|
if tag != "codeblock"
|
||||||
|
# For codeblock, the mapping for some cases returns an array of elements. Let's join them into a string.
|
||||||
|
else ternary_operation(
|
||||||
|
ARRAY_ISARRAY.call(_CHILDREN), # type: ignore
|
||||||
|
_CHILDREN.to(list).join("\n"),
|
||||||
|
_CHILDREN,
|
||||||
|
).to(str)
|
||||||
|
]
|
||||||
|
|
||||||
# For certain tags, the props from the markdown renderer are not actually valid for the component.
|
# For certain tags, the props from the markdown renderer are not actually valid for the component.
|
||||||
if tag in NO_PROPS_TAGS:
|
if tag in NO_PROPS_TAGS:
|
||||||
|
@ -7,7 +7,7 @@ from functools import lru_cache
|
|||||||
from typing import Any, Callable, Dict, Optional, Union, overload
|
from typing import Any, Callable, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.vars.base import LiteralVar, Var
|
from reflex.vars.base import LiteralVar, Var
|
||||||
@ -42,41 +42,21 @@ class Markdown(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Markdown":
|
) -> "Markdown":
|
||||||
"""Create a markdown component.
|
"""Create a markdown component.
|
||||||
|
@ -4,7 +4,7 @@ import dataclasses
|
|||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
from reflex.components.component import Component, NoSSRComponent
|
from reflex.components.component import Component, NoSSRComponent
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, identity_event
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ class Moment(NoSSRComponent):
|
|||||||
tz: Var[str]
|
tz: Var[str]
|
||||||
|
|
||||||
# Fires when the date changes.
|
# Fires when the date changes.
|
||||||
on_change: EventHandler[lambda date: [date]]
|
on_change: EventHandler[identity_event(str)]
|
||||||
|
|
||||||
def add_imports(self) -> ImportDict:
|
def add_imports(self) -> ImportDict:
|
||||||
"""Add the imports for the Moment component.
|
"""Add the imports for the Moment component.
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
import dataclasses
|
import dataclasses
|
||||||
from typing import Any, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import NoSSRComponent
|
from reflex.components.component import NoSSRComponent
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
@ -57,42 +57,22 @@ class Moment(NoSSRComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[str]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Moment":
|
) -> "Moment":
|
||||||
"""Create a Moment component.
|
"""Create a Moment component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -24,41 +24,21 @@ class NextComponent(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "NextComponent":
|
) -> "NextComponent":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from typing import Any, Literal, Optional, Union
|
from typing import Any, Literal, Optional, Union
|
||||||
|
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, empty_event
|
||||||
from reflex.utils import types
|
from reflex.utils import types
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
@ -56,10 +56,10 @@ class Image(NextComponent):
|
|||||||
blurDataURL: Var[str]
|
blurDataURL: Var[str]
|
||||||
|
|
||||||
# Fires when the image has loaded.
|
# Fires when the image has loaded.
|
||||||
on_load: EventHandler[lambda: []]
|
on_load: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fires when the image has an error.
|
# Fires when the image has an error.
|
||||||
on_error: EventHandler[lambda: []]
|
on_error: EventHandler[empty_event]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(
|
def create(
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -37,43 +37,23 @@ class Image(NextComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_error: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_load: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
on_error: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_load: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Image":
|
) -> "Image":
|
||||||
"""Create an Image component from next/image.
|
"""Create an Image component from next/image.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -24,41 +24,21 @@ class NextLink(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "NextLink":
|
) -> "NextLink":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -26,41 +26,21 @@ class Video(NextComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Video":
|
) -> "Video":
|
||||||
"""Create a Video component.
|
"""Create a Video component.
|
||||||
|
@ -94,7 +94,7 @@ class Plotly(NoSSRComponent):
|
|||||||
|
|
||||||
library = "react-plotly.js@2.6.0"
|
library = "react-plotly.js@2.6.0"
|
||||||
|
|
||||||
lib_dependencies: List[str] = ["plotly.js@2.22.0"]
|
lib_dependencies: List[str] = ["plotly.js@2.35.2"]
|
||||||
|
|
||||||
tag = "Plot"
|
tag = "Plot"
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.base import Base
|
from reflex.base import Base
|
||||||
from reflex.components.component import NoSSRComponent
|
from reflex.components.component import NoSSRComponent
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils import console
|
from reflex.utils import console
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
@ -45,91 +45,39 @@ class Plotly(NoSSRComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_after_plot: Optional[
|
on_after_plot: Optional[EventType] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_animated: Optional[EventType] = None,
|
||||||
] = None,
|
on_animating_frame: Optional[EventType] = None,
|
||||||
on_animated: Optional[
|
on_animation_interrupted: Optional[EventType] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_autosize: Optional[EventType] = None,
|
||||||
] = None,
|
on_before_hover: Optional[EventType] = None,
|
||||||
on_animating_frame: Optional[
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_button_clicked: Optional[EventType] = None,
|
||||||
] = None,
|
on_click: Optional[EventType] = None,
|
||||||
on_animation_interrupted: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_deselect: Optional[EventType] = None,
|
||||||
] = None,
|
on_double_click: Optional[EventType] = None,
|
||||||
on_autosize: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_hover: Optional[EventType] = None,
|
||||||
] = None,
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
on_before_hover: Optional[
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_button_clicked: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_redraw: Optional[EventType] = None,
|
||||||
on_context_menu: Optional[
|
on_relayout: Optional[EventType] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_relayouting: Optional[EventType] = None,
|
||||||
] = None,
|
on_restyle: Optional[EventType] = None,
|
||||||
on_deselect: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_selected: Optional[EventType] = None,
|
||||||
] = None,
|
on_selecting: Optional[EventType] = None,
|
||||||
on_double_click: Optional[
|
on_transition_interrupted: Optional[EventType] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_transitioning: Optional[EventType] = None,
|
||||||
] = None,
|
on_unhover: Optional[EventType] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_hover: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_mouse_down: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_enter: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_redraw: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_relayout: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_relayouting: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_restyle: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_selected: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_selecting: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_transition_interrupted: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_transitioning: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_unhover: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Plotly":
|
) -> "Plotly":
|
||||||
"""Create the Plotly component.
|
"""Create the Plotly component.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any, List, Literal, Optional, Union
|
from typing import Any, List, Literal, Optional, Tuple, Union
|
||||||
|
|
||||||
from reflex.components.component import Component, ComponentNamespace
|
from reflex.components.component import Component, ComponentNamespace
|
||||||
from reflex.components.core.colors import color
|
from reflex.components.core.colors import color
|
||||||
@ -71,6 +71,18 @@ class AccordionComponent(RadixPrimitiveComponent):
|
|||||||
return ["color_scheme", "variant"]
|
return ["color_scheme", "variant"]
|
||||||
|
|
||||||
|
|
||||||
|
def on_value_change(value: Var[str | List[str]]) -> Tuple[Var[str | List[str]]]:
|
||||||
|
"""Handle the on_value_change event.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
value: The value of the event.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The value of the event.
|
||||||
|
"""
|
||||||
|
return (value,)
|
||||||
|
|
||||||
|
|
||||||
class AccordionRoot(AccordionComponent):
|
class AccordionRoot(AccordionComponent):
|
||||||
"""An accordion component."""
|
"""An accordion component."""
|
||||||
|
|
||||||
@ -114,7 +126,7 @@ class AccordionRoot(AccordionComponent):
|
|||||||
_valid_children: List[str] = ["AccordionItem"]
|
_valid_children: List[str] = ["AccordionItem"]
|
||||||
|
|
||||||
# Fired when the opened the accordions changes.
|
# Fired when the opened the accordions changes.
|
||||||
on_value_change: EventHandler[lambda e0: [e0]]
|
on_value_change: EventHandler[on_value_change]
|
||||||
|
|
||||||
def _exclude_props(self) -> list[str]:
|
def _exclude_props(self) -> list[str]:
|
||||||
return super()._exclude_props() + [
|
return super()._exclude_props() + [
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
# ------------------- 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, Callable, Dict, List, Literal, Optional, Union, overload
|
from typing import Any, Dict, List, Literal, Optional, Tuple, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component, ComponentNamespace
|
from reflex.components.component import Component, ComponentNamespace
|
||||||
from reflex.components.lucide.icon import Icon
|
from reflex.components.lucide.icon import Icon
|
||||||
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -101,41 +101,21 @@ class AccordionComponent(RadixPrimitiveComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AccordionComponent":
|
) -> "AccordionComponent":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -158,6 +138,8 @@ class AccordionComponent(RadixPrimitiveComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
|
def on_value_change(value: Var[str | List[str]]) -> Tuple[Var[str | List[str]]]: ...
|
||||||
|
|
||||||
class AccordionRoot(AccordionComponent):
|
class AccordionRoot(AccordionComponent):
|
||||||
def add_style(self): ...
|
def add_style(self): ...
|
||||||
@overload
|
@overload
|
||||||
@ -265,44 +247,22 @@ class AccordionRoot(AccordionComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_value_change: Optional[EventType[str | List[str]]] = None,
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_value_change: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AccordionRoot":
|
) -> "AccordionRoot":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -421,41 +381,21 @@ class AccordionItem(AccordionComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AccordionItem":
|
) -> "AccordionItem":
|
||||||
"""Create an accordion item.
|
"""Create an accordion item.
|
||||||
@ -565,41 +505,21 @@ class AccordionHeader(AccordionComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AccordionHeader":
|
) -> "AccordionHeader":
|
||||||
"""Create the Accordion header component.
|
"""Create the Accordion header component.
|
||||||
@ -705,41 +625,21 @@ class AccordionTrigger(AccordionComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AccordionTrigger":
|
) -> "AccordionTrigger":
|
||||||
"""Create the Accordion trigger component.
|
"""Create the Accordion trigger component.
|
||||||
@ -777,41 +677,21 @@ class AccordionIcon(Icon):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AccordionIcon":
|
) -> "AccordionIcon":
|
||||||
"""Create the Accordion icon component.
|
"""Create the Accordion icon component.
|
||||||
@ -914,41 +794,21 @@ class AccordionContent(AccordionComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AccordionContent":
|
) -> "AccordionContent":
|
||||||
"""Create the Accordion content component.
|
"""Create the Accordion content component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -23,41 +23,21 @@ class RadixPrimitiveComponent(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "RadixPrimitiveComponent":
|
) -> "RadixPrimitiveComponent":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -91,41 +71,21 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "RadixPrimitiveComponentWithClassName":
|
) -> "RadixPrimitiveComponentWithClassName":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -10,7 +10,8 @@ from reflex.components.component import Component, ComponentNamespace
|
|||||||
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
|
||||||
from reflex.components.radix.themes.base import Theme
|
from reflex.components.radix.themes.base import Theme
|
||||||
from reflex.components.radix.themes.layout.flex import Flex
|
from reflex.components.radix.themes.layout.flex import Flex
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, empty_event, identity_event
|
||||||
|
from reflex.utils import console
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
|
|
||||||
@ -60,7 +61,7 @@ class DrawerRoot(DrawerComponent):
|
|||||||
preventScrollRestoration: Var[bool]
|
preventScrollRestoration: Var[bool]
|
||||||
|
|
||||||
# Fires when the drawer is opened.
|
# Fires when the drawer is opened.
|
||||||
on_open_change: EventHandler[lambda e0: [e0]]
|
on_open_change: EventHandler[identity_event(bool)]
|
||||||
|
|
||||||
|
|
||||||
class DrawerTrigger(DrawerComponent):
|
class DrawerTrigger(DrawerComponent):
|
||||||
@ -127,20 +128,20 @@ class DrawerContent(DrawerComponent):
|
|||||||
base_style.update(style)
|
base_style.update(style)
|
||||||
return {"css": base_style}
|
return {"css": base_style}
|
||||||
|
|
||||||
# Fired when the drawer content is opened.
|
# Fired when the drawer content is opened. Deprecated.
|
||||||
on_open_auto_focus: EventHandler[lambda e0: [e0.target.value]]
|
on_open_auto_focus: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the drawer content is closed.
|
# Fired when the drawer content is closed. Deprecated.
|
||||||
on_close_auto_focus: EventHandler[lambda e0: [e0.target.value]]
|
on_close_auto_focus: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the escape key is pressed.
|
# Fired when the escape key is pressed. Deprecated.
|
||||||
on_escape_key_down: EventHandler[lambda e0: [e0.target.value]]
|
on_escape_key_down: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the pointer is down outside the drawer content.
|
# Fired when the pointer is down outside the drawer content. Deprecated.
|
||||||
on_pointer_down_outside: EventHandler[lambda e0: [e0.target.value]]
|
on_pointer_down_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when interacting outside the drawer content.
|
# Fired when interacting outside the drawer content. Deprecated.
|
||||||
on_interact_outside: EventHandler[lambda e0: [e0.target.value]]
|
on_interact_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(cls, *children, **props):
|
def create(cls, *children, **props):
|
||||||
@ -157,6 +158,23 @@ class DrawerContent(DrawerComponent):
|
|||||||
Returns:
|
Returns:
|
||||||
The drawer content.
|
The drawer content.
|
||||||
"""
|
"""
|
||||||
|
deprecated_properties = [
|
||||||
|
"on_open_auto_focus",
|
||||||
|
"on_close_auto_focus",
|
||||||
|
"on_escape_key_down",
|
||||||
|
"on_pointer_down_outside",
|
||||||
|
"on_interact_outside",
|
||||||
|
]
|
||||||
|
|
||||||
|
for prop in deprecated_properties:
|
||||||
|
if prop in props:
|
||||||
|
console.deprecate(
|
||||||
|
feature_name="drawer content events",
|
||||||
|
reason=f"The `{prop}` event is deprecated and will be removed in 0.7.0.",
|
||||||
|
deprecation_version="0.6.3",
|
||||||
|
removal_version="0.7.0",
|
||||||
|
)
|
||||||
|
|
||||||
comp = super().create(*children, **props)
|
comp = super().create(*children, **props)
|
||||||
|
|
||||||
return Theme.create(comp)
|
return Theme.create(comp)
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, List, Literal, Optional, Union, overload
|
from typing import Any, Dict, List, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -24,41 +24,21 @@ class DrawerComponent(RadixPrimitiveComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerComponent":
|
) -> "DrawerComponent":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -108,44 +88,22 @@ class DrawerRoot(DrawerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_open_change: Optional[EventType[bool]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_open_change: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerRoot":
|
) -> "DrawerRoot":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -188,41 +146,21 @@ class DrawerTrigger(DrawerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerTrigger":
|
) -> "DrawerTrigger":
|
||||||
"""Create a new DrawerTrigger instance.
|
"""Create a new DrawerTrigger instance.
|
||||||
@ -249,41 +187,21 @@ class DrawerPortal(DrawerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerPortal":
|
) -> "DrawerPortal":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -317,56 +235,26 @@ class DrawerContent(DrawerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_close_auto_focus: Optional[
|
on_close_auto_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_escape_key_down: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_interact_outside: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_escape_key_down: Optional[
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
on_interact_outside: Optional[
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_open_auto_focus: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_pointer_down_outside: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_enter: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_open_auto_focus: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_pointer_down_outside: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerContent":
|
) -> "DrawerContent":
|
||||||
"""Create a Drawer Content.
|
"""Create a Drawer Content.
|
||||||
@ -404,41 +292,21 @@ class DrawerOverlay(DrawerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerOverlay":
|
) -> "DrawerOverlay":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -472,41 +340,21 @@ class DrawerClose(DrawerTrigger):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerClose":
|
) -> "DrawerClose":
|
||||||
"""Create a new DrawerTrigger instance.
|
"""Create a new DrawerTrigger instance.
|
||||||
@ -533,41 +381,21 @@ class DrawerTitle(DrawerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerTitle":
|
) -> "DrawerTitle":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -601,41 +429,21 @@ class DrawerDescription(DrawerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerDescription":
|
) -> "DrawerDescription":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -690,44 +498,22 @@ class Drawer(ComponentNamespace):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_open_change: Optional[EventType[bool]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_open_change: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DrawerRoot":
|
) -> "DrawerRoot":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -8,7 +8,7 @@ from reflex.components.component import ComponentNamespace
|
|||||||
from reflex.components.core.debounce import DebounceInput
|
from reflex.components.core.debounce import DebounceInput
|
||||||
from reflex.components.el.elements.forms import Form as HTMLForm
|
from reflex.components.el.elements.forms import Form as HTMLForm
|
||||||
from reflex.components.radix.themes.components.text_field import TextFieldRoot
|
from reflex.components.radix.themes.components.text_field import TextFieldRoot
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, empty_event
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
from .base import RadixPrimitiveComponentWithClassName
|
from .base import RadixPrimitiveComponentWithClassName
|
||||||
@ -17,7 +17,7 @@ from .base import RadixPrimitiveComponentWithClassName
|
|||||||
class FormComponent(RadixPrimitiveComponentWithClassName):
|
class FormComponent(RadixPrimitiveComponentWithClassName):
|
||||||
"""Base class for all @radix-ui/react-form components."""
|
"""Base class for all @radix-ui/react-form components."""
|
||||||
|
|
||||||
library = "@radix-ui/react-form@^0.0.3"
|
library = "@radix-ui/react-form@^0.1.0"
|
||||||
|
|
||||||
|
|
||||||
class FormRoot(FormComponent, HTMLForm):
|
class FormRoot(FormComponent, HTMLForm):
|
||||||
@ -28,7 +28,7 @@ class FormRoot(FormComponent, HTMLForm):
|
|||||||
alias = "RadixFormRoot"
|
alias = "RadixFormRoot"
|
||||||
|
|
||||||
# Fired when the errors are cleared.
|
# Fired when the errors are cleared.
|
||||||
on_clear_server_errors: EventHandler[lambda: []]
|
on_clear_server_errors: EventHandler[empty_event]
|
||||||
|
|
||||||
def add_style(self) -> dict[str, Any] | None:
|
def add_style(self) -> dict[str, Any] | None:
|
||||||
"""Add style to the component.
|
"""Add style to the component.
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.el.elements.forms import Form as HTMLForm
|
from reflex.components.el.elements.forms import Form as HTMLForm
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -26,41 +26,21 @@ class FormComponent(RadixPrimitiveComponentWithClassName):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "FormComponent":
|
) -> "FormComponent":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -134,45 +114,23 @@ class FormRoot(FormComponent, HTMLForm):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_clear_server_errors: Optional[
|
on_clear_server_errors: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_submit: Optional[EventType[Dict[str, Any]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_submit: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "FormRoot":
|
) -> "FormRoot":
|
||||||
"""Create a form component.
|
"""Create a form component.
|
||||||
@ -236,41 +194,21 @@ class FormField(FormComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "FormField":
|
) -> "FormField":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -307,41 +245,21 @@ class FormLabel(FormComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "FormLabel":
|
) -> "FormLabel":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -375,41 +293,21 @@ class FormControl(FormComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "FormControl":
|
) -> "FormControl":
|
||||||
"""Create a Form Control component.
|
"""Create a Form Control component.
|
||||||
@ -493,41 +391,21 @@ class FormMessage(FormComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "FormMessage":
|
) -> "FormMessage":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -564,41 +442,21 @@ class FormValidityState(FormComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "FormValidityState":
|
) -> "FormValidityState":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -632,41 +490,21 @@ class FormSubmit(FormComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "FormSubmit":
|
) -> "FormSubmit":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -741,45 +579,23 @@ class Form(FormRoot):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_clear_server_errors: Optional[
|
on_clear_server_errors: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_submit: Optional[EventType[Dict[str, Any]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_submit: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Form":
|
) -> "Form":
|
||||||
"""Create a form component.
|
"""Create a form component.
|
||||||
@ -885,45 +701,23 @@ class FormNamespace(ComponentNamespace):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_clear_server_errors: Optional[
|
on_clear_server_errors: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_submit: Optional[EventType[Dict[str, Any]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_submit: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Form":
|
) -> "Form":
|
||||||
"""Create a form component.
|
"""Create a form component.
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -24,41 +24,21 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ProgressComponent":
|
) -> "ProgressComponent":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -99,41 +79,21 @@ class ProgressRoot(ProgressComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ProgressRoot":
|
) -> "ProgressRoot":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -233,41 +193,21 @@ class ProgressIndicator(ProgressComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ProgressIndicator":
|
) -> "ProgressIndicator":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -374,41 +314,21 @@ class Progress(ProgressRoot):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Progress":
|
) -> "Progress":
|
||||||
"""High-level API for progress bar.
|
"""High-level API for progress bar.
|
||||||
@ -516,41 +436,21 @@ class ProgressNamespace(ComponentNamespace):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Progress":
|
) -> "Progress":
|
||||||
"""High-level API for progress bar.
|
"""High-level API for progress bar.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any, List, Literal
|
from typing import Any, List, Literal, Tuple
|
||||||
|
|
||||||
from reflex.components.component import Component, ComponentNamespace
|
from reflex.components.component import Component, ComponentNamespace
|
||||||
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
||||||
@ -19,6 +19,20 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
|
|||||||
library = "@radix-ui/react-slider@^1.1.2"
|
library = "@radix-ui/react-slider@^1.1.2"
|
||||||
|
|
||||||
|
|
||||||
|
def on_value_event_spec(
|
||||||
|
value: Var[List[int]],
|
||||||
|
) -> Tuple[Var[List[int]]]:
|
||||||
|
"""Event handler spec for the value event.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
value: The value of the event.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The event handler spec.
|
||||||
|
"""
|
||||||
|
return (value,) # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class SliderRoot(SliderComponent):
|
class SliderRoot(SliderComponent):
|
||||||
"""The Slider component comtaining all slider parts."""
|
"""The Slider component comtaining all slider parts."""
|
||||||
|
|
||||||
@ -48,10 +62,10 @@ class SliderRoot(SliderComponent):
|
|||||||
min_steps_between_thumbs: Var[int]
|
min_steps_between_thumbs: Var[int]
|
||||||
|
|
||||||
# Fired when the value of a thumb changes.
|
# Fired when the value of a thumb changes.
|
||||||
on_value_change: EventHandler[lambda e0: [e0]]
|
on_value_change: EventHandler[on_value_event_spec]
|
||||||
|
|
||||||
# Fired when a thumb is released.
|
# Fired when a thumb is released.
|
||||||
on_value_commit: EventHandler[lambda e0: [e0]]
|
on_value_commit: EventHandler[on_value_event_spec]
|
||||||
|
|
||||||
def add_style(self) -> dict[str, Any] | None:
|
def add_style(self) -> dict[str, Any] | None:
|
||||||
"""Add style to the component.
|
"""Add style to the component.
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, List, Literal, Optional, Union, overload
|
from typing import Any, Dict, List, Literal, Optional, Tuple, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import Component, ComponentNamespace
|
from reflex.components.component import Component, ComponentNamespace
|
||||||
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -27,41 +27,21 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "SliderComponent":
|
) -> "SliderComponent":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -82,6 +62,8 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
|
def on_value_event_spec(value: Var[List[int]]) -> Tuple[Var[List[int]]]: ...
|
||||||
|
|
||||||
class SliderRoot(SliderComponent):
|
class SliderRoot(SliderComponent):
|
||||||
def add_style(self) -> dict[str, Any] | None: ...
|
def add_style(self) -> dict[str, Any] | None: ...
|
||||||
@overload
|
@overload
|
||||||
@ -112,47 +94,23 @@ class SliderRoot(SliderComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_value_change: Optional[EventType[List[int]]] = None,
|
||||||
on_mouse_leave: Optional[
|
on_value_commit: Optional[EventType[List[int]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_value_change: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_value_commit: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "SliderRoot":
|
) -> "SliderRoot":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -187,41 +145,21 @@ class SliderTrack(SliderComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "SliderTrack":
|
) -> "SliderTrack":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -256,41 +194,21 @@ class SliderRange(SliderComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "SliderRange":
|
) -> "SliderRange":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -325,41 +243,21 @@ class SliderThumb(SliderComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "SliderThumb":
|
) -> "SliderThumb":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components import Component
|
from reflex.components import Component
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.utils.imports import ImportDict
|
from reflex.utils.imports import ImportDict
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
@ -103,41 +103,21 @@ class CommonMarginProps(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CommonMarginProps":
|
) -> "CommonMarginProps":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -177,41 +157,21 @@ class RadixLoadingProp(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "RadixLoadingProp":
|
) -> "RadixLoadingProp":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
@ -244,41 +204,21 @@ class RadixThemesComponent(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "RadixThemesComponent":
|
) -> "RadixThemesComponent":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -313,41 +253,21 @@ class RadixThemesTriggerComponent(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "RadixThemesTriggerComponent":
|
) -> "RadixThemesTriggerComponent":
|
||||||
"""Create a new RadixThemesTriggerComponent instance.
|
"""Create a new RadixThemesTriggerComponent instance.
|
||||||
@ -465,41 +385,21 @@ class Theme(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Theme":
|
) -> "Theme":
|
||||||
"""Create a new Radix Theme specification.
|
"""Create a new Radix Theme specification.
|
||||||
@ -544,41 +444,21 @@ class ThemePanel(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ThemePanel":
|
) -> "ThemePanel":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -614,41 +494,21 @@ class RadixThemesColorModeProvider(Component):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "RadixThemesColorModeProvider":
|
) -> "RadixThemesColorModeProvider":
|
||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
@ -3,23 +3,14 @@
|
|||||||
# ------------------- 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 (
|
from typing import Any, Dict, List, Literal, Optional, Union, overload
|
||||||
Any,
|
|
||||||
Callable,
|
|
||||||
Dict,
|
|
||||||
List,
|
|
||||||
Literal,
|
|
||||||
Optional,
|
|
||||||
Union,
|
|
||||||
overload,
|
|
||||||
)
|
|
||||||
|
|
||||||
from reflex.components.component import BaseComponent
|
from reflex.components.component import BaseComponent
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.components.core.cond import Cond
|
from reflex.components.core.cond import Cond
|
||||||
from reflex.components.lucide.icon import Icon
|
from reflex.components.lucide.icon import Icon
|
||||||
from reflex.components.radix.themes.components.switch import Switch
|
from reflex.components.radix.themes.components.switch import Switch
|
||||||
from reflex.event import EventHandler, EventSpec
|
from reflex.event import EventType
|
||||||
from reflex.style import (
|
from reflex.style import (
|
||||||
Style,
|
Style,
|
||||||
color_mode,
|
color_mode,
|
||||||
@ -46,41 +37,21 @@ class ColorModeIcon(Cond):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ColorModeIcon":
|
) -> "ColorModeIcon":
|
||||||
"""Create an icon component based on color_mode.
|
"""Create an icon component based on color_mode.
|
||||||
@ -238,41 +209,21 @@ class ColorModeIconButton(IconButton):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ColorModeIconButton":
|
) -> "ColorModeIconButton":
|
||||||
"""Create a icon button component that calls toggle_color_mode on click.
|
"""Create a icon button component that calls toggle_color_mode on click.
|
||||||
@ -431,42 +382,22 @@ class ColorModeSwitch(Switch):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[bool]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ColorModeSwitch":
|
) -> "ColorModeSwitch":
|
||||||
"""Create a switch component bound to color_mode.
|
"""Create a switch component bound to color_mode.
|
||||||
|
@ -5,7 +5,7 @@ from typing import Literal
|
|||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.core.breakpoints import Responsive
|
from reflex.components.core.breakpoints import Responsive
|
||||||
from reflex.components.el import elements
|
from reflex.components.el import elements
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, empty_event, identity_event
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
from ..base import RadixThemesComponent, RadixThemesTriggerComponent
|
from ..base import RadixThemesComponent, RadixThemesTriggerComponent
|
||||||
@ -22,7 +22,7 @@ class AlertDialogRoot(RadixThemesComponent):
|
|||||||
open: Var[bool]
|
open: Var[bool]
|
||||||
|
|
||||||
# Fired when the open state changes.
|
# Fired when the open state changes.
|
||||||
on_open_change: EventHandler[lambda e0: [e0]]
|
on_open_change: EventHandler[identity_event(bool)]
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogTrigger(RadixThemesTriggerComponent):
|
class AlertDialogTrigger(RadixThemesTriggerComponent):
|
||||||
@ -43,13 +43,13 @@ class AlertDialogContent(elements.Div, RadixThemesComponent):
|
|||||||
force_mount: Var[bool]
|
force_mount: Var[bool]
|
||||||
|
|
||||||
# Fired when the dialog is opened.
|
# Fired when the dialog is opened.
|
||||||
on_open_auto_focus: EventHandler[lambda e0: [e0]]
|
on_open_auto_focus: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the dialog is closed.
|
# Fired when the dialog is closed.
|
||||||
on_close_auto_focus: EventHandler[lambda e0: [e0]]
|
on_close_auto_focus: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the escape key is pressed.
|
# Fired when the escape key is pressed.
|
||||||
on_escape_key_down: EventHandler[lambda e0: [e0]]
|
on_escape_key_down: EventHandler[empty_event]
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogTitle(RadixThemesComponent):
|
class AlertDialogTitle(RadixThemesComponent):
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.components.el import elements
|
from reflex.components.el import elements
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -29,44 +29,22 @@ class AlertDialogRoot(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_open_change: Optional[EventType[bool]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_open_change: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AlertDialogRoot":
|
) -> "AlertDialogRoot":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -102,41 +80,21 @@ class AlertDialogTrigger(RadixThemesTriggerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AlertDialogTrigger":
|
) -> "AlertDialogTrigger":
|
||||||
"""Create a new RadixThemesTriggerComponent instance.
|
"""Create a new RadixThemesTriggerComponent instance.
|
||||||
@ -199,50 +157,24 @@ class AlertDialogContent(elements.Div, RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_close_auto_focus: Optional[
|
on_close_auto_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_escape_key_down: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_escape_key_down: Optional[
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_open_auto_focus: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_enter: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_open_auto_focus: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AlertDialogContent":
|
) -> "AlertDialogContent":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -295,41 +227,21 @@ class AlertDialogTitle(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AlertDialogTitle":
|
) -> "AlertDialogTitle":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -364,41 +276,21 @@ class AlertDialogDescription(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AlertDialogDescription":
|
) -> "AlertDialogDescription":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -433,41 +325,21 @@ class AlertDialogAction(RadixThemesTriggerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AlertDialogAction":
|
) -> "AlertDialogAction":
|
||||||
"""Create a new RadixThemesTriggerComponent instance.
|
"""Create a new RadixThemesTriggerComponent instance.
|
||||||
@ -493,41 +365,21 @@ class AlertDialogCancel(RadixThemesTriggerComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AlertDialogCancel":
|
) -> "AlertDialogCancel":
|
||||||
"""Create a new RadixThemesTriggerComponent instance.
|
"""Create a new RadixThemesTriggerComponent instance.
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# ------------------- 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, Callable, Dict, Optional, Union, overload
|
from typing import Any, Dict, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -24,41 +24,21 @@ class AspectRatio(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "AspectRatio":
|
) -> "AspectRatio":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -114,41 +114,21 @@ class Avatar(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Avatar":
|
) -> "Avatar":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.components.el import elements
|
from reflex.components.el import elements
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -135,41 +135,21 @@ class Badge(elements.Span, RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Badge":
|
) -> "Badge":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.components.el import elements
|
from reflex.components.el import elements
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -158,41 +158,21 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Button":
|
) -> "Button":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.components.el import elements
|
from reflex.components.el import elements
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -133,41 +133,21 @@ class CalloutRoot(elements.Div, RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CalloutRoot":
|
) -> "CalloutRoot":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -247,41 +227,21 @@ class CalloutIcon(elements.Div, RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CalloutIcon":
|
) -> "CalloutIcon":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -356,41 +316,21 @@ class CalloutText(elements.P, RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CalloutText":
|
) -> "CalloutText":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -548,41 +488,21 @@ class Callout(CalloutRoot):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Callout":
|
) -> "Callout":
|
||||||
"""Create a callout component.
|
"""Create a callout component.
|
||||||
@ -746,41 +666,21 @@ class CalloutNamespace(ComponentNamespace):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Callout":
|
) -> "Callout":
|
||||||
"""Create a callout component.
|
"""Create a callout component.
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.components.el import elements
|
from reflex.components.el import elements
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -68,41 +68,21 @@ class Card(elements.Div, RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Card":
|
) -> "Card":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
@ -6,7 +6,7 @@ from reflex.components.component import Component, ComponentNamespace
|
|||||||
from reflex.components.core.breakpoints import Responsive
|
from reflex.components.core.breakpoints import Responsive
|
||||||
from reflex.components.radix.themes.layout.flex import Flex
|
from reflex.components.radix.themes.layout.flex import Flex
|
||||||
from reflex.components.radix.themes.typography.text import Text
|
from reflex.components.radix.themes.typography.text import Text
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, identity_event
|
||||||
from reflex.vars.base import LiteralVar, Var
|
from reflex.vars.base import LiteralVar, Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
@ -61,7 +61,7 @@ class Checkbox(RadixThemesComponent):
|
|||||||
_rename_props = {"onChange": "onCheckedChange"}
|
_rename_props = {"onChange": "onCheckedChange"}
|
||||||
|
|
||||||
# Fired when the checkbox is checked or unchecked.
|
# Fired when the checkbox is checked or unchecked.
|
||||||
on_change: EventHandler[lambda e0: [e0]]
|
on_change: EventHandler[identity_event(bool)]
|
||||||
|
|
||||||
|
|
||||||
class HighLevelCheckbox(RadixThemesComponent):
|
class HighLevelCheckbox(RadixThemesComponent):
|
||||||
@ -112,7 +112,7 @@ class HighLevelCheckbox(RadixThemesComponent):
|
|||||||
_rename_props = {"onChange": "onCheckedChange"}
|
_rename_props = {"onChange": "onCheckedChange"}
|
||||||
|
|
||||||
# Fired when the checkbox is checked or unchecked.
|
# Fired when the checkbox is checked or unchecked.
|
||||||
on_change: EventHandler[lambda e0: [e0]]
|
on_change: EventHandler[identity_event(bool)]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(cls, text: Var[str] = LiteralVar.create(""), **props) -> Component:
|
def create(cls, text: Var[str] = LiteralVar.create(""), **props) -> Component:
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -115,42 +115,22 @@ class Checkbox(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[bool]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "Checkbox":
|
) -> "Checkbox":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -282,42 +262,22 @@ class HighLevelCheckbox(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[bool]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "HighLevelCheckbox":
|
) -> "HighLevelCheckbox":
|
||||||
"""Create a checkbox with a label.
|
"""Create a checkbox with a label.
|
||||||
@ -446,42 +406,22 @@ class CheckboxNamespace(ComponentNamespace):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_change: Optional[EventType[bool]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "HighLevelCheckbox":
|
) -> "HighLevelCheckbox":
|
||||||
"""Create a checkbox with a label.
|
"""Create a checkbox with a label.
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
from typing import Any, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -148,41 +148,21 @@ class CheckboxCardsRoot(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CheckboxCardsRoot":
|
) -> "CheckboxCardsRoot":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -223,41 +203,21 @@ class CheckboxCardsItem(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CheckboxCardsItem":
|
) -> "CheckboxCardsItem":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
|
from typing import Any, Dict, List, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -107,41 +107,21 @@ class CheckboxGroupRoot(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CheckboxGroupRoot":
|
) -> "CheckboxGroupRoot":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -184,41 +164,21 @@ class CheckboxGroupItem(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "CheckboxGroupItem":
|
) -> "CheckboxGroupItem":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
@ -4,7 +4,7 @@ from typing import List, Literal
|
|||||||
|
|
||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.core.breakpoints import Responsive
|
from reflex.components.core.breakpoints import Responsive
|
||||||
from reflex.event import EventHandler
|
from reflex.event import EventHandler, empty_event, identity_event
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
@ -24,7 +24,7 @@ class ContextMenuRoot(RadixThemesComponent):
|
|||||||
_invalid_children: List[str] = ["ContextMenuItem"]
|
_invalid_children: List[str] = ["ContextMenuItem"]
|
||||||
|
|
||||||
# Fired when the open state changes.
|
# Fired when the open state changes.
|
||||||
on_open_change: EventHandler[lambda e0: [e0]]
|
on_open_change: EventHandler[identity_event(bool)]
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuTrigger(RadixThemesComponent):
|
class ContextMenuTrigger(RadixThemesComponent):
|
||||||
@ -64,19 +64,19 @@ class ContextMenuContent(RadixThemesComponent):
|
|||||||
avoid_collisions: Var[bool]
|
avoid_collisions: Var[bool]
|
||||||
|
|
||||||
# Fired when the context menu is closed.
|
# Fired when the context menu is closed.
|
||||||
on_close_auto_focus: EventHandler[lambda e0: [e0]]
|
on_close_auto_focus: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the escape key is pressed.
|
# Fired when the escape key is pressed.
|
||||||
on_escape_key_down: EventHandler[lambda e0: [e0]]
|
on_escape_key_down: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when a pointer down event happens outside the context menu.
|
# Fired when a pointer down event happens outside the context menu.
|
||||||
on_pointer_down_outside: EventHandler[lambda e0: [e0]]
|
on_pointer_down_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when focus moves outside the context menu.
|
# Fired when focus moves outside the context menu.
|
||||||
on_focus_outside: EventHandler[lambda e0: [e0]]
|
on_focus_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when interacting outside the context menu.
|
# Fired when interacting outside the context menu.
|
||||||
on_interact_outside: EventHandler[lambda e0: [e0]]
|
on_interact_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuSub(RadixThemesComponent):
|
class ContextMenuSub(RadixThemesComponent):
|
||||||
@ -107,16 +107,16 @@ class ContextMenuSubContent(RadixThemesComponent):
|
|||||||
_valid_parents: List[str] = ["ContextMenuSub"]
|
_valid_parents: List[str] = ["ContextMenuSub"]
|
||||||
|
|
||||||
# Fired when the escape key is pressed.
|
# Fired when the escape key is pressed.
|
||||||
on_escape_key_down: EventHandler[lambda e0: [e0]]
|
on_escape_key_down: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when a pointer down event happens outside the context menu.
|
# Fired when a pointer down event happens outside the context menu.
|
||||||
on_pointer_down_outside: EventHandler[lambda e0: [e0]]
|
on_pointer_down_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when focus moves outside the context menu.
|
# Fired when focus moves outside the context menu.
|
||||||
on_focus_outside: EventHandler[lambda e0: [e0]]
|
on_focus_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when interacting outside the context menu.
|
# Fired when interacting outside the context menu.
|
||||||
on_interact_outside: EventHandler[lambda e0: [e0]]
|
on_interact_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuItem(RadixThemesComponent):
|
class ContextMenuItem(RadixThemesComponent):
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# ------------------- 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, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.component import ComponentNamespace
|
from reflex.components.component import ComponentNamespace
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -26,44 +26,22 @@ class ContextMenuRoot(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_open_change: Optional[EventType[bool]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_open_change: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ContextMenuRoot":
|
) -> "ContextMenuRoot":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -100,41 +78,21 @@ class ContextMenuTrigger(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ContextMenuTrigger":
|
) -> "ContextMenuTrigger":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -245,56 +203,26 @@ class ContextMenuContent(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_close_auto_focus: Optional[
|
on_close_auto_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_escape_key_down: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus_outside: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_interact_outside: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
on_escape_key_down: Optional[
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
on_focus_outside: Optional[
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_pointer_down_outside: Optional[EventType[[]]] = None,
|
||||||
on_interact_outside: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_mouse_down: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_enter: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_pointer_down_outside: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ContextMenuContent":
|
) -> "ContextMenuContent":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -335,41 +263,21 @@ class ContextMenuSub(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ContextMenuSub":
|
) -> "ContextMenuSub":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -405,41 +313,21 @@ class ContextMenuSubTrigger(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ContextMenuSubTrigger":
|
) -> "ContextMenuSubTrigger":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -476,53 +364,25 @@ class ContextMenuSubContent(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_escape_key_down: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_focus_outside: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_interact_outside: Optional[EventType[[]]] = None,
|
||||||
on_escape_key_down: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_focus_outside: Optional[
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
on_interact_outside: Optional[
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_pointer_down_outside: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_enter: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_pointer_down_outside: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ContextMenuSubContent":
|
) -> "ContextMenuSubContent":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -621,41 +481,21 @@ class ContextMenuItem(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ContextMenuItem":
|
) -> "ContextMenuItem":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -692,41 +532,21 @@ class ContextMenuSeparator(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "ContextMenuSeparator":
|
) -> "ContextMenuSeparator":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
from typing import Any, Callable, Dict, Literal, Optional, Union, overload
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
||||||
|
|
||||||
from reflex.components.core.breakpoints import Breakpoints
|
from reflex.components.core.breakpoints import Breakpoints
|
||||||
from reflex.event import EventHandler, EventSpec
|
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
|
||||||
|
|
||||||
@ -60,41 +60,21 @@ class DataListRoot(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DataListRoot":
|
) -> "DataListRoot":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -149,41 +129,21 @@ class DataListItem(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DataListItem":
|
) -> "DataListItem":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -290,41 +250,21 @@ class DataListLabel(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DataListLabel":
|
) -> "DataListLabel":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
@ -363,41 +303,21 @@ class DataListValue(RadixThemesComponent):
|
|||||||
class_name: Optional[Any] = None,
|
class_name: Optional[Any] = None,
|
||||||
autofocus: Optional[bool] = None,
|
autofocus: Optional[bool] = None,
|
||||||
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
||||||
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_blur: Optional[EventType[[]]] = None,
|
||||||
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_click: Optional[EventType[[]]] = None,
|
||||||
on_context_menu: Optional[
|
on_context_menu: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_double_click: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_focus: Optional[EventType[[]]] = None,
|
||||||
on_double_click: Optional[
|
on_mount: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_down: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_enter: Optional[EventType[[]]] = None,
|
||||||
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_leave: Optional[EventType[[]]] = None,
|
||||||
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
on_mouse_move: Optional[EventType[[]]] = None,
|
||||||
on_mouse_down: Optional[
|
on_mouse_out: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_mouse_over: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
on_mouse_up: Optional[EventType[[]]] = None,
|
||||||
on_mouse_enter: Optional[
|
on_scroll: Optional[EventType[[]]] = None,
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
on_unmount: Optional[EventType[[]]] = None,
|
||||||
] = None,
|
|
||||||
on_mouse_leave: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_move: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_out: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_over: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_mouse_up: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
||||||
on_unmount: Optional[
|
|
||||||
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
||||||
] = None,
|
|
||||||
**props,
|
**props,
|
||||||
) -> "DataListValue":
|
) -> "DataListValue":
|
||||||
"""Create a new component instance.
|
"""Create a new component instance.
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user