najm-kit 0.0.27 → 0.0.28

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -7837,8 +7837,8 @@ var handler = {
7837
7837
  };
7838
7838
  useTableStore.use = new Proxy({}, handler);
7839
7839
  var actionButtonClass = (bordered, danger) => cn(
7840
- "flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors",
7841
- danger ? "hover:bg-red-500/10 hover:text-red-400" : "hover:bg-muted hover:text-foreground",
7840
+ "flex h-7 w-7 cursor-pointer items-center justify-center rounded-md border border-transparent text-muted-foreground transition-colors",
7841
+ danger ? "hover:border-red-200 hover:bg-red-50 hover:text-red-500" : "hover:border-border hover:bg-muted hover:text-foreground",
7842
7842
  bordered && "border border-muted-foreground"
7843
7843
  );
7844
7844
  function TableActionCell({ row, onView, onEdit, onDelete, openRowMenu, menuButton, bordered }) {
@@ -9568,7 +9568,8 @@ function NTable(props) {
9568
9568
  [onRowContextMenu]
9569
9569
  );
9570
9570
  const autoOpenRowMenu = effectiveRowMenu ? handleOpenRowMenu : onRowContextMenu ? handleManualRowMenu : null;
9571
- const effectiveMenuButton = Boolean(autoOpenRowMenu) && (menuButtonProp ?? true);
9571
+ const shouldCollapseActions = props.columns.length > 5;
9572
+ const effectiveMenuButton = Boolean(autoOpenRowMenu) && (menuButtonProp ?? shouldCollapseActions);
9572
9573
  const store = useStoreSync({
9573
9574
  data: props.data ?? [],
9574
9575
  columns: props.columns ?? [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "description": "Reusable React UI component package for Najm framework",
6
6
  "main": "./dist/index.mjs",