akeyless-client-commons 1.0.132 → 1.0.133

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.
@@ -9,7 +9,6 @@ import { VariantProps } from 'class-variance-authority';
9
9
  import * as ProgressPrimitive from '@radix-ui/react-progress';
10
10
 
11
11
  interface CheckBoxProps {
12
- id: string;
13
12
  rotate?: boolean;
14
13
  circleClassName?: string;
15
14
  containerClassName?: string;
@@ -18,9 +17,11 @@ interface CheckBoxProps {
18
17
  checked?: boolean;
19
18
  className?: string;
20
19
  name?: string;
20
+ id?: string;
21
21
  props?: ComponentProps<"label">;
22
+ title?: string;
22
23
  }
23
- declare const Checkbox: ({ id, checked, setChecked, rotate, className, circleClassName, containerClassName, elementClassName, name, props, }: CheckBoxProps) => react_jsx_runtime.JSX.Element;
24
+ declare const Checkbox: ({ id, checked, setChecked, rotate, className, circleClassName, containerClassName, elementClassName, name, props, title }: CheckBoxProps) => react_jsx_runtime.JSX.Element;
24
25
 
25
26
  interface ErrorBoundaryProps {
26
27
  fallback?: React__default.ReactNode;
@@ -186,6 +187,10 @@ interface BaseElementProps {
186
187
  validationError?: string;
187
188
  direction?: Direction;
188
189
  labelsCommonClassName?: string;
190
+ title?: string;
191
+ }
192
+ interface CheckboxContainerProps extends Omit<BaseElementProps, "minLength" | "validationError">, CheckBoxProps {
193
+ type?: "checkbox";
189
194
  }
190
195
  interface InputElement extends BaseElementProps {
191
196
  type: "input";
@@ -301,7 +306,7 @@ interface SelectContainerProps extends Partial<SelectElement> {
301
306
  }
302
307
  interface TextAreaContainerProps extends Partial<TextAreaElement> {
303
308
  }
304
- type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps;
309
+ type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps | CheckboxContainerProps;
305
310
  interface ModularFormProps {
306
311
  submitFunction: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
307
312
  elements: FormElement[];
@@ -546,12 +551,17 @@ declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placehold
546
551
  declare const defaultFormElementContainerClassName = "flex justify-start items-center gap-3 w-full";
547
552
  declare const defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
548
553
  declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
549
- declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
550
- declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, selectClassName, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, labelWithDots, iconClassName, labelsCommonClassName, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
554
+ declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, title, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
555
+ declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, selectClassName, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, labelWithDots, iconClassName, labelsCommonClassName, title, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
551
556
  declare function MultiSelect({ onChange, selectedOptions, emptyOptionsElement, unremovableOptions, options, styles, name, placeholder, labelContent, required, labelClassName, groupBy, onSearch, onSearchSync, triggerSearchOnFocus, sortDirection, sortAsNumber, direction, createNewOptionLabel, searchInputProps, labelWithDots, labelsCommonClassName, }: MultiSelectProps): react_jsx_runtime.JSX.Element;
552
557
  declare const SelectWithSearch: ({ options, labelClassName, labelContent, name, onChange, value, placeholder, required, defaultValue, notFoundLabel, searchPlaceholder, containerClassName, dropdownClassName, dropdownOptionClassName, elementClassName, notFoundLabelClassName, searchClassName, buttonClassName, buttonFocusClassName, sortDirection, sortAsNumber, disabled, direction, createNewOptionLabel, createNewOptionContainerClassName, labelWithDots, labelsCommonClassName, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
553
558
  declare const TextAreaContainer: ({ name, labelContent, defaultValue, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, labelWithDots, labelsCommonClassName, }: TextAreaContainerProps) => react_jsx_runtime.JSX.Element;
554
559
  declare const FormSeparator: ({ props, children }: FormSeparatorProps) => react_jsx_runtime.JSX.Element;
560
+ declare const CheckboxContainer: ({ id, checked, setChecked, circleClassName, className, containerClassName, elementClassName, name, direction, labelClassName, labelContent, labelWithDots, labelsCommonClassName, props, rotate, title, required, }: CheckboxContainerProps) => react_jsx_runtime.JSX.Element;
561
+ declare const FormElementContainer: ({ containerClassName, direction, labelClassName, labelContent, labelWithDots, labelsCommonClassName, name, required, children, defaultContainerClassName, }: BaseElementProps & {
562
+ children: ReactNode;
563
+ defaultContainerClassName?: boolean;
564
+ }) => react_jsx_runtime.JSX.Element;
555
565
  declare const ElementLabel: ({ labelContent, labelClassName, name, required, withDots, direction, labelsCommonClassName, }: Omit<BaseElementProps, "containerClassName" | "elementClassName"> & {
556
566
  withDots?: boolean;
557
567
  }) => react_jsx_runtime.JSX.Element;
@@ -568,4 +578,4 @@ interface CodeInputProps {
568
578
  }
569
579
  declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName, direction }: CodeInputProps): react_jsx_runtime.JSX.Element;
570
580
 
571
- export { Badge, type BadgeProps, BooleanUi, Button, Checkbox, CodeInput, ConfirmForm, DatePicker, DisplayAllRowsButton, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, type LoaderProps, LoginWithGoogleButton, type LoginWithGoogleCallback, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
581
+ export { Badge, type BadgeProps, BooleanUi, Button, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DisplayAllRowsButton, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, type LoaderProps, LoginWithGoogleButton, type LoginWithGoogleCallback, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
@@ -9,7 +9,6 @@ import { VariantProps } from 'class-variance-authority';
9
9
  import * as ProgressPrimitive from '@radix-ui/react-progress';
10
10
 
11
11
  interface CheckBoxProps {
12
- id: string;
13
12
  rotate?: boolean;
14
13
  circleClassName?: string;
15
14
  containerClassName?: string;
@@ -18,9 +17,11 @@ interface CheckBoxProps {
18
17
  checked?: boolean;
19
18
  className?: string;
20
19
  name?: string;
20
+ id?: string;
21
21
  props?: ComponentProps<"label">;
22
+ title?: string;
22
23
  }
23
- declare const Checkbox: ({ id, checked, setChecked, rotate, className, circleClassName, containerClassName, elementClassName, name, props, }: CheckBoxProps) => react_jsx_runtime.JSX.Element;
24
+ declare const Checkbox: ({ id, checked, setChecked, rotate, className, circleClassName, containerClassName, elementClassName, name, props, title }: CheckBoxProps) => react_jsx_runtime.JSX.Element;
24
25
 
25
26
  interface ErrorBoundaryProps {
26
27
  fallback?: React__default.ReactNode;
@@ -186,6 +187,10 @@ interface BaseElementProps {
186
187
  validationError?: string;
187
188
  direction?: Direction;
188
189
  labelsCommonClassName?: string;
190
+ title?: string;
191
+ }
192
+ interface CheckboxContainerProps extends Omit<BaseElementProps, "minLength" | "validationError">, CheckBoxProps {
193
+ type?: "checkbox";
189
194
  }
190
195
  interface InputElement extends BaseElementProps {
191
196
  type: "input";
@@ -301,7 +306,7 @@ interface SelectContainerProps extends Partial<SelectElement> {
301
306
  }
302
307
  interface TextAreaContainerProps extends Partial<TextAreaElement> {
303
308
  }
304
- type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps;
309
+ type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps | CheckboxContainerProps;
305
310
  interface ModularFormProps {
306
311
  submitFunction: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
307
312
  elements: FormElement[];
@@ -546,12 +551,17 @@ declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placehold
546
551
  declare const defaultFormElementContainerClassName = "flex justify-start items-center gap-3 w-full";
547
552
  declare const defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
548
553
  declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
549
- declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
550
- declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, selectClassName, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, labelWithDots, iconClassName, labelsCommonClassName, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
554
+ declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, title, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
555
+ declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, selectClassName, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, labelWithDots, iconClassName, labelsCommonClassName, title, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
551
556
  declare function MultiSelect({ onChange, selectedOptions, emptyOptionsElement, unremovableOptions, options, styles, name, placeholder, labelContent, required, labelClassName, groupBy, onSearch, onSearchSync, triggerSearchOnFocus, sortDirection, sortAsNumber, direction, createNewOptionLabel, searchInputProps, labelWithDots, labelsCommonClassName, }: MultiSelectProps): react_jsx_runtime.JSX.Element;
552
557
  declare const SelectWithSearch: ({ options, labelClassName, labelContent, name, onChange, value, placeholder, required, defaultValue, notFoundLabel, searchPlaceholder, containerClassName, dropdownClassName, dropdownOptionClassName, elementClassName, notFoundLabelClassName, searchClassName, buttonClassName, buttonFocusClassName, sortDirection, sortAsNumber, disabled, direction, createNewOptionLabel, createNewOptionContainerClassName, labelWithDots, labelsCommonClassName, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
553
558
  declare const TextAreaContainer: ({ name, labelContent, defaultValue, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, labelWithDots, labelsCommonClassName, }: TextAreaContainerProps) => react_jsx_runtime.JSX.Element;
554
559
  declare const FormSeparator: ({ props, children }: FormSeparatorProps) => react_jsx_runtime.JSX.Element;
560
+ declare const CheckboxContainer: ({ id, checked, setChecked, circleClassName, className, containerClassName, elementClassName, name, direction, labelClassName, labelContent, labelWithDots, labelsCommonClassName, props, rotate, title, required, }: CheckboxContainerProps) => react_jsx_runtime.JSX.Element;
561
+ declare const FormElementContainer: ({ containerClassName, direction, labelClassName, labelContent, labelWithDots, labelsCommonClassName, name, required, children, defaultContainerClassName, }: BaseElementProps & {
562
+ children: ReactNode;
563
+ defaultContainerClassName?: boolean;
564
+ }) => react_jsx_runtime.JSX.Element;
555
565
  declare const ElementLabel: ({ labelContent, labelClassName, name, required, withDots, direction, labelsCommonClassName, }: Omit<BaseElementProps, "containerClassName" | "elementClassName"> & {
556
566
  withDots?: boolean;
557
567
  }) => react_jsx_runtime.JSX.Element;
@@ -568,4 +578,4 @@ interface CodeInputProps {
568
578
  }
569
579
  declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName, direction }: CodeInputProps): react_jsx_runtime.JSX.Element;
570
580
 
571
- export { Badge, type BadgeProps, BooleanUi, Button, Checkbox, CodeInput, ConfirmForm, DatePicker, DisplayAllRowsButton, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, type LoaderProps, LoginWithGoogleButton, type LoginWithGoogleCallback, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
581
+ export { Badge, type BadgeProps, BooleanUi, Button, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DisplayAllRowsButton, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, type LoaderProps, LoginWithGoogleButton, type LoginWithGoogleCallback, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };