@luminescent/ui-qwik 7.0.0-0 → 7.0.0-2

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 (55) hide show
  1. package/lib/components/docs/Anchor.d.ts +1 -2
  2. package/lib/components/docs/Blobs.d.ts +1 -2
  3. package/lib/components/docs/ColorPicker.d.ts +1 -2
  4. package/lib/components/docs/Dropdown.d.ts +1 -2
  5. package/lib/components/docs/Label.d.ts +1 -2
  6. package/lib/components/docs/LumBtn.d.ts +3 -0
  7. package/lib/components/docs/LumCard.d.ts +3 -0
  8. package/lib/components/docs/LumClasses.d.ts +3 -0
  9. package/lib/components/docs/LumInput.d.ts +3 -0
  10. package/lib/components/docs/Nav.d.ts +1 -2
  11. package/lib/components/docs/NumberInput.d.ts +1 -2
  12. package/lib/components/docs/RangeInput.d.ts +1 -2
  13. package/lib/components/docs/SelectMenu.d.ts +1 -2
  14. package/lib/components/docs/Settings.d.ts +1 -2
  15. package/lib/components/docs/Sidebar.d.ts +1 -2
  16. package/lib/components/docs/Toggle.d.ts +1 -2
  17. package/lib/components/docs/index.d.ts +16 -0
  18. package/lib/components/elements/Anchor.qwik.cjs +19 -16
  19. package/lib/components/elements/Anchor.qwik.mjs +20 -17
  20. package/lib/components/elements/Blobs.qwik.cjs +23 -18
  21. package/lib/components/elements/Blobs.qwik.mjs +24 -19
  22. package/lib/components/elements/ColorPicker.qwik.cjs +50 -51
  23. package/lib/components/elements/ColorPicker.qwik.mjs +50 -51
  24. package/lib/components/elements/Dropdown.qwik.cjs +9 -4
  25. package/lib/components/elements/Dropdown.qwik.mjs +10 -5
  26. package/lib/components/elements/Nav.qwik.cjs +46 -36
  27. package/lib/components/elements/Nav.qwik.mjs +47 -37
  28. package/lib/components/elements/NumberInput.qwik.cjs +27 -17
  29. package/lib/components/elements/NumberInput.qwik.mjs +28 -18
  30. package/lib/components/elements/RangeInput.qwik.cjs +19 -15
  31. package/lib/components/elements/RangeInput.qwik.mjs +20 -16
  32. package/lib/components/elements/SelectMenu.qwik.cjs +37 -29
  33. package/lib/components/elements/SelectMenu.qwik.mjs +38 -30
  34. package/lib/components/elements/Sidebar.qwik.cjs +5 -4
  35. package/lib/components/elements/Sidebar.qwik.mjs +6 -5
  36. package/lib/components/elements/Toggle.qwik.cjs +11 -6
  37. package/lib/components/elements/Toggle.qwik.mjs +12 -7
  38. package/lib/q-manifest.json +35 -35
  39. package/lib/svg/ChevronDown.qwik.cjs +4 -3
  40. package/lib/svg/ChevronDown.qwik.mjs +5 -4
  41. package/lib/svg/Link.qwik.cjs +4 -3
  42. package/lib/svg/Link.qwik.mjs +5 -4
  43. package/lib/svg/Menu.qwik.cjs +4 -3
  44. package/lib/svg/Menu.qwik.mjs +5 -4
  45. package/lib/svg/Minus.qwik.cjs +4 -3
  46. package/lib/svg/Minus.qwik.mjs +5 -4
  47. package/lib/svg/Plus.qwik.cjs +4 -3
  48. package/lib/svg/Plus.qwik.mjs +5 -4
  49. package/lib/svg/Shuffle.qwik.cjs +4 -3
  50. package/lib/svg/Shuffle.qwik.mjs +5 -4
  51. package/package.json +9 -10
  52. package/lib/components/docs/lum-btn.d.ts +0 -4
  53. package/lib/components/docs/lum-card.d.ts +0 -4
  54. package/lib/components/docs/lum-classes.d.ts +0 -4
  55. package/lib/components/docs/lum-input.d.ts +0 -4
@@ -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 Blobs: 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,16 @@
1
+ export * from './Anchor';
2
+ export * from './Blobs';
3
+ export * from './ColorPicker';
4
+ export * from './Dropdown';
5
+ export * from './Label';
6
+ export * from './Nav';
7
+ export * from './NumberInput';
8
+ export * from './RangeInput';
9
+ export * from './SelectMenu';
10
+ export * from './Sidebar';
11
+ export * from './Toggle';
12
+ export * from './LumBtn';
13
+ export * from './LumCard';
14
+ export * from './LumClasses';
15
+ export * from './LumInput';
16
+ export * from './Settings';
@@ -2,21 +2,24 @@ const require_Link = require("../../svg/Link.qwik.cjs");
2
2
  const require_functions = require("../functions.qwik.cjs");
3
3
  let _qwik_dev_core = require("@qwik.dev/core");
4
4
  //#region src/components/elements/Anchor.tsx
5
- var Anchor = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(({ id, class: Class, ...props }) => /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", {
6
- ...(0, _qwik_dev_core._getVarProps)(props),
7
- ...(0, _qwik_dev_core._getConstProps)(props),
8
- class: {
9
- "group flex items-center gap-2 scroll-mt-32": true,
10
- ...require_functions.getClassObject(Class)
11
- }
12
- }, null, [/* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, null, null, 3, "mN_0"), id && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("a", {
13
- href: `#${id}`,
14
- "q-e:click": /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async () => {
15
- await navigator.clipboard.writeText(window.location.href);
16
- }, "Anchor_component_div_a_q_e_click_p2vKymvG8LM")
17
- }, null, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(require_Link.Link, null, {
18
- class: "opacity-10 transition-opacity duration-300 group-hover:opacity-100 group-hover:duration-75",
19
- size: 20
20
- }, null, 3, "mN_1"), 0, "mN_2")], 0, "mN_3"), "Anchor_component_dUkqs0yGHwc"));
5
+ var Anchor = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((_rawProps) => {
6
+ const props = (0, _qwik_dev_core._restProps)(_rawProps, ["id", "class"]);
7
+ return /* @__PURE__ */ (0, _qwik_dev_core._jsxSplit)("div", {
8
+ ...(0, _qwik_dev_core._getVarProps)(props),
9
+ ...(0, _qwik_dev_core._getConstProps)(props),
10
+ class: {
11
+ "group flex items-center gap-2 scroll-mt-32": true,
12
+ ...require_functions.getClassObject(_rawProps.class)
13
+ }
14
+ }, null, [/* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(_qwik_dev_core.Slot, null, null, null, 3, "mN_0"), _rawProps.id && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("a", {
15
+ href: `#${_rawProps.id}`,
16
+ "q-e:click": /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async () => {
17
+ await navigator.clipboard.writeText(window.location.href);
18
+ }, "Anchor_component_div_a_q_e_click_p2vKymvG8LM")
19
+ }, null, /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)(require_Link.Link, null, {
20
+ class: "opacity-10 transition-opacity duration-300 group-hover:opacity-100 group-hover:duration-75",
21
+ size: 20
22
+ }, null, 3, "mN_1"), 0, "mN_2")], 0, "mN_3");
23
+ }, "Anchor_component_dUkqs0yGHwc"));
21
24
  //#endregion
22
25
  exports.Anchor = Anchor;
@@ -1,22 +1,25 @@
1
1
  import { Link } from "../../svg/Link.qwik.mjs";
2
2
  import { getClassObject } from "../functions.qwik.mjs";
3
- import { Slot, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, componentQrl, inlinedQrl } from "@qwik.dev/core";
3
+ import { Slot, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, _restProps, componentQrl, inlinedQrl } from "@qwik.dev/core";
4
4
  //#region src/components/elements/Anchor.tsx
5
- var Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(({ id, class: Class, ...props }) => /* @__PURE__ */ _jsxSplit("div", {
6
- ..._getVarProps(props),
7
- ..._getConstProps(props),
8
- class: {
9
- "group flex items-center gap-2 scroll-mt-32": true,
10
- ...getClassObject(Class)
11
- }
12
- }, null, [/* @__PURE__ */ _jsxSorted(Slot, null, null, null, 3, "mN_0"), id && /* @__PURE__ */ _jsxSorted("a", {
13
- href: `#${id}`,
14
- "q-e:click": /* @__PURE__ */ inlinedQrl(async () => {
15
- await navigator.clipboard.writeText(window.location.href);
16
- }, "Anchor_component_div_a_q_e_click_p2vKymvG8LM")
17
- }, null, /* @__PURE__ */ _jsxSorted(Link, null, {
18
- class: "opacity-10 transition-opacity duration-300 group-hover:opacity-100 group-hover:duration-75",
19
- size: 20
20
- }, null, 3, "mN_1"), 0, "mN_2")], 0, "mN_3"), "Anchor_component_dUkqs0yGHwc"));
5
+ var Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawProps) => {
6
+ const props = _restProps(_rawProps, ["id", "class"]);
7
+ return /* @__PURE__ */ _jsxSplit("div", {
8
+ ..._getVarProps(props),
9
+ ..._getConstProps(props),
10
+ class: {
11
+ "group flex items-center gap-2 scroll-mt-32": true,
12
+ ...getClassObject(_rawProps.class)
13
+ }
14
+ }, null, [/* @__PURE__ */ _jsxSorted(Slot, null, null, null, 3, "mN_0"), _rawProps.id && /* @__PURE__ */ _jsxSorted("a", {
15
+ href: `#${_rawProps.id}`,
16
+ "q-e:click": /* @__PURE__ */ inlinedQrl(async () => {
17
+ await navigator.clipboard.writeText(window.location.href);
18
+ }, "Anchor_component_div_a_q_e_click_p2vKymvG8LM")
19
+ }, null, /* @__PURE__ */ _jsxSorted(Link, null, {
20
+ class: "opacity-10 transition-opacity duration-300 group-hover:opacity-100 group-hover:duration-75",
21
+ size: 20
22
+ }, null, 3, "mN_1"), 0, "mN_2")], 0, "mN_3");
23
+ }, "Anchor_component_dUkqs0yGHwc"));
21
24
  //#endregion
22
25
  export { Anchor };
@@ -136,44 +136,49 @@ var blobClasses = [
136
136
  "animate-blob5",
137
137
  "animate-blob6"
138
138
  ];
139
- var Blobs = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(({ class: Class, color = "darkgray", blur = "xl", ...props }) => {
139
+ var Blobs = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((_rawProps) => {
140
+ const props = (0, _qwik_dev_core._restProps)(_rawProps, [
141
+ "class",
142
+ "color",
143
+ "blur"
144
+ ]);
140
145
  const blob = Math.round(Math.random() * 6);
141
- const colorClass = typeof color == "string" ? blobColorClasses[color] : color;
146
+ const colorClass = typeof (_rawProps.color ?? "darkgray") == "string" ? blobColorClasses[_rawProps.color ?? "darkgray"] : _rawProps.color ?? "darkgray";
142
147
  return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", {
143
148
  class: {
144
149
  "animate-in fade-in anim-duration-[2s] absolute inset-0 transition-all motion-reduce:hidden": true,
145
- ...require_functions.getClassObject(Class)
150
+ ...require_functions.getClassObject(_rawProps.class)
146
151
  },
147
152
  style: (0, _qwik_dev_core._fnSignal)(_hf0, [props])
148
153
  }, null, [
149
154
  /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
150
155
  "absolute top-0 h-[30cqw] w-[30cqw] rounded-full opacity-20 ease-in-out": true,
151
- "blur-xs": blur === "xs",
152
- "blur-sm": blur === "sm",
153
- "blur-md": blur === "md",
154
- "blur-lg": blur === "lg",
155
- "blur-xl": blur === "xl",
156
+ "blur-xs": (_rawProps.blur ?? "xl") === "xs",
157
+ "blur-sm": (_rawProps.blur ?? "xl") === "sm",
158
+ "blur-md": (_rawProps.blur ?? "xl") === "md",
159
+ "blur-lg": (_rawProps.blur ?? "xl") === "lg",
160
+ "blur-xl": (_rawProps.blur ?? "xl") === "xl",
156
161
  [blobClasses[blob]]: true,
157
162
  ...require_functions.getClassObject(colorClass[0])
158
163
  } }, null, null, 3, null),
159
164
  /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
160
165
  "absolute top-0 h-[30cqw] w-[30cqw] rounded-full opacity-20 ease-in-out": true,
161
- "blur-xs": blur === "xs",
162
- "blur-sm": blur === "sm",
163
- "blur-md": blur === "md",
164
- "blur-lg": blur === "lg",
165
- "blur-xl": blur === "xl",
166
+ "blur-xs": (_rawProps.blur ?? "xl") === "xs",
167
+ "blur-sm": (_rawProps.blur ?? "xl") === "sm",
168
+ "blur-md": (_rawProps.blur ?? "xl") === "md",
169
+ "blur-lg": (_rawProps.blur ?? "xl") === "lg",
170
+ "blur-xl": (_rawProps.blur ?? "xl") === "xl",
166
171
  "anim-delay-[-5s]": true,
167
172
  [blobClasses[blob]]: true,
168
173
  ...require_functions.getClassObject(colorClass[1])
169
174
  } }, null, null, 3, null),
170
175
  /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
171
176
  "absolute top-0 h-[30cqw] w-[30cqw] rounded-full opacity-20 ease-in-out": true,
172
- "blur-xs": blur === "xs",
173
- "blur-sm": blur === "sm",
174
- "blur-md": blur === "md",
175
- "blur-lg": blur === "lg",
176
- "blur-xl": blur === "xl",
177
+ "blur-xs": (_rawProps.blur ?? "xl") === "xs",
178
+ "blur-sm": (_rawProps.blur ?? "xl") === "sm",
179
+ "blur-md": (_rawProps.blur ?? "xl") === "md",
180
+ "blur-lg": (_rawProps.blur ?? "xl") === "lg",
181
+ "blur-xl": (_rawProps.blur ?? "xl") === "xl",
177
182
  "anim-delay-[-10s]": true,
178
183
  [blobClasses[blob]]: true,
179
184
  ...require_functions.getClassObject(colorClass[2])
@@ -1,5 +1,5 @@
1
1
  import { getClassObject } from "../functions.qwik.mjs";
2
- import { _fnSignal, _jsxSorted, componentQrl, inlinedQrl } from "@qwik.dev/core";
2
+ import { _fnSignal, _jsxSorted, _restProps, componentQrl, inlinedQrl } from "@qwik.dev/core";
3
3
  //#region src/components/elements/Blobs.tsx
4
4
  var _hf0 = (p0) => ({
5
5
  containerType: "size",
@@ -136,44 +136,49 @@ var blobClasses = [
136
136
  "animate-blob5",
137
137
  "animate-blob6"
138
138
  ];
139
- var Blobs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(({ class: Class, color = "darkgray", blur = "xl", ...props }) => {
139
+ var Blobs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((_rawProps) => {
140
+ const props = _restProps(_rawProps, [
141
+ "class",
142
+ "color",
143
+ "blur"
144
+ ]);
140
145
  const blob = Math.round(Math.random() * 6);
141
- const colorClass = typeof color == "string" ? blobColorClasses[color] : color;
146
+ const colorClass = typeof (_rawProps.color ?? "darkgray") == "string" ? blobColorClasses[_rawProps.color ?? "darkgray"] : _rawProps.color ?? "darkgray";
142
147
  return /* @__PURE__ */ _jsxSorted("div", {
143
148
  class: {
144
149
  "animate-in fade-in anim-duration-[2s] absolute inset-0 transition-all motion-reduce:hidden": true,
145
- ...getClassObject(Class)
150
+ ...getClassObject(_rawProps.class)
146
151
  },
147
152
  style: _fnSignal(_hf0, [props])
148
153
  }, null, [
149
154
  /* @__PURE__ */ _jsxSorted("div", { class: {
150
155
  "absolute top-0 h-[30cqw] w-[30cqw] rounded-full opacity-20 ease-in-out": true,
151
- "blur-xs": blur === "xs",
152
- "blur-sm": blur === "sm",
153
- "blur-md": blur === "md",
154
- "blur-lg": blur === "lg",
155
- "blur-xl": blur === "xl",
156
+ "blur-xs": (_rawProps.blur ?? "xl") === "xs",
157
+ "blur-sm": (_rawProps.blur ?? "xl") === "sm",
158
+ "blur-md": (_rawProps.blur ?? "xl") === "md",
159
+ "blur-lg": (_rawProps.blur ?? "xl") === "lg",
160
+ "blur-xl": (_rawProps.blur ?? "xl") === "xl",
156
161
  [blobClasses[blob]]: true,
157
162
  ...getClassObject(colorClass[0])
158
163
  } }, null, null, 3, null),
159
164
  /* @__PURE__ */ _jsxSorted("div", { class: {
160
165
  "absolute top-0 h-[30cqw] w-[30cqw] rounded-full opacity-20 ease-in-out": true,
161
- "blur-xs": blur === "xs",
162
- "blur-sm": blur === "sm",
163
- "blur-md": blur === "md",
164
- "blur-lg": blur === "lg",
165
- "blur-xl": blur === "xl",
166
+ "blur-xs": (_rawProps.blur ?? "xl") === "xs",
167
+ "blur-sm": (_rawProps.blur ?? "xl") === "sm",
168
+ "blur-md": (_rawProps.blur ?? "xl") === "md",
169
+ "blur-lg": (_rawProps.blur ?? "xl") === "lg",
170
+ "blur-xl": (_rawProps.blur ?? "xl") === "xl",
166
171
  "anim-delay-[-5s]": true,
167
172
  [blobClasses[blob]]: true,
168
173
  ...getClassObject(colorClass[1])
169
174
  } }, null, null, 3, null),
170
175
  /* @__PURE__ */ _jsxSorted("div", { class: {
171
176
  "absolute top-0 h-[30cqw] w-[30cqw] rounded-full opacity-20 ease-in-out": true,
172
- "blur-xs": blur === "xs",
173
- "blur-sm": blur === "sm",
174
- "blur-md": blur === "md",
175
- "blur-lg": blur === "lg",
176
- "blur-xl": blur === "xl",
177
+ "blur-xs": (_rawProps.blur ?? "xl") === "xs",
178
+ "blur-sm": (_rawProps.blur ?? "xl") === "sm",
179
+ "blur-md": (_rawProps.blur ?? "xl") === "md",
180
+ "blur-lg": (_rawProps.blur ?? "xl") === "lg",
181
+ "blur-xl": (_rawProps.blur ?? "xl") === "xl",
177
182
  "anim-delay-[-10s]": true,
178
183
  [blobClasses[blob]]: true,
179
184
  ...getClassObject(colorClass[2])
@@ -18,26 +18,10 @@ var _hf5 = (p0, p1) => ({
18
18
  "lum-btn rounded-sm h-[1.6rem] w-[1.6rem] p-0 lum-bg hover:brightness-150": true,
19
19
  "border-lum-accent": p0 === p1.value
20
20
  });
21
- var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(({ id, class: Class, value = "#000000", colors = [
22
- "#FAEDCB",
23
- "#C9E4DE",
24
- "#C6DEF1",
25
- "#DBCDF0",
26
- "#F2C6DE",
27
- "#FCD05C",
28
- "#5FE2C5",
29
- "#4498DB",
30
- "#9863E7",
31
- "#E43A96",
32
- "#000000",
33
- "#555555",
34
- "#AAAAAA",
35
- "#FFFFFF"
36
- ], onInput$, preview = "left", horizontal, showInput = true, opacity }) => {
37
- const height = 150;
38
- const width = height - 25;
39
- const maxHue = height - 2;
40
- const hsvColor = require_color.rgbToHsv(require_color.hexToRgba(value));
21
+ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)((_rawProps) => {
22
+ const width = 125;
23
+ const maxHue = 148;
24
+ const hsvColor = require_color.rgbToHsv(require_color.hexToRgba(_rawProps.value ?? "#000000"));
41
25
  const store = (0, _qwik_dev_core.useStore)({
42
26
  hue: {
43
27
  position: hsvColor.h * maxHue,
@@ -50,10 +34,10 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
50
34
  opacity: { position: hsvColor.a !== void 0 ? (1 - hsvColor.a) * maxHue : 0 },
51
35
  bPosition: (1 - hsvColor.v) * maxHue,
52
36
  sPosition: hsvColor.s * width,
53
- value
37
+ value: _rawProps.value ?? "#000000"
54
38
  });
55
39
  const setColor = /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (color) => {
56
- const maxHue = _qwik_dev_core._captures[0], onInput$ = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2], width = _qwik_dev_core._captures[3];
40
+ const _rawProps = _qwik_dev_core._captures[0], maxHue = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2], width = _qwik_dev_core._captures[3];
57
41
  if (!/^#[0-9a-f]{0,8}$/i.test(color)) return;
58
42
  const hsv = require_color.rgbToHsv(require_color.hexToRgba(color));
59
43
  store.hue.position = hsv.h * maxHue;
@@ -66,10 +50,10 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
66
50
  store.sPosition = hsv.s * width;
67
51
  store.bPosition = (1 - hsv.v) * maxHue;
68
52
  store.value = color;
69
- await onInput$?.(store.value);
53
+ await _rawProps.onInput$?.(store.value);
70
54
  }, "ColorPicker_component_setColor_m9tT2MF9iI8", [
55
+ _rawProps,
71
56
  maxHue,
72
- onInput$,
73
57
  store,
74
58
  width
75
59
  ]);
@@ -89,7 +73,7 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
89
73
  window.addEventListener("mouseup", mouseUpListener);
90
74
  window.addEventListener("touchend", mouseUpListener);
91
75
  }, "ColorPicker_component_hueMouseDown_cw08gCPBKtw", [/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (e, hOffset) => {
92
- const maxHue = _qwik_dev_core._captures[0], onInput$ = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2];
76
+ const _rawProps = _qwik_dev_core._captures[0], maxHue = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2];
93
77
  const { y } = require_color.getMousePosition(e);
94
78
  store.hue.position = require_color.clamp(maxHue - (y - hOffset), 0, maxHue);
95
79
  const hsvColor = require_color.rgbToHsv(require_color.hexToRgba(store.value));
@@ -102,10 +86,10 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
102
86
  a: hsvColor.a
103
87
  }));
104
88
  store.value = require_color.rgbToHex(require_color.hsvToRgb(hsvColor));
105
- await onInput$?.(store.value);
89
+ await _rawProps.onInput$?.(store.value);
106
90
  }, "ColorPicker_component_hueChange_c0i9qwof0Yw", [
91
+ _rawProps,
107
92
  maxHue,
108
- onInput$,
109
93
  store
110
94
  ])]);
111
95
  const sbMouseDown = /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (e, el) => {
@@ -124,7 +108,7 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
124
108
  window.addEventListener("mouseup", mouseUpListener);
125
109
  window.addEventListener("touchend", mouseUpListener);
126
110
  }, "ColorPicker_component_sbMouseDown_Vor71dUNt7g", [/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (e, hOffset) => {
127
- const maxHue = _qwik_dev_core._captures[0], onInput$ = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2], width = _qwik_dev_core._captures[3];
111
+ const _rawProps = _qwik_dev_core._captures[0], maxHue = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2], width = _qwik_dev_core._captures[3];
128
112
  const { x, y } = require_color.getMousePosition(e);
129
113
  store.bPosition = require_color.clamp(y - hOffset.top, 0, maxHue);
130
114
  store.sPosition = require_color.clamp(x - hOffset.left, 0, width);
@@ -136,10 +120,10 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
136
120
  v,
137
121
  a: store.opacity.position !== void 0 ? 1 - store.opacity.position / maxHue : 1
138
122
  }));
139
- await onInput$?.(store.value);
123
+ await _rawProps.onInput$?.(store.value);
140
124
  }, "ColorPicker_component_sbChange_NwrBaY0ccx0", [
125
+ _rawProps,
141
126
  maxHue,
142
- onInput$,
143
127
  store,
144
128
  width
145
129
  ])]);
@@ -159,26 +143,26 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
159
143
  window.addEventListener("mouseup", mouseUpListener);
160
144
  window.addEventListener("touchend", mouseUpListener);
161
145
  }, "ColorPicker_component_opacityMouseDown_U0p127RN2e0", [/* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (e, hOffset) => {
162
- const maxHue = _qwik_dev_core._captures[0], onInput$ = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2];
146
+ const _rawProps = _qwik_dev_core._captures[0], maxHue = _qwik_dev_core._captures[1], store = _qwik_dev_core._captures[2];
163
147
  const { x } = require_color.getMousePosition(e);
164
148
  store.opacity.position = require_color.clamp(x - hOffset.left, 0, maxHue);
165
149
  const a = 1 - store.opacity.position / maxHue;
166
150
  const hsvColor = require_color.rgbToHsv(require_color.hexToRgba(store.value));
167
151
  hsvColor.a = a;
168
152
  store.value = require_color.rgbToHex(require_color.hsvToRgb(hsvColor));
169
- await onInput$?.(store.value);
153
+ await _rawProps.onInput$?.(store.value);
170
154
  }, "ColorPicker_component_opacityChange_WBZtDRHmnMU", [
155
+ _rawProps,
171
156
  maxHue,
172
- onInput$,
173
157
  store
174
158
  ])]);
175
159
  return /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", {
176
160
  class: {
177
161
  "lum-card touch-none p-4": true,
178
- "flex-col": !horizontal,
179
- ...require_functions.getClassObject(Class)
162
+ "flex-col": !_rawProps.horizontal,
163
+ ...require_functions.getClassObject(_rawProps.class)
180
164
  },
181
- id,
165
+ id: (0, _qwik_dev_core._wrapProp)(_rawProps, "id"),
182
166
  "q-e:input": /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (e, el, setColor) => {
183
167
  if (!el.dataset.value) return;
184
168
  await setColor(el.dataset.value);
@@ -206,7 +190,7 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
206
190
  class: "absolute -bottom-2 -left-1.25 h-4 w-4 rounded-md lum-bg! bg-[#ff0000] ",
207
191
  style: (0, _qwik_dev_core._fnSignal)(_hf2, [store])
208
192
  }, null, 3, null), 3, null)], 3, null),
209
- opacity && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, {
193
+ _rawProps.opacity && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, {
210
194
  class: "relative h-2 w-full rounded-md",
211
195
  "q-e:mousedown": opacityMouseDown,
212
196
  "q-e:touchstart": opacityMouseDown,
@@ -239,34 +223,49 @@ var ColorPicker = /* @__PURE__ */ (0, _qwik_dev_core.componentQrl)(/* @__PURE__
239
223
  backgroundPosition: "0 0, 4px 0, 4px -4px, 0 4px"
240
224
  } }, { class: "absolute -bottom-1.25 -left-1.25 h-4 w-4 rounded-md" }, null, 3, null)], 1, "Xr_0"),
241
225
  /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", null, { class: "flex w-37.5 flex-wrap justify-between gap-1" }, [
242
- showInput && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
226
+ (_rawProps.showInput ?? true) && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
243
227
  "mb-2 flex w-37.5 border-b border-b-gray-700 pb-3": true,
244
- "flex-row gap-1": preview == "left",
245
- "flex-row-reverse gap-1": preview == "right",
246
- "flex-col": preview == "top",
247
- "flex-col-reverse": preview == "bottom"
248
- } }, null, [preview != "full" && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
228
+ "flex-row gap-1": (_rawProps.preview ?? "left") == "left",
229
+ "flex-row-reverse gap-1": (_rawProps.preview ?? "left") == "right",
230
+ "flex-col": (_rawProps.preview ?? "left") == "top",
231
+ "flex-col-reverse": (_rawProps.preview ?? "left") == "bottom"
232
+ } }, null, [(_rawProps.preview ?? "left") != "full" && /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("div", { class: {
249
233
  "border border-gray-700 rounded-sm": true,
250
- "aspect-square h-full": preview == "left" || preview == "right",
251
- "h-3 w-full": preview == "top" || preview == "bottom",
252
- "rounded-b-none": preview == "top",
253
- "rounded-t-none": preview == "bottom"
234
+ "aspect-square h-full": (_rawProps.preview ?? "left") == "left" || (_rawProps.preview ?? "left") == "right",
235
+ "h-3 w-full": (_rawProps.preview ?? "left") == "top" || (_rawProps.preview ?? "left") == "bottom",
236
+ "rounded-b-none": (_rawProps.preview ?? "left") == "top",
237
+ "rounded-t-none": (_rawProps.preview ?? "left") == "bottom"
254
238
  } }, { style: (0, _qwik_dev_core._fnSignal)(_hf4, [store]) }, null, 3, "Xr_1"), /* @__PURE__ */ (0, _qwik_dev_core._jsxSorted)("input", {
255
239
  class: {
256
240
  "lum-input w-full p-1 text-xs rounded-sm": true,
257
- "rounded-t-none border-t-0": preview == "top",
258
- "rounded-b-none border-b-0": preview == "bottom"
241
+ "rounded-t-none border-t-0": (_rawProps.preview ?? "left") == "top",
242
+ "rounded-b-none border-b-0": (_rawProps.preview ?? "left") == "bottom"
259
243
  },
260
244
  "q-e:input": /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (e, el, setColor) => {
261
245
  await setColor(el.value);
262
246
  }, "ColorPicker_component_div_div_div_input_q_e_input_ExKkgH2ke0g"),
263
247
  "q:p": setColor,
264
- style: preview == "full" ? {
248
+ style: (_rawProps.preview ?? "left") == "full" ? {
265
249
  backgroundColor: `${store.value}`,
266
250
  color: require_color.getBrightness(require_color.hexToRgba(store.value)) > .5 ? "black" : "white"
267
251
  } : {}
268
252
  }, { value: (0, _qwik_dev_core._wrapProp)(store) }, null, 6, null)], 1, "Xr_2"),
269
- colors.map((color, i) => {
253
+ (_rawProps.colors ?? [
254
+ "#FAEDCB",
255
+ "#C9E4DE",
256
+ "#C6DEF1",
257
+ "#DBCDF0",
258
+ "#F2C6DE",
259
+ "#FCD05C",
260
+ "#5FE2C5",
261
+ "#4498DB",
262
+ "#9863E7",
263
+ "#E43A96",
264
+ "#000000",
265
+ "#555555",
266
+ "#AAAAAA",
267
+ "#FFFFFF"
268
+ ]).map((color, i) => {
270
269
  const qrl_4294901768 = /* @__PURE__ */ (0, _qwik_dev_core.inlinedQrl)(async (_, _1, color) => {
271
270
  const setColor = _qwik_dev_core._captures[0];
272
271
  await setColor(color);