akeyless-client-commons 1.0.204 → 1.0.206

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
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ComponentProps, ReactNode, Dispatch, SetStateAction, MouseEvent as MouseEvent$1, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
3
+ import React__default, { ComponentProps, MouseEvent, ReactNode, Dispatch, SetStateAction, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
4
4
  import { NxUser, TObject, Geo } from 'akeyless-types-commons';
5
5
  import { Command as Command$1 } from 'cmdk';
6
6
  import * as RPNInput from 'react-phone-number-input';
@@ -364,7 +364,7 @@ interface GoogleSvgProps {
364
364
  height?: string;
365
365
  viewBox?: string;
366
366
  }
367
- type LoginWithGoogleCallback = (e: MouseEvent$1<HTMLButtonElement>, user: NxUser, token: string, userPermissions: TObject<TObject<boolean>>) => Promise<void>;
367
+ type LoginWithGoogleCallback = (e: MouseEvent<HTMLButtonElement>, user: NxUser, token: string, userPermissions: TObject<TObject<boolean>>) => Promise<void>;
368
368
  interface LoginWithGoogleButtonProps {
369
369
  label: string;
370
370
  onClick: LoginWithGoogleCallback;
@@ -478,6 +478,7 @@ interface TableProps {
478
478
  rowIndex?: number | null;
479
479
  onChange?: (rowIndex: number) => void;
480
480
  };
481
+ rowClassNameFunction?: (data?: any) => string;
481
482
  noneSearchKeys?: string[];
482
483
  }
483
484
  interface FilterProps {
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ComponentProps, ReactNode, Dispatch, SetStateAction, MouseEvent as MouseEvent$1, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
3
+ import React__default, { ComponentProps, MouseEvent, ReactNode, Dispatch, SetStateAction, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
4
4
  import { NxUser, TObject, Geo } from 'akeyless-types-commons';
5
5
  import { Command as Command$1 } from 'cmdk';
6
6
  import * as RPNInput from 'react-phone-number-input';
@@ -364,7 +364,7 @@ interface GoogleSvgProps {
364
364
  height?: string;
365
365
  viewBox?: string;
366
366
  }
367
- type LoginWithGoogleCallback = (e: MouseEvent$1<HTMLButtonElement>, user: NxUser, token: string, userPermissions: TObject<TObject<boolean>>) => Promise<void>;
367
+ type LoginWithGoogleCallback = (e: MouseEvent<HTMLButtonElement>, user: NxUser, token: string, userPermissions: TObject<TObject<boolean>>) => Promise<void>;
368
368
  interface LoginWithGoogleButtonProps {
369
369
  label: string;
370
370
  onClick: LoginWithGoogleCallback;
@@ -478,6 +478,7 @@ interface TableProps {
478
478
  rowIndex?: number | null;
479
479
  onChange?: (rowIndex: number) => void;
480
480
  };
481
+ rowClassNameFunction?: (data?: any) => string;
481
482
  noneSearchKeys?: string[];
482
483
  }
483
484
  interface FilterProps {
@@ -5287,10 +5287,10 @@ var TableBody = (0, import_react11.memo)(function() {
5287
5287
  }, renderOnce);
5288
5288
  var TableRow2 = function(param) {
5289
5289
  var item = param.item, index2 = param.index;
5290
- var _useTableContext = useTableContext(), rowStyles = _useTableContext.rowStyles, _useTableContext_rowClassName = _useTableContext.rowClassName, rowClassName = _useTableContext_rowClassName === void 0 ? "" : _useTableContext_rowClassName, keysToRender = _useTableContext.keysToRender, onRowClick = _useTableContext.onRowClick, zebraStriping = _useTableContext.zebraStriping, selectedRow = _useTableContext.selectedRow;
5290
+ var _useTableContext = useTableContext(), rowStyles = _useTableContext.rowStyles, _useTableContext_rowClassName = _useTableContext.rowClassName, rowClassName = _useTableContext_rowClassName === void 0 ? "" : _useTableContext_rowClassName, keysToRender = _useTableContext.keysToRender, onRowClick = _useTableContext.onRowClick, zebraStriping = _useTableContext.zebraStriping, selectedRow = _useTableContext.selectedRow, rowClassNameFunction = _useTableContext.rowClassNameFunction;
5291
5291
  var zebraClassName = zebraStriping ? index2 % 2 === 0 ? zebraStriping.evenRowClassName || "" : zebraStriping.oddRowClassName || "bg-gray-300" : "";
5292
5292
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("tr", {
5293
- className: cn("hover:bg-[#808080] hover:text-[#fff]", zebraClassName, rowClassName, (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.rowIndex) === index2 ? (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.className) || "" : ""),
5293
+ className: cn("hover:bg-[#808080] hover:text-[#fff]", zebraClassName, rowClassName, (rowClassNameFunction === null || rowClassNameFunction === void 0 ? void 0 : rowClassNameFunction(item)) || "", (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.rowIndex) === index2 ? (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.className) || "" : ""),
5294
5294
  onClick: function() {
5295
5295
  (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.onChange) && selectedRow.onChange(index2);
5296
5296
  onRowClick && onRowClick(item, index2);
@@ -6387,7 +6387,7 @@ var ModularForm = function(param) {
6387
6387
  ref: submitRef,
6388
6388
  disabled: isLoading,
6389
6389
  onClick: function(e) {
6390
- submitClickEventRef.current = e.nativeEvent;
6390
+ submitClickEventRef.current = e;
6391
6391
  },
6392
6392
  className: cn("bg-[#547f22] px-3 py-1.5 rounded-lg text-white min-w-20", buttonClassName),
6393
6393
  type: "submit",
@@ -5071,10 +5071,10 @@ var TableBody = memo(function() {
5071
5071
  }, renderOnce);
5072
5072
  var TableRow2 = function(param) {
5073
5073
  var item = param.item, index2 = param.index;
5074
- var _useTableContext = useTableContext(), rowStyles = _useTableContext.rowStyles, _useTableContext_rowClassName = _useTableContext.rowClassName, rowClassName = _useTableContext_rowClassName === void 0 ? "" : _useTableContext_rowClassName, keysToRender = _useTableContext.keysToRender, onRowClick = _useTableContext.onRowClick, zebraStriping = _useTableContext.zebraStriping, selectedRow = _useTableContext.selectedRow;
5074
+ var _useTableContext = useTableContext(), rowStyles = _useTableContext.rowStyles, _useTableContext_rowClassName = _useTableContext.rowClassName, rowClassName = _useTableContext_rowClassName === void 0 ? "" : _useTableContext_rowClassName, keysToRender = _useTableContext.keysToRender, onRowClick = _useTableContext.onRowClick, zebraStriping = _useTableContext.zebraStriping, selectedRow = _useTableContext.selectedRow, rowClassNameFunction = _useTableContext.rowClassNameFunction;
5075
5075
  var zebraClassName = zebraStriping ? index2 % 2 === 0 ? zebraStriping.evenRowClassName || "" : zebraStriping.oddRowClassName || "bg-gray-300" : "";
5076
5076
  return /* @__PURE__ */ jsx17("tr", {
5077
- className: cn("hover:bg-[#808080] hover:text-[#fff]", zebraClassName, rowClassName, (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.rowIndex) === index2 ? (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.className) || "" : ""),
5077
+ className: cn("hover:bg-[#808080] hover:text-[#fff]", zebraClassName, rowClassName, (rowClassNameFunction === null || rowClassNameFunction === void 0 ? void 0 : rowClassNameFunction(item)) || "", (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.rowIndex) === index2 ? (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.className) || "" : ""),
5078
5078
  onClick: function() {
5079
5079
  (selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.onChange) && selectedRow.onChange(index2);
5080
5080
  onRowClick && onRowClick(item, index2);
@@ -6171,7 +6171,7 @@ var ModularForm = function(param) {
6171
6171
  ref: submitRef,
6172
6172
  disabled: isLoading,
6173
6173
  onClick: function(e) {
6174
- submitClickEventRef.current = e.nativeEvent;
6174
+ submitClickEventRef.current = e;
6175
6175
  },
6176
6176
  className: cn("bg-[#547f22] px-3 py-1.5 rounded-lg text-white min-w-20", buttonClassName),
6177
6177
  type: "submit",
@@ -1,6 +1,6 @@
1
1
  import { Command as Command$1 } from 'cmdk';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ComponentProps, ReactNode, Dispatch, SetStateAction } from 'react';
3
+ import React__default, { ComponentProps, ReactNode, Dispatch, SetStateAction, MouseEvent } from 'react';
4
4
  import * as RPNInput from 'react-phone-number-input';
5
5
  import { WhereFilterOp, Unsubscribe } from 'firebase/firestore';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { Command as Command$1 } from 'cmdk';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ComponentProps, ReactNode, Dispatch, SetStateAction } from 'react';
3
+ import React__default, { ComponentProps, ReactNode, Dispatch, SetStateAction, MouseEvent } from 'react';
4
4
  import * as RPNInput from 'react-phone-number-input';
5
5
  import { WhereFilterOp, Unsubscribe } from 'firebase/firestore';
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.0.204",
3
+ "version": "1.0.206",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",