@sikka/hawa 0.0.116 → 0.0.117

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -10,43 +10,43 @@ import { Controller, useForm } from "react-hook-form"
10
10
  import { HawaContainer } from "../../layout"
11
11
 
12
12
  type SignInFormTypes = {
13
- showError: any
14
- errorTitle: string
15
- errorText: string
16
- signInType: "email" | "username" | "phone"
17
- texts: {
18
- emailLabel: string
19
- emailPlaceholder: string
20
- emailRequiredText: string
21
- emailInvalidText: string
22
- usernameLabel: string
23
- usernamePlaceholder: string
24
- usernameRequired: string
25
- usernameRequiredText: string
26
- phoneRequiredText: string
27
- passwordLabel: string
28
- passwordPlaceholder: string
29
- passwordRequiredText: string
30
- forgotPasswordText: string
31
- newUserText: string
32
- signUpText: string
33
- signInText: string
34
- googleButtonLabel: string
35
- githubButtonLabel: string
36
- twitterButtonLabel: string
13
+ showError?: any
14
+ errorTitle?: string
15
+ errorText?: string
16
+ signInType?: "email" | "username" | "phone"
17
+ texts?: {
18
+ emailLabel?: string
19
+ emailPlaceholder?: string
20
+ emailRequiredText?: string
21
+ emailInvalidText?: string
22
+ usernameLabel?: string
23
+ usernamePlaceholder?: string
24
+ usernameRequired?: string
25
+ usernameRequiredText?: string
26
+ phoneRequiredText?: string
27
+ passwordLabel?: string
28
+ passwordPlaceholder?: string
29
+ passwordRequiredText?: string
30
+ forgotPasswordText?: string
31
+ newUserText?: string
32
+ signUpText?: string
33
+ signInText?: string
34
+ googleButtonLabel?: string
35
+ githubButtonLabel?: string
36
+ twitterButtonLabel?: string
37
37
  }
38
- withoutResetPassword: boolean
39
- withoutSignUp: boolean
40
- isLoading: any
41
- viaGoogle: boolean
42
- viaGithub: boolean
43
- viaTwitter: boolean
44
- handleSignIn: (e: any) => void
45
- handleRouteToSignUp: () => void
46
- handleForgotPassword: () => void
47
- handleGoogleSignIn: () => void
48
- handleGithubSignIn: () => void
49
- handleTwitterSignIn: () => void
38
+ withoutResetPassword?: boolean
39
+ withoutSignUp?: boolean
40
+ isLoading?: any
41
+ viaGoogle?: boolean
42
+ viaGithub?: boolean
43
+ viaTwitter?: boolean
44
+ handleSignIn?: (e: any) => void
45
+ handleRouteToSignUp?: () => void
46
+ handleForgotPassword?: () => void
47
+ handleGoogleSignIn?: () => void
48
+ handleGithubSignIn?: () => void
49
+ handleTwitterSignIn?: () => void
50
50
  }
51
51
 
52
52
  export const SignInForm: React.FunctionComponent<SignInFormTypes> = (props) => {
@@ -1,6 +1,6 @@
1
1
  import clsx from "clsx"
2
2
  import React, { useState } from "react"
3
- import { FaAddressCard } from "react-icons/fa"
3
+
4
4
  type HawaAppLayoutTypes = {
5
5
  logoLink: string
6
6
  username: string
@@ -14,32 +14,41 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = (
14
14
 
15
15
  return (
16
16
  <div className="fixed top-0 left-0 m-0 w-full p-0">
17
- {/* navbar */}
18
- <div className="m-0 flex flex-row justify-between bg-red-300 p-2">
19
- <div>logo</div>
20
- <div>page title</div>
21
- <div className="relative mr-2 h-10 w-10 overflow-hidden rounded-full bg-gray-100 dark:bg-gray-600">
22
- <AvatarIcon />
23
- </div>
24
- </div>
25
-
26
- {/* side menu */}
27
17
  <div
28
18
  onMouseEnter={() => setOpenSideMenu(true)}
29
19
  onMouseLeave={() => setOpenSideMenu(false)}
30
- className="fixed top-0 flex h-full w-10 flex-col gap-2 bg-blue-300 transition-all hover:w-60"
20
+ className="absolute top-0 z-10 flex h-screen w-12 flex-col gap-0 bg-blue-300 transition-all hover:w-40"
31
21
  >
22
+ <div className="m-1 bg-red-300 p-2">logo</div>
32
23
  {props.drawerItems.map((dItem) => (
33
- <div className="flex flex-row items-start justify-start bg-yellow-300 p-2">
34
- {dItem.icon}
35
- <div className={clsx(openSideMenu ? "visible" : "invisible")}>
24
+ <div className="pl-3 m-1 flex cursor-pointer flex-row items-center overflow-x-clip rounded-lg bg-orange-400 p-2 transition-all hover:bg-green-300">
25
+ <div className="flex items-center justify-center">{dItem.icon}</div>
26
+ <div
27
+ className={clsx(
28
+ "mx-2 text-sm transition-all",
29
+ openSideMenu ? "opacity-100" : "opacity-0"
30
+ )}
31
+ >
36
32
  {dItem.text}
37
33
  </div>
38
34
  </div>
39
35
  ))}
40
36
  </div>
41
- {/* page content */}
42
- {props.children}
37
+
38
+ {/*
39
+ <div className="relative flex flex-row bg-yellow-300">
40
+ <div className="relative left-10 h-screen w-full bg-orange-300">
41
+ <div className="m-0 flex flex-row justify-between bg-red-300 p-2">
42
+ <div></div>
43
+ <div>page title</div>
44
+ <div className="relative mr-2 h-10 w-10 overflow-hidden rounded-full bg-gray-100 dark:bg-gray-600">
45
+ <AvatarIcon />
46
+ </div>
47
+ </div>
48
+
49
+ <div>{props.children}</div>
50
+ </div>
51
+ </div> */}
43
52
  </div>
44
53
  )
45
54
  }
package/src/styles.css CHANGED
@@ -547,6 +547,9 @@ video {
547
547
  .top-5 {
548
548
  top: 1.25rem;
549
549
  }
550
+ .left-10 {
551
+ left: 2.5rem;
552
+ }
550
553
  .-left-1 {
551
554
  left: -0.25rem;
552
555
  }
@@ -934,9 +937,6 @@ video {
934
937
  .items-stretch {
935
938
  align-items: stretch;
936
939
  }
937
- .justify-start {
938
- justify-content: flex-start;
939
- }
940
940
  .justify-end {
941
941
  justify-content: flex-end;
942
942
  }
@@ -958,6 +958,9 @@ video {
958
958
  .gap-1 {
959
959
  gap: 0.25rem;
960
960
  }
961
+ .gap-0 {
962
+ gap: 0px;
963
+ }
961
964
  .gap-x-3 {
962
965
  -moz-column-gap: 0.75rem;
963
966
  column-gap: 0.75rem;
@@ -1019,6 +1022,9 @@ video {
1019
1022
  .overflow-x-hidden {
1020
1023
  overflow-x: hidden;
1021
1024
  }
1025
+ .overflow-x-clip {
1026
+ overflow-x: clip;
1027
+ }
1022
1028
  .overflow-y-clip {
1023
1029
  overflow-y: clip;
1024
1030
  }
@@ -1300,10 +1306,18 @@ video {
1300
1306
  --tw-bg-opacity: 1;
1301
1307
  background-color: rgb(116 177 251 / var(--tw-bg-opacity));
1302
1308
  }
1309
+ .bg-orange-400 {
1310
+ --tw-bg-opacity: 1;
1311
+ background-color: rgb(251 146 60 / var(--tw-bg-opacity));
1312
+ }
1303
1313
  .bg-yellow-300 {
1304
1314
  --tw-bg-opacity: 1;
1305
1315
  background-color: rgb(253 224 71 / var(--tw-bg-opacity));
1306
1316
  }
1317
+ .bg-orange-300 {
1318
+ --tw-bg-opacity: 1;
1319
+ background-color: rgb(253 186 116 / var(--tw-bg-opacity));
1320
+ }
1307
1321
  .bg-primary-300 {
1308
1322
  --tw-bg-opacity: 1;
1309
1323
  background-color: rgb(156 199 252 / var(--tw-bg-opacity));
@@ -1430,6 +1444,9 @@ video {
1430
1444
  .pl-10 {
1431
1445
  padding-left: 2.5rem;
1432
1446
  }
1447
+ .pl-3 {
1448
+ padding-left: 0.75rem;
1449
+ }
1433
1450
  .pt-0 {
1434
1451
  padding-top: 0px;
1435
1452
  }
@@ -1741,8 +1758,8 @@ body {
1741
1758
  --tw-content: '';
1742
1759
  content: var(--tw-content);
1743
1760
  }
1744
- .hover\:w-60:hover {
1745
- width: 15rem;
1761
+ .hover\:w-40:hover {
1762
+ width: 10rem;
1746
1763
  }
1747
1764
  .hover\:cursor-pointer:hover {
1748
1765
  cursor: pointer;
@@ -1783,6 +1800,10 @@ body {
1783
1800
  --tw-bg-opacity: 1;
1784
1801
  background-color: rgb(29 78 216 / var(--tw-bg-opacity));
1785
1802
  }
1803
+ .hover\:bg-green-300:hover {
1804
+ --tw-bg-opacity: 1;
1805
+ background-color: rgb(134 239 172 / var(--tw-bg-opacity));
1806
+ }
1786
1807
  .hover\:text-gray-900:hover {
1787
1808
  --tw-text-opacity: 1;
1788
1809
  color: rgb(17 24 39 / var(--tw-text-opacity));