Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove last remnants of rx.chakra #1168

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions blog/2024-02-16-reflex-v0-4-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ This will convert all components in your app to the new namespace.
For example, if you used an `rx.box` in your app, it will be converted to an `rx.chakra.box`.
You will still be able to use any Chakra component through the `rx.chakra` namespace.

```md alert
The keep-chakra script was removed in 0.6.0. Use a version that matches 0.4.0 <= x < 0.6.0 to convert an older app.
```

The [Chakra Docs](https://chakra.reflex.run) have been moved and updated to reflect the new namespace.

## New Core Components
Expand Down
13 changes: 7 additions & 6 deletions errors.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
```python exec
import reflex as rx
import reflex_chakra as rc
from pcweb.flexdown import markdown_with_shiki
```

Expand Down Expand Up @@ -40,9 +41,9 @@ def markdown_error(text: str):
```python exec
def error_message(heading: str, error_code: str, solution: rx.Component, error_type: str = "") -> rx.Component:
return rx.el.li(
rx.chakra.accordion(
rx.chakra.accordion_item(
rx.chakra.accordion_button(
rc.accordion(
rc.accordion_item(
rc.accordion_button(
rx.box(
rx.box(
h_comp_error(text=heading),
Expand All @@ -52,11 +53,11 @@ def error_message(heading: str, error_code: str, solution: rx.Component, error_t
rx.text(error_code, class_name="font-code text-violet-9 text-pretty font-medium"),
class_name="flex flex-col gap-2.5 text-start",
),
rx.chakra.spacer(),
rx.chakra.accordion_icon(color="var(--c-slate-9)"),
rc.spacer(),
rc.accordion_icon(color="var(--c-slate-9)"),
class_name="!bg-transparent !hover:bg-transparent !p-4 lg:!p-6 gap-4 lg:gap-32",
),
rx.chakra.accordion_panel(
rc.accordion_panel(
*solution,
class_name="!p-[0rem_1rem_1rem_1rem] lg:!p-[0rem_1.5rem_1.5rem_1.5rem] font-small text-slate-11 text-start flex flex-col gap-3 [&>code]:!font-code",
),
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ reflex_type_animation==0.0.1
reflex-ag-grid==0.0.10
replicate==0.32.1
reflex-pyplot==0.1.3
reflex-chakra==0.6.2
Loading