@sikka/hawa 0.1.83 → 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.
@@ -57,12 +57,12 @@ jobs:
57
57
  - name: Install Hawa Landing
58
58
  run: |
59
59
  rm -fr /home/cloudpanel/htdocs/hawa.style || true
60
- cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
60
+ cd /var/www/html/sikka-software/_work/Hawa/Hawa/deploy-landing-path/landing
61
61
  rm -fr package-lock.json || true
62
62
  rm -fr node_modules || true
63
63
  npm install
64
64
  npm run build --if-present
65
- 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
66
66
  pm2 stop hawa-landing || true
67
67
  pm2 delete hawa-landing || true
68
68
  pm2 start npm --name "hawa-landing" -- start || true
@@ -84,7 +84,7 @@ jobs:
84
84
  node-version: ${{ matrix.node-version }}
85
85
  - name: Generate Storybook Static Files
86
86
  run: |
87
- cd /var/www/html/sikka-software/_work/Hawa/Hawa
87
+ cd /var/www/html/sikka-software/_work/Hawa/Hawa/build-storybook-path
88
88
  rm -fr package-lock.json || true
89
89
  npm install
90
90
  npm run build-storybook
package/dist/index.js CHANGED
@@ -8537,109 +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
8540
  // src/elements/Icons.tsx
8644
8541
  var Icons = {
8645
8542
  logo: function(props) {
@@ -8796,7 +8693,115 @@ var Icons = {
8796
8693
  }));
8797
8694
  }
8798
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
+ };
8799
8802
  // src/blocks/AuthForms/SignInForm.tsx
8803
+ var import_react72 = __toESM(require("react"));
8804
+ var import_react_hook_form3 = require("react-hook-form");
8800
8805
  var SignInForm = function(props) {
8801
8806
  var _ref = (0, import_react_hook_form3.useForm)(), errors = _ref.formState.errors, handleSubmit = _ref.handleSubmit, control = _ref.control;
8802
8807
  var _field_value, _field_value1;
package/dist/index.mjs CHANGED
@@ -8883,116 +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
8886
 
8997
8887
  // src/elements/Icons.tsx
8998
8888
  var Icons = {
@@ -9125,7 +9015,125 @@ var Icons = {
9125
9015
  )
9126
9016
  };
9127
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
+
9128
9134
  // src/blocks/AuthForms/SignInForm.tsx
9135
+ import React86 from "react";
9136
+ import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
9129
9137
  var SignInForm = (props) => {
9130
9138
  const {
9131
9139
  formState: { errors },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.1.83",
3
+ "version": "0.1.84",
4
4
  "description": "Modern UI Kit made with Tailwind & Radix Primitives",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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>