akeyless-client-commons 1.0.131 → 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.
- package/dist/components/index.d.mts +17 -6
- package/dist/components/index.d.ts +17 -6
- package/dist/components/index.js +306 -185
- package/dist/components/index.mjs +299 -186
- package/dist/types/index.d.mts +20 -2
- package/dist/types/index.d.ts +20 -2
- package/package.json +1 -1
|
@@ -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,8 +17,11 @@ interface CheckBoxProps {
|
|
|
18
17
|
checked?: boolean;
|
|
19
18
|
className?: string;
|
|
20
19
|
name?: string;
|
|
20
|
+
id?: string;
|
|
21
|
+
props?: ComponentProps<"label">;
|
|
22
|
+
title?: string;
|
|
21
23
|
}
|
|
22
|
-
declare const Checkbox: ({ id, checked, setChecked, rotate, className, circleClassName, containerClassName, elementClassName, name, }: 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;
|
|
23
25
|
|
|
24
26
|
interface ErrorBoundaryProps {
|
|
25
27
|
fallback?: React__default.ReactNode;
|
|
@@ -185,6 +187,10 @@ interface BaseElementProps {
|
|
|
185
187
|
validationError?: string;
|
|
186
188
|
direction?: Direction;
|
|
187
189
|
labelsCommonClassName?: string;
|
|
190
|
+
title?: string;
|
|
191
|
+
}
|
|
192
|
+
interface CheckboxContainerProps extends Omit<BaseElementProps, "minLength" | "validationError">, CheckBoxProps {
|
|
193
|
+
type?: "checkbox";
|
|
188
194
|
}
|
|
189
195
|
interface InputElement extends BaseElementProps {
|
|
190
196
|
type: "input";
|
|
@@ -300,7 +306,7 @@ interface SelectContainerProps extends Partial<SelectElement> {
|
|
|
300
306
|
}
|
|
301
307
|
interface TextAreaContainerProps extends Partial<TextAreaElement> {
|
|
302
308
|
}
|
|
303
|
-
type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps;
|
|
309
|
+
type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps | CheckboxContainerProps;
|
|
304
310
|
interface ModularFormProps {
|
|
305
311
|
submitFunction: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
|
|
306
312
|
elements: FormElement[];
|
|
@@ -545,12 +551,17 @@ declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placehold
|
|
|
545
551
|
declare const defaultFormElementContainerClassName = "flex justify-start items-center gap-3 w-full";
|
|
546
552
|
declare const defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
|
|
547
553
|
declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
|
|
548
|
-
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;
|
|
549
|
-
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;
|
|
550
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;
|
|
551
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;
|
|
552
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;
|
|
553
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;
|
|
554
565
|
declare const ElementLabel: ({ labelContent, labelClassName, name, required, withDots, direction, labelsCommonClassName, }: Omit<BaseElementProps, "containerClassName" | "elementClassName"> & {
|
|
555
566
|
withDots?: boolean;
|
|
556
567
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -567,4 +578,4 @@ interface CodeInputProps {
|
|
|
567
578
|
}
|
|
568
579
|
declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName, direction }: CodeInputProps): react_jsx_runtime.JSX.Element;
|
|
569
580
|
|
|
570
|
-
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,8 +17,11 @@ interface CheckBoxProps {
|
|
|
18
17
|
checked?: boolean;
|
|
19
18
|
className?: string;
|
|
20
19
|
name?: string;
|
|
20
|
+
id?: string;
|
|
21
|
+
props?: ComponentProps<"label">;
|
|
22
|
+
title?: string;
|
|
21
23
|
}
|
|
22
|
-
declare const Checkbox: ({ id, checked, setChecked, rotate, className, circleClassName, containerClassName, elementClassName, name, }: 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;
|
|
23
25
|
|
|
24
26
|
interface ErrorBoundaryProps {
|
|
25
27
|
fallback?: React__default.ReactNode;
|
|
@@ -185,6 +187,10 @@ interface BaseElementProps {
|
|
|
185
187
|
validationError?: string;
|
|
186
188
|
direction?: Direction;
|
|
187
189
|
labelsCommonClassName?: string;
|
|
190
|
+
title?: string;
|
|
191
|
+
}
|
|
192
|
+
interface CheckboxContainerProps extends Omit<BaseElementProps, "minLength" | "validationError">, CheckBoxProps {
|
|
193
|
+
type?: "checkbox";
|
|
188
194
|
}
|
|
189
195
|
interface InputElement extends BaseElementProps {
|
|
190
196
|
type: "input";
|
|
@@ -300,7 +306,7 @@ interface SelectContainerProps extends Partial<SelectElement> {
|
|
|
300
306
|
}
|
|
301
307
|
interface TextAreaContainerProps extends Partial<TextAreaElement> {
|
|
302
308
|
}
|
|
303
|
-
type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps;
|
|
309
|
+
type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps | CheckboxContainerProps;
|
|
304
310
|
interface ModularFormProps {
|
|
305
311
|
submitFunction: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
|
|
306
312
|
elements: FormElement[];
|
|
@@ -545,12 +551,17 @@ declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placehold
|
|
|
545
551
|
declare const defaultFormElementContainerClassName = "flex justify-start items-center gap-3 w-full";
|
|
546
552
|
declare const defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
|
|
547
553
|
declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
|
|
548
|
-
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;
|
|
549
|
-
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;
|
|
550
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;
|
|
551
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;
|
|
552
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;
|
|
553
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;
|
|
554
565
|
declare const ElementLabel: ({ labelContent, labelClassName, name, required, withDots, direction, labelsCommonClassName, }: Omit<BaseElementProps, "containerClassName" | "elementClassName"> & {
|
|
555
566
|
withDots?: boolean;
|
|
556
567
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -567,4 +578,4 @@ interface CodeInputProps {
|
|
|
567
578
|
}
|
|
568
579
|
declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName, direction }: CodeInputProps): react_jsx_runtime.JSX.Element;
|
|
569
580
|
|
|
570
|
-
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 };
|