@underverse-ui/underverse 1.0.117 → 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.117",
3
+ "version": "1.0.119",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 232,
6
6
  "exports": [
package/dist/index.cjs CHANGED
@@ -9335,9 +9335,11 @@ var DateRangePicker = ({
9335
9335
  setTempStart(localDate);
9336
9336
  setTempEnd(null);
9337
9337
  setHoveredDate(null);
9338
+ onChange(localDate, null);
9338
9339
  } else if (tempStart && !tempEnd) {
9339
9340
  if (localDate < tempStart) {
9340
9341
  setTempStart(localDate);
9342
+ onChange(localDate, null);
9341
9343
  } else {
9342
9344
  setTempEnd(localDate);
9343
9345
  setLocalRequiredError(void 0);
@@ -17650,6 +17652,9 @@ function CategoryTreeSelect(props) {
17650
17652
  searchDebounceMs = 0,
17651
17653
  minSearchLength = 0,
17652
17654
  showSearchPromptWhenEmptyQuery = false,
17655
+ baseIndent = TREE_NODE_BASE_PADDING_REM,
17656
+ indentSize = TREE_NODE_INDENT_REM,
17657
+ renderItemActions,
17653
17658
  singleSelect = false
17654
17659
  } = props;
17655
17660
  const [isOpen, setIsOpen] = (0, import_react22.useState)(false);
@@ -17953,7 +17958,7 @@ function CategoryTreeSelect(props) {
17953
17958
  // Selected state - đồng bộ cho tất cả
17954
17959
  !viewOnly && isSelected && "bg-accent/40"
17955
17960
  ),
17956
- style: { paddingLeft: `${level * TREE_NODE_INDENT_REM + TREE_NODE_BASE_PADDING_REM}rem` },
17961
+ style: { paddingLeft: `${level * indentSize + baseIndent}rem` },
17957
17962
  children: [
17958
17963
  hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
17959
17964
  "button",
@@ -17998,7 +18003,8 @@ function CategoryTreeSelect(props) {
17998
18003
  ),
17999
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 })
18000
18005
  ] })
18001
- )
18006
+ ),
18007
+ renderItemActions && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "shrink-0 ml-auto", onClick: (e) => e.stopPropagation(), children: renderItemActions(category) })
18002
18008
  ]
18003
18009
  }
18004
18010
  ),