akeyless-client-commons 1.0.98 → 1.0.100

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.
@@ -5814,7 +5814,7 @@ var ElementLabel = function(param) {
5814
5814
  style: {
5815
5815
  direction: direction
5816
5816
  },
5817
- className: cn("text-start w-fit flex gap-0.5 text-nowrap", labelsCommonClassName, labelClassName),
5817
+ className: cn("text-start w-fit flex gap-0.5 text-nowrap form-label", labelsCommonClassName, labelClassName),
5818
5818
  htmlFor: name,
5819
5819
  children: [
5820
5820
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
@@ -5915,6 +5915,20 @@ var ModularForm = function(param) {
5915
5915
  };
5916
5916
  }();
5917
5917
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("form", {
5918
+ onLoad: function(e) {
5919
+ var form = e.currentTarget;
5920
+ console.log("form loaded");
5921
+ var labels = form.getElementsByClassName("form-label");
5922
+ console.log("labels length", labels.length);
5923
+ var max_width = 0;
5924
+ Array.from(labels).forEach(function(label) {
5925
+ var label_width = label.scrollWidth;
5926
+ if (label_width > max_width) {
5927
+ max_width = label_width;
5928
+ }
5929
+ });
5930
+ console.log("max label width:", max_width);
5931
+ },
5918
5932
  onSubmit: onSubmit,
5919
5933
  style: {
5920
5934
  direction: direction
@@ -5610,7 +5610,7 @@ var ElementLabel = function(param) {
5610
5610
  style: {
5611
5611
  direction: direction
5612
5612
  },
5613
- className: cn("text-start w-fit flex gap-0.5 text-nowrap", labelsCommonClassName, labelClassName),
5613
+ className: cn("text-start w-fit flex gap-0.5 text-nowrap form-label", labelsCommonClassName, labelClassName),
5614
5614
  htmlFor: name,
5615
5615
  children: [
5616
5616
  /* @__PURE__ */ jsx19("div", {
@@ -5711,6 +5711,20 @@ var ModularForm = function(param) {
5711
5711
  };
5712
5712
  }();
5713
5713
  return /* @__PURE__ */ jsxs15("form", {
5714
+ onLoad: function(e) {
5715
+ var form = e.currentTarget;
5716
+ console.log("form loaded");
5717
+ var labels = form.getElementsByClassName("form-label");
5718
+ console.log("labels length", labels.length);
5719
+ var max_width = 0;
5720
+ Array.from(labels).forEach(function(label) {
5721
+ var label_width = label.scrollWidth;
5722
+ if (label_width > max_width) {
5723
+ max_width = label_width;
5724
+ }
5725
+ });
5726
+ console.log("max label width:", max_width);
5727
+ },
5714
5728
  onSubmit: onSubmit,
5715
5729
  style: {
5716
5730
  direction: direction
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",