dara-components 1.16.19__py3-none-any.whl → 1.16.20a1__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/card.py +3 -2
- dara/components/common/stack.py +4 -0
- dara/components/umd/dara.components.umd.js +3 -1
- {dara_components-1.16.19.dist-info → dara_components-1.16.20a1.dist-info}/METADATA +3 -3
- {dara_components-1.16.19.dist-info → dara_components-1.16.20a1.dist-info}/RECORD +7 -7
- {dara_components-1.16.19.dist-info → dara_components-1.16.20a1.dist-info}/LICENSE +0 -0
- {dara_components-1.16.19.dist-info → dara_components-1.16.20a1.dist-info}/WHEEL +0 -0
dara/components/common/card.py
CHANGED
|
@@ -18,6 +18,7 @@ limitations under the License.
|
|
|
18
18
|
from typing import Optional, Union
|
|
19
19
|
|
|
20
20
|
from dara.components.common.base_component import LayoutComponent
|
|
21
|
+
from dara.core import NonDataVariable
|
|
21
22
|
from dara.core.definitions import ComponentInstance
|
|
22
23
|
|
|
23
24
|
|
|
@@ -52,8 +53,8 @@ class Card(LayoutComponent):
|
|
|
52
53
|
:param align: How to align the content of the card, accepts any flexbox alignments
|
|
53
54
|
"""
|
|
54
55
|
|
|
55
|
-
subtitle: Optional[str] = None
|
|
56
|
-
title: Optional[str] = None
|
|
56
|
+
subtitle: Optional[Union[str, NonDataVariable]] = None
|
|
57
|
+
title: Optional[Union[str, NonDataVariable]] = None
|
|
57
58
|
accent: bool = False
|
|
58
59
|
|
|
59
60
|
def __init__(self, *args: Union[ComponentInstance, None], **kwargs):
|
dara/components/common/stack.py
CHANGED
|
@@ -123,6 +123,10 @@ class Stack(LayoutComponent):
|
|
|
123
123
|
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
+
Important: when using `For` component with `virtualization` enabled, do not use the Stack `scroll` argument,
|
|
127
|
+
as it is redundant and will result in unexpected behavior. The `For` component will automatically handle scrolling
|
|
128
|
+
for you.
|
|
129
|
+
|
|
126
130
|
:param direction: The direction to stack children, can be 'vertical' or 'horizontal', default is 'vertical'
|
|
127
131
|
:param collapsed: Whether to collapse the stack
|
|
128
132
|
:param justify: How to justify the content of the stack, accepts any flexbox justifications
|
|
@@ -56266,8 +56266,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56266
56266
|
text-align: left;
|
|
56267
56267
|
`;
|
|
56268
56268
|
function Card$1(props) {
|
|
56269
|
+
const [title] = core$1.useVariable(props.title);
|
|
56270
|
+
const [subtitle] = core$1.useVariable(props.subtitle);
|
|
56269
56271
|
const [style2, css2] = core$1.useComponentStyles(props);
|
|
56270
|
-
return /* @__PURE__ */ React__default.default.createElement(CardDiv, { $rawCss: css2, accent: props.accent, style: style2 },
|
|
56272
|
+
return /* @__PURE__ */ React__default.default.createElement(CardDiv, { $rawCss: css2, accent: props.accent, style: style2 }, title && /* @__PURE__ */ React__default.default.createElement(Title, null, title), subtitle && /* @__PURE__ */ React__default.default.createElement(Subtitle, { hasTitle: props.title !== null }, subtitle), /* @__PURE__ */ React__default.default.createElement(
|
|
56271
56273
|
ChildrenWrapper,
|
|
56272
56274
|
{
|
|
56273
56275
|
"data-type": "children-wrapper",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dara-components
|
|
3
|
-
Version: 1.16.
|
|
3
|
+
Version: 1.16.20a1
|
|
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.16.
|
|
19
|
+
Requires-Dist: dara-core (==1.16.20-alpha.1)
|
|
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.16.
|
|
31
|
+
<img src="https://github.com/causalens/dara/blob/v1.16.20-alpha.1/img/dara_light.svg?raw=true">
|
|
32
32
|
|
|
33
33
|

|
|
34
34
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -6,7 +6,7 @@ dara/components/common/base_component.py,sha256=4AVH2CSeI8zzraji4C1edEtcLAb5cHfM
|
|
|
6
6
|
dara/components/common/bullet_list.py,sha256=yk4lFAn6Bzx9UByp27P7ioVidAfsTPl5d4hIkG7MRkQ,1433
|
|
7
7
|
dara/components/common/button.py,sha256=Fw60s3zNfT_V2OQtrJT1Nx7n-Miuqe0Q_E7VaN6oEVI,4716
|
|
8
8
|
dara/components/common/button_bar.py,sha256=pQhcNusM5tlYZVDOTxPqyX5__XUZb7qtNBNHmaIGdlI,3842
|
|
9
|
-
dara/components/common/card.py,sha256=
|
|
9
|
+
dara/components/common/card.py,sha256=ojH4eoej7ZhhmqWv0CZtSeh5IhU94eakoMdPoIB5IoA,2105
|
|
10
10
|
dara/components/common/carousel.py,sha256=ef0Dyqmwg1C4nPCvqb5P2jksAp8a7_492YvLl8duApg,5386
|
|
11
11
|
dara/components/common/checkbox_group.py,sha256=7FrAKMfR5FM7HkeexO16q3aL3RlBEIHt8366os2UUkk,4319
|
|
12
12
|
dara/components/common/code.py,sha256=SwdZMU-vKvGNfOZPxFSkeHxsMLNkI5Oh1XTA2J0ItGw,2326
|
|
@@ -32,7 +32,7 @@ dara/components/common/radio_group.py,sha256=c4W5NxjX1cCZ3w0iOxDrTpav0mOg5qOA-kV
|
|
|
32
32
|
dara/components/common/select.py,sha256=wgRt3TjTi53X2HqlGlsf-yMuvU7aD9r5BcNHddieDr8,6823
|
|
33
33
|
dara/components/common/slider.py,sha256=JKgulZ8_RB6Aby-MEhPdQc3Q-qXPU_EH_CgM-2KMQEI,6568
|
|
34
34
|
dara/components/common/spacer.py,sha256=ZRSl_fLntnumalaL41FYpBKDxOUgWgndkkLdDLl8KvI,2702
|
|
35
|
-
dara/components/common/stack.py,sha256=
|
|
35
|
+
dara/components/common/stack.py,sha256=SyVuWKVg3of4J4ANaHiG6Y7n7Vo8Cciab_F7mM5WepA,5549
|
|
36
36
|
dara/components/common/switch.py,sha256=KjFUFT-1XHyJoJYkJLeEBgUb0fTArsFuWfowniTgl3E,1594
|
|
37
37
|
dara/components/common/tabbed_card.py,sha256=zftir9hSj_l_dx2dPYis0NWy5q290sdg3Q1Nx8RvFbg,2344
|
|
38
38
|
dara/components/common/table.py,sha256=XJh_j4pjwaPHVoSVSn0b1zvvgcWzS6420yj4043YAnA,24640
|
|
@@ -78,9 +78,9 @@ dara/components/smart/data_slicer/utils/core.py,sha256=6BrmG-iwQCuwUAKQ-y9zFKLei
|
|
|
78
78
|
dara/components/smart/data_slicer/utils/data_preview.py,sha256=OAphjMrm3F76XmJ09X7sZSeOeKqGJFwN5ooo3qcyrG4,1722
|
|
79
79
|
dara/components/smart/data_slicer/utils/plotting.py,sha256=JYzdQLXdAD0A8k2W-764xUr7zN0Ri5nf3OQ2Nb_iuiY,3313
|
|
80
80
|
dara/components/smart/hierarchy.py,sha256=9-QzEtbvP-arejhjsgl4Y5o5KHHzg6H1IGmwrX63450,2905
|
|
81
|
-
dara/components/umd/dara.components.umd.js,sha256=
|
|
81
|
+
dara/components/umd/dara.components.umd.js,sha256=QxD17ctr4olGHU_Uo8Lc4vhReIP63T0Vzgbeu90Ia34,18534700
|
|
82
82
|
dara/components/umd/style.css,sha256=Qm0_kcxXBDoXvvPTc7YCttkl1zMFifdcp-KufTunPNY,162729
|
|
83
|
-
dara_components-1.16.
|
|
84
|
-
dara_components-1.16.
|
|
85
|
-
dara_components-1.16.
|
|
86
|
-
dara_components-1.16.
|
|
83
|
+
dara_components-1.16.20a1.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
84
|
+
dara_components-1.16.20a1.dist-info/METADATA,sha256=wuHEuYtMkb3Nt8sPVS4YXT65TOsRK_QpFV2H-lWTKYo,2764
|
|
85
|
+
dara_components-1.16.20a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
86
|
+
dara_components-1.16.20a1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|