reflex-components-radix 0.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reflex_components_radix-0.9.0/.gitignore +24 -0
- reflex_components_radix-0.9.0/PKG-INFO +14 -0
- reflex_components_radix-0.9.0/README.md +3 -0
- reflex_components_radix-0.9.0/pyproject.toml +36 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/__init__.py +19 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/__init__.pyi +128 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/mappings.py +133 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/__init__.py +17 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/__init__.pyi +12 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/accordion.py +521 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/accordion.pyi +945 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/base.py +58 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/base.pyi +213 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/dialog.py +178 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/dialog.pyi +924 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/drawer.py +294 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/drawer.pyi +842 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/form.py +190 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/form.pyi +1414 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/progress.py +138 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/progress.pyi +557 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/slider.py +187 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/primitives/slider.pyi +395 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/__init__.py +22 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/__init__.pyi +10 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/base.py +278 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/base.pyi +757 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/color_mode.py +213 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/color_mode.pyi +607 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/__init__.py +17 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/__init__.pyi +80 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/alert_dialog.py +111 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/alert_dialog.pyi +714 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/aspect_ratio.py +19 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/aspect_ratio.pyi +85 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/avatar.py +42 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/avatar.pyi +165 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/badge.py +39 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/badge.pyi +354 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/button.py +47 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/button.pyi +386 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/callout.py +90 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/callout.pyi +1558 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/card.py +31 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/card.pyi +293 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/checkbox.py +159 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/checkbox.pyi +483 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/checkbox_cards.py +54 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/checkbox_cards.pyi +251 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/checkbox_group.py +63 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/checkbox_group.pyi +235 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/context_menu.py +393 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/context_menu.pyi +1351 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/data_list.py +72 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/data_list.pyi +400 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/dialog.py +101 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/dialog.pyi +720 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/dropdown_menu.py +315 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/dropdown_menu.pyi +811 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/hover_card.py +100 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/hover_card.pyi +542 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/icon_button.py +101 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/icon_button.pyi +389 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/inset.py +43 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/inset.pyi +339 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/popover.py +125 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/popover.pyi +540 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/progress.py +81 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/progress.pyi +163 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/radio.py +35 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/radio.pyi +154 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/radio_cards.py +109 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/radio_cards.pyi +281 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/radio_group.py +230 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/radio_group.pyi +557 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/scroll_area.py +29 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/scroll_area.pyi +93 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/segmented_control.py +86 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/segmented_control.pyi +243 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/select.py +272 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/select.pyi +1022 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/separator.py +36 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/separator.pyi +162 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/skeleton.py +31 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/skeleton.pyi +115 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/slider.py +116 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/slider.pyi +190 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/spinner.py +24 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/spinner.pyi +92 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/switch.py +64 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/switch.pyi +176 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/table.py +142 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/table.pyi +2074 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/tabs.py +161 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/tabs.pyi +471 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/text_area.py +120 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/text_area.pyi +404 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/text_field.py +148 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/text_field.pyi +1049 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/tooltip.py +136 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/components/tooltip.pyi +135 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/__init__.py +18 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/__init__.pyi +32 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/base.py +32 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/base.pyi +181 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/box.py +16 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/box.pyi +279 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/center.py +26 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/center.pyi +327 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/container.py +59 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/container.pyi +289 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/flex.py +56 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/flex.pyi +330 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/grid.py +67 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/grid.pyi +353 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/list.py +195 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/list.pyi +1511 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/section.py +28 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/section.pyi +286 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/spacer.py +26 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/spacer.pyi +327 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/stack.py +70 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/layout/stack.pyi +941 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/__init__.py +17 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/__init__.pyi +12 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/base.py +13 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/blockquote.py +38 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/blockquote.pyi +359 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/code.py +47 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/code.pyi +362 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/heading.py +55 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/heading.pyi +378 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/link.py +123 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/link.pyi +424 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/text.py +122 -0
- reflex_components_radix-0.9.0/src/reflex_components_radix/themes/typography/text.pyi +2311 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
**/.DS_Store
|
|
2
|
+
**/*.pyc
|
|
3
|
+
assets/external/*
|
|
4
|
+
dist/*
|
|
5
|
+
examples/
|
|
6
|
+
.web
|
|
7
|
+
.states
|
|
8
|
+
.idea
|
|
9
|
+
.vscode
|
|
10
|
+
.coverage
|
|
11
|
+
.coverage.*
|
|
12
|
+
.venv
|
|
13
|
+
venv
|
|
14
|
+
requirements.txt
|
|
15
|
+
.pyi_generator_last_run
|
|
16
|
+
.pyi_generator_diff
|
|
17
|
+
reflex.db
|
|
18
|
+
.codspeed
|
|
19
|
+
.env
|
|
20
|
+
.env.*
|
|
21
|
+
node_modules
|
|
22
|
+
package-lock.json
|
|
23
|
+
*.pyi
|
|
24
|
+
.pre-commit-config.yaml
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: reflex-components-radix
|
|
3
|
+
Version: 0.9.0
|
|
4
|
+
Summary: Reflex radix components.
|
|
5
|
+
Author-email: Khaleel Al-Adhami <khaleel@reflex.dev>
|
|
6
|
+
Maintainer-email: Khaleel Al-Adhami <khaleel@reflex.dev>
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Requires-Dist: reflex-components-core
|
|
9
|
+
Requires-Dist: reflex-components-lucide
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# reflex-components-radix
|
|
13
|
+
|
|
14
|
+
Reflex radix components.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "reflex-components-radix"
|
|
3
|
+
dynamic = ["version"]
|
|
4
|
+
description = "Reflex radix components."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [{ name = "Khaleel Al-Adhami", email = "khaleel@reflex.dev" }]
|
|
7
|
+
maintainers = [{ name = "Khaleel Al-Adhami", email = "khaleel@reflex.dev" }]
|
|
8
|
+
requires-python = ">=3.10"
|
|
9
|
+
dependencies = [
|
|
10
|
+
"reflex-components-core",
|
|
11
|
+
"reflex-components-lucide",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[tool.hatch.version]
|
|
15
|
+
source = "uv-dynamic-versioning"
|
|
16
|
+
|
|
17
|
+
[tool.uv-dynamic-versioning]
|
|
18
|
+
pattern-prefix = "reflex-components-radix-"
|
|
19
|
+
fallback-version = "0.0.0dev0"
|
|
20
|
+
|
|
21
|
+
[tool.hatch.build]
|
|
22
|
+
targets.sdist.artifacts = ["*.pyi"]
|
|
23
|
+
targets.wheel.artifacts = ["*.pyi"]
|
|
24
|
+
|
|
25
|
+
[tool.hatch.build.hooks.reflex-pyi]
|
|
26
|
+
dependencies = [
|
|
27
|
+
"ruff",
|
|
28
|
+
"reflex-base",
|
|
29
|
+
"reflex-components-core",
|
|
30
|
+
"reflex-components-lucide",
|
|
31
|
+
"reflex-components-sonner",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[build-system]
|
|
35
|
+
requires = ["hatchling", "uv-dynamic-versioning", "hatch-reflex-pyi"]
|
|
36
|
+
build-backend = "hatchling.build"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Namespace for components provided by @radix-ui packages."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from reflex_base.utils import lazy_loader
|
|
6
|
+
|
|
7
|
+
from reflex_components_radix.mappings import RADIX_MAPPING
|
|
8
|
+
|
|
9
|
+
_SUBMODULES: set[str] = {"themes", "primitives"}
|
|
10
|
+
|
|
11
|
+
_SUBMOD_ATTRS: lazy_loader.SubmodAttrsType = {
|
|
12
|
+
"".join(k.split("reflex_components_radix.")[-1]): v
|
|
13
|
+
for k, v in RADIX_MAPPING.items()
|
|
14
|
+
}
|
|
15
|
+
__getattr__, __dir__, __all__ = lazy_loader.attach(
|
|
16
|
+
__name__,
|
|
17
|
+
submodules=_SUBMODULES,
|
|
18
|
+
submod_attrs=_SUBMOD_ATTRS,
|
|
19
|
+
)
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"""Stub file for reflex_components_radix/__init__.py"""
|
|
2
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
3
|
+
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
4
|
+
# ------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
from . import primitives, themes
|
|
7
|
+
from .primitives.accordion import accordion
|
|
8
|
+
from .primitives.drawer import drawer
|
|
9
|
+
from .primitives.form import form
|
|
10
|
+
from .themes.base import theme, theme_panel
|
|
11
|
+
from .themes.color_mode import color_mode
|
|
12
|
+
from .themes.components.alert_dialog import alert_dialog
|
|
13
|
+
from .themes.components.aspect_ratio import aspect_ratio
|
|
14
|
+
from .themes.components.avatar import avatar
|
|
15
|
+
from .themes.components.badge import badge
|
|
16
|
+
from .themes.components.button import button
|
|
17
|
+
from .themes.components.callout import callout
|
|
18
|
+
from .themes.components.card import card
|
|
19
|
+
from .themes.components.checkbox import checkbox
|
|
20
|
+
from .themes.components.checkbox_cards import checkbox_cards
|
|
21
|
+
from .themes.components.checkbox_group import checkbox_group
|
|
22
|
+
from .themes.components.context_menu import context_menu
|
|
23
|
+
from .themes.components.data_list import data_list
|
|
24
|
+
from .themes.components.dialog import dialog
|
|
25
|
+
from .themes.components.dropdown_menu import dropdown_menu, menu
|
|
26
|
+
from .themes.components.hover_card import hover_card
|
|
27
|
+
from .themes.components.icon_button import icon_button
|
|
28
|
+
from .themes.components.inset import inset
|
|
29
|
+
from .themes.components.popover import popover
|
|
30
|
+
from .themes.components.progress import progress
|
|
31
|
+
from .themes.components.radio_cards import radio_cards
|
|
32
|
+
from .themes.components.radio_group import radio, radio_group
|
|
33
|
+
from .themes.components.scroll_area import scroll_area
|
|
34
|
+
from .themes.components.segmented_control import segmented_control
|
|
35
|
+
from .themes.components.select import select
|
|
36
|
+
from .themes.components.separator import divider, separator
|
|
37
|
+
from .themes.components.skeleton import skeleton
|
|
38
|
+
from .themes.components.slider import slider
|
|
39
|
+
from .themes.components.spinner import spinner
|
|
40
|
+
from .themes.components.switch import switch
|
|
41
|
+
from .themes.components.table import table
|
|
42
|
+
from .themes.components.tabs import tabs
|
|
43
|
+
from .themes.components.text_area import text_area
|
|
44
|
+
from .themes.components.text_field import input, text_field
|
|
45
|
+
from .themes.components.tooltip import tooltip
|
|
46
|
+
from .themes.layout.box import box
|
|
47
|
+
from .themes.layout.center import center
|
|
48
|
+
from .themes.layout.container import container
|
|
49
|
+
from .themes.layout.flex import flex
|
|
50
|
+
from .themes.layout.grid import grid
|
|
51
|
+
from .themes.layout.list import list_item, ordered_list, unordered_list
|
|
52
|
+
from .themes.layout.list import list_ns as list
|
|
53
|
+
from .themes.layout.section import section
|
|
54
|
+
from .themes.layout.spacer import spacer
|
|
55
|
+
from .themes.layout.stack import hstack, stack, vstack
|
|
56
|
+
from .themes.typography.blockquote import blockquote
|
|
57
|
+
from .themes.typography.code import code
|
|
58
|
+
from .themes.typography.heading import heading
|
|
59
|
+
from .themes.typography.link import link
|
|
60
|
+
from .themes.typography.text import text
|
|
61
|
+
|
|
62
|
+
__all__ = [
|
|
63
|
+
"accordion",
|
|
64
|
+
"alert_dialog",
|
|
65
|
+
"aspect_ratio",
|
|
66
|
+
"avatar",
|
|
67
|
+
"badge",
|
|
68
|
+
"blockquote",
|
|
69
|
+
"box",
|
|
70
|
+
"button",
|
|
71
|
+
"callout",
|
|
72
|
+
"card",
|
|
73
|
+
"center",
|
|
74
|
+
"checkbox",
|
|
75
|
+
"checkbox_cards",
|
|
76
|
+
"checkbox_group",
|
|
77
|
+
"code",
|
|
78
|
+
"color_mode",
|
|
79
|
+
"container",
|
|
80
|
+
"context_menu",
|
|
81
|
+
"data_list",
|
|
82
|
+
"dialog",
|
|
83
|
+
"divider",
|
|
84
|
+
"drawer",
|
|
85
|
+
"dropdown_menu",
|
|
86
|
+
"flex",
|
|
87
|
+
"form",
|
|
88
|
+
"grid",
|
|
89
|
+
"heading",
|
|
90
|
+
"hover_card",
|
|
91
|
+
"hstack",
|
|
92
|
+
"icon_button",
|
|
93
|
+
"input",
|
|
94
|
+
"inset",
|
|
95
|
+
"link",
|
|
96
|
+
"list",
|
|
97
|
+
"list_item",
|
|
98
|
+
"menu",
|
|
99
|
+
"ordered_list",
|
|
100
|
+
"popover",
|
|
101
|
+
"primitives",
|
|
102
|
+
"progress",
|
|
103
|
+
"radio",
|
|
104
|
+
"radio_cards",
|
|
105
|
+
"radio_group",
|
|
106
|
+
"scroll_area",
|
|
107
|
+
"section",
|
|
108
|
+
"segmented_control",
|
|
109
|
+
"select",
|
|
110
|
+
"separator",
|
|
111
|
+
"skeleton",
|
|
112
|
+
"slider",
|
|
113
|
+
"spacer",
|
|
114
|
+
"spinner",
|
|
115
|
+
"stack",
|
|
116
|
+
"switch",
|
|
117
|
+
"table",
|
|
118
|
+
"tabs",
|
|
119
|
+
"text",
|
|
120
|
+
"text_area",
|
|
121
|
+
"text_field",
|
|
122
|
+
"theme",
|
|
123
|
+
"theme_panel",
|
|
124
|
+
"themes",
|
|
125
|
+
"tooltip",
|
|
126
|
+
"unordered_list",
|
|
127
|
+
"vstack",
|
|
128
|
+
]
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"""Radix component mappings for lazy loading."""
|
|
2
|
+
|
|
3
|
+
from reflex_base.utils.lazy_loader import SubmodAttrsType
|
|
4
|
+
|
|
5
|
+
RADIX_THEMES_MAPPING: SubmodAttrsType = {
|
|
6
|
+
"reflex_components_radix.themes.base": ["color_mode", "theme", "theme_panel"],
|
|
7
|
+
"reflex_components_radix.themes.color_mode": ["color_mode"],
|
|
8
|
+
}
|
|
9
|
+
RADIX_THEMES_COMPONENTS_MAPPING: SubmodAttrsType = {
|
|
10
|
+
**{
|
|
11
|
+
f"reflex_components_radix.themes.components.{mod}": [mod]
|
|
12
|
+
for mod in [
|
|
13
|
+
"alert_dialog",
|
|
14
|
+
"aspect_ratio",
|
|
15
|
+
"avatar",
|
|
16
|
+
"badge",
|
|
17
|
+
"button",
|
|
18
|
+
"callout",
|
|
19
|
+
"card",
|
|
20
|
+
"checkbox",
|
|
21
|
+
"context_menu",
|
|
22
|
+
"data_list",
|
|
23
|
+
"dialog",
|
|
24
|
+
"hover_card",
|
|
25
|
+
"icon_button",
|
|
26
|
+
"input",
|
|
27
|
+
"inset",
|
|
28
|
+
"popover",
|
|
29
|
+
"scroll_area",
|
|
30
|
+
"select",
|
|
31
|
+
"skeleton",
|
|
32
|
+
"slider",
|
|
33
|
+
"spinner",
|
|
34
|
+
"switch",
|
|
35
|
+
"table",
|
|
36
|
+
"tabs",
|
|
37
|
+
"text_area",
|
|
38
|
+
"tooltip",
|
|
39
|
+
"segmented_control",
|
|
40
|
+
"radio_cards",
|
|
41
|
+
"checkbox_cards",
|
|
42
|
+
"checkbox_group",
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"reflex_components_radix.themes.components.text_field": ["text_field", "input"],
|
|
46
|
+
"reflex_components_radix.themes.components.radio_group": ["radio", "radio_group"],
|
|
47
|
+
"reflex_components_radix.themes.components.dropdown_menu": [
|
|
48
|
+
"menu",
|
|
49
|
+
"dropdown_menu",
|
|
50
|
+
],
|
|
51
|
+
"reflex_components_radix.themes.components.separator": ["divider", "separator"],
|
|
52
|
+
"reflex_components_radix.themes.components.progress": ["progress"],
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
RADIX_THEMES_LAYOUT_MAPPING: SubmodAttrsType = {
|
|
56
|
+
"reflex_components_radix.themes.layout.box": [
|
|
57
|
+
"box",
|
|
58
|
+
],
|
|
59
|
+
"reflex_components_radix.themes.layout.center": [
|
|
60
|
+
"center",
|
|
61
|
+
],
|
|
62
|
+
"reflex_components_radix.themes.layout.container": [
|
|
63
|
+
"container",
|
|
64
|
+
],
|
|
65
|
+
"reflex_components_radix.themes.layout.flex": [
|
|
66
|
+
"flex",
|
|
67
|
+
],
|
|
68
|
+
"reflex_components_radix.themes.layout.grid": [
|
|
69
|
+
"grid",
|
|
70
|
+
],
|
|
71
|
+
"reflex_components_radix.themes.layout.section": [
|
|
72
|
+
"section",
|
|
73
|
+
],
|
|
74
|
+
"reflex_components_radix.themes.layout.spacer": [
|
|
75
|
+
"spacer",
|
|
76
|
+
],
|
|
77
|
+
"reflex_components_radix.themes.layout.stack": [
|
|
78
|
+
"stack",
|
|
79
|
+
"hstack",
|
|
80
|
+
"vstack",
|
|
81
|
+
],
|
|
82
|
+
"reflex_components_radix.themes.layout.list": [
|
|
83
|
+
("list_ns", "list"),
|
|
84
|
+
"list_item",
|
|
85
|
+
"ordered_list",
|
|
86
|
+
"unordered_list",
|
|
87
|
+
],
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
RADIX_THEMES_TYPOGRAPHY_MAPPING: SubmodAttrsType = {
|
|
91
|
+
"reflex_components_radix.themes.typography.blockquote": [
|
|
92
|
+
"blockquote",
|
|
93
|
+
],
|
|
94
|
+
"reflex_components_radix.themes.typography.code": [
|
|
95
|
+
"code",
|
|
96
|
+
],
|
|
97
|
+
"reflex_components_radix.themes.typography.heading": [
|
|
98
|
+
"heading",
|
|
99
|
+
],
|
|
100
|
+
"reflex_components_radix.themes.typography.link": [
|
|
101
|
+
"link",
|
|
102
|
+
],
|
|
103
|
+
"reflex_components_radix.themes.typography.text": [
|
|
104
|
+
"text",
|
|
105
|
+
],
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
RADIX_PRIMITIVES_MAPPING: SubmodAttrsType = {
|
|
109
|
+
"reflex_components_radix.primitives.accordion": [
|
|
110
|
+
"accordion",
|
|
111
|
+
],
|
|
112
|
+
"reflex_components_radix.primitives.drawer": [
|
|
113
|
+
"drawer",
|
|
114
|
+
],
|
|
115
|
+
"reflex_components_radix.primitives.form": [
|
|
116
|
+
"form",
|
|
117
|
+
],
|
|
118
|
+
"reflex_components_radix.primitives.progress": [
|
|
119
|
+
"progress",
|
|
120
|
+
],
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
RADIX_PRIMITIVES_SHORTCUT_MAPPING: SubmodAttrsType = {
|
|
124
|
+
k: v for k, v in RADIX_PRIMITIVES_MAPPING.items() if "progress" not in k
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
RADIX_MAPPING: SubmodAttrsType = {
|
|
128
|
+
**RADIX_THEMES_MAPPING,
|
|
129
|
+
**RADIX_THEMES_COMPONENTS_MAPPING,
|
|
130
|
+
**RADIX_THEMES_TYPOGRAPHY_MAPPING,
|
|
131
|
+
**RADIX_THEMES_LAYOUT_MAPPING,
|
|
132
|
+
**RADIX_PRIMITIVES_SHORTCUT_MAPPING,
|
|
133
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Radix primitive components (https://www.radix-ui.com/primitives)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from reflex_base.utils import lazy_loader
|
|
6
|
+
|
|
7
|
+
from reflex_components_radix.mappings import RADIX_PRIMITIVES_MAPPING
|
|
8
|
+
|
|
9
|
+
_SUBMOD_ATTRS: lazy_loader.SubmodAttrsType = {
|
|
10
|
+
"".join(k.split("reflex_components_radix.primitives.")[-1]): v
|
|
11
|
+
for k, v in RADIX_PRIMITIVES_MAPPING.items()
|
|
12
|
+
} | {"dialog": ["dialog"]}
|
|
13
|
+
|
|
14
|
+
__getattr__, __dir__, __all__ = lazy_loader.attach(
|
|
15
|
+
__name__,
|
|
16
|
+
submod_attrs=_SUBMOD_ATTRS,
|
|
17
|
+
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Stub file for reflex_components_radix/primitives/__init__.py"""
|
|
2
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
3
|
+
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
4
|
+
# ------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
from .accordion import accordion
|
|
7
|
+
from .dialog import dialog
|
|
8
|
+
from .drawer import drawer
|
|
9
|
+
from .form import form
|
|
10
|
+
from .progress import progress
|
|
11
|
+
|
|
12
|
+
__all__ = ["accordion", "dialog", "drawer", "form", "progress"]
|