@sikka/hawa 0.0.170 → 0.0.171

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.170",
3
+ "version": "0.0.171",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -1,7 +1,7 @@
1
1
  import React from "react"
2
2
  import { HawaButton, HawaTextField } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
- import { FaCheck } from "react-icons/fa"
4
+
5
5
  type TNewsletter = {
6
6
  variant?: "outlined" | "contained" | "neobrutalism"
7
7
  texts: {
@@ -3,3 +3,4 @@ export * from "./AuthForms"
3
3
  export * from "./Payment"
4
4
  export * from "./Pricing"
5
5
  export * from "./Referral"
6
+ export * from "./Misc"
@@ -14,7 +14,7 @@ type RadioTypes = {
14
14
  export const HawaRadio: React.FunctionComponent<RadioTypes> = (props) => {
15
15
  const [selectedOption, setSelectedOption] = useState(props.defaultValue)
16
16
  let activeTabStyle =
17
- "inline-block py-2 px-4 w-full text-white bg-blue-600 rounded-lg active"
17
+ "inline-block py-2 px-4 w-full text-white bg-buttonPrimary-default rounded-lg active"
18
18
  let inactiveTabStyle =
19
19
  "inline-block py-2 px-4 w-full bg-gray-100 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"
20
20
 
@@ -32,6 +32,8 @@ type MenuItems = {
32
32
  ) => void
33
33
  isButton?: boolean
34
34
  }
35
+
36
+ // TODO: fix the drawer top when no topbar
35
37
  export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
36
38
  direction = "rtl",
37
39
  ...props
@@ -69,7 +71,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
69
71
  //less than 600
70
72
  //as nothing and expands as button is clicked
71
73
  let ltrDrawerStyle = [
72
- " fixed top-3 left-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-default transition-all",
74
+ " fixed top-0 left-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-default transition-all",
73
75
  size > 600 ? "w-14 hover:w-40" : "w-0",
74
76
  openSideMenu ? "w-40" : "w-14",
75
77
  ]
@@ -170,7 +172,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
170
172
  >
171
173
  <div
172
174
  className={clsx(
173
- // "overflow-hidden",
175
+ props.topBar ? "" : "mt-2",
174
176
  openSideMenu ? "overflow-auto" : "overflow-hidden"
175
177
  )}
176
178
  >
@@ -220,10 +222,8 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
220
222
  : null
221
223
  }
222
224
  onClick={() => {
223
- // if()
224
- const { offsetTop } = drawerItemRef.current
225
- ref.current.scrollTop = offsetTop - 100
226
-
225
+ ref.current.scrollTop =
226
+ drawerItemRef.current?.offsetTop - 100
227
227
  dItem.action()
228
228
  }}
229
229
  className={clsx(
package/src/styles.css CHANGED
@@ -620,9 +620,6 @@ video {
620
620
  .left-8 {
621
621
  left: 2rem;
622
622
  }
623
- .top-3 {
624
- top: 0.75rem;
625
- }
626
623
  .left-14 {
627
624
  left: 3.5rem;
628
625
  }