@underverse-ui/underverse 1.0.118 → 1.0.119

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "1.0.118",
3
+ "version": "1.0.119",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 232,
6
6
  "exports": [
package/dist/index.cjs CHANGED
@@ -17652,6 +17652,9 @@ function CategoryTreeSelect(props) {
17652
17652
  searchDebounceMs = 0,
17653
17653
  minSearchLength = 0,
17654
17654
  showSearchPromptWhenEmptyQuery = false,
17655
+ baseIndent = TREE_NODE_BASE_PADDING_REM,
17656
+ indentSize = TREE_NODE_INDENT_REM,
17657
+ renderItemActions,
17655
17658
  singleSelect = false
17656
17659
  } = props;
17657
17660
  const [isOpen, setIsOpen] = (0, import_react22.useState)(false);
@@ -17955,7 +17958,7 @@ function CategoryTreeSelect(props) {
17955
17958
  // Selected state - đồng bộ cho tất cả
17956
17959
  !viewOnly && isSelected && "bg-accent/40"
17957
17960
  ),
17958
- style: { paddingLeft: `${level * TREE_NODE_INDENT_REM + TREE_NODE_BASE_PADDING_REM}rem` },
17961
+ style: { paddingLeft: `${level * indentSize + baseIndent}rem` },
17959
17962
  children: [
17960
17963
  hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
17961
17964
  "button",
@@ -18000,7 +18003,8 @@ function CategoryTreeSelect(props) {
18000
18003
  ),
18001
18004
  hasChildren && !isSelected && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "ml-auto shrink-0 text-[10px] font-medium text-muted-foreground/50 bg-muted/50 px-1.5 py-0.5 rounded-md", children: children.length })
18002
18005
  ] })
18003
- )
18006
+ ),
18007
+ renderItemActions && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "shrink-0 ml-auto", onClick: (e) => e.stopPropagation(), children: renderItemActions(category) })
18004
18008
  ]
18005
18009
  }
18006
18010
  ),