@sikka/hawa 0.1.7 → 0.1.8
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 +3 -0
- package/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/layout/HawaAppLayoutSimplified.tsx +6 -6
- package/src/styles.css +3 -0
package/package.json
CHANGED
|
@@ -71,7 +71,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
71
71
|
}, [keepOpen])
|
|
72
72
|
|
|
73
73
|
let drawerDefaultStyle =
|
|
74
|
-
"fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-
|
|
74
|
+
"fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-card transition-all"
|
|
75
75
|
//The width of the drawer when closed
|
|
76
76
|
let closeDrawerWidth = 56
|
|
77
77
|
//The width of the drawer when opened
|
|
@@ -96,7 +96,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
96
96
|
{props.topBar && (
|
|
97
97
|
<div
|
|
98
98
|
className={clsx(
|
|
99
|
-
"fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-
|
|
99
|
+
"fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",
|
|
100
100
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
101
101
|
)}
|
|
102
102
|
>
|
|
@@ -230,7 +230,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
230
230
|
<div
|
|
231
231
|
dir={direction}
|
|
232
232
|
className={clsx(
|
|
233
|
-
"fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-
|
|
233
|
+
"fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all"
|
|
234
234
|
)}
|
|
235
235
|
style={{
|
|
236
236
|
width:
|
|
@@ -271,7 +271,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
271
271
|
<div
|
|
272
272
|
className={clsx(
|
|
273
273
|
// "no-scrollbar", TODO: make this optional to hide scrollbar or not
|
|
274
|
-
"fixed bottom-14 top-14 bg-
|
|
274
|
+
"fixed bottom-14 top-14 bg-primary-foreground py-2 transition-all",
|
|
275
275
|
// bg-yellow-400
|
|
276
276
|
openSideMenu ? "overflow-auto" : "overflow-hidden"
|
|
277
277
|
)}
|
|
@@ -373,7 +373,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
373
373
|
"flex flex-row gap-2 overflow-x-clip rounded-inner p-2 px-2 text-xs",
|
|
374
374
|
isRTL ? "text-right" : "text-left",
|
|
375
375
|
props.currentPage === subIt.slug
|
|
376
|
-
? "bg-buttonPrimary-500 text-white hover:bg-
|
|
376
|
+
? "bg-buttonPrimary-500 text-white hover:bg-primary-foreground"
|
|
377
377
|
: "hover:bg-layoutPrimary-500 dark:text-white"
|
|
378
378
|
)}
|
|
379
379
|
dir={direction}
|
|
@@ -404,7 +404,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
404
404
|
{/* Drawer Footer */}
|
|
405
405
|
<div
|
|
406
406
|
className={clsx(
|
|
407
|
-
"fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-
|
|
407
|
+
"fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",
|
|
408
408
|
|
|
409
409
|
direction === "rtl" ? "flex-row-reverse" : "flex-row"
|
|
410
410
|
)}
|
package/src/styles.css
CHANGED
|
@@ -2832,6 +2832,9 @@ body {
|
|
|
2832
2832
|
.hover\:bg-primary:hover {
|
|
2833
2833
|
background-color: hsl(var(--primary));
|
|
2834
2834
|
}
|
|
2835
|
+
.hover\:bg-primary-foreground:hover {
|
|
2836
|
+
background-color: hsl(var(--primary-foreground));
|
|
2837
|
+
}
|
|
2835
2838
|
.hover\:bg-primary\/90:hover {
|
|
2836
2839
|
background-color: hsl(var(--primary) / 0.9);
|
|
2837
2840
|
}
|