reflex/reflex/components/radix/themes
Masen Furer 3350fa0388
Component: translate underscore suffix for props supported by chakra (#2636)
* Component: translate underscore suffix for props supported by chakra

type_ becomes type
min_ becomes min
max_ becomes max
id_ becomes id

The deprecation warning is only displayed when the underscore suffix prop is
passed and the non-underscore suffix prop is defined on the given component.

* Rename type_ to type in accordion and scroll_area

All of the new radix components avoid the underscore suffix names where
possible.

* Update deprecation warning wording

* Refactor for readability

* Do not raise deprecation warning for `id_`

id is kind of a special prop because it exists on all components

* Add test case for deprecating underscore suffix props
2024-02-15 20:46:06 -08:00
..
components Component: translate underscore suffix for props supported by chakra (#2636) 2024-02-15 20:46:06 -08:00
layout Handle component namespaces in global styles (#2630) 2024-02-15 16:03:10 -08:00
typography Handle component namespaces in global styles (#2630) 2024-02-15 16:03:10 -08:00
__init__.py [REF-1743] Implement radix-native color mode switch and button (#2526) 2024-02-07 11:55:25 -08:00
base.py rx.theme: Recognize color_mode in addition to appearance (#2635) 2024-02-15 18:15:44 -08:00
base.pyi Spacing literal should include "0" (#2622) 2024-02-15 11:54:38 -08:00
color_mode.py [REF-1743] Implement radix-native color mode switch and button (#2526) 2024-02-07 11:55:25 -08:00
color_mode.pyi [REF-1840] Clean up color_scheme mapping (#2602) 2024-02-13 14:07:25 -08:00