akeyless-client-commons 1.0.168 → 1.0.170

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.
@@ -553,7 +553,7 @@ declare const Table: React__default.MemoExoticComponent<(props: TableProps) => r
553
553
 
554
554
  declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, className, elementsContainerClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, labelsCommonClassName, autoFixLabelsWidth, loaderProps, autoFixLabelsWidthDeps, onLoad, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
555
555
 
556
- 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;
556
+ declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, defaultFocus, labelsCommonClassName, minLength, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
557
557
 
558
558
  declare const defaultFormElementContainerClassName = "flex justify-start items-center gap-3 w-full";
559
559
  declare const defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
@@ -553,7 +553,7 @@ declare const Table: React__default.MemoExoticComponent<(props: TableProps) => r
553
553
 
554
554
  declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, className, elementsContainerClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, labelsCommonClassName, autoFixLabelsWidth, loaderProps, autoFixLabelsWidthDeps, onLoad, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
555
555
 
556
- 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;
556
+ declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, defaultFocus, labelsCommonClassName, minLength, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
557
557
 
558
558
  declare const defaultFormElementContainerClassName = "flex justify-start items-center gap-3 w-full";
559
559
  declare const defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
@@ -5527,7 +5527,7 @@ var RPNInput = __toESM(require("react-phone-number-input"));
5527
5527
  var import_flags = __toESM(require("react-phone-number-input/flags"));
5528
5528
  var import_jsx_runtime19 = require("react/jsx-runtime");
5529
5529
  function InternationalPhonePicker(param) {
5530
- var setPhoneValue = param.setPhoneValue, _param_phoneValue = param.phoneValue, phoneValue = _param_phoneValue === void 0 ? "" : _param_phoneValue, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_defaultCountry = param.defaultCountry, defaultCountry = _param_defaultCountry === void 0 ? "IL" : _param_defaultCountry, _param_flagContainerClassName = param.flagContainerClassName, flagContainerClassName = _param_flagContainerClassName === void 0 ? "" : _param_flagContainerClassName, _param_inputClassName = param.inputClassName, inputClassName = _param_inputClassName === void 0 ? "" : _param_inputClassName, defaultValue = param.defaultValue, name = param.name, style = param.style, onEnter = param.onEnter, labelContent = param.labelContent, labelClassName = param.labelClassName, required = param.required, direction = param.direction, _param_defaultFocus = param.defaultFocus, defaultFocus = _param_defaultFocus === void 0 ? true : _param_defaultFocus, labelsCommonClassName = param.labelsCommonClassName;
5530
+ var setPhoneValue = param.setPhoneValue, _param_phoneValue = param.phoneValue, phoneValue = _param_phoneValue === void 0 ? "" : _param_phoneValue, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_defaultCountry = param.defaultCountry, defaultCountry = _param_defaultCountry === void 0 ? "IL" : _param_defaultCountry, _param_flagContainerClassName = param.flagContainerClassName, flagContainerClassName = _param_flagContainerClassName === void 0 ? "" : _param_flagContainerClassName, _param_inputClassName = param.inputClassName, inputClassName = _param_inputClassName === void 0 ? "" : _param_inputClassName, defaultValue = param.defaultValue, name = param.name, style = param.style, onEnter = param.onEnter, labelContent = param.labelContent, labelClassName = param.labelClassName, required = param.required, direction = param.direction, _param_defaultFocus = param.defaultFocus, defaultFocus = _param_defaultFocus === void 0 ? true : _param_defaultFocus, labelsCommonClassName = param.labelsCommonClassName, minLength = param.minLength;
5531
5531
  var handleKeyDown = function(e) {
5532
5532
  if (e.key === "Enter") {
5533
5533
  if (onEnter) {
@@ -5622,6 +5622,7 @@ var PhoneInput = (0, import_react13.forwardRef)(function(_param, ref) {
5622
5622
  onKeyDown: onKeyDown,
5623
5623
  defaultValue: defaultValue,
5624
5624
  style: style,
5625
+ minLength: props.minLength,
5625
5626
  ref: function(el) {
5626
5627
  inputRef.current = el;
5627
5628
  if (typeof ref === "function") {
@@ -5981,6 +5982,7 @@ var TextAreaContainer = function(param) {
5981
5982
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
5982
5983
  children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("textarea", _object_spread_props(_object_spread({}, props), {
5983
5984
  onChange: onChange,
5985
+ dir: direction,
5984
5986
  minLength: minLength,
5985
5987
  placeholder: placeholder,
5986
5988
  className: cn("flex-1 bg-inherit min-h-16 max-h-52 overflow-auto px-2 py-1", defaultFormElementBorderClassName, elementClassName),
@@ -6275,7 +6277,7 @@ var ModularForm = function(param) {
6275
6277
  switch(element.type){
6276
6278
  case "input":
6277
6279
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InputContainer, _object_spread_props(_object_spread({
6278
- direction: element.direction || direction
6280
+ direction: direction
6279
6281
  }, element), {
6280
6282
  labelsCommonClassName: labelsCommonClassName
6281
6283
  }), index2);
@@ -6287,37 +6289,37 @@ var ModularForm = function(param) {
6287
6289
  }), index2);
6288
6290
  case "select":
6289
6291
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectContainer, _object_spread_props(_object_spread({
6290
- direction: element.direction || direction
6292
+ direction: direction
6291
6293
  }, element), {
6292
6294
  labelsCommonClassName: labelsCommonClassName
6293
6295
  }), index2);
6294
6296
  case "checkbox":
6295
6297
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CheckboxContainer, _object_spread_props(_object_spread({
6296
- direction: element.direction || direction
6298
+ direction: direction
6297
6299
  }, element), {
6298
6300
  labelsCommonClassName: labelsCommonClassName
6299
6301
  }), index2);
6300
6302
  case "multiSelect":
6301
6303
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(MultiSelect, _object_spread_props(_object_spread({
6302
- direction: element.direction || direction
6304
+ direction: direction
6303
6305
  }, element), {
6304
6306
  labelsCommonClassName: labelsCommonClassName
6305
6307
  }), index2);
6306
6308
  case "selectWithSearch":
6307
6309
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectWithSearch, _object_spread_props(_object_spread({
6308
- direction: element.direction || direction
6310
+ direction: direction
6309
6311
  }, element), {
6310
6312
  labelsCommonClassName: labelsCommonClassName
6311
6313
  }), index2);
6312
6314
  case "internationalPhoneInput":
6313
6315
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InternationalPhonePicker, _object_spread_props(_object_spread({
6314
- direction: element.direction || direction
6316
+ direction: direction
6315
6317
  }, element), {
6316
6318
  labelsCommonClassName: labelsCommonClassName
6317
6319
  }), index2);
6318
6320
  case "separator":
6319
6321
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FormSeparator, _object_spread_props(_object_spread({
6320
- direction: element.direction || direction
6322
+ direction: direction
6321
6323
  }, element), {
6322
6324
  children: element.children
6323
6325
  }), index2);
@@ -5311,7 +5311,7 @@ import * as RPNInput from "react-phone-number-input";
5311
5311
  import flags from "react-phone-number-input/flags";
5312
5312
  import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
5313
5313
  function InternationalPhonePicker(param) {
5314
- var setPhoneValue = param.setPhoneValue, _param_phoneValue = param.phoneValue, phoneValue = _param_phoneValue === void 0 ? "" : _param_phoneValue, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_defaultCountry = param.defaultCountry, defaultCountry = _param_defaultCountry === void 0 ? "IL" : _param_defaultCountry, _param_flagContainerClassName = param.flagContainerClassName, flagContainerClassName = _param_flagContainerClassName === void 0 ? "" : _param_flagContainerClassName, _param_inputClassName = param.inputClassName, inputClassName = _param_inputClassName === void 0 ? "" : _param_inputClassName, defaultValue = param.defaultValue, name = param.name, style = param.style, onEnter = param.onEnter, labelContent = param.labelContent, labelClassName = param.labelClassName, required = param.required, direction = param.direction, _param_defaultFocus = param.defaultFocus, defaultFocus = _param_defaultFocus === void 0 ? true : _param_defaultFocus, labelsCommonClassName = param.labelsCommonClassName;
5314
+ var setPhoneValue = param.setPhoneValue, _param_phoneValue = param.phoneValue, phoneValue = _param_phoneValue === void 0 ? "" : _param_phoneValue, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_defaultCountry = param.defaultCountry, defaultCountry = _param_defaultCountry === void 0 ? "IL" : _param_defaultCountry, _param_flagContainerClassName = param.flagContainerClassName, flagContainerClassName = _param_flagContainerClassName === void 0 ? "" : _param_flagContainerClassName, _param_inputClassName = param.inputClassName, inputClassName = _param_inputClassName === void 0 ? "" : _param_inputClassName, defaultValue = param.defaultValue, name = param.name, style = param.style, onEnter = param.onEnter, labelContent = param.labelContent, labelClassName = param.labelClassName, required = param.required, direction = param.direction, _param_defaultFocus = param.defaultFocus, defaultFocus = _param_defaultFocus === void 0 ? true : _param_defaultFocus, labelsCommonClassName = param.labelsCommonClassName, minLength = param.minLength;
5315
5315
  var handleKeyDown = function(e) {
5316
5316
  if (e.key === "Enter") {
5317
5317
  if (onEnter) {
@@ -5406,6 +5406,7 @@ var PhoneInput = forwardRef7(function(_param, ref) {
5406
5406
  onKeyDown: onKeyDown,
5407
5407
  defaultValue: defaultValue,
5408
5408
  style: style,
5409
+ minLength: props.minLength,
5409
5410
  ref: function(el) {
5410
5411
  inputRef.current = el;
5411
5412
  if (typeof ref === "function") {
@@ -5765,6 +5766,7 @@ var TextAreaContainer = function(param) {
5765
5766
  return /* @__PURE__ */ jsx19(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
5766
5767
  children: /* @__PURE__ */ jsx19("textarea", _object_spread_props(_object_spread({}, props), {
5767
5768
  onChange: onChange,
5769
+ dir: direction,
5768
5770
  minLength: minLength,
5769
5771
  placeholder: placeholder,
5770
5772
  className: cn("flex-1 bg-inherit min-h-16 max-h-52 overflow-auto px-2 py-1", defaultFormElementBorderClassName, elementClassName),
@@ -6059,7 +6061,7 @@ var ModularForm = function(param) {
6059
6061
  switch(element.type){
6060
6062
  case "input":
6061
6063
  return /* @__PURE__ */ jsx20(InputContainer, _object_spread_props(_object_spread({
6062
- direction: element.direction || direction
6064
+ direction: direction
6063
6065
  }, element), {
6064
6066
  labelsCommonClassName: labelsCommonClassName
6065
6067
  }), index2);
@@ -6071,37 +6073,37 @@ var ModularForm = function(param) {
6071
6073
  }), index2);
6072
6074
  case "select":
6073
6075
  return /* @__PURE__ */ jsx20(SelectContainer, _object_spread_props(_object_spread({
6074
- direction: element.direction || direction
6076
+ direction: direction
6075
6077
  }, element), {
6076
6078
  labelsCommonClassName: labelsCommonClassName
6077
6079
  }), index2);
6078
6080
  case "checkbox":
6079
6081
  return /* @__PURE__ */ jsx20(CheckboxContainer, _object_spread_props(_object_spread({
6080
- direction: element.direction || direction
6082
+ direction: direction
6081
6083
  }, element), {
6082
6084
  labelsCommonClassName: labelsCommonClassName
6083
6085
  }), index2);
6084
6086
  case "multiSelect":
6085
6087
  return /* @__PURE__ */ jsx20(MultiSelect, _object_spread_props(_object_spread({
6086
- direction: element.direction || direction
6088
+ direction: direction
6087
6089
  }, element), {
6088
6090
  labelsCommonClassName: labelsCommonClassName
6089
6091
  }), index2);
6090
6092
  case "selectWithSearch":
6091
6093
  return /* @__PURE__ */ jsx20(SelectWithSearch, _object_spread_props(_object_spread({
6092
- direction: element.direction || direction
6094
+ direction: direction
6093
6095
  }, element), {
6094
6096
  labelsCommonClassName: labelsCommonClassName
6095
6097
  }), index2);
6096
6098
  case "internationalPhoneInput":
6097
6099
  return /* @__PURE__ */ jsx20(InternationalPhonePicker, _object_spread_props(_object_spread({
6098
- direction: element.direction || direction
6100
+ direction: direction
6099
6101
  }, element), {
6100
6102
  labelsCommonClassName: labelsCommonClassName
6101
6103
  }), index2);
6102
6104
  case "separator":
6103
6105
  return /* @__PURE__ */ jsx20(FormSeparator, _object_spread_props(_object_spread({
6104
- direction: element.direction || direction
6106
+ direction: direction
6105
6107
  }, element), {
6106
6108
  children: element.children
6107
6109
  }), index2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.0.168",
3
+ "version": "1.0.170",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",