@nr1e/qwik-ui 0.0.41 → 0.0.42
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.
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
|
+
const qwik = require("@builder.io/qwik");
|
|
5
|
+
const qwikCity = require("@builder.io/qwik-city");
|
|
6
|
+
const DockLabel = qwik.component$((props) => {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
8
|
+
class: `dock-label ${props?.class ?? ""}`,
|
|
9
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
const DockItem = qwik.component$((props) => {
|
|
13
|
+
const nav = qwikCity.useNavigate();
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
|
|
15
|
+
class: `${props.selected ? "bg-base-200" : ""} ${props.linkClass ?? ""}`,
|
|
16
|
+
href: props.href,
|
|
17
|
+
prefetch: props.prefetch ?? true,
|
|
18
|
+
onClick$: async (event) => {
|
|
19
|
+
if (props.onClick$) {
|
|
20
|
+
await props.onClick$(event);
|
|
21
|
+
} else {
|
|
22
|
+
if (props.loading) {
|
|
23
|
+
props.loading.value = true;
|
|
24
|
+
}
|
|
25
|
+
await nav(props.href);
|
|
26
|
+
if (props.loading) {
|
|
27
|
+
props.loading.value = false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
const Dock = qwik.component$((props) => {
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
36
|
+
class: `dock ${props?.class ?? ""}`,
|
|
37
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
exports.Dock = Dock;
|
|
41
|
+
exports.DockItem = DockItem;
|
|
42
|
+
exports.DockLabel = DockLabel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$, Slot } from "@builder.io/qwik";
|
|
3
|
+
import { useNavigate, Link } from "@builder.io/qwik-city";
|
|
4
|
+
const DockLabel = component$((props) => {
|
|
5
|
+
return /* @__PURE__ */ jsx("span", {
|
|
6
|
+
class: `dock-label ${props?.class ?? ""}`,
|
|
7
|
+
children: /* @__PURE__ */ jsx(Slot, {})
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
const DockItem = component$((props) => {
|
|
11
|
+
const nav = useNavigate();
|
|
12
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
13
|
+
class: `${props.selected ? "bg-base-200" : ""} ${props.linkClass ?? ""}`,
|
|
14
|
+
href: props.href,
|
|
15
|
+
prefetch: props.prefetch ?? true,
|
|
16
|
+
onClick$: async (event) => {
|
|
17
|
+
if (props.onClick$) {
|
|
18
|
+
await props.onClick$(event);
|
|
19
|
+
} else {
|
|
20
|
+
if (props.loading) {
|
|
21
|
+
props.loading.value = true;
|
|
22
|
+
}
|
|
23
|
+
await nav(props.href);
|
|
24
|
+
if (props.loading) {
|
|
25
|
+
props.loading.value = false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
children: /* @__PURE__ */ jsx(Slot, {})
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const Dock = component$((props) => {
|
|
33
|
+
return /* @__PURE__ */ jsx("div", {
|
|
34
|
+
class: `dock ${props?.class ?? ""}`,
|
|
35
|
+
children: /* @__PURE__ */ jsx(Slot, {})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
Dock,
|
|
40
|
+
DockItem,
|
|
41
|
+
DockLabel
|
|
42
|
+
};
|
package/lib/index.qwik.cjs
CHANGED
|
@@ -8,6 +8,7 @@ const alertWarning = require("./components/alert-warning.qwik.cjs");
|
|
|
8
8
|
const autoDismiss = require("./components/auto-dismiss.qwik.cjs");
|
|
9
9
|
const checkboxField = require("./components/checkbox-field.qwik.cjs");
|
|
10
10
|
const dialog = require("./components/dialog.qwik.cjs");
|
|
11
|
+
const dock = require("./components/dock.qwik.cjs");
|
|
11
12
|
const dropUp = require("./components/drop-up.qwik.cjs");
|
|
12
13
|
const googleSignInButton = require("./components/google-sign-in-button.qwik.cjs");
|
|
13
14
|
const gtm = require("./components/gtm.qwik.cjs");
|
|
@@ -25,6 +26,9 @@ exports.AlertWarning = alertWarning.AlertWarning;
|
|
|
25
26
|
exports.AutoDismiss = autoDismiss.AutoDismiss;
|
|
26
27
|
exports.CheckboxField = checkboxField.CheckboxField;
|
|
27
28
|
exports.Dialog = dialog.Dialog;
|
|
29
|
+
exports.Dock = dock.Dock;
|
|
30
|
+
exports.DockItem = dock.DockItem;
|
|
31
|
+
exports.DockLabel = dock.DockLabel;
|
|
28
32
|
exports.DropUp = dropUp.DropUp;
|
|
29
33
|
exports.DropUpButtonSelector = dropUp.DropUpButtonSelector;
|
|
30
34
|
exports.DropUpItem = dropUp.DropUpItem;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { AlertWarning } from "./components/alert-warning.qwik.mjs";
|
|
|
6
6
|
import { AutoDismiss } from "./components/auto-dismiss.qwik.mjs";
|
|
7
7
|
import { CheckboxField } from "./components/checkbox-field.qwik.mjs";
|
|
8
8
|
import { Dialog } from "./components/dialog.qwik.mjs";
|
|
9
|
+
import { Dock, DockItem, DockLabel } from "./components/dock.qwik.mjs";
|
|
9
10
|
import { DropUp, DropUpButtonSelector, DropUpItem, DropUpSubmenu } from "./components/drop-up.qwik.mjs";
|
|
10
11
|
import { GoogleSignInButton } from "./components/google-sign-in-button.qwik.mjs";
|
|
11
12
|
import { GtmBody, GtmHead } from "./components/gtm.qwik.mjs";
|
|
@@ -24,6 +25,9 @@ export {
|
|
|
24
25
|
AutoDismiss,
|
|
25
26
|
CheckboxField,
|
|
26
27
|
Dialog,
|
|
28
|
+
Dock,
|
|
29
|
+
DockItem,
|
|
30
|
+
DockLabel,
|
|
27
31
|
DropUp,
|
|
28
32
|
DropUpButtonSelector,
|
|
29
33
|
DropUpItem,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { QRL, Signal } from '@builder.io/qwik';
|
|
2
|
+
export interface DockLabelProps {
|
|
3
|
+
class?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const DockLabel: import("@builder.io/qwik").Component<DockLabelProps | undefined>;
|
|
6
|
+
export interface DockItemProps {
|
|
7
|
+
href?: string;
|
|
8
|
+
prefetch?: boolean;
|
|
9
|
+
class?: string;
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
loading?: Signal<boolean>;
|
|
12
|
+
onClick$?: QRL<(event: Event) => void>;
|
|
13
|
+
linkClass?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const DockItem: import("@builder.io/qwik").Component<DockItemProps>;
|
|
16
|
+
export interface DockProps {
|
|
17
|
+
class?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const Dock: import("@builder.io/qwik").Component<DockProps | undefined>;
|
package/lib-types/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './components/alert-warning';
|
|
|
6
6
|
export * from './components/auto-dismiss';
|
|
7
7
|
export * from './components/checkbox-field';
|
|
8
8
|
export * from './components/dialog';
|
|
9
|
+
export * from './components/dock';
|
|
9
10
|
export * from './components/drop-up';
|
|
10
11
|
export * from './components/google-sign-in-button';
|
|
11
12
|
export * from './components/gtm';
|