Skip to content

Commit

Permalink
expose radix primitive progress under rx.radix.primitives.progress (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor authored Sep 16, 2024
1 parent a57095f commit fe9f3a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion reflex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@
"components.radix.primitives.form": [
"form",
],
"components.radix.primitives.progress": [
"progress",
],
}

RADIX_PRIMITIVES_SHORTCUT_MAPPING: dict = {
k: v for k, v in RADIX_PRIMITIVES_MAPPING.items() if "progress" not in k
}

COMPONENTS_CORE_MAPPING: dict = {
Expand Down Expand Up @@ -248,7 +255,7 @@
**RADIX_THEMES_COMPONENTS_MAPPING,
**RADIX_THEMES_TYPOGRAPHY_MAPPING,
**RADIX_THEMES_LAYOUT_MAPPING,
**RADIX_PRIMITIVES_MAPPING,
**RADIX_PRIMITIVES_SHORTCUT_MAPPING,
}

_MAPPING: dict = {
Expand Down
1 change: 1 addition & 0 deletions reflex/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ RADIX_THEMES_COMPONENTS_MAPPING: dict
RADIX_THEMES_LAYOUT_MAPPING: dict
RADIX_THEMES_TYPOGRAPHY_MAPPING: dict
RADIX_PRIMITIVES_MAPPING: dict
RADIX_PRIMITIVES_SHORTCUT_MAPPING: dict
COMPONENTS_CORE_MAPPING: dict
COMPONENTS_BASE_MAPPING: dict
RADIX_MAPPING: dict
1 change: 1 addition & 0 deletions reflex/components/radix/primitives/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
from .accordion import accordion as accordion
from .drawer import drawer as drawer
from .form import form as form
from .progress import progress as progress

0 comments on commit fe9f3a7

Please sign in to comment.