Skip to content

Commit 84d21da

Browse files
authored
remove last remnants of rx.chakra (#1168)
* remove last remnants of rx.chakra * fix codespell
1 parent 54ac427 commit 84d21da

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

blog/2024-02-16-reflex-v0-4-0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ This will convert all components in your app to the new namespace.
5757
For example, if you used an `rx.box` in your app, it will be converted to an `rx.chakra.box`.
5858
You will still be able to use any Chakra component through the `rx.chakra` namespace.
5959

60+
```md alert
61+
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.
62+
```
63+
6064
The [Chakra Docs](https://chakra.reflex.run) have been moved and updated to reflect the new namespace.
6165

6266
## New Core Components

errors.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
```python exec
22
import reflex as rx
3+
import reflex_chakra as rc
34
from pcweb.flexdown import markdown_with_shiki
45
```
56

@@ -40,9 +41,9 @@ def markdown_error(text: str):
4041
```python exec
4142
def error_message(heading: str, error_code: str, solution: rx.Component, error_type: str = "") -> rx.Component:
4243
return rx.el.li(
43-
rx.chakra.accordion(
44-
rx.chakra.accordion_item(
45-
rx.chakra.accordion_button(
44+
rc.accordion(
45+
rc.accordion_item(
46+
rc.accordion_button(
4647
rx.box(
4748
rx.box(
4849
h_comp_error(text=heading),
@@ -52,11 +53,11 @@ def error_message(heading: str, error_code: str, solution: rx.Component, error_t
5253
rx.text(error_code, class_name="font-code text-violet-9 text-pretty font-medium"),
5354
class_name="flex flex-col gap-2.5 text-start",
5455
),
55-
rx.chakra.spacer(),
56-
rx.chakra.accordion_icon(color="var(--c-slate-9)"),
56+
rc.spacer(),
57+
rc.accordion_icon(color="var(--c-slate-9)"),
5758
class_name="!bg-transparent !hover:bg-transparent !p-4 lg:!p-6 gap-4 lg:gap-32",
5859
),
59-
rx.chakra.accordion_panel(
60+
rc.accordion_panel(
6061
*solution,
6162
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",
6263
),

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ reflex_type_animation==0.0.1
1616
reflex-ag-grid==0.0.10
1717
replicate==0.32.1
1818
reflex-pyplot==0.1.3
19+
reflex-chakra==0.6.2

0 commit comments

Comments
 (0)