reflex/reflex/components/core
Thomas Brandého ef93161840
Add a sticky Built with Reflex badge (#4584)
* add the watermark class

* remove shortcut exposing badge publicly for now

* Rename as "sticky" because "watermark" has a negative connotation

* Add config `show_built_with_reflex`

This config option is available for authenticated users on various plan tiers

* py3.11 compatible f-string

* sticky badge inherit from A instead of using on_click/redirect

* fix integration test

* Move export checking logic to reflex CLI

* rx.logo: make it accessible to screen readers

Add role="img" aria_label="Reflex" and title="Reflex".

* Hide the built with reflex badge for localhost

* Revert "fix integration test"

This reverts commit a978684d70.

* experimental: do not show warning for internal imports

Only show experimental feature warnings when accessing the names through the
rx._x namespace.

If reflex internally imports the names via deep imports, then this bypasses the
warning to avoid showing it to users that have no control over how the
framework uses experimental features.

* add help link for show_built_with_reflex option

* pre-commit fixes

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2025-02-03 11:50:31 -08:00
..
layout add center / spacer / hstack / vstack in radix/themes/layout (#2331) 2024-01-30 15:39:22 -08:00
__init__.py introduce customizable breakpoints (#3568) 2024-06-27 01:34:49 +03:00
__init__.pyi pyi_generator cleanup: ruff, remove fully qualified reflex. names (#3591) 2024-06-29 08:48:01 -07:00
banner.py add backend disabled dialog (#4715) 2025-01-31 13:00:56 -08:00
banner.pyi add backend disabled dialog (#4715) 2025-01-31 13:00:56 -08:00
breakpoints.py fix version in pyproject and ruff version check (#4690) 2025-01-28 14:20:26 +01:00
client_side_routing.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
client_side_routing.pyi add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
clipboard.py add deps and position field in VarData (#4518) 2024-12-13 13:28:55 -08:00
clipboard.pyi add deps and position field in VarData (#4518) 2024-12-13 13:28:55 -08:00
colors.py Get rx.color working with fstrings (#2562) 2024-02-09 17:06:55 -08:00
cond.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
debounce.py enable PGH, bump pyright and fix all #type: ignore (#4699) 2025-01-28 13:11:05 -08:00
debounce.pyi change custom attr to accept any (#4323) 2024-11-07 14:18:13 -08:00
foreach.py improve var base typing (#4718) 2025-01-31 13:12:33 -08:00
html.py enable N rules for naming conventions (#4666) 2025-01-23 15:29:17 +01:00
html.pyi add ERA rules to detect commented out code (#4472) 2024-12-11 18:26:44 -08:00
match.py add more type annotations through the code (#4401) 2025-01-29 01:12:47 +01:00
responsive.py [REF-2821]Improve Dynamic Imports (#3345) 2024-05-31 16:43:10 +00:00
sticky.py Add a sticky Built with Reflex badge (#4584) 2025-02-03 11:50:31 -08:00
sticky.pyi Add a sticky Built with Reflex badge (#4584) 2025-02-03 11:50:31 -08:00
upload.py enable PGH, bump pyright and fix all #type: ignore (#4699) 2025-01-28 13:11:05 -08:00
upload.pyi fix upload argspec being missing (#4335) 2024-11-08 10:12:29 -08:00