dara-components 1.24.2__py3-none-any.whl → 1.25.0__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.
@@ -40016,9 +40016,11 @@
40016
40016
  `;
40017
40017
  const ItemLabel = G.div`
40018
40018
  display: flex;
40019
- align-items: center;
40020
40019
  gap: 0.5rem;
40020
+ align-items: center;
40021
+
40021
40022
  width: 100%;
40023
+
40022
40024
  line-height: 1;
40023
40025
  `;
40024
40026
  G.div`
@@ -119957,9 +119959,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
119957
119959
  `;
119958
119960
  G.div`
119959
119961
  display: flex;
119960
- align-items: center;
119961
119962
  gap: 0.5rem;
119963
+ align-items: center;
119964
+
119962
119965
  width: 100%;
119966
+
119963
119967
  line-height: 1;
119964
119968
  `;
119965
119969
  G.div`
@@ -24,7 +24,7 @@ from dara.components.common.base_component import (
24
24
  )
25
25
  from dara.components.common.text import Text
26
26
  from dara.core.definitions import discover
27
- from dara.core.interactivity import AnyVariable, DerivedVariable, Variable
27
+ from dara.core.interactivity import ClientVariable
28
28
 
29
29
 
30
30
  @deprecated('Use `dara.core.Link` instead')
@@ -66,12 +66,12 @@ class Anchor(ModifierComponent):
66
66
  clean: bool = False
67
67
  new_tab: bool = False
68
68
 
69
- def __init__(self, child: ContentComponent | str | Variable[str] | DerivedVariable[str], **kwargs):
70
- if isinstance(child, (ContentComponent, Variable, DerivedVariable, str)) is False:
69
+ def __init__(self, child: ContentComponent | str | ClientVariable, **kwargs):
70
+ if isinstance(child, ContentComponent | ClientVariable | str) is False:
71
71
  raise LayoutError(f'Only a single ContentComponent may be passed as an Anchors child, passed : {child}')
72
72
 
73
73
  # Handle a string or Variable being passed directly to an anchor
74
- if isinstance(child, (str, AnyVariable)):
74
+ if isinstance(child, str | ClientVariable):
75
75
  child = Text(child)
76
76
  parsed_args: list[ContentComponent] = [child]
77
77
  super().__init__(*parsed_args, **kwargs)
@@ -22,7 +22,7 @@ from pydantic import field_validator
22
22
  from dara.components.common.base_component import FormComponent
23
23
  from dara.components.common.utils import Item
24
24
  from dara.core.base_definitions import Action
25
- from dara.core.interactivity import ClientVariable, Variable
25
+ from dara.core.interactivity import ClientVariable
26
26
 
27
27
 
28
28
  class CheckboxGroup(FormComponent):
@@ -101,7 +101,7 @@ class CheckboxGroup(FormComponent):
101
101
  select_max: int | None = None
102
102
  select_min: int | None = None
103
103
  list_styling: bool = False
104
- value: Variable[Any] | None = None
104
+ value: ClientVariable | None = None
105
105
  onchange: Action | None = None
106
106
  id: str | None = None
107
107
 
@@ -18,7 +18,7 @@ limitations under the License.
18
18
  from dara.components.common.base_component import ModifierComponent
19
19
  from dara.components.common.stack import Stack
20
20
  from dara.core.definitions import ComponentInstance
21
- from dara.core.interactivity import DerivedVariable, Variable
21
+ from dara.core.interactivity import ClientVariable
22
22
 
23
23
 
24
24
  class Tooltip(ModifierComponent):
@@ -72,14 +72,14 @@ class Tooltip(ModifierComponent):
72
72
  :param styling: Defines the style of the tooltip, can be 'default' or 'error'
73
73
  """
74
74
 
75
- content: str | ComponentInstance | Variable[str] | DerivedVariable[str]
75
+ content: str | ComponentInstance | ClientVariable
76
76
  placement: str = 'auto'
77
77
  styling: str = 'default'
78
78
 
79
79
  def __init__(
80
80
  self,
81
81
  *components: ComponentInstance | None,
82
- content: str | ComponentInstance | Variable[str] | DerivedVariable[str],
82
+ content: str | ComponentInstance | ClientVariable,
83
83
  placement: str = 'auto',
84
84
  styling: str = 'default',
85
85
  **kwargs,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dara-components
3
- Version: 1.24.2
3
+ Version: 1.25.0
4
4
  Summary: Components for the Dara Framework
5
5
  Home-page: https://dara.causalens.com/
6
6
  License: Apache-2.0
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
15
15
  Requires-Dist: bokeh (==3.1.1)
16
16
  Requires-Dist: cai-causal-graph (>=0.3.6)
17
17
  Requires-Dist: certifi (>=2024.7.4)
18
- Requires-Dist: dara-core (==1.24.2)
18
+ Requires-Dist: dara-core (==1.25.0)
19
19
  Requires-Dist: dill (>=0.3.0,<0.4.0)
20
20
  Requires-Dist: matplotlib (>=2.0.0)
21
21
  Requires-Dist: pandas (>=1.1.0,<3.0.0)
@@ -27,7 +27,7 @@ Description-Content-Type: text/markdown
27
27
 
28
28
  # Dara Components
29
29
 
30
- <img src="https://github.com/causalens/dara/blob/v1.24.2/img/dara_light.svg?raw=true">
30
+ <img src="https://github.com/causalens/dara/blob/v1.25.0/img/dara_light.svg?raw=true">
31
31
 
32
32
  ![Master tests](https://github.com/causalens/dara/actions/workflows/tests.yml/badge.svg?branch=master)
33
33
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
@@ -2,7 +2,7 @@ dara/components/__init__.py,sha256=C_FZGdU_DrybumO2aVYEpVmSJ00WnDtVxWjlvv_HRJ8,1
2
2
  dara/components/_assets/__init__.py,sha256=WRWzSRHxObpPhbIJZ1R28PMkNvQeaz_mtcGyCDleUrQ,863
3
3
  dara/components/_assets/auto_js/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  dara/components/_assets/auto_js/dara.components.css,sha256=Qm0_kcxXBDoXvvPTc7YCttkl1zMFifdcp-KufTunPNY,162729
5
- dara/components/_assets/auto_js/dara.components.umd.js,sha256=iLMg_ulGJu6u7kfKb8Yu2IIPzKc_pdsa3c0lgmoZs4A,7038965
5
+ dara/components/_assets/auto_js/dara.components.umd.js,sha256=EzI0B06Pllwd31gUVlHD5OLQ1FDpwSKe7Rn2Qc-68_k,7038969
6
6
  dara/components/_assets/common/bokeh-3.1.1.min.js,sha256=MbVmD3ArfHv5QtlTZlkO9QQOXQjGD1BD24RAfo9Cm3k,942380
7
7
  dara/components/_assets/common/bokeh-api-3.1.1.min.js,sha256=mXZVlXj0uhFbxfm1E4g7vSkPABdBFP1ws0FLRTYSZwc,118248
8
8
  dara/components/_assets/common/bokeh-gl-3.1.1.min.js,sha256=XzGw14TvTGCtZsW2mXMD5Ro2fVMkKk380eMyqwQN1rQ,194368
@@ -15,14 +15,14 @@ dara/components/_assets/common/pixi_viewport.js,sha256=X4X1cEPLpY7EHQfs0lCNsBdH9
15
15
  dara/components/_assets/common/plotly.min.js,sha256=8zGRhYASzyY8qHO4GcXnQFU4GD_j0OGm17Pld4Z7zDc,3608773
16
16
  dara/components/common/__init__.py,sha256=amZWLKVUsq987chihQxzNj40WyspcbBEtEqR0mTZ_pA,4076
17
17
  dara/components/common/accordion.py,sha256=EIPxycpE7E1C-ihiVpazEgJIinfHqKeb-Ig4kvU2Pgs,9367
18
- dara/components/common/anchor.py,sha256=SlC9DXUyTsCrfbgspfXTLeGkLQpkvrU7aGcWIJHC7jc,2825
18
+ dara/components/common/anchor.py,sha256=nFFQydCxI76ZzYnBvZGHVAydMIRrfd8DnYmrJSSzY3k,2770
19
19
  dara/components/common/base_component.py,sha256=6TzcQN7VKgSDUvTVCKGkSLHCx55eRG31gZhN1uzFfYE,4584
20
20
  dara/components/common/bullet_list.py,sha256=sZsyi8lIprvi1s4QX2ukrhBECwdgR2Yu9eHkLOgd0j4,1396
21
21
  dara/components/common/button.py,sha256=v8WSqTf4ma4_ewSSGuWoL2auwXGXRIKfSDUEaTB565Y,5301
22
22
  dara/components/common/button_bar.py,sha256=4Vi9vOyCsxyRYvd76vdX9Esu4tpX2ByJYiQS1zgiEHg,3777
23
23
  dara/components/common/card.py,sha256=Pk3rQr9UHQSW9_GJfdLoSzkMFRqSCKRl1OMxG3UghrE,2042
24
24
  dara/components/common/carousel.py,sha256=ijakwE4AXaYB1MpcVT19NW487LaleV6hvveyDylSjLA,5303
25
- dara/components/common/checkbox_group.py,sha256=9sHSzwwh3cngR7yi7MtBWEAUExUuIOdcWsecu2WQmd4,4227
25
+ dara/components/common/checkbox_group.py,sha256=ca355rxVuC7X5qOm4HHogrgPA5vrS77ZR9Zo0o3OiiU,4218
26
26
  dara/components/common/code.py,sha256=XsoWeq_PUX_DsCES_n6S4zjsANIJP-PJeIa67aM8GfE,2298
27
27
  dara/components/common/component_select_list.py,sha256=mSKZF4Ur2-8rB-pkbDATMgsYRsI91K4h_VUEvQjtZGQ,2589
28
28
  dara/components/common/datepicker.py,sha256=I739gvGTkIgE_THwtd-3LsbA9H1MHchMESfVMmzBE5A,3613
@@ -54,7 +54,7 @@ dara/components/common/table.py,sha256=A-PMzw2-Ri6yS5lwSubyfPa99U-8I1CVJ8MxNh9OA
54
54
  dara/components/common/text.py,sha256=IP8m2lpYkF0UoW4HIgEBCeqvi1wjeR5dO_Ydf03lvM0,1942
55
55
  dara/components/common/textarea.py,sha256=F0rOUHx7kVJM1BTrTq6BFnLUAN8P0OnlyTudvR0B2Qk,2084
56
56
  dara/components/common/time_utils.py,sha256=lB6ncnukBE1-pxz3F7pw0QLGrAiNCCELvBfRI49f-Rc,1717
57
- dara/components/common/tooltip.py,sha256=ZUl9zcQOLh689OWjqhKuSRp86oJHhigxf9zY4DNrsl8,3244
57
+ dara/components/common/tooltip.py,sha256=dMR397xIqt584CawCk6xnK_sxYEUcT3UMxKA3odRSwc,3189
58
58
  dara/components/common/utils.py,sha256=vkCHKW6t2ObcrzQpxnTNffoJa_rcbF8eQXfuQzgq03o,5430
59
59
  dara/components/graphs/__init__.py,sha256=xN6ibodsLvO_ATXASRgwfzCLraoWqdKuaGovWRaGxtk,750
60
60
  dara/components/graphs/components/__init__.py,sha256=GdWwL5spSsATOU57EmMqOf6t7az1rP5S3Djd0eyL9As,1007
@@ -93,8 +93,8 @@ dara/components/smart/data_slicer/utils/core.py,sha256=lRONw6kGZRlISvdOIfud9eUVt
93
93
  dara/components/smart/data_slicer/utils/data_preview.py,sha256=-j77RuYWOJNQpZwEgb2iryA42DEgabq1Q8IXHkOUUe8,1697
94
94
  dara/components/smart/data_slicer/utils/plotting.py,sha256=TB00576kbA6y1eRuZBe09UAcZmluY4iJsKmYnXZ3hWQ,3389
95
95
  dara/components/smart/hierarchy.py,sha256=Q05GVG81ykwWdXcol9mqxopIrWwhhvwtT5TRF-A1j98,2871
96
- dara_components-1.24.2.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
97
- dara_components-1.24.2.dist-info/METADATA,sha256=DD2MeNlrv3YOZtQfX4QnUekzbMcsPFoB_u3Ak5-GiqA,2687
98
- dara_components-1.24.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
99
- dara_components-1.24.2.dist-info/entry_points.txt,sha256=QsM8eFLf60NfKyKgE4vstwyaDuuFXgqqgHaLdcsnhnk,70
100
- dara_components-1.24.2.dist-info/RECORD,,
96
+ dara_components-1.25.0.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
97
+ dara_components-1.25.0.dist-info/METADATA,sha256=xl_m0Rg51ZEUnjl34bx3TN2sNwTryEeGUenPtolu6HU,2687
98
+ dara_components-1.25.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
99
+ dara_components-1.25.0.dist-info/entry_points.txt,sha256=QsM8eFLf60NfKyKgE4vstwyaDuuFXgqqgHaLdcsnhnk,70
100
+ dara_components-1.25.0.dist-info/RECORD,,