@sikka/hawa 0.1.82 → 0.1.84
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/.github/workflows/hawa-ci.yml +7 -7
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +131 -122
- package/dist/index.mjs +193 -161
- package/package.json +1 -1
- package/src/blocks/AuthForms/AppLanding.tsx +14 -0
- package/src/blocks/AuthForms/SignInForm.tsx +29 -28
- package/src/blocks/AuthForms/SignUpForm.tsx +30 -26
|
@@ -48,9 +48,8 @@ jobs:
|
|
|
48
48
|
node-version: [16.x]
|
|
49
49
|
steps:
|
|
50
50
|
- uses: actions/checkout@v2
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
run: cd ./landing
|
|
51
|
+
with:
|
|
52
|
+
path: deploy-landing-path
|
|
54
53
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
55
54
|
uses: actions/setup-node@v2
|
|
56
55
|
with:
|
|
@@ -58,12 +57,12 @@ jobs:
|
|
|
58
57
|
- name: Install Hawa Landing
|
|
59
58
|
run: |
|
|
60
59
|
rm -fr /home/cloudpanel/htdocs/hawa.style || true
|
|
61
|
-
cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
|
|
60
|
+
cd /var/www/html/sikka-software/_work/Hawa/Hawa/deploy-landing-path/landing
|
|
62
61
|
rm -fr package-lock.json || true
|
|
63
62
|
rm -fr node_modules || true
|
|
64
63
|
npm install
|
|
65
64
|
npm run build --if-present
|
|
66
|
-
ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
|
|
65
|
+
ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/deploy-landing-path/landing /home/cloudpanel/htdocs/hawa.style
|
|
67
66
|
pm2 stop hawa-landing || true
|
|
68
67
|
pm2 delete hawa-landing || true
|
|
69
68
|
pm2 start npm --name "hawa-landing" -- start || true
|
|
@@ -77,14 +76,15 @@ jobs:
|
|
|
77
76
|
node-version: [16.x]
|
|
78
77
|
steps:
|
|
79
78
|
- uses: actions/checkout@v2
|
|
79
|
+
with:
|
|
80
|
+
path: build-storybook-path
|
|
80
81
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
81
82
|
uses: actions/setup-node@v2
|
|
82
83
|
with:
|
|
83
84
|
node-version: ${{ matrix.node-version }}
|
|
84
85
|
- name: Generate Storybook Static Files
|
|
85
86
|
run: |
|
|
86
|
-
cd /var/www/html/sikka-software/_work/Hawa/Hawa
|
|
87
|
+
cd /var/www/html/sikka-software/_work/Hawa/Hawa/build-storybook-path
|
|
87
88
|
rm -fr package-lock.json || true
|
|
88
|
-
rm -fr node_modules || true
|
|
89
89
|
npm install
|
|
90
90
|
npm run build-storybook
|
package/dist/index.d.mts
CHANGED
|
@@ -1130,6 +1130,7 @@ type SignInFormTypes = {
|
|
|
1130
1130
|
currentLanguage?: any;
|
|
1131
1131
|
handleColorMode?: () => void;
|
|
1132
1132
|
currentColorMode?: any;
|
|
1133
|
+
logosOnly?: boolean;
|
|
1133
1134
|
direction?: "rtl" | "ltr";
|
|
1134
1135
|
showError?: any;
|
|
1135
1136
|
errorTitle?: string;
|
|
@@ -1186,6 +1187,7 @@ type SignUpFormTypes = {
|
|
|
1186
1187
|
handleColorMode?: () => void;
|
|
1187
1188
|
currentColorMode?: any;
|
|
1188
1189
|
direction?: "rtl" | "ltr";
|
|
1190
|
+
logosOnly?: boolean;
|
|
1189
1191
|
texts: {
|
|
1190
1192
|
fullNameLabel: string;
|
|
1191
1193
|
fullNamePlaceholder: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1130,6 +1130,7 @@ type SignInFormTypes = {
|
|
|
1130
1130
|
currentLanguage?: any;
|
|
1131
1131
|
handleColorMode?: () => void;
|
|
1132
1132
|
currentColorMode?: any;
|
|
1133
|
+
logosOnly?: boolean;
|
|
1133
1134
|
direction?: "rtl" | "ltr";
|
|
1134
1135
|
showError?: any;
|
|
1135
1136
|
errorTitle?: string;
|
|
@@ -1186,6 +1187,7 @@ type SignUpFormTypes = {
|
|
|
1186
1187
|
handleColorMode?: () => void;
|
|
1187
1188
|
currentColorMode?: any;
|
|
1188
1189
|
direction?: "rtl" | "ltr";
|
|
1190
|
+
logosOnly?: boolean;
|
|
1189
1191
|
texts: {
|
|
1190
1192
|
fullNameLabel: string;
|
|
1191
1193
|
fullNamePlaceholder: string;
|
package/dist/index.js
CHANGED
|
@@ -8537,110 +8537,6 @@ var UserSettingsForm = function(props) {
|
|
|
8537
8537
|
};
|
|
8538
8538
|
// src/blocks/AuthForms/AppLanding.tsx
|
|
8539
8539
|
var import_react70 = __toESM(require("react"));
|
|
8540
|
-
var AppLanding = function(props) {
|
|
8541
|
-
return /* @__PURE__ */ import_react70.default.createElement("div", null, /* @__PURE__ */ import_react70.default.createElement(Card, null, /* @__PURE__ */ import_react70.default.createElement(CardContent, {
|
|
8542
|
-
headless: true,
|
|
8543
|
-
className: "flex flex-col gap-6"
|
|
8544
|
-
}, props.handleSignIn && /* @__PURE__ */ import_react70.default.createElement(Button, {
|
|
8545
|
-
onClick: props.handleSignIn
|
|
8546
|
-
}, props.texts.signIn), props.handleSignUp && /* @__PURE__ */ import_react70.default.createElement(Button, {
|
|
8547
|
-
onClick: props.handleSignUp
|
|
8548
|
-
}, props.texts.signUp))), /* @__PURE__ */ import_react70.default.createElement("div", {
|
|
8549
|
-
className: "mt-6 flex flex-row justify-between"
|
|
8550
|
-
}, /* @__PURE__ */ import_react70.default.createElement(HawaRadio, {
|
|
8551
|
-
onChangeTab: props.handleLanguage,
|
|
8552
|
-
design: "tabs",
|
|
8553
|
-
options: [
|
|
8554
|
-
{
|
|
8555
|
-
value: "ar",
|
|
8556
|
-
label: "عربي"
|
|
8557
|
-
},
|
|
8558
|
-
{
|
|
8559
|
-
value: "en",
|
|
8560
|
-
label: "English"
|
|
8561
|
-
}
|
|
8562
|
-
]
|
|
8563
|
-
}), /* @__PURE__ */ import_react70.default.createElement(HawaRadio, {
|
|
8564
|
-
onChangeTab: props.handleColorMode,
|
|
8565
|
-
design: "tabs",
|
|
8566
|
-
options: [
|
|
8567
|
-
{
|
|
8568
|
-
value: "light",
|
|
8569
|
-
label: /* @__PURE__ */ import_react70.default.createElement("svg", {
|
|
8570
|
-
width: "15",
|
|
8571
|
-
height: "15",
|
|
8572
|
-
viewBox: "0 0 15 15",
|
|
8573
|
-
fill: "none",
|
|
8574
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8575
|
-
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
8576
|
-
}, /* @__PURE__ */ import_react70.default.createElement("path", {
|
|
8577
|
-
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
8578
|
-
fill: "currentColor",
|
|
8579
|
-
fillRule: "evenodd",
|
|
8580
|
-
clipRule: "evenodd"
|
|
8581
|
-
}))
|
|
8582
|
-
},
|
|
8583
|
-
{
|
|
8584
|
-
value: "dark",
|
|
8585
|
-
label: /* @__PURE__ */ import_react70.default.createElement("svg", {
|
|
8586
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8587
|
-
width: "24",
|
|
8588
|
-
height: "24",
|
|
8589
|
-
viewBox: "0 0 24 24",
|
|
8590
|
-
fill: "none",
|
|
8591
|
-
stroke: "currentColor",
|
|
8592
|
-
strokeWidth: "2",
|
|
8593
|
-
strokeLinecap: "round",
|
|
8594
|
-
strokeLinejoin: "round",
|
|
8595
|
-
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
8596
|
-
}, /* @__PURE__ */ import_react70.default.createElement("path", {
|
|
8597
|
-
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
8598
|
-
}))
|
|
8599
|
-
}
|
|
8600
|
-
]
|
|
8601
|
-
})));
|
|
8602
|
-
};
|
|
8603
|
-
// src/blocks/AuthForms/SignInPhone.tsx
|
|
8604
|
-
var import_react71 = __toESM(require("react"));
|
|
8605
|
-
var import_react_hook_form2 = require("react-hook-form");
|
|
8606
|
-
var SignInPhone = function(props) {
|
|
8607
|
-
var methods = (0, import_react_hook_form2.useForm)();
|
|
8608
|
-
var errors = methods.formState.errors, handleSubmit = methods.handleSubmit, control = methods.control;
|
|
8609
|
-
var _ref = _sliced_to_array((0, import_react71.useState)(""), 2), userPhone = _ref[0], setUserPhone = _ref[1];
|
|
8610
|
-
var _props_country, _props_label;
|
|
8611
|
-
return /* @__PURE__ */ import_react71.default.createElement(Card, null, /* @__PURE__ */ import_react71.default.createElement(CardContent, {
|
|
8612
|
-
headless: true
|
|
8613
|
-
}, /* @__PURE__ */ import_react71.default.createElement("form", {
|
|
8614
|
-
onSubmit: function(e) {
|
|
8615
|
-
e.preventDefault();
|
|
8616
|
-
props.handleSignIn(userPhone);
|
|
8617
|
-
}
|
|
8618
|
-
}, /* @__PURE__ */ import_react71.default.createElement(import_react_hook_form2.Controller, {
|
|
8619
|
-
control: control,
|
|
8620
|
-
name: "phone",
|
|
8621
|
-
render: function(param) {
|
|
8622
|
-
var field = param.field;
|
|
8623
|
-
return /* @__PURE__ */ import_react71.default.createElement(HawaPhoneInput, _object_spread({
|
|
8624
|
-
country: (_props_country = props.country) !== null && _props_country !== void 0 ? _props_country : "",
|
|
8625
|
-
label: (_props_label = props.label) !== null && _props_label !== void 0 ? _props_label : "",
|
|
8626
|
-
handleChange: function(e) {
|
|
8627
|
-
return setUserPhone(e.target.value);
|
|
8628
|
-
}
|
|
8629
|
-
}, field));
|
|
8630
|
-
},
|
|
8631
|
-
rules: {
|
|
8632
|
-
required: props.phoneRequiredText
|
|
8633
|
-
}
|
|
8634
|
-
}), /* @__PURE__ */ import_react71.default.createElement("div", {
|
|
8635
|
-
className: "mt-2"
|
|
8636
|
-
}), /* @__PURE__ */ import_react71.default.createElement(Button, {
|
|
8637
|
-
className: "w-full"
|
|
8638
|
-
}, props.SignInButtonText))));
|
|
8639
|
-
};
|
|
8640
|
-
// src/blocks/AuthForms/SignInForm.tsx
|
|
8641
|
-
var import_react72 = __toESM(require("react"));
|
|
8642
|
-
var import_react_hook_form3 = require("react-hook-form");
|
|
8643
|
-
var import_clsx33 = __toESM(require("clsx"));
|
|
8644
8540
|
// src/elements/Icons.tsx
|
|
8645
8541
|
var Icons = {
|
|
8646
8542
|
logo: function(props) {
|
|
@@ -8797,7 +8693,115 @@ var Icons = {
|
|
|
8797
8693
|
}));
|
|
8798
8694
|
}
|
|
8799
8695
|
};
|
|
8696
|
+
// src/blocks/AuthForms/AppLanding.tsx
|
|
8697
|
+
var AppLanding = function(props) {
|
|
8698
|
+
return /* @__PURE__ */ import_react70.default.createElement("div", null, /* @__PURE__ */ import_react70.default.createElement(Card, null, /* @__PURE__ */ import_react70.default.createElement(CardContent, {
|
|
8699
|
+
headless: true,
|
|
8700
|
+
className: "flex flex-col gap-6"
|
|
8701
|
+
}, /* @__PURE__ */ import_react70.default.createElement(Button, {
|
|
8702
|
+
className: "flex flex-row items-center gap-2",
|
|
8703
|
+
variant: "outline"
|
|
8704
|
+
}, /* @__PURE__ */ import_react70.default.createElement(Icons.google, {
|
|
8705
|
+
className: "h-4 w-4"
|
|
8706
|
+
}), "Continue With Google"), props.handleSignIn && /* @__PURE__ */ import_react70.default.createElement(Button, {
|
|
8707
|
+
onClick: props.handleSignIn
|
|
8708
|
+
}, props.texts.signIn), props.handleSignUp && /* @__PURE__ */ import_react70.default.createElement(Button, {
|
|
8709
|
+
onClick: props.handleSignUp
|
|
8710
|
+
}, props.texts.signUp))), /* @__PURE__ */ import_react70.default.createElement("div", {
|
|
8711
|
+
className: "mt-6 flex flex-row justify-between"
|
|
8712
|
+
}, /* @__PURE__ */ import_react70.default.createElement(HawaRadio, {
|
|
8713
|
+
onChangeTab: props.handleLanguage,
|
|
8714
|
+
design: "tabs",
|
|
8715
|
+
options: [
|
|
8716
|
+
{
|
|
8717
|
+
value: "ar",
|
|
8718
|
+
label: "عربي"
|
|
8719
|
+
},
|
|
8720
|
+
{
|
|
8721
|
+
value: "en",
|
|
8722
|
+
label: "English"
|
|
8723
|
+
}
|
|
8724
|
+
]
|
|
8725
|
+
}), /* @__PURE__ */ import_react70.default.createElement(HawaRadio, {
|
|
8726
|
+
onChangeTab: props.handleColorMode,
|
|
8727
|
+
design: "tabs",
|
|
8728
|
+
options: [
|
|
8729
|
+
{
|
|
8730
|
+
value: "light",
|
|
8731
|
+
label: /* @__PURE__ */ import_react70.default.createElement("svg", {
|
|
8732
|
+
width: "15",
|
|
8733
|
+
height: "15",
|
|
8734
|
+
viewBox: "0 0 15 15",
|
|
8735
|
+
fill: "none",
|
|
8736
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8737
|
+
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
8738
|
+
}, /* @__PURE__ */ import_react70.default.createElement("path", {
|
|
8739
|
+
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
8740
|
+
fill: "currentColor",
|
|
8741
|
+
fillRule: "evenodd",
|
|
8742
|
+
clipRule: "evenodd"
|
|
8743
|
+
}))
|
|
8744
|
+
},
|
|
8745
|
+
{
|
|
8746
|
+
value: "dark",
|
|
8747
|
+
label: /* @__PURE__ */ import_react70.default.createElement("svg", {
|
|
8748
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8749
|
+
width: "24",
|
|
8750
|
+
height: "24",
|
|
8751
|
+
viewBox: "0 0 24 24",
|
|
8752
|
+
fill: "none",
|
|
8753
|
+
stroke: "currentColor",
|
|
8754
|
+
strokeWidth: "2",
|
|
8755
|
+
strokeLinecap: "round",
|
|
8756
|
+
strokeLinejoin: "round",
|
|
8757
|
+
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
8758
|
+
}, /* @__PURE__ */ import_react70.default.createElement("path", {
|
|
8759
|
+
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
8760
|
+
}))
|
|
8761
|
+
}
|
|
8762
|
+
]
|
|
8763
|
+
})));
|
|
8764
|
+
};
|
|
8765
|
+
// src/blocks/AuthForms/SignInPhone.tsx
|
|
8766
|
+
var import_react71 = __toESM(require("react"));
|
|
8767
|
+
var import_react_hook_form2 = require("react-hook-form");
|
|
8768
|
+
var SignInPhone = function(props) {
|
|
8769
|
+
var methods = (0, import_react_hook_form2.useForm)();
|
|
8770
|
+
var errors = methods.formState.errors, handleSubmit = methods.handleSubmit, control = methods.control;
|
|
8771
|
+
var _ref = _sliced_to_array((0, import_react71.useState)(""), 2), userPhone = _ref[0], setUserPhone = _ref[1];
|
|
8772
|
+
var _props_country, _props_label;
|
|
8773
|
+
return /* @__PURE__ */ import_react71.default.createElement(Card, null, /* @__PURE__ */ import_react71.default.createElement(CardContent, {
|
|
8774
|
+
headless: true
|
|
8775
|
+
}, /* @__PURE__ */ import_react71.default.createElement("form", {
|
|
8776
|
+
onSubmit: function(e) {
|
|
8777
|
+
e.preventDefault();
|
|
8778
|
+
props.handleSignIn(userPhone);
|
|
8779
|
+
}
|
|
8780
|
+
}, /* @__PURE__ */ import_react71.default.createElement(import_react_hook_form2.Controller, {
|
|
8781
|
+
control: control,
|
|
8782
|
+
name: "phone",
|
|
8783
|
+
render: function(param) {
|
|
8784
|
+
var field = param.field;
|
|
8785
|
+
return /* @__PURE__ */ import_react71.default.createElement(HawaPhoneInput, _object_spread({
|
|
8786
|
+
country: (_props_country = props.country) !== null && _props_country !== void 0 ? _props_country : "",
|
|
8787
|
+
label: (_props_label = props.label) !== null && _props_label !== void 0 ? _props_label : "",
|
|
8788
|
+
handleChange: function(e) {
|
|
8789
|
+
return setUserPhone(e.target.value);
|
|
8790
|
+
}
|
|
8791
|
+
}, field));
|
|
8792
|
+
},
|
|
8793
|
+
rules: {
|
|
8794
|
+
required: props.phoneRequiredText
|
|
8795
|
+
}
|
|
8796
|
+
}), /* @__PURE__ */ import_react71.default.createElement("div", {
|
|
8797
|
+
className: "mt-2"
|
|
8798
|
+
}), /* @__PURE__ */ import_react71.default.createElement(Button, {
|
|
8799
|
+
className: "w-full"
|
|
8800
|
+
}, props.SignInButtonText))));
|
|
8801
|
+
};
|
|
8800
8802
|
// src/blocks/AuthForms/SignInForm.tsx
|
|
8803
|
+
var import_react72 = __toESM(require("react"));
|
|
8804
|
+
var import_react_hook_form3 = require("react-hook-form");
|
|
8801
8805
|
var SignInForm = function(props) {
|
|
8802
8806
|
var _ref = (0, import_react_hook_form3.useForm)(), errors = _ref.formState.errors, handleSubmit = _ref.handleSubmit, control = _ref.control;
|
|
8803
8807
|
var _field_value, _field_value1;
|
|
@@ -8897,7 +8901,7 @@ var SignInForm = function(props) {
|
|
|
8897
8901
|
onClick: props.handleForgotPassword,
|
|
8898
8902
|
className: "mb-3 w-fit cursor-pointer text-xs dark:text-gray-300"
|
|
8899
8903
|
}, props.texts.forgotPasswordText)), /* @__PURE__ */ import_react72.default.createElement(Button, {
|
|
8900
|
-
className: "w-full
|
|
8904
|
+
className: "mt-4 w-full",
|
|
8901
8905
|
isLoading: props.isLoading
|
|
8902
8906
|
}, props.texts.signInText), !props.withoutSignUp && /* @__PURE__ */ import_react72.default.createElement("div", {
|
|
8903
8907
|
className: "p-3 text-center text-sm font-semibold dark:text-gray-300"
|
|
@@ -8905,23 +8909,26 @@ var SignInForm = function(props) {
|
|
|
8905
8909
|
onClick: props.handleRouteToSignUp,
|
|
8906
8910
|
className: "clickable-link"
|
|
8907
8911
|
}, props.texts.createAccount)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react72.default.createElement(CardFooter, {
|
|
8908
|
-
className: "grid grid-cols-1 gap-2
|
|
8912
|
+
className: cn(props.logosOnly ? "flex flex-row gap-2 justify-center" : "grid grid-cols-1 gap-2")
|
|
8909
8913
|
}, props.viaGoogle && /* @__PURE__ */ import_react72.default.createElement(Button, {
|
|
8914
|
+
className: "flex flex-row items-center gap-2",
|
|
8910
8915
|
variant: "outline",
|
|
8911
8916
|
onClick: props.handleGoogleSignIn
|
|
8912
8917
|
}, /* @__PURE__ */ import_react72.default.createElement(Icons.google, {
|
|
8913
|
-
className:
|
|
8914
|
-
}), props.texts.signInViaGoogleLabel), props.viaGithub && /* @__PURE__ */ import_react72.default.createElement(Button, {
|
|
8918
|
+
className: "h-4 w-4"
|
|
8919
|
+
}), !props.logosOnly && props.texts.signInViaGoogleLabel), props.viaGithub && /* @__PURE__ */ import_react72.default.createElement(Button, {
|
|
8920
|
+
className: "flex flex-row items-center gap-2",
|
|
8915
8921
|
variant: "outline",
|
|
8916
8922
|
onClick: props.handleGithubSignIn
|
|
8917
8923
|
}, /* @__PURE__ */ import_react72.default.createElement(Icons.gitHub, {
|
|
8918
|
-
className:
|
|
8919
|
-
}), props.texts.signInViaGithubLabel), props.viaTwitter && /* @__PURE__ */ import_react72.default.createElement(Button, {
|
|
8924
|
+
className: "h-4 w-4"
|
|
8925
|
+
}), !props.logosOnly && props.texts.signInViaGithubLabel), props.viaTwitter && /* @__PURE__ */ import_react72.default.createElement(Button, {
|
|
8926
|
+
className: "flex flex-row items-center gap-2",
|
|
8920
8927
|
variant: "outline",
|
|
8921
8928
|
onClick: props.handleTwitterSignIn
|
|
8922
8929
|
}, /* @__PURE__ */ import_react72.default.createElement(Icons.twitter, {
|
|
8923
|
-
className:
|
|
8924
|
-
}), props.texts.signInViaTwitterLabel)) : null), /* @__PURE__ */ import_react72.default.createElement(InterfaceSettings, {
|
|
8930
|
+
className: "h-4 w-4"
|
|
8931
|
+
}), !props.logosOnly && props.texts.signInViaTwitterLabel)) : null), /* @__PURE__ */ import_react72.default.createElement(InterfaceSettings, {
|
|
8925
8932
|
currentColorMode: props.currentColorMode,
|
|
8926
8933
|
currentLanguage: props.currentLanguage,
|
|
8927
8934
|
handleColorMode: props.handleColorMode,
|
|
@@ -8978,7 +8985,6 @@ function SignInBlock() {
|
|
|
8978
8985
|
// src/blocks/AuthForms/SignUpForm.tsx
|
|
8979
8986
|
var import_react73 = __toESM(require("react"));
|
|
8980
8987
|
var import_react_hook_form4 = require("react-hook-form");
|
|
8981
|
-
var import_clsx34 = __toESM(require("clsx"));
|
|
8982
8988
|
var SignUpForm = function(props) {
|
|
8983
8989
|
var methods = (0, import_react_hook_form4.useForm)();
|
|
8984
8990
|
var errors = methods.formState.errors, handleSubmit = methods.handleSubmit, control = methods.control;
|
|
@@ -9203,23 +9209,26 @@ var SignUpForm = function(props) {
|
|
|
9203
9209
|
onClick: props.handleRouteToSignIn,
|
|
9204
9210
|
className: "clickable-link"
|
|
9205
9211
|
}, props.texts.signInText)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react73.default.createElement(CardFooter, {
|
|
9206
|
-
className: "grid grid-cols-1 gap-2
|
|
9212
|
+
className: cn(props.logosOnly ? "flex flex-row justify-center gap-2" : "grid grid-cols-1 gap-2")
|
|
9207
9213
|
}, props.viaGoogle && /* @__PURE__ */ import_react73.default.createElement(Button, {
|
|
9214
|
+
className: "flex flex-row items-center gap-2",
|
|
9208
9215
|
variant: "outline",
|
|
9209
9216
|
onClick: props.handleGoogleSignUp
|
|
9210
9217
|
}, /* @__PURE__ */ import_react73.default.createElement(Icons.google, {
|
|
9211
|
-
className:
|
|
9212
|
-
}), props.texts.signUpViaGoogleLabel), props.viaGithub && /* @__PURE__ */ import_react73.default.createElement(Button, {
|
|
9218
|
+
className: "h-4 w-4"
|
|
9219
|
+
}), !props.logosOnly && props.texts.signUpViaGoogleLabel), props.viaGithub && /* @__PURE__ */ import_react73.default.createElement(Button, {
|
|
9220
|
+
className: "flex flex-row items-center gap-2",
|
|
9213
9221
|
variant: "outline",
|
|
9214
9222
|
onClick: props.handleGithubSignUp
|
|
9215
9223
|
}, /* @__PURE__ */ import_react73.default.createElement(Icons.gitHub, {
|
|
9216
|
-
className:
|
|
9217
|
-
}), props.texts.signUpViaGithubLabel), props.viaTwitter && /* @__PURE__ */ import_react73.default.createElement(Button, {
|
|
9224
|
+
className: "h-4 w-4"
|
|
9225
|
+
}), !props.logosOnly && props.texts.signUpViaGithubLabel), props.viaTwitter && /* @__PURE__ */ import_react73.default.createElement(Button, {
|
|
9226
|
+
className: "flex flex-row items-center gap-2",
|
|
9218
9227
|
variant: "outline",
|
|
9219
9228
|
onClick: props.handleTwitterSignUp
|
|
9220
9229
|
}, /* @__PURE__ */ import_react73.default.createElement(Icons.twitter, {
|
|
9221
|
-
className:
|
|
9222
|
-
}), props.texts.signUpViaTwitterLabel)) : null), /* @__PURE__ */ import_react73.default.createElement(InterfaceSettings, {
|
|
9230
|
+
className: "h-4 w-4"
|
|
9231
|
+
}), !props.logosOnly && props.texts.signUpViaTwitterLabel)) : null), /* @__PURE__ */ import_react73.default.createElement(InterfaceSettings, {
|
|
9223
9232
|
currentColorMode: props.currentColorMode,
|
|
9224
9233
|
currentLanguage: props.currentLanguage,
|
|
9225
9234
|
handleColorMode: props.handleColorMode,
|
|
@@ -10024,7 +10033,7 @@ var ComparingPlans = function(props) {
|
|
|
10024
10033
|
};
|
|
10025
10034
|
// src/blocks/Pricing/HorizontalPricing.tsx
|
|
10026
10035
|
var import_react85 = __toESM(require("react"));
|
|
10027
|
-
var
|
|
10036
|
+
var import_clsx33 = __toESM(require("clsx"));
|
|
10028
10037
|
var HorizontalPricing = function(props) {
|
|
10029
10038
|
var _ref = _sliced_to_array((0, import_react85.useState)(null), 2), selectedCard = _ref[0], setSelectedCard = _ref[1];
|
|
10030
10039
|
var data = [
|
|
@@ -10071,7 +10080,7 @@ var HorizontalPricing = function(props) {
|
|
|
10071
10080
|
id: d.title,
|
|
10072
10081
|
className: "peer appearance-none"
|
|
10073
10082
|
}), /* @__PURE__ */ import_react85.default.createElement("div", {
|
|
10074
|
-
className: (0,
|
|
10083
|
+
className: (0, import_clsx33.default)(selectedCard === d.title ? "peer-checked:border-blue-500" : "", "peer flex cursor-pointer items-center justify-between rounded-xl border bg-background px-5 py-4 shadow dark:text-white peer-checked:[&_.active]:block peer-checked:[&_.default]:hidden")
|
|
10075
10084
|
}, /* @__PURE__ */ import_react85.default.createElement("div", {
|
|
10076
10085
|
className: "peer flex items-center gap-4"
|
|
10077
10086
|
}, /* @__PURE__ */ import_react85.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react85.default.createElement(CardText, {
|
package/dist/index.mjs
CHANGED
|
@@ -8883,117 +8883,6 @@ var UserSettingsForm = (props) => {
|
|
|
8883
8883
|
|
|
8884
8884
|
// src/blocks/AuthForms/AppLanding.tsx
|
|
8885
8885
|
import React84 from "react";
|
|
8886
|
-
var AppLanding = (props) => {
|
|
8887
|
-
return /* @__PURE__ */ React84.createElement("div", null, /* @__PURE__ */ React84.createElement(Card, null, /* @__PURE__ */ React84.createElement(CardContent, { headless: true, className: "flex flex-col gap-6" }, props.handleSignIn && /* @__PURE__ */ React84.createElement(Button, { onClick: props.handleSignIn }, props.texts.signIn), props.handleSignUp && /* @__PURE__ */ React84.createElement(Button, { onClick: props.handleSignUp }, props.texts.signUp))), /* @__PURE__ */ React84.createElement("div", { className: "mt-6 flex flex-row justify-between" }, /* @__PURE__ */ React84.createElement(
|
|
8888
|
-
HawaRadio,
|
|
8889
|
-
{
|
|
8890
|
-
onChangeTab: props.handleLanguage,
|
|
8891
|
-
design: "tabs",
|
|
8892
|
-
options: [
|
|
8893
|
-
{ value: "ar", label: "\u0639\u0631\u0628\u064A" },
|
|
8894
|
-
{ value: "en", label: "English" }
|
|
8895
|
-
]
|
|
8896
|
-
}
|
|
8897
|
-
), /* @__PURE__ */ React84.createElement(
|
|
8898
|
-
HawaRadio,
|
|
8899
|
-
{
|
|
8900
|
-
onChangeTab: props.handleColorMode,
|
|
8901
|
-
design: "tabs",
|
|
8902
|
-
options: [
|
|
8903
|
-
{
|
|
8904
|
-
value: "light",
|
|
8905
|
-
label: /* @__PURE__ */ React84.createElement(
|
|
8906
|
-
"svg",
|
|
8907
|
-
{
|
|
8908
|
-
width: "15",
|
|
8909
|
-
height: "15",
|
|
8910
|
-
viewBox: "0 0 15 15",
|
|
8911
|
-
fill: "none",
|
|
8912
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8913
|
-
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
8914
|
-
},
|
|
8915
|
-
/* @__PURE__ */ React84.createElement(
|
|
8916
|
-
"path",
|
|
8917
|
-
{
|
|
8918
|
-
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
8919
|
-
fill: "currentColor",
|
|
8920
|
-
fillRule: "evenodd",
|
|
8921
|
-
clipRule: "evenodd"
|
|
8922
|
-
}
|
|
8923
|
-
)
|
|
8924
|
-
)
|
|
8925
|
-
},
|
|
8926
|
-
{
|
|
8927
|
-
value: "dark",
|
|
8928
|
-
label: /* @__PURE__ */ React84.createElement(
|
|
8929
|
-
"svg",
|
|
8930
|
-
{
|
|
8931
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8932
|
-
width: "24",
|
|
8933
|
-
height: "24",
|
|
8934
|
-
viewBox: "0 0 24 24",
|
|
8935
|
-
fill: "none",
|
|
8936
|
-
stroke: "currentColor",
|
|
8937
|
-
strokeWidth: "2",
|
|
8938
|
-
strokeLinecap: "round",
|
|
8939
|
-
strokeLinejoin: "round",
|
|
8940
|
-
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
8941
|
-
},
|
|
8942
|
-
/* @__PURE__ */ React84.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
8943
|
-
)
|
|
8944
|
-
}
|
|
8945
|
-
]
|
|
8946
|
-
}
|
|
8947
|
-
)));
|
|
8948
|
-
};
|
|
8949
|
-
|
|
8950
|
-
// src/blocks/AuthForms/SignInPhone.tsx
|
|
8951
|
-
import React85, { useState as useState41 } from "react";
|
|
8952
|
-
import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
|
|
8953
|
-
var SignInPhone = (props) => {
|
|
8954
|
-
const methods = useForm2();
|
|
8955
|
-
const {
|
|
8956
|
-
formState: { errors },
|
|
8957
|
-
handleSubmit,
|
|
8958
|
-
control
|
|
8959
|
-
} = methods;
|
|
8960
|
-
const [userPhone, setUserPhone] = useState41("");
|
|
8961
|
-
return /* @__PURE__ */ React85.createElement(Card, null, /* @__PURE__ */ React85.createElement(CardContent, { headless: true }, /* @__PURE__ */ React85.createElement(
|
|
8962
|
-
"form",
|
|
8963
|
-
{
|
|
8964
|
-
onSubmit: (e) => {
|
|
8965
|
-
e.preventDefault();
|
|
8966
|
-
props.handleSignIn(userPhone);
|
|
8967
|
-
}
|
|
8968
|
-
},
|
|
8969
|
-
/* @__PURE__ */ React85.createElement(
|
|
8970
|
-
Controller2,
|
|
8971
|
-
{
|
|
8972
|
-
control,
|
|
8973
|
-
name: "phone",
|
|
8974
|
-
render: ({ field }) => /* @__PURE__ */ React85.createElement(
|
|
8975
|
-
HawaPhoneInput,
|
|
8976
|
-
{
|
|
8977
|
-
country: props.country ?? "",
|
|
8978
|
-
label: props.label ?? "",
|
|
8979
|
-
handleChange: (e) => setUserPhone(e.target.value),
|
|
8980
|
-
...field
|
|
8981
|
-
}
|
|
8982
|
-
),
|
|
8983
|
-
rules: {
|
|
8984
|
-
required: props.phoneRequiredText
|
|
8985
|
-
}
|
|
8986
|
-
}
|
|
8987
|
-
),
|
|
8988
|
-
/* @__PURE__ */ React85.createElement("div", { className: "mt-2" }),
|
|
8989
|
-
/* @__PURE__ */ React85.createElement(Button, { className: "w-full" }, props.SignInButtonText)
|
|
8990
|
-
)));
|
|
8991
|
-
};
|
|
8992
|
-
|
|
8993
|
-
// src/blocks/AuthForms/SignInForm.tsx
|
|
8994
|
-
import React86 from "react";
|
|
8995
|
-
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
|
8996
|
-
import clsx33 from "clsx";
|
|
8997
8886
|
|
|
8998
8887
|
// src/elements/Icons.tsx
|
|
8999
8888
|
var Icons = {
|
|
@@ -9126,7 +9015,125 @@ var Icons = {
|
|
|
9126
9015
|
)
|
|
9127
9016
|
};
|
|
9128
9017
|
|
|
9018
|
+
// src/blocks/AuthForms/AppLanding.tsx
|
|
9019
|
+
var AppLanding = (props) => {
|
|
9020
|
+
return /* @__PURE__ */ React84.createElement("div", null, /* @__PURE__ */ React84.createElement(Card, null, /* @__PURE__ */ React84.createElement(CardContent, { headless: true, className: "flex flex-col gap-6" }, /* @__PURE__ */ React84.createElement(
|
|
9021
|
+
Button,
|
|
9022
|
+
{
|
|
9023
|
+
className: "flex flex-row items-center gap-2",
|
|
9024
|
+
variant: "outline"
|
|
9025
|
+
},
|
|
9026
|
+
/* @__PURE__ */ React84.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9027
|
+
"Continue With Google"
|
|
9028
|
+
), props.handleSignIn && /* @__PURE__ */ React84.createElement(Button, { onClick: props.handleSignIn }, props.texts.signIn), props.handleSignUp && /* @__PURE__ */ React84.createElement(Button, { onClick: props.handleSignUp }, props.texts.signUp))), /* @__PURE__ */ React84.createElement("div", { className: "mt-6 flex flex-row justify-between" }, /* @__PURE__ */ React84.createElement(
|
|
9029
|
+
HawaRadio,
|
|
9030
|
+
{
|
|
9031
|
+
onChangeTab: props.handleLanguage,
|
|
9032
|
+
design: "tabs",
|
|
9033
|
+
options: [
|
|
9034
|
+
{ value: "ar", label: "\u0639\u0631\u0628\u064A" },
|
|
9035
|
+
{ value: "en", label: "English" }
|
|
9036
|
+
]
|
|
9037
|
+
}
|
|
9038
|
+
), /* @__PURE__ */ React84.createElement(
|
|
9039
|
+
HawaRadio,
|
|
9040
|
+
{
|
|
9041
|
+
onChangeTab: props.handleColorMode,
|
|
9042
|
+
design: "tabs",
|
|
9043
|
+
options: [
|
|
9044
|
+
{
|
|
9045
|
+
value: "light",
|
|
9046
|
+
label: /* @__PURE__ */ React84.createElement(
|
|
9047
|
+
"svg",
|
|
9048
|
+
{
|
|
9049
|
+
width: "15",
|
|
9050
|
+
height: "15",
|
|
9051
|
+
viewBox: "0 0 15 15",
|
|
9052
|
+
fill: "none",
|
|
9053
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9054
|
+
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
9055
|
+
},
|
|
9056
|
+
/* @__PURE__ */ React84.createElement(
|
|
9057
|
+
"path",
|
|
9058
|
+
{
|
|
9059
|
+
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
9060
|
+
fill: "currentColor",
|
|
9061
|
+
fillRule: "evenodd",
|
|
9062
|
+
clipRule: "evenodd"
|
|
9063
|
+
}
|
|
9064
|
+
)
|
|
9065
|
+
)
|
|
9066
|
+
},
|
|
9067
|
+
{
|
|
9068
|
+
value: "dark",
|
|
9069
|
+
label: /* @__PURE__ */ React84.createElement(
|
|
9070
|
+
"svg",
|
|
9071
|
+
{
|
|
9072
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9073
|
+
width: "24",
|
|
9074
|
+
height: "24",
|
|
9075
|
+
viewBox: "0 0 24 24",
|
|
9076
|
+
fill: "none",
|
|
9077
|
+
stroke: "currentColor",
|
|
9078
|
+
strokeWidth: "2",
|
|
9079
|
+
strokeLinecap: "round",
|
|
9080
|
+
strokeLinejoin: "round",
|
|
9081
|
+
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
9082
|
+
},
|
|
9083
|
+
/* @__PURE__ */ React84.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
9084
|
+
)
|
|
9085
|
+
}
|
|
9086
|
+
]
|
|
9087
|
+
}
|
|
9088
|
+
)));
|
|
9089
|
+
};
|
|
9090
|
+
|
|
9091
|
+
// src/blocks/AuthForms/SignInPhone.tsx
|
|
9092
|
+
import React85, { useState as useState41 } from "react";
|
|
9093
|
+
import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
|
|
9094
|
+
var SignInPhone = (props) => {
|
|
9095
|
+
const methods = useForm2();
|
|
9096
|
+
const {
|
|
9097
|
+
formState: { errors },
|
|
9098
|
+
handleSubmit,
|
|
9099
|
+
control
|
|
9100
|
+
} = methods;
|
|
9101
|
+
const [userPhone, setUserPhone] = useState41("");
|
|
9102
|
+
return /* @__PURE__ */ React85.createElement(Card, null, /* @__PURE__ */ React85.createElement(CardContent, { headless: true }, /* @__PURE__ */ React85.createElement(
|
|
9103
|
+
"form",
|
|
9104
|
+
{
|
|
9105
|
+
onSubmit: (e) => {
|
|
9106
|
+
e.preventDefault();
|
|
9107
|
+
props.handleSignIn(userPhone);
|
|
9108
|
+
}
|
|
9109
|
+
},
|
|
9110
|
+
/* @__PURE__ */ React85.createElement(
|
|
9111
|
+
Controller2,
|
|
9112
|
+
{
|
|
9113
|
+
control,
|
|
9114
|
+
name: "phone",
|
|
9115
|
+
render: ({ field }) => /* @__PURE__ */ React85.createElement(
|
|
9116
|
+
HawaPhoneInput,
|
|
9117
|
+
{
|
|
9118
|
+
country: props.country ?? "",
|
|
9119
|
+
label: props.label ?? "",
|
|
9120
|
+
handleChange: (e) => setUserPhone(e.target.value),
|
|
9121
|
+
...field
|
|
9122
|
+
}
|
|
9123
|
+
),
|
|
9124
|
+
rules: {
|
|
9125
|
+
required: props.phoneRequiredText
|
|
9126
|
+
}
|
|
9127
|
+
}
|
|
9128
|
+
),
|
|
9129
|
+
/* @__PURE__ */ React85.createElement("div", { className: "mt-2" }),
|
|
9130
|
+
/* @__PURE__ */ React85.createElement(Button, { className: "w-full" }, props.SignInButtonText)
|
|
9131
|
+
)));
|
|
9132
|
+
};
|
|
9133
|
+
|
|
9129
9134
|
// src/blocks/AuthForms/SignInForm.tsx
|
|
9135
|
+
import React86 from "react";
|
|
9136
|
+
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
|
9130
9137
|
var SignInForm = (props) => {
|
|
9131
9138
|
const {
|
|
9132
9139
|
formState: { errors },
|
|
@@ -9228,38 +9235,51 @@ var SignInForm = (props) => {
|
|
|
9228
9235
|
className: "mb-3 w-fit cursor-pointer text-xs dark:text-gray-300"
|
|
9229
9236
|
},
|
|
9230
9237
|
props.texts.forgotPasswordText
|
|
9231
|
-
)), /* @__PURE__ */ React86.createElement(Button, { className: "w-full
|
|
9238
|
+
)), /* @__PURE__ */ React86.createElement(Button, { className: "mt-4 w-full", isLoading: props.isLoading }, props.texts.signInText), !props.withoutSignUp && /* @__PURE__ */ React86.createElement("div", { className: "p-3 text-center text-sm font-semibold dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React86.createElement(
|
|
9232
9239
|
"span",
|
|
9233
9240
|
{
|
|
9234
9241
|
onClick: props.handleRouteToSignUp,
|
|
9235
9242
|
className: "clickable-link"
|
|
9236
9243
|
},
|
|
9237
9244
|
props.texts.createAccount
|
|
9238
|
-
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React86.createElement(
|
|
9239
|
-
|
|
9240
|
-
{
|
|
9241
|
-
className: clsx33(
|
|
9242
|
-
"h-4 w-4",
|
|
9243
|
-
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9244
|
-
)
|
|
9245
|
-
}
|
|
9246
|
-
), props.texts.signInViaGoogleLabel), props.viaGithub && /* @__PURE__ */ React86.createElement(Button, { variant: "outline", onClick: props.handleGithubSignIn }, /* @__PURE__ */ React86.createElement(
|
|
9247
|
-
Icons.gitHub,
|
|
9248
|
-
{
|
|
9249
|
-
className: clsx33(
|
|
9250
|
-
"h-4 w-4",
|
|
9251
|
-
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9252
|
-
)
|
|
9253
|
-
}
|
|
9254
|
-
), props.texts.signInViaGithubLabel), props.viaTwitter && /* @__PURE__ */ React86.createElement(Button, { variant: "outline", onClick: props.handleTwitterSignIn }, /* @__PURE__ */ React86.createElement(
|
|
9255
|
-
Icons.twitter,
|
|
9245
|
+
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React86.createElement(
|
|
9246
|
+
CardFooter,
|
|
9256
9247
|
{
|
|
9257
|
-
className:
|
|
9258
|
-
"
|
|
9259
|
-
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9248
|
+
className: cn(
|
|
9249
|
+
props.logosOnly ? "flex flex-row gap-2 justify-center" : "grid grid-cols-1 gap-2"
|
|
9260
9250
|
)
|
|
9261
|
-
}
|
|
9262
|
-
|
|
9251
|
+
},
|
|
9252
|
+
props.viaGoogle && /* @__PURE__ */ React86.createElement(
|
|
9253
|
+
Button,
|
|
9254
|
+
{
|
|
9255
|
+
className: "flex flex-row items-center gap-2",
|
|
9256
|
+
variant: "outline",
|
|
9257
|
+
onClick: props.handleGoogleSignIn
|
|
9258
|
+
},
|
|
9259
|
+
/* @__PURE__ */ React86.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9260
|
+
!props.logosOnly && props.texts.signInViaGoogleLabel
|
|
9261
|
+
),
|
|
9262
|
+
props.viaGithub && /* @__PURE__ */ React86.createElement(
|
|
9263
|
+
Button,
|
|
9264
|
+
{
|
|
9265
|
+
className: "flex flex-row items-center gap-2",
|
|
9266
|
+
variant: "outline",
|
|
9267
|
+
onClick: props.handleGithubSignIn
|
|
9268
|
+
},
|
|
9269
|
+
/* @__PURE__ */ React86.createElement(Icons.gitHub, { className: "h-4 w-4" }),
|
|
9270
|
+
!props.logosOnly && props.texts.signInViaGithubLabel
|
|
9271
|
+
),
|
|
9272
|
+
props.viaTwitter && /* @__PURE__ */ React86.createElement(
|
|
9273
|
+
Button,
|
|
9274
|
+
{
|
|
9275
|
+
className: "flex flex-row items-center gap-2",
|
|
9276
|
+
variant: "outline",
|
|
9277
|
+
onClick: props.handleTwitterSignIn
|
|
9278
|
+
},
|
|
9279
|
+
/* @__PURE__ */ React86.createElement(Icons.twitter, { className: "h-4 w-4" }),
|
|
9280
|
+
!props.logosOnly && props.texts.signInViaTwitterLabel
|
|
9281
|
+
)
|
|
9282
|
+
) : null), /* @__PURE__ */ React86.createElement(
|
|
9263
9283
|
InterfaceSettings,
|
|
9264
9284
|
{
|
|
9265
9285
|
currentColorMode: props.currentColorMode,
|
|
@@ -9278,7 +9298,6 @@ function SignInBlock() {
|
|
|
9278
9298
|
// src/blocks/AuthForms/SignUpForm.tsx
|
|
9279
9299
|
import React87 from "react";
|
|
9280
9300
|
import { Controller as Controller4, FormProvider as FormProvider2, useForm as useForm4 } from "react-hook-form";
|
|
9281
|
-
import clsx34 from "clsx";
|
|
9282
9301
|
var SignUpForm = (props) => {
|
|
9283
9302
|
const methods = useForm4();
|
|
9284
9303
|
const {
|
|
@@ -9501,31 +9520,44 @@ var SignUpForm = (props) => {
|
|
|
9501
9520
|
className: "clickable-link"
|
|
9502
9521
|
},
|
|
9503
9522
|
props.texts.signInText
|
|
9504
|
-
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React87.createElement(
|
|
9505
|
-
|
|
9506
|
-
{
|
|
9507
|
-
className: clsx34(
|
|
9508
|
-
"h-4 w-4",
|
|
9509
|
-
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9510
|
-
)
|
|
9511
|
-
}
|
|
9512
|
-
), props.texts.signUpViaGoogleLabel), props.viaGithub && /* @__PURE__ */ React87.createElement(Button, { variant: "outline", onClick: props.handleGithubSignUp }, /* @__PURE__ */ React87.createElement(
|
|
9513
|
-
Icons.gitHub,
|
|
9514
|
-
{
|
|
9515
|
-
className: clsx34(
|
|
9516
|
-
"h-4 w-4",
|
|
9517
|
-
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9518
|
-
)
|
|
9519
|
-
}
|
|
9520
|
-
), props.texts.signUpViaGithubLabel), props.viaTwitter && /* @__PURE__ */ React87.createElement(Button, { variant: "outline", onClick: props.handleTwitterSignUp }, /* @__PURE__ */ React87.createElement(
|
|
9521
|
-
Icons.twitter,
|
|
9523
|
+
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React87.createElement(
|
|
9524
|
+
CardFooter,
|
|
9522
9525
|
{
|
|
9523
|
-
className:
|
|
9524
|
-
"
|
|
9525
|
-
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9526
|
+
className: cn(
|
|
9527
|
+
props.logosOnly ? "flex flex-row justify-center gap-2" : "grid grid-cols-1 gap-2"
|
|
9526
9528
|
)
|
|
9527
|
-
}
|
|
9528
|
-
|
|
9529
|
+
},
|
|
9530
|
+
props.viaGoogle && /* @__PURE__ */ React87.createElement(
|
|
9531
|
+
Button,
|
|
9532
|
+
{
|
|
9533
|
+
className: "flex flex-row items-center gap-2",
|
|
9534
|
+
variant: "outline",
|
|
9535
|
+
onClick: props.handleGoogleSignUp
|
|
9536
|
+
},
|
|
9537
|
+
/* @__PURE__ */ React87.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9538
|
+
!props.logosOnly && props.texts.signUpViaGoogleLabel
|
|
9539
|
+
),
|
|
9540
|
+
props.viaGithub && /* @__PURE__ */ React87.createElement(
|
|
9541
|
+
Button,
|
|
9542
|
+
{
|
|
9543
|
+
className: "flex flex-row items-center gap-2",
|
|
9544
|
+
variant: "outline",
|
|
9545
|
+
onClick: props.handleGithubSignUp
|
|
9546
|
+
},
|
|
9547
|
+
/* @__PURE__ */ React87.createElement(Icons.gitHub, { className: "h-4 w-4" }),
|
|
9548
|
+
!props.logosOnly && props.texts.signUpViaGithubLabel
|
|
9549
|
+
),
|
|
9550
|
+
props.viaTwitter && /* @__PURE__ */ React87.createElement(
|
|
9551
|
+
Button,
|
|
9552
|
+
{
|
|
9553
|
+
className: "flex flex-row items-center gap-2",
|
|
9554
|
+
variant: "outline",
|
|
9555
|
+
onClick: props.handleTwitterSignUp
|
|
9556
|
+
},
|
|
9557
|
+
/* @__PURE__ */ React87.createElement(Icons.twitter, { className: "h-4 w-4" }),
|
|
9558
|
+
!props.logosOnly && props.texts.signUpViaTwitterLabel
|
|
9559
|
+
)
|
|
9560
|
+
) : null), /* @__PURE__ */ React87.createElement(
|
|
9529
9561
|
InterfaceSettings,
|
|
9530
9562
|
{
|
|
9531
9563
|
currentColorMode: props.currentColorMode,
|
|
@@ -10287,7 +10319,7 @@ var ComparingPlans = (props) => {
|
|
|
10287
10319
|
|
|
10288
10320
|
// src/blocks/Pricing/HorizontalPricing.tsx
|
|
10289
10321
|
import React99, { useState as useState47 } from "react";
|
|
10290
|
-
import
|
|
10322
|
+
import clsx33 from "clsx";
|
|
10291
10323
|
var HorizontalPricing = (props) => {
|
|
10292
10324
|
const [selectedCard, setSelectedCard] = useState47(null);
|
|
10293
10325
|
let data = [
|
|
@@ -10328,7 +10360,7 @@ var HorizontalPricing = (props) => {
|
|
|
10328
10360
|
/* @__PURE__ */ React99.createElement(
|
|
10329
10361
|
"div",
|
|
10330
10362
|
{
|
|
10331
|
-
className:
|
|
10363
|
+
className: clsx33(
|
|
10332
10364
|
selectedCard === d.title ? "peer-checked:border-blue-500" : "",
|
|
10333
10365
|
"peer flex cursor-pointer items-center justify-between rounded-xl border bg-background px-5 py-4 shadow dark:text-white peer-checked:[&_.active]:block peer-checked:[&_.default]:hidden"
|
|
10334
10366
|
)
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import React, { FC } from "react"
|
|
|
2
2
|
import { HawaRadio } from "../../elements"
|
|
3
3
|
import { Card, CardContent } from "../../elements/Card"
|
|
4
4
|
import { Button } from "../../elements/Button"
|
|
5
|
+
import { Icons } from "../../elements/Icons"
|
|
5
6
|
|
|
6
7
|
type AppLandingTypes = {
|
|
7
8
|
handleSignIn: () => void
|
|
@@ -15,13 +16,26 @@ type AppLandingTypes = {
|
|
|
15
16
|
}
|
|
16
17
|
size: "small" | "normal" | "full"
|
|
17
18
|
}
|
|
19
|
+
|
|
20
|
+
//TODO: update Google auth button
|
|
18
21
|
export const AppLanding: FC<AppLandingTypes> = (props) => {
|
|
19
22
|
return (
|
|
20
23
|
<div>
|
|
21
24
|
<Card>
|
|
22
25
|
<CardContent headless className="flex flex-col gap-6">
|
|
26
|
+
<Button
|
|
27
|
+
className="flex flex-row items-center gap-2"
|
|
28
|
+
variant="outline"
|
|
29
|
+
// onClick={props.handleGoogleSignIn}
|
|
30
|
+
>
|
|
31
|
+
<Icons.google className="h-4 w-4" />
|
|
32
|
+
{/* {!props.logosOnly && props.texts.signInViaGoogleLabel} */}
|
|
33
|
+
Continue With Google
|
|
34
|
+
</Button>
|
|
35
|
+
|
|
23
36
|
{props.handleSignIn && (
|
|
24
37
|
<Button onClick={props.handleSignIn}>{props.texts.signIn}</Button>
|
|
38
|
+
// <Button onClick={props.handleSignIn}>Continue With Google</Button>
|
|
25
39
|
)}
|
|
26
40
|
{props.handleSignUp && (
|
|
27
41
|
<Button onClick={props.handleSignUp}>{props.texts.signUp}</Button>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React, { FC } from "react"
|
|
2
2
|
import { Controller, useForm } from "react-hook-form"
|
|
3
|
-
import clsx from "clsx"
|
|
4
|
-
|
|
5
3
|
import {
|
|
6
4
|
HawaTextField,
|
|
7
5
|
HawaAlert,
|
|
@@ -11,6 +9,7 @@ import {
|
|
|
11
9
|
import { Card, CardContent, CardFooter } from "../../elements/Card"
|
|
12
10
|
import { Button } from "../../elements/Button"
|
|
13
11
|
import { Icons } from "../../elements/Icons"
|
|
12
|
+
import { cn } from "../../util"
|
|
14
13
|
|
|
15
14
|
export const SignInForm: FC<SignInFormTypes> = (props) => {
|
|
16
15
|
const {
|
|
@@ -132,7 +131,7 @@ export const SignInForm: FC<SignInFormTypes> = (props) => {
|
|
|
132
131
|
</>
|
|
133
132
|
)}
|
|
134
133
|
|
|
135
|
-
<Button className="w-full
|
|
134
|
+
<Button className="mt-4 w-full" isLoading={props.isLoading}>
|
|
136
135
|
{props.texts.signInText}
|
|
137
136
|
</Button>
|
|
138
137
|
{!props.withoutSignUp && (
|
|
@@ -151,38 +150,39 @@ export const SignInForm: FC<SignInFormTypes> = (props) => {
|
|
|
151
150
|
|
|
152
151
|
{/* 3rd Party Sign Auth Buttons */}
|
|
153
152
|
{props.viaGithub || props.viaGoogle || props.viaTwitter ? (
|
|
154
|
-
<CardFooter
|
|
153
|
+
<CardFooter
|
|
154
|
+
className={cn(
|
|
155
|
+
props.logosOnly ? "flex flex-row gap-2 justify-center" : "grid grid-cols-1 gap-2"
|
|
156
|
+
)}
|
|
157
|
+
>
|
|
155
158
|
{props.viaGoogle && (
|
|
156
|
-
<Button
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
{props.texts.signInViaGoogleLabel}
|
|
159
|
+
<Button
|
|
160
|
+
className="flex flex-row items-center gap-2"
|
|
161
|
+
variant="outline"
|
|
162
|
+
onClick={props.handleGoogleSignIn}
|
|
163
|
+
>
|
|
164
|
+
<Icons.google className="h-4 w-4" />
|
|
165
|
+
{!props.logosOnly && props.texts.signInViaGoogleLabel}
|
|
164
166
|
</Button>
|
|
165
167
|
)}
|
|
166
168
|
{props.viaGithub && (
|
|
167
|
-
<Button
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
{props.texts.signInViaGithubLabel}
|
|
169
|
+
<Button
|
|
170
|
+
className="flex flex-row items-center gap-2"
|
|
171
|
+
variant="outline"
|
|
172
|
+
onClick={props.handleGithubSignIn}
|
|
173
|
+
>
|
|
174
|
+
<Icons.gitHub className="h-4 w-4" />
|
|
175
|
+
{!props.logosOnly && props.texts.signInViaGithubLabel}
|
|
175
176
|
</Button>
|
|
176
177
|
)}
|
|
177
178
|
{props.viaTwitter && (
|
|
178
|
-
<Button
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
{props.texts.signInViaTwitterLabel}
|
|
179
|
+
<Button
|
|
180
|
+
className="flex flex-row items-center gap-2"
|
|
181
|
+
variant="outline"
|
|
182
|
+
onClick={props.handleTwitterSignIn}
|
|
183
|
+
>
|
|
184
|
+
<Icons.twitter className="h-4 w-4" />
|
|
185
|
+
{!props.logosOnly && props.texts.signInViaTwitterLabel}
|
|
186
186
|
</Button>
|
|
187
187
|
)}
|
|
188
188
|
</CardFooter>
|
|
@@ -203,6 +203,7 @@ type SignInFormTypes = {
|
|
|
203
203
|
currentLanguage?: any
|
|
204
204
|
handleColorMode?: () => void
|
|
205
205
|
currentColorMode?: any
|
|
206
|
+
logosOnly?: boolean
|
|
206
207
|
direction?: "rtl" | "ltr"
|
|
207
208
|
showError?: any
|
|
208
209
|
errorTitle?: string
|
|
@@ -10,7 +10,7 @@ import { Controller, FormProvider, useForm } from "react-hook-form"
|
|
|
10
10
|
import { Card, CardContent, CardFooter } from "../../elements/Card"
|
|
11
11
|
import { Button } from "../../elements/Button"
|
|
12
12
|
import { Icons } from "../../elements/Icons"
|
|
13
|
-
import
|
|
13
|
+
import { cn } from "../../util"
|
|
14
14
|
|
|
15
15
|
type SignUpFormTypes = {
|
|
16
16
|
handleLanguage?: () => void
|
|
@@ -18,6 +18,7 @@ type SignUpFormTypes = {
|
|
|
18
18
|
handleColorMode?: () => void
|
|
19
19
|
currentColorMode?: any
|
|
20
20
|
direction?: "rtl" | "ltr"
|
|
21
|
+
logosOnly?: boolean
|
|
21
22
|
texts: {
|
|
22
23
|
fullNameLabel: string
|
|
23
24
|
fullNamePlaceholder: string
|
|
@@ -307,38 +308,41 @@ export const SignUpForm: FC<SignUpFormTypes> = (props) => {
|
|
|
307
308
|
</CardContent>
|
|
308
309
|
|
|
309
310
|
{props.viaGithub || props.viaGoogle || props.viaTwitter ? (
|
|
310
|
-
<CardFooter
|
|
311
|
+
<CardFooter
|
|
312
|
+
className={cn(
|
|
313
|
+
props.logosOnly
|
|
314
|
+
? "flex flex-row justify-center gap-2"
|
|
315
|
+
: "grid grid-cols-1 gap-2"
|
|
316
|
+
)}
|
|
317
|
+
>
|
|
311
318
|
{props.viaGoogle && (
|
|
312
|
-
<Button
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
{props.texts.signUpViaGoogleLabel}
|
|
319
|
+
<Button
|
|
320
|
+
className="flex flex-row items-center gap-2"
|
|
321
|
+
variant="outline"
|
|
322
|
+
onClick={props.handleGoogleSignUp}
|
|
323
|
+
>
|
|
324
|
+
<Icons.google className="h-4 w-4" />
|
|
325
|
+
{!props.logosOnly && props.texts.signUpViaGoogleLabel}
|
|
320
326
|
</Button>
|
|
321
327
|
)}
|
|
322
328
|
{props.viaGithub && (
|
|
323
|
-
<Button
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
{props.texts.signUpViaGithubLabel}
|
|
329
|
+
<Button
|
|
330
|
+
className="flex flex-row items-center gap-2"
|
|
331
|
+
variant="outline"
|
|
332
|
+
onClick={props.handleGithubSignUp}
|
|
333
|
+
>
|
|
334
|
+
<Icons.gitHub className="h-4 w-4" />
|
|
335
|
+
{!props.logosOnly && props.texts.signUpViaGithubLabel}
|
|
331
336
|
</Button>
|
|
332
337
|
)}
|
|
333
338
|
{props.viaTwitter && (
|
|
334
|
-
<Button
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
{props.texts.signUpViaTwitterLabel}
|
|
339
|
+
<Button
|
|
340
|
+
className="flex flex-row items-center gap-2"
|
|
341
|
+
variant="outline"
|
|
342
|
+
onClick={props.handleTwitterSignUp}
|
|
343
|
+
>
|
|
344
|
+
<Icons.twitter className="h-4 w-4" />
|
|
345
|
+
{!props.logosOnly && props.texts.signUpViaTwitterLabel}
|
|
342
346
|
</Button>
|
|
343
347
|
)}
|
|
344
348
|
</CardFooter>
|