@luminescent/ui-qwik 6.4.22 → 6.4.24

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.
@@ -688,7 +688,9 @@ const Nav = qwik.component$(({ fixed, floating, noblur, nohamburger, nodismiss,
688
688
  qwik.useTask$(({ track }) => {
689
689
  track(() => menu.value);
690
690
  if (menu.value && !nodismiss) {
691
- const onClick = () => {
691
+ const onClick = (e) => {
692
+ const target = e.target;
693
+ if (target?.hasAttribute("noNavDismiss")) return;
692
694
  menu.value = false;
693
695
  window.removeEventListener("click", onClick);
694
696
  };
@@ -893,7 +895,7 @@ const SelectMenu = qwik.component$((props) => {
893
895
  class: "flex flex-col",
894
896
  children: [
895
897
  /* @__PURE__ */ jsxRuntime.jsx("label", {
896
- for: props.id,
898
+ for: props.id ? `${props.id}-dropdown` : void 0,
897
899
  class: "pb-1 text-lum-text select-none",
898
900
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
899
901
  }),
@@ -942,6 +944,7 @@ const SelectMenuRaw = qwik.component$(({ values, class: Class, panelClass = "lum
942
944
  })
943
945
  }),
944
946
  /* @__PURE__ */ jsxRuntime.jsxs(Dropdown, {
947
+ id: props.id ? `${props.id}-dropdown` : void 0,
945
948
  opened: store.opened,
946
949
  class: {
947
950
  "w-full": true,
@@ -686,7 +686,9 @@ const Nav = component$(({ fixed, floating, noblur, nohamburger, nodismiss, color
686
686
  useTask$(({ track }) => {
687
687
  track(() => menu.value);
688
688
  if (menu.value && !nodismiss) {
689
- const onClick = () => {
689
+ const onClick = (e) => {
690
+ const target = e.target;
691
+ if (target?.hasAttribute("noNavDismiss")) return;
690
692
  menu.value = false;
691
693
  window.removeEventListener("click", onClick);
692
694
  };
@@ -891,7 +893,7 @@ const SelectMenu = component$((props) => {
891
893
  class: "flex flex-col",
892
894
  children: [
893
895
  /* @__PURE__ */ jsx("label", {
894
- for: props.id,
896
+ for: props.id ? `${props.id}-dropdown` : void 0,
895
897
  class: "pb-1 text-lum-text select-none",
896
898
  children: /* @__PURE__ */ jsx(Slot, {})
897
899
  }),
@@ -940,6 +942,7 @@ const SelectMenuRaw = component$(({ values, class: Class, panelClass = "lum-bg-l
940
942
  })
941
943
  }),
942
944
  /* @__PURE__ */ jsxs(Dropdown, {
945
+ id: props.id ? `${props.id}-dropdown` : void 0,
943
946
  opened: store.opened,
944
947
  class: {
945
948
  "w-full": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui-qwik",
3
- "version": "6.4.22",
3
+ "version": "6.4.24",
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": "^6.0.3"
51
51
  },
52
52
  "peerDependencies": {
53
- "@luminescent/ui": "6.4.22"
53
+ "@luminescent/ui": "6.4.24"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "qwik build",