streamlit-react-components 1.8.1.5__py3-none-any.whl → 1.8.1.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,8 +90,8 @@ def button_group(
90
90
  prev_key = f"_button_group_prev_{key}"
91
91
  prev_value = st.session_state.get(prev_key)
92
92
 
93
- # Only fire callback if value actually changed (not on first render)
94
- if prev_value is not None and result != prev_value:
93
+ # Only fire callback if a button was clicked (result not None) and it's different from previous
94
+ if result is not None and result != prev_value:
95
95
  on_change(*(args or ()), **(kwargs or {}))
96
96
 
97
97
  # Always update previous value
@@ -86,8 +86,8 @@ def data_table(
86
86
  prev_key = f"_data_table_prev_{key}"
87
87
  prev_value = st.session_state.get(prev_key)
88
88
 
89
- # Only fire callback if value actually changed (not on first render)
90
- if prev_value is not None and result != prev_value:
89
+ # Only fire callback if a row was clicked (result not None) and it's different from previous
90
+ if result is not None and result != prev_value:
91
91
  on_change(*(args or ()), **(kwargs or {}))
92
92
 
93
93
  # Always update previous value
@@ -72,8 +72,8 @@ def step_indicator(
72
72
  prev_key = f"_step_indicator_prev_{key}"
73
73
  prev_value = st.session_state.get(prev_key)
74
74
 
75
- # Only fire callback if value actually changed (not on first render)
76
- if prev_value is not None and result != prev_value:
75
+ # Only fire callback if a step was clicked (result not None) and it's different from previous
76
+ if result is not None and result != prev_value:
77
77
  on_change(*(args or ()), **(kwargs or {}))
78
78
 
79
79
  # Always update previous value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamlit-react-components
3
- Version: 1.8.1.5
3
+ Version: 1.8.1.6
4
4
  Summary: Reusable React-based Streamlit components with Tailwind CSS styling
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/your-org/streamlit-react-components
@@ -6,23 +6,23 @@ streamlit_react_components/_frontend/index.css,sha256=nGAyY9oe87Ayha6-wUCCA2wQFW
6
6
  streamlit_react_components/_frontend/index.html,sha256=CjBEtVYlgT_q06BE16EHFrUrJZ6z0MCprrTg7qgAWzw,381
7
7
  streamlit_react_components/_frontend/index.js,sha256=K0w0MmanmChWxCP_brj60ot2DFfFM8jIboBNAYzmOtQ,5233921
8
8
  streamlit_react_components/common/__init__.py,sha256=l5BfFZdqjrdLG3sJnJrgahEiTgoBX92_aE0wp2tn_w0,606
9
- streamlit_react_components/common/button_group.py,sha256=CVUrFyLsybF2XiCKvzdxGRH7g4lzfsxEg9zqU80gkEg,3554
9
+ streamlit_react_components/common/button_group.py,sha256=XprEVyup7vQ2Oj6D4db2NRWDKL4C8PE_Qh8-DrjY290,3577
10
10
  streamlit_react_components/common/chart_legend.py,sha256=ylul6Os5A89S8fIJs7XpBdIk6uWijg_zwR1eB7u9wSw,1824
11
- streamlit_react_components/common/data_table.py,sha256=XdNvszJhAWC7K4E5GSAn8jXN8Xpkv04HnZU5V0I8Qc0,3463
11
+ streamlit_react_components/common/data_table.py,sha256=EzJqaIKmg5lPnjb3bWFIFoSGY6C1cpau5bBZYNKCk_Y,3483
12
12
  streamlit_react_components/common/metric_row.py,sha256=84KmKq_ECJ6kTozDSVTVVxN0G5TyGEgtDzl4V_bilAc,1704
13
13
  streamlit_react_components/common/panel.py,sha256=iMcB5RF0SnU4yZHsvQQRuiNPnwQ6m8Epi56k2ziSjR8,1541
14
14
  streamlit_react_components/common/plotly_chart.py,sha256=YHY5kNBdyoEwNeJ4JPDh9DWDkN3zq8YgIncIMyu285A,9815
15
15
  streamlit_react_components/common/section_header.py,sha256=zgEW9Jlj48kiRB3_mYLk3a_oK7w55gnia_laMar_hOk,3430
16
16
  streamlit_react_components/common/smart_chart.py,sha256=kYzdPTpgdJLfX6CUXuT8fUMRubN1DRZ9Zej-XFFgje4,20068
17
17
  streamlit_react_components/common/stat_card.py,sha256=-C-73nglpPFbtliK7JfZLQExc9N1wYsyTjDsTXHVjKQ,4758
18
- streamlit_react_components/common/step_indicator.py,sha256=lsVDnIOOmbgNuIQgzG6u1R5nAszhJhkO8i5B5P05h8k,2697
18
+ streamlit_react_components/common/step_indicator.py,sha256=0W2Lm8BHspA2jNX12AgoLVwgEysoSjSwl015W0RqkUI,2718
19
19
  streamlit_react_components/form/__init__.py,sha256=urk_QJxnOrlMoHBTbCUGfjwxCbNs5lTFIoexUYB4AsA,349
20
20
  streamlit_react_components/form/checkbox_group.py,sha256=P3UJ0JrPpkx_yMDy0bzEt7VyIEmG1iB847a9-TKfPbA,4219
21
21
  streamlit_react_components/form/form_date_slider.py,sha256=FpKvY7uV5uTsLcjOQwPX_IQL97I4Jg7t-e-RVf1329Y,5801
22
22
  streamlit_react_components/form/form_select.py,sha256=bJFyN9at6nTyDcev_7l7pYDW_KhXHG2D7lSfNxPIPTQ,3964
23
23
  streamlit_react_components/form/form_slider.py,sha256=ZL1fCLCfanolmxOzuEQo28D1WYFy17uH0EuwbFwD7f8,4020
24
24
  streamlit_react_components/form/radio_group.py,sha256=ktmB37APMLiaUJGmP38hlA6I_diPyexkcNGXCvDXjw8,4098
25
- streamlit_react_components-1.8.1.5.dist-info/METADATA,sha256=ib2hFFZ1gAy5pO--4mIZnxKYt7ZzeUeOHQY-tayCiPE,21679
26
- streamlit_react_components-1.8.1.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
27
- streamlit_react_components-1.8.1.5.dist-info/top_level.txt,sha256=3JFrl15-Uewx3BFMSzqrBufF9GmTS1LDKfShmg0R9VE,27
28
- streamlit_react_components-1.8.1.5.dist-info/RECORD,,
25
+ streamlit_react_components-1.8.1.6.dist-info/METADATA,sha256=TH14bZIr4FoxjxgXw9Kho_8Ko5DTVCDZwbXxVUBps6o,21679
26
+ streamlit_react_components-1.8.1.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
27
+ streamlit_react_components-1.8.1.6.dist-info/top_level.txt,sha256=3JFrl15-Uewx3BFMSzqrBufF9GmTS1LDKfShmg0R9VE,27
28
+ streamlit_react_components-1.8.1.6.dist-info/RECORD,,