@nr1e/qwik-ui 0.0.38 → 0.0.40
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.
|
@@ -8,7 +8,7 @@ const MenuItem = qwik.component$((props) => {
|
|
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx("li", {
|
|
9
9
|
class: props.class ?? "",
|
|
10
10
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
|
|
11
|
-
class: `truncate ${props.selected ? "bg-base-200" : ""}`,
|
|
11
|
+
class: `truncate ${props.selected ? "bg-base-200" : ""} ${props.linkClass ?? ""}`,
|
|
12
12
|
href: props.href,
|
|
13
13
|
prefetch: props.prefetch ?? true,
|
|
14
14
|
onClick$: async (event) => {
|
|
@@ -51,7 +51,7 @@ const Submenu = qwik.component$((props) => {
|
|
|
51
51
|
});
|
|
52
52
|
const MenuDivider = qwik.component$((props) => {
|
|
53
53
|
return /* @__PURE__ */ jsxRuntime.jsx("li", {
|
|
54
|
-
class: `divider ${props?.class ?? ""}`
|
|
54
|
+
class: `divider h-px ${props?.class ?? ""}`
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
const Menu = qwik.component$((props) => {
|
|
@@ -6,7 +6,7 @@ const MenuItem = component$((props) => {
|
|
|
6
6
|
return /* @__PURE__ */ jsx("li", {
|
|
7
7
|
class: props.class ?? "",
|
|
8
8
|
children: /* @__PURE__ */ jsx(Link, {
|
|
9
|
-
class: `truncate ${props.selected ? "bg-base-200" : ""}`,
|
|
9
|
+
class: `truncate ${props.selected ? "bg-base-200" : ""} ${props.linkClass ?? ""}`,
|
|
10
10
|
href: props.href,
|
|
11
11
|
prefetch: props.prefetch ?? true,
|
|
12
12
|
onClick$: async (event) => {
|
|
@@ -49,7 +49,7 @@ const Submenu = component$((props) => {
|
|
|
49
49
|
});
|
|
50
50
|
const MenuDivider = component$((props) => {
|
|
51
51
|
return /* @__PURE__ */ jsx("li", {
|
|
52
|
-
class: `divider ${props?.class ?? ""}`
|
|
52
|
+
class: `divider h-px ${props?.class ?? ""}`
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
const Menu = component$((props) => {
|
|
@@ -6,6 +6,7 @@ export interface MenuItemProps {
|
|
|
6
6
|
loading?: Signal<boolean>;
|
|
7
7
|
onClick$?: QRL<(event: Event) => void>;
|
|
8
8
|
class?: string;
|
|
9
|
+
linkClass?: string;
|
|
9
10
|
}
|
|
10
11
|
export declare const MenuItem: import("@builder.io/qwik").Component<MenuItemProps>;
|
|
11
12
|
export interface MenuGroupSummaryProps {
|