@nr1e/qwik-ui 0.0.40 → 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
+ };
@@ -0,0 +1,18 @@
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 qwikIcons = require("@nr1e/qwik-icons");
6
+ const GoogleSignInButton = qwik.component$((props) => {
7
+ return /* @__PURE__ */ jsxRuntime.jsxs("button", {
8
+ class: `btn ${props.class ?? ""}`,
9
+ onClick$: props.onClick$,
10
+ children: [
11
+ /* @__PURE__ */ jsxRuntime.jsx(qwikIcons.LogosGoogleIcon, {
12
+ size: 18
13
+ }),
14
+ "Sign in with Google"
15
+ ]
16
+ });
17
+ });
18
+ exports.GoogleSignInButton = GoogleSignInButton;
@@ -0,0 +1,18 @@
1
+ import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
+ import { component$ } from "@builder.io/qwik";
3
+ import { LogosGoogleIcon } from "@nr1e/qwik-icons";
4
+ const GoogleSignInButton = component$((props) => {
5
+ return /* @__PURE__ */ jsxs("button", {
6
+ class: `btn ${props.class ?? ""}`,
7
+ onClick$: props.onClick$,
8
+ children: [
9
+ /* @__PURE__ */ jsx(LogosGoogleIcon, {
10
+ size: 18
11
+ }),
12
+ "Sign in with Google"
13
+ ]
14
+ });
15
+ });
16
+ export {
17
+ GoogleSignInButton
18
+ };
@@ -0,0 +1,18 @@
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 qwikIcons = require("@nr1e/qwik-icons");
6
+ const MicrosoftSignInButton = qwik.component$((props) => {
7
+ return /* @__PURE__ */ jsxRuntime.jsxs("button", {
8
+ class: `btn ${props.class ?? ""}`,
9
+ onClick$: props.onClick$,
10
+ children: [
11
+ /* @__PURE__ */ jsxRuntime.jsx(qwikIcons.LogosMicrosoftIcon, {
12
+ size: 18
13
+ }),
14
+ "Sign in with Google"
15
+ ]
16
+ });
17
+ });
18
+ exports.MicrosoftSignInButton = MicrosoftSignInButton;
@@ -0,0 +1,18 @@
1
+ import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
+ import { component$ } from "@builder.io/qwik";
3
+ import { LogosMicrosoftIcon } from "@nr1e/qwik-icons";
4
+ const MicrosoftSignInButton = component$((props) => {
5
+ return /* @__PURE__ */ jsxs("button", {
6
+ class: `btn ${props.class ?? ""}`,
7
+ onClick$: props.onClick$,
8
+ children: [
9
+ /* @__PURE__ */ jsx(LogosMicrosoftIcon, {
10
+ size: 18
11
+ }),
12
+ "Sign in with Google"
13
+ ]
14
+ });
15
+ });
16
+ export {
17
+ MicrosoftSignInButton
18
+ };
@@ -8,9 +8,12 @@ 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");
13
+ const googleSignInButton = require("./components/google-sign-in-button.qwik.cjs");
12
14
  const gtm = require("./components/gtm.qwik.cjs");
13
15
  const menu = require("./components/menu.qwik.cjs");
16
+ const microsoftSignInButton = require("./components/microsoft-sign-in-button.qwik.cjs");
14
17
  const paceBar = require("./components/pace-bar.qwik.cjs");
15
18
  const selectField = require("./components/select-field.qwik.cjs");
16
19
  const textField = require("./components/text-field.qwik.cjs");
@@ -23,10 +26,14 @@ exports.AlertWarning = alertWarning.AlertWarning;
23
26
  exports.AutoDismiss = autoDismiss.AutoDismiss;
24
27
  exports.CheckboxField = checkboxField.CheckboxField;
25
28
  exports.Dialog = dialog.Dialog;
29
+ exports.Dock = dock.Dock;
30
+ exports.DockItem = dock.DockItem;
31
+ exports.DockLabel = dock.DockLabel;
26
32
  exports.DropUp = dropUp.DropUp;
27
33
  exports.DropUpButtonSelector = dropUp.DropUpButtonSelector;
28
34
  exports.DropUpItem = dropUp.DropUpItem;
29
35
  exports.DropUpSubmenu = dropUp.DropUpSubmenu;
36
+ exports.GoogleSignInButton = googleSignInButton.GoogleSignInButton;
30
37
  exports.GtmBody = gtm.GtmBody;
31
38
  exports.GtmHead = gtm.GtmHead;
32
39
  exports.Menu = menu.Menu;
@@ -35,6 +42,7 @@ exports.MenuGroup = menu.MenuGroup;
35
42
  exports.MenuGroupSummary = menu.MenuGroupSummary;
36
43
  exports.MenuItem = menu.MenuItem;
37
44
  exports.Submenu = menu.Submenu;
45
+ exports.MicrosoftSignInButton = microsoftSignInButton.MicrosoftSignInButton;
38
46
  exports.PaceBar = paceBar.PaceBar;
39
47
  exports.SelectField = selectField.SelectField;
40
48
  exports.TextField = textField.TextField;
@@ -6,9 +6,12 @@ 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";
11
+ import { GoogleSignInButton } from "./components/google-sign-in-button.qwik.mjs";
10
12
  import { GtmBody, GtmHead } from "./components/gtm.qwik.mjs";
11
13
  import { Menu, MenuDivider, MenuGroup, MenuGroupSummary, MenuItem, Submenu } from "./components/menu.qwik.mjs";
14
+ import { MicrosoftSignInButton } from "./components/microsoft-sign-in-button.qwik.mjs";
12
15
  import { PaceBar } from "./components/pace-bar.qwik.mjs";
13
16
  import { SelectField } from "./components/select-field.qwik.mjs";
14
17
  import { TextField } from "./components/text-field.qwik.mjs";
@@ -22,10 +25,14 @@ export {
22
25
  AutoDismiss,
23
26
  CheckboxField,
24
27
  Dialog,
28
+ Dock,
29
+ DockItem,
30
+ DockLabel,
25
31
  DropUp,
26
32
  DropUpButtonSelector,
27
33
  DropUpItem,
28
34
  DropUpSubmenu,
35
+ GoogleSignInButton,
29
36
  GtmBody,
30
37
  GtmHead,
31
38
  Menu,
@@ -33,6 +40,7 @@ export {
33
40
  MenuGroup,
34
41
  MenuGroupSummary,
35
42
  MenuItem,
43
+ MicrosoftSignInButton,
36
44
  PaceBar,
37
45
  SelectField,
38
46
  Submenu,
@@ -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>;
@@ -0,0 +1,6 @@
1
+ import { QRL } from '@builder.io/qwik';
2
+ export interface GoogleSignInButtonProps {
3
+ class?: string;
4
+ onClick$?: QRL<(event: Event) => void>;
5
+ }
6
+ export declare const GoogleSignInButton: import("@builder.io/qwik").Component<GoogleSignInButtonProps>;
@@ -0,0 +1,6 @@
1
+ import { QRL } from '@builder.io/qwik';
2
+ export interface MicrosoftSignInButtonProps {
3
+ class?: string;
4
+ onClick$?: QRL<(event: Event) => void>;
5
+ }
6
+ export declare const MicrosoftSignInButton: import("@builder.io/qwik").Component<MicrosoftSignInButtonProps>;
@@ -6,9 +6,12 @@ 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';
11
+ export * from './components/google-sign-in-button';
10
12
  export * from './components/gtm';
11
13
  export * from './components/menu';
14
+ export * from './components/microsoft-sign-in-button';
12
15
  export * from './components/pace-bar';
13
16
  export * from './components/select-field';
14
17
  export * from './components/text-field';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nr1e/qwik-ui",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "description": "NR1E Qwik UI Library",
5
5
  "author": "NR1E, Inc.",
6
6
  "publishConfig": {