@sikka/hawa 0.8.7-next → 0.8.8-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.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +17 -6
- package/dist/index.mjs +11 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -313,6 +313,7 @@ type MenuItemType = {
|
|
|
313
313
|
subitems?: SubItem$2[];
|
|
314
314
|
disabled?: boolean;
|
|
315
315
|
onMiddleClick?: any;
|
|
316
|
+
onClick?: any;
|
|
316
317
|
};
|
|
317
318
|
interface DropdownMenuProps {
|
|
318
319
|
trigger?: any;
|
|
@@ -1005,6 +1006,12 @@ type RegisterFormTypes = {
|
|
|
1005
1006
|
registerFields: any[];
|
|
1006
1007
|
/** Indicates whether the form submission is in progress. */
|
|
1007
1008
|
isLoading?: boolean;
|
|
1009
|
+
/** If true, a loading spinner is displayed within the Google login button. */
|
|
1010
|
+
isGoogleLoading?: boolean;
|
|
1011
|
+
/** If true, a loading spinner is displayed within the Twitter login button. */
|
|
1012
|
+
isTwitterLoading?: boolean;
|
|
1013
|
+
/** If true, a loading spinner is displayed within the Github login button. */
|
|
1014
|
+
isGithubLoading?: boolean;
|
|
1008
1015
|
userReferenceOptions: SelectOptionProps[];
|
|
1009
1016
|
};
|
|
1010
1017
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
package/dist/index.d.ts
CHANGED
|
@@ -313,6 +313,7 @@ type MenuItemType = {
|
|
|
313
313
|
subitems?: SubItem$2[];
|
|
314
314
|
disabled?: boolean;
|
|
315
315
|
onMiddleClick?: any;
|
|
316
|
+
onClick?: any;
|
|
316
317
|
};
|
|
317
318
|
interface DropdownMenuProps {
|
|
318
319
|
trigger?: any;
|
|
@@ -1005,6 +1006,12 @@ type RegisterFormTypes = {
|
|
|
1005
1006
|
registerFields: any[];
|
|
1006
1007
|
/** Indicates whether the form submission is in progress. */
|
|
1007
1008
|
isLoading?: boolean;
|
|
1009
|
+
/** If true, a loading spinner is displayed within the Google login button. */
|
|
1010
|
+
isGoogleLoading?: boolean;
|
|
1011
|
+
/** If true, a loading spinner is displayed within the Twitter login button. */
|
|
1012
|
+
isTwitterLoading?: boolean;
|
|
1013
|
+
/** If true, a loading spinner is displayed within the Github login button. */
|
|
1014
|
+
isGithubLoading?: boolean;
|
|
1008
1015
|
userReferenceOptions: SelectOptionProps[];
|
|
1009
1016
|
};
|
|
1010
1017
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
package/dist/index.js
CHANGED
|
@@ -2323,6 +2323,11 @@ var DropdownMenu = function(param) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
2325
|
},
|
|
2326
|
+
onClick: function(event) {
|
|
2327
|
+
if (item.onClick) {
|
|
2328
|
+
item.onClick(item.value);
|
|
2329
|
+
}
|
|
2330
|
+
},
|
|
2326
2331
|
onSelect: function(e) {
|
|
2327
2332
|
if (item.presist) {
|
|
2328
2333
|
e.preventDefault();
|
|
@@ -7160,21 +7165,27 @@ var RegisterForm = function(props) {
|
|
|
7160
7165
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7161
7166
|
variant: "outline",
|
|
7162
7167
|
onClick: props.handleGoogleRegister
|
|
7163
|
-
}, /* @__PURE__ */ import_react34.default.createElement(
|
|
7168
|
+
}, props.isGoogleLoading ? /* @__PURE__ */ import_react34.default.createElement(Loading, {
|
|
7169
|
+
size: "button"
|
|
7170
|
+
}) : /* @__PURE__ */ import_react34.default.createElement(Logos.google, {
|
|
7164
7171
|
className: "hawa-h-4 hawa-w-4"
|
|
7165
|
-
}), !props.logosOnly && props.texts.registerViaGoogleLabel), props.viaGithub && /* @__PURE__ */ import_react34.default.createElement(Button, {
|
|
7172
|
+
}), " ", !props.logosOnly && props.texts.registerViaGoogleLabel), props.viaGithub && /* @__PURE__ */ import_react34.default.createElement(Button, {
|
|
7166
7173
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7167
7174
|
variant: "outline",
|
|
7168
7175
|
onClick: props.handleGithubRegister
|
|
7169
|
-
}, /* @__PURE__ */ import_react34.default.createElement(
|
|
7176
|
+
}, props.isGithubLoading ? /* @__PURE__ */ import_react34.default.createElement(Loading, {
|
|
7177
|
+
size: "button"
|
|
7178
|
+
}) : /* @__PURE__ */ import_react34.default.createElement(Logos.github, {
|
|
7170
7179
|
className: "hawa-h-4 hawa-w-4"
|
|
7171
|
-
}), !props.logosOnly && props.texts.registerViaGithubLabel), props.viaTwitter && /* @__PURE__ */ import_react34.default.createElement(Button, {
|
|
7180
|
+
}), " ", !props.logosOnly && props.texts.registerViaGithubLabel), props.viaTwitter && /* @__PURE__ */ import_react34.default.createElement(Button, {
|
|
7172
7181
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7173
7182
|
variant: "outline",
|
|
7174
7183
|
onClick: props.handleTwitterRegister
|
|
7175
|
-
}, /* @__PURE__ */ import_react34.default.createElement(
|
|
7184
|
+
}, props.isTwitterLoading ? /* @__PURE__ */ import_react34.default.createElement(Loading, {
|
|
7185
|
+
size: "button"
|
|
7186
|
+
}) : /* @__PURE__ */ import_react34.default.createElement(Logos.twitter, {
|
|
7176
7187
|
className: "hawa-h-4 hawa-w-4"
|
|
7177
|
-
}), !props.logosOnly && props.texts.registerViaTwitterLabel)) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react34.default.createElement(InterfaceSettings, {
|
|
7188
|
+
}), " ", !props.logosOnly && props.texts.registerViaTwitterLabel)) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react34.default.createElement(InterfaceSettings, {
|
|
7178
7189
|
currentColorMode: props.currentColorMode,
|
|
7179
7190
|
currentLanguage: props.currentLanguage,
|
|
7180
7191
|
handleColorMode: props.handleColorMode,
|
package/dist/index.mjs
CHANGED
|
@@ -1858,6 +1858,11 @@ var DropdownMenu = ({
|
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
1860
|
},
|
|
1861
|
+
onClick: (event) => {
|
|
1862
|
+
if (item.onClick) {
|
|
1863
|
+
item.onClick(item.value);
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1861
1866
|
onSelect: (e) => {
|
|
1862
1867
|
if (item.presist) {
|
|
1863
1868
|
e.preventDefault();
|
|
@@ -7031,7 +7036,8 @@ var RegisterForm = (props) => {
|
|
|
7031
7036
|
variant: "outline",
|
|
7032
7037
|
onClick: props.handleGoogleRegister
|
|
7033
7038
|
},
|
|
7034
|
-
/* @__PURE__ */ React54.createElement(Logos.google, { className: "hawa-h-4 hawa-w-4" }),
|
|
7039
|
+
props.isGoogleLoading ? /* @__PURE__ */ React54.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React54.createElement(Logos.google, { className: "hawa-h-4 hawa-w-4" }),
|
|
7040
|
+
" ",
|
|
7035
7041
|
!props.logosOnly && props.texts.registerViaGoogleLabel
|
|
7036
7042
|
),
|
|
7037
7043
|
props.viaGithub && /* @__PURE__ */ React54.createElement(
|
|
@@ -7041,7 +7047,8 @@ var RegisterForm = (props) => {
|
|
|
7041
7047
|
variant: "outline",
|
|
7042
7048
|
onClick: props.handleGithubRegister
|
|
7043
7049
|
},
|
|
7044
|
-
/* @__PURE__ */ React54.createElement(Logos.github, { className: "hawa-h-4 hawa-w-4" }),
|
|
7050
|
+
props.isGithubLoading ? /* @__PURE__ */ React54.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React54.createElement(Logos.github, { className: "hawa-h-4 hawa-w-4" }),
|
|
7051
|
+
" ",
|
|
7045
7052
|
!props.logosOnly && props.texts.registerViaGithubLabel
|
|
7046
7053
|
),
|
|
7047
7054
|
props.viaTwitter && /* @__PURE__ */ React54.createElement(
|
|
@@ -7051,7 +7058,8 @@ var RegisterForm = (props) => {
|
|
|
7051
7058
|
variant: "outline",
|
|
7052
7059
|
onClick: props.handleTwitterRegister
|
|
7053
7060
|
},
|
|
7054
|
-
/* @__PURE__ */ React54.createElement(Logos.twitter, { className: "hawa-h-4 hawa-w-4" }),
|
|
7061
|
+
props.isTwitterLoading ? /* @__PURE__ */ React54.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React54.createElement(Logos.twitter, { className: "hawa-h-4 hawa-w-4" }),
|
|
7062
|
+
" ",
|
|
7055
7063
|
!props.logosOnly && props.texts.registerViaTwitterLabel
|
|
7056
7064
|
)
|
|
7057
7065
|
) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ React54.createElement(
|