@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/dist/styles.css +0 -3
- package/es/blocks/index.d.ts +1 -0
- package/es/index.es.js +1 -1
- package/lib/blocks/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/blocks/Misc/Newsletter.tsx +1 -1
- package/src/blocks/index.ts +1 -0
- package/src/elements/HawaRadio.tsx +1 -1
- package/src/layout/HawaAppLayout.tsx +6 -6
- package/src/styles.css +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { HawaButton, HawaTextField } from "../../elements"
|
|
3
3
|
import { HawaContainer } from "../../layout"
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
type TNewsletter = {
|
|
6
6
|
variant?: "outlined" | "contained" | "neobrutalism"
|
|
7
7
|
texts: {
|
package/src/blocks/index.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
224
|
-
|
|
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(
|