akeyless-client-commons 1.0.71 → 1.0.72

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.
@@ -274,6 +274,7 @@ interface InternationalInputProps extends Omit<BaseElementProps, "elementClassNa
274
274
  defaultCountry?: RPNInput.Country;
275
275
  onEnter?: () => void;
276
276
  direction?: Direction;
277
+ defaultFocus?: boolean;
277
278
  }
278
279
  interface CustomElementProps extends BaseElementProps {
279
280
  type: "custom";
@@ -521,7 +522,7 @@ declare const Table: React__default.MemoExoticComponent<(props: TableProps) => r
521
522
 
522
523
  declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
523
524
 
524
- 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;
525
+ declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, defaultFocus, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
525
526
 
526
527
  declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
527
528
  declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
@@ -274,6 +274,7 @@ interface InternationalInputProps extends Omit<BaseElementProps, "elementClassNa
274
274
  defaultCountry?: RPNInput.Country;
275
275
  onEnter?: () => void;
276
276
  direction?: Direction;
277
+ defaultFocus?: boolean;
277
278
  }
278
279
  interface CustomElementProps extends BaseElementProps {
279
280
  type: "custom";
@@ -521,7 +522,7 @@ declare const Table: React__default.MemoExoticComponent<(props: TableProps) => r
521
522
 
522
523
  declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, footerClassName, errorClassName, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
523
524
 
524
- 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;
525
+ declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, defaultFocus, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
525
526
 
526
527
  declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
527
528
  declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
@@ -5376,7 +5376,7 @@ var RPNInput = __toESM(require("react-phone-number-input"));
5376
5376
  var import_flags = __toESM(require("react-phone-number-input/flags"));
5377
5377
  var import_jsx_runtime19 = require("react/jsx-runtime");
5378
5378
  function InternationalPhonePicker(param) {
5379
- 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;
5379
+ 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;
5380
5380
  var handleKeyDown = function(e) {
5381
5381
  if (e.key === "Enter") {
5382
5382
  if (onEnter) {
@@ -5431,7 +5431,8 @@ function InternationalPhonePicker(param) {
5431
5431
  className: cn("min-h-10", inputClassName),
5432
5432
  onKeyDown: handleKeyDown,
5433
5433
  defaultValue: defaultValue,
5434
- style: style
5434
+ style: style,
5435
+ defaultFocus: defaultFocus
5435
5436
  },
5436
5437
  placeholder: placeholder,
5437
5438
  value: tempPhoneValue || phoneValue,
@@ -5451,15 +5452,16 @@ function InternationalPhonePicker(param) {
5451
5452
  });
5452
5453
  }
5453
5454
  var PhoneInput = (0, import_react11.forwardRef)(function(_param, ref) {
5454
- var className = _param.className, onKeyDown = _param.onKeyDown, defaultValue = _param.defaultValue, style = _param.style, props = _object_without_properties(_param, [
5455
+ var className = _param.className, onKeyDown = _param.onKeyDown, defaultValue = _param.defaultValue, style = _param.style, defaultFocus = _param.defaultFocus, props = _object_without_properties(_param, [
5455
5456
  "className",
5456
5457
  "onKeyDown",
5457
5458
  "defaultValue",
5458
- "style"
5459
+ "style",
5460
+ "defaultFocus"
5459
5461
  ]);
5460
5462
  var inputRef = (0, import_react11.useRef)(null);
5461
5463
  (0, import_react11.useEffect)(function() {
5462
- if (inputRef.current) {
5464
+ if (inputRef.current && defaultFocus) {
5463
5465
  inputRef.current.focus();
5464
5466
  }
5465
5467
  }, []);
@@ -5175,7 +5175,7 @@ import * as RPNInput from "react-phone-number-input";
5175
5175
  import flags from "react-phone-number-input/flags";
5176
5176
  import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
5177
5177
  function InternationalPhonePicker(param) {
5178
- 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;
5178
+ 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;
5179
5179
  var handleKeyDown = function(e) {
5180
5180
  if (e.key === "Enter") {
5181
5181
  if (onEnter) {
@@ -5230,7 +5230,8 @@ function InternationalPhonePicker(param) {
5230
5230
  className: cn("min-h-10", inputClassName),
5231
5231
  onKeyDown: handleKeyDown,
5232
5232
  defaultValue: defaultValue,
5233
- style: style
5233
+ style: style,
5234
+ defaultFocus: defaultFocus
5234
5235
  },
5235
5236
  placeholder: placeholder,
5236
5237
  value: tempPhoneValue || phoneValue,
@@ -5250,15 +5251,16 @@ function InternationalPhonePicker(param) {
5250
5251
  });
5251
5252
  }
5252
5253
  var PhoneInput = forwardRef7(function(_param, ref) {
5253
- var className = _param.className, onKeyDown = _param.onKeyDown, defaultValue = _param.defaultValue, style = _param.style, props = _object_without_properties(_param, [
5254
+ var className = _param.className, onKeyDown = _param.onKeyDown, defaultValue = _param.defaultValue, style = _param.style, defaultFocus = _param.defaultFocus, props = _object_without_properties(_param, [
5254
5255
  "className",
5255
5256
  "onKeyDown",
5256
5257
  "defaultValue",
5257
- "style"
5258
+ "style",
5259
+ "defaultFocus"
5258
5260
  ]);
5259
5261
  var inputRef = useRef4(null);
5260
5262
  useEffect6(function() {
5261
- if (inputRef.current) {
5263
+ if (inputRef.current && defaultFocus) {
5262
5264
  inputRef.current.focus();
5263
5265
  }
5264
5266
  }, []);
@@ -222,6 +222,7 @@ interface InternationalInputProps extends Omit<BaseElementProps, "elementClassNa
222
222
  defaultCountry?: RPNInput.Country;
223
223
  onEnter?: () => void;
224
224
  direction?: Direction;
225
+ defaultFocus?: boolean;
225
226
  }
226
227
  interface CustomElementProps extends BaseElementProps {
227
228
  type: "custom";
@@ -222,6 +222,7 @@ interface InternationalInputProps extends Omit<BaseElementProps, "elementClassNa
222
222
  defaultCountry?: RPNInput.Country;
223
223
  onEnter?: () => void;
224
224
  direction?: Direction;
225
+ defaultFocus?: boolean;
225
226
  }
226
227
  interface CustomElementProps extends BaseElementProps {
227
228
  type: "custom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",