From 2b892df8b5c6218179b1f2324b036bc571e032b9 Mon Sep 17 00:00:00 2001 From: lizzy985 Date: Sun, 1 Dec 2024 22:10:00 -0700 Subject: [PATCH 1/7] docs update code info --- .../documentation/components/status/info.py | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/solara/website/pages/documentation/components/status/info.py b/solara/website/pages/documentation/components/status/info.py index cac0cf272..091a2f554 100644 --- a/solara/website/pages/documentation/components/status/info.py +++ b/solara/website/pages/documentation/components/status/info.py @@ -21,20 +21,20 @@ def Page(): dense, set_dense = solara.use_state(False) outlined, set_outlined = solara.use_state(True) text, set_text = solara.use_state(True) - with solara.VBox() as main: - with solara.GridFixed(4): - solara.Checkbox(label="Use icon", value=icon, on_value=set_icon) - solara.Checkbox(label="Show dense", value=dense, on_value=set_dense) - solara.Checkbox(label="Show as text", value=text, on_value=set_text) - solara.Checkbox(label="Show outlined", value=outlined, on_value=set_outlined) - solara.Info( - f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", - text=text, - dense=dense, - outlined=outlined, - icon=icon, - ) - return main + + with solara.GridFixed(4): + solara.Checkbox(label="Use icon", value=icon, on_value=set_icon) + solara.Checkbox(label="Show dense", value=dense, on_value=set_dense) + solara.Checkbox(label="Show as text", value=text, on_value=set_text) + solara.Checkbox(label="Show outlined", value=outlined, on_value=set_outlined) + solara.Info( + f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", + text=text, + dense=dense, + outlined=outlined, + icon=icon, + ) + __doc__ += apidoc(solara.Info.f) # type: ignore From 1ed5fbe038ed84627953c615ea0dabbe715cfe81 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 05:11:04 +0000 Subject: [PATCH 2/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- solara/website/pages/documentation/components/status/info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/solara/website/pages/documentation/components/status/info.py b/solara/website/pages/documentation/components/status/info.py index 091a2f554..d608c6e9b 100644 --- a/solara/website/pages/documentation/components/status/info.py +++ b/solara/website/pages/documentation/components/status/info.py @@ -21,7 +21,7 @@ def Page(): dense, set_dense = solara.use_state(False) outlined, set_outlined = solara.use_state(True) text, set_text = solara.use_state(True) - + with solara.GridFixed(4): solara.Checkbox(label="Use icon", value=icon, on_value=set_icon) solara.Checkbox(label="Show dense", value=dense, on_value=set_dense) @@ -34,7 +34,6 @@ def Page(): outlined=outlined, icon=icon, ) - __doc__ += apidoc(solara.Info.f) # type: ignore From 35a857fcc6811b563bc8ac390448e153928238a3 Mon Sep 17 00:00:00 2001 From: lizzy985 Date: Sun, 1 Dec 2024 22:10:00 -0700 Subject: [PATCH 3/7] docs update code info --- .../documentation/components/status/info.py | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/solara/website/pages/documentation/components/status/info.py b/solara/website/pages/documentation/components/status/info.py index cac0cf272..091a2f554 100644 --- a/solara/website/pages/documentation/components/status/info.py +++ b/solara/website/pages/documentation/components/status/info.py @@ -21,20 +21,20 @@ def Page(): dense, set_dense = solara.use_state(False) outlined, set_outlined = solara.use_state(True) text, set_text = solara.use_state(True) - with solara.VBox() as main: - with solara.GridFixed(4): - solara.Checkbox(label="Use icon", value=icon, on_value=set_icon) - solara.Checkbox(label="Show dense", value=dense, on_value=set_dense) - solara.Checkbox(label="Show as text", value=text, on_value=set_text) - solara.Checkbox(label="Show outlined", value=outlined, on_value=set_outlined) - solara.Info( - f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", - text=text, - dense=dense, - outlined=outlined, - icon=icon, - ) - return main + + with solara.GridFixed(4): + solara.Checkbox(label="Use icon", value=icon, on_value=set_icon) + solara.Checkbox(label="Show dense", value=dense, on_value=set_dense) + solara.Checkbox(label="Show as text", value=text, on_value=set_text) + solara.Checkbox(label="Show outlined", value=outlined, on_value=set_outlined) + solara.Info( + f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", + text=text, + dense=dense, + outlined=outlined, + icon=icon, + ) + __doc__ += apidoc(solara.Info.f) # type: ignore From 647fa44485a666e4d92bf58de229a80b5100e826 Mon Sep 17 00:00:00 2001 From: lizzy985 Date: Sun, 29 Dec 2024 10:59:33 -0700 Subject: [PATCH 4/7] docs update code info-2 --- .../documentation/components/status/info.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/solara/website/pages/documentation/components/status/info.py b/solara/website/pages/documentation/components/status/info.py index 091a2f554..6c07173b2 100644 --- a/solara/website/pages/documentation/components/status/info.py +++ b/solara/website/pages/documentation/components/status/info.py @@ -17,16 +17,16 @@ @solara.component def Page(): - icon, set_icon = solara.use_state(True) - dense, set_dense = solara.use_state(False) - outlined, set_outlined = solara.use_state(True) - text, set_text = solara.use_state(True) + icon = solara.use_reactive(True) + dense = solara.use_reactive(False) + outlined = solara.use_reactive(True) + text = solara.use_reactive(True) with solara.GridFixed(4): - solara.Checkbox(label="Use icon", value=icon, on_value=set_icon) - solara.Checkbox(label="Show dense", value=dense, on_value=set_dense) - solara.Checkbox(label="Show as text", value=text, on_value=set_text) - solara.Checkbox(label="Show outlined", value=outlined, on_value=set_outlined) + solara.Checkbox(label="Use icon", value=icon) + solara.Checkbox(label="Show dense", value=dense) + solara.Checkbox(label="Show as text", value=text) + solara.Checkbox(label="Show outlined", value=outlined) solara.Info( f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", text=text, From fba862aed11762bdfb6a325e16beb6b2a36da26a Mon Sep 17 00:00:00 2001 From: lizzy985 Date: Sun, 1 Dec 2024 22:10:00 -0700 Subject: [PATCH 5/7] docs update code info --- solara/website/pages/documentation/components/status/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solara/website/pages/documentation/components/status/info.py b/solara/website/pages/documentation/components/status/info.py index 6c07173b2..88891a507 100644 --- a/solara/website/pages/documentation/components/status/info.py +++ b/solara/website/pages/documentation/components/status/info.py @@ -21,7 +21,7 @@ def Page(): dense = solara.use_reactive(False) outlined = solara.use_reactive(True) text = solara.use_reactive(True) - + with solara.GridFixed(4): solara.Checkbox(label="Use icon", value=icon) solara.Checkbox(label="Show dense", value=dense) @@ -34,7 +34,7 @@ def Page(): outlined=outlined, icon=icon, ) - + __doc__ += apidoc(solara.Info.f) # type: ignore From d790a19d2dee666d279b7ebbe4d375f8fca7d4ee Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 05:11:04 +0000 Subject: [PATCH 6/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- solara/website/pages/documentation/components/status/info.py | 1 - 1 file changed, 1 deletion(-) diff --git a/solara/website/pages/documentation/components/status/info.py b/solara/website/pages/documentation/components/status/info.py index 88891a507..7b34279b0 100644 --- a/solara/website/pages/documentation/components/status/info.py +++ b/solara/website/pages/documentation/components/status/info.py @@ -36,5 +36,4 @@ def Page(): ) - __doc__ += apidoc(solara.Info.f) # type: ignore From 9d14ffebae0c2a67a7dab0486145a5dae3c79936 Mon Sep 17 00:00:00 2001 From: lizzy985 Date: Sun, 5 Jan 2025 09:33:25 -0700 Subject: [PATCH 7/7] docs_update_code_info_3 --- .../pages/documentation/components/status/info.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/solara/website/pages/documentation/components/status/info.py b/solara/website/pages/documentation/components/status/info.py index 6c07173b2..e4ec50aee 100644 --- a/solara/website/pages/documentation/components/status/info.py +++ b/solara/website/pages/documentation/components/status/info.py @@ -28,11 +28,11 @@ def Page(): solara.Checkbox(label="Show as text", value=text) solara.Checkbox(label="Show outlined", value=outlined) solara.Info( - f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", - text=text, - dense=dense, - outlined=outlined, - icon=icon, + f"This is solara.Info(label='...', text={text.value}, dense={dense.value}, outlined={outlined.value}, icon={icon.value})", + text=text.value, + dense=dense.value, + outlined=outlined.value, + icon=icon.value, )