diff --git a/README.md b/README.md
index 9497553a39daac51cfbbb000bd3597b9cb2adee0..c682bd1736dae3394d14096c02ef73c0b1ca7a02 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ app_port: 8080
# Mesop demo app
-This app demonstrates Mesop's various components and features. Create your own Cloud Run app by following: https://google.github.io/mesop/guides/deployment/
+This app demonstrates Mesop's various components and features. Create your own Cloud Run app by following: https://mesop-dev.github.io/mesop/guides/deployment/
## Development
@@ -59,7 +59,7 @@ This app is deployed to Google Cloud Run.
gcloud run deploy mesop --source .
```
-See our Mesop deployment [docs](https://google.github.io/mesop/guides/deployment/#deploy-to-google-cloud-run) for more background.
+See our Mesop deployment [docs](https://mesop-dev.github.io/mesop/guides/deployment/#deploy-to-google-cloud-run) for more background.
### Deploy to Hugging Face Spaces
diff --git a/__pycache__/audio.cpython-310.pyc b/__pycache__/audio.cpython-310.pyc
index c064b77a6bf23d98efb129dd6017102d9130fb49..3a93437c9b8d765fbe258471811daaff440a43c2 100644
Binary files a/__pycache__/audio.cpython-310.pyc and b/__pycache__/audio.cpython-310.pyc differ
diff --git a/__pycache__/audio.cpython-312.pyc b/__pycache__/audio.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a7fc1456b76c260f58d980d2cd9a0adc2d5e336a
Binary files /dev/null and b/__pycache__/audio.cpython-312.pyc differ
diff --git a/__pycache__/autocomplete.cpython-310.pyc b/__pycache__/autocomplete.cpython-310.pyc
index bfccee199477353cec4a8b146a1884c08713d063..8360b3e0918403ecdd1568cb508b3a3fc65c4c29 100644
Binary files a/__pycache__/autocomplete.cpython-310.pyc and b/__pycache__/autocomplete.cpython-310.pyc differ
diff --git a/__pycache__/autocomplete.cpython-312.pyc b/__pycache__/autocomplete.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5c9c9bc75e3fd948df7399d301f96a2ff37da8bb
Binary files /dev/null and b/__pycache__/autocomplete.cpython-312.pyc differ
diff --git a/__pycache__/badge.cpython-310.pyc b/__pycache__/badge.cpython-310.pyc
index de3a4f48bdcfa5c901ddfe1e2823ff373b681331..2a7b4cfe5c267c29e37fd68d680746935d97f9df 100644
Binary files a/__pycache__/badge.cpython-310.pyc and b/__pycache__/badge.cpython-310.pyc differ
diff --git a/__pycache__/badge.cpython-312.pyc b/__pycache__/badge.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..7165b21648a3d7fb2f10b36e1dcd29f9748d006b
Binary files /dev/null and b/__pycache__/badge.cpython-312.pyc differ
diff --git a/__pycache__/basic_animation.cpython-310.pyc b/__pycache__/basic_animation.cpython-310.pyc
index 2542f97199ad8e9ed4cb144f0812c2601145b5c6..ae68cbfb9fea1599c5cb781d9f37f9b821711af9 100644
Binary files a/__pycache__/basic_animation.cpython-310.pyc and b/__pycache__/basic_animation.cpython-310.pyc differ
diff --git a/__pycache__/basic_animation.cpython-312.pyc b/__pycache__/basic_animation.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d25776d07cc06c27c373709a6f21dba18f32579c
Binary files /dev/null and b/__pycache__/basic_animation.cpython-312.pyc differ
diff --git a/__pycache__/bootstrap.cpython-310.pyc b/__pycache__/bootstrap.cpython-310.pyc
index 01e81277e470fb4a2810cd5d6e789e6e91d4f136..8ece460ad125374d04c24bc0859ee9136e80de6b 100644
Binary files a/__pycache__/bootstrap.cpython-310.pyc and b/__pycache__/bootstrap.cpython-310.pyc differ
diff --git a/__pycache__/bootstrap.cpython-312.pyc b/__pycache__/bootstrap.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..7ba12ff5de7af960c1b99a887f0fd00f587b3f29
Binary files /dev/null and b/__pycache__/bootstrap.cpython-312.pyc differ
diff --git a/__pycache__/box.cpython-310.pyc b/__pycache__/box.cpython-310.pyc
index df63321370e9dd7e164ae8c4cc234de6dfbe815e..7707ebc78307a9d7aae1726937fca0b104fbf676 100644
Binary files a/__pycache__/box.cpython-310.pyc and b/__pycache__/box.cpython-310.pyc differ
diff --git a/__pycache__/box.cpython-312.pyc b/__pycache__/box.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..7479061204887b60c9eba2f4d7b15e3317140eb4
Binary files /dev/null and b/__pycache__/box.cpython-312.pyc differ
diff --git a/__pycache__/button.cpython-310.pyc b/__pycache__/button.cpython-310.pyc
index 26eeca81aed28103161ed094881322228622a7d7..42c4e88c0b87074f87d3595a7faa1438cb97508c 100644
Binary files a/__pycache__/button.cpython-310.pyc and b/__pycache__/button.cpython-310.pyc differ
diff --git a/__pycache__/button.cpython-312.pyc b/__pycache__/button.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..0417d7241f5175a61f2ade58edd51a8321616e5a
Binary files /dev/null and b/__pycache__/button.cpython-312.pyc differ
diff --git a/__pycache__/button_toggle.cpython-310.pyc b/__pycache__/button_toggle.cpython-310.pyc
index 835764024ea7b5fe873a7bfa4f1f652629afd50f..f3a32671af664715c427610fce4d7e866ebe46d7 100644
Binary files a/__pycache__/button_toggle.cpython-310.pyc and b/__pycache__/button_toggle.cpython-310.pyc differ
diff --git a/__pycache__/button_toggle.cpython-312.pyc b/__pycache__/button_toggle.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a23387820ad00b39da07a542be4fb7e11e8090fe
Binary files /dev/null and b/__pycache__/button_toggle.cpython-312.pyc differ
diff --git a/__pycache__/card.cpython-310.pyc b/__pycache__/card.cpython-310.pyc
index 11f40d73fe98549284dfea1050c605a34af3fecf..6a0580a3d42572ee653c93227dcff9e2e92f1ede 100644
Binary files a/__pycache__/card.cpython-310.pyc and b/__pycache__/card.cpython-310.pyc differ
diff --git a/__pycache__/card.cpython-312.pyc b/__pycache__/card.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d9c0c933e55eaf713e2ad96942f0e373e64db9dc
Binary files /dev/null and b/__pycache__/card.cpython-312.pyc differ
diff --git a/__pycache__/chat.cpython-312.pyc b/__pycache__/chat.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a03b3bd5f3c645ae974a8ed879d61f92b6072514
Binary files /dev/null and b/__pycache__/chat.cpython-312.pyc differ
diff --git a/__pycache__/chat_inputs.cpython-310.pyc b/__pycache__/chat_inputs.cpython-310.pyc
index 77b49970d1b4b9431cae965caae7aba6b334acf6..77af003732cf843e37eabff505bd2a617899fd7e 100644
Binary files a/__pycache__/chat_inputs.cpython-310.pyc and b/__pycache__/chat_inputs.cpython-310.pyc differ
diff --git a/__pycache__/chat_inputs.cpython-312.pyc b/__pycache__/chat_inputs.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..53269b8f5f8da2ad24ff2f6f19f6c05c9a91876a
Binary files /dev/null and b/__pycache__/chat_inputs.cpython-312.pyc differ
diff --git a/__pycache__/checkbox.cpython-310.pyc b/__pycache__/checkbox.cpython-310.pyc
index 43af57b19bb36eedf3a5fb12c7bd5eaa58e0780c..d72659d210d2ac3a4dc93233ce22514f8384c753 100644
Binary files a/__pycache__/checkbox.cpython-310.pyc and b/__pycache__/checkbox.cpython-310.pyc differ
diff --git a/__pycache__/checkbox.cpython-312.pyc b/__pycache__/checkbox.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c9350b57cbdc259ea9a0b0e29ba11b010e8059a2
Binary files /dev/null and b/__pycache__/checkbox.cpython-312.pyc differ
diff --git a/__pycache__/code_demo.cpython-310.pyc b/__pycache__/code_demo.cpython-310.pyc
index ac13f7c66e5abeaff3d018e771e63b937fdc79bd..4b03512e0310de71f7712af344f3ee194c472b2c 100644
Binary files a/__pycache__/code_demo.cpython-310.pyc and b/__pycache__/code_demo.cpython-310.pyc differ
diff --git a/__pycache__/code_demo.cpython-312.pyc b/__pycache__/code_demo.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c86494c09897eaba0497f002099426ee537a02ba
Binary files /dev/null and b/__pycache__/code_demo.cpython-312.pyc differ
diff --git a/__pycache__/date_picker.cpython-310.pyc b/__pycache__/date_picker.cpython-310.pyc
index d482bb209ae8de29af2bd25e20bfff68f4e379c2..c5fe86f722123ccf920c7316525a8564ecbc1033 100644
Binary files a/__pycache__/date_picker.cpython-310.pyc and b/__pycache__/date_picker.cpython-310.pyc differ
diff --git a/__pycache__/date_picker.cpython-312.pyc b/__pycache__/date_picker.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f7d7e9429e785713e186de8ae1ea1df1bbd828a6
Binary files /dev/null and b/__pycache__/date_picker.cpython-312.pyc differ
diff --git a/__pycache__/date_range_picker.cpython-310.pyc b/__pycache__/date_range_picker.cpython-310.pyc
index 6588ef07f6b20daf538e5c0c74243f39a89da14d..64e8293f78bcf75d45b25e7480720bbbdb5a4fb4 100644
Binary files a/__pycache__/date_range_picker.cpython-310.pyc and b/__pycache__/date_range_picker.cpython-310.pyc differ
diff --git a/__pycache__/date_range_picker.cpython-312.pyc b/__pycache__/date_range_picker.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a4686406093b6bfb2d9756727c5d06164370cf3b
Binary files /dev/null and b/__pycache__/date_range_picker.cpython-312.pyc differ
diff --git a/__pycache__/density.cpython-310.pyc b/__pycache__/density.cpython-310.pyc
index 234896de6ec025ede5a9b7f7284492396f9a168c..409e16be974eb5084336f2857cc43f8b561ae834 100644
Binary files a/__pycache__/density.cpython-310.pyc and b/__pycache__/density.cpython-310.pyc differ
diff --git a/__pycache__/density.cpython-312.pyc b/__pycache__/density.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..dbb75c6d504fe65b814d9eca26ff984ee4607c63
Binary files /dev/null and b/__pycache__/density.cpython-312.pyc differ
diff --git a/__pycache__/dialog.cpython-310.pyc b/__pycache__/dialog.cpython-310.pyc
index b91f261a59cff6cb83ce736625aaec33f664153b..415e64275589094014e0239a54f3e0cd8e3c34df 100644
Binary files a/__pycache__/dialog.cpython-310.pyc and b/__pycache__/dialog.cpython-310.pyc differ
diff --git a/__pycache__/dialog.cpython-312.pyc b/__pycache__/dialog.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..6ad3640c1c8ba6932630aea2fdae26f13a30dbc7
Binary files /dev/null and b/__pycache__/dialog.cpython-312.pyc differ
diff --git a/__pycache__/divider.cpython-310.pyc b/__pycache__/divider.cpython-310.pyc
index c12befd20778e1b5de79977fbafe239c15efd547..59b17cd0baf19113628ac62206e0bb1bedfb8156 100644
Binary files a/__pycache__/divider.cpython-310.pyc and b/__pycache__/divider.cpython-310.pyc differ
diff --git a/__pycache__/divider.cpython-312.pyc b/__pycache__/divider.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..dc7bbcf5078843198a9dcfd1b56385b2511760c5
Binary files /dev/null and b/__pycache__/divider.cpython-312.pyc differ
diff --git a/__pycache__/embed.cpython-310.pyc b/__pycache__/embed.cpython-310.pyc
index dffaeb0c08c0f0af79543986ba030650b752f2cc..c886738439810a5b55294c518e6611bcd48ad3d4 100644
Binary files a/__pycache__/embed.cpython-310.pyc and b/__pycache__/embed.cpython-310.pyc differ
diff --git a/__pycache__/embed.cpython-312.pyc b/__pycache__/embed.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8d9f1b4af5b8010275afc316205484d324770204
Binary files /dev/null and b/__pycache__/embed.cpython-312.pyc differ
diff --git a/__pycache__/expansion_panel.cpython-310.pyc b/__pycache__/expansion_panel.cpython-310.pyc
index 4bf80faa121108d9d1df1fd271e1a1e5785b2e74..42875c75256772b9b2b956afe1d27de25016d6a0 100644
Binary files a/__pycache__/expansion_panel.cpython-310.pyc and b/__pycache__/expansion_panel.cpython-310.pyc differ
diff --git a/__pycache__/expansion_panel.cpython-312.pyc b/__pycache__/expansion_panel.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..38c99dd48f133573a58bf0cdbb6c2b670a68d25d
Binary files /dev/null and b/__pycache__/expansion_panel.cpython-312.pyc differ
diff --git a/__pycache__/fancy_chat.cpython-310.pyc b/__pycache__/fancy_chat.cpython-310.pyc
index a148b6657db6103bbb7231146cfef71bc31f6c2c..d6e866e295829b4ce34e2bbb4d5af1da7d295ef1 100644
Binary files a/__pycache__/fancy_chat.cpython-310.pyc and b/__pycache__/fancy_chat.cpython-310.pyc differ
diff --git a/__pycache__/fancy_chat.cpython-312.pyc b/__pycache__/fancy_chat.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..9f5a940f5a8533ba2e34d864053fc427a12c0e51
Binary files /dev/null and b/__pycache__/fancy_chat.cpython-312.pyc differ
diff --git a/__pycache__/feedback.cpython-310.pyc b/__pycache__/feedback.cpython-310.pyc
index 2db907ce9ac5750969273b44e73a71ddd2816e5c..159f7a81b41cfa47f406505731da4b92700bb7a7 100644
Binary files a/__pycache__/feedback.cpython-310.pyc and b/__pycache__/feedback.cpython-310.pyc differ
diff --git a/__pycache__/feedback.cpython-312.pyc b/__pycache__/feedback.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..34462e4fe69c81cac922759f60478041a59aa435
Binary files /dev/null and b/__pycache__/feedback.cpython-312.pyc differ
diff --git a/__pycache__/form_billing.cpython-310.pyc b/__pycache__/form_billing.cpython-310.pyc
index 53e8e2186f89aa49710579ece5ecbf3413c740df..5ab47a63003293c42860a30a3ecafc0aca09406b 100644
Binary files a/__pycache__/form_billing.cpython-310.pyc and b/__pycache__/form_billing.cpython-310.pyc differ
diff --git a/__pycache__/form_billing.cpython-312.pyc b/__pycache__/form_billing.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..b4b2c617b9ea21dadc39cf50bdb04e326e9a59e0
Binary files /dev/null and b/__pycache__/form_billing.cpython-312.pyc differ
diff --git a/__pycache__/form_profile.cpython-310.pyc b/__pycache__/form_profile.cpython-310.pyc
index 39f8484a81ecb1ed4512067de79d80acd7eb615a..df353d0c8b9fd2f90f7af0a73ae95570304aefc5 100644
Binary files a/__pycache__/form_profile.cpython-310.pyc and b/__pycache__/form_profile.cpython-310.pyc differ
diff --git a/__pycache__/form_profile.cpython-312.pyc b/__pycache__/form_profile.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5f603746abdb26a606ee74c4708ee581c6dcaa9d
Binary files /dev/null and b/__pycache__/form_profile.cpython-312.pyc differ
diff --git a/__pycache__/grid_table.cpython-310.pyc b/__pycache__/grid_table.cpython-310.pyc
index 8498670c460392759d43d0051aafc67953baddb8..76ef902195a7e39d6a415d7633871439a8e9fea7 100644
Binary files a/__pycache__/grid_table.cpython-310.pyc and b/__pycache__/grid_table.cpython-310.pyc differ
diff --git a/__pycache__/grid_table.cpython-312.pyc b/__pycache__/grid_table.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..b921142711d79e2d07146caee98e2d7f879d391e
Binary files /dev/null and b/__pycache__/grid_table.cpython-312.pyc differ
diff --git a/__pycache__/headers.cpython-310.pyc b/__pycache__/headers.cpython-310.pyc
index 45da34c455ee2c5fd3c7b69e0dc1d82e93a08892..55d18ee7df03b85b4552bfaaf27ce5b470bc9593 100644
Binary files a/__pycache__/headers.cpython-310.pyc and b/__pycache__/headers.cpython-310.pyc differ
diff --git a/__pycache__/headers.cpython-312.pyc b/__pycache__/headers.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8bb1bf6c332c3f0e566ddf8c6ce2cc5c36908199
Binary files /dev/null and b/__pycache__/headers.cpython-312.pyc differ
diff --git a/__pycache__/html_demo.cpython-310.pyc b/__pycache__/html_demo.cpython-310.pyc
index 4e08b1ea8275e496ce9f3b0ea26d69540cf2ccf0..2883d5f63e38ef80ba334b9a9fd208429aa112e7 100644
Binary files a/__pycache__/html_demo.cpython-310.pyc and b/__pycache__/html_demo.cpython-310.pyc differ
diff --git a/__pycache__/html_demo.cpython-312.pyc b/__pycache__/html_demo.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5ea0ca6c270b2db4f7a8f45060715ab83d2abb08
Binary files /dev/null and b/__pycache__/html_demo.cpython-312.pyc differ
diff --git a/__pycache__/icon.cpython-310.pyc b/__pycache__/icon.cpython-310.pyc
index b5a91f975105bbcba83e4c8271e713ef1c202d79..a4466ab2775ebea7284418cc958d5fca55646f59 100644
Binary files a/__pycache__/icon.cpython-310.pyc and b/__pycache__/icon.cpython-310.pyc differ
diff --git a/__pycache__/icon.cpython-312.pyc b/__pycache__/icon.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..da1ab27d2cc0a33d3b0bf38884fc2c928476a590
Binary files /dev/null and b/__pycache__/icon.cpython-312.pyc differ
diff --git a/__pycache__/image.cpython-310.pyc b/__pycache__/image.cpython-310.pyc
index ba79474ea4f01d4a0c0f1d98c384f98080b09939..f71bc996ad1e0c8e27038cfaf006264759e6593c 100644
Binary files a/__pycache__/image.cpython-310.pyc and b/__pycache__/image.cpython-310.pyc differ
diff --git a/__pycache__/image.cpython-312.pyc b/__pycache__/image.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..1fc5d77f500cd16b49d89ca000397ef46a65ac75
Binary files /dev/null and b/__pycache__/image.cpython-312.pyc differ
diff --git a/__pycache__/input.cpython-310.pyc b/__pycache__/input.cpython-310.pyc
index 69d829b62f376f96bd96aeb6d90e797b51771794..298365fb1c9235e8313aae7bddd7c3e3f8410e8a 100644
Binary files a/__pycache__/input.cpython-310.pyc and b/__pycache__/input.cpython-310.pyc differ
diff --git a/__pycache__/input.cpython-312.pyc b/__pycache__/input.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..14acda3497785bba663d7f46af112aae2bda498d
Binary files /dev/null and b/__pycache__/input.cpython-312.pyc differ
diff --git a/__pycache__/link.cpython-310.pyc b/__pycache__/link.cpython-310.pyc
index ca191e294f85b515bc14f5d21529f1d7cdba3f99..f557079fc20661e61a82ed4c4376d25b3d9b262c 100644
Binary files a/__pycache__/link.cpython-310.pyc and b/__pycache__/link.cpython-310.pyc differ
diff --git a/__pycache__/link.cpython-312.pyc b/__pycache__/link.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..69552a7e350e880191f8a7a134c685cb6d2a908d
Binary files /dev/null and b/__pycache__/link.cpython-312.pyc differ
diff --git a/__pycache__/llm_playground.cpython-310.pyc b/__pycache__/llm_playground.cpython-310.pyc
index b57ec885e4b1d1979ac5b82b90dfcfd6972848cf..f02c078099cdeebe9717e37a0b684f12a0f00f32 100644
Binary files a/__pycache__/llm_playground.cpython-310.pyc and b/__pycache__/llm_playground.cpython-310.pyc differ
diff --git a/__pycache__/llm_playground.cpython-312.pyc b/__pycache__/llm_playground.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..6a12732a067997eb622fae37bb6047d5382f0213
Binary files /dev/null and b/__pycache__/llm_playground.cpython-312.pyc differ
diff --git a/__pycache__/llm_rewriter.cpython-310.pyc b/__pycache__/llm_rewriter.cpython-310.pyc
index bda41763da426abc2eea09d8e3b9f8e2de1cc8a6..741bf8b345680bea4b224a301891c31600bebfc8 100644
Binary files a/__pycache__/llm_rewriter.cpython-310.pyc and b/__pycache__/llm_rewriter.cpython-310.pyc differ
diff --git a/__pycache__/llm_rewriter.cpython-312.pyc b/__pycache__/llm_rewriter.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..507c9611b5d483a026c6f7256e5f45b01ca00669
Binary files /dev/null and b/__pycache__/llm_rewriter.cpython-312.pyc differ
diff --git a/__pycache__/main.cpython-310.pyc b/__pycache__/main.cpython-310.pyc
index 760162cade85b6d271806030cdf5e3a2a5381820..b18132aa28d3adc48af3b0c977c02fc7d7c0ab4c 100644
Binary files a/__pycache__/main.cpython-310.pyc and b/__pycache__/main.cpython-310.pyc differ
diff --git a/__pycache__/main.cpython-312.pyc b/__pycache__/main.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..96f85b1e58f1755e4da0b1cb864ad55a6d1264ad
Binary files /dev/null and b/__pycache__/main.cpython-312.pyc differ
diff --git a/__pycache__/markdown_demo.cpython-312.pyc b/__pycache__/markdown_demo.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f3c010e34ceba841ad31ed198a918269f24ea842
Binary files /dev/null and b/__pycache__/markdown_demo.cpython-312.pyc differ
diff --git a/__pycache__/markdown_editor.cpython-310.pyc b/__pycache__/markdown_editor.cpython-310.pyc
index 624762fb2e98d0d29c603d0cfe1af24632ae72cd..9d53cf6d14259353c8e4af3e80c26861f9df3423 100644
Binary files a/__pycache__/markdown_editor.cpython-310.pyc and b/__pycache__/markdown_editor.cpython-310.pyc differ
diff --git a/__pycache__/markdown_editor.cpython-312.pyc b/__pycache__/markdown_editor.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..3c101d7fdf157f599b4bdf8b3f0ad3b85a03abe0
Binary files /dev/null and b/__pycache__/markdown_editor.cpython-312.pyc differ
diff --git a/__pycache__/plot.cpython-310.pyc b/__pycache__/plot.cpython-310.pyc
index 855b02ec675a30f36c57f98e9e335dde7296fe5f..1ce1596ab85b85f0fc77c80d1691ef0fd86fb9d7 100644
Binary files a/__pycache__/plot.cpython-310.pyc and b/__pycache__/plot.cpython-310.pyc differ
diff --git a/__pycache__/plot.cpython-312.pyc b/__pycache__/plot.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..31ad56711d7a10301af5fdf282eac2cf6f7907ed
Binary files /dev/null and b/__pycache__/plot.cpython-312.pyc differ
diff --git a/__pycache__/progress_bar.cpython-310.pyc b/__pycache__/progress_bar.cpython-310.pyc
index d2f4c3cc6b392ddcfcbc719e947500f56cdaadb6..a5ce66d65a1618cc49e6bdd63268f6b059c1345b 100644
Binary files a/__pycache__/progress_bar.cpython-310.pyc and b/__pycache__/progress_bar.cpython-310.pyc differ
diff --git a/__pycache__/progress_bar.cpython-312.pyc b/__pycache__/progress_bar.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a46d635a47cd2a4f58fa799f9fe7f1645255ff3f
Binary files /dev/null and b/__pycache__/progress_bar.cpython-312.pyc differ
diff --git a/__pycache__/progress_spinner.cpython-310.pyc b/__pycache__/progress_spinner.cpython-310.pyc
index 9b1a3ca55d3f879466767fc99dde8beca95a5fb9..fba42db51161b830f1c0296fe78df005d4dd1e4c 100644
Binary files a/__pycache__/progress_spinner.cpython-310.pyc and b/__pycache__/progress_spinner.cpython-310.pyc differ
diff --git a/__pycache__/progress_spinner.cpython-312.pyc b/__pycache__/progress_spinner.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c359fbde09266f2760b854379c2f1772502d22cb
Binary files /dev/null and b/__pycache__/progress_spinner.cpython-312.pyc differ
diff --git a/__pycache__/radio.cpython-310.pyc b/__pycache__/radio.cpython-310.pyc
index f9e75896a48c58c0117c185035b116433ff7b07a..d219920d44b63dcd5021b1ec0d8983ce7749729a 100644
Binary files a/__pycache__/radio.cpython-310.pyc and b/__pycache__/radio.cpython-310.pyc differ
diff --git a/__pycache__/radio.cpython-312.pyc b/__pycache__/radio.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d3f03e409601faace34a03425fab1290b123848a
Binary files /dev/null and b/__pycache__/radio.cpython-312.pyc differ
diff --git a/__pycache__/select_demo.cpython-310.pyc b/__pycache__/select_demo.cpython-310.pyc
index 29fc78a77fc32dd1e3fadcc76644545f8847cdd9..f4e555ad24f53b33704816e3b5f8cd56278063e6 100644
Binary files a/__pycache__/select_demo.cpython-310.pyc and b/__pycache__/select_demo.cpython-310.pyc differ
diff --git a/__pycache__/select_demo.cpython-312.pyc b/__pycache__/select_demo.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..4cb9d405461ea1a7bd3c066bebdf1f32d19946c8
Binary files /dev/null and b/__pycache__/select_demo.cpython-312.pyc differ
diff --git a/__pycache__/sidenav.cpython-310.pyc b/__pycache__/sidenav.cpython-310.pyc
index badf7dfe9b343571a79968663821d9aff0b146de..f9d297b99223bead424fa648d40118d837b81ac5 100644
Binary files a/__pycache__/sidenav.cpython-310.pyc and b/__pycache__/sidenav.cpython-310.pyc differ
diff --git a/__pycache__/sidenav.cpython-312.pyc b/__pycache__/sidenav.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8cfcfbf8838708b5e487f8cc368373be8389a23f
Binary files /dev/null and b/__pycache__/sidenav.cpython-312.pyc differ
diff --git a/__pycache__/slide_toggle.cpython-310.pyc b/__pycache__/slide_toggle.cpython-310.pyc
index 9f12307a9ce16c142c3fe5f3a456b4b37a4aaa75..8b574aa50eb64d7617715081b1c8b4e6d0b768e4 100644
Binary files a/__pycache__/slide_toggle.cpython-310.pyc and b/__pycache__/slide_toggle.cpython-310.pyc differ
diff --git a/__pycache__/slide_toggle.cpython-312.pyc b/__pycache__/slide_toggle.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2e5a23453f92fd88d42b90e6abc4921e87fe4705
Binary files /dev/null and b/__pycache__/slide_toggle.cpython-312.pyc differ
diff --git a/__pycache__/slider.cpython-310.pyc b/__pycache__/slider.cpython-310.pyc
index 0d76fe62aa210700c133edeeb5e7a08c56754263..4f659f46672c8204116b3ccc3029eaa6788ecb05 100644
Binary files a/__pycache__/slider.cpython-310.pyc and b/__pycache__/slider.cpython-310.pyc differ
diff --git a/__pycache__/slider.cpython-312.pyc b/__pycache__/slider.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..b897a2f980f0554a5c7147a64df0883a3c79d509
Binary files /dev/null and b/__pycache__/slider.cpython-312.pyc differ
diff --git a/__pycache__/snackbar.cpython-310.pyc b/__pycache__/snackbar.cpython-310.pyc
index f28afac6663b2e53fea419feb3c3d88a867f1ed5..cf7c3abfc3105384949c6b62bc8e0352d4780a13 100644
Binary files a/__pycache__/snackbar.cpython-310.pyc and b/__pycache__/snackbar.cpython-310.pyc differ
diff --git a/__pycache__/snackbar.cpython-312.pyc b/__pycache__/snackbar.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..60720cd7bdd722e361e68deb734e2061a11d6087
Binary files /dev/null and b/__pycache__/snackbar.cpython-312.pyc differ
diff --git a/__pycache__/tab_group.cpython-312.pyc b/__pycache__/tab_group.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..22d716c7fedab0988e05763d11fb54afe876dd5c
Binary files /dev/null and b/__pycache__/tab_group.cpython-312.pyc differ
diff --git a/__pycache__/table.cpython-310.pyc b/__pycache__/table.cpython-310.pyc
index 957f4b960cc069ed44b64a3e1e1a030e059d016b..67c43b637893bf86b9c32e4f8e686cebdf83e759 100644
Binary files a/__pycache__/table.cpython-310.pyc and b/__pycache__/table.cpython-310.pyc differ
diff --git a/__pycache__/table.cpython-312.pyc b/__pycache__/table.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..19353952750e85d009a2035ae9a7b24c5aa1b1c1
Binary files /dev/null and b/__pycache__/table.cpython-312.pyc differ
diff --git a/__pycache__/tailwind.cpython-310.pyc b/__pycache__/tailwind.cpython-310.pyc
index a5f4b140766a7a7ed53e39bd0ead2ae1a1d4c852..c101e2771ff404bfbe31a2d51146ff9511bb2296 100644
Binary files a/__pycache__/tailwind.cpython-310.pyc and b/__pycache__/tailwind.cpython-310.pyc differ
diff --git a/__pycache__/tailwind.cpython-312.pyc b/__pycache__/tailwind.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..cc5a6ac0fe8129dcab899b0d26ce3c5b3cb172bd
Binary files /dev/null and b/__pycache__/tailwind.cpython-312.pyc differ
diff --git a/__pycache__/text.cpython-310.pyc b/__pycache__/text.cpython-310.pyc
index adef4deecb7866cda6c73c0a3150942266b83dc8..899e81e5a7edc3ca062d105892efc2060b6f55d2 100644
Binary files a/__pycache__/text.cpython-310.pyc and b/__pycache__/text.cpython-310.pyc differ
diff --git a/__pycache__/text.cpython-312.pyc b/__pycache__/text.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..1f9a5610318399560edcd6d44955166687632f64
Binary files /dev/null and b/__pycache__/text.cpython-312.pyc differ
diff --git a/__pycache__/text_to_image.cpython-310.pyc b/__pycache__/text_to_image.cpython-310.pyc
index cc0a3f41fe3196de8bddea14c5b6282da7bd9cd4..326c4ad833c60609ce08cef09c41d7e36dd6ce77 100644
Binary files a/__pycache__/text_to_image.cpython-310.pyc and b/__pycache__/text_to_image.cpython-310.pyc differ
diff --git a/__pycache__/text_to_image.cpython-312.pyc b/__pycache__/text_to_image.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..e0a40c2afd95a383d9324f126e58cf8dd8efae22
Binary files /dev/null and b/__pycache__/text_to_image.cpython-312.pyc differ
diff --git a/__pycache__/text_to_text.cpython-310.pyc b/__pycache__/text_to_text.cpython-310.pyc
index ed9da1399691739cac81f4117ee78470945e1317..e542db208e755c0a30205b435efbfd02753c45e3 100644
Binary files a/__pycache__/text_to_text.cpython-310.pyc and b/__pycache__/text_to_text.cpython-310.pyc differ
diff --git a/__pycache__/text_to_text.cpython-312.pyc b/__pycache__/text_to_text.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..7b12469a649ea7eae5302f4cba3daf56b1ceb4f7
Binary files /dev/null and b/__pycache__/text_to_text.cpython-312.pyc differ
diff --git a/__pycache__/textarea.cpython-310.pyc b/__pycache__/textarea.cpython-310.pyc
index 86aed0cd5ab3770bc811531c19d7e9d609565329..1a24f05158f71e34e079dd5bf9a11c866a0e5606 100644
Binary files a/__pycache__/textarea.cpython-310.pyc and b/__pycache__/textarea.cpython-310.pyc differ
diff --git a/__pycache__/textarea.cpython-312.pyc b/__pycache__/textarea.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..cd7f6d17d7034f5859af1bc02a8ad9877f1a2da1
Binary files /dev/null and b/__pycache__/textarea.cpython-312.pyc differ
diff --git a/__pycache__/tooltip.cpython-310.pyc b/__pycache__/tooltip.cpython-310.pyc
index 68d5ff4346c204c57d2e0f0b98199268e129797c..bd8eeb00d5e64a2c1bc8a4fdd0a4facd8c4d0a3e 100644
Binary files a/__pycache__/tooltip.cpython-310.pyc and b/__pycache__/tooltip.cpython-310.pyc differ
diff --git a/__pycache__/tooltip.cpython-312.pyc b/__pycache__/tooltip.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..4aafe081e8063d3784e6a238f3f7399999b0c508
Binary files /dev/null and b/__pycache__/tooltip.cpython-312.pyc differ
diff --git a/__pycache__/uploader.cpython-310.pyc b/__pycache__/uploader.cpython-310.pyc
index 5659832ecab1470b508fb39aa8926ec843d06d4a..b2094eb6a2f7582a664a2bd8ef263d93e2e4c223 100644
Binary files a/__pycache__/uploader.cpython-310.pyc and b/__pycache__/uploader.cpython-310.pyc differ
diff --git a/__pycache__/uploader.cpython-312.pyc b/__pycache__/uploader.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..4e4e2bd23d35a3e2677945e0dc0987c73b50b75f
Binary files /dev/null and b/__pycache__/uploader.cpython-312.pyc differ
diff --git a/__pycache__/video.cpython-310.pyc b/__pycache__/video.cpython-310.pyc
index 2a41cfe18a4d50ec713723ad434dd445b4bbeada..f9c96a220e332d90d70e21f171df6410b2a0db4d 100644
Binary files a/__pycache__/video.cpython-310.pyc and b/__pycache__/video.cpython-310.pyc differ
diff --git a/__pycache__/video.cpython-312.pyc b/__pycache__/video.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..602cc0e0236d0be903ec399fcca194ef6146fda8
Binary files /dev/null and b/__pycache__/video.cpython-312.pyc differ
diff --git a/audio.py b/audio.py
index 777cbbab84e9ca5b948a0c75e78efdd22d75c615..44b7bc9fbcd36c450248aee495951e85a792e2ba 100644
--- a/audio.py
+++ b/audio.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/audio",
)
diff --git a/autocomplete.py b/autocomplete.py
index 010705f337ea718f0204d11bb89b6bbafced9f39..b502e83c481e184038dc400a653278da3e9330cd 100644
--- a/autocomplete.py
+++ b/autocomplete.py
@@ -14,7 +14,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/autocomplete",
)
diff --git a/badge.py b/badge.py
index 2f43780e48065a166105c44ad06b1620ed5de92b..64e059ed1051a7fd2b7d61f6fdb1aa6bbf28c55a 100644
--- a/badge.py
+++ b/badge.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/badge",
)
diff --git a/basic_animation.py b/basic_animation.py
index b6d585dcd4e5392fc8df801c9f8bd57fe48ec0df..adf0086666fad1c4693ce6ed400d305865559cf3 100644
--- a/basic_animation.py
+++ b/basic_animation.py
@@ -35,7 +35,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/basic_animation",
)
diff --git a/bootstrap.py b/bootstrap.py
index e05f6db6a58d389c0d1391300f87667e1df788b8..18c67c3cc268f08ff8786830954db29ab9fa074a 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -3,7 +3,7 @@ import mesop as me
@me.page(
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
stylesheets=[
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css",
diff --git a/box.py b/box.py
index 4a10b28b1227e7ce04b5f8c3624f921fd73611de..e11e7394e5a197a39aff6996208f1169263f75ac 100644
--- a/box.py
+++ b/box.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/box",
)
diff --git a/button.py b/button.py
index 61552a4c66afeeb037a005de2ec0fb3d49c7eaa0..7749646780278ef35f9cd814bccb7a91a1597a7a 100644
--- a/button.py
+++ b/button.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/button",
)
diff --git a/button_toggle.py b/button_toggle.py
index 1b05169f627f28dd31b29af3f7de9698088eb45a..b5465b88e579154bed23fc4c0bba3cc891a1fc40 100644
--- a/button_toggle.py
+++ b/button_toggle.py
@@ -17,7 +17,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/button_toggle",
)
diff --git a/card.py b/card.py
index c166381522f070f5ed6b9d619cf246e9dd2c2954..82f467ac3cdbd1c84965fb358dba58235f802176 100644
--- a/card.py
+++ b/card.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"],
+ allowed_iframe_parents=["https://mesop-dev.github.io"],
),
path="/card",
)
diff --git a/chat.py b/chat.py
index 54828a074be870fe491d2008593c88dba70cb003..2055585af2d0d4ced98d2b59dcd065ea6ba33dec 100644
--- a/chat.py
+++ b/chat.py
@@ -11,7 +11,7 @@ def on_load(e: me.LoadEvent):
@me.page(
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/chat",
title="Mesop Demo Chat",
diff --git a/chat_inputs.py b/chat_inputs.py
index 60da9479d67c6ca4fd5dacc8a9db7f19ebe2c7c9..4cbae0f4c31feaffbfeca7eb71b5ddccb18782aa 100644
--- a/chat_inputs.py
+++ b/chat_inputs.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/chat_inputs",
)
diff --git a/checkbox.py b/checkbox.py
index 2593608aa3cff3c5f12034e8d27867c4a28d491b..3c52453d78845771c45668973fc4cc5be6143b2f 100644
--- a/checkbox.py
+++ b/checkbox.py
@@ -18,7 +18,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/checkbox",
)
diff --git a/code_demo.py b/code_demo.py
index c1c30a469352761f4aca1eea9a9b8a1e66a8d31f..ca1fb71d4e4508900efabc5395a2b5f4a8ed1081 100644
--- a/code_demo.py
+++ b/code_demo.py
@@ -10,7 +10,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/code_demo",
)
diff --git a/date_picker.py b/date_picker.py
index 34198f5dd4d91f513ced8b43e7088011862029c3..f3f1e0af9390eba00937c43291f8a256d1bb2c4d 100644
--- a/date_picker.py
+++ b/date_picker.py
@@ -16,7 +16,7 @@ def on_load(e: me.LoadEvent):
@me.page(
path="/date_picker",
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
on_load=on_load,
)
diff --git a/date_range_picker.py b/date_range_picker.py
index 3618b705018b384cb21ba7e8d4426e9a7e5070d0..9b2d094c37e098c844e67b261adc36bfad2a83bf 100644
--- a/date_range_picker.py
+++ b/date_range_picker.py
@@ -21,7 +21,7 @@ def on_load(e: me.LoadEvent):
@me.page(
path="/date_range_picker",
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
on_load=on_load,
)
diff --git a/density.py b/density.py
index 80a4d1fc15bf84450d7e93909be7c55a2dbc840b..51cd024cbcb3138791ff16941ba3886a8e674830 100644
--- a/density.py
+++ b/density.py
@@ -12,7 +12,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/density",
)
diff --git a/deploy_to_hf.sh b/deploy_to_hf.sh
index 6881c4847d429f9addefd7e60600df29b7894e4e..99aa729a5c2b438e84d49902b1563ba34f0b2fce 100755
--- a/deploy_to_hf.sh
+++ b/deploy_to_hf.sh
@@ -35,7 +35,7 @@ echo "Updating allowed iframe parents to include hugging face spaces site..."
# Find all .py files and update the allowed_iframe_parents list
find . -name "*.py" -type f | while read -r file; do
# Use sed with -i.bak so it woroks on MacOs
- sed -i.bak 's/allowed_iframe_parents=\["https:\/\/google\.github\.io"\]/allowed_iframe_parents=["https:\/\/google.github.io", "https:\/\/huggingface.co"]/' "$file"
+ sed -i.bak 's/allowed_iframe_parents=\["https:\/\/google\.github\.io"\]/allowed_iframe_parents=["https:\/\/mesop-dev.github.io", "https:\/\/huggingface.co"]/' "$file"
# Remove the backup file created by sed
rm "${file}.bak"
done
diff --git a/dialog.py b/dialog.py
index b52fa1928d1fcb16c1d70220152f0c4d2d605dfb..332c1abbb5fff5739e9146c561c5f4e1c9483548 100644
--- a/dialog.py
+++ b/dialog.py
@@ -17,7 +17,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/dialog",
)
diff --git a/divider.py b/divider.py
index 33150d132e8a857b2c04fc052dfa9855e70f9adc..0aaacc99087b444e02e28f5344f01f0e20de16d6 100644
--- a/divider.py
+++ b/divider.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/divider",
)
diff --git a/embed.py b/embed.py
index 593c665547751fd8a73623e4f36bb9e76d3adff0..19674270867e734b6bc8c32581ac3fee911af09e 100644
--- a/embed.py
+++ b/embed.py
@@ -8,12 +8,12 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/embed",
)
def app():
- src = "https://google.github.io/mesop/"
+ src = "https://mesop-dev.github.io/mesop/"
me.text("Embedding: " + src, style=me.Style(padding=me.Padding.all(15)))
me.embed(
src=src,
diff --git a/expansion_panel.py b/expansion_panel.py
index bff919499bcb9fd605eb17b9a23d008d38cdb20c..a2a8aa8684c770dd9222c5a1c93ba8098bcd4dbd 100644
--- a/expansion_panel.py
+++ b/expansion_panel.py
@@ -20,7 +20,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/expansion_panel",
)
diff --git a/fancy_chat.py b/fancy_chat.py
index ac2e3c998ca0f7973ccf64902efde8aec633a367..afa33efef6624bff489cc7c67e4b0f12bf589e29 100644
--- a/fancy_chat.py
+++ b/fancy_chat.py
@@ -40,7 +40,7 @@ class State:
in_progress: bool
sidebar_expanded: bool = False
# Need to use dict instead of ChatMessage due to serialization bug.
- # See: https://github.com/google/mesop/issues/659
+ # See: https://github.com/mesop-dev/mesop/issues/659
history: list[list[dict]]
@@ -70,7 +70,7 @@ def on_load(e: me.LoadEvent):
@me.page(
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
title="Fancy Mesop Demo Chat",
path="/fancy_chat",
diff --git a/feedback.py b/feedback.py
index ff6c82c6bc402929af213e9f44266476f4572287..a7cfe31533975a4fd60f5879d34698f7f8d98098 100644
--- a/feedback.py
+++ b/feedback.py
@@ -26,7 +26,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/feedback",
)
diff --git a/form_billing.py b/form_billing.py
index c837e67bd958d851eee8e66a868dc8c89a19eb54..6349fc222ea83cf644b2a9313810e15d5956aef8 100644
--- a/form_billing.py
+++ b/form_billing.py
@@ -43,7 +43,7 @@ def load(e: me.LoadEvent):
@me.page(
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/form_billing",
on_load=load,
diff --git a/form_profile.py b/form_profile.py
index f7ef667bb0518020bff5cd32b8b89b591bf582c8..2fdd44826d6c10610a4c2059f598b748f3cb4ea9 100644
--- a/form_profile.py
+++ b/form_profile.py
@@ -27,7 +27,7 @@ class State:
@me.page(
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/form_profile",
on_load=load,
diff --git a/grid_table.py b/grid_table.py
index e9b0cfe4ded1de8ec2ef25ece8f2f28474c063d6..8a55b6cfbb1c5b7beeecad8184daf23171e016bd 100644
--- a/grid_table.py
+++ b/grid_table.py
@@ -64,7 +64,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/grid_table",
)
@@ -359,7 +359,7 @@ def strings_component(meta: GridTableCellMeta):
Note that the behavior is slightly buggy if there is also a cell click event. This
event will fire, but so will the cell click event. This is due to
- https://github.com/google/mesop/issues/268.
+ https://github.com/mesop-dev/mesop/issues/268.
"""
me.button(
meta.value,
diff --git a/headers.py b/headers.py
index 018e928486cb15542790aab7eab70fe8ba634689..751fe6fb6b5b72cb240f57f6ce3d1e4c2c0e7c35 100644
--- a/headers.py
+++ b/headers.py
@@ -10,7 +10,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/headers",
)
diff --git a/html_demo.py b/html_demo.py
index 375d693c70b9abb3fc9ab2aa488abfaee6589755..a416591c533425e0bbf6a741654c2f3ec8dd087a 100644
--- a/html_demo.py
+++ b/html_demo.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/html_demo",
)
@@ -18,7 +18,7 @@ def app():
me.html(
"""
Custom HTML
- mesop
+ mesop
""",
mode="sanitized",
)
diff --git a/icon.py b/icon.py
index 9b73f976dd968b2ad1b230af1c011944f454317a..fca4ce263a5b3fb372dfdf8cca7cb8bf8f73b9d4 100644
--- a/icon.py
+++ b/icon.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/icon",
)
diff --git a/image.py b/image.py
index 42486947f592fcba58b74a03adb60f4224091837..c2e099bcf1b92be04cfe97866c48e0807bb2ec5c 100644
--- a/image.py
+++ b/image.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/image",
)
diff --git a/input.py b/input.py
index ce65560fcbb1d361f9282ef420a7d16dea1dab49..5c61b555ad2fc4cbdc9c08b003e0afec7be9f8d2 100644
--- a/input.py
+++ b/input.py
@@ -18,7 +18,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/input",
)
diff --git a/link.py b/link.py
index 9174a13fc352e42f63a10add0393f56fdc4ef5f3..7f58d3fb9484c43a6cbf59b3603adf96d1ad5e9b 100644
--- a/link.py
+++ b/link.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/link",
)
@@ -20,17 +20,17 @@ def link():
):
me.link(
text="Open in same tab",
- url="https://google.github.io/mesop/",
+ url="https://mesop-dev.github.io/mesop/",
style=me.Style(color=me.theme_var("primary")),
)
me.link(
text="Open in new tab",
open_in_new_tab=True,
- url="https://google.github.io/mesop/",
+ url="https://mesop-dev.github.io/mesop/",
style=me.Style(color=me.theme_var("primary")),
)
me.link(
text="Styled link",
- url="https://google.github.io/mesop/",
+ url="https://mesop-dev.github.io/mesop/",
style=me.Style(color=me.theme_var("tertiary"), text_decoration="none"),
)
diff --git a/llm_playground.py b/llm_playground.py
index fdd51d61f560bf0ffdae4cb5ee6598bfde4d61e2..e8cb307f9d09b2b8e4793557c9e1855b5f6722a0 100644
--- a/llm_playground.py
+++ b/llm_playground.py
@@ -42,7 +42,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/llm_playground",
title="LLM Playground",
diff --git a/llm_rewriter.py b/llm_rewriter.py
index 40d01ac119d0e7ef017af3a37fca95f4e029f2b3..2b328e8a29ca471c7d3c6a5e45185bffa5430d15 100644
--- a/llm_rewriter.py
+++ b/llm_rewriter.py
@@ -36,7 +36,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/llm_rewriter",
title="LLM Rewriter",
diff --git a/main.py b/main.py
index 387e9e29042953de56034c06c21383dd743703ad..932a832837ffc07340353ec653815dafab4237a9 100644
--- a/main.py
+++ b/main.py
@@ -64,6 +64,7 @@ import sidenav as sidenav
import slide_toggle as slide_toggle
import slider as slider
import snackbar as snackbar
+import tab_group as tab_group
import table as table
import tailwind as tailwind
import text as text
@@ -112,6 +113,7 @@ FIRST_SECTIONS = [
Example(name="grid_table"),
Example(name="headers"),
Example(name="snackbar"),
+ Example(name="tab_group"),
Example(name="chat_inputs"),
Example(name="form_billing"),
Example(name="form_profile"),
@@ -250,7 +252,7 @@ def load_home_page(e: me.LoadEvent):
@me.page(
title="Mesop Demos",
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
on_load=load_home_page,
)
@@ -367,7 +369,7 @@ def create_main_fn(example: Example):
title="Mesop Demos",
path="/embed/" + example.name,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
)
def main():
@@ -583,8 +585,8 @@ def header(demo_name: str | None = None):
),
):
me.link(
- text="google/mesop",
- url="https://github.com/google/mesop/",
+ text="mesop-dev/mesop",
+ url="https://github.com/mesop-dev/mesop/",
open_in_new_tab=True,
style=me.Style(
font_size=18,
diff --git a/markdown_demo.py b/markdown_demo.py
index 6c38886f6e01d9af36251ce8a05a34dab634b038..fed912a8359c8c6b7f8b259fffefb63043fa2bc7 100644
--- a/markdown_demo.py
+++ b/markdown_demo.py
@@ -74,7 +74,7 @@ def on_load(e: me.LoadEvent):
@me.page(
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/markdown_demo",
on_load=on_load,
diff --git a/markdown_editor.py b/markdown_editor.py
index 71727fadbc2f29c49dc420c9b73ec8c92aeffeb0..a1edfd3eb8d55c01e281da962f2e61e1d64602d2 100644
--- a/markdown_editor.py
+++ b/markdown_editor.py
@@ -31,7 +31,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/markdown_editor",
title="Markdown Editor",
diff --git a/plot.py b/plot.py
index 4e4a515d1dbe073fd9b2d70ef62f530f0de3a038..62fc20defdf03699b71614a809e20e2bb80fed63 100644
--- a/plot.py
+++ b/plot.py
@@ -10,7 +10,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/plot",
)
diff --git a/progress_bar.py b/progress_bar.py
index 4505cc01260d72ed35ededbb285e6d3275f3e922..6589451dcd845e46e2ff7f0a9a102b9cf2cf6484 100644
--- a/progress_bar.py
+++ b/progress_bar.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/progress_bar",
)
diff --git a/progress_spinner.py b/progress_spinner.py
index 6d3fa73d541897c23318a65616e74b332201701a..de4a82376781f2606d792e21b48ff01a75f032cb 100644
--- a/progress_spinner.py
+++ b/progress_spinner.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/progress_spinner",
)
diff --git a/radio.py b/radio.py
index de3d6a7a58ad9b13344d9cdf5c4f2e9addafa914..d0519c0d72c66a8fbb66c1f354751a61c9367a83 100644
--- a/radio.py
+++ b/radio.py
@@ -18,7 +18,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/radio",
)
diff --git a/requirements.txt b/requirements.txt
index e7e3a63f0c186821076dac9f9356321c01049404..ad4f4db8f6dc5f3c7d4505b53191075fddd58e8f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-mesop>=0.10.0
+mesop>=1.0.0rc2
Flask==3.0.0
gunicorn==22.0.0
Werkzeug==3.0.6
diff --git a/screenshot.ts b/screenshot.ts
index da62c0671c0ee7c2093136780a4a67c550f8be0e..c88da74bca79e9a08a59907ba9a4082b4c60fadb 100644
--- a/screenshot.ts
+++ b/screenshot.ts
@@ -11,7 +11,7 @@ const pythonDemoFiles = fs
console.log(pythonDemoFiles);
// Remove the skip if you want to re-generate the screenshots.
-test.skip('screenshot each demo', async ({page}) => {
+test('screenshot each demo', async ({page}) => {
// This will take a while.
test.setTimeout(0);
diff --git a/screenshots/audio.png b/screenshots/audio.png
index 04d1a0dd722f2992cd140706e7a5e820369d1cbf..d8cfdfdc7c6abb8b5eaecc6065945f54bf44e025 100644
Binary files a/screenshots/audio.png and b/screenshots/audio.png differ
diff --git a/screenshots/audio.webp b/screenshots/audio.webp
index 1b92e6f4642e0a81a19551d21a3e7364b22ec17b..6b9ec7849460c90de7b00c1b6ae977540b275c93 100644
Binary files a/screenshots/audio.webp and b/screenshots/audio.webp differ
diff --git a/screenshots/autocomplete.png b/screenshots/autocomplete.png
index 2603f270a838e2a89e60963ee8c68d5688fc2c45..01eb6627c14113b697d8574a6838fc072a19d9e6 100644
Binary files a/screenshots/autocomplete.png and b/screenshots/autocomplete.png differ
diff --git a/screenshots/autocomplete.webp b/screenshots/autocomplete.webp
index 1824c7df199ceed2be3792b3cc392c3dbf8dbdca..6de4a2db1b685d515350ce4e424875b025077ad3 100644
Binary files a/screenshots/autocomplete.webp and b/screenshots/autocomplete.webp differ
diff --git a/screenshots/badge.png b/screenshots/badge.png
index 5e1b644f28d2cec368691709708dd3c7d85fc1cf..e334f9014d7c9db32a67500a87e7929108214e72 100644
Binary files a/screenshots/badge.png and b/screenshots/badge.png differ
diff --git a/screenshots/badge.webp b/screenshots/badge.webp
index 7998e83357d4f7df0ac79345f02c528f773828d4..1ad41b89d122fa0c79e52e4ebb098e58037ffd4a 100644
Binary files a/screenshots/badge.webp and b/screenshots/badge.webp differ
diff --git a/screenshots/basic_animation.png b/screenshots/basic_animation.png
index 5e577fd78345188164968a614dea876c8eca8428..3d68ce3338bc3c866877b6ce1d09ebe5487552db 100644
Binary files a/screenshots/basic_animation.png and b/screenshots/basic_animation.png differ
diff --git a/screenshots/basic_animation.webp b/screenshots/basic_animation.webp
index 3923c89e77f7fda648d8e077eddafaf4ac6dcd7a..f508d149a15d69676673d6ac6a0309a9f3be5e98 100644
Binary files a/screenshots/basic_animation.webp and b/screenshots/basic_animation.webp differ
diff --git a/screenshots/bootstrap.png b/screenshots/bootstrap.png
index 0fe5871fc7e14d0018cd7d27b47e034fcccee29d..4cc9c0a27b498046bdff7134b1abf63fc0805187 100644
Binary files a/screenshots/bootstrap.png and b/screenshots/bootstrap.png differ
diff --git a/screenshots/bootstrap.webp b/screenshots/bootstrap.webp
index 4a841a752020d9132d3ab8fc9f1ddf76865b03a7..defacd432871a88a417f9aac08017104301c9cf6 100644
Binary files a/screenshots/bootstrap.webp and b/screenshots/bootstrap.webp differ
diff --git a/screenshots/button.png b/screenshots/button.png
index 2fe389ba2f8bb64b8e8afe073d98a1527bd60107..8cc47cf48598b3119a0f9fbd265732575b9c96bc 100644
Binary files a/screenshots/button.png and b/screenshots/button.png differ
diff --git a/screenshots/button.webp b/screenshots/button.webp
index 7bc5a8116ca352be2f42a9aeb3cd23767ee89a71..6d800ba8c4a666c40fa9476884bd2874ba1aaca6 100644
Binary files a/screenshots/button.webp and b/screenshots/button.webp differ
diff --git a/screenshots/button_toggle.png b/screenshots/button_toggle.png
index 8544a40e25740f59e12b14cb557cc0f6f5722c83..7df5fe3175cafde43dd1d17e2f0da0ba3c127c10 100644
Binary files a/screenshots/button_toggle.png and b/screenshots/button_toggle.png differ
diff --git a/screenshots/button_toggle.webp b/screenshots/button_toggle.webp
index 003c74ed95888b473cd02c39949f0c3ad20e3152..6bcf97ed7e1d2b4161e6437effd69bcd1ad313c1 100644
Binary files a/screenshots/button_toggle.webp and b/screenshots/button_toggle.webp differ
diff --git a/screenshots/card.png b/screenshots/card.png
index 89d68cd70b3fecc3cf80b36a1ca304bca271174c..c15c5d703a17c01c34f010e04c9a1065b940d0af 100644
Binary files a/screenshots/card.png and b/screenshots/card.png differ
diff --git a/screenshots/card.webp b/screenshots/card.webp
index 446018d12d3ef96719b3f167d0fe3d78f79c8eef..09058d777bd05cb03ff2e1f150f7586a3d73cdcf 100644
Binary files a/screenshots/card.webp and b/screenshots/card.webp differ
diff --git a/screenshots/chat.png b/screenshots/chat.png
index 6f1a49fb0a45f4cadf931a82683925cf7a923403..6f9b6b5873991b709d489dddf5631a2b086af32b 100644
Binary files a/screenshots/chat.png and b/screenshots/chat.png differ
diff --git a/screenshots/chat.webp b/screenshots/chat.webp
index 867a5a1799fe6690afefde122e4afca791334506..32a9c48f49922c6ecdf8dabeab850a8c1f0eb4c5 100644
Binary files a/screenshots/chat.webp and b/screenshots/chat.webp differ
diff --git a/screenshots/chat_inputs.png b/screenshots/chat_inputs.png
index 474bcd9dd9be2d1f507633b7bda865af5286ee91..9c5ba6b9d67515ff93d7cb856e0f4499487b1a84 100644
Binary files a/screenshots/chat_inputs.png and b/screenshots/chat_inputs.png differ
diff --git a/screenshots/chat_inputs.webp b/screenshots/chat_inputs.webp
index e926b794208f1d324e2c5184379f928377d1a04a..4d9db58a5eda9188c1814d6fb7a7bfa66690d56e 100644
Binary files a/screenshots/chat_inputs.webp and b/screenshots/chat_inputs.webp differ
diff --git a/screenshots/checkbox.png b/screenshots/checkbox.png
index dc2b703e13511305b1d05f36e28da790778a0245..96bc59e816411acea1c63bdcd667c6f346177af6 100644
Binary files a/screenshots/checkbox.png and b/screenshots/checkbox.png differ
diff --git a/screenshots/checkbox.webp b/screenshots/checkbox.webp
index 8986af1283b5f210f796fe8a15c7a489d15e88f9..e830c8e4fb23308af078b961dbe6ef5745ccff68 100644
Binary files a/screenshots/checkbox.webp and b/screenshots/checkbox.webp differ
diff --git a/screenshots/date_picker.png b/screenshots/date_picker.png
index 71385f51df7a2b5fc44850d9f84c83973de0043e..84aa70578e93072239480d1f69ef33efdf71086f 100644
Binary files a/screenshots/date_picker.png and b/screenshots/date_picker.png differ
diff --git a/screenshots/date_picker.webp b/screenshots/date_picker.webp
index d4f8bfd1bb4da9c5ec9d6f34b943b5f724906f83..3613f367c99a41c586761480dc478f8c389edb35 100644
Binary files a/screenshots/date_picker.webp and b/screenshots/date_picker.webp differ
diff --git a/screenshots/date_range_picker.png b/screenshots/date_range_picker.png
index fee9e11fe12ad6c01547dec0dfec02f2e682a3e5..374a334eff2da7fe3ab7ea2e5fc5722730b4d14b 100644
Binary files a/screenshots/date_range_picker.png and b/screenshots/date_range_picker.png differ
diff --git a/screenshots/date_range_picker.webp b/screenshots/date_range_picker.webp
index 664962e1589284a32dbdfc48bd8995780dbed508..a8fe99e01a347246b6a421e41ad9d80e140f8010 100644
Binary files a/screenshots/date_range_picker.webp and b/screenshots/date_range_picker.webp differ
diff --git a/screenshots/density.png b/screenshots/density.png
index 34e8a97c795974f75887a45151bc85aefc404606..2f0e8755b40c1cd5a2445ebc8a84e904f727f0cf 100644
Binary files a/screenshots/density.png and b/screenshots/density.png differ
diff --git a/screenshots/density.webp b/screenshots/density.webp
index 1f8f3541bfada4c68cab0f092502644e9e4dd25c..511bb7def47b1eaca0e8b8a68d3ffb2c5ba24f7a 100644
Binary files a/screenshots/density.webp and b/screenshots/density.webp differ
diff --git a/screenshots/dialog.png b/screenshots/dialog.png
index d34aaa9813c8b74f5287d9eac444310d518ee9fb..520148e43cd64d6e6f32c93e2fae2e8629117748 100644
Binary files a/screenshots/dialog.png and b/screenshots/dialog.png differ
diff --git a/screenshots/dialog.webp b/screenshots/dialog.webp
index 26e63ee6af0650aea934495caddef005bd086805..b7a49664de6ce6214c8ecb4fa3202179d80171cf 100644
Binary files a/screenshots/dialog.webp and b/screenshots/dialog.webp differ
diff --git a/screenshots/divider.png b/screenshots/divider.png
index cf572e7f0afa28ad480dd83bfe2804e2d7e3927c..e3934f57769d323ba575c321b10981635e744b7f 100644
Binary files a/screenshots/divider.png and b/screenshots/divider.png differ
diff --git a/screenshots/divider.webp b/screenshots/divider.webp
index f0fbf396ca835a50659693b63513af4546cbc298..25fd61e0715b44ef41c39fdc07f23e124a29de11 100644
Binary files a/screenshots/divider.webp and b/screenshots/divider.webp differ
diff --git a/screenshots/embed.png b/screenshots/embed.png
index fdb9dbb15dd3b025e8ae567a6f89334fde67011b..e63d54acb042ba656e3b66e76085a7c941808faf 100644
Binary files a/screenshots/embed.png and b/screenshots/embed.png differ
diff --git a/screenshots/embed.webp b/screenshots/embed.webp
index 6494144ae6a93c72641df2791215099fb3ef97cb..ba898589e51b67f5fd797a9f35006554ea769c80 100644
Binary files a/screenshots/embed.webp and b/screenshots/embed.webp differ
diff --git a/screenshots/expansion_panel.png b/screenshots/expansion_panel.png
index c31fcaf860dff09645a80f82e597ea5e92be4f14..9f32e0b2ef9c97d9929f2087905a4665bb8d31ae 100644
Binary files a/screenshots/expansion_panel.png and b/screenshots/expansion_panel.png differ
diff --git a/screenshots/expansion_panel.webp b/screenshots/expansion_panel.webp
index a16195845ef6c706be8d8bbe208596dcfcc861d7..5036ac3e7d023368732ce46d8c9acf85b09a74fb 100644
Binary files a/screenshots/expansion_panel.webp and b/screenshots/expansion_panel.webp differ
diff --git a/screenshots/feedback.png b/screenshots/feedback.png
index 306960b3b31ff1662ae25037f4647ddaff10f913..67614e7021ad2472728675965130d50b356ac203 100644
Binary files a/screenshots/feedback.png and b/screenshots/feedback.png differ
diff --git a/screenshots/feedback.webp b/screenshots/feedback.webp
index 6a3918e7608b629d5fa5d57dc8ecfed01b148217..897b00905d93f8d9d9714f86b04be9fde5d0a9c4 100644
Binary files a/screenshots/feedback.webp and b/screenshots/feedback.webp differ
diff --git a/screenshots/form_billing.png b/screenshots/form_billing.png
index 668dfc3199c27f018b2f0c9569ecc127b3ac7f43..eef232f1077fbb7b7718e8bd1cbfbf7bedae6563 100644
Binary files a/screenshots/form_billing.png and b/screenshots/form_billing.png differ
diff --git a/screenshots/form_billing.webp b/screenshots/form_billing.webp
index e6010739e685b226d3643f8b787cd344f5175c5b..02bb2824b5dd02dd0cc3fb33b2fd37487a80f4d0 100644
Binary files a/screenshots/form_billing.webp and b/screenshots/form_billing.webp differ
diff --git a/screenshots/form_profile.png b/screenshots/form_profile.png
index d34b3970f5c3ee4dd26c6f5eea6cd16cbf7edc39..a3b7f65cd3545734c9b8e9730a335b1c5afb6e2e 100644
Binary files a/screenshots/form_profile.png and b/screenshots/form_profile.png differ
diff --git a/screenshots/form_profile.webp b/screenshots/form_profile.webp
index 2a5508db32231702bbfc79ae35f867158f19ce73..f2b1b6a556404473e7bfa6af3b5c53acc207847d 100644
Binary files a/screenshots/form_profile.webp and b/screenshots/form_profile.webp differ
diff --git a/screenshots/grid_table.png b/screenshots/grid_table.png
index d71690497ad270825197c39f8f399446b0f38024..dce8e9f89c9ab3c7fa93d89bac58ed2c66427836 100644
Binary files a/screenshots/grid_table.png and b/screenshots/grid_table.png differ
diff --git a/screenshots/grid_table.webp b/screenshots/grid_table.webp
index 882d6ba6fe8d89117838cdf63fac5cb42d53872c..bf6a0638acffeccb6f6e42608e4c24d86ac82b77 100644
Binary files a/screenshots/grid_table.webp and b/screenshots/grid_table.webp differ
diff --git a/screenshots/headers.png b/screenshots/headers.png
index 5805e42038ff8e28452f1dcae1b05c2219f7f791..1a13d2f330dc0015751bffe5714b2e76864fad79 100644
Binary files a/screenshots/headers.png and b/screenshots/headers.png differ
diff --git a/screenshots/headers.webp b/screenshots/headers.webp
index 76eb819c4cb5444f80454d328b0bf2e1d655072b..022a7be9cd63ff69467656eccf29208b7a523dc5 100644
Binary files a/screenshots/headers.webp and b/screenshots/headers.webp differ
diff --git a/screenshots/html_demo.png b/screenshots/html_demo.png
index b05d74b1899d0824f63656178958e29666b3b90f..76b41451b8b4fb64379714c7aa222a0191320c01 100644
Binary files a/screenshots/html_demo.png and b/screenshots/html_demo.png differ
diff --git a/screenshots/html_demo.webp b/screenshots/html_demo.webp
index a6f1fc8a7e5d7355f655f04ef9c263788b412c4d..2eeb7a6a4a7e015f11e390e242e2680b9a04419f 100644
Binary files a/screenshots/html_demo.webp and b/screenshots/html_demo.webp differ
diff --git a/screenshots/icon.png b/screenshots/icon.png
index d502ef899cb61ca1e2e5bc0cd73671761b1a060a..c7ff61af8ce1bc3800907d3ff1005030508b1895 100644
Binary files a/screenshots/icon.png and b/screenshots/icon.png differ
diff --git a/screenshots/icon.webp b/screenshots/icon.webp
index 30659c1f34f7952c3715acde7ad498bdf1c958eb..52261ad1f90df2278de430fd014f60cdece87fb6 100644
Binary files a/screenshots/icon.webp and b/screenshots/icon.webp differ
diff --git a/screenshots/image.png b/screenshots/image.png
index 43e3a1d5ebff8290538091f32ef2e5119dd43208..c899bb747f94b04e58b7e5299a8af6130182c0fa 100644
Binary files a/screenshots/image.png and b/screenshots/image.png differ
diff --git a/screenshots/image.webp b/screenshots/image.webp
index dcbbd6a36573224810ab4dfebcfedfa17fed1e90..bb405ac1ec27936c093ed3ab9031d5a0fb4b2351 100644
Binary files a/screenshots/image.webp and b/screenshots/image.webp differ
diff --git a/screenshots/input.png b/screenshots/input.png
index a077514276a8e41c653d0a751cd4f06704bc9b97..4665cf236750d464fca74fe120c9fac1e508b9e8 100644
Binary files a/screenshots/input.png and b/screenshots/input.png differ
diff --git a/screenshots/input.webp b/screenshots/input.webp
index 965796f4bc98d7e4dad0f90cca0f7909f227cea9..d5446232e4f0a801cd5024a637be413f2ed9b3a0 100644
Binary files a/screenshots/input.webp and b/screenshots/input.webp differ
diff --git a/screenshots/link.png b/screenshots/link.png
index 57ba404d0ff2f3d2a5a7deaba1139ce3d0992780..31a307fc06ce5bb7a974c7b5efa84d1ab52ecfa6 100644
Binary files a/screenshots/link.png and b/screenshots/link.png differ
diff --git a/screenshots/link.webp b/screenshots/link.webp
index 3c03184590bd5c82f7ebf7fb5676b956552f958d..12bff055c7f326dc9e8c5d2f617a2cda86db1f11 100644
Binary files a/screenshots/link.webp and b/screenshots/link.webp differ
diff --git a/screenshots/llm_playground.png b/screenshots/llm_playground.png
index c75c686f1185bc077c3c8488c111a24f41d5272c..e17befe96c2c982be0fb6a48d1ea5ba0089ee07c 100644
Binary files a/screenshots/llm_playground.png and b/screenshots/llm_playground.png differ
diff --git a/screenshots/llm_playground.webp b/screenshots/llm_playground.webp
index 9b7693a9d4b87a840a09cb93ef6b1ddfa44c40e9..2b45bbefb79457ea4e485981677226a85aab457b 100644
Binary files a/screenshots/llm_playground.webp and b/screenshots/llm_playground.webp differ
diff --git a/screenshots/llm_rewriter.png b/screenshots/llm_rewriter.png
index e3ace4361046450738cc60e13a70a6659d5962bd..81ba242d3bff300727f6639182416570c25d7a8a 100644
Binary files a/screenshots/llm_rewriter.png and b/screenshots/llm_rewriter.png differ
diff --git a/screenshots/llm_rewriter.webp b/screenshots/llm_rewriter.webp
index 9829b635c069ef09155cfc02aa7dcf6b15861afc..7fcf0cd08dcb858587b0bc66ff0a87401881665e 100644
Binary files a/screenshots/llm_rewriter.webp and b/screenshots/llm_rewriter.webp differ
diff --git a/screenshots/main.png b/screenshots/main.png
index 36538453688e3ee25127750622ba24883606fc04..b4ffe3c69961b56758abb27eeed7915786dcca1f 100644
Binary files a/screenshots/main.png and b/screenshots/main.png differ
diff --git a/screenshots/main.webp b/screenshots/main.webp
index b4fb1c0b3ea47c62ec702603a9e0c1f908f4bf6c..69b3e5c1773a69aae3dec6ae157edb35425fa571 100644
Binary files a/screenshots/main.webp and b/screenshots/main.webp differ
diff --git a/screenshots/markdown_demo.png b/screenshots/markdown_demo.png
index ceb661e3319dc932a4cc9b525be725eb43dc23b7..528b5d9c04b1fbc2dacb8333cc2c8f56e24bf105 100644
Binary files a/screenshots/markdown_demo.png and b/screenshots/markdown_demo.png differ
diff --git a/screenshots/markdown_demo.webp b/screenshots/markdown_demo.webp
index 0577335518689d2c91ef87a1c414a11fc35243e6..2fb30447e48e72597fa50a1e943c53fc37979c47 100644
Binary files a/screenshots/markdown_demo.webp and b/screenshots/markdown_demo.webp differ
diff --git a/screenshots/plot.png b/screenshots/plot.png
index 3a3ff5fe02e0c67a28206816870e7bc74bb68d59..13ce715fb234e0f0e75929049613b874980cda07 100644
Binary files a/screenshots/plot.png and b/screenshots/plot.png differ
diff --git a/screenshots/plot.webp b/screenshots/plot.webp
index 0238bd995cf530762c6ffb571e13360354876bcb..bf6eb09101c153c88851abf2e020fd82e2bf9eab 100644
Binary files a/screenshots/plot.webp and b/screenshots/plot.webp differ
diff --git a/screenshots/progress_bar.png b/screenshots/progress_bar.png
index d28f296cf24854f6f0b61a38d382065051de5814..47d2eee52a62bde6eae27f707bbe79a3de477a89 100644
Binary files a/screenshots/progress_bar.png and b/screenshots/progress_bar.png differ
diff --git a/screenshots/progress_bar.webp b/screenshots/progress_bar.webp
index b6b70f5e032f3d36a461dab4a8994e42659d3bfa..07af2c11e089bf7456ed95827f913c7409a2755c 100644
Binary files a/screenshots/progress_bar.webp and b/screenshots/progress_bar.webp differ
diff --git a/screenshots/progress_spinner.png b/screenshots/progress_spinner.png
index e09eb48a752129487fb64e250900b14e801f4938..91b677f384baeea2bcd44c5ffb014c4f5d8f33c5 100644
Binary files a/screenshots/progress_spinner.png and b/screenshots/progress_spinner.png differ
diff --git a/screenshots/progress_spinner.webp b/screenshots/progress_spinner.webp
index d2cc3fd30cf1da35ddd01c20d27200e1e3ccd7c4..916a2c520c68f1a7759ad42207c109e8b89eb79b 100644
Binary files a/screenshots/progress_spinner.webp and b/screenshots/progress_spinner.webp differ
diff --git a/screenshots/radio.png b/screenshots/radio.png
index 39f58daa04b7476af7b906a764e0af505b34ec20..7e58630b2ebe6b5375447c18190ac26d05c16ec4 100644
Binary files a/screenshots/radio.png and b/screenshots/radio.png differ
diff --git a/screenshots/radio.webp b/screenshots/radio.webp
index e1c4bd06bdacfdadec92f5042f7c85e468027d4d..007a058cd3b8a608e2073f0eaac244b08ece5af1 100644
Binary files a/screenshots/radio.webp and b/screenshots/radio.webp differ
diff --git a/screenshots/select_demo.png b/screenshots/select_demo.png
index f29ea9f5bc682a7e5689c49defbdd17540bdce5e..7925f5e039b81392af5626aaffb67a3899e1e668 100644
Binary files a/screenshots/select_demo.png and b/screenshots/select_demo.png differ
diff --git a/screenshots/select_demo.webp b/screenshots/select_demo.webp
index ffe6e6c0d1e763e67ecb7d13e42c5f909ffe14c0..8f5ee1d9a9ad5de12fab58c504cf241a78a66beb 100644
Binary files a/screenshots/select_demo.webp and b/screenshots/select_demo.webp differ
diff --git a/screenshots/sidenav.png b/screenshots/sidenav.png
index f41669388ed847942085e37c3f2c4bac9e0d0c2e..e4a9402470687e39991436d5f04505e4b225f96f 100644
Binary files a/screenshots/sidenav.png and b/screenshots/sidenav.png differ
diff --git a/screenshots/sidenav.webp b/screenshots/sidenav.webp
index dcc09fc4ff3624e65caa32e5def1841de515d62a..6e1614f46d42e706b37d4a1a4f6d5b9112b8ac99 100644
Binary files a/screenshots/sidenav.webp and b/screenshots/sidenav.webp differ
diff --git a/screenshots/slide_toggle.png b/screenshots/slide_toggle.png
index 5d1dd60359ebb3fd1108e76cc8ff2c71ed1e33bf..e14713b3e9ff101dedd521bde1f423c73220d297 100644
Binary files a/screenshots/slide_toggle.png and b/screenshots/slide_toggle.png differ
diff --git a/screenshots/slide_toggle.webp b/screenshots/slide_toggle.webp
index 988ddaad2954436251da873fbfacfeea178a63cf..5ed78ef56450efd1d1f626feaad7d76a59103ffc 100644
Binary files a/screenshots/slide_toggle.webp and b/screenshots/slide_toggle.webp differ
diff --git a/screenshots/slider.png b/screenshots/slider.png
index 284a6d47807c9bc64dd6b4ea08f82aae5eca52e7..15f9561c3b1893bb45c32c6605e26fc28be0224c 100644
Binary files a/screenshots/slider.png and b/screenshots/slider.png differ
diff --git a/screenshots/slider.webp b/screenshots/slider.webp
index 6c1c32ec6739edb58bc055ba80af9eebde5a6989..b67ebf67ffb0abc870aba848b031fe4d90b889d6 100644
Binary files a/screenshots/slider.webp and b/screenshots/slider.webp differ
diff --git a/screenshots/snackbar.png b/screenshots/snackbar.png
index f59a26d55db949bb9b4666541a170e8ff27ad1d5..8b90300f4df22420426168c6ad9adca3545b8602 100644
Binary files a/screenshots/snackbar.png and b/screenshots/snackbar.png differ
diff --git a/screenshots/snackbar.webp b/screenshots/snackbar.webp
index 61b616e0fa5111f671328193d48cbefc886aac77..f47e0aa950573e21334330fbc8704a3c1497ff47 100644
Binary files a/screenshots/snackbar.webp and b/screenshots/snackbar.webp differ
diff --git a/screenshots/tab_group.png b/screenshots/tab_group.png
new file mode 100644
index 0000000000000000000000000000000000000000..899976577306da6e6a5b547652852102eb52a33d
Binary files /dev/null and b/screenshots/tab_group.png differ
diff --git a/screenshots/tab_group.webp b/screenshots/tab_group.webp
new file mode 100644
index 0000000000000000000000000000000000000000..31be8b15f101647eb432072b417716b191277028
Binary files /dev/null and b/screenshots/tab_group.webp differ
diff --git a/screenshots/table.png b/screenshots/table.png
index e975895fd6818da0b8addd287bc0a7dfe498a313..b3654ff1d3a334b5a81948a98f01294c46bc6f22 100644
Binary files a/screenshots/table.png and b/screenshots/table.png differ
diff --git a/screenshots/table.webp b/screenshots/table.webp
index 89c12f8ccc66a2138174041dfca0af658fe77a1f..16bab06408c1379d1ad5a8603b481d58326136b8 100644
Binary files a/screenshots/table.webp and b/screenshots/table.webp differ
diff --git a/screenshots/tailwind.png b/screenshots/tailwind.png
index 627a83483ce2e7307e0bb61d2aac0dd633dc26ea..4ab162a6470558aa9de1d408eb6ad2d1f8208a13 100644
Binary files a/screenshots/tailwind.png and b/screenshots/tailwind.png differ
diff --git a/screenshots/tailwind.webp b/screenshots/tailwind.webp
index f60a1e7b6a6e1c6fe4583563efce2756cd9e5e14..f43f019c4fd6933284568dd9ef0946aaf9cac97b 100644
Binary files a/screenshots/tailwind.webp and b/screenshots/tailwind.webp differ
diff --git a/screenshots/text.png b/screenshots/text.png
index 9bf92aa7ab96422c4deed7bb7a9911b28f969d1e..7de90510fa666b291a15ef31760965e64c92d08a 100644
Binary files a/screenshots/text.png and b/screenshots/text.png differ
diff --git a/screenshots/text.webp b/screenshots/text.webp
index 7b6a967a531608730886b6d1c8376da0cff6cef5..f5cdf95c1d54426df7c661725774fa3279c0f755 100644
Binary files a/screenshots/text.webp and b/screenshots/text.webp differ
diff --git a/screenshots/textarea.png b/screenshots/textarea.png
index 40f5c4c1223add6d1d6e8dc9ca30e967653c7c1d..35081b39a52cf99bdcbf4ef3dbf09a50d7b1450f 100644
Binary files a/screenshots/textarea.png and b/screenshots/textarea.png differ
diff --git a/screenshots/textarea.webp b/screenshots/textarea.webp
index 0ddceb3466484a2a14089f0b173c8ea94aebd1d2..5e83c086a7ee5e6654c0b8be0488c1fcc25fc26a 100644
Binary files a/screenshots/textarea.webp and b/screenshots/textarea.webp differ
diff --git a/screenshots/tooltip.png b/screenshots/tooltip.png
index 2732adff0f92dffafdd007f9ba4f9000468b4abf..4621c7ccd07d75d4bde9de6f9ff8e23e0be3494d 100644
Binary files a/screenshots/tooltip.png and b/screenshots/tooltip.png differ
diff --git a/screenshots/tooltip.webp b/screenshots/tooltip.webp
index 22fd30a2a67109dcf3fbf02c6064fd55c5d098b3..c6977eac558a62dc3589164e800a9708c5a2f8ce 100644
Binary files a/screenshots/tooltip.webp and b/screenshots/tooltip.webp differ
diff --git a/screenshots/uploader.png b/screenshots/uploader.png
index ec899edc3d140b2e83f15ab6c395bee9bf32c825..8c585adb940dcc43e673b345aa4a6b0a0d01c1de 100644
Binary files a/screenshots/uploader.png and b/screenshots/uploader.png differ
diff --git a/screenshots/uploader.webp b/screenshots/uploader.webp
index c14f408227599bb6a020149ce24ade66127704b2..a8d9d4a4db3b05d6d65fb256a84edfbc096a3931 100644
Binary files a/screenshots/uploader.webp and b/screenshots/uploader.webp differ
diff --git a/screenshots/video.png b/screenshots/video.png
index 33798d3a708d83b4f0a6830d983a67756684cb34..a59c33087de29e669de0a84ff31709040631a8e7 100644
Binary files a/screenshots/video.png and b/screenshots/video.png differ
diff --git a/screenshots/video.webp b/screenshots/video.webp
index 85c435f187b361ccf36a6c12917d1ad0fbacfd42..142a2af86a22529d2ad34e61f5650e7ecf4f0ecf 100644
Binary files a/screenshots/video.webp and b/screenshots/video.webp differ
diff --git a/select_demo.py b/select_demo.py
index 7a21b9072f01b2970b737d69ae86c2b80429614e..0dc965a465e3c7a477f29a8becd3b8cc26a83913 100644
--- a/select_demo.py
+++ b/select_demo.py
@@ -28,7 +28,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/select_demo",
)
diff --git a/sidenav.py b/sidenav.py
index 5ee9fb1df8399288b8601010398153d4c4a08a13..ba3d1beb50fd0e7d877f8ee9aa77177effb0f7fd 100644
--- a/sidenav.py
+++ b/sidenav.py
@@ -25,7 +25,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/sidenav",
)
diff --git a/slide_toggle.py b/slide_toggle.py
index 80855a996c1b73ac8f4bf77ec85458ce91c2a6a5..46a42786e6355c491fe5b97a856b6903ed282c86 100644
--- a/slide_toggle.py
+++ b/slide_toggle.py
@@ -18,7 +18,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/slide_toggle",
)
diff --git a/slider.py b/slider.py
index 684d60c0c73f950b6049c4e7a90d395a50980725..29be94e96c1e0479ae819e91b89fbcd2a1ec46c3 100644
--- a/slider.py
+++ b/slider.py
@@ -15,7 +15,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/slider",
)
diff --git a/snackbar.py b/snackbar.py
index a2f1beabc5c4de6cc30bb176111b6d180b03f80f..5adf344ef2c40109da1a5422f71ce3d3aa55529c 100644
--- a/snackbar.py
+++ b/snackbar.py
@@ -21,7 +21,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/snackbar",
)
diff --git a/tab_group.py b/tab_group.py
new file mode 100644
index 0000000000000000000000000000000000000000..bda03950069c9691edd05813e0aabd4298471b41
--- /dev/null
+++ b/tab_group.py
@@ -0,0 +1,166 @@
+"""Simple tab group example.
+
+- Use this code as a starting point for creating tab group-like functionlity.
+- Extend/Modify it for your specific use case.
+"""
+
+from dataclasses import dataclass, field
+from typing import Callable
+
+import mesop as me
+
+
+@dataclass
+class Tab:
+ label: str
+ content: Callable
+ selected: bool = False
+ disabled: bool = False
+ icon: str | None = None
+
+
+def load(e: me.LoadEvent):
+ me.set_theme_mode("system")
+
+
+@me.stateclass
+class State:
+ selected_tab_index: int = 0
+ disabled_tab_indexes: set[int] = field(default_factory=lambda: {1})
+
+
+@me.page(
+ on_load=load,
+ security_policy=me.SecurityPolicy(
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
+ ),
+ path="/tab_group",
+)
+def app():
+ with me.box():
+ tab_group(make_tabs(), on_tab_click)
+
+
+def make_tabs() -> list[Tab]:
+ """Helper to make the tabs for the tab group demo."""
+ state = me.state(State)
+ tabs = [
+ Tab(label="Tab 1", icon="home", content=tab_1),
+ Tab(label="Tab 2", content=tab_2),
+ Tab(label="Tab 3", icon="tab", content=tab_3),
+ ]
+ for index, tab in enumerate(tabs):
+ tab.selected = state.selected_tab_index == index
+ tab.disabled = index in state.disabled_tab_indexes
+ return tabs
+
+
+@me.component
+def tab_1():
+ me.text("Tab 1")
+
+
+@me.component
+def tab_2():
+ me.text("Tab 2")
+
+
+@me.component
+def tab_3():
+ me.text("Tab 3")
+
+
+def on_tab_click(e: me.ClickEvent):
+ """Click handler that handles updating the tabs when clicked."""
+ state = me.state(State)
+
+ _, tab_index = e.key.split("-")
+ tab_index = int(tab_index)
+
+ if tab_index == state.selected_tab_index:
+ return
+ if tab_index in state.disabled_tab_indexes:
+ return
+
+ state.selected_tab_index = int(tab_index)
+
+
+@me.component
+def tab_group(tabs: list[Tab], on_tab_click: Callable):
+ """Generates the tab group component
+
+ Args:
+ tabs: Metadata for rendering tabs for the tab group
+ on_tab_click: Event to handle what happens when a tab header is clicked
+ """
+ tab_header(tabs, on_tab_click)
+ tab_content(tabs)
+
+
+@me.component
+def tab_header(tabs: list[Tab], on_tab_click: Callable):
+ """Generates the header for the tab group."""
+ with me.box(
+ style=me.Style(
+ display="flex",
+ width="100%",
+ border=me.Border(
+ bottom=me.BorderSide(
+ width=1, style="solid", color=me.theme_var("outline-variant")
+ )
+ ),
+ )
+ ):
+ for index, tab in enumerate(tabs):
+ with me.box(
+ key=f"tab-{index}",
+ on_click=on_tab_click,
+ style=make_tab_style(tab.selected, tab.disabled),
+ ):
+ if tab.icon:
+ me.icon(tab.icon)
+ me.text(tab.label)
+
+
+@me.component
+def tab_content(tabs: list[Tab]):
+ """Component for rendering the content of the selected tab."""
+ for tab in tabs:
+ if tab.selected:
+ with me.box():
+ tab.content()
+
+
+def make_tab_style(selected: bool, disabled: bool) -> me.Style:
+ """Makes the styles for the tab based on selected/disabled state."""
+ style = make_default_tab_style()
+ if disabled:
+ style.color = me.theme_var("outline")
+ style.cursor = "default"
+ elif selected:
+ style.background = me.theme_var("surface-container")
+ style.border = me.Border(
+ bottom=me.BorderSide(
+ width=2, style="solid", color=me.theme_var("primary")
+ )
+ )
+ style.cursor = "default"
+ return style
+
+
+def make_default_tab_style():
+ """Basic styles shared by different tab state (selected, disabled, default)."""
+ return me.Style(
+ align_items="center",
+ color=me.theme_var("on-surface"),
+ display="flex",
+ cursor="pointer",
+ flex_grow=1,
+ justify_content="center",
+ line_height=1,
+ font_size=14,
+ font_weight="medium",
+ padding=me.Padding.all(16),
+ text_align="center",
+ gap=5,
+ )
diff --git a/table.py b/table.py
index 5ce66e2287107cb4aa95238d3e6d4f39a8bdd8d5..5fcd53a5206858aeee5426d46dca391a3966a3d0 100644
--- a/table.py
+++ b/table.py
@@ -35,7 +35,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/table",
)
diff --git a/tailwind.py b/tailwind.py
index 4fa0e63805814df614e416215f80ff64b9dab9db..eeccbc53967aa483b65c170aecd0e93719e497fd 100644
--- a/tailwind.py
+++ b/tailwind.py
@@ -88,7 +88,7 @@ import mesop as me
@me.page(
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
stylesheets=["/static/tailwind.css"],
path="/tailwind",
diff --git a/text.py b/text.py
index 8f13c7117c7d445651d92f9171f70a5c61a844a3..6313c01c6814fd45ecfc0afee180779df710d0c4 100644
--- a/text.py
+++ b/text.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/text",
)
diff --git a/text_to_image.py b/text_to_image.py
index b2891702c2d532085ea771dd81d1708538752773..1222c0b9540631578d3322a752a66c6df1e25fe8 100644
--- a/text_to_image.py
+++ b/text_to_image.py
@@ -9,7 +9,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/text_to_image",
title="Text to Image Example",
diff --git a/text_to_text.py b/text_to_text.py
index 2bd5b599ebdca00d1ef75abd0a1da1a548988e39..0d098f6133766855961f9f8b9018890084a1dab4 100644
--- a/text_to_text.py
+++ b/text_to_text.py
@@ -9,7 +9,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/text_to_text",
title="Text to Text Example",
diff --git a/textarea.py b/textarea.py
index f2ec792ae7213d7d64e057fb4242751f97c28f0e..59a2479c9a3bf89fd75ea303a126ad638219757a 100644
--- a/textarea.py
+++ b/textarea.py
@@ -37,7 +37,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/textarea",
)
diff --git a/tooltip.py b/tooltip.py
index e763393d9a453f4d8e8c61bb834b0f91cc30cc44..071f927cc47a15272f4436360294ae049a3ee9d3 100644
--- a/tooltip.py
+++ b/tooltip.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/tooltip",
)
diff --git a/uploader.py b/uploader.py
index 24e31c7f3b7c1cf19bc0a48d57be828a96b7bfd7..e5aa4e46cc9950e0e8502e64ef31323b83b6cf06 100644
--- a/uploader.py
+++ b/uploader.py
@@ -15,7 +15,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/uploader",
)
diff --git a/video.py b/video.py
index 88c86041d40a5098b8af9e014ff4fe09b883f1b6..b791f0ba38f5d693293e0d27c4b79a7acf10693c 100644
--- a/video.py
+++ b/video.py
@@ -8,7 +8,7 @@ def load(e: me.LoadEvent):
@me.page(
on_load=load,
security_policy=me.SecurityPolicy(
- allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
+ allowed_iframe_parents=["https://mesop-dev.github.io"]
),
path="/video",
)