akeyless-client-commons 1.0.51 → 1.0.52

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.
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ReactNode, Dispatch, SetStateAction } from 'react';
3
+ import React__default, { MouseEvent, ReactNode, Dispatch, SetStateAction } from 'react';
4
+ import { User } from 'firebase/auth';
4
5
  import { TObject, Geo } from 'akeyless-types-commons';
5
6
  import { Command as Command$1 } from 'cmdk';
6
7
  import * as RPNInput from 'react-phone-number-input';
@@ -39,13 +40,28 @@ interface LoaderProps {
39
40
  style?: React__default.CSSProperties;
40
41
  className?: string;
41
42
  }
42
- declare const Loader: React__default.FC<LoaderProps>;
43
+ declare const Loader: ({ color, size, style, className }: LoaderProps) => react_jsx_runtime.JSX.Element;
43
44
 
44
45
  declare const Version: ({ version, className }: {
45
46
  version: string;
46
47
  className?: string;
47
48
  }) => react_jsx_runtime.JSX.Element;
48
49
 
50
+ interface GoogleSvgProps {
51
+ width?: string;
52
+ height?: string;
53
+ viewBox?: string;
54
+ }
55
+ interface LoginWithGoogleButtonProps {
56
+ label: string;
57
+ onClick: (e: MouseEvent<HTMLButtonElement>, user: User) => Promise<void>;
58
+ className?: string;
59
+ containerClassName?: string;
60
+ loaderProps?: LoaderProps;
61
+ googleSvgProps?: GoogleSvgProps;
62
+ }
63
+ declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, loaderProps, googleSvgProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
64
+
49
65
  declare const Command: React$1.ForwardRefExoticComponent<Omit<{
50
66
  children?: React$1.ReactNode;
51
67
  } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
@@ -123,11 +139,11 @@ declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_
123
139
 
124
140
  declare const buttonVariants: (props?: {
125
141
  variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost";
126
- size?: "default" | "icon" | "sm" | "lg";
142
+ size?: "default" | "sm" | "lg" | "icon";
127
143
  } & class_variance_authority_dist_types.ClassProp) => string;
128
144
  declare const Button: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: {
129
145
  variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost";
130
- size?: "default" | "icon" | "sm" | "lg";
146
+ size?: "default" | "sm" | "lg" | "icon";
131
147
  } & class_variance_authority_dist_types.ClassProp) => string> & {
132
148
  asChild?: boolean;
133
149
  }, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
@@ -518,4 +534,4 @@ interface CodeInputProps {
518
534
  }
519
535
  declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName }: CodeInputProps): react_jsx_runtime.JSX.Element;
520
536
 
521
- export { Badge, type BadgeProps, BooleanUi, Button, Checkbox, CodeInput, ConfirmForm, DatePicker, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, type LoaderProps, 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, getFixedNumber, useDebounce, useSortValues };
537
+ export { Badge, type BadgeProps, BooleanUi, Button, Checkbox, CodeInput, ConfirmForm, DatePicker, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, type LoaderProps, LoginWithGoogleButton, 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, getFixedNumber, useDebounce, useSortValues };
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ReactNode, Dispatch, SetStateAction } from 'react';
3
+ import React__default, { MouseEvent, ReactNode, Dispatch, SetStateAction } from 'react';
4
+ import { User } from 'firebase/auth';
4
5
  import { TObject, Geo } from 'akeyless-types-commons';
5
6
  import { Command as Command$1 } from 'cmdk';
6
7
  import * as RPNInput from 'react-phone-number-input';
@@ -39,13 +40,28 @@ interface LoaderProps {
39
40
  style?: React__default.CSSProperties;
40
41
  className?: string;
41
42
  }
42
- declare const Loader: React__default.FC<LoaderProps>;
43
+ declare const Loader: ({ color, size, style, className }: LoaderProps) => react_jsx_runtime.JSX.Element;
43
44
 
44
45
  declare const Version: ({ version, className }: {
45
46
  version: string;
46
47
  className?: string;
47
48
  }) => react_jsx_runtime.JSX.Element;
48
49
 
50
+ interface GoogleSvgProps {
51
+ width?: string;
52
+ height?: string;
53
+ viewBox?: string;
54
+ }
55
+ interface LoginWithGoogleButtonProps {
56
+ label: string;
57
+ onClick: (e: MouseEvent<HTMLButtonElement>, user: User) => Promise<void>;
58
+ className?: string;
59
+ containerClassName?: string;
60
+ loaderProps?: LoaderProps;
61
+ googleSvgProps?: GoogleSvgProps;
62
+ }
63
+ declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, loaderProps, googleSvgProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
64
+
49
65
  declare const Command: React$1.ForwardRefExoticComponent<Omit<{
50
66
  children?: React$1.ReactNode;
51
67
  } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
@@ -123,11 +139,11 @@ declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_
123
139
 
124
140
  declare const buttonVariants: (props?: {
125
141
  variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost";
126
- size?: "default" | "icon" | "sm" | "lg";
142
+ size?: "default" | "sm" | "lg" | "icon";
127
143
  } & class_variance_authority_dist_types.ClassProp) => string;
128
144
  declare const Button: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: {
129
145
  variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost";
130
- size?: "default" | "icon" | "sm" | "lg";
146
+ size?: "default" | "sm" | "lg" | "icon";
131
147
  } & class_variance_authority_dist_types.ClassProp) => string> & {
132
148
  asChild?: boolean;
133
149
  }, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
@@ -518,4 +534,4 @@ interface CodeInputProps {
518
534
  }
519
535
  declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName }: CodeInputProps): react_jsx_runtime.JSX.Element;
520
536
 
521
- export { Badge, type BadgeProps, BooleanUi, Button, Checkbox, CodeInput, ConfirmForm, DatePicker, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, type LoaderProps, 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, getFixedNumber, useDebounce, useSortValues };
537
+ export { Badge, type BadgeProps, BooleanUi, Button, Checkbox, CodeInput, ConfirmForm, DatePicker, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, type LoaderProps, LoginWithGoogleButton, 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, getFixedNumber, useDebounce, useSortValues };