akeyless-client-commons 1.0.56 → 1.0.57
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,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { MouseEvent, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import React__default, { MouseEvent, DetailedHTMLProps, ButtonHTMLAttributes, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
4
4
|
import { User } from 'firebase/auth';
|
|
5
5
|
import { TObject, Geo } from 'akeyless-types-commons';
|
|
6
6
|
import { Command as Command$1 } from 'cmdk';
|
|
@@ -60,8 +60,9 @@ interface LoginWithGoogleButtonProps {
|
|
|
60
60
|
loaderProps?: LoaderProps;
|
|
61
61
|
googleSvgProps?: GoogleSvgProps;
|
|
62
62
|
onError?: (error: any) => void;
|
|
63
|
+
buttonProps?: DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
63
64
|
}
|
|
64
|
-
declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, onError, loaderProps, googleSvgProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
65
|
+
declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, onError, loaderProps, googleSvgProps, buttonProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
65
66
|
|
|
66
67
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
67
68
|
children?: React$1.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { MouseEvent, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import React__default, { MouseEvent, DetailedHTMLProps, ButtonHTMLAttributes, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
4
4
|
import { User } from 'firebase/auth';
|
|
5
5
|
import { TObject, Geo } from 'akeyless-types-commons';
|
|
6
6
|
import { Command as Command$1 } from 'cmdk';
|
|
@@ -60,8 +60,9 @@ interface LoginWithGoogleButtonProps {
|
|
|
60
60
|
loaderProps?: LoaderProps;
|
|
61
61
|
googleSvgProps?: GoogleSvgProps;
|
|
62
62
|
onError?: (error: any) => void;
|
|
63
|
+
buttonProps?: DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
63
64
|
}
|
|
64
|
-
declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, onError, loaderProps, googleSvgProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
65
|
+
declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, onError, loaderProps, googleSvgProps, buttonProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
65
66
|
|
|
66
67
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
67
68
|
children?: React$1.ReactNode;
|
package/dist/components/index.js
CHANGED
|
@@ -960,7 +960,7 @@ var GoogleSvg = function(param) {
|
|
|
960
960
|
var LoginWithGoogleButton = function(param) {
|
|
961
961
|
var label = param.label, className = param.className, containerClassName = param.containerClassName, onClick = param.onClick, onError = param.onError, _param_loaderProps = param.loaderProps, loaderProps = _param_loaderProps === void 0 ? {
|
|
962
962
|
color: "#000"
|
|
963
|
-
} : _param_loaderProps, googleSvgProps = param.googleSvgProps;
|
|
963
|
+
} : _param_loaderProps, googleSvgProps = param.googleSvgProps, buttonProps = param.buttonProps;
|
|
964
964
|
var signInWithGoogle = useLoginWithGoogle();
|
|
965
965
|
var _ref = _sliced_to_array((0, import_react3.useState)(false), 2), isLoading = _ref[0], setIsLoading = _ref[1];
|
|
966
966
|
var onLoginClick = /*#__PURE__*/ function() {
|
|
@@ -1018,7 +1018,7 @@ var LoginWithGoogleButton = function(param) {
|
|
|
1018
1018
|
}();
|
|
1019
1019
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
|
|
1020
1020
|
className: cn("flex justify-center", containerClassName),
|
|
1021
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("button", {
|
|
1021
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("button", _object_spread_props(_object_spread({}, buttonProps), {
|
|
1022
1022
|
className: cn("flex justify-center items-center gap-2 py-2 w-full", "shadow-sm hover:border-[#303edb] border-[1px] rounded-lg text-lg", className),
|
|
1023
1023
|
onClick: function(e) {
|
|
1024
1024
|
return onLoginClick(e);
|
|
@@ -1028,7 +1028,7 @@ var LoginWithGoogleButton = function(param) {
|
|
|
1028
1028
|
label,
|
|
1029
1029
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Loader, _object_spread({}, loaderProps)) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(GoogleSvg, _object_spread({}, googleSvgProps))
|
|
1030
1030
|
]
|
|
1031
|
-
})
|
|
1031
|
+
}))
|
|
1032
1032
|
});
|
|
1033
1033
|
};
|
|
1034
1034
|
// src/components/table/components.tsx
|
|
@@ -762,7 +762,7 @@ var GoogleSvg = function(param) {
|
|
|
762
762
|
var LoginWithGoogleButton = function(param) {
|
|
763
763
|
var label = param.label, className = param.className, containerClassName = param.containerClassName, onClick = param.onClick, onError = param.onError, _param_loaderProps = param.loaderProps, loaderProps = _param_loaderProps === void 0 ? {
|
|
764
764
|
color: "#000"
|
|
765
|
-
} : _param_loaderProps, googleSvgProps = param.googleSvgProps;
|
|
765
|
+
} : _param_loaderProps, googleSvgProps = param.googleSvgProps, buttonProps = param.buttonProps;
|
|
766
766
|
var signInWithGoogle = useLoginWithGoogle();
|
|
767
767
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
768
768
|
var onLoginClick = /*#__PURE__*/ function() {
|
|
@@ -820,7 +820,7 @@ var LoginWithGoogleButton = function(param) {
|
|
|
820
820
|
}();
|
|
821
821
|
return /* @__PURE__ */ jsx4("div", {
|
|
822
822
|
className: cn("flex justify-center", containerClassName),
|
|
823
|
-
children: /* @__PURE__ */ jsxs3("button", {
|
|
823
|
+
children: /* @__PURE__ */ jsxs3("button", _object_spread_props(_object_spread({}, buttonProps), {
|
|
824
824
|
className: cn("flex justify-center items-center gap-2 py-2 w-full", "shadow-sm hover:border-[#303edb] border-[1px] rounded-lg text-lg", className),
|
|
825
825
|
onClick: function(e) {
|
|
826
826
|
return onLoginClick(e);
|
|
@@ -830,7 +830,7 @@ var LoginWithGoogleButton = function(param) {
|
|
|
830
830
|
label,
|
|
831
831
|
isLoading ? /* @__PURE__ */ jsx4(Loader, _object_spread({}, loaderProps)) : /* @__PURE__ */ jsx4(GoogleSvg, _object_spread({}, googleSvgProps))
|
|
832
832
|
]
|
|
833
|
-
})
|
|
833
|
+
}))
|
|
834
834
|
});
|
|
835
835
|
};
|
|
836
836
|
// src/components/table/components.tsx
|