@akanjs/ui 1.0.12 → 1.0.14

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.
@@ -40,17 +40,14 @@ const Header = ({ className, type, children, height = 40 }) => {
40
40
  window.removeEventListener("scroll", handleScroll);
41
41
  };
42
42
  }, []);
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
44
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height } }),
45
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
46
- "div",
47
- {
48
- className: (0, import_client.clsx)(
49
- `fixed top-0 z-[9] flex duration-300 ${!visible && "md:-translate-y-full"} bg-base-100 w-full shadow-sm backdrop-blur-lg`,
50
- className
51
- ),
52
- children
53
- }
54
- )
55
- ] });
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
44
+ "div",
45
+ {
46
+ className: (0, import_client.clsx)(
47
+ `fixed top-0 z-[9] flex duration-300 ${!visible ? "md:-translate-y-full" : ""} bg-base-100 w-full shadow-sm backdrop-blur-lg`,
48
+ className
49
+ ),
50
+ children
51
+ }
52
+ ) });
56
53
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { Fragment, jsx } from "react/jsx-runtime";
3
3
  import { clsx } from "@akanjs/client";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  const Header = ({ className, type, children, height = 40 }) => {
@@ -18,19 +18,16 @@ const Header = ({ className, type, children, height = 40 }) => {
18
18
  window.removeEventListener("scroll", handleScroll);
19
19
  };
20
20
  }, []);
21
- return /* @__PURE__ */ jsxs(Fragment, { children: [
22
- /* @__PURE__ */ jsx("div", { style: { height } }),
23
- /* @__PURE__ */ jsx(
24
- "div",
25
- {
26
- className: clsx(
27
- `fixed top-0 z-[9] flex duration-300 ${!visible && "md:-translate-y-full"} bg-base-100 w-full shadow-sm backdrop-blur-lg`,
28
- className
29
- ),
30
- children
31
- }
32
- )
33
- ] });
21
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
22
+ "div",
23
+ {
24
+ className: clsx(
25
+ `fixed top-0 z-[9] flex duration-300 ${!visible ? "md:-translate-y-full" : ""} bg-base-100 w-full shadow-sm backdrop-blur-lg`,
26
+ className
27
+ ),
28
+ children
29
+ }
30
+ ) });
34
31
  };
35
32
  export {
36
33
  Header
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/ui",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"