akeyless-client-commons 1.0.103 → 1.0.105
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.
- package/dist/components/index.js +10 -18
- package/dist/components/index.mjs +11 -19
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -5848,27 +5848,19 @@ var ModularForm = function(param) {
|
|
|
5848
5848
|
var _ref = _sliced_to_array((0, import_react13.useState)(""), 2), errorMsg = _ref[0], setErrorMsg = _ref[1];
|
|
5849
5849
|
var _ref1 = _sliced_to_array((0, import_react13.useState)(false), 2), isLoading = _ref1[0], setIsLoading = _ref1[1];
|
|
5850
5850
|
var formRef = (0, import_react13.useRef)(null);
|
|
5851
|
-
var
|
|
5852
|
-
if (!formRef.current) {
|
|
5853
|
-
return labelsCommonClassNameProps;
|
|
5854
|
-
}
|
|
5855
|
-
onLoad === null || onLoad === void 0 ? void 0 : onLoad(formRef.current);
|
|
5856
|
-
var labels = formRef.current.getElementsByClassName("form-label");
|
|
5857
|
-
var max_width = 0;
|
|
5858
|
-
Array.from(labels).forEach(function(label) {
|
|
5859
|
-
var label_width = label.clientWidth;
|
|
5860
|
-
if (label_width > max_width) {
|
|
5861
|
-
max_width = label_width;
|
|
5862
|
-
}
|
|
5863
|
-
});
|
|
5864
|
-
return cn("min-w-[".concat(max_width, "px]"), labelsCommonClassNameProps);
|
|
5865
|
-
}, [
|
|
5866
|
-
formRef,
|
|
5867
|
-
labelsCommonClassNameProps
|
|
5868
|
-
]);
|
|
5851
|
+
var _ref2 = _sliced_to_array((0, import_react13.useState)(labelsCommonClassNameProps), 2), labelsCommonClassName = _ref2[0], setLabelsCommonClassName = _ref2[1];
|
|
5869
5852
|
(0, import_react13.useEffect)(function() {
|
|
5870
5853
|
if (formRef.current) {
|
|
5871
5854
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad(formRef.current);
|
|
5855
|
+
var labels = formRef.current.getElementsByClassName("form-label");
|
|
5856
|
+
var max_width = 0;
|
|
5857
|
+
Array.from(labels).forEach(function(label) {
|
|
5858
|
+
var label_width = label.clientWidth;
|
|
5859
|
+
if (label_width > max_width) {
|
|
5860
|
+
max_width = label_width;
|
|
5861
|
+
}
|
|
5862
|
+
});
|
|
5863
|
+
setLabelsCommonClassName(cn("min-w-[".concat(max_width, "px]"), labelsCommonClassNameProps));
|
|
5872
5864
|
}
|
|
5873
5865
|
}, []);
|
|
5874
5866
|
var onSubmit = /*#__PURE__*/ function() {
|
|
@@ -5175,7 +5175,7 @@ var NumberUI = function(param) {
|
|
|
5175
5175
|
});
|
|
5176
5176
|
};
|
|
5177
5177
|
// src/components/forms/ModularForm/ModularForm.tsx
|
|
5178
|
-
import { cloneElement, useEffect as useEffect7,
|
|
5178
|
+
import { cloneElement, useEffect as useEffect7, useRef as useRef5, useState as useState8 } from "react";
|
|
5179
5179
|
// src/components/forms/ModularForm/formElements.tsx
|
|
5180
5180
|
import { useCallback as useCallback5, useMemo as useMemo8, useState as useState7 } from "react";
|
|
5181
5181
|
// src/components/forms/ModularForm/InternationalPhonePicker.tsx
|
|
@@ -5644,27 +5644,19 @@ var ModularForm = function(param) {
|
|
|
5644
5644
|
var _useState8 = _sliced_to_array(useState8(""), 2), errorMsg = _useState8[0], setErrorMsg = _useState8[1];
|
|
5645
5645
|
var _useState81 = _sliced_to_array(useState8(false), 2), isLoading = _useState81[0], setIsLoading = _useState81[1];
|
|
5646
5646
|
var formRef = useRef5(null);
|
|
5647
|
-
var
|
|
5648
|
-
if (!formRef.current) {
|
|
5649
|
-
return labelsCommonClassNameProps;
|
|
5650
|
-
}
|
|
5651
|
-
onLoad === null || onLoad === void 0 ? void 0 : onLoad(formRef.current);
|
|
5652
|
-
var labels = formRef.current.getElementsByClassName("form-label");
|
|
5653
|
-
var max_width = 0;
|
|
5654
|
-
Array.from(labels).forEach(function(label) {
|
|
5655
|
-
var label_width = label.clientWidth;
|
|
5656
|
-
if (label_width > max_width) {
|
|
5657
|
-
max_width = label_width;
|
|
5658
|
-
}
|
|
5659
|
-
});
|
|
5660
|
-
return cn("min-w-[".concat(max_width, "px]"), labelsCommonClassNameProps);
|
|
5661
|
-
}, [
|
|
5662
|
-
formRef,
|
|
5663
|
-
labelsCommonClassNameProps
|
|
5664
|
-
]);
|
|
5647
|
+
var _useState82 = _sliced_to_array(useState8(labelsCommonClassNameProps), 2), labelsCommonClassName = _useState82[0], setLabelsCommonClassName = _useState82[1];
|
|
5665
5648
|
useEffect7(function() {
|
|
5666
5649
|
if (formRef.current) {
|
|
5667
5650
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad(formRef.current);
|
|
5651
|
+
var labels = formRef.current.getElementsByClassName("form-label");
|
|
5652
|
+
var max_width = 0;
|
|
5653
|
+
Array.from(labels).forEach(function(label) {
|
|
5654
|
+
var label_width = label.clientWidth;
|
|
5655
|
+
if (label_width > max_width) {
|
|
5656
|
+
max_width = label_width;
|
|
5657
|
+
}
|
|
5658
|
+
});
|
|
5659
|
+
setLabelsCommonClassName(cn("min-w-[".concat(max_width, "px]"), labelsCommonClassNameProps));
|
|
5668
5660
|
}
|
|
5669
5661
|
}, []);
|
|
5670
5662
|
var onSubmit = /*#__PURE__*/ function() {
|