dara-components 1.23.0a1__py3-none-any.whl → 1.23.1__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.
@@ -39915,7 +39915,7 @@
39915
39915
  ) : /* @__PURE__ */ y.jsx(React$1.Fragment, {});
39916
39916
  }
39917
39917
  const Tr$1 = Object.assign(vt$1, { Reference: hr$1, Content: gr, Arrow: mr, Virtual: Ie$1, ContextMenu: yr$1, Cursor: br$1 });
39918
- const StyledDropdown = G.div`
39918
+ const StyledDropdown$1 = G.div`
39919
39919
  overflow: hidden;
39920
39920
  display: flex;
39921
39921
  flex-direction: column;
@@ -40015,15 +40015,17 @@
40015
40015
  `;
40016
40016
  const ItemLabel = G.div`
40017
40017
  display: flex;
40018
+ align-items: center;
40018
40019
  gap: 0.5rem;
40019
40020
  width: 100%;
40021
+ line-height: 1;
40020
40022
  `;
40021
40023
  G.div`
40022
40024
  color: ${(props) => props.theme.colors.grey3};
40023
40025
  `;
40024
40026
  const Dropdown = (props) => {
40025
- const { menuItems, onClick } = props;
40026
- return jsxRuntimeExports.jsxs(DropdownMenu$1, { id: props.id, children: [menuItems.map((section, index2) => jsxRuntimeExports.jsxs(React__namespace.Fragment, { children: [section.map((item, itemIndex) => jsxRuntimeExports.jsx(qe$3.Item, { children: ({ close: headlessClose }) => jsxRuntimeExports.jsxs(StyledDropdownMenuItem, { disabled: item.disabled, onClick: (e4) => {
40027
+ const { menuItems, onClick, style: style2 } = props;
40028
+ return jsxRuntimeExports.jsxs(DropdownMenu$1, { id: props.id, style: style2, children: [menuItems.map((section, index2) => jsxRuntimeExports.jsxs(React__namespace.Fragment, { children: [section.map((item, itemIndex) => jsxRuntimeExports.jsx(qe$3.Item, { children: ({ close: headlessClose }) => jsxRuntimeExports.jsxs(StyledDropdownMenuItem, { disabled: item.disabled, onClick: (e4) => {
40027
40029
  e4.stopPropagation();
40028
40030
  e4.preventDefault();
40029
40031
  onClick === null || onClick === void 0 ? void 0 : onClick(item, [index2, itemIndex]);
@@ -40033,7 +40035,7 @@
40033
40035
  }, role: "menuitem", style: item.style, children: [item.before, jsxRuntimeExports.jsxs(ItemLabel, { children: [item.icon, item.label] }), item.after] }) }, typeof item.label === "string" ? item.label : item.label.key)), index2 < menuItems.length - 1 && jsxRuntimeExports.jsx(HorizontalDivider, {})] }, `dropdown-section-${index2}`)), props.footer] });
40034
40036
  };
40035
40037
  function MenuDropdown(props) {
40036
- return jsxRuntimeExports.jsx(qe$3, { children: () => jsxRuntimeExports.jsxs(Tr$1, { enter: "enter", enterFrom: "enter-from", enterTo: "enter-to", flip: true, leave: "leave", leaveFrom: "leave-from", leaveTo: "leave-to", offset: 4, placement: "bottom-end", portal: true, zIndex: 9997, children: [jsxRuntimeExports.jsx(qe$3.Button, { as: React__namespace.Fragment, children: props.button }), jsxRuntimeExports.jsx(qe$3.Items, { as: StyledDropdown, children: jsxRuntimeExports.jsx(Dropdown, Object.assign({}, props)) })] }) });
40038
+ return jsxRuntimeExports.jsx(qe$3, { children: () => jsxRuntimeExports.jsxs(Tr$1, { enter: "enter", enterFrom: "enter-from", enterTo: "enter-to", flip: true, leave: "leave", leaveFrom: "leave-from", leaveTo: "leave-to", offset: 4, placement: "bottom-end", portal: true, zIndex: 9997, children: [jsxRuntimeExports.jsx(qe$3.Button, { as: React__namespace.Fragment, children: props.button }), jsxRuntimeExports.jsx(qe$3.Items, { as: StyledDropdown$1, children: jsxRuntimeExports.jsx(Dropdown, Object.assign({}, props)) })] }) });
40037
40039
  }
40038
40040
  var locale = {
40039
40041
  localize
@@ -53240,7 +53242,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
53240
53242
  }
53241
53243
  );
53242
53244
  }
53245
+ const StyledDropdown = core$1.injectCss(MenuDropdown);
53243
53246
  function DropdownMenu(props) {
53247
+ const [style2, css2] = core$1.useComponentStyles(props);
53244
53248
  const [serverMenuItems] = core$1.useVariable(props.menu_items);
53245
53249
  const onClickAction = core$1.useAction(props.onclick);
53246
53250
  const menuItems = React__namespace.useMemo(() => {
@@ -53266,13 +53270,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
53266
53270
  [onClickAction, serverMenuItems]
53267
53271
  );
53268
53272
  return /* @__PURE__ */ React__namespace.createElement(
53269
- MenuDropdown,
53273
+ StyledDropdown,
53270
53274
  {
53271
53275
  id: props.id_,
53272
53276
  onClick,
53273
53277
  menuItems,
53274
53278
  button: /* @__PURE__ */ React__namespace.createElement(Button$1, { ...props.button.props }),
53275
- footer: props.footer ? /* @__PURE__ */ React__namespace.createElement(core$1.DynamicComponent, { component: props.footer }) : void 0
53279
+ footer: props.footer ? /* @__PURE__ */ React__namespace.createElement(core$1.DynamicComponent, { component: props.footer }) : void 0,
53280
+ style: style2,
53281
+ $rawCss: css2
53276
53282
  }
53277
53283
  );
53278
53284
  }
@@ -119943,8 +119949,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
119943
119949
  `;
119944
119950
  G.div`
119945
119951
  display: flex;
119952
+ align-items: center;
119946
119953
  gap: 0.5rem;
119947
119954
  width: 100%;
119955
+ line-height: 1;
119948
119956
  `;
119949
119957
  G.div`
119950
119958
  color: ${(e4) => e4.theme.colors.grey3};
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dara-components
3
- Version: 1.23.0a1
3
+ Version: 1.23.1
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.23.0-alpha.1)
18
+ Requires-Dist: dara-core (==1.23.1)
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.23.0-alpha.1/img/dara_light.svg?raw=true">
30
+ <img src="https://github.com/causalens/dara/blob/v1.23.1/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=HgXn5Fl2oin01j0vy54TIdYkFMCIW2pBZzT0TilPMiw,7038307
5
+ dara/components/_assets/auto_js/dara.components.umd.js,sha256=3tcUjvchKP4FD3NVRB4JohZC1JKLTSM5tXSbsXLryOM,7038597
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
@@ -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.23.0a1.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
97
- dara_components-1.23.0a1.dist-info/METADATA,sha256=efl8H-S_8RFkO9Kg92dHDhvhwz1N-kDpVIEdu1hqucw,2705
98
- dara_components-1.23.0a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
99
- dara_components-1.23.0a1.dist-info/entry_points.txt,sha256=QsM8eFLf60NfKyKgE4vstwyaDuuFXgqqgHaLdcsnhnk,70
100
- dara_components-1.23.0a1.dist-info/RECORD,,
96
+ dara_components-1.23.1.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
97
+ dara_components-1.23.1.dist-info/METADATA,sha256=56ZDCjYQUj-O4caxmAxXmee_4RCYqBt8VjharYNQfRg,2687
98
+ dara_components-1.23.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
99
+ dara_components-1.23.1.dist-info/entry_points.txt,sha256=QsM8eFLf60NfKyKgE4vstwyaDuuFXgqqgHaLdcsnhnk,70
100
+ dara_components-1.23.1.dist-info/RECORD,,