@luminescent/ui-qwik 7.0.0-1 → 7.0.0-3

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 (51) hide show
  1. package/lib/assets/CggnzkAK-bundle-graph.json +1 -0
  2. package/lib/assets/CyrvYwp8-bundle-graph.json +1 -0
  3. package/lib/components/docs/Anchor.d.ts +1 -2
  4. package/lib/components/docs/ColorPicker.d.ts +1 -2
  5. package/lib/components/docs/Dropdown.d.ts +1 -2
  6. package/lib/components/docs/Label.d.ts +1 -2
  7. package/lib/components/docs/LumBtn.d.ts +3 -0
  8. package/lib/components/docs/LumCard.d.ts +3 -0
  9. package/lib/components/docs/LumClasses.d.ts +3 -0
  10. package/lib/components/docs/LumInput.d.ts +3 -0
  11. package/lib/components/docs/Nav.d.ts +1 -2
  12. package/lib/components/docs/NumberInput.d.ts +1 -2
  13. package/lib/components/docs/RangeInput.d.ts +1 -2
  14. package/lib/components/docs/SelectMenu.d.ts +1 -2
  15. package/lib/components/docs/Settings.d.ts +1 -2
  16. package/lib/components/docs/Sidebar.d.ts +1 -2
  17. package/lib/components/docs/Toggle.d.ts +1 -2
  18. package/lib/components/docs/index.d.ts +15 -0
  19. package/lib/components/elements/Label.d.ts +1 -0
  20. package/lib/components/elements/Label.qwik.cjs +7 -3
  21. package/lib/components/elements/Label.qwik.mjs +8 -4
  22. package/lib/components/elements/Nav.d.ts +1 -0
  23. package/lib/components/elements/Nav.qwik.cjs +42 -36
  24. package/lib/components/elements/Nav.qwik.mjs +43 -37
  25. package/lib/components/elements/NumberInput.d.ts +1 -0
  26. package/lib/components/elements/NumberInput.qwik.cjs +4 -3
  27. package/lib/components/elements/NumberInput.qwik.mjs +4 -3
  28. package/lib/components/elements/RangeInput.d.ts +1 -0
  29. package/lib/components/elements/RangeInput.qwik.cjs +4 -3
  30. package/lib/components/elements/RangeInput.qwik.mjs +4 -3
  31. package/lib/components/elements/SelectMenu.d.ts +1 -0
  32. package/lib/components/elements/SelectMenu.qwik.cjs +7 -3
  33. package/lib/components/elements/SelectMenu.qwik.mjs +7 -3
  34. package/lib/components/elements/Toggle.d.ts +1 -0
  35. package/lib/components/elements/Toggle.qwik.cjs +4 -3
  36. package/lib/components/elements/Toggle.qwik.mjs +4 -3
  37. package/lib/components/elements.d.ts +0 -1
  38. package/lib/index.qwik.cjs +0 -3
  39. package/lib/index.qwik.mjs +1 -2
  40. package/lib/q-manifest.json +19 -31
  41. package/package.json +3 -5
  42. package/lib/assets/BBIagblG-bundle-graph.json +0 -1
  43. package/lib/assets/ChtqwOpy-bundle-graph.json +0 -1
  44. package/lib/components/docs/Blobs.d.ts +0 -4
  45. package/lib/components/docs/lum-btn.d.ts +0 -4
  46. package/lib/components/docs/lum-card.d.ts +0 -4
  47. package/lib/components/docs/lum-classes.d.ts +0 -4
  48. package/lib/components/docs/lum-input.d.ts +0 -4
  49. package/lib/components/elements/Blobs.d.ts +0 -36
  50. package/lib/components/elements/Blobs.qwik.cjs +0 -190
  51. package/lib/components/elements/Blobs.qwik.mjs +0 -189
@@ -0,0 +1 @@
1
+ ["../components/elements/Anchor.qwik.mjs",25,37,"../components/elements/ColorPicker.qwik.mjs",25,41,42,"../components/elements/Dropdown.qwik.mjs",25,36,"../components/elements/Label.qwik.mjs","../components/elements/Nav.qwik.mjs",25,38,"../components/elements/NumberInput.qwik.mjs",25,39,40,"../components/elements/RangeInput.qwik.mjs","../components/elements/SelectMenu.qwik.mjs",7,"../components/elements/Sidebar.qwik.mjs",25,"../components/elements/Toggle.qwik.mjs",25,"../components/functions.qwik.mjs","../index.qwik.mjs",0,3,10,11,14,18,19,21,23,"../svg/ChevronDown.qwik.mjs","../svg/Link.qwik.mjs","../svg/Menu.qwik.mjs","../svg/Minus.qwik.mjs","../svg/Plus.qwik.mjs","../svg/Shuffle.qwik.mjs","../utils/color.qwik.mjs"]
@@ -0,0 +1 @@
1
+ ["../components/elements/Anchor.qwik.cjs",25,37,"../components/elements/ColorPicker.qwik.cjs",25,41,42,"../components/elements/Dropdown.qwik.cjs",25,36,"../components/elements/Label.qwik.cjs","../components/elements/Nav.qwik.cjs",25,38,"../components/elements/NumberInput.qwik.cjs",25,39,40,"../components/elements/RangeInput.qwik.cjs","../components/elements/SelectMenu.qwik.cjs",7,"../components/elements/Sidebar.qwik.cjs",25,"../components/elements/Toggle.qwik.cjs",25,"../components/functions.qwik.cjs","../index.qwik.cjs",0,3,10,11,14,18,19,21,23,"../svg/ChevronDown.qwik.cjs","../svg/Link.qwik.cjs","../svg/Menu.qwik.cjs","../svg/Minus.qwik.cjs","../svg/Plus.qwik.cjs","../svg/Shuffle.qwik.cjs","../utils/color.qwik.cjs"]
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const Anchor: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const ColorPicker: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const Dropdown: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const Label: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const LumBtn: import("@qwik.dev/core").Component<{
2
+ id: string;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const LumCard: import("@qwik.dev/core").Component<{
2
+ id: string;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const LumClasses: import("@qwik.dev/core").Component<{
2
+ id: string;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const LumInput: import("@qwik.dev/core").Component<{
2
+ id: string;
3
+ }>;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const Nav: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const NumberInput: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const RangeInput: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const SelectMenu: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -1,2 +1 @@
1
- declare const _default: import("@qwik.dev/core").Component<unknown>;
2
- export default _default;
1
+ export declare const Settings: import("@qwik.dev/core").Component<unknown>;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const Sidebar: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -1,4 +1,3 @@
1
- declare const _default: import("@qwik.dev/core").Component<{
1
+ export declare const Toggle: import("@qwik.dev/core").Component<{
2
2
  id: string;
3
3
  }>;
4
- export default _default;
@@ -0,0 +1,15 @@
1
+ export * from './Anchor';
2
+ export * from './ColorPicker';
3
+ export * from './Dropdown';
4
+ export * from './Label';
5
+ export * from './Nav';
6
+ export * from './NumberInput';
7
+ export * from './RangeInput';
8
+ export * from './SelectMenu';
9
+ export * from './Sidebar';
10
+ export * from './Toggle';
11
+ export * from './LumBtn';
12
+ export * from './LumCard';
13
+ export * from './LumClasses';
14
+ export * from './LumInput';
15
+ export * from './Settings';
@@ -1,6 +1,7 @@
1
1
  import type { PropsOf } from '@qwik.dev/core';
2
2
  interface LabelProps extends PropsOf<'label'> {
3
3
  label?: string;
4
+ outerProps?: PropsOf<'div'>;
4
5
  }
5
6
  export declare const Label: import("@qwik.dev/core").Component<LabelProps>;
6
7
  export {};
@@ -1,10 +1,14 @@
1
1
  let _qwik_dev_core = require("@qwik.dev/core");
2
2
  //#region src/components/elements/Label.tsx
3
- var Label = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((props) => {
4
- return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "flex flex-col" }, [/* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("label", { ...(0, _qwik_dev_core._getVarProps)(props) }, {
3
+ var Label = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((_rawProps) => {
4
+ const props = (0, _qwik_dev_core._restProps)(_rawProps, ["label", "outerProps"]);
5
+ return /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", {
6
+ class: "flex flex-col",
7
+ ..._rawProps.outerProps
8
+ }, null, [/* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("label", { ...(0, _qwik_dev_core._getVarProps)(props) }, {
5
9
  ...(0, _qwik_dev_core._getConstProps)(props),
6
10
  class: "pb-1 text-lum-text select-none"
7
- }, [(0, _qwik_dev_core._wrapProp)(props, "label"), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { "q:slot": "label" }, null, 3, "20_0")], 0, null), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, null, null, 3, "20_1")], 1, "20_2");
11
+ }, [(0, _qwik_dev_core._wrapProp)(_rawProps, "label"), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { "q:slot": "label" }, null, 3, "20_0")], 0, null), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, null, null, 3, "20_1")], 0, "20_2");
8
12
  }, "Label_component_k1r00IhIA0s"));
9
13
  //#endregion
10
14
  exports.Label = Label;
@@ -1,10 +1,14 @@
1
- import { Slot, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, _wrapProp, componentQrl, inlinedQrl } from "@qwik.dev/core";
1
+ import { Slot, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, _restProps, _wrapProp, componentQrl, inlinedQrl } from "@qwik.dev/core";
2
2
  //#region src/components/elements/Label.tsx
3
- var Label = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
4
- return /* @__PURE__ */ _jsxSorted("div", null, { class: "flex flex-col" }, [/* @__PURE__ */ _jsxSplit("label", { ..._getVarProps(props) }, {
3
+ var Label = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawProps) => {
4
+ const props = _restProps(_rawProps, ["label", "outerProps"]);
5
+ return /* @__PURE__ */ _jsxSplit("div", {
6
+ class: "flex flex-col",
7
+ ..._rawProps.outerProps
8
+ }, null, [/* @__PURE__ */ _jsxSplit("label", { ..._getVarProps(props) }, {
5
9
  ..._getConstProps(props),
6
10
  class: "pb-1 text-lum-text select-none"
7
- }, [_wrapProp(props, "label"), /* @__PURE__ */ _jsxSorted(Slot, null, { "q:slot": "label" }, null, 3, "20_0")], 0, null), /* @__PURE__ */ _jsxSorted(Slot, null, null, null, 3, "20_1")], 1, "20_2");
11
+ }, [_wrapProp(_rawProps, "label"), /* @__PURE__ */ _jsxSorted(Slot, null, { "q:slot": "label" }, null, 3, "20_0")], 0, null), /* @__PURE__ */ _jsxSorted(Slot, null, null, null, 3, "20_1")], 0, "20_2");
8
12
  }, "Label_component_k1r00IhIA0s"));
9
13
  //#endregion
10
14
  export { Label };
@@ -5,6 +5,7 @@ interface NavProps extends PropsOf<'nav'> {
5
5
  noblur?: boolean;
6
6
  nohamburger?: boolean;
7
7
  nodismiss?: boolean;
8
+ innerProps?: PropsOf<'div'>;
8
9
  colorClass?: ClassList;
9
10
  }
10
11
  export declare const Nav: import("@qwik.dev/core").Component<NavProps>;
@@ -2,6 +2,11 @@ const require_functions = require("../functions.qwik.cjs");
2
2
  const require_Menu = require("../../svg/Menu.qwik.cjs");
3
3
  let _qwik_dev_core = require("@qwik.dev/core");
4
4
  //#region src/components/elements/Nav.tsx
5
+ var _hf0 = (p0) => !p0.floating ? { "--lum-depth": 0 } : void 0;
6
+ var _hf1 = (p0) => ({
7
+ "lum-btn lum-bg-transparent p-2 sm:hidden rounded-lum-2": true,
8
+ "nav-ignore-dismiss": p0.value
9
+ });
5
10
  var Nav = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((_rawProps) => {
6
11
  const props = (0, _qwik_dev_core._restProps)(_rawProps, [
7
12
  "fixed",
@@ -10,29 +15,17 @@ var Nav = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _
10
15
  "nohamburger",
11
16
  "nodismiss",
12
17
  "class",
13
- "colorClass"
18
+ "colorClass",
19
+ "innerProps"
14
20
  ]);
15
21
  const menu = (0, _qwik_dev_core.useSignal)(false);
16
- (0, _qwik_dev_core.useTaskQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(({ track }) => {
17
- const _rawProps = _qwik_dev_core._captures[0], menu = _qwik_dev_core._captures[1];
18
- track(() => menu.value);
19
- if (!menu.value || _rawProps.nodismiss) return;
20
- const onClick = (e) => {
21
- let el = e.target;
22
- while (el) {
23
- if (el.classList && el.classList.contains("nav-ignore-dismiss")) return;
24
- el = el.parentElement;
25
- }
26
- menu.value = false;
27
- window.removeEventListener("click", onClick);
28
- };
29
- window.addEventListener("click", onClick);
30
- }, "Nav_component_useTask_ZYe1GvC0CAM", [_rawProps, menu]));
31
22
  return /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("nav", {
32
23
  ...(0, _qwik_dev_core._getVarProps)(props),
33
24
  ...(0, _qwik_dev_core._getConstProps)(props),
34
25
  class: {
35
- "top-0 left-0 z-50 flex w-full flex-col": true,
26
+ "top-0 left-0 z-50 flex flex-col": true,
27
+ "w-full": !_rawProps.floating,
28
+ "w-[calc(100%-(--spacing(4)))] mx-2": _rawProps.floating,
36
29
  fixed: _rawProps.fixed,
37
30
  absolute: !_rawProps.fixed,
38
31
  ...require_functions.getClassObject(_rawProps.class)
@@ -45,28 +38,41 @@ var Nav = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _
45
38
  "pointer-events-none opacity-0 -mt-2 scale-95": !menu.value,
46
39
  "backdrop-blur-lg": !_rawProps.noblur,
47
40
  ...require_functions.getClassObject(_rawProps.colorClass ?? "lum-bg-lum-card-bg")
48
- } }, null, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "mobile" }, null, 3, "03_0"), 1, "03_1"), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
49
- ...!_rawProps.floating ? require_functions.getClassObject(_rawProps.colorClass ?? "lum-bg-lum-card-bg") : {},
50
- "border-x-0! border-t-0!": !_rawProps.floating,
51
- "backdrop-blur-lg": !_rawProps.noblur && !_rawProps.floating,
52
- "relative mx-2 mt-2": _rawProps.floating
53
- } }, null, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
54
- "mx-auto flex w-full max-w-7xl justify-evenly px-2": true,
55
- ..._rawProps.floating ? require_functions.getClassObject(_rawProps.colorClass ?? "lum-bg-lum-card-bg") : {},
56
- "rounded-lum border": _rawProps.floating,
57
- "backdrop-blur-lg": !_rawProps.noblur && _rawProps.floating
58
- } }, null, [
59
- /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "flex flex-1 items-center justify-start gap-2 py-2" }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "start" }, null, 3, "03_2"), 1, null),
60
- /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "flex flex-1 items-center justify-center gap-2 py-2" }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "center" }, null, 3, "03_3"), 1, null),
61
- /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "flex flex-1 items-center justify-end gap-2 py-2" }, [/* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "end" }, null, 3, "03_4"), !_rawProps.nohamburger && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("button", {
62
- "q-e:click": /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((_, _1, menu) => menu.value = !menu.value, "Nav_component_nav_div_div_div_button_q_e_click_rIKeLxoPukM"),
63
- "q:p": menu
41
+ } }, null, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "mobile" }, null, 3, "03_0"), 1, "03_1"), /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", {
42
+ ..._rawProps.innerProps,
43
+ style: (0, _qwik_dev_core._fnSignal)(_hf0, [_rawProps]),
44
+ class: {
45
+ "flex w-full justify-evenly px-2": true,
46
+ "backdrop-blur-lg": !_rawProps.noblur,
47
+ "border-x-0! border-t-0!": !_rawProps.floating,
48
+ "mx-auto max-w-7xl mt-2 rounded-lum border": _rawProps.floating,
49
+ ...require_functions.getClassObject(_rawProps.colorClass ?? "lum-bg-lum-card-bg")
50
+ }
51
+ }, null, [
52
+ /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", { ..._rawProps.innerProps }, { class: "flex flex-1 items-center justify-start gap-2 py-2" }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "start" }, null, 3, "03_2"), 0, null),
53
+ /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", { ..._rawProps.innerProps }, { class: "flex flex-1 items-center justify-center gap-2 py-2" }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "center" }, null, 3, "03_3"), 0, null),
54
+ /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", { ..._rawProps.innerProps }, { class: "flex flex-1 items-center justify-end gap-2 py-2" }, [/* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "end" }, null, 3, "03_4"), !_rawProps.nohamburger && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("button", {
55
+ "q-e:click": /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((_, _1, _rawProps, menu) => {
56
+ menu.value = !menu.value;
57
+ if (_rawProps.nodismiss) return;
58
+ function onClick(e) {
59
+ if (menu.value == false) return window.removeEventListener("click", onClick);
60
+ let el = e.target;
61
+ while (el) {
62
+ if (el.classList.contains("nav-ignore-dismiss")) return;
63
+ el = el.parentElement;
64
+ }
65
+ menu.value = false;
66
+ }
67
+ if (menu.value) window.addEventListener("click", onClick);
68
+ }, "Nav_component_nav_div_div_button_q_e_click_Dv3Y0bHaG0E"),
69
+ "q:ps": [_rawProps, menu]
64
70
  }, {
65
71
  name: "Navigation Menu",
66
72
  title: "Navigation Menu",
67
- class: "lum-btn lum-bg-transparent p-2 sm:hidden rounded-lum-2"
68
- }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(require_Menu.Menu, null, { size: 24 }, null, 3, "03_5"), 4, "03_6")], 1, null)
69
- ], 1, null), 1, null)], 0, "03_7");
73
+ class: (0, _qwik_dev_core._fnSignal)(_hf1, [menu])
74
+ }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(require_Menu.Menu, null, { size: 24 }, null, 3, "03_5"), 4, "03_6")], 0, null)
75
+ ], 0, null)], 0, "03_7");
70
76
  }, "Nav_component_GVA94DyavJM"));
71
77
  //#endregion
72
78
  exports.Nav = Nav;
@@ -1,7 +1,12 @@
1
1
  import { getClassObject } from "../functions.qwik.mjs";
2
2
  import { Menu } from "../../svg/Menu.qwik.mjs";
3
- import { Slot, _captures, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, _restProps, componentQrl, inlinedQrl, useSignal, useTaskQrl } from "@qwik.dev/core";
3
+ import { Slot, _fnSignal, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, _restProps, componentQrl, inlinedQrl, useSignal } from "@qwik.dev/core";
4
4
  //#region src/components/elements/Nav.tsx
5
+ var _hf0 = (p0) => !p0.floating ? { "--lum-depth": 0 } : void 0;
6
+ var _hf1 = (p0) => ({
7
+ "lum-btn lum-bg-transparent p-2 sm:hidden rounded-lum-2": true,
8
+ "nav-ignore-dismiss": p0.value
9
+ });
5
10
  var Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawProps) => {
6
11
  const props = _restProps(_rawProps, [
7
12
  "fixed",
@@ -10,29 +15,17 @@ var Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawProps) =>
10
15
  "nohamburger",
11
16
  "nodismiss",
12
17
  "class",
13
- "colorClass"
18
+ "colorClass",
19
+ "innerProps"
14
20
  ]);
15
21
  const menu = useSignal(false);
16
- useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
17
- const _rawProps = _captures[0], menu = _captures[1];
18
- track(() => menu.value);
19
- if (!menu.value || _rawProps.nodismiss) return;
20
- const onClick = (e) => {
21
- let el = e.target;
22
- while (el) {
23
- if (el.classList && el.classList.contains("nav-ignore-dismiss")) return;
24
- el = el.parentElement;
25
- }
26
- menu.value = false;
27
- window.removeEventListener("click", onClick);
28
- };
29
- window.addEventListener("click", onClick);
30
- }, "Nav_component_useTask_ZYe1GvC0CAM", [_rawProps, menu]));
31
22
  return /* @__PURE__ */ _jsxSplit("nav", {
32
23
  ..._getVarProps(props),
33
24
  ..._getConstProps(props),
34
25
  class: {
35
- "top-0 left-0 z-50 flex w-full flex-col": true,
26
+ "top-0 left-0 z-50 flex flex-col": true,
27
+ "w-full": !_rawProps.floating,
28
+ "w-[calc(100%-(--spacing(4)))] mx-2": _rawProps.floating,
36
29
  fixed: _rawProps.fixed,
37
30
  absolute: !_rawProps.fixed,
38
31
  ...getClassObject(_rawProps.class)
@@ -45,28 +38,41 @@ var Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawProps) =>
45
38
  "pointer-events-none opacity-0 -mt-2 scale-95": !menu.value,
46
39
  "backdrop-blur-lg": !_rawProps.noblur,
47
40
  ...getClassObject(_rawProps.colorClass ?? "lum-bg-lum-card-bg")
48
- } }, null, /* @__PURE__ */ _jsxSorted(Slot, null, { name: "mobile" }, null, 3, "03_0"), 1, "03_1"), /* @__PURE__ */ _jsxSorted("div", { class: {
49
- ...!_rawProps.floating ? getClassObject(_rawProps.colorClass ?? "lum-bg-lum-card-bg") : {},
50
- "border-x-0! border-t-0!": !_rawProps.floating,
51
- "backdrop-blur-lg": !_rawProps.noblur && !_rawProps.floating,
52
- "relative mx-2 mt-2": _rawProps.floating
53
- } }, null, /* @__PURE__ */ _jsxSorted("div", { class: {
54
- "mx-auto flex w-full max-w-7xl justify-evenly px-2": true,
55
- ..._rawProps.floating ? getClassObject(_rawProps.colorClass ?? "lum-bg-lum-card-bg") : {},
56
- "rounded-lum border": _rawProps.floating,
57
- "backdrop-blur-lg": !_rawProps.noblur && _rawProps.floating
58
- } }, null, [
59
- /* @__PURE__ */ _jsxSorted("div", null, { class: "flex flex-1 items-center justify-start gap-2 py-2" }, /* @__PURE__ */ _jsxSorted(Slot, null, { name: "start" }, null, 3, "03_2"), 1, null),
60
- /* @__PURE__ */ _jsxSorted("div", null, { class: "flex flex-1 items-center justify-center gap-2 py-2" }, /* @__PURE__ */ _jsxSorted(Slot, null, { name: "center" }, null, 3, "03_3"), 1, null),
61
- /* @__PURE__ */ _jsxSorted("div", null, { class: "flex flex-1 items-center justify-end gap-2 py-2" }, [/* @__PURE__ */ _jsxSorted(Slot, null, { name: "end" }, null, 3, "03_4"), !_rawProps.nohamburger && /* @__PURE__ */ _jsxSorted("button", {
62
- "q-e:click": /* @__PURE__ */ inlinedQrl((_, _1, menu) => menu.value = !menu.value, "Nav_component_nav_div_div_div_button_q_e_click_rIKeLxoPukM"),
63
- "q:p": menu
41
+ } }, null, /* @__PURE__ */ _jsxSorted(Slot, null, { name: "mobile" }, null, 3, "03_0"), 1, "03_1"), /* @__PURE__ */ _jsxSplit("div", {
42
+ ..._rawProps.innerProps,
43
+ style: _fnSignal(_hf0, [_rawProps]),
44
+ class: {
45
+ "flex w-full justify-evenly px-2": true,
46
+ "backdrop-blur-lg": !_rawProps.noblur,
47
+ "border-x-0! border-t-0!": !_rawProps.floating,
48
+ "mx-auto max-w-7xl mt-2 rounded-lum border": _rawProps.floating,
49
+ ...getClassObject(_rawProps.colorClass ?? "lum-bg-lum-card-bg")
50
+ }
51
+ }, null, [
52
+ /* @__PURE__ */ _jsxSplit("div", { ..._rawProps.innerProps }, { class: "flex flex-1 items-center justify-start gap-2 py-2" }, /* @__PURE__ */ _jsxSorted(Slot, null, { name: "start" }, null, 3, "03_2"), 0, null),
53
+ /* @__PURE__ */ _jsxSplit("div", { ..._rawProps.innerProps }, { class: "flex flex-1 items-center justify-center gap-2 py-2" }, /* @__PURE__ */ _jsxSorted(Slot, null, { name: "center" }, null, 3, "03_3"), 0, null),
54
+ /* @__PURE__ */ _jsxSplit("div", { ..._rawProps.innerProps }, { class: "flex flex-1 items-center justify-end gap-2 py-2" }, [/* @__PURE__ */ _jsxSorted(Slot, null, { name: "end" }, null, 3, "03_4"), !_rawProps.nohamburger && /* @__PURE__ */ _jsxSorted("button", {
55
+ "q-e:click": /* @__PURE__ */ inlinedQrl((_, _1, _rawProps, menu) => {
56
+ menu.value = !menu.value;
57
+ if (_rawProps.nodismiss) return;
58
+ function onClick(e) {
59
+ if (menu.value == false) return window.removeEventListener("click", onClick);
60
+ let el = e.target;
61
+ while (el) {
62
+ if (el.classList.contains("nav-ignore-dismiss")) return;
63
+ el = el.parentElement;
64
+ }
65
+ menu.value = false;
66
+ }
67
+ if (menu.value) window.addEventListener("click", onClick);
68
+ }, "Nav_component_nav_div_div_button_q_e_click_Dv3Y0bHaG0E"),
69
+ "q:ps": [_rawProps, menu]
64
70
  }, {
65
71
  name: "Navigation Menu",
66
72
  title: "Navigation Menu",
67
- class: "lum-btn lum-bg-transparent p-2 sm:hidden rounded-lum-2"
68
- }, /* @__PURE__ */ _jsxSorted(Menu, null, { size: 24 }, null, 3, "03_5"), 4, "03_6")], 1, null)
69
- ], 1, null), 1, null)], 0, "03_7");
73
+ class: _fnSignal(_hf1, [menu])
74
+ }, /* @__PURE__ */ _jsxSorted(Menu, null, { size: 24 }, null, 3, "03_5"), 4, "03_6")], 0, null)
75
+ ], 0, null)], 0, "03_7");
70
76
  }, "Nav_component_GVA94DyavJM"));
71
77
  //#endregion
72
78
  export { Nav };
@@ -9,6 +9,7 @@ interface NumberInputProps extends Omit<PropsOf<'input'> & {
9
9
  min?: number;
10
10
  max?: number;
11
11
  step?: number;
12
+ outerProps?: PropsOf<'div'>;
12
13
  }
13
14
  export declare const NumberInput: import("@qwik.dev/core").Component<NumberInputProps>;
14
15
  export {};
@@ -14,7 +14,8 @@ var NumberInput = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
14
14
  "onDecrement$",
15
15
  "onIncrement$",
16
16
  "value",
17
- "step"
17
+ "step",
18
+ "outerProps"
18
19
  ]);
19
20
  (0, _qwik_dev_core.useStylesQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(`
20
21
  input::-webkit-outer-spin-button,
@@ -26,7 +27,7 @@ var NumberInput = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
26
27
  -moz-appearance: textfield;
27
28
  }
28
29
  `, "NumberInput_component_useStyles_9gV0k9qgkUU"));
29
- return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: { "flex touch-manipulation gap-1 text-lum-text": true } }, [
30
+ return /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", { ..._rawProps.outerProps }, { class: { "flex touch-manipulation gap-1 text-lum-text": true } }, [
30
31
  /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("button", {
31
32
  disabled: (0, _qwik_dev_core._fnSignal)(_hf0, [_rawProps, props]),
32
33
  "q-e:click": _rawProps.input ? /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (event, element) => {
@@ -65,7 +66,7 @@ var NumberInput = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
65
66
  "data-action": "increment",
66
67
  "aria-label": "Increment"
67
68
  }, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(require_Plus.Plus, null, { size: 20 }, null, 3, "kR_2"), 0, null)
68
- ], 1, "kR_3");
69
+ ], 0, "kR_3");
69
70
  }, "NumberInput_component_2YJwSaeO64g"));
70
71
  //#endregion
71
72
  exports.NumberInput = NumberInput;
@@ -14,7 +14,8 @@ var NumberInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawP
14
14
  "onDecrement$",
15
15
  "onIncrement$",
16
16
  "value",
17
- "step"
17
+ "step",
18
+ "outerProps"
18
19
  ]);
19
20
  useStylesQrl(/* @__PURE__ */ inlinedQrl(`
20
21
  input::-webkit-outer-spin-button,
@@ -26,7 +27,7 @@ var NumberInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawP
26
27
  -moz-appearance: textfield;
27
28
  }
28
29
  `, "NumberInput_component_useStyles_9gV0k9qgkUU"));
29
- return /* @__PURE__ */ _jsxSorted("div", null, { class: { "flex touch-manipulation gap-1 text-lum-text": true } }, [
30
+ return /* @__PURE__ */ _jsxSplit("div", { ..._rawProps.outerProps }, { class: { "flex touch-manipulation gap-1 text-lum-text": true } }, [
30
31
  /* @__PURE__ */ _jsxSorted("button", {
31
32
  disabled: _fnSignal(_hf0, [_rawProps, props]),
32
33
  "q-e:click": _rawProps.input ? /* @__PURE__ */ inlinedQrl(async (event, element) => {
@@ -65,7 +66,7 @@ var NumberInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawP
65
66
  "data-action": "increment",
66
67
  "aria-label": "Increment"
67
68
  }, /* @__PURE__ */ _jsxSorted(Plus, null, { size: 20 }, null, 3, "kR_2"), 0, null)
68
- ], 1, "kR_3");
69
+ ], 0, "kR_3");
69
70
  }, "NumberInput_component_2YJwSaeO64g"));
70
71
  //#endregion
71
72
  export { NumberInput };
@@ -6,6 +6,7 @@ interface RangeInputProps extends Omit<PropsOf<'input'> & {
6
6
  value?: number;
7
7
  min?: number;
8
8
  max?: number;
9
+ outerProps?: PropsOf<'div'>;
9
10
  }
10
11
  export declare const RangeInput: import("@qwik.dev/core").Component<RangeInputProps>;
11
12
  export {};
@@ -9,7 +9,8 @@ var RangeInput = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ *
9
9
  "value",
10
10
  "min",
11
11
  "max",
12
- "onInput$"
12
+ "onInput$",
13
+ "outerProps"
13
14
  ]);
14
15
  const valueSignal = (0, _qwik_dev_core.useSignal)(_rawProps.value ?? _rawProps.min ?? 0);
15
16
  const filledPercentage = (0, _qwik_dev_core.useComputedQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(() => {
@@ -17,7 +18,7 @@ var RangeInput = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ *
17
18
  return (_qwik_dev_core._captures[1].value - (_rawProps.min ?? 0)) / ((_rawProps.max ?? 10) - (_rawProps.min ?? 0)) * 100;
18
19
  }, "RangeInput_component_filledPercentage_useComputed_Vta9t9J9C4k", [_rawProps, valueSignal]));
19
20
  const tickCount = (_rawProps.max ?? 10) - (_rawProps.min ?? 0) - 1;
20
- return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: { "group relative flex touch-manipulation gap-1 text-lum-text lum-input p-0": true } }, [
21
+ return /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", { ..._rawProps.outerProps }, { class: { "group relative flex touch-manipulation gap-1 text-lum-text lum-input p-0": true } }, [
21
22
  /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "absolute w-full flex justify-evenly" }, tickCount > 0 && [...Array(tickCount)].map((_, i) => {
22
23
  return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "border-l border-l-lum-border/20 h-1 my-0.5" }, null, 3, i);
23
24
  }), 1, null),
@@ -44,7 +45,7 @@ var RangeInput = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ *
44
45
  value: (0, _qwik_dev_core._wrapProp)(valueSignal),
45
46
  class: "absolute top-0 h-2 w-full opacity-0 cursor-pointer"
46
47
  }, null, 4, null)
47
- ], 1, "Wb_0");
48
+ ], 0, "Wb_0");
48
49
  }, "RangeInput_component_wN5xjLYsT00"));
49
50
  //#endregion
50
51
  exports.RangeInput = RangeInput;
@@ -9,7 +9,8 @@ var RangeInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawPr
9
9
  "value",
10
10
  "min",
11
11
  "max",
12
- "onInput$"
12
+ "onInput$",
13
+ "outerProps"
13
14
  ]);
14
15
  const valueSignal = useSignal(_rawProps.value ?? _rawProps.min ?? 0);
15
16
  const filledPercentage = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
@@ -17,7 +18,7 @@ var RangeInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawPr
17
18
  return (_captures[1].value - (_rawProps.min ?? 0)) / ((_rawProps.max ?? 10) - (_rawProps.min ?? 0)) * 100;
18
19
  }, "RangeInput_component_filledPercentage_useComputed_Vta9t9J9C4k", [_rawProps, valueSignal]));
19
20
  const tickCount = (_rawProps.max ?? 10) - (_rawProps.min ?? 0) - 1;
20
- return /* @__PURE__ */ _jsxSorted("div", null, { class: { "group relative flex touch-manipulation gap-1 text-lum-text lum-input p-0": true } }, [
21
+ return /* @__PURE__ */ _jsxSplit("div", { ..._rawProps.outerProps }, { class: { "group relative flex touch-manipulation gap-1 text-lum-text lum-input p-0": true } }, [
21
22
  /* @__PURE__ */ _jsxSorted("div", null, { class: "absolute w-full flex justify-evenly" }, tickCount > 0 && [...Array(tickCount)].map((_, i) => {
22
23
  return /* @__PURE__ */ _jsxSorted("div", null, { class: "border-l border-l-lum-border/20 h-1 my-0.5" }, null, 3, i);
23
24
  }), 1, null),
@@ -44,7 +45,7 @@ var RangeInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawPr
44
45
  value: _wrapProp(valueSignal),
45
46
  class: "absolute top-0 h-2 w-full opacity-0 cursor-pointer"
46
47
  }, null, 4, null)
47
- ], 1, "Wb_0");
48
+ ], 0, "Wb_0");
48
49
  }, "RangeInput_component_wN5xjLYsT00"));
49
50
  //#endregion
50
51
  export { RangeInput };
@@ -12,6 +12,7 @@ interface SelectMenuProps extends Omit<PropsOf<'select'>, 'onChange$'> {
12
12
  name: JSXChildren;
13
13
  value: string | number;
14
14
  }[];
15
+ outerProps?: PropsOf<'div'>;
15
16
  }
16
17
  export declare const SelectMenu: import("@qwik.dev/core").Component<SelectMenuProps>;
17
18
  export {};
@@ -17,7 +17,8 @@ var SelectMenu = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ *
17
17
  "nocloseonclick",
18
18
  "customDropdown",
19
19
  "hover",
20
- "align"
20
+ "align",
21
+ "outerProps"
21
22
  ]);
22
23
  const store = (0, _qwik_dev_core.useStore)({
23
24
  opened: false,
@@ -25,7 +26,10 @@ var SelectMenu = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ *
25
26
  });
26
27
  const selectRef = (0, _qwik_dev_core.useSignal)();
27
28
  const selected = _rawProps.values?.find((v) => v.value === store.value);
28
- return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: (0, _qwik_dev_core._fnSignal)(_hf0, [_rawProps]) }, null, [
29
+ return /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", {
30
+ ..._rawProps.outerProps,
31
+ class: (0, _qwik_dev_core._fnSignal)(_hf0, [_rawProps])
32
+ }, null, [
29
33
  _rawProps.values && /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("select", {
30
34
  "q-e:change": props.onChange$,
31
35
  ...(0, _qwik_dev_core._getVarProps)(props),
@@ -93,7 +97,7 @@ var SelectMenu = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ *
93
97
  ]
94
98
  }, { type: "button" }, name, 4, i);
95
99
  }), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, { name: "extra-buttons" }, null, 3, "WO_5")], 1, null)
96
- ], 1, "WO_6");
100
+ ], 0, "WO_6");
97
101
  }, "SelectMenu_component_ofsf7iGvkLg"));
98
102
  //#endregion
99
103
  exports.SelectMenu = SelectMenu;
@@ -17,7 +17,8 @@ var SelectMenu = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawPr
17
17
  "nocloseonclick",
18
18
  "customDropdown",
19
19
  "hover",
20
- "align"
20
+ "align",
21
+ "outerProps"
21
22
  ]);
22
23
  const store = useStore({
23
24
  opened: false,
@@ -25,7 +26,10 @@ var SelectMenu = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawPr
25
26
  });
26
27
  const selectRef = useSignal();
27
28
  const selected = _rawProps.values?.find((v) => v.value === store.value);
28
- return /* @__PURE__ */ _jsxSorted("div", { class: _fnSignal(_hf0, [_rawProps]) }, null, [
29
+ return /* @__PURE__ */ _jsxSplit("div", {
30
+ ..._rawProps.outerProps,
31
+ class: _fnSignal(_hf0, [_rawProps])
32
+ }, null, [
29
33
  _rawProps.values && /* @__PURE__ */ _jsxSplit("select", {
30
34
  "q-e:change": props.onChange$,
31
35
  ..._getVarProps(props),
@@ -93,7 +97,7 @@ var SelectMenu = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawPr
93
97
  ]
94
98
  }, { type: "button" }, name, 4, i);
95
99
  }), /* @__PURE__ */ _jsxSorted(Slot, null, { name: "extra-buttons" }, null, 3, "WO_5")], 1, null)
96
- ], 1, "WO_6");
100
+ ], 0, "WO_6");
97
101
  }, "SelectMenu_component_ofsf7iGvkLg"));
98
102
  //#endregion
99
103
  export { SelectMenu };
@@ -4,6 +4,7 @@ interface ToggleProps extends Omit<PropsOf<'input'> & {
4
4
  }, 'bind:checked' | 'type' | 'children'> {
5
5
  checkbox?: boolean;
6
6
  round?: boolean;
7
+ outerProps?: PropsOf<'div'>;
7
8
  }
8
9
  export declare const Toggle: import("@qwik.dev/core").Component<ToggleProps>;
9
10
  export {};