@luminescent/ui-qwik 5.0.1-6 → 5.0.1-7

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.
@@ -683,7 +683,7 @@ const Menu = qwik.component$(({ size, ...props }) => {
683
683
  ]
684
684
  });
685
685
  });
686
- const Nav = qwik.component$(({ fixed, floating, nohamburger, colorClass = "lum-bg-lum-card-bg", ...props }) => {
686
+ const Nav = qwik.component$(({ fixed, floating, noblur, nohamburger, colorClass = "lum-bg-lum-card-bg", ...props }) => {
687
687
  const menu = qwik.useSignal(false);
688
688
  return /* @__PURE__ */ jsxRuntime.jsxs("nav", {
689
689
  ...props,
@@ -696,28 +696,23 @@ const Nav = qwik.component$(({ fixed, floating, nohamburger, colorClass = "lum-b
696
696
  children: [
697
697
  !nohamburger && /* @__PURE__ */ jsxRuntime.jsx("div", {
698
698
  class: {
699
- "absolute top-full flex w-full flex-col items-center px-2 motion-safe:transition-all sm:hidden": true,
699
+ "absolute top-full lum-card motion-safe:transition-all sm:hidden max-w-7xl gap-2 px-2 py-4": true,
700
+ "w-[calc(100%-theme(spacing.8))] mx-4": floating,
701
+ "w-[calc(100%-theme(spacing.4))] mx-2": !floating,
700
702
  "mt-2": menu.value,
701
- "pointer-events-none opacity-0": !menu.value,
702
- "before:backdrop-blur-lg": !colorClass.includes("transparent"),
703
- 'before:absolute before:-z-10 before:h-full before:w-full before:rounded-lum before:drop-shadow-xl before:content-[""]': true
703
+ "pointer-events-none opacity-0 -mt-2 scale-95": !menu.value,
704
+ "backdrop-blur-lg": !noblur,
705
+ [colorClass]: true
704
706
  },
705
- children: /* @__PURE__ */ jsxRuntime.jsx("div", {
706
- class: {
707
- [colorClass]: true,
708
- "flex w-full max-w-7xl flex-col gap-2 rounded-lum border px-2 py-4 motion-safe:transition-all": true
709
- },
710
- children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
711
- name: "mobile"
712
- })
707
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
708
+ name: "mobile"
713
709
  })
714
710
  }),
715
711
  /* @__PURE__ */ jsxRuntime.jsx("div", {
716
712
  class: {
717
713
  [colorClass]: !floating,
718
714
  "!border-x-0 !border-t-0": !floating,
719
- "before:backdrop-blur-lg": !colorClass.includes("transparent") && !floating,
720
- 'before:absolute before:-z-10 before:h-full before:w-full before:drop-shadow-xl before:content-[""]': !floating,
715
+ "backdrop-blur-lg": !noblur && !floating,
721
716
  "relative mx-2 mt-2": floating
722
717
  },
723
718
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
@@ -725,8 +720,7 @@ const Nav = qwik.component$(({ fixed, floating, nohamburger, colorClass = "lum-b
725
720
  "mx-auto flex w-full max-w-7xl justify-evenly px-2": true,
726
721
  [colorClass]: floating,
727
722
  "rounded-lum border": floating,
728
- "before:backdrop-blur-lg": !colorClass.includes("transparent") && floating,
729
- 'before:absolute before:-z-10 before:h-full before:w-full before:max-w-7xl before:rounded-lum before:drop-shadow-xl before:content-[""]': floating
723
+ "backdrop-blur-lg": !noblur && floating
730
724
  },
731
725
  children: [
732
726
  /* @__PURE__ */ jsxRuntime.jsx("div", {
@@ -681,7 +681,7 @@ const Menu = component$(({ size, ...props }) => {
681
681
  ]
682
682
  });
683
683
  });
684
- const Nav = component$(({ fixed, floating, nohamburger, colorClass = "lum-bg-lum-card-bg", ...props }) => {
684
+ const Nav = component$(({ fixed, floating, noblur, nohamburger, colorClass = "lum-bg-lum-card-bg", ...props }) => {
685
685
  const menu = useSignal(false);
686
686
  return /* @__PURE__ */ jsxs("nav", {
687
687
  ...props,
@@ -694,28 +694,23 @@ const Nav = component$(({ fixed, floating, nohamburger, colorClass = "lum-bg-lum
694
694
  children: [
695
695
  !nohamburger && /* @__PURE__ */ jsx("div", {
696
696
  class: {
697
- "absolute top-full flex w-full flex-col items-center px-2 motion-safe:transition-all sm:hidden": true,
697
+ "absolute top-full lum-card motion-safe:transition-all sm:hidden max-w-7xl gap-2 px-2 py-4": true,
698
+ "w-[calc(100%-theme(spacing.8))] mx-4": floating,
699
+ "w-[calc(100%-theme(spacing.4))] mx-2": !floating,
698
700
  "mt-2": menu.value,
699
- "pointer-events-none opacity-0": !menu.value,
700
- "before:backdrop-blur-lg": !colorClass.includes("transparent"),
701
- 'before:absolute before:-z-10 before:h-full before:w-full before:rounded-lum before:drop-shadow-xl before:content-[""]': true
701
+ "pointer-events-none opacity-0 -mt-2 scale-95": !menu.value,
702
+ "backdrop-blur-lg": !noblur,
703
+ [colorClass]: true
702
704
  },
703
- children: /* @__PURE__ */ jsx("div", {
704
- class: {
705
- [colorClass]: true,
706
- "flex w-full max-w-7xl flex-col gap-2 rounded-lum border px-2 py-4 motion-safe:transition-all": true
707
- },
708
- children: /* @__PURE__ */ jsx(Slot, {
709
- name: "mobile"
710
- })
705
+ children: /* @__PURE__ */ jsx(Slot, {
706
+ name: "mobile"
711
707
  })
712
708
  }),
713
709
  /* @__PURE__ */ jsx("div", {
714
710
  class: {
715
711
  [colorClass]: !floating,
716
712
  "!border-x-0 !border-t-0": !floating,
717
- "before:backdrop-blur-lg": !colorClass.includes("transparent") && !floating,
718
- 'before:absolute before:-z-10 before:h-full before:w-full before:drop-shadow-xl before:content-[""]': !floating,
713
+ "backdrop-blur-lg": !noblur && !floating,
719
714
  "relative mx-2 mt-2": floating
720
715
  },
721
716
  children: /* @__PURE__ */ jsxs("div", {
@@ -723,8 +718,7 @@ const Nav = component$(({ fixed, floating, nohamburger, colorClass = "lum-bg-lum
723
718
  "mx-auto flex w-full max-w-7xl justify-evenly px-2": true,
724
719
  [colorClass]: floating,
725
720
  "rounded-lum border": floating,
726
- "before:backdrop-blur-lg": !colorClass.includes("transparent") && floating,
727
- 'before:absolute before:-z-10 before:h-full before:w-full before:max-w-7xl before:rounded-lum before:drop-shadow-xl before:content-[""]': floating
721
+ "backdrop-blur-lg": !noblur && floating
728
722
  },
729
723
  children: [
730
724
  /* @__PURE__ */ jsx("div", {
@@ -5,6 +5,7 @@ interface NavProps extends Omit<PropsOf<'nav'>, 'class'> {
5
5
  };
6
6
  fixed?: boolean;
7
7
  floating?: boolean;
8
+ noblur?: boolean;
8
9
  nohamburger?: boolean;
9
10
  colorClass?: string;
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui-qwik",
3
- "version": "5.0.1-6",
3
+ "version": "5.0.1-7",
4
4
  "description": "Luminescent UI library - Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",
@@ -50,7 +50,7 @@
50
50
  "vite-tsconfig-paths": "^5.1.4"
51
51
  },
52
52
  "peerDependencies": {
53
- "@luminescent/ui": "5.0.1-6"
53
+ "@luminescent/ui": "5.0.1-7"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "qwik build",