@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.
Files changed (98) hide show
  1. package/LICENSE +661 -0
  2. package/lib/assets/BBIagblG-bundle-graph.json +1 -0
  3. package/lib/assets/ChtqwOpy-bundle-graph.json +1 -0
  4. package/lib/components/elements/Anchor.d.ts +1 -4
  5. package/lib/components/elements/Anchor.qwik.cjs +21 -25
  6. package/lib/components/elements/Anchor.qwik.mjs +21 -25
  7. package/lib/components/elements/Blobs.d.ts +3 -4
  8. package/lib/components/elements/Blobs.qwik.cjs +181 -187
  9. package/lib/components/elements/Blobs.qwik.mjs +182 -189
  10. package/lib/components/elements/ColorPicker.d.ts +1 -4
  11. package/lib/components/elements/ColorPicker.qwik.cjs +285 -303
  12. package/lib/components/elements/ColorPicker.qwik.mjs +285 -303
  13. package/lib/components/elements/Dropdown.d.ts +1 -4
  14. package/lib/components/elements/Dropdown.qwik.cjs +20 -30
  15. package/lib/components/elements/Dropdown.qwik.mjs +20 -30
  16. package/lib/components/elements/Label.d.ts +6 -0
  17. package/lib/components/elements/Label.qwik.cjs +10 -0
  18. package/lib/components/elements/Label.qwik.mjs +10 -0
  19. package/lib/components/elements/Nav.d.ts +3 -6
  20. package/lib/components/elements/Nav.qwik.cjs +63 -97
  21. package/lib/components/elements/Nav.qwik.mjs +63 -97
  22. package/lib/components/elements/NumberInput.d.ts +4 -11
  23. package/lib/components/elements/NumberInput.qwik.cjs +52 -78
  24. package/lib/components/elements/NumberInput.qwik.mjs +51 -77
  25. package/lib/components/elements/RangeInput.d.ts +2 -9
  26. package/lib/components/elements/RangeInput.qwik.cjs +45 -76
  27. package/lib/components/elements/RangeInput.qwik.mjs +46 -77
  28. package/lib/components/elements/SelectMenu.d.ts +5 -8
  29. package/lib/components/elements/SelectMenu.qwik.cjs +90 -133
  30. package/lib/components/elements/SelectMenu.qwik.mjs +90 -133
  31. package/lib/components/elements/Sidebar.d.ts +1 -4
  32. package/lib/components/elements/Sidebar.qwik.cjs +19 -36
  33. package/lib/components/elements/Sidebar.qwik.mjs +20 -37
  34. package/lib/components/elements/Toggle.d.ts +1 -2
  35. package/lib/components/elements/Toggle.qwik.cjs +22 -38
  36. package/lib/components/elements/Toggle.qwik.mjs +23 -39
  37. package/lib/components/elements.d.ts +1 -0
  38. package/lib/components/functions.d.ts +2 -0
  39. package/lib/components/functions.qwik.cjs +19 -16
  40. package/lib/components/functions.qwik.mjs +19 -17
  41. package/lib/index.d.ts +0 -1
  42. package/lib/index.qwik.cjs +26 -48
  43. package/lib/index.qwik.mjs +6 -42
  44. package/lib/q-manifest.json +239 -0
  45. package/lib/svg/ChevronDown.d.ts +1 -1
  46. package/lib/svg/ChevronDown.qwik.cjs +18 -22
  47. package/lib/svg/ChevronDown.qwik.mjs +19 -23
  48. package/lib/svg/Link.d.ts +1 -1
  49. package/lib/svg/Link.qwik.cjs +27 -33
  50. package/lib/svg/Link.qwik.mjs +28 -34
  51. package/lib/svg/Menu.d.ts +1 -1
  52. package/lib/svg/Menu.qwik.cjs +22 -30
  53. package/lib/svg/Menu.qwik.mjs +23 -31
  54. package/lib/svg/Minus.d.ts +1 -1
  55. package/lib/svg/Minus.qwik.cjs +18 -22
  56. package/lib/svg/Minus.qwik.mjs +19 -23
  57. package/lib/svg/Plus.d.ts +1 -1
  58. package/lib/svg/Plus.qwik.cjs +18 -27
  59. package/lib/svg/Plus.qwik.mjs +19 -28
  60. package/lib/svg/Shuffle.d.ts +1 -1
  61. package/lib/svg/Shuffle.qwik.cjs +24 -36
  62. package/lib/svg/Shuffle.qwik.mjs +25 -37
  63. package/lib/utils/color.qwik.cjs +101 -115
  64. package/lib/utils/color.qwik.mjs +102 -122
  65. package/package.json +14 -14
  66. package/lib/components/logos/Birdflop.d.ts +0 -7
  67. package/lib/components/logos/Birdflop.qwik.cjs +0 -73
  68. package/lib/components/logos/Birdflop.qwik.mjs +0 -73
  69. package/lib/components/logos/Discord.d.ts +0 -2
  70. package/lib/components/logos/Discord.qwik.cjs +0 -18
  71. package/lib/components/logos/Discord.qwik.mjs +0 -18
  72. package/lib/components/logos/Fabric.d.ts +0 -2
  73. package/lib/components/logos/Fabric.qwik.cjs +0 -32
  74. package/lib/components/logos/Fabric.qwik.mjs +0 -32
  75. package/lib/components/logos/Forge.d.ts +0 -2
  76. package/lib/components/logos/Forge.qwik.cjs +0 -31
  77. package/lib/components/logos/Forge.qwik.mjs +0 -31
  78. package/lib/components/logos/Luminescent.d.ts +0 -3
  79. package/lib/components/logos/Luminescent.qwik.cjs +0 -143
  80. package/lib/components/logos/Luminescent.qwik.mjs +0 -143
  81. package/lib/components/logos/Paper.d.ts +0 -2
  82. package/lib/components/logos/Paper.qwik.cjs +0 -40
  83. package/lib/components/logos/Paper.qwik.mjs +0 -40
  84. package/lib/components/logos/Pterodactyl.d.ts +0 -2
  85. package/lib/components/logos/Pterodactyl.qwik.cjs +0 -35
  86. package/lib/components/logos/Pterodactyl.qwik.mjs +0 -35
  87. package/lib/components/logos/Purpur.d.ts +0 -2
  88. package/lib/components/logos/Purpur.qwik.cjs +0 -76
  89. package/lib/components/logos/Purpur.qwik.mjs +0 -76
  90. package/lib/components/logos/Velocity.d.ts +0 -2
  91. package/lib/components/logos/Velocity.qwik.cjs +0 -27
  92. package/lib/components/logos/Velocity.qwik.mjs +0 -27
  93. package/lib/components/logos/Waterfall.d.ts +0 -2
  94. package/lib/components/logos/Waterfall.qwik.cjs +0 -21
  95. package/lib/components/logos/Waterfall.qwik.mjs +0 -21
  96. package/lib/components/logos.d.ts +0 -10
  97. /package/lib/components/docs/{IconsLogos.d.ts → Label.d.ts} +0 -0
  98. /package/lib/{components/logos → svg}/IconProps.d.ts +0 -0
@@ -1,134 +1,91 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@qwik.dev/core/jsx-runtime");
4
- const core = require("@qwik.dev/core");
5
- const Dropdown = require("./Dropdown.qwik.cjs");
6
- const SelectMenu = core.component$((props) => {
7
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
8
- class: "flex flex-col",
9
- children: [
10
- /* @__PURE__ */ jsxRuntime.jsx("label", {
11
- for: props.id ? `${props.id}-dropdown` : void 0,
12
- class: "pb-1 text-lum-text select-none",
13
- children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {})
14
- }),
15
- /* @__PURE__ */ jsxRuntime.jsxs(SelectMenuRaw, {
16
- ...props,
17
- children: [
18
- /* @__PURE__ */ jsxRuntime.jsx("div", {
19
- "q:slot": "dropdown",
20
- children: (props.customDropdown || !props.values?.length) && /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {
21
- name: "dropdown"
22
- })
23
- }),
24
- /* @__PURE__ */ jsxRuntime.jsx("div", {
25
- "q:slot": "extra-buttons",
26
- children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {
27
- name: "extra-buttons"
28
- })
29
- })
30
- ]
31
- })
32
- ]
33
- });
34
- });
35
- const SelectMenuRaw = core.component$(({ values, class: Class, panelClass = "lum-bg-lum-input-bg", btnClass = "lum-bg-transparent", noblur, nocloseonclick, customDropdown, hover, align, ...props }) => {
36
- const store = core.useStore({
37
- opened: false,
38
- value: props.value
39
- });
40
- const selectRef = core.useSignal();
41
- const selected = values?.find((v) => v.value === store.value);
42
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
43
- class: {
44
- "relative touch-manipulation": true,
45
- group: hover
46
- },
47
- children: [
48
- values && /* @__PURE__ */ jsxRuntime.jsx("select", {
49
- ...props,
50
- ref: selectRef,
51
- class: "hidden",
52
- children: values.map((value, i) => {
53
- return /* @__PURE__ */ jsxRuntime.jsx("option", {
54
- value: value.value,
55
- children: `${value.value}`
56
- }, i);
57
- })
58
- }),
59
- /* @__PURE__ */ jsxRuntime.jsxs(Dropdown.Dropdown, {
60
- id: props.id ? `${props.id}-dropdown` : void 0,
61
- opened: store.opened,
62
- class: {
63
- "w-full": true,
64
- ...Class
65
- },
66
- onClick$: (e, el) => {
67
- if (hover) return;
68
- store.opened = !store.opened;
69
- if (nocloseonclick) return;
70
- const listener = (e2) => {
71
- if (!store.opened) return document.removeEventListener("click", listener);
72
- const path = e2.composedPath();
73
- if (path.includes(el)) return;
74
- store.opened = false;
75
- document.removeEventListener("click", listener);
76
- };
77
- document.addEventListener("click", listener);
78
- },
79
- children: [
80
- customDropdown && /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {
81
- name: "dropdown"
82
- }),
83
- !customDropdown && (selected?.name ?? values?.[0]?.name ?? /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {
84
- name: "dropdown"
85
- }))
86
- ]
87
- }),
88
- hover && /* @__PURE__ */ jsxRuntime.jsx("div", {
89
- class: "h-2 absolute w-full"
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 { jsxs, jsx } from "@qwik.dev/core/jsx-runtime";
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
- const SelectMenu = component$((props) => {
5
- return /* @__PURE__ */ jsxs("div", {
6
- class: "flex flex-col",
7
- children: [
8
- /* @__PURE__ */ jsx("label", {
9
- for: props.id ? `${props.id}-dropdown` : void 0,
10
- class: "pb-1 text-lum-text select-none",
11
- children: /* @__PURE__ */ jsx(Slot, {})
12
- }),
13
- /* @__PURE__ */ jsxs(SelectMenuRaw, {
14
- ...props,
15
- children: [
16
- /* @__PURE__ */ jsx("div", {
17
- "q:slot": "dropdown",
18
- children: (props.customDropdown || !props.values?.length) && /* @__PURE__ */ jsx(Slot, {
19
- name: "dropdown"
20
- })
21
- }),
22
- /* @__PURE__ */ jsx("div", {
23
- "q:slot": "extra-buttons",
24
- children: /* @__PURE__ */ jsx(Slot, {
25
- name: "extra-buttons"
26
- })
27
- })
28
- ]
29
- })
30
- ]
31
- });
32
- });
33
- const SelectMenuRaw = component$(({ values, class: Class, panelClass = "lum-bg-lum-input-bg", btnClass = "lum-bg-transparent", noblur, nocloseonclick, customDropdown, hover, align, ...props }) => {
34
- const store = useStore({
35
- opened: false,
36
- value: props.value
37
- });
38
- const selectRef = useSignal();
39
- const selected = values?.find((v) => v.value === store.value);
40
- return /* @__PURE__ */ jsxs("div", {
41
- class: {
42
- "relative touch-manipulation": true,
43
- group: hover
44
- },
45
- children: [
46
- values && /* @__PURE__ */ jsx("select", {
47
- ...props,
48
- ref: selectRef,
49
- class: "hidden",
50
- children: values.map((value, i) => {
51
- return /* @__PURE__ */ jsx("option", {
52
- value: value.value,
53
- children: `${value.value}`
54
- }, i);
55
- })
56
- }),
57
- /* @__PURE__ */ jsxs(Dropdown, {
58
- id: props.id ? `${props.id}-dropdown` : void 0,
59
- opened: store.opened,
60
- class: {
61
- "w-full": true,
62
- ...Class
63
- },
64
- onClick$: (e, el) => {
65
- if (hover) return;
66
- store.opened = !store.opened;
67
- if (nocloseonclick) return;
68
- const listener = (e2) => {
69
- if (!store.opened) return document.removeEventListener("click", listener);
70
- const path = e2.composedPath();
71
- if (path.includes(el)) return;
72
- store.opened = false;
73
- document.removeEventListener("click", listener);
74
- };
75
- document.addEventListener("click", listener);
76
- },
77
- children: [
78
- customDropdown && /* @__PURE__ */ jsx(Slot, {
79
- name: "dropdown"
80
- }),
81
- !customDropdown && (selected?.name ?? values?.[0]?.name ?? /* @__PURE__ */ jsx(Slot, {
82
- name: "dropdown"
83
- }))
84
- ]
85
- }),
86
- hover && /* @__PURE__ */ jsx("div", {
87
- class: "h-2 absolute w-full"
88
- }),
89
- /* @__PURE__ */ jsxs("div", {
90
- class: {
91
- "absolute z-1000 mt-2": true,
92
- "backdrop-blur-lg": !noblur,
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,8 +1,5 @@
1
1
  import { PropsOf } from '@qwik.dev/core';
2
- interface SidebarProps extends Omit<PropsOf<'aside'>, 'class'> {
3
- class?: {
4
- [key: string]: boolean;
5
- };
2
+ interface SidebarProps extends PropsOf<'aside'> {
6
3
  floating?: boolean;
7
4
  position?: 'left' | 'right';
8
5
  }
@@ -1,37 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@qwik.dev/core/jsx-runtime");
4
- const core = require("@qwik.dev/core");
5
- const Sidebar = core.component$(({ position, ...props }) => {
6
- return /* @__PURE__ */ jsxRuntime.jsx("aside", {
7
- ...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
- ...props.class
13
- },
14
- children: /* @__PURE__ */ jsxRuntime.jsxs("nav", {
15
- id: "docs-sidebar",
16
- class: "min-h-full relative",
17
- children: [
18
- /* @__PURE__ */ jsxRuntime.jsx("div", {
19
- class: "flex items-center gap-3 pb-3 px-2 border-b border-lum-border/10",
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 { jsx, jsxs } from "@qwik.dev/core/jsx-runtime";
2
- import { component$, Slot } from "@qwik.dev/core";
3
- const Sidebar = component$(({ position, ...props }) => {
4
- return /* @__PURE__ */ jsx("aside", {
5
- ...props,
6
- class: {
7
- "hidden lg:flex sticky lum-card top-0 z-40 px-6 pb-0 rounded-none pt-20 h-dvh": true,
8
- "left-0 border-0 border-r": position === "left" || !position,
9
- "right-0 border-0 border-l": position === "right",
10
- ...props.class
11
- },
12
- children: /* @__PURE__ */ jsxs("nav", {
13
- id: "docs-sidebar",
14
- class: "min-h-full relative",
15
- children: [
16
- /* @__PURE__ */ jsx("div", {
17
- class: "flex items-center gap-3 pb-3 px-2 border-b border-lum-border/10",
18
- children: /* @__PURE__ */ jsx("div", {
19
- class: "flex-1",
20
- children: /* @__PURE__ */ jsx(Slot, {
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
- }, 'class' | 'bind:checked' | 'type' | 'children'> {
5
- class?: string;
4
+ }, 'bind:checked' | 'type' | 'children'> {
6
5
  checkbox?: boolean;
7
6
  round?: boolean;
8
7
  }