@sikka/hawa 0.15.12-next → 0.15.14-next
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/index.js +48 -20
- package/dist/index.mjs +34 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -902,7 +902,7 @@ var ActionCard = function(props) {
|
|
|
902
902
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
|
903
903
|
stroke: "currentColor",
|
|
904
904
|
fill: "currentColor",
|
|
905
|
-
|
|
905
|
+
strokeWidth: "0",
|
|
906
906
|
viewBox: "0 0 24 24",
|
|
907
907
|
height: "1em",
|
|
908
908
|
width: "1em",
|
|
@@ -6313,7 +6313,7 @@ var Logos = {
|
|
|
6313
6313
|
return /* @__PURE__ */ import_react30.default.createElement("svg", _object_spread({
|
|
6314
6314
|
stroke: "currentColor",
|
|
6315
6315
|
fill: "none",
|
|
6316
|
-
|
|
6316
|
+
strokeWidth: "2",
|
|
6317
6317
|
viewBox: "0 0 24 24",
|
|
6318
6318
|
strokeLinecap: "round",
|
|
6319
6319
|
strokeLinejoin: "round",
|
|
@@ -6330,7 +6330,7 @@ var Logos = {
|
|
|
6330
6330
|
return /* @__PURE__ */ import_react30.default.createElement("svg", _object_spread({
|
|
6331
6331
|
stroke: "currentColor",
|
|
6332
6332
|
fill: "none",
|
|
6333
|
-
|
|
6333
|
+
strokeWidth: "2",
|
|
6334
6334
|
viewBox: "0 0 24 24",
|
|
6335
6335
|
"aria-hidden": "true",
|
|
6336
6336
|
height: "1em",
|
|
@@ -6807,7 +6807,7 @@ var NavigationMenuTrigger = React58.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6807
6807
|
viewBox: "0 0 24 24",
|
|
6808
6808
|
fill: "none",
|
|
6809
6809
|
stroke: "currentColor",
|
|
6810
|
-
|
|
6810
|
+
strokeWidth: "2",
|
|
6811
6811
|
strokeLinecap: "round",
|
|
6812
6812
|
strokeLinejoin: "round",
|
|
6813
6813
|
"aria-hidden": "true",
|
|
@@ -7133,7 +7133,7 @@ var Navbar = function(_param) {
|
|
|
7133
7133
|
viewBox: "0 0 24 24",
|
|
7134
7134
|
fill: "none",
|
|
7135
7135
|
stroke: "currentColor",
|
|
7136
|
-
|
|
7136
|
+
strokeWidth: "2",
|
|
7137
7137
|
strokeLinecap: "round",
|
|
7138
7138
|
strokeLinejoin: "round",
|
|
7139
7139
|
className: cn("hawa-w-6 hawa-h-6 hawa-fixed", isOpen ? "hawa-invisible" : "hawa-visible")
|
|
@@ -7159,7 +7159,7 @@ var Navbar = function(_param) {
|
|
|
7159
7159
|
viewBox: "0 0 24 24",
|
|
7160
7160
|
fill: "none",
|
|
7161
7161
|
stroke: "currentColor",
|
|
7162
|
-
|
|
7162
|
+
strokeWidth: "2",
|
|
7163
7163
|
strokeLinecap: "round",
|
|
7164
7164
|
strokeLinejoin: "round",
|
|
7165
7165
|
className: cn("hawa-w-6 hawa-h-6", !isOpen ? "hawa-invisible" : "hawa-visible")
|
|
@@ -7530,7 +7530,7 @@ var MenubarSubTrigger = React65.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
7530
7530
|
viewBox: "0 0 24 24",
|
|
7531
7531
|
fill: "none",
|
|
7532
7532
|
stroke: "currentColor",
|
|
7533
|
-
|
|
7533
|
+
strokeWidth: "2",
|
|
7534
7534
|
strokeLinecap: "round",
|
|
7535
7535
|
strokeLinejoin: "round",
|
|
7536
7536
|
className: "hawa-ml-auto hawa-icon"
|
|
@@ -7595,7 +7595,7 @@ var MenubarCheckboxItem = React65.forwardRef(function(_param, ref) /* @__PURE__
|
|
|
7595
7595
|
viewBox: "0 0 24 24",
|
|
7596
7596
|
fill: "none",
|
|
7597
7597
|
stroke: "currentColor",
|
|
7598
|
-
|
|
7598
|
+
strokeWidth: "2",
|
|
7599
7599
|
strokeLinecap: "round",
|
|
7600
7600
|
strokeLinejoin: "round",
|
|
7601
7601
|
className: "hawa-icon"
|
|
@@ -7621,7 +7621,7 @@ var MenubarRadioItem = React65.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
7621
7621
|
viewBox: "0 0 24 24",
|
|
7622
7622
|
fill: "none",
|
|
7623
7623
|
stroke: "currentColor",
|
|
7624
|
-
|
|
7624
|
+
strokeWidth: "2",
|
|
7625
7625
|
strokeLinecap: "round",
|
|
7626
7626
|
strokeLinejoin: "round",
|
|
7627
7627
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
@@ -7947,46 +7947,67 @@ var AuthButtons = function(props) {
|
|
|
7947
7947
|
return /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7948
7948
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7949
7949
|
}, props.viaGoogle && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7950
|
+
disabled: props.isGoogleLoading,
|
|
7950
7951
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7951
7952
|
variant: "outline",
|
|
7952
7953
|
onClick: props.handleGoogle
|
|
7953
|
-
}, /* @__PURE__ */ import_react43.default.createElement(
|
|
7954
|
+
}, props.isGoogleLoading ? /* @__PURE__ */ import_react43.default.createElement(Loading, {
|
|
7955
|
+
size: "button"
|
|
7956
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(Logos.google, {
|
|
7954
7957
|
className: "hawa-icon"
|
|
7955
7958
|
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7959
|
+
disabled: props.isGithubLoading,
|
|
7956
7960
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7957
7961
|
variant: "outline",
|
|
7958
7962
|
onClick: props.handleGithub
|
|
7959
|
-
}, /* @__PURE__ */ import_react43.default.createElement(
|
|
7963
|
+
}, props.isGithubLoading ? /* @__PURE__ */ import_react43.default.createElement(Loading, {
|
|
7964
|
+
size: "button"
|
|
7965
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(Logos.github, {
|
|
7960
7966
|
className: "hawa-icon"
|
|
7961
7967
|
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7968
|
+
disabled: props.isTwitterLoading,
|
|
7962
7969
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7963
7970
|
variant: "outline",
|
|
7964
7971
|
onClick: props.handleTwitter
|
|
7965
|
-
}, /* @__PURE__ */ import_react43.default.createElement(
|
|
7972
|
+
}, props.isTwitterLoading ? /* @__PURE__ */ import_react43.default.createElement(Loading, {
|
|
7973
|
+
size: "button"
|
|
7974
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(Logos.twitter, {
|
|
7966
7975
|
className: "hawa-icon"
|
|
7967
7976
|
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7977
|
+
disabled: props.isAppleLoading,
|
|
7968
7978
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7969
7979
|
variant: "outline",
|
|
7970
7980
|
onClick: props.handleApple
|
|
7971
|
-
}, /* @__PURE__ */ import_react43.default.createElement(
|
|
7981
|
+
}, props.isAppleLoading ? /* @__PURE__ */ import_react43.default.createElement(Loading, {
|
|
7982
|
+
size: "button"
|
|
7983
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(Logos.apple, {
|
|
7972
7984
|
className: "hawa-icon"
|
|
7973
7985
|
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7986
|
+
disabled: props.isMicrosoftLoading,
|
|
7974
7987
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7975
7988
|
variant: "outline",
|
|
7976
7989
|
onClick: props.handleMicrosoft
|
|
7977
|
-
}, /* @__PURE__ */ import_react43.default.createElement(
|
|
7990
|
+
}, props.isMicrosoftLoading ? /* @__PURE__ */ import_react43.default.createElement(Loading, {
|
|
7991
|
+
size: "button"
|
|
7992
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(Logos.microsoft, {
|
|
7978
7993
|
className: "hawa-icon"
|
|
7979
7994
|
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7995
|
+
disabled: props.isEmailLoading,
|
|
7980
7996
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7981
7997
|
variant: "outline",
|
|
7982
7998
|
onClick: props.handleEmail
|
|
7983
|
-
}, /* @__PURE__ */ import_react43.default.createElement(
|
|
7999
|
+
}, props.isEmailLoading ? /* @__PURE__ */ import_react43.default.createElement(Loading, {
|
|
8000
|
+
size: "button"
|
|
8001
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(Logos.mail, {
|
|
7984
8002
|
className: "hawa-icon"
|
|
7985
8003
|
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
8004
|
+
disabled: props.isPhoneLoading,
|
|
7986
8005
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7987
8006
|
variant: "outline",
|
|
7988
8007
|
onClick: props.handlePhone
|
|
7989
|
-
}, /* @__PURE__ */ import_react43.default.createElement(
|
|
8008
|
+
}, props.isPhoneLoading ? /* @__PURE__ */ import_react43.default.createElement(Loading, {
|
|
8009
|
+
size: "button"
|
|
8010
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(Logos.phone, {
|
|
7990
8011
|
className: "hawa-icon"
|
|
7991
8012
|
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"));
|
|
7992
8013
|
};
|
|
@@ -8075,7 +8096,7 @@ var EyeIcon = function(props) {
|
|
|
8075
8096
|
viewBox: "0 0 24 24",
|
|
8076
8097
|
fill: "none",
|
|
8077
8098
|
stroke: "currentColor",
|
|
8078
|
-
|
|
8099
|
+
strokeWidth: "2",
|
|
8079
8100
|
strokeLinecap: "round",
|
|
8080
8101
|
strokeLinejoin: "round"
|
|
8081
8102
|
}, /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
@@ -8096,7 +8117,7 @@ var HiddenEyeIcon = function(props) {
|
|
|
8096
8117
|
viewBox: "0 0 24 24",
|
|
8097
8118
|
fill: "none",
|
|
8098
8119
|
stroke: "currentColor",
|
|
8099
|
-
|
|
8120
|
+
strokeWidth: "2",
|
|
8100
8121
|
strokeLinecap: "round",
|
|
8101
8122
|
strokeLinejoin: "round"
|
|
8102
8123
|
}, /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
@@ -8375,7 +8396,8 @@ var LoginForm = function(_param) {
|
|
|
8375
8396
|
}, renderFields(), /* @__PURE__ */ import_react45.default.createElement(Button, {
|
|
8376
8397
|
className: "hawa-mt-0 hawa-w-full",
|
|
8377
8398
|
type: "submit",
|
|
8378
|
-
isLoading: props.isLoading
|
|
8399
|
+
isLoading: props.isLoading,
|
|
8400
|
+
disabled: props.isLoading
|
|
8379
8401
|
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8380
8402
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
|
|
8381
8403
|
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react45.default.createElement("span", {
|
|
@@ -8388,6 +8410,9 @@ var LoginForm = function(_param) {
|
|
|
8388
8410
|
viaGoogle: props.viaGoogle,
|
|
8389
8411
|
viaGithub: props.viaGithub,
|
|
8390
8412
|
viaTwitter: props.viaTwitter,
|
|
8413
|
+
isGoogleLoading: props.isGoogleLoading,
|
|
8414
|
+
isGithubLoading: props.isGithubLoading,
|
|
8415
|
+
isTwitterLoading: props.isTwitterLoading,
|
|
8391
8416
|
handleGoogle: props.onGoogleLogin,
|
|
8392
8417
|
handleGithub: props.onGithubLogin,
|
|
8393
8418
|
handleTwitter: props.onTwitterLogin
|
|
@@ -8683,6 +8708,9 @@ var RegisterForm = function(_param) {
|
|
|
8683
8708
|
viaGoogle: props.viaGoogle,
|
|
8684
8709
|
viaGithub: props.viaGithub,
|
|
8685
8710
|
viaTwitter: props.viaTwitter,
|
|
8711
|
+
isGoogleLoading: props.isGoogleLoading,
|
|
8712
|
+
isGithubLoading: props.isGithubLoading,
|
|
8713
|
+
isTwitterLoading: props.isTwitterLoading,
|
|
8686
8714
|
handleGoogle: props.onGoogleRegister,
|
|
8687
8715
|
handleGithub: props.onGithubRegister,
|
|
8688
8716
|
handleTwitter: props.onTwitterRegister
|
|
@@ -8749,7 +8777,7 @@ var CheckEmail = function(param) {
|
|
|
8749
8777
|
}, /* @__PURE__ */ import_react48.default.createElement("svg", {
|
|
8750
8778
|
stroke: "currentColor",
|
|
8751
8779
|
fill: "none",
|
|
8752
|
-
|
|
8780
|
+
strokeWidth: "2",
|
|
8753
8781
|
viewBox: "0 0 24 24",
|
|
8754
8782
|
strokeLinecap: "round",
|
|
8755
8783
|
strokeLinejoin: "round",
|
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ var ActionCard = (props) => {
|
|
|
18
18
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
|
19
19
|
stroke: "currentColor",
|
|
20
20
|
fill: "currentColor",
|
|
21
|
-
|
|
21
|
+
strokeWidth: "0",
|
|
22
22
|
viewBox: "0 0 24 24",
|
|
23
23
|
height: "1em",
|
|
24
24
|
width: "1em",
|
|
@@ -6045,7 +6045,7 @@ var Logos = {
|
|
|
6045
6045
|
{
|
|
6046
6046
|
stroke: "currentColor",
|
|
6047
6047
|
fill: "none",
|
|
6048
|
-
|
|
6048
|
+
strokeWidth: "2",
|
|
6049
6049
|
viewBox: "0 0 24 24",
|
|
6050
6050
|
strokeLinecap: "round",
|
|
6051
6051
|
strokeLinejoin: "round",
|
|
@@ -6062,7 +6062,7 @@ var Logos = {
|
|
|
6062
6062
|
{
|
|
6063
6063
|
stroke: "currentColor",
|
|
6064
6064
|
fill: "none",
|
|
6065
|
-
|
|
6065
|
+
strokeWidth: "2",
|
|
6066
6066
|
viewBox: "0 0 24 24",
|
|
6067
6067
|
"aria-hidden": "true",
|
|
6068
6068
|
height: "1em",
|
|
@@ -6584,7 +6584,7 @@ var NavigationMenuTrigger = React58.forwardRef(({ className, children, ...props
|
|
|
6584
6584
|
viewBox: "0 0 24 24",
|
|
6585
6585
|
fill: "none",
|
|
6586
6586
|
stroke: "currentColor",
|
|
6587
|
-
|
|
6587
|
+
strokeWidth: "2",
|
|
6588
6588
|
strokeLinecap: "round",
|
|
6589
6589
|
strokeLinejoin: "round",
|
|
6590
6590
|
"aria-hidden": "true",
|
|
@@ -6955,7 +6955,7 @@ var Navbar = ({
|
|
|
6955
6955
|
viewBox: "0 0 24 24",
|
|
6956
6956
|
fill: "none",
|
|
6957
6957
|
stroke: "currentColor",
|
|
6958
|
-
|
|
6958
|
+
strokeWidth: "2",
|
|
6959
6959
|
strokeLinecap: "round",
|
|
6960
6960
|
strokeLinejoin: "round",
|
|
6961
6961
|
className: cn(
|
|
@@ -6976,7 +6976,7 @@ var Navbar = ({
|
|
|
6976
6976
|
viewBox: "0 0 24 24",
|
|
6977
6977
|
fill: "none",
|
|
6978
6978
|
stroke: "currentColor",
|
|
6979
|
-
|
|
6979
|
+
strokeWidth: "2",
|
|
6980
6980
|
strokeLinecap: "round",
|
|
6981
6981
|
strokeLinejoin: "round",
|
|
6982
6982
|
className: cn(
|
|
@@ -7526,7 +7526,7 @@ var MenubarSubTrigger = React65.forwardRef(({ className, inset, children, ...pro
|
|
|
7526
7526
|
viewBox: "0 0 24 24",
|
|
7527
7527
|
fill: "none",
|
|
7528
7528
|
stroke: "currentColor",
|
|
7529
|
-
|
|
7529
|
+
strokeWidth: "2",
|
|
7530
7530
|
strokeLinecap: "round",
|
|
7531
7531
|
strokeLinejoin: "round",
|
|
7532
7532
|
className: "hawa-ml-auto hawa-icon"
|
|
@@ -7597,7 +7597,7 @@ var MenubarCheckboxItem = React65.forwardRef(({ className, children, checked, ..
|
|
|
7597
7597
|
viewBox: "0 0 24 24",
|
|
7598
7598
|
fill: "none",
|
|
7599
7599
|
stroke: "currentColor",
|
|
7600
|
-
|
|
7600
|
+
strokeWidth: "2",
|
|
7601
7601
|
strokeLinecap: "round",
|
|
7602
7602
|
strokeLinejoin: "round",
|
|
7603
7603
|
className: "hawa-icon"
|
|
@@ -7626,7 +7626,7 @@ var MenubarRadioItem = React65.forwardRef(({ className, children, ...props }, re
|
|
|
7626
7626
|
viewBox: "0 0 24 24",
|
|
7627
7627
|
fill: "none",
|
|
7628
7628
|
stroke: "currentColor",
|
|
7629
|
-
|
|
7629
|
+
strokeWidth: "2",
|
|
7630
7630
|
strokeLinecap: "round",
|
|
7631
7631
|
strokeLinejoin: "round",
|
|
7632
7632
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
@@ -8010,65 +8010,72 @@ var AuthButtons = (props) => {
|
|
|
8010
8010
|
return /* @__PURE__ */ React70.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaGoogle && /* @__PURE__ */ React70.createElement(
|
|
8011
8011
|
Button,
|
|
8012
8012
|
{
|
|
8013
|
+
disabled: props.isGoogleLoading,
|
|
8013
8014
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
8014
8015
|
variant: "outline",
|
|
8015
8016
|
onClick: props.handleGoogle
|
|
8016
8017
|
},
|
|
8017
|
-
/* @__PURE__ */ React70.createElement(Logos.google, { className: "hawa-icon" }),
|
|
8018
|
+
props.isGoogleLoading ? /* @__PURE__ */ React70.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React70.createElement(Logos.google, { className: "hawa-icon" }),
|
|
8018
8019
|
props.texts?.continueWithGoogle ?? "Continue With Google"
|
|
8019
8020
|
), props.viaGithub && /* @__PURE__ */ React70.createElement(
|
|
8020
8021
|
Button,
|
|
8021
8022
|
{
|
|
8023
|
+
disabled: props.isGithubLoading,
|
|
8022
8024
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
8023
8025
|
variant: "outline",
|
|
8024
8026
|
onClick: props.handleGithub
|
|
8025
8027
|
},
|
|
8026
|
-
/* @__PURE__ */ React70.createElement(Logos.github, { className: "hawa-icon" }),
|
|
8028
|
+
props.isGithubLoading ? /* @__PURE__ */ React70.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React70.createElement(Logos.github, { className: "hawa-icon" }),
|
|
8027
8029
|
props.texts?.continueWithGithub ?? "Continue With Github"
|
|
8028
8030
|
), props.viaTwitter && /* @__PURE__ */ React70.createElement(
|
|
8029
8031
|
Button,
|
|
8030
8032
|
{
|
|
8033
|
+
disabled: props.isTwitterLoading,
|
|
8031
8034
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
8032
8035
|
variant: "outline",
|
|
8033
8036
|
onClick: props.handleTwitter
|
|
8034
8037
|
},
|
|
8035
|
-
/* @__PURE__ */ React70.createElement(Logos.twitter, { className: "hawa-icon" }),
|
|
8038
|
+
props.isTwitterLoading ? /* @__PURE__ */ React70.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React70.createElement(Logos.twitter, { className: "hawa-icon" }),
|
|
8036
8039
|
props.texts?.continueWithTwitter ?? "Continue With Twitter"
|
|
8037
8040
|
), props.viaApple && /* @__PURE__ */ React70.createElement(
|
|
8038
8041
|
Button,
|
|
8039
8042
|
{
|
|
8043
|
+
disabled: props.isAppleLoading,
|
|
8040
8044
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
8041
8045
|
variant: "outline",
|
|
8042
8046
|
onClick: props.handleApple
|
|
8043
8047
|
},
|
|
8044
|
-
/* @__PURE__ */ React70.createElement(Logos.apple, { className: "hawa-icon" }),
|
|
8048
|
+
props.isAppleLoading ? /* @__PURE__ */ React70.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React70.createElement(Logos.apple, { className: "hawa-icon" }),
|
|
8045
8049
|
props.texts?.continueWithApple ?? "Continue With Apple"
|
|
8046
8050
|
), props.viaMicrosoft && /* @__PURE__ */ React70.createElement(
|
|
8047
8051
|
Button,
|
|
8048
8052
|
{
|
|
8053
|
+
disabled: props.isMicrosoftLoading,
|
|
8049
8054
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
8050
8055
|
variant: "outline",
|
|
8051
8056
|
onClick: props.handleMicrosoft
|
|
8052
8057
|
},
|
|
8053
|
-
/* @__PURE__ */ React70.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
|
8058
|
+
props.isMicrosoftLoading ? /* @__PURE__ */ React70.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React70.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
|
8054
8059
|
props.texts?.continueWithMicrosoft ?? "Continue With Microsoft"
|
|
8055
8060
|
), props.viaEmail && /* @__PURE__ */ React70.createElement(
|
|
8056
8061
|
Button,
|
|
8057
8062
|
{
|
|
8063
|
+
disabled: props.isEmailLoading,
|
|
8058
8064
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
8059
8065
|
variant: "outline",
|
|
8060
8066
|
onClick: props.handleEmail
|
|
8061
8067
|
},
|
|
8062
|
-
/* @__PURE__ */ React70.createElement(Logos.mail, { className: "hawa-icon" }),
|
|
8068
|
+
props.isEmailLoading ? /* @__PURE__ */ React70.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React70.createElement(Logos.mail, { className: "hawa-icon" }),
|
|
8063
8069
|
props.texts?.continueWithEmail ?? "Continue With Email"
|
|
8064
8070
|
), props.viaPhone && /* @__PURE__ */ React70.createElement(
|
|
8065
8071
|
Button,
|
|
8066
8072
|
{
|
|
8073
|
+
disabled: props.isPhoneLoading,
|
|
8067
8074
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
8068
8075
|
variant: "outline",
|
|
8069
8076
|
onClick: props.handlePhone
|
|
8070
8077
|
},
|
|
8071
|
-
/* @__PURE__ */ React70.createElement(Logos.phone, { className: "hawa-icon" }),
|
|
8078
|
+
props.isPhoneLoading ? /* @__PURE__ */ React70.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React70.createElement(Logos.phone, { className: "hawa-icon" }),
|
|
8072
8079
|
props.texts?.continueWithPhone ?? "Continue With Phone"
|
|
8073
8080
|
));
|
|
8074
8081
|
};
|
|
@@ -8176,7 +8183,7 @@ var EyeIcon = (props) => /* @__PURE__ */ React71.createElement("div", { classNam
|
|
|
8176
8183
|
viewBox: "0 0 24 24",
|
|
8177
8184
|
fill: "none",
|
|
8178
8185
|
stroke: "currentColor",
|
|
8179
|
-
|
|
8186
|
+
strokeWidth: "2",
|
|
8180
8187
|
strokeLinecap: "round",
|
|
8181
8188
|
strokeLinejoin: "round"
|
|
8182
8189
|
},
|
|
@@ -8192,7 +8199,7 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ React71.createElement("div", { cl
|
|
|
8192
8199
|
viewBox: "0 0 24 24",
|
|
8193
8200
|
fill: "none",
|
|
8194
8201
|
stroke: "currentColor",
|
|
8195
|
-
|
|
8202
|
+
strokeWidth: "2",
|
|
8196
8203
|
strokeLinecap: "round",
|
|
8197
8204
|
strokeLinejoin: "round"
|
|
8198
8205
|
},
|
|
@@ -8466,7 +8473,8 @@ var LoginForm = ({
|
|
|
8466
8473
|
{
|
|
8467
8474
|
className: "hawa-mt-0 hawa-w-full",
|
|
8468
8475
|
type: "submit",
|
|
8469
|
-
isLoading: props.isLoading
|
|
8476
|
+
isLoading: props.isLoading,
|
|
8477
|
+
disabled: props.isLoading
|
|
8470
8478
|
},
|
|
8471
8479
|
texts?.loginText || "Login"
|
|
8472
8480
|
),
|
|
@@ -8493,6 +8501,9 @@ var LoginForm = ({
|
|
|
8493
8501
|
viaGoogle: props.viaGoogle,
|
|
8494
8502
|
viaGithub: props.viaGithub,
|
|
8495
8503
|
viaTwitter: props.viaTwitter,
|
|
8504
|
+
isGoogleLoading: props.isGoogleLoading,
|
|
8505
|
+
isGithubLoading: props.isGithubLoading,
|
|
8506
|
+
isTwitterLoading: props.isTwitterLoading,
|
|
8496
8507
|
handleGoogle: props.onGoogleLogin,
|
|
8497
8508
|
handleGithub: props.onGithubLogin,
|
|
8498
8509
|
handleTwitter: props.onTwitterLogin
|
|
@@ -8798,6 +8809,9 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8798
8809
|
viaGoogle: props.viaGoogle,
|
|
8799
8810
|
viaGithub: props.viaGithub,
|
|
8800
8811
|
viaTwitter: props.viaTwitter,
|
|
8812
|
+
isGoogleLoading: props.isGoogleLoading,
|
|
8813
|
+
isGithubLoading: props.isGithubLoading,
|
|
8814
|
+
isTwitterLoading: props.isTwitterLoading,
|
|
8801
8815
|
handleGoogle: props.onGoogleRegister,
|
|
8802
8816
|
handleGithub: props.onGithubRegister,
|
|
8803
8817
|
handleTwitter: props.onTwitterRegister
|
|
@@ -8863,7 +8877,7 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
|
8863
8877
|
{
|
|
8864
8878
|
stroke: "currentColor",
|
|
8865
8879
|
fill: "none",
|
|
8866
|
-
|
|
8880
|
+
strokeWidth: "2",
|
|
8867
8881
|
viewBox: "0 0 24 24",
|
|
8868
8882
|
strokeLinecap: "round",
|
|
8869
8883
|
strokeLinejoin: "round",
|