akeyless-client-commons 1.0.76 → 1.0.77

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.
@@ -471,11 +471,12 @@ interface TableButtonProps {
471
471
  onClick: () => void;
472
472
  title?: string;
473
473
  className?: string;
474
+ buttonClassName?: string;
474
475
  type: "add" | "edit" | "delete" | "custom";
475
476
  children?: ReactNode;
476
477
  disabled?: boolean;
477
478
  }
478
- declare const TableButton: ({ onClick, title, className, type, children, disabled }: TableButtonProps) => react_jsx_runtime.JSX.Element;
479
+ declare const TableButton: ({ onClick, title, className, type, children, disabled, buttonClassName }: TableButtonProps) => react_jsx_runtime.JSX.Element;
479
480
  interface DurationUIProps {
480
481
  duration: number;
481
482
  daysLabel?: string;
@@ -471,11 +471,12 @@ interface TableButtonProps {
471
471
  onClick: () => void;
472
472
  title?: string;
473
473
  className?: string;
474
+ buttonClassName?: string;
474
475
  type: "add" | "edit" | "delete" | "custom";
475
476
  children?: ReactNode;
476
477
  disabled?: boolean;
477
478
  }
478
- declare const TableButton: ({ onClick, title, className, type, children, disabled }: TableButtonProps) => react_jsx_runtime.JSX.Element;
479
+ declare const TableButton: ({ onClick, title, className, type, children, disabled, buttonClassName }: TableButtonProps) => react_jsx_runtime.JSX.Element;
479
480
  interface DurationUIProps {
480
481
  duration: number;
481
482
  daysLabel?: string;
@@ -5225,7 +5225,7 @@ var TimesUI = function(param) {
5225
5225
  });
5226
5226
  };
5227
5227
  var TableButton = function(param) {
5228
- var onClick = param.onClick, title = param.title, className = param.className, type = param.type, children = param.children, disabled = param.disabled;
5228
+ var onClick = param.onClick, title = param.title, className = param.className, type = param.type, children = param.children, disabled = param.disabled, buttonClassName = param.buttonClassName;
5229
5229
  var icon = {
5230
5230
  add: "fa-regular fa-plus text-2xl",
5231
5231
  edit: "fa-light fa-pen-to-square text-xl",
@@ -5233,13 +5233,13 @@ var TableButton = function(param) {
5233
5233
  };
5234
5234
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
5235
5235
  children: type === "custom" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", {
5236
- className: className,
5236
+ className: cn(className, buttonClassName),
5237
5237
  title: title,
5238
5238
  onClick: onClick,
5239
5239
  children: children
5240
5240
  }) : type === "add" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button, {
5241
5241
  disabled: disabled,
5242
- className: "disabled:hover:cursor-not-allowed disabled:text-black/40 hover:scale-125",
5242
+ className: cn("disabled:hover:cursor-not-allowed disabled:text-black/40 hover:scale-125 ", buttonClassName),
5243
5243
  title: title,
5244
5244
  onClick: onClick,
5245
5245
  children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("i", {
@@ -5024,7 +5024,7 @@ var TimesUI = function(param) {
5024
5024
  });
5025
5025
  };
5026
5026
  var TableButton = function(param) {
5027
- var onClick = param.onClick, title = param.title, className = param.className, type = param.type, children = param.children, disabled = param.disabled;
5027
+ var onClick = param.onClick, title = param.title, className = param.className, type = param.type, children = param.children, disabled = param.disabled, buttonClassName = param.buttonClassName;
5028
5028
  var icon = {
5029
5029
  add: "fa-regular fa-plus text-2xl",
5030
5030
  edit: "fa-light fa-pen-to-square text-xl",
@@ -5032,13 +5032,13 @@ var TableButton = function(param) {
5032
5032
  };
5033
5033
  return /* @__PURE__ */ jsx17(Fragment3, {
5034
5034
  children: type === "custom" ? /* @__PURE__ */ jsx17("button", {
5035
- className: className,
5035
+ className: cn(className, buttonClassName),
5036
5036
  title: title,
5037
5037
  onClick: onClick,
5038
5038
  children: children
5039
5039
  }) : type === "add" ? /* @__PURE__ */ jsx17(Button, {
5040
5040
  disabled: disabled,
5041
- className: "disabled:hover:cursor-not-allowed disabled:text-black/40 hover:scale-125",
5041
+ className: cn("disabled:hover:cursor-not-allowed disabled:text-black/40 hover:scale-125 ", buttonClassName),
5042
5042
  title: title,
5043
5043
  onClick: onClick,
5044
5044
  children: /* @__PURE__ */ jsx17("i", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",