@nr1e/qwik-ui 0.0.3 → 0.0.5

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,101 @@
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 UniversalLayout = qwik.component$((props) => {
6
+ const aprops = {
7
+ ...props,
8
+ class: `${props.class ? ` ${props.class}` : ""}`,
9
+ outerLeftClass: `${props.outerLeftClass ? `${props.outerLeftClass}` : ""}`,
10
+ topClass: `${props.topClass ?? ""}`,
11
+ leftClass: `${props.leftClass ?? ""}`,
12
+ childrenClass: `${props.childrenClass ? ` ${props.childrenClass}` : ""}`,
13
+ innerTopClass: `${props.innerTopClass ?? ""}`,
14
+ innerBottomClass: `${props.innerBottomClass ?? ""}`,
15
+ rightClass: `${props.rightClass ?? ""}`,
16
+ bottomClass: `${props.bottomClass ?? ""}`,
17
+ outerRightClass: `${props.outerRightClass ?? ""}`
18
+ };
19
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
20
+ id: "universal",
21
+ class: `flex min-h-screen ${aprops.class}`,
22
+ children: [
23
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
24
+ id: "universal-outer-left",
25
+ class: aprops.outerLeftClass,
26
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
27
+ name: "outerLeft"
28
+ })
29
+ }),
30
+ /* @__PURE__ */ jsxRuntime.jsxs("div", {
31
+ class: "flex flex-grow flex-col",
32
+ children: [
33
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
34
+ id: "universal-top",
35
+ class: aprops.topClass,
36
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
37
+ name: "top"
38
+ })
39
+ }),
40
+ /* @__PURE__ */ jsxRuntime.jsxs("div", {
41
+ class: "flex flex-grow",
42
+ children: [
43
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
44
+ id: "universal-left",
45
+ class: aprops.leftClass,
46
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
47
+ name: "left"
48
+ })
49
+ }),
50
+ /* @__PURE__ */ jsxRuntime.jsxs("div", {
51
+ class: "flex w-full flex-grow flex-col",
52
+ children: [
53
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
54
+ id: "universal-right",
55
+ class: aprops.innerTopClass,
56
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
57
+ name: "innerTop"
58
+ })
59
+ }),
60
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
61
+ class: `flex-grow ${aprops.childrenClass}`,
62
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
63
+ }),
64
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
65
+ id: "universal-right",
66
+ class: aprops.innerBottomClass,
67
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
68
+ name: "innerBottom"
69
+ })
70
+ })
71
+ ]
72
+ }),
73
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
74
+ id: "universal-right",
75
+ class: aprops.rightClass,
76
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
77
+ name: "right"
78
+ })
79
+ })
80
+ ]
81
+ }),
82
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
83
+ id: "universal-bottom",
84
+ class: aprops.bottomClass,
85
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
86
+ name: "bottom"
87
+ })
88
+ })
89
+ ]
90
+ }),
91
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
92
+ id: "universal-outer-right",
93
+ class: aprops.outerRightClass,
94
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
95
+ name: "outerRight"
96
+ })
97
+ })
98
+ ]
99
+ });
100
+ });
101
+ exports.UniversalLayout = UniversalLayout;
@@ -0,0 +1,101 @@
1
+ import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
+ import { component$, Slot } from "@builder.io/qwik";
3
+ const UniversalLayout = component$((props) => {
4
+ const aprops = {
5
+ ...props,
6
+ class: `${props.class ? ` ${props.class}` : ""}`,
7
+ outerLeftClass: `${props.outerLeftClass ? `${props.outerLeftClass}` : ""}`,
8
+ topClass: `${props.topClass ?? ""}`,
9
+ leftClass: `${props.leftClass ?? ""}`,
10
+ childrenClass: `${props.childrenClass ? ` ${props.childrenClass}` : ""}`,
11
+ innerTopClass: `${props.innerTopClass ?? ""}`,
12
+ innerBottomClass: `${props.innerBottomClass ?? ""}`,
13
+ rightClass: `${props.rightClass ?? ""}`,
14
+ bottomClass: `${props.bottomClass ?? ""}`,
15
+ outerRightClass: `${props.outerRightClass ?? ""}`
16
+ };
17
+ return /* @__PURE__ */ jsxs("div", {
18
+ id: "universal",
19
+ class: `flex min-h-screen ${aprops.class}`,
20
+ children: [
21
+ /* @__PURE__ */ jsx("div", {
22
+ id: "universal-outer-left",
23
+ class: aprops.outerLeftClass,
24
+ children: /* @__PURE__ */ jsx(Slot, {
25
+ name: "outerLeft"
26
+ })
27
+ }),
28
+ /* @__PURE__ */ jsxs("div", {
29
+ class: "flex flex-grow flex-col",
30
+ children: [
31
+ /* @__PURE__ */ jsx("div", {
32
+ id: "universal-top",
33
+ class: aprops.topClass,
34
+ children: /* @__PURE__ */ jsx(Slot, {
35
+ name: "top"
36
+ })
37
+ }),
38
+ /* @__PURE__ */ jsxs("div", {
39
+ class: "flex flex-grow",
40
+ children: [
41
+ /* @__PURE__ */ jsx("div", {
42
+ id: "universal-left",
43
+ class: aprops.leftClass,
44
+ children: /* @__PURE__ */ jsx(Slot, {
45
+ name: "left"
46
+ })
47
+ }),
48
+ /* @__PURE__ */ jsxs("div", {
49
+ class: "flex w-full flex-grow flex-col",
50
+ children: [
51
+ /* @__PURE__ */ jsx("div", {
52
+ id: "universal-right",
53
+ class: aprops.innerTopClass,
54
+ children: /* @__PURE__ */ jsx(Slot, {
55
+ name: "innerTop"
56
+ })
57
+ }),
58
+ /* @__PURE__ */ jsx("div", {
59
+ class: `flex-grow ${aprops.childrenClass}`,
60
+ children: /* @__PURE__ */ jsx(Slot, {})
61
+ }),
62
+ /* @__PURE__ */ jsx("div", {
63
+ id: "universal-right",
64
+ class: aprops.innerBottomClass,
65
+ children: /* @__PURE__ */ jsx(Slot, {
66
+ name: "innerBottom"
67
+ })
68
+ })
69
+ ]
70
+ }),
71
+ /* @__PURE__ */ jsx("div", {
72
+ id: "universal-right",
73
+ class: aprops.rightClass,
74
+ children: /* @__PURE__ */ jsx(Slot, {
75
+ name: "right"
76
+ })
77
+ })
78
+ ]
79
+ }),
80
+ /* @__PURE__ */ jsx("div", {
81
+ id: "universal-bottom",
82
+ class: aprops.bottomClass,
83
+ children: /* @__PURE__ */ jsx(Slot, {
84
+ name: "bottom"
85
+ })
86
+ })
87
+ ]
88
+ }),
89
+ /* @__PURE__ */ jsx("div", {
90
+ id: "universal-outer-right",
91
+ class: aprops.outerRightClass,
92
+ children: /* @__PURE__ */ jsx(Slot, {
93
+ name: "outerRight"
94
+ })
95
+ })
96
+ ]
97
+ });
98
+ });
99
+ export {
100
+ UniversalLayout
101
+ };
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const paceBar = require("./components/pace-bar.qwik.cjs");
4
+ const universalLayout = require("./components/universal-layout.qwik.cjs");
4
5
  exports.PaceBar = paceBar.PaceBar;
6
+ exports.UniversalLayout = universalLayout.UniversalLayout;
@@ -1,4 +1,6 @@
1
1
  import { PaceBar } from "./components/pace-bar.qwik.mjs";
2
+ import { UniversalLayout } from "./components/universal-layout.qwik.mjs";
2
3
  export {
3
- PaceBar
4
+ PaceBar,
5
+ UniversalLayout
4
6
  };
@@ -0,0 +1,14 @@
1
+ interface UniversalLayoutProps {
2
+ class?: string;
3
+ outerLeftClass?: string;
4
+ outerRightClass?: string;
5
+ topClass?: string;
6
+ leftClass?: string;
7
+ rightClass?: string;
8
+ bottomClass?: string;
9
+ innerTopClass?: string;
10
+ innerBottomClass?: string;
11
+ childrenClass?: string;
12
+ }
13
+ export declare const UniversalLayout: import("@builder.io/qwik").Component<UniversalLayoutProps>;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './components/pace-bar';
2
+ export * from './components/universal-layout';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nr1e/qwik-ui",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "NR1E Qwik UI Library",
5
5
  "author": "NR1E, Inc.",
6
6
  "publishConfig": {
@@ -1,6 +0,0 @@
1
- export default config;
2
- /**
3
- * @see https://prettier.io/docs/configuration
4
- * @type {import("prettier").Config}
5
- */
6
- declare const config: import("prettier").Config;
@@ -1 +0,0 @@
1
- export * from './components/pace-bar';
File without changes