bianic-ui 1.13.0 → 1.13.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.
package/dist/cjs/index.js CHANGED
@@ -1523,10 +1523,11 @@ var ContextualButton = function (_a) {
1523
1523
  : 'text-primary-white'
1524
1524
  : textColorConfig[variant];
1525
1525
  var stateColor = stateColorConfig[isSelected ? 'selected' : 'default'];
1526
- return (React.createElement("button", __assign({ className: "contextual-button box-border flex flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
1526
+ return (React.createElement("button", __assign({ className: "bianic-contextual-button box-border flex flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
1527
1527
  icon,
1528
- label && (React.createElement("div", { className: "label max-h-[46px] px-[5px] text-[12px] leading-none" }, label)),
1529
- actionElement));
1528
+ label && (React.createElement("div", { className: "label flex max-h-[46px] items-center px-[5px] text-[12px] leading-none" },
1529
+ React.createElement("span", { className: "mr-0.5" }, label),
1530
+ actionElement))));
1530
1531
  };
1531
1532
 
1532
1533
  function Color() {
@@ -1657,7 +1658,7 @@ var FileTree = function (_a) {
1657
1658
  var _b = useDetectOutsideClick(popupRef, false), isOpenContMenu = _b[0], setIsOpenContMenu = _b[1];
1658
1659
  var _c = React.useState({ x: 0, y: 0 }), contMenuPosition = _c[0], setContMenuPosition = _c[1];
1659
1660
  var menuStyle = {
1660
- position: 'absolute',
1661
+ position: 'fixed',
1661
1662
  top: "".concat(contMenuPosition.y, "px"),
1662
1663
  left: "".concat(contMenuPosition.x, "px"),
1663
1664
  // Pastikan z-index cukup tinggi agar muncul di atas elemen lain
@@ -1672,7 +1673,7 @@ var FileTree = function (_a) {
1672
1673
  var label = _a.label, nodes = _a.nodes, props = __rest(_a, ["label", "nodes"]);
1673
1674
  return (React.createElement(TreeItem, __assign({ label: label, nodes: nodes, key: index, color: color, chevronColor: chevronColor, handleRightClick: handleRightClick, onMouseDownTreeItem: onMouseDown }, props)));
1674
1675
  }),
1675
- isOpenContMenu && (React.createElement("div", { style: menuStyle, ref: popupRef, className: "bianic-filetree-contextmenu absolute z-10" }, React.isValidElement(contextMenu)
1676
+ isOpenContMenu && (React.createElement("div", { style: menuStyle, ref: popupRef, className: "bianic-filetree-contextmenu" }, React.isValidElement(contextMenu)
1676
1677
  ? // Kirimkan handleItemClick sebagai props onClick ke setiap MenuItem
1677
1678
  React.cloneElement(contextMenu, { isWithOverlay: false })
1678
1679
  : contextMenu))));