@astral/ui 4.76.0 → 4.76.1

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.
@@ -19,6 +19,5 @@ export const StyledDialogContent = styled(DialogContent, {
19
19
  export const TreeListWrapper = styled.div `
20
20
  overflow: auto;
21
21
 
22
- min-width: 500px;
23
22
  height: 100%;
24
23
  `;
@@ -1,4 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { treeListClassnames } from '../Tree';
3
+ import { classNames } from '../utils/classNames';
2
4
  import { List } from './styles';
3
5
  import { TreeItem } from './TreeItem';
4
6
  import { useLogic } from './useLogic';
@@ -6,5 +8,5 @@ const INITIAL_LEVEL = 0;
6
8
  export const TreeLikeList = (props) => {
7
9
  const { listProps, itemProps } = useLogic(props);
8
10
  const { data, className, expandedLevel = 10, disabledItems, ...restProps } = props;
9
- return (_jsx(List, { className: className, ...listProps, children: data.map((item) => (_jsx(TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
11
+ return (_jsx(List, { className: classNames(className, treeListClassnames.list), ...listProps, children: data.map((item) => (_jsx(TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
10
12
  };
@@ -22,6 +22,5 @@ exports.StyledDialogContent = (0, styled_1.styled)(DialogContent_1.DialogContent
22
22
  exports.TreeListWrapper = styled_1.styled.div `
23
23
  overflow: auto;
24
24
 
25
- min-width: 500px;
26
25
  height: 100%;
27
26
  `;
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TreeLikeList = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const Tree_1 = require("../Tree");
6
+ const classNames_1 = require("../utils/classNames");
5
7
  const styles_1 = require("./styles");
6
8
  const TreeItem_1 = require("./TreeItem");
7
9
  const useLogic_1 = require("./useLogic");
@@ -9,6 +11,6 @@ const INITIAL_LEVEL = 0;
9
11
  const TreeLikeList = (props) => {
10
12
  const { listProps, itemProps } = (0, useLogic_1.useLogic)(props);
11
13
  const { data, className, expandedLevel = 10, disabledItems, ...restProps } = props;
12
- return ((0, jsx_runtime_1.jsx)(styles_1.List, { className: className, ...listProps, children: data.map((item) => ((0, jsx_runtime_1.jsx)(TreeItem_1.TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
14
+ return ((0, jsx_runtime_1.jsx)(styles_1.List, { className: (0, classNames_1.classNames)(className, Tree_1.treeListClassnames.list), ...listProps, children: data.map((item) => ((0, jsx_runtime_1.jsx)(TreeItem_1.TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
13
15
  };
14
16
  exports.TreeLikeList = TreeLikeList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "4.76.0",
3
+ "version": "4.76.1",
4
4
  "browser": "./index.js",
5
5
  "main": "./node/index.js",
6
6
  "dependencies": {