dara-components 1.20.2__py3-none-any.whl → 1.20.3__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.
@@ -116,6 +116,7 @@ class Button(LayoutComponent):
116
116
  :param outline: This allows to pick between two styles, if False the button is filled with a solid background color,
117
117
  if True it shows a transparent background with an outlined colored border. Filled buttons are more prominent and
118
118
  often used as primary actions, while outline buttons are more subtle and commonly used as secondary actions.
119
+ :param stop_click_propagation: Whether to stop the click event from propagating to the parent element, defaults to true
119
120
  """
120
121
 
121
122
  disabled: Optional[Union[Condition, ClientVariable, bool]] = None
@@ -123,6 +124,7 @@ class Button(LayoutComponent):
123
124
  icon: Optional[str] = None
124
125
  styling: Optional[ButtonStyle] = None
125
126
  outline: bool = False
127
+ stop_click_propagation: bool = True
126
128
 
127
129
  def __init__(
128
130
  self, children: Union[str, ComponentInstance, ClientVariable], styling: Optional[ButtonStyle] = None, **kwargs
@@ -51927,7 +51927,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51927
51927
  disabled: disabledValue,
51928
51928
  isSimpleButton: typeof children2 === "string" || children2[0]?.name === "Text",
51929
51929
  loading,
51930
- onClick: () => onClick(null),
51930
+ onClick: (e3) => {
51931
+ if (props.stop_click_propagation !== false) {
51932
+ e3.stopPropagation();
51933
+ }
51934
+ onClick(null);
51935
+ },
51931
51936
  outline,
51932
51937
  style: {
51933
51938
  gap: "0.75rem",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dara-components
3
- Version: 1.20.2
3
+ Version: 1.20.3
4
4
  Summary: Components for the Dara Framework
5
5
  Home-page: https://dara.causalens.com/
6
6
  License: Apache-2.0
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Dist: bokeh (>=3.1.0,<3.2.0)
17
17
  Requires-Dist: cai-causal-graph (>=0.3.6)
18
18
  Requires-Dist: certifi (>=2024.7.4)
19
- Requires-Dist: dara-core (==1.20.2)
19
+ Requires-Dist: dara-core (==1.20.3)
20
20
  Requires-Dist: dill (>=0.3.0,<0.4.0)
21
21
  Requires-Dist: matplotlib (>=2.0.0)
22
22
  Requires-Dist: pandas (>=1.1.0,<3.0.0)
@@ -28,7 +28,7 @@ Description-Content-Type: text/markdown
28
28
 
29
29
  # Dara Components
30
30
 
31
- <img src="https://github.com/causalens/dara/blob/v1.20.2/img/dara_light.svg?raw=true">
31
+ <img src="https://github.com/causalens/dara/blob/v1.20.3/img/dara_light.svg?raw=true">
32
32
 
33
33
  ![Master tests](https://github.com/causalens/dara/actions/workflows/tests.yml/badge.svg?branch=master)
34
34
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
@@ -4,7 +4,7 @@ dara/components/common/accordion.py,sha256=AVQD8OCZU5CSlvqwX85NpfLYiDIKoHZArMN7V
4
4
  dara/components/common/anchor.py,sha256=pcQNFG7xnf12jQnGROgyLlvwmvlsVGo8olxQVu3fXMI,2791
5
5
  dara/components/common/base_component.py,sha256=rUFmLbe8DHL8S_ey5h93zuIP62cK26zknWwUF5eqp9I,4619
6
6
  dara/components/common/bullet_list.py,sha256=yk4lFAn6Bzx9UByp27P7ioVidAfsTPl5d4hIkG7MRkQ,1433
7
- dara/components/common/button.py,sha256=lQeEvc7BGt42l5V31rfusRyj23OWK8RbEah34WPPhyY,4743
7
+ dara/components/common/button.py,sha256=MIiQ6KSyO6z13kHd7lHAoxQeAGVYguYELLStw3JwBz0,4907
8
8
  dara/components/common/button_bar.py,sha256=3_q6ccopXP0Gx_wdsGnejU6oN8D98lsOyQKBNhx-AQA,3802
9
9
  dara/components/common/card.py,sha256=-_14Um86g_VQVLcCXDv-PpfkiH_pN68J4ZIcZ4lp3kY,2102
10
10
  dara/components/common/carousel.py,sha256=T-d4w2pF9wB5sNsXe2i3rEfiZoRZJd5D4jVD9ctw-Qk,5344
@@ -79,9 +79,9 @@ dara/components/smart/data_slicer/utils/core.py,sha256=4M_HA8oBzAkHklHgmaJ-qiKA3
79
79
  dara/components/smart/data_slicer/utils/data_preview.py,sha256=OAphjMrm3F76XmJ09X7sZSeOeKqGJFwN5ooo3qcyrG4,1722
80
80
  dara/components/smart/data_slicer/utils/plotting.py,sha256=TB00576kbA6y1eRuZBe09UAcZmluY4iJsKmYnXZ3hWQ,3389
81
81
  dara/components/smart/hierarchy.py,sha256=3RtHj68gA8H_X9FxQdaeSJloTqe8ciH52ku6f7zy33M,2902
82
- dara/components/umd/dara.components.umd.js,sha256=B-zW4CtagKvn2ZhCNbz5a5tGLQvjeX5yHaM8_bn5cuo,6851411
82
+ dara/components/umd/dara.components.umd.js,sha256=tM-s7FWzdRbRVxEmvN4ggmisuGe98ctZJT8RLEw_xhA,6851538
83
83
  dara/components/umd/style.css,sha256=Qm0_kcxXBDoXvvPTc7YCttkl1zMFifdcp-KufTunPNY,162729
84
- dara_components-1.20.2.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
85
- dara_components-1.20.2.dist-info/METADATA,sha256=IwllAjtDCK83CxEVqsUWW-F33nP9zGc7zyK7thU7U2I,2743
86
- dara_components-1.20.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
- dara_components-1.20.2.dist-info/RECORD,,
84
+ dara_components-1.20.3.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
85
+ dara_components-1.20.3.dist-info/METADATA,sha256=eOVzCjxp4wezFJzlrtgWv2wRVzxNa_Xr5iq-HT3RHv4,2743
86
+ dara_components-1.20.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
+ dara_components-1.20.3.dist-info/RECORD,,