@luminescent/ui 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.qwik.cjs +293 -104
- package/lib/index.qwik.mjs +293 -104
- package/lib-types/components/elements/Button.d.ts +102 -25
- package/lib-types/components/elements/Dropdown.d.ts +2 -0
- package/lib-types/components/elements/Toggle.d.ts +2 -0
- package/lib-types/svg/Shuffle.d.ts +2 -0
- package/package.json +1 -1
package/lib/index.qwik.cjs
CHANGED
|
@@ -194,65 +194,146 @@ const Blobs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
194
194
|
], 1, "OL_0");
|
|
195
195
|
}, "Blobs_component_246Oa50YM60"));
|
|
196
196
|
const buttonColorClasses = {
|
|
197
|
-
slate:
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
197
|
+
slate: {
|
|
198
|
+
hover: "hover:bg-slate-600 active:bg-slate-500 focus:border-slate-500",
|
|
199
|
+
bg: "bg-slate-700/90 border-slate-600"
|
|
200
|
+
},
|
|
201
|
+
gray: {
|
|
202
|
+
hover: "hover:bg-gray-600 active:bg-gray-500 focus:border-gray-500",
|
|
203
|
+
bg: "bg-gray-700/90 border-gray-600"
|
|
204
|
+
},
|
|
205
|
+
darkgray: {
|
|
206
|
+
hover: "hover:bg-gray-700 active:bg-gray-600 focus:border-gray-600",
|
|
207
|
+
bg: "bg-gray-800/90 border-gray-700"
|
|
208
|
+
},
|
|
209
|
+
darkergray: {
|
|
210
|
+
hover: "hover:bg-gray-800 active:bg-gray-700 focus:border-gray-700",
|
|
211
|
+
bg: "bg-gray-900/90 border-gray-800"
|
|
212
|
+
},
|
|
213
|
+
zinc: {
|
|
214
|
+
hover: "hover:bg-zinc-600 active:bg-zinc-500 focus:border-zinc-500",
|
|
215
|
+
bg: "bg-zinc-700/90 border-zinc-600"
|
|
216
|
+
},
|
|
217
|
+
neutral: {
|
|
218
|
+
hover: "hover:bg-neutral-600 active:bg-neutral-500 focus:border-neutral-500",
|
|
219
|
+
bg: "bg-neutral-700/90 border-neutral-600"
|
|
220
|
+
},
|
|
221
|
+
stone: {
|
|
222
|
+
hover: "hover:bg-stone-600 active:bg-stone-500 focus:border-stone-500",
|
|
223
|
+
bg: "bg-stone-700/90 border-stone-600"
|
|
224
|
+
},
|
|
225
|
+
red: {
|
|
226
|
+
hover: "hover:bg-red-600 active:bg-red-500 focus:border-red-500",
|
|
227
|
+
bg: "bg-red-700/90 border-red-600"
|
|
228
|
+
},
|
|
229
|
+
orange: {
|
|
230
|
+
hover: "hover:bg-orange-600 active:bg-orange-500 focus:border-orange-500",
|
|
231
|
+
bg: "bg-orange-700/90 border-orange-600"
|
|
232
|
+
},
|
|
233
|
+
amber: {
|
|
234
|
+
hover: "hover:bg-amber-600 active:bg-amber-500 focus:border-amber-500",
|
|
235
|
+
bg: "bg-amber-700/90 border-amber-600"
|
|
236
|
+
},
|
|
237
|
+
yellow: {
|
|
238
|
+
hover: "hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500",
|
|
239
|
+
bg: "bg-yellow-700/90 border-yellow-600"
|
|
240
|
+
},
|
|
241
|
+
lime: {
|
|
242
|
+
hover: "hover:bg-lime-600 active:bg-lime-500 focus:border-lime-500",
|
|
243
|
+
bg: "bg-lime-700/90 border-lime-600"
|
|
244
|
+
},
|
|
245
|
+
green: {
|
|
246
|
+
hover: "hover:bg-green-600 active:bg-green-500 focus:border-green-500",
|
|
247
|
+
bg: "bg-green-700/90 border-green-600"
|
|
248
|
+
},
|
|
249
|
+
emerald: {
|
|
250
|
+
hover: "hover:bg-emerald-600 active:bg-emerald-500 focus:border-emerald-500",
|
|
251
|
+
bg: "bg-emerald-700/90 border-emerald-600"
|
|
252
|
+
},
|
|
253
|
+
teal: {
|
|
254
|
+
hover: "hover:bg-teal-600 active:bg-teal-500 focus:border-teal-500",
|
|
255
|
+
bg: "bg-teal-700/90 border-teal-600"
|
|
256
|
+
},
|
|
257
|
+
cyan: {
|
|
258
|
+
hover: "hover:bg-cyan-600 active:bg-cyan-500 focus:border-cyan-500",
|
|
259
|
+
bg: "bg-cyan-700/90 border-cyan-600"
|
|
260
|
+
},
|
|
261
|
+
sky: {
|
|
262
|
+
hover: "hover:bg-sky-600 active:bg-sky-500 focus:border-sky-500",
|
|
263
|
+
bg: "bg-sky-700/90 border-sky-600"
|
|
264
|
+
},
|
|
265
|
+
blue: {
|
|
266
|
+
hover: "hover:bg-blue-600 active:bg-blue-500 focus:border-blue-500",
|
|
267
|
+
bg: "bg-blue-700/90 border-blue-600"
|
|
268
|
+
},
|
|
269
|
+
indigo: {
|
|
270
|
+
hover: "hover:bg-indigo-600 active:bg-indigo-500 focus:border-indigo-500",
|
|
271
|
+
bg: "bg-indigo-700/90 border-indigo-600"
|
|
272
|
+
},
|
|
273
|
+
violet: {
|
|
274
|
+
hover: "hover:bg-violet-600 active:bg-violet-500 focus:border-violet-500",
|
|
275
|
+
bg: "bg-violet-700/90 border-violet-600"
|
|
276
|
+
},
|
|
277
|
+
purple: {
|
|
278
|
+
hover: "hover:bg-purple-600 active:bg-purple-500 focus:border-purple-500",
|
|
279
|
+
bg: "bg-purple-700/90 border-purple-600"
|
|
280
|
+
},
|
|
281
|
+
fuchsia: {
|
|
282
|
+
hover: "hover:bg-fuchsia-600 active:bg-fuchsia-500 focus:border-fuchsia-500",
|
|
283
|
+
bg: "bg-fuchsia-700/90 border-fuchsia-600"
|
|
284
|
+
},
|
|
285
|
+
pink: {
|
|
286
|
+
hover: "hover:bg-pink-600 active:bg-pink-500 focus:border-pink-500",
|
|
287
|
+
bg: "bg-pink-700/90 border-pink-600"
|
|
288
|
+
},
|
|
289
|
+
rose: {
|
|
290
|
+
hover: "hover:bg-rose-600 active:bg-rose-500 focus:border-rose-500",
|
|
291
|
+
bg: "bg-rose-700/90 border-rose-600"
|
|
292
|
+
}
|
|
222
293
|
};
|
|
223
294
|
const sizeClasses = {
|
|
224
295
|
sm: {
|
|
225
|
-
base: "text-base
|
|
296
|
+
base: "text-base gap-2",
|
|
297
|
+
round: "rounded-md",
|
|
226
298
|
pad: "px-2.5 py-1.5",
|
|
227
299
|
equal: "p-1.5"
|
|
228
300
|
},
|
|
229
301
|
md: {
|
|
230
|
-
base: "text-base
|
|
302
|
+
base: "text-base gap-3",
|
|
303
|
+
round: "rounded-md",
|
|
231
304
|
pad: "px-4 py-2",
|
|
232
305
|
equal: "p-2"
|
|
233
306
|
},
|
|
234
307
|
lg: {
|
|
235
|
-
base: "text-lg
|
|
308
|
+
base: "text-lg gap-3",
|
|
309
|
+
round: "rounded-lg",
|
|
236
310
|
pad: "px-6 py-3",
|
|
237
311
|
equal: "p-3"
|
|
238
312
|
},
|
|
239
313
|
xl: {
|
|
240
|
-
base: "text-lg
|
|
314
|
+
base: "text-lg gap-4",
|
|
315
|
+
round: "rounded-xl",
|
|
241
316
|
pad: "px-8 py-4",
|
|
242
317
|
equal: "p-4"
|
|
243
318
|
}
|
|
244
319
|
};
|
|
245
|
-
const buttonClass = "relative flex items-center gap-3 motion-safe:transition ease-in-out border text-gray-50 fill-gray-50 disabled:opacity-50 hover:shadow-lg motion-safe:active:scale-95 whitespace-nowrap touch-manipulation select-none";
|
|
320
|
+
const buttonClass = "relative flex items-center gap-3 motion-safe:transition ease-in-out border text-gray-50 fill-gray-50 disabled:opacity-50 hover:shadow-lg motion-safe:active:scale-95 whitespace-nowrap touch-manipulation select-none text-center";
|
|
246
321
|
const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
247
322
|
const props1 = qwik._restProps(props, [
|
|
248
323
|
"color",
|
|
324
|
+
"transparent",
|
|
249
325
|
"size",
|
|
326
|
+
"round",
|
|
250
327
|
"square"
|
|
251
328
|
]);
|
|
252
329
|
props1.class = {
|
|
253
330
|
[buttonClass]: true,
|
|
254
|
-
[buttonColorClasses[props.color ?? "darkgray"]]:
|
|
331
|
+
[buttonColorClasses[props.color ?? "darkgray"].bg]: !props.transparent,
|
|
332
|
+
"border-transparent": props.transparent,
|
|
333
|
+
[buttonColorClasses[props.color ?? "darkgray"].hover]: true,
|
|
255
334
|
[sizeClasses[props.size ?? "md"].base]: true,
|
|
335
|
+
[sizeClasses[props.size ?? "md"].round]: !props.round,
|
|
336
|
+
"rounded-full": props.round,
|
|
256
337
|
[sizeClasses[props.size ?? "md"].pad]: !props.square,
|
|
257
338
|
[sizeClasses[props.size ?? "md"].equal]: props.square,
|
|
258
339
|
...props1.class
|
|
@@ -265,13 +346,19 @@ const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
265
346
|
const ButtonAnchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
266
347
|
const props1 = qwik._restProps(props, [
|
|
267
348
|
"color",
|
|
349
|
+
"transparent",
|
|
268
350
|
"size",
|
|
351
|
+
"round",
|
|
269
352
|
"square"
|
|
270
353
|
]);
|
|
271
354
|
props1.class = {
|
|
272
355
|
[buttonClass]: true,
|
|
273
|
-
[buttonColorClasses[props.color ?? "darkgray"]]:
|
|
356
|
+
[buttonColorClasses[props.color ?? "darkgray"].bg]: !props.transparent,
|
|
357
|
+
"border-transparent": props.transparent,
|
|
358
|
+
[buttonColorClasses[props.color ?? "darkgray"].hover]: true,
|
|
274
359
|
[sizeClasses[props.size ?? "md"].base]: true,
|
|
360
|
+
[sizeClasses[props.size ?? "md"].round]: !props.round,
|
|
361
|
+
"rounded-full": props.round,
|
|
275
362
|
[sizeClasses[props.size ?? "md"].pad]: !props.square,
|
|
276
363
|
[sizeClasses[props.size ?? "md"].equal]: props.square,
|
|
277
364
|
...props1.class
|
|
@@ -495,7 +582,7 @@ const InputColorClasses = {
|
|
|
495
582
|
fuchsia: "bg-fuchsia-700/90 border-fuchsia-600 hover:bg-fuchsia-600 active:bg-fuchsia-500 focus:border-fuchsia-300",
|
|
496
583
|
pink: "bg-pink-700/90 border-pink-600 hover:bg-pink-600 active:bg-pink-500 focus:border-pink-300",
|
|
497
584
|
rose: "bg-rose-700/90 border-rose-600 hover:bg-rose-600 active:bg-rose-500 focus:border-rose-300",
|
|
498
|
-
transparent: "bg-transparent border-transparent hover:bg-gray-600/50 active:bg-gray-600/60 focus:border-gray-
|
|
585
|
+
transparent: "bg-transparent border-transparent hover:bg-gray-600/50 active:bg-gray-600/60 focus:border-gray-600/60"
|
|
499
586
|
};
|
|
500
587
|
const InputClasses = "motion-safe:transition ease-in-out border text-gray-50 hover:shadow-lg focus:outline-none rounded-md px-2.5 py-1.5 touch-manipulation";
|
|
501
588
|
const TextInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
@@ -636,12 +723,47 @@ function rgbToHsv(color) {
|
|
|
636
723
|
v
|
|
637
724
|
};
|
|
638
725
|
}
|
|
726
|
+
const Shuffle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
727
|
+
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
728
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
729
|
+
viewBox: "0 0 512 512",
|
|
730
|
+
...props,
|
|
731
|
+
get height() {
|
|
732
|
+
return props.width;
|
|
733
|
+
},
|
|
734
|
+
children: [
|
|
735
|
+
/* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
736
|
+
fill: "none",
|
|
737
|
+
stroke: "currentColor",
|
|
738
|
+
"stroke-linecap": "round",
|
|
739
|
+
"stroke-linejoin": "round",
|
|
740
|
+
"stroke-width": "32",
|
|
741
|
+
d: "M400 304l48 48-48 48M400 112l48 48-48 48M64 352h85.19a80 80 0 0066.56-35.62L256 256"
|
|
742
|
+
}, null, 3, null),
|
|
743
|
+
/* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
744
|
+
d: "M64 160h85.19a80 80 0 0166.56 35.62l80.5 120.76A80 80 0 00362.81 352H416M416 160h-53.19a80 80 0 00-66.56 35.62L288 208",
|
|
745
|
+
fill: "none",
|
|
746
|
+
stroke: "currentColor",
|
|
747
|
+
"stroke-linecap": "round",
|
|
748
|
+
"stroke-linejoin": "round",
|
|
749
|
+
"stroke-width": "32"
|
|
750
|
+
}, null, 3, null)
|
|
751
|
+
]
|
|
752
|
+
}, {
|
|
753
|
+
xmlns: qwik._IMMUTABLE,
|
|
754
|
+
viewBox: qwik._IMMUTABLE,
|
|
755
|
+
height: qwik._fnSignal((p0) => p0.width, [
|
|
756
|
+
props
|
|
757
|
+
], "p0.width")
|
|
758
|
+
}, 0, "zt_0");
|
|
759
|
+
}, "Shuffle_component_DnmmsuyAgDE"));
|
|
639
760
|
const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
640
761
|
const props1 = qwik._restProps(props, [
|
|
641
762
|
"onInput$",
|
|
642
763
|
"value",
|
|
643
764
|
"presetColors",
|
|
644
|
-
"preview"
|
|
765
|
+
"preview",
|
|
766
|
+
"class"
|
|
645
767
|
]);
|
|
646
768
|
const store = qwik.useStore({
|
|
647
769
|
opened: false
|
|
@@ -655,6 +777,12 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
655
777
|
class: "text-gray-300 pb-1 flex select-none"
|
|
656
778
|
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0s_0"), 1, null),
|
|
657
779
|
/* @__PURE__ */ qwik._jsxC(TextInputRaw, {
|
|
780
|
+
get class() {
|
|
781
|
+
return {
|
|
782
|
+
"w-full": true,
|
|
783
|
+
...props.class
|
|
784
|
+
};
|
|
785
|
+
},
|
|
658
786
|
...props1,
|
|
659
787
|
get value() {
|
|
660
788
|
return props.value ?? "#000000";
|
|
@@ -694,6 +822,12 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
694
822
|
borderBottom: `10px solid ${props.value ?? "#000000"}`
|
|
695
823
|
} : {},
|
|
696
824
|
[qwik._IMMUTABLE]: {
|
|
825
|
+
class: qwik._fnSignal((p0) => ({
|
|
826
|
+
"w-full": true,
|
|
827
|
+
...p0.class
|
|
828
|
+
}), [
|
|
829
|
+
props
|
|
830
|
+
], '{"w-full":true,...p0.class}'),
|
|
697
831
|
value: qwik._fnSignal((p0) => p0.value ?? "#000000", [
|
|
698
832
|
props
|
|
699
833
|
], 'p0.value??"#000000"'),
|
|
@@ -708,21 +842,23 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
708
842
|
get color() {
|
|
709
843
|
return props.value ?? "#000000";
|
|
710
844
|
},
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
845
|
+
colors: [
|
|
846
|
+
"#FAEDCB",
|
|
847
|
+
"#C9E4DE",
|
|
848
|
+
"#C6DEF1",
|
|
849
|
+
"#DBCDF0",
|
|
850
|
+
"#F2C6DE",
|
|
851
|
+
"#FCD05C",
|
|
852
|
+
"#5FE2C5",
|
|
853
|
+
"#4498DB",
|
|
854
|
+
"#9863E7",
|
|
855
|
+
"#E43A96",
|
|
856
|
+
"#000000",
|
|
857
|
+
"#555555",
|
|
858
|
+
"#AAAAAA",
|
|
859
|
+
"#FFFFFF",
|
|
860
|
+
...props.presetColors ?? []
|
|
861
|
+
],
|
|
726
862
|
get class() {
|
|
727
863
|
return {
|
|
728
864
|
"motion-safe:transition-all absolute top-full mt-2 left-0 gap-1 z-[1000]": true,
|
|
@@ -761,21 +897,6 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
761
897
|
color: qwik._fnSignal((p0) => p0.value ?? "#000000", [
|
|
762
898
|
props
|
|
763
899
|
], 'p0.value??"#000000"'),
|
|
764
|
-
colors: qwik._fnSignal((p0) => [
|
|
765
|
-
"#FAEDCB",
|
|
766
|
-
"#C9E4DE",
|
|
767
|
-
"#C6DEF1",
|
|
768
|
-
"#DBCDF0",
|
|
769
|
-
"#F2C6DE",
|
|
770
|
-
"#FCD05C",
|
|
771
|
-
"#5FE2C5",
|
|
772
|
-
"#4498DB",
|
|
773
|
-
"#9863E7",
|
|
774
|
-
"#E43A96",
|
|
775
|
-
...p0.presetColors ?? []
|
|
776
|
-
], [
|
|
777
|
-
props
|
|
778
|
-
], '["#FAEDCB","#C9E4DE","#C6DEF1","#DBCDF0","#F2C6DE","#FCD05C","#5FE2C5","#4498DB","#9863E7","#E43A96",...p0.presetColors??[]]'),
|
|
779
900
|
class: qwik._fnSignal((p0) => ({
|
|
780
901
|
"motion-safe:transition-all absolute top-full mt-2 left-0 gap-1 z-[1000]": true,
|
|
781
902
|
"opacity-0 scale-95 pointer-events-none": !p0.opened
|
|
@@ -975,30 +1096,56 @@ const ColorPickerRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
975
1096
|
], 3, null),
|
|
976
1097
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
977
1098
|
class: "w-[150px] flex flex-wrap gap-1 justify-evenly"
|
|
978
|
-
},
|
|
979
|
-
|
|
980
|
-
|
|
1099
|
+
}, [
|
|
1100
|
+
props.colors.map((color, i) => {
|
|
1101
|
+
return /* @__PURE__ */ qwik._jsxQ("button", {
|
|
1102
|
+
style: `background: ${color}`,
|
|
1103
|
+
onMouseDown$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1104
|
+
const [color2, setColor2] = qwik.useLexicalScope();
|
|
1105
|
+
setColor2(color2);
|
|
1106
|
+
}, "ColorPickerRaw_component_div_div_button_onMouseDown_C5tqQYvx7wA", [
|
|
1107
|
+
color,
|
|
1108
|
+
setColor
|
|
1109
|
+
]),
|
|
1110
|
+
onTouchStart$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1111
|
+
const [color2, setColor2] = qwik.useLexicalScope();
|
|
1112
|
+
setColor2(color2);
|
|
1113
|
+
}, "ColorPickerRaw_component_div_div_button_onTouchStart_qgiiO8Blb88", [
|
|
1114
|
+
color,
|
|
1115
|
+
setColor
|
|
1116
|
+
])
|
|
1117
|
+
}, {
|
|
1118
|
+
class: "w-[1.6rem] h-[1.6rem] border border-gray-700 rounded-md hover:scale-110 motion-safe:transition-all",
|
|
1119
|
+
"preventdefault:mousedown": true,
|
|
1120
|
+
"preventdefault:touchstart": true
|
|
1121
|
+
}, null, 2, i);
|
|
1122
|
+
}),
|
|
1123
|
+
/* @__PURE__ */ qwik._jsxQ("button", null, {
|
|
1124
|
+
class: "w-[1.6rem] h-[1.6rem] border border-gray-700 rounded-md hover:scale-110 motion-safe:transition-all",
|
|
1125
|
+
"preventdefault:mousedown": true,
|
|
1126
|
+
"preventdefault:touchstart": true,
|
|
981
1127
|
onMouseDown$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
982
|
-
const [
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1128
|
+
const [setColor2] = qwik.useLexicalScope();
|
|
1129
|
+
const color = `#${Math.floor(Math.random() * 16777215).toString(16)}`;
|
|
1130
|
+
setColor2(color);
|
|
1131
|
+
}, "ColorPickerRaw_component_div_div_button_onMouseDown_1_30vaDl3iDKc", [
|
|
986
1132
|
setColor
|
|
987
1133
|
]),
|
|
988
1134
|
onTouchStart$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
989
|
-
const [
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1135
|
+
const [setColor2] = qwik.useLexicalScope();
|
|
1136
|
+
const color = `#${Math.floor(Math.random() * 16777215).toString(16)}`;
|
|
1137
|
+
setColor2(color);
|
|
1138
|
+
}, "ColorPickerRaw_component_div_div_button_onTouchStart_1_w30s4j6SxyE", [
|
|
993
1139
|
setColor
|
|
994
1140
|
])
|
|
995
|
-
}, {
|
|
996
|
-
class: "
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1141
|
+
}, /* @__PURE__ */ qwik._jsxC(Shuffle, {
|
|
1142
|
+
class: "fill-current text-gray-300 pl-0.5 p-0.5",
|
|
1143
|
+
[qwik._IMMUTABLE]: {
|
|
1144
|
+
class: qwik._IMMUTABLE
|
|
1145
|
+
}
|
|
1146
|
+
}, 3, "0s_4"), 1, null)
|
|
1147
|
+
], 1, null)
|
|
1148
|
+
], 1, "0s_5");
|
|
1002
1149
|
}, "ColorPickerRaw_component_CWQPPcezhyA"));
|
|
1003
1150
|
const ChevronDown = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1004
1151
|
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
@@ -1046,6 +1193,8 @@ const DropdownRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1046
1193
|
"class",
|
|
1047
1194
|
"display",
|
|
1048
1195
|
"color",
|
|
1196
|
+
"round",
|
|
1197
|
+
"transparent",
|
|
1049
1198
|
"size",
|
|
1050
1199
|
"hover"
|
|
1051
1200
|
]);
|
|
@@ -1103,9 +1252,15 @@ const DropdownRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1103
1252
|
class: qwik._IMMUTABLE
|
|
1104
1253
|
}, 0, "Zz_3"),
|
|
1105
1254
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1255
|
+
get round() {
|
|
1256
|
+
return props.round;
|
|
1257
|
+
},
|
|
1106
1258
|
get color() {
|
|
1107
1259
|
return props.color;
|
|
1108
1260
|
},
|
|
1261
|
+
get transparent() {
|
|
1262
|
+
return props.transparent;
|
|
1263
|
+
},
|
|
1109
1264
|
get size() {
|
|
1110
1265
|
return props.size ?? "sm";
|
|
1111
1266
|
},
|
|
@@ -1154,9 +1309,15 @@ const DropdownRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1154
1309
|
}, 3, "Zz_5")
|
|
1155
1310
|
],
|
|
1156
1311
|
[qwik._IMMUTABLE]: {
|
|
1312
|
+
round: qwik._fnSignal((p0) => p0.round, [
|
|
1313
|
+
props
|
|
1314
|
+
], "p0.round"),
|
|
1157
1315
|
color: qwik._fnSignal((p0) => p0.color, [
|
|
1158
1316
|
props
|
|
1159
1317
|
], "p0.color"),
|
|
1318
|
+
transparent: qwik._fnSignal((p0) => p0.transparent, [
|
|
1319
|
+
props
|
|
1320
|
+
], "p0.transparent"),
|
|
1160
1321
|
size: qwik._fnSignal((p0) => p0.size ?? "sm", [
|
|
1161
1322
|
props
|
|
1162
1323
|
], 'p0.size??"sm"'),
|
|
@@ -1175,17 +1336,24 @@ const DropdownRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1175
1336
|
"opacity-0 scale-95 pointer-events-none": !store.opened,
|
|
1176
1337
|
"group-hover:pointer-events-auto group-hover:opacity-100 group-hover:scale-100": props.hover
|
|
1177
1338
|
}
|
|
1178
|
-
}, null, /* @__PURE__ */ qwik._jsxQ("div",
|
|
1179
|
-
id: qwik._fnSignal((p0) => `lui-${p0.id}-opts`, [
|
|
1180
|
-
props
|
|
1181
|
-
], "`lui-${p0.id}-opts`"),
|
|
1339
|
+
}, null, /* @__PURE__ */ qwik._jsxQ("div", {
|
|
1182
1340
|
class: {
|
|
1183
|
-
"motion-safe:transition-all p-1
|
|
1341
|
+
"motion-safe:transition-all p-1 gap-1 bg-gray-800/50 backdrop-blur-xl flex flex-col border border-gray-700 max-h-72 lui-scroll overflow-auto select-none": true,
|
|
1342
|
+
"rounded-lg": !props.round,
|
|
1343
|
+
"rounded-3xl": props.round
|
|
1184
1344
|
}
|
|
1345
|
+
}, {
|
|
1346
|
+
id: qwik._fnSignal((p0) => `lui-${p0.id}-opts`, [
|
|
1347
|
+
props
|
|
1348
|
+
], "`lui-${p0.id}-opts`")
|
|
1185
1349
|
}, [
|
|
1186
|
-
props.values?.map(({ name, value, color
|
|
1350
|
+
props.values?.map(({ name, value, color: valueColor }, i) => {
|
|
1187
1351
|
return /* @__PURE__ */ qwik._jsxC(Button, {
|
|
1188
|
-
|
|
1352
|
+
get round() {
|
|
1353
|
+
return props.round;
|
|
1354
|
+
},
|
|
1355
|
+
color: valueColor ?? props.color,
|
|
1356
|
+
transparent: true,
|
|
1189
1357
|
get size() {
|
|
1190
1358
|
return props.size ?? "sm";
|
|
1191
1359
|
},
|
|
@@ -1205,6 +1373,10 @@ const DropdownRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1205
1373
|
]),
|
|
1206
1374
|
children: name,
|
|
1207
1375
|
[qwik._IMMUTABLE]: {
|
|
1376
|
+
round: qwik._fnSignal((p0) => p0.round, [
|
|
1377
|
+
props
|
|
1378
|
+
], "p0.round"),
|
|
1379
|
+
transparent: qwik._IMMUTABLE,
|
|
1208
1380
|
size: qwik._fnSignal((p0) => p0.size ?? "sm", [
|
|
1209
1381
|
props
|
|
1210
1382
|
], 'p0.size??"sm"')
|
|
@@ -1357,14 +1529,14 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
1357
1529
|
class: {
|
|
1358
1530
|
"sm:hidden motion-safe:transition-all flex flex-col px-2 items-center absolute w-full": true,
|
|
1359
1531
|
"top-full mt-2": menu.value,
|
|
1360
|
-
"opacity-0 top-0 scale-95 pointer-events-none": !menu.value
|
|
1532
|
+
"opacity-0 top-0 scale-95 pointer-events-none": !menu.value,
|
|
1533
|
+
"before:backdrop-blur-lg": props.color !== "transparent",
|
|
1534
|
+
'before:absolute before:content-[""] before:w-full before:h-full before:drop-shadow-xl before:-z-10 before:rounded-lg': true
|
|
1361
1535
|
}
|
|
1362
1536
|
}, null, /* @__PURE__ */ qwik._jsxQ("div", {
|
|
1363
1537
|
class: {
|
|
1364
1538
|
[navColorClasses[props.color ?? "darkgray"]]: true,
|
|
1365
|
-
"flex flex-col gap-2 motion-safe:transition-all max-w-7xl w-full px-2 py-4 border rounded-lg": true
|
|
1366
|
-
"before:backdrop-blur-lg": props.color !== "transparent",
|
|
1367
|
-
'before:absolute before:content-[""] before:w-full before:h-full before:drop-shadow-xl before:-z-10': true
|
|
1539
|
+
"flex flex-col gap-2 motion-safe:transition-all max-w-7xl w-full px-2 py-4 border rounded-lg": true
|
|
1368
1540
|
}
|
|
1369
1541
|
}, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
1370
1542
|
name: "mobile",
|
|
@@ -1415,7 +1587,7 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
1415
1587
|
}
|
|
1416
1588
|
}, 3, "8r_3"),
|
|
1417
1589
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1418
|
-
|
|
1590
|
+
transparent: true,
|
|
1419
1591
|
square: true,
|
|
1420
1592
|
class: {
|
|
1421
1593
|
"sm:hidden": true
|
|
@@ -1439,7 +1611,7 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
1439
1611
|
d: "M4 6h16M4 12h16m-7 6h7"
|
|
1440
1612
|
}, null, 3, null), 3, null),
|
|
1441
1613
|
[qwik._IMMUTABLE]: {
|
|
1442
|
-
|
|
1614
|
+
transparent: qwik._IMMUTABLE,
|
|
1443
1615
|
square: qwik._IMMUTABLE,
|
|
1444
1616
|
class: qwik._IMMUTABLE,
|
|
1445
1617
|
onClick$: qwik._IMMUTABLE
|
|
@@ -1544,7 +1716,10 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1544
1716
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1545
1717
|
size: "sm",
|
|
1546
1718
|
get color() {
|
|
1547
|
-
return (props.color ?? "darkgray") == "darkgray" ? props.input ? "gray" : "darkgray" : props.color ?? "darkgray";
|
|
1719
|
+
return (props.color ?? "darkgray") == "darkgray" || (props.color ?? "darkgray") == "transparent" ? props.input ? "gray" : "darkgray" : props.color ?? "darkgray";
|
|
1720
|
+
},
|
|
1721
|
+
get transparent() {
|
|
1722
|
+
return (props.color ?? "darkgray") == "transparent";
|
|
1548
1723
|
},
|
|
1549
1724
|
"data-action": "decrement",
|
|
1550
1725
|
"aria-label": "Decrement",
|
|
@@ -1572,9 +1747,12 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1572
1747
|
}, 3, "gk_3"),
|
|
1573
1748
|
[qwik._IMMUTABLE]: {
|
|
1574
1749
|
size: qwik._IMMUTABLE,
|
|
1575
|
-
color: qwik._fnSignal((p0) => (p0.color ?? "darkgray") == "darkgray" ? p0.input ? "gray" : "darkgray" : p0.color ?? "darkgray", [
|
|
1750
|
+
color: qwik._fnSignal((p0) => (p0.color ?? "darkgray") == "darkgray" || (p0.color ?? "darkgray") == "transparent" ? p0.input ? "gray" : "darkgray" : p0.color ?? "darkgray", [
|
|
1576
1751
|
props
|
|
1577
|
-
], '(p0.color??"darkgray")=="darkgray"?p0.input?"gray":"darkgray":p0.color??"darkgray"'),
|
|
1752
|
+
], '(p0.color??"darkgray")=="darkgray"||(p0.color??"darkgray")=="transparent"?p0.input?"gray":"darkgray":p0.color??"darkgray"'),
|
|
1753
|
+
transparent: qwik._fnSignal((p0) => (p0.color ?? "darkgray") == "transparent", [
|
|
1754
|
+
props
|
|
1755
|
+
], '(p0.color??"darkgray")=="transparent"'),
|
|
1578
1756
|
"data-action": qwik._IMMUTABLE,
|
|
1579
1757
|
"aria-label": qwik._IMMUTABLE,
|
|
1580
1758
|
class: qwik._fnSignal((p0) => ({
|
|
@@ -1611,7 +1789,10 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1611
1789
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1612
1790
|
size: "sm",
|
|
1613
1791
|
get color() {
|
|
1614
|
-
return (props.color ?? "darkgray") == "darkgray" ? props.input ? "gray" : "darkgray" : props.color ?? "darkgray";
|
|
1792
|
+
return (props.color ?? "darkgray") == "darkgray" || (props.color ?? "darkgray") == "transparent" ? props.input ? "gray" : "darkgray" : props.color ?? "darkgray";
|
|
1793
|
+
},
|
|
1794
|
+
get transparent() {
|
|
1795
|
+
return (props.color ?? "darkgray") == "transparent";
|
|
1615
1796
|
},
|
|
1616
1797
|
"data-action": "increment",
|
|
1617
1798
|
"aria-label": "Increment",
|
|
@@ -1639,9 +1820,12 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1639
1820
|
}, 3, "gk_6"),
|
|
1640
1821
|
[qwik._IMMUTABLE]: {
|
|
1641
1822
|
size: qwik._IMMUTABLE,
|
|
1642
|
-
color: qwik._fnSignal((p0) => (p0.color ?? "darkgray") == "darkgray" ? p0.input ? "gray" : "darkgray" : p0.color ?? "darkgray", [
|
|
1823
|
+
color: qwik._fnSignal((p0) => (p0.color ?? "darkgray") == "darkgray" || (p0.color ?? "darkgray") == "transparent" ? p0.input ? "gray" : "darkgray" : p0.color ?? "darkgray", [
|
|
1824
|
+
props
|
|
1825
|
+
], '(p0.color??"darkgray")=="darkgray"||(p0.color??"darkgray")=="transparent"?p0.input?"gray":"darkgray":p0.color??"darkgray"'),
|
|
1826
|
+
transparent: qwik._fnSignal((p0) => (p0.color ?? "darkgray") == "transparent", [
|
|
1643
1827
|
props
|
|
1644
|
-
], '(p0.color??"darkgray")=="
|
|
1828
|
+
], '(p0.color??"darkgray")=="transparent"'),
|
|
1645
1829
|
"data-action": qwik._IMMUTABLE,
|
|
1646
1830
|
"aria-label": qwik._IMMUTABLE,
|
|
1647
1831
|
class: qwik._fnSignal((p0) => ({
|
|
@@ -1901,6 +2085,8 @@ const toggleOffColorClasses = {
|
|
|
1901
2085
|
};
|
|
1902
2086
|
const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1903
2087
|
const props1 = qwik._restProps(props, [
|
|
2088
|
+
"checkbox",
|
|
2089
|
+
"round",
|
|
1904
2090
|
"center",
|
|
1905
2091
|
"label",
|
|
1906
2092
|
"onColor",
|
|
@@ -1929,9 +2115,12 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1929
2115
|
}, 0, null),
|
|
1930
2116
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
1931
2117
|
class: {
|
|
1932
|
-
"motion-safe:transition ease-in-out
|
|
1933
|
-
"after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:border after:
|
|
1934
|
-
"
|
|
2118
|
+
"motion-safe:transition ease-in-out h-7 peer border hover:shadow-lg": true,
|
|
2119
|
+
"after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:border after:h-5 after:w-5 after:motion-safe:transition-all after:ease-in-out": true,
|
|
2120
|
+
"rounded-md after:rounded-[0.2rem]": !props.round,
|
|
2121
|
+
"rounded-full after:rounded-full": props.round,
|
|
2122
|
+
"w-12 peer-checked:after:translate-x-full": !props.checkbox,
|
|
2123
|
+
"w-7 after:opacity-0 peer-checked:after:opacity-100": props.checkbox,
|
|
1935
2124
|
[toggleOnColorClasses[props.onColor ?? "blue"].checked]: true,
|
|
1936
2125
|
[toggleOnColorClasses[props.onColor ?? "blue"].checkedAfter]: true,
|
|
1937
2126
|
[toggleOffColorClasses[props.offColor ?? "darkgray"].unchecked]: true,
|