dara-components 1.24.2__py3-none-any.whl → 1.24.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.
- dara/components/common/anchor.py +4 -4
- dara/components/common/checkbox_group.py +2 -2
- dara/components/common/tooltip.py +3 -3
- {dara_components-1.24.2.dist-info → dara_components-1.24.3.dist-info}/METADATA +3 -3
- {dara_components-1.24.2.dist-info → dara_components-1.24.3.dist-info}/RECORD +8 -8
- {dara_components-1.24.2.dist-info → dara_components-1.24.3.dist-info}/LICENSE +0 -0
- {dara_components-1.24.2.dist-info → dara_components-1.24.3.dist-info}/WHEEL +0 -0
- {dara_components-1.24.2.dist-info → dara_components-1.24.3.dist-info}/entry_points.txt +0 -0
dara/components/common/anchor.py
CHANGED
|
@@ -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
|
|
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 |
|
|
70
|
-
if isinstance(child,
|
|
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,
|
|
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
|
|
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:
|
|
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
|
|
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 |
|
|
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 |
|
|
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.
|
|
3
|
+
Version: 1.24.3
|
|
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.
|
|
18
|
+
Requires-Dist: dara-core (==1.24.3)
|
|
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.
|
|
30
|
+
<img src="https://github.com/causalens/dara/blob/v1.24.3/img/dara_light.svg?raw=true">
|
|
31
31
|
|
|
32
32
|

|
|
33
33
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -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=
|
|
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=
|
|
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=
|
|
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.
|
|
97
|
-
dara_components-1.24.
|
|
98
|
-
dara_components-1.24.
|
|
99
|
-
dara_components-1.24.
|
|
100
|
-
dara_components-1.24.
|
|
96
|
+
dara_components-1.24.3.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
97
|
+
dara_components-1.24.3.dist-info/METADATA,sha256=uiV8J8CoBlLqPlKXsXspwuEVYWPl7APVcDaxMEapV7E,2687
|
|
98
|
+
dara_components-1.24.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
99
|
+
dara_components-1.24.3.dist-info/entry_points.txt,sha256=QsM8eFLf60NfKyKgE4vstwyaDuuFXgqqgHaLdcsnhnk,70
|
|
100
|
+
dara_components-1.24.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|