@luminescent/ui-qwik 6.8.3-2 → 7.0.0-0
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.
- package/LICENSE +661 -0
- package/lib/assets/BBIagblG-bundle-graph.json +1 -0
- package/lib/assets/ChtqwOpy-bundle-graph.json +1 -0
- package/lib/components/elements/Anchor.d.ts +1 -4
- package/lib/components/elements/Anchor.qwik.cjs +21 -25
- package/lib/components/elements/Anchor.qwik.mjs +21 -25
- package/lib/components/elements/Blobs.d.ts +3 -4
- package/lib/components/elements/Blobs.qwik.cjs +181 -187
- package/lib/components/elements/Blobs.qwik.mjs +182 -189
- package/lib/components/elements/ColorPicker.d.ts +1 -4
- package/lib/components/elements/ColorPicker.qwik.cjs +285 -303
- package/lib/components/elements/ColorPicker.qwik.mjs +285 -303
- package/lib/components/elements/Dropdown.d.ts +1 -4
- package/lib/components/elements/Dropdown.qwik.cjs +20 -30
- package/lib/components/elements/Dropdown.qwik.mjs +20 -30
- package/lib/components/elements/Label.d.ts +6 -0
- package/lib/components/elements/Label.qwik.cjs +10 -0
- package/lib/components/elements/Label.qwik.mjs +10 -0
- package/lib/components/elements/Nav.d.ts +3 -6
- package/lib/components/elements/Nav.qwik.cjs +63 -97
- package/lib/components/elements/Nav.qwik.mjs +63 -97
- package/lib/components/elements/NumberInput.d.ts +4 -11
- package/lib/components/elements/NumberInput.qwik.cjs +52 -78
- package/lib/components/elements/NumberInput.qwik.mjs +51 -77
- package/lib/components/elements/RangeInput.d.ts +2 -9
- package/lib/components/elements/RangeInput.qwik.cjs +45 -76
- package/lib/components/elements/RangeInput.qwik.mjs +46 -77
- package/lib/components/elements/SelectMenu.d.ts +5 -8
- package/lib/components/elements/SelectMenu.qwik.cjs +90 -133
- package/lib/components/elements/SelectMenu.qwik.mjs +90 -133
- package/lib/components/elements/Sidebar.d.ts +1 -4
- package/lib/components/elements/Sidebar.qwik.cjs +19 -36
- package/lib/components/elements/Sidebar.qwik.mjs +20 -37
- package/lib/components/elements/Toggle.d.ts +1 -2
- package/lib/components/elements/Toggle.qwik.cjs +22 -38
- package/lib/components/elements/Toggle.qwik.mjs +23 -39
- package/lib/components/elements.d.ts +1 -0
- package/lib/components/functions.d.ts +2 -0
- package/lib/components/functions.qwik.cjs +19 -16
- package/lib/components/functions.qwik.mjs +19 -17
- package/lib/index.d.ts +0 -1
- package/lib/index.qwik.cjs +26 -48
- package/lib/index.qwik.mjs +6 -42
- package/lib/q-manifest.json +239 -0
- package/lib/svg/ChevronDown.d.ts +1 -1
- package/lib/svg/ChevronDown.qwik.cjs +18 -22
- package/lib/svg/ChevronDown.qwik.mjs +19 -23
- package/lib/svg/Link.d.ts +1 -1
- package/lib/svg/Link.qwik.cjs +27 -33
- package/lib/svg/Link.qwik.mjs +28 -34
- package/lib/svg/Menu.d.ts +1 -1
- package/lib/svg/Menu.qwik.cjs +22 -30
- package/lib/svg/Menu.qwik.mjs +23 -31
- package/lib/svg/Minus.d.ts +1 -1
- package/lib/svg/Minus.qwik.cjs +18 -22
- package/lib/svg/Minus.qwik.mjs +19 -23
- package/lib/svg/Plus.d.ts +1 -1
- package/lib/svg/Plus.qwik.cjs +18 -27
- package/lib/svg/Plus.qwik.mjs +19 -28
- package/lib/svg/Shuffle.d.ts +1 -1
- package/lib/svg/Shuffle.qwik.cjs +24 -36
- package/lib/svg/Shuffle.qwik.mjs +25 -37
- package/lib/utils/color.qwik.cjs +101 -115
- package/lib/utils/color.qwik.mjs +102 -122
- package/package.json +14 -14
- package/lib/components/logos/Birdflop.d.ts +0 -7
- package/lib/components/logos/Birdflop.qwik.cjs +0 -73
- package/lib/components/logos/Birdflop.qwik.mjs +0 -73
- package/lib/components/logos/Discord.d.ts +0 -2
- package/lib/components/logos/Discord.qwik.cjs +0 -18
- package/lib/components/logos/Discord.qwik.mjs +0 -18
- package/lib/components/logos/Fabric.d.ts +0 -2
- package/lib/components/logos/Fabric.qwik.cjs +0 -32
- package/lib/components/logos/Fabric.qwik.mjs +0 -32
- package/lib/components/logos/Forge.d.ts +0 -2
- package/lib/components/logos/Forge.qwik.cjs +0 -31
- package/lib/components/logos/Forge.qwik.mjs +0 -31
- package/lib/components/logos/Luminescent.d.ts +0 -3
- package/lib/components/logos/Luminescent.qwik.cjs +0 -143
- package/lib/components/logos/Luminescent.qwik.mjs +0 -143
- package/lib/components/logos/Paper.d.ts +0 -2
- package/lib/components/logos/Paper.qwik.cjs +0 -40
- package/lib/components/logos/Paper.qwik.mjs +0 -40
- package/lib/components/logos/Pterodactyl.d.ts +0 -2
- package/lib/components/logos/Pterodactyl.qwik.cjs +0 -35
- package/lib/components/logos/Pterodactyl.qwik.mjs +0 -35
- package/lib/components/logos/Purpur.d.ts +0 -2
- package/lib/components/logos/Purpur.qwik.cjs +0 -76
- package/lib/components/logos/Purpur.qwik.mjs +0 -76
- package/lib/components/logos/Velocity.d.ts +0 -2
- package/lib/components/logos/Velocity.qwik.cjs +0 -27
- package/lib/components/logos/Velocity.qwik.mjs +0 -27
- package/lib/components/logos/Waterfall.d.ts +0 -2
- package/lib/components/logos/Waterfall.qwik.cjs +0 -21
- package/lib/components/logos/Waterfall.qwik.mjs +0 -21
- package/lib/components/logos.d.ts +0 -10
- /package/lib/components/docs/{IconsLogos.d.ts → Label.d.ts} +0 -0
- /package/lib/{components/logos → svg}/IconProps.d.ts +0 -0
|
@@ -1,134 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
92
|
-
class: {
|
|
93
|
-
"absolute z-1000 mt-2": true,
|
|
94
|
-
"backdrop-blur-lg": !noblur,
|
|
95
|
-
"lum-scroll flex max-h-72 flex-col gap-1 overflow-auto rounded-lum border p-1 select-none motion-safe:transition-all ease-out": true,
|
|
96
|
-
"left-0": align === "left",
|
|
97
|
-
"right-0": align === "right",
|
|
98
|
-
"left-1/2 -translate-x-1/2": align === "center",
|
|
99
|
-
"pointer-events-none scale-95 opacity-0": !store.opened,
|
|
100
|
-
"duration-300 group-hover:pointer-events-auto group-hover:scale-100 group-hover:opacity-100 group-hover:duration-75": hover,
|
|
101
|
-
"focus-within:pointer-events-auto focus-within:scale-100 focus-within:opacity-100 focus-within:duration-75": true,
|
|
102
|
-
[panelClass]: true
|
|
103
|
-
},
|
|
104
|
-
children: [
|
|
105
|
-
values?.map(({ name, value }, i) => {
|
|
106
|
-
return /* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
107
|
-
type: "button",
|
|
108
|
-
class: {
|
|
109
|
-
"lum-btn rounded-lum-1": true,
|
|
110
|
-
[btnClass]: true
|
|
111
|
-
},
|
|
112
|
-
onClick$: (e, el) => {
|
|
113
|
-
el.blur();
|
|
114
|
-
store.opened = false;
|
|
115
|
-
const select = selectRef.value;
|
|
116
|
-
if (select) {
|
|
117
|
-
select.value = value.toString();
|
|
118
|
-
select.dispatchEvent(new Event("change"));
|
|
119
|
-
}
|
|
120
|
-
store.value = value.toString();
|
|
121
|
-
},
|
|
122
|
-
children: name
|
|
123
|
-
}, i);
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Slot, {
|
|
126
|
-
name: "extra-buttons"
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
})
|
|
130
|
-
]
|
|
131
|
-
});
|
|
132
|
-
});
|
|
1
|
+
const require_functions = require("../functions.qwik.cjs");
|
|
2
|
+
const require_Dropdown = require("./Dropdown.qwik.cjs");
|
|
3
|
+
let _qwik_dev_core = require("@qwik.dev/core");
|
|
4
|
+
//#region src/components/elements/SelectMenu.tsx
|
|
5
|
+
var _hf0 = (p0) => p0.id ? `${p0.id}-dropdown` : void 0;
|
|
6
|
+
var SelectMenu = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(({ values, class: Class, panelClass = "lum-bg-lum-input-bg", btnClass = "lum-bg-transparent", noblur, nocloseonclick, customDropdown, hover, align, ...props }) => {
|
|
7
|
+
const store = (0, _qwik_dev_core.useStore)({
|
|
8
|
+
opened: false,
|
|
9
|
+
value: props.value
|
|
10
|
+
});
|
|
11
|
+
const selectRef = (0, _qwik_dev_core.useSignal)();
|
|
12
|
+
const selected = values?.find((v) => v.value === store.value);
|
|
13
|
+
return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
|
|
14
|
+
"relative touch-manipulation": true,
|
|
15
|
+
group: hover
|
|
16
|
+
} }, null, [
|
|
17
|
+
values && /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("select", {
|
|
18
|
+
"q-e:change": props.onChange$,
|
|
19
|
+
...(0, _qwik_dev_core._getVarProps)(props),
|
|
20
|
+
ref: selectRef
|
|
21
|
+
}, {
|
|
22
|
+
...(0, _qwik_dev_core._getConstProps)(props),
|
|
23
|
+
class: "hidden"
|
|
24
|
+
}, values.map((value, i) => {
|
|
25
|
+
return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("option", { value: (0, _qwik_dev_core._wrapProp)(value) }, null, `${value.value}`, 1, i);
|
|
26
|
+
}), 0, "WO_0"),
|
|
27
|
+
/* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(require_Dropdown.Dropdown, {
|
|
28
|
+
class: {
|
|
29
|
+
"w-full": true,
|
|
30
|
+
...require_functions.getClassObject(Class)
|
|
31
|
+
},
|
|
32
|
+
onClick$: /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((e, el) => {
|
|
33
|
+
const hover = _qwik_dev_core._captures[0], nocloseonclick = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2];
|
|
34
|
+
if (hover) return;
|
|
35
|
+
store.opened = !store.opened;
|
|
36
|
+
if (nocloseonclick) return;
|
|
37
|
+
const listener = (e) => {
|
|
38
|
+
if (!store.opened) return document.removeEventListener("click", listener);
|
|
39
|
+
if (e.composedPath().includes(el)) return;
|
|
40
|
+
store.opened = false;
|
|
41
|
+
document.removeEventListener("click", listener);
|
|
42
|
+
};
|
|
43
|
+
document.addEventListener("click", listener);
|
|
44
|
+
}, "SelectMenu_component_div_Dropdown_onClick_BY0N38IjOkc", [
|
|
45
|
+
hover,
|
|
46
|
+
nocloseonclick,
|
|
47
|
+
store
|
|
48
|
+
])
|
|
49
|
+
}, {
|
|
50
|
+
id: (0, _qwik_dev_core._fnSignal)(_hf0, [props]),
|
|
51
|
+
opened: (0, _qwik_dev_core._wrapProp)(store, "opened")
|
|
52
|
+
}, [customDropdown && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "dropdown" }, null, 3, "WO_1"), !customDropdown && (selected?.name ?? values?.[0]?.name ?? /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "dropdown" }, null, 3, "WO_2"))], 0, "WO_3"),
|
|
53
|
+
hover && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "h-2 absolute w-full" }, null, 3, "WO_4"),
|
|
54
|
+
/* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
|
|
55
|
+
"absolute z-1000 mt-2": true,
|
|
56
|
+
"backdrop-blur-lg": !noblur,
|
|
57
|
+
"lum-scroll flex max-h-72 flex-col gap-1 overflow-auto rounded-lum border p-1 select-none motion-safe:transition-all ease-out": true,
|
|
58
|
+
"left-0": align === "left",
|
|
59
|
+
"right-0": align === "right",
|
|
60
|
+
"left-1/2 -translate-x-1/2": align === "center",
|
|
61
|
+
"pointer-events-none scale-95 opacity-0": !store.opened,
|
|
62
|
+
"duration-300 group-hover:pointer-events-auto group-hover:scale-100 group-hover:opacity-100 group-hover:duration-75": hover,
|
|
63
|
+
"focus-within:pointer-events-auto focus-within:scale-100 focus-within:opacity-100 focus-within:duration-75": true,
|
|
64
|
+
...require_functions.getClassObject(panelClass)
|
|
65
|
+
} }, null, [values?.map(({ name, value }, i) => {
|
|
66
|
+
return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("button", {
|
|
67
|
+
class: {
|
|
68
|
+
"lum-btn rounded-lum-1": true,
|
|
69
|
+
...require_functions.getClassObject(btnClass)
|
|
70
|
+
},
|
|
71
|
+
"q-e:click": /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((e, el, selectRef, store, value) => {
|
|
72
|
+
el.blur();
|
|
73
|
+
store.opened = false;
|
|
74
|
+
const select = selectRef.value;
|
|
75
|
+
if (select) {
|
|
76
|
+
select.value = value.toString();
|
|
77
|
+
select.dispatchEvent(new Event("change"));
|
|
78
|
+
}
|
|
79
|
+
store.value = value.toString();
|
|
80
|
+
}, "SelectMenu_component_div_div_button_q_e_click_97KSV2AGDGw"),
|
|
81
|
+
"q:ps": [
|
|
82
|
+
selectRef,
|
|
83
|
+
store,
|
|
84
|
+
value
|
|
85
|
+
]
|
|
86
|
+
}, { type: "button" }, name, 4, i);
|
|
87
|
+
}), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "extra-buttons" }, null, 3, "WO_5")], 1, null)
|
|
88
|
+
], 1, "WO_6");
|
|
89
|
+
}, "SelectMenu_component_ofsf7iGvkLg"));
|
|
90
|
+
//#endregion
|
|
133
91
|
exports.SelectMenu = SelectMenu;
|
|
134
|
-
exports.SelectMenuRaw = SelectMenuRaw;
|
|
@@ -1,134 +1,91 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { component$, Slot, useStore, useSignal } from "@qwik.dev/core";
|
|
1
|
+
import { getClassObject } from "../functions.qwik.mjs";
|
|
3
2
|
import { Dropdown } from "./Dropdown.qwik.mjs";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"lum-scroll flex max-h-72 flex-col gap-1 overflow-auto rounded-lum border p-1 select-none motion-safe:transition-all ease-out": true,
|
|
94
|
-
"left-0": align === "left",
|
|
95
|
-
"right-0": align === "right",
|
|
96
|
-
"left-1/2 -translate-x-1/2": align === "center",
|
|
97
|
-
"pointer-events-none scale-95 opacity-0": !store.opened,
|
|
98
|
-
"duration-300 group-hover:pointer-events-auto group-hover:scale-100 group-hover:opacity-100 group-hover:duration-75": hover,
|
|
99
|
-
"focus-within:pointer-events-auto focus-within:scale-100 focus-within:opacity-100 focus-within:duration-75": true,
|
|
100
|
-
[panelClass]: true
|
|
101
|
-
},
|
|
102
|
-
children: [
|
|
103
|
-
values?.map(({ name, value }, i) => {
|
|
104
|
-
return /* @__PURE__ */ jsx("button", {
|
|
105
|
-
type: "button",
|
|
106
|
-
class: {
|
|
107
|
-
"lum-btn rounded-lum-1": true,
|
|
108
|
-
[btnClass]: true
|
|
109
|
-
},
|
|
110
|
-
onClick$: (e, el) => {
|
|
111
|
-
el.blur();
|
|
112
|
-
store.opened = false;
|
|
113
|
-
const select = selectRef.value;
|
|
114
|
-
if (select) {
|
|
115
|
-
select.value = value.toString();
|
|
116
|
-
select.dispatchEvent(new Event("change"));
|
|
117
|
-
}
|
|
118
|
-
store.value = value.toString();
|
|
119
|
-
},
|
|
120
|
-
children: name
|
|
121
|
-
}, i);
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ jsx(Slot, {
|
|
124
|
-
name: "extra-buttons"
|
|
125
|
-
})
|
|
126
|
-
]
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
export {
|
|
132
|
-
SelectMenu,
|
|
133
|
-
SelectMenuRaw
|
|
134
|
-
};
|
|
3
|
+
import { Slot, _captures, _fnSignal, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, _wrapProp, componentQrl, inlinedQrl, useSignal, useStore } from "@qwik.dev/core";
|
|
4
|
+
//#region src/components/elements/SelectMenu.tsx
|
|
5
|
+
var _hf0 = (p0) => p0.id ? `${p0.id}-dropdown` : void 0;
|
|
6
|
+
var SelectMenu = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(({ values, class: Class, panelClass = "lum-bg-lum-input-bg", btnClass = "lum-bg-transparent", noblur, nocloseonclick, customDropdown, hover, align, ...props }) => {
|
|
7
|
+
const store = useStore({
|
|
8
|
+
opened: false,
|
|
9
|
+
value: props.value
|
|
10
|
+
});
|
|
11
|
+
const selectRef = useSignal();
|
|
12
|
+
const selected = values?.find((v) => v.value === store.value);
|
|
13
|
+
return /* @__PURE__ */ _jsxSorted("div", { class: {
|
|
14
|
+
"relative touch-manipulation": true,
|
|
15
|
+
group: hover
|
|
16
|
+
} }, null, [
|
|
17
|
+
values && /* @__PURE__ */ _jsxSplit("select", {
|
|
18
|
+
"q-e:change": props.onChange$,
|
|
19
|
+
..._getVarProps(props),
|
|
20
|
+
ref: selectRef
|
|
21
|
+
}, {
|
|
22
|
+
..._getConstProps(props),
|
|
23
|
+
class: "hidden"
|
|
24
|
+
}, values.map((value, i) => {
|
|
25
|
+
return /* @__PURE__ */ _jsxSorted("option", { value: _wrapProp(value) }, null, `${value.value}`, 1, i);
|
|
26
|
+
}), 0, "WO_0"),
|
|
27
|
+
/* @__PURE__ */ _jsxSorted(Dropdown, {
|
|
28
|
+
class: {
|
|
29
|
+
"w-full": true,
|
|
30
|
+
...getClassObject(Class)
|
|
31
|
+
},
|
|
32
|
+
onClick$: /* @__PURE__ */ inlinedQrl((e, el) => {
|
|
33
|
+
const hover = _captures[0], nocloseonclick = _captures[1], store = _captures[2];
|
|
34
|
+
if (hover) return;
|
|
35
|
+
store.opened = !store.opened;
|
|
36
|
+
if (nocloseonclick) return;
|
|
37
|
+
const listener = (e) => {
|
|
38
|
+
if (!store.opened) return document.removeEventListener("click", listener);
|
|
39
|
+
if (e.composedPath().includes(el)) return;
|
|
40
|
+
store.opened = false;
|
|
41
|
+
document.removeEventListener("click", listener);
|
|
42
|
+
};
|
|
43
|
+
document.addEventListener("click", listener);
|
|
44
|
+
}, "SelectMenu_component_div_Dropdown_onClick_BY0N38IjOkc", [
|
|
45
|
+
hover,
|
|
46
|
+
nocloseonclick,
|
|
47
|
+
store
|
|
48
|
+
])
|
|
49
|
+
}, {
|
|
50
|
+
id: _fnSignal(_hf0, [props]),
|
|
51
|
+
opened: _wrapProp(store, "opened")
|
|
52
|
+
}, [customDropdown && /* @__PURE__ */ _jsxSorted(Slot, null, { name: "dropdown" }, null, 3, "WO_1"), !customDropdown && (selected?.name ?? values?.[0]?.name ?? /* @__PURE__ */ _jsxSorted(Slot, null, { name: "dropdown" }, null, 3, "WO_2"))], 0, "WO_3"),
|
|
53
|
+
hover && /* @__PURE__ */ _jsxSorted("div", null, { class: "h-2 absolute w-full" }, null, 3, "WO_4"),
|
|
54
|
+
/* @__PURE__ */ _jsxSorted("div", { class: {
|
|
55
|
+
"absolute z-1000 mt-2": true,
|
|
56
|
+
"backdrop-blur-lg": !noblur,
|
|
57
|
+
"lum-scroll flex max-h-72 flex-col gap-1 overflow-auto rounded-lum border p-1 select-none motion-safe:transition-all ease-out": true,
|
|
58
|
+
"left-0": align === "left",
|
|
59
|
+
"right-0": align === "right",
|
|
60
|
+
"left-1/2 -translate-x-1/2": align === "center",
|
|
61
|
+
"pointer-events-none scale-95 opacity-0": !store.opened,
|
|
62
|
+
"duration-300 group-hover:pointer-events-auto group-hover:scale-100 group-hover:opacity-100 group-hover:duration-75": hover,
|
|
63
|
+
"focus-within:pointer-events-auto focus-within:scale-100 focus-within:opacity-100 focus-within:duration-75": true,
|
|
64
|
+
...getClassObject(panelClass)
|
|
65
|
+
} }, null, [values?.map(({ name, value }, i) => {
|
|
66
|
+
return /* @__PURE__ */ _jsxSorted("button", {
|
|
67
|
+
class: {
|
|
68
|
+
"lum-btn rounded-lum-1": true,
|
|
69
|
+
...getClassObject(btnClass)
|
|
70
|
+
},
|
|
71
|
+
"q-e:click": /* @__PURE__ */ inlinedQrl((e, el, selectRef, store, value) => {
|
|
72
|
+
el.blur();
|
|
73
|
+
store.opened = false;
|
|
74
|
+
const select = selectRef.value;
|
|
75
|
+
if (select) {
|
|
76
|
+
select.value = value.toString();
|
|
77
|
+
select.dispatchEvent(new Event("change"));
|
|
78
|
+
}
|
|
79
|
+
store.value = value.toString();
|
|
80
|
+
}, "SelectMenu_component_div_div_button_q_e_click_97KSV2AGDGw"),
|
|
81
|
+
"q:ps": [
|
|
82
|
+
selectRef,
|
|
83
|
+
store,
|
|
84
|
+
value
|
|
85
|
+
]
|
|
86
|
+
}, { type: "button" }, name, 4, i);
|
|
87
|
+
}), /* @__PURE__ */ _jsxSorted(Slot, null, { name: "extra-buttons" }, null, 3, "WO_5")], 1, null)
|
|
88
|
+
], 1, "WO_6");
|
|
89
|
+
}, "SelectMenu_component_ofsf7iGvkLg"));
|
|
90
|
+
//#endregion
|
|
91
|
+
export { SelectMenu };
|
|
@@ -1,37 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
21
|
-
class: "flex-1",
|
|
22
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {
|
|
23
|
-
name: "title"
|
|
24
|
-
})
|
|
25
|
-
})
|
|
26
|
-
}),
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
28
|
-
class: {
|
|
29
|
-
"flex flex-col gap-3 my-4 mx-4 lg:mx-0": true
|
|
30
|
-
},
|
|
31
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {})
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
});
|
|
1
|
+
const require_functions = require("../functions.qwik.cjs");
|
|
2
|
+
let _qwik_dev_core = require("@qwik.dev/core");
|
|
3
|
+
//#region src/components/elements/Sidebar.tsx
|
|
4
|
+
var Sidebar = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(({ position, class: Class, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("aside", {
|
|
6
|
+
...(0, _qwik_dev_core._getVarProps)(props),
|
|
7
|
+
...(0, _qwik_dev_core._getConstProps)(props),
|
|
8
|
+
class: {
|
|
9
|
+
"hidden lg:flex sticky lum-card top-0 z-40 px-6 pb-0 rounded-none pt-20 h-dvh": true,
|
|
10
|
+
"left-0 border-0 border-r": position === "left" || !position,
|
|
11
|
+
"right-0 border-0 border-l": position === "right",
|
|
12
|
+
...require_functions.getClassObject(Class)
|
|
13
|
+
}
|
|
14
|
+
}, null, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("nav", null, {
|
|
15
|
+
id: "docs-sidebar",
|
|
16
|
+
class: "min-h-full relative"
|
|
17
|
+
}, [/* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "flex items-center gap-3 pb-3 px-2 border-b border-lum-border/10" }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "flex-1" }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "title" }, null, 3, "Nu_0"), 1, null), 1, null), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: { "flex flex-col gap-3 my-4 mx-4 lg:mx-0": true } }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, null, null, 3, "Nu_1"), 1, null)], 1, null), 0, "Nu_2");
|
|
18
|
+
}, "Sidebar_component_moIMGaONnvw"));
|
|
19
|
+
//#endregion
|
|
37
20
|
exports.Sidebar = Sidebar;
|
|
@@ -1,37 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
name: "title"
|
|
22
|
-
})
|
|
23
|
-
})
|
|
24
|
-
}),
|
|
25
|
-
/* @__PURE__ */ jsx("div", {
|
|
26
|
-
class: {
|
|
27
|
-
"flex flex-col gap-3 my-4 mx-4 lg:mx-0": true
|
|
28
|
-
},
|
|
29
|
-
children: /* @__PURE__ */ jsx(Slot, {})
|
|
30
|
-
})
|
|
31
|
-
]
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
export {
|
|
36
|
-
Sidebar
|
|
37
|
-
};
|
|
1
|
+
import { getClassObject } from "../functions.qwik.mjs";
|
|
2
|
+
import { Slot, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
3
|
+
//#region src/components/elements/Sidebar.tsx
|
|
4
|
+
var Sidebar = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(({ position, class: Class, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ _jsxSplit("aside", {
|
|
6
|
+
..._getVarProps(props),
|
|
7
|
+
..._getConstProps(props),
|
|
8
|
+
class: {
|
|
9
|
+
"hidden lg:flex sticky lum-card top-0 z-40 px-6 pb-0 rounded-none pt-20 h-dvh": true,
|
|
10
|
+
"left-0 border-0 border-r": position === "left" || !position,
|
|
11
|
+
"right-0 border-0 border-l": position === "right",
|
|
12
|
+
...getClassObject(Class)
|
|
13
|
+
}
|
|
14
|
+
}, null, /* @__PURE__ */ _jsxSorted("nav", null, {
|
|
15
|
+
id: "docs-sidebar",
|
|
16
|
+
class: "min-h-full relative"
|
|
17
|
+
}, [/* @__PURE__ */ _jsxSorted("div", null, { class: "flex items-center gap-3 pb-3 px-2 border-b border-lum-border/10" }, /* @__PURE__ */ _jsxSorted("div", null, { class: "flex-1" }, /* @__PURE__ */ _jsxSorted(Slot, null, { name: "title" }, null, 3, "Nu_0"), 1, null), 1, null), /* @__PURE__ */ _jsxSorted("div", null, { class: { "flex flex-col gap-3 my-4 mx-4 lg:mx-0": true } }, /* @__PURE__ */ _jsxSorted(Slot, null, null, null, 3, "Nu_1"), 1, null)], 1, null), 0, "Nu_2");
|
|
18
|
+
}, "Sidebar_component_moIMGaONnvw"));
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Sidebar };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { PropsOf } from '@qwik.dev/core';
|
|
2
2
|
interface ToggleProps extends Omit<PropsOf<'input'> & {
|
|
3
3
|
type: 'checkbox';
|
|
4
|
-
}, '
|
|
5
|
-
class?: string;
|
|
4
|
+
}, 'bind:checked' | 'type' | 'children'> {
|
|
6
5
|
checkbox?: boolean;
|
|
7
6
|
round?: boolean;
|
|
8
7
|
}
|