akeyless-client-commons 1.1.94 → 1.1.96
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 +18 -2
- package/dist/components/index.d.ts +18 -2
- package/dist/components/index.js +248 -129
- package/dist/components/index.mjs +234 -119
- package/dist/types/index.d.mts +17 -2
- package/dist/types/index.d.ts +17 -2
- package/package.json +1 -1
|
@@ -202,6 +202,19 @@ interface InputElement extends BaseElementProps {
|
|
|
202
202
|
placeholder?: string;
|
|
203
203
|
props?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
204
204
|
}
|
|
205
|
+
interface DateInputElement extends BaseElementProps {
|
|
206
|
+
type: "dateInput";
|
|
207
|
+
defaultValue?: string;
|
|
208
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
209
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
210
|
+
value?: string;
|
|
211
|
+
placeholder?: string;
|
|
212
|
+
props?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
213
|
+
calendarIconClassName?: string;
|
|
214
|
+
container1ClassName?: string;
|
|
215
|
+
container2ClassName?: string;
|
|
216
|
+
inputClassName?: string;
|
|
217
|
+
}
|
|
205
218
|
interface TextAreaElement extends BaseElementProps {
|
|
206
219
|
type: "textarea";
|
|
207
220
|
defaultValue?: string;
|
|
@@ -306,6 +319,8 @@ interface FormSeparatorProps {
|
|
|
306
319
|
}
|
|
307
320
|
interface InputContainerProps extends Partial<InputElement> {
|
|
308
321
|
}
|
|
322
|
+
interface DateInputContainerProps extends Partial<DateInputElement> {
|
|
323
|
+
}
|
|
309
324
|
interface SelectContainerProps extends Partial<SelectElement> {
|
|
310
325
|
}
|
|
311
326
|
interface TextAreaContainerProps extends Partial<TextAreaElement> {
|
|
@@ -324,7 +339,7 @@ interface DurationInputProps extends BaseElementProps {
|
|
|
324
339
|
hideLabels?: boolean;
|
|
325
340
|
options?: DurationInputOption[];
|
|
326
341
|
}
|
|
327
|
-
type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps | CheckboxContainerProps | DurationInputProps;
|
|
342
|
+
type FormElement = InputElement | DateInputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps | CheckboxContainerProps | DurationInputProps;
|
|
328
343
|
interface ModularFormProps {
|
|
329
344
|
submitFunction: (form: React.FormEvent<HTMLFormElement>, clickEvent?: MouseEvent) => Promise<void>;
|
|
330
345
|
elements: FormElement[];
|
|
@@ -604,6 +619,7 @@ declare const defaultFormElementContainerClassName = "flex justify-start items-c
|
|
|
604
619
|
declare const defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
|
|
605
620
|
declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
|
|
606
621
|
declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, elementsCommonClassName, title, labelStyle, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
|
|
622
|
+
declare const DateInputContainer: ({ name, labelContent, defaultValue, containerClassName, labelClassName, elementClassName, required, placeholder, props, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, elementsCommonClassName, title, labelStyle, calendarIconClassName, container1ClassName, container2ClassName, inputClassName, }: DateInputContainerProps) => react_jsx_runtime.JSX.Element;
|
|
607
623
|
declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, selectClassName, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, labelWithDots, iconClassName, labelsCommonClassName, elementsCommonClassName, title, labelStyle, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
|
|
608
624
|
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, labelStyle, closeDropdownOnSelect, elementsCommonClassName, }: MultiSelectProps): react_jsx_runtime.JSX.Element;
|
|
609
625
|
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, elementsCommonClassName, labelStyle, dropdownContainerClassName, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -642,4 +658,4 @@ interface CodeInputProps {
|
|
|
642
658
|
}
|
|
643
659
|
declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName, direction }: CodeInputProps): react_jsx_runtime.JSX.Element;
|
|
644
660
|
|
|
645
|
-
export { Badge, type BadgeProps, BooleanUi, Button, type ButtonProps, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DatePicker2, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, type ElementsContainerProps, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, 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 };
|
|
661
|
+
export { Badge, type BadgeProps, BooleanUi, Button, type ButtonProps, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DateInputContainer, DatePicker, DatePicker2, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, type ElementsContainerProps, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, 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 };
|
|
@@ -202,6 +202,19 @@ interface InputElement extends BaseElementProps {
|
|
|
202
202
|
placeholder?: string;
|
|
203
203
|
props?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
204
204
|
}
|
|
205
|
+
interface DateInputElement extends BaseElementProps {
|
|
206
|
+
type: "dateInput";
|
|
207
|
+
defaultValue?: string;
|
|
208
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
209
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
210
|
+
value?: string;
|
|
211
|
+
placeholder?: string;
|
|
212
|
+
props?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
213
|
+
calendarIconClassName?: string;
|
|
214
|
+
container1ClassName?: string;
|
|
215
|
+
container2ClassName?: string;
|
|
216
|
+
inputClassName?: string;
|
|
217
|
+
}
|
|
205
218
|
interface TextAreaElement extends BaseElementProps {
|
|
206
219
|
type: "textarea";
|
|
207
220
|
defaultValue?: string;
|
|
@@ -306,6 +319,8 @@ interface FormSeparatorProps {
|
|
|
306
319
|
}
|
|
307
320
|
interface InputContainerProps extends Partial<InputElement> {
|
|
308
321
|
}
|
|
322
|
+
interface DateInputContainerProps extends Partial<DateInputElement> {
|
|
323
|
+
}
|
|
309
324
|
interface SelectContainerProps extends Partial<SelectElement> {
|
|
310
325
|
}
|
|
311
326
|
interface TextAreaContainerProps extends Partial<TextAreaElement> {
|
|
@@ -324,7 +339,7 @@ interface DurationInputProps extends BaseElementProps {
|
|
|
324
339
|
hideLabels?: boolean;
|
|
325
340
|
options?: DurationInputOption[];
|
|
326
341
|
}
|
|
327
|
-
type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps | CheckboxContainerProps | DurationInputProps;
|
|
342
|
+
type FormElement = InputElement | DateInputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps | FormSeparatorProps | CheckboxContainerProps | DurationInputProps;
|
|
328
343
|
interface ModularFormProps {
|
|
329
344
|
submitFunction: (form: React.FormEvent<HTMLFormElement>, clickEvent?: MouseEvent) => Promise<void>;
|
|
330
345
|
elements: FormElement[];
|
|
@@ -604,6 +619,7 @@ declare const defaultFormElementContainerClassName = "flex justify-start items-c
|
|
|
604
619
|
declare const defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
|
|
605
620
|
declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
|
|
606
621
|
declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, elementsCommonClassName, title, labelStyle, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
|
|
622
|
+
declare const DateInputContainer: ({ name, labelContent, defaultValue, containerClassName, labelClassName, elementClassName, required, placeholder, props, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, elementsCommonClassName, title, labelStyle, calendarIconClassName, container1ClassName, container2ClassName, inputClassName, }: DateInputContainerProps) => react_jsx_runtime.JSX.Element;
|
|
607
623
|
declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, selectClassName, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, labelWithDots, iconClassName, labelsCommonClassName, elementsCommonClassName, title, labelStyle, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
|
|
608
624
|
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, labelStyle, closeDropdownOnSelect, elementsCommonClassName, }: MultiSelectProps): react_jsx_runtime.JSX.Element;
|
|
609
625
|
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, elementsCommonClassName, labelStyle, dropdownContainerClassName, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -642,4 +658,4 @@ interface CodeInputProps {
|
|
|
642
658
|
}
|
|
643
659
|
declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName, direction }: CodeInputProps): react_jsx_runtime.JSX.Element;
|
|
644
660
|
|
|
645
|
-
export { Badge, type BadgeProps, BooleanUi, Button, type ButtonProps, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DatePicker2, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, type ElementsContainerProps, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, 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 };
|
|
661
|
+
export { Badge, type BadgeProps, BooleanUi, Button, type ButtonProps, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DateInputContainer, DatePicker, DatePicker2, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, type ElementsContainerProps, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, 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 };
|