Skip to content

Commit ccd497c

Browse files
authored
Rename reflex UI and reflex UI shared (#6356)
* move the files * update imports * oops
1 parent 0042801 commit ccd497c

163 files changed

Lines changed: 311 additions & 302 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ uv run pre-commit run --all-files # all pre-commi
2727

2828
```
2929
reflex/ # main framework package (app, state, compiler, components, utils, istate)
30-
packages/ # workspace sub-packages (reflex-base, reflex-components-*, reflex-docgen, reflex-ui)
30+
packages/ # workspace sub-packages (reflex-base, reflex-components-*, reflex-docgen, reflex-components-internal)
3131
tests/units/ # unit tests, mirrors source tree
3232
tests/integration/ # Selenium integration tests (run in dev+prod modes)
3333
tests_playwright/ # Playwright integration tests (preferred for new tests)

docs/app/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ dependencies = [
1919
"reflex-hosting-cli",
2020
"reflex-pyplot",
2121
"reflex-integrations-docs",
22-
"reflex-ui",
23-
"reflex-ui-shared",
22+
"reflex-components-internal",
23+
"reflex-site-shared",
2424
"alembic",
2525
"requests",
2626
"ruff-format",

docs/app/reflex_docs/components/button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Callable, Literal
22

33
import reflex as rx
4-
from reflex_ui_shared.components.icons import get_icon
4+
from reflex_site_shared.components.icons import get_icon
55

66
LiteralButtonVariant = Literal[
77
"primary", "success", "destructive", "secondary", "muted"

docs/app/reflex_docs/components/docpage/navbar/buttons/sidebar.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import reflex as rx
2-
import reflex_ui as ui
2+
import reflex_components_internal as ui
33
from reflex.style import toggle_color_mode
4-
from reflex_ui_shared.components.icons import get_icon
5-
from reflex_ui_shared.components.marketing_button import button
6-
from reflex_ui_shared.constants import DISCORD_URL, GITHUB_URL, TWITTER_URL
7-
from reflex_ui_shared.views.hosting_banner import HostingBannerState
4+
from reflex_site_shared.components.icons import get_icon
5+
from reflex_site_shared.components.marketing_button import button
6+
from reflex_site_shared.constants import DISCORD_URL, GITHUB_URL, TWITTER_URL
7+
from reflex_site_shared.views.hosting_banner import HostingBannerState
88

99
_DRAWER_LINKS_DOCS = "/docs"
1010
_DRAWER_LINKS_TEMPLATES = "/templates"

docs/app/reflex_docs/docgen_pipeline.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535
TextSpan,
3636
)
3737
from reflex_docgen.markdown.transformer import DocumentTransformer
38-
from reflex_ui_shared.components.blocks.code import code_block
39-
from reflex_ui_shared.components.blocks.collapsible import collapsible_box
40-
from reflex_ui_shared.components.blocks.demo import docdemo, docdemobox, docgraphing
41-
from reflex_ui_shared.components.blocks.headings import (
38+
from reflex_site_shared.components.blocks.code import code_block
39+
from reflex_site_shared.components.blocks.collapsible import collapsible_box
40+
from reflex_site_shared.components.blocks.demo import docdemo, docdemobox, docgraphing
41+
from reflex_site_shared.components.blocks.headings import (
4242
h1_comp_xd,
4343
h2_comp_xd,
4444
h3_comp_xd,
4545
h4_comp_xd,
4646
img_comp_xd,
4747
)
48-
from reflex_ui_shared.components.blocks.typography import (
48+
from reflex_site_shared.components.blocks.typography import (
4949
code_comp,
5050
doclink2,
5151
list_comp,
5252
text_comp,
5353
)
54-
from reflex_ui_shared.constants import REFLEX_ASSETS_CDN
54+
from reflex_site_shared.constants import REFLEX_ASSETS_CDN
5555

5656
# ---------------------------------------------------------------------------
5757
# Exec environment — mirrors reflex_docgen's module-based exec mechanism
@@ -681,7 +681,7 @@ def _render_tabs(self, block: DirectiveBlock) -> rx.Component:
681681

682682
def _render_definition(self, block: DirectiveBlock) -> rx.Component:
683683
"""Render a ``md definition`` directive."""
684-
from reflex_ui_shared.components.blocks.typography import definition
684+
from reflex_site_shared.components.blocks.typography import definition
685685

686686
sections = self._split_children_by_heading(block.children)
687687
defs = [
@@ -702,7 +702,7 @@ def _render_definition(self, block: DirectiveBlock) -> rx.Component:
702702

703703
def _render_section(self, block: DirectiveBlock) -> rx.Component:
704704
"""Render a ``md section`` directive."""
705-
from reflex_ui_shared.styles.colors import c_color
705+
from reflex_site_shared.styles.colors import c_color
706706

707707
sections = self._split_children_by_heading(block.children)
708708
return rx.box(

docs/app/reflex_docs/pages/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from reflex_ui_shared.gallery.apps import gallery_apps_routes
2-
from reflex_ui_shared.pages.page404 import page404 # noqa: F401
3-
from reflex_ui_shared.route import Route
1+
from reflex_site_shared.gallery.apps import gallery_apps_routes
2+
from reflex_site_shared.pages.page404 import page404 # noqa: F401
3+
from reflex_site_shared.route import Route
44

55
from reflex_docs.pages.docs import doc_routes
66
from reflex_docs.pages.docs_landing import docs_landing # noqa: F401

docs/app/reflex_docs/pages/docs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# External Components
1010
from reflex_pyplot import pyplot as pyplot
11-
from reflex_ui_shared.route import Route
11+
from reflex_site_shared.route import Route
1212

1313
from reflex_docs.docgen_pipeline import get_docgen_toc, render_docgen_document
1414
from reflex_docs.pages.docs.component import multi_docs

docs/app/reflex_docs/pages/docs/custom_components.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
import httpx
55
import reflex as rx
6-
from reflex_ui_shared.components.icons import get_icon
7-
from reflex_ui_shared.styles.colors import c_color
8-
from reflex_ui_shared.styles.fonts import base
9-
from reflex_ui_shared.styles.shadows import shadows
6+
from reflex_site_shared.components.icons import get_icon
7+
from reflex_site_shared.styles.colors import c_color
8+
from reflex_site_shared.styles.fonts import base
9+
from reflex_site_shared.styles.shadows import shadows
1010

1111
from reflex_docs.templates.docpage import docpage, h1_comp, text_comp_2
1212

docs/app/reflex_docs/pages/docs/guide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import reflex as rx
2-
from reflex_ui_shared.templates.webpage import webpage
2+
from reflex_site_shared.templates.webpage import webpage
33

44

55
@webpage(path="/flexdown-guide", title="Flexdown Guide")

docs/app/reflex_docs/pages/docs/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import reflex as rx
22
from reflex.utils.format import to_snake_case, to_title_case
3-
from reflex_ui_shared.components.icons import get_icon
3+
from reflex_site_shared.components.icons import get_icon
44

55
from reflex_docs.templates.docpage import docpage, h1_comp, text_comp_2
66

0 commit comments

Comments
 (0)