akeyless-client-commons 1.0.136 → 1.0.138
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.
|
@@ -322,6 +322,7 @@ interface ModularFormProps {
|
|
|
322
322
|
errorClassName?: string;
|
|
323
323
|
onLoad?: (e: EventTarget & HTMLFormElement) => void;
|
|
324
324
|
autoFixLabelsWidth?: boolean;
|
|
325
|
+
loaderProps?: LoaderProps;
|
|
325
326
|
}
|
|
326
327
|
interface ConfirmFormProps {
|
|
327
328
|
onV: () => Promise<void> | void;
|
|
@@ -544,7 +545,7 @@ declare const TableProvider: (props: TableProps & {
|
|
|
544
545
|
}) => react_jsx_runtime.JSX.Element;
|
|
545
546
|
declare const Table: React__default.MemoExoticComponent<(props: TableProps) => react_jsx_runtime.JSX.Element>;
|
|
546
547
|
|
|
547
|
-
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, labelsCommonClassName, autoFixLabelsWidth, onLoad, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
548
|
+
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, labelsCommonClassName, autoFixLabelsWidth, loaderProps, onLoad, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
548
549
|
|
|
549
550
|
declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, defaultFocus, labelsCommonClassName, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
|
|
550
551
|
|
|
@@ -322,6 +322,7 @@ interface ModularFormProps {
|
|
|
322
322
|
errorClassName?: string;
|
|
323
323
|
onLoad?: (e: EventTarget & HTMLFormElement) => void;
|
|
324
324
|
autoFixLabelsWidth?: boolean;
|
|
325
|
+
loaderProps?: LoaderProps;
|
|
325
326
|
}
|
|
326
327
|
interface ConfirmFormProps {
|
|
327
328
|
onV: () => Promise<void> | void;
|
|
@@ -544,7 +545,7 @@ declare const TableProvider: (props: TableProps & {
|
|
|
544
545
|
}) => react_jsx_runtime.JSX.Element;
|
|
545
546
|
declare const Table: React__default.MemoExoticComponent<(props: TableProps) => react_jsx_runtime.JSX.Element>;
|
|
546
547
|
|
|
547
|
-
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, labelsCommonClassName, autoFixLabelsWidth, onLoad, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
548
|
+
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, labelsCommonClassName, autoFixLabelsWidth, loaderProps, onLoad, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
548
549
|
|
|
549
550
|
declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, defaultFocus, labelsCommonClassName, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
|
|
550
551
|
|
package/dist/components/index.js
CHANGED
|
@@ -5973,7 +5973,7 @@ var ModularForm = function(param) {
|
|
|
5973
5973
|
return function(form) {
|
|
5974
5974
|
return _ref.apply(this, arguments);
|
|
5975
5975
|
};
|
|
5976
|
-
}() : _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, labelsCommonClassName = param.labelsCommonClassName, _param_autoFixLabelsWidth = param.autoFixLabelsWidth, autoFixLabelsWidth = _param_autoFixLabelsWidth === void 0 ? true : _param_autoFixLabelsWidth, onLoad = param.onLoad;
|
|
5976
|
+
}() : _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, labelsCommonClassName = param.labelsCommonClassName, _param_autoFixLabelsWidth = param.autoFixLabelsWidth, autoFixLabelsWidth = _param_autoFixLabelsWidth === void 0 ? true : _param_autoFixLabelsWidth, loaderProps = param.loaderProps, onLoad = param.onLoad;
|
|
5977
5977
|
var _ref = _sliced_to_array((0, import_react14.useState)(""), 2), errorMsg = _ref[0], setErrorMsg = _ref[1];
|
|
5978
5978
|
var _ref1 = _sliced_to_array((0, import_react14.useState)(false), 2), isLoading = _ref1[0], setIsLoading = _ref1[1];
|
|
5979
5979
|
var formRef = (0, import_react14.useRef)(null);
|
|
@@ -5991,6 +5991,9 @@ var ModularForm = function(param) {
|
|
|
5991
5991
|
label.style.minWidth = "".concat(max_width, "px");
|
|
5992
5992
|
});
|
|
5993
5993
|
}
|
|
5994
|
+
}, []);
|
|
5995
|
+
(0, import_react14.useEffect)(function() {
|
|
5996
|
+
console.log("formRef.current", formRef.current);
|
|
5994
5997
|
}, [
|
|
5995
5998
|
formRef.current,
|
|
5996
5999
|
autoFixLabelsWidth
|
|
@@ -6142,12 +6145,12 @@ var ModularForm = function(param) {
|
|
|
6142
6145
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", {
|
|
6143
6146
|
ref: submitRef,
|
|
6144
6147
|
disabled: isLoading,
|
|
6145
|
-
className: cn("bg-[#547f22] px-3 py-1 rounded-lg text-white min-w-20", buttonClassName),
|
|
6148
|
+
className: cn("bg-[#547f22] px-3 py-1.5 rounded-lg text-white min-w-20", buttonClassName),
|
|
6146
6149
|
type: "submit",
|
|
6147
|
-
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loader, {
|
|
6148
|
-
size:
|
|
6150
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loader, _object_spread({
|
|
6151
|
+
size: 18,
|
|
6149
6152
|
color: "#fff"
|
|
6150
|
-
}) : buttonContent
|
|
6153
|
+
}, loaderProps)) : buttonContent
|
|
6151
6154
|
})
|
|
6152
6155
|
]
|
|
6153
6156
|
})
|
|
@@ -5760,7 +5760,7 @@ var ModularForm = function(param) {
|
|
|
5760
5760
|
return function(form) {
|
|
5761
5761
|
return _ref.apply(this, arguments);
|
|
5762
5762
|
};
|
|
5763
|
-
}() : _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, labelsCommonClassName = param.labelsCommonClassName, _param_autoFixLabelsWidth = param.autoFixLabelsWidth, autoFixLabelsWidth = _param_autoFixLabelsWidth === void 0 ? true : _param_autoFixLabelsWidth, onLoad = param.onLoad;
|
|
5763
|
+
}() : _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, labelsCommonClassName = param.labelsCommonClassName, _param_autoFixLabelsWidth = param.autoFixLabelsWidth, autoFixLabelsWidth = _param_autoFixLabelsWidth === void 0 ? true : _param_autoFixLabelsWidth, loaderProps = param.loaderProps, onLoad = param.onLoad;
|
|
5764
5764
|
var _useState9 = _sliced_to_array(useState9(""), 2), errorMsg = _useState9[0], setErrorMsg = _useState9[1];
|
|
5765
5765
|
var _useState91 = _sliced_to_array(useState9(false), 2), isLoading = _useState91[0], setIsLoading = _useState91[1];
|
|
5766
5766
|
var formRef = useRef5(null);
|
|
@@ -5778,6 +5778,9 @@ var ModularForm = function(param) {
|
|
|
5778
5778
|
label.style.minWidth = "".concat(max_width, "px");
|
|
5779
5779
|
});
|
|
5780
5780
|
}
|
|
5781
|
+
}, []);
|
|
5782
|
+
useEffect7(function() {
|
|
5783
|
+
console.log("formRef.current", formRef.current);
|
|
5781
5784
|
}, [
|
|
5782
5785
|
formRef.current,
|
|
5783
5786
|
autoFixLabelsWidth
|
|
@@ -5929,12 +5932,12 @@ var ModularForm = function(param) {
|
|
|
5929
5932
|
/* @__PURE__ */ jsx20("button", {
|
|
5930
5933
|
ref: submitRef,
|
|
5931
5934
|
disabled: isLoading,
|
|
5932
|
-
className: cn("bg-[#547f22] px-3 py-1 rounded-lg text-white min-w-20", buttonClassName),
|
|
5935
|
+
className: cn("bg-[#547f22] px-3 py-1.5 rounded-lg text-white min-w-20", buttonClassName),
|
|
5933
5936
|
type: "submit",
|
|
5934
|
-
children: isLoading ? /* @__PURE__ */ jsx20(Loader, {
|
|
5935
|
-
size:
|
|
5937
|
+
children: isLoading ? /* @__PURE__ */ jsx20(Loader, _object_spread({
|
|
5938
|
+
size: 18,
|
|
5936
5939
|
color: "#fff"
|
|
5937
|
-
}) : buttonContent
|
|
5940
|
+
}, loaderProps)) : buttonContent
|
|
5938
5941
|
})
|
|
5939
5942
|
]
|
|
5940
5943
|
})
|
package/dist/types/index.d.mts
CHANGED
|
@@ -131,6 +131,13 @@ interface CheckBoxProps {
|
|
|
131
131
|
title?: string;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
interface LoaderProps {
|
|
135
|
+
color?: string;
|
|
136
|
+
size?: number;
|
|
137
|
+
style?: React__default.CSSProperties;
|
|
138
|
+
className?: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
134
141
|
interface BaseElementProps {
|
|
135
142
|
name?: string;
|
|
136
143
|
labelContent?: string;
|
|
@@ -278,6 +285,7 @@ interface ModularFormProps {
|
|
|
278
285
|
errorClassName?: string;
|
|
279
286
|
onLoad?: (e: EventTarget & HTMLFormElement) => void;
|
|
280
287
|
autoFixLabelsWidth?: boolean;
|
|
288
|
+
loaderProps?: LoaderProps;
|
|
281
289
|
}
|
|
282
290
|
interface ConfirmFormProps {
|
|
283
291
|
onV: () => Promise<void> | void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -131,6 +131,13 @@ interface CheckBoxProps {
|
|
|
131
131
|
title?: string;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
interface LoaderProps {
|
|
135
|
+
color?: string;
|
|
136
|
+
size?: number;
|
|
137
|
+
style?: React__default.CSSProperties;
|
|
138
|
+
className?: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
134
141
|
interface BaseElementProps {
|
|
135
142
|
name?: string;
|
|
136
143
|
labelContent?: string;
|
|
@@ -278,6 +285,7 @@ interface ModularFormProps {
|
|
|
278
285
|
errorClassName?: string;
|
|
279
286
|
onLoad?: (e: EventTarget & HTMLFormElement) => void;
|
|
280
287
|
autoFixLabelsWidth?: boolean;
|
|
288
|
+
loaderProps?: LoaderProps;
|
|
281
289
|
}
|
|
282
290
|
interface ConfirmFormProps {
|
|
283
291
|
onV: () => Promise<void> | void;
|