akeyless-client-commons 1.0.41 → 1.0.42
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.
|
@@ -295,6 +295,8 @@ interface ModularFormProps {
|
|
|
295
295
|
headerClassName?: string;
|
|
296
296
|
direction?: Direction;
|
|
297
297
|
submitRef?: React.MutableRefObject<HTMLButtonElement | null>;
|
|
298
|
+
footerClassName?: string;
|
|
299
|
+
errorClassName?: string;
|
|
298
300
|
}
|
|
299
301
|
interface ConfirmFormProps {
|
|
300
302
|
onV: () => Promise<void> | void;
|
|
@@ -491,7 +493,7 @@ declare const TableProvider: (props: TableProps & {
|
|
|
491
493
|
}) => react_jsx_runtime.JSX.Element;
|
|
492
494
|
declare const Table: React__default.MemoExoticComponent<(props: TableProps) => react_jsx_runtime.JSX.Element>;
|
|
493
495
|
|
|
494
|
-
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
496
|
+
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
495
497
|
|
|
496
498
|
declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
|
|
497
499
|
|
|
@@ -295,6 +295,8 @@ interface ModularFormProps {
|
|
|
295
295
|
headerClassName?: string;
|
|
296
296
|
direction?: Direction;
|
|
297
297
|
submitRef?: React.MutableRefObject<HTMLButtonElement | null>;
|
|
298
|
+
footerClassName?: string;
|
|
299
|
+
errorClassName?: string;
|
|
298
300
|
}
|
|
299
301
|
interface ConfirmFormProps {
|
|
300
302
|
onV: () => Promise<void> | void;
|
|
@@ -491,7 +493,7 @@ declare const TableProvider: (props: TableProps & {
|
|
|
491
493
|
}) => react_jsx_runtime.JSX.Element;
|
|
492
494
|
declare const Table: React__default.MemoExoticComponent<(props: TableProps) => react_jsx_runtime.JSX.Element>;
|
|
493
495
|
|
|
494
|
-
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
496
|
+
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
495
497
|
|
|
496
498
|
declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
|
|
497
499
|
|
package/dist/components/index.js
CHANGED
|
@@ -5303,7 +5303,7 @@ var ModularForm = function(param) {
|
|
|
5303
5303
|
return function(form) {
|
|
5304
5304
|
return _ref.apply(this, arguments);
|
|
5305
5305
|
};
|
|
5306
|
-
}() : _param_submitFunction, _param_elements = param.elements, elements = _param_elements === void 0 ? [] : _param_elements, headerContent = param.headerContent, buttonContent = param.buttonContent, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_headerClassName = param.headerClassName, headerClassName = _param_headerClassName === void 0 ? "" : _param_headerClassName, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, submitRef = param.submitRef;
|
|
5306
|
+
}() : _param_submitFunction, _param_elements = param.elements, elements = _param_elements === void 0 ? [] : _param_elements, headerContent = param.headerContent, buttonContent = param.buttonContent, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_headerClassName = param.headerClassName, headerClassName = _param_headerClassName === void 0 ? "" : _param_headerClassName, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, submitRef = param.submitRef, _param_footerClassName = param.footerClassName, footerClassName = _param_footerClassName === void 0 ? "" : _param_footerClassName, _param_errorClassName = param.errorClassName, errorClassName = _param_errorClassName === void 0 ? "" : _param_errorClassName;
|
|
5307
5307
|
var _ref = _sliced_to_array((0, import_react11.useState)(""), 2), errorMsg = _ref[0], setErrorMsg = _ref[1];
|
|
5308
5308
|
var _ref1 = _sliced_to_array((0, import_react11.useState)(false), 2), isLoading = _ref1[0], setIsLoading = _ref1[1];
|
|
5309
5309
|
var onSubmit = /*#__PURE__*/ function() {
|
|
@@ -5414,11 +5414,11 @@ var ModularForm = function(param) {
|
|
|
5414
5414
|
}
|
|
5415
5415
|
}),
|
|
5416
5416
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
|
|
5417
|
-
className: "flex justify-between w-full",
|
|
5417
|
+
className: cn("flex justify-between w-full", footerClassName),
|
|
5418
5418
|
children: [
|
|
5419
5419
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
|
|
5420
5420
|
title: errorMsg,
|
|
5421
|
-
className: "text-[#f22] text-[18px] max-w-[80%] ellipsis",
|
|
5421
|
+
className: cn("text-[#f22] text-[18px] max-w-[80%] ellipsis", errorClassName),
|
|
5422
5422
|
children: errorMsg
|
|
5423
5423
|
}),
|
|
5424
5424
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", {
|
|
@@ -5108,7 +5108,7 @@ var ModularForm = function(param) {
|
|
|
5108
5108
|
return function(form) {
|
|
5109
5109
|
return _ref.apply(this, arguments);
|
|
5110
5110
|
};
|
|
5111
|
-
}() : _param_submitFunction, _param_elements = param.elements, elements = _param_elements === void 0 ? [] : _param_elements, headerContent = param.headerContent, buttonContent = param.buttonContent, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_headerClassName = param.headerClassName, headerClassName = _param_headerClassName === void 0 ? "" : _param_headerClassName, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, submitRef = param.submitRef;
|
|
5111
|
+
}() : _param_submitFunction, _param_elements = param.elements, elements = _param_elements === void 0 ? [] : _param_elements, headerContent = param.headerContent, buttonContent = param.buttonContent, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_headerClassName = param.headerClassName, headerClassName = _param_headerClassName === void 0 ? "" : _param_headerClassName, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, submitRef = param.submitRef, _param_footerClassName = param.footerClassName, footerClassName = _param_footerClassName === void 0 ? "" : _param_footerClassName, _param_errorClassName = param.errorClassName, errorClassName = _param_errorClassName === void 0 ? "" : _param_errorClassName;
|
|
5112
5112
|
var _useState7 = _sliced_to_array(useState7(""), 2), errorMsg = _useState7[0], setErrorMsg = _useState7[1];
|
|
5113
5113
|
var _useState71 = _sliced_to_array(useState7(false), 2), isLoading = _useState71[0], setIsLoading = _useState71[1];
|
|
5114
5114
|
var onSubmit = /*#__PURE__*/ function() {
|
|
@@ -5219,11 +5219,11 @@ var ModularForm = function(param) {
|
|
|
5219
5219
|
}
|
|
5220
5220
|
}),
|
|
5221
5221
|
/* @__PURE__ */ jsxs14("div", {
|
|
5222
|
-
className: "flex justify-between w-full",
|
|
5222
|
+
className: cn("flex justify-between w-full", footerClassName),
|
|
5223
5223
|
children: [
|
|
5224
5224
|
/* @__PURE__ */ jsx19("div", {
|
|
5225
5225
|
title: errorMsg,
|
|
5226
|
-
className: "text-[#f22] text-[18px] max-w-[80%] ellipsis",
|
|
5226
|
+
className: cn("text-[#f22] text-[18px] max-w-[80%] ellipsis", errorClassName),
|
|
5227
5227
|
children: errorMsg
|
|
5228
5228
|
}),
|
|
5229
5229
|
/* @__PURE__ */ jsx19("button", {
|
package/dist/types/index.d.mts
CHANGED
|
@@ -242,6 +242,8 @@ interface ModularFormProps {
|
|
|
242
242
|
headerClassName?: string;
|
|
243
243
|
direction?: Direction;
|
|
244
244
|
submitRef?: React.MutableRefObject<HTMLButtonElement | null>;
|
|
245
|
+
footerClassName?: string;
|
|
246
|
+
errorClassName?: string;
|
|
245
247
|
}
|
|
246
248
|
interface ConfirmFormProps {
|
|
247
249
|
onV: () => Promise<void> | void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -242,6 +242,8 @@ interface ModularFormProps {
|
|
|
242
242
|
headerClassName?: string;
|
|
243
243
|
direction?: Direction;
|
|
244
244
|
submitRef?: React.MutableRefObject<HTMLButtonElement | null>;
|
|
245
|
+
footerClassName?: string;
|
|
246
|
+
errorClassName?: string;
|
|
245
247
|
}
|
|
246
248
|
interface ConfirmFormProps {
|
|
247
249
|
onV: () => Promise<void> | void;
|