@luminescent/ui 0.10.0-0 → 0.10.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.
- package/lib/index.qwik.cjs +173 -80
- package/lib/index.qwik.mjs +174 -81
- package/lib-types/components/elements/Button.d.ts +21 -4
- package/lib-types/components/elements/Nav.d.ts +2 -1
- package/lib-types/components/elements/SelectInput.d.ts +4 -1
- package/lib-types/components/elements/TextInput.d.ts +1 -1
- package/lib-types/utils/color.d.ts +36 -0
- package/package.json +8 -8
- package/LICENSE +0 -661
- package/README.md +0 -48
- package/lib-types/tailwind.config.d.ts +0 -122
package/lib/index.qwik.cjs
CHANGED
|
@@ -17,24 +17,43 @@ const buttonColorClasses = {
|
|
|
17
17
|
yellow: "bg-yellow-700/90 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500",
|
|
18
18
|
gray: "bg-gray-700/90 border-gray-600 hover:bg-gray-600 active:bg-gray-500 focus:border-gray-500",
|
|
19
19
|
darkgray: "bg-gray-800/90 border-gray-700 hover:bg-gray-700 active:bg-gray-600 focus:border-gray-600",
|
|
20
|
-
transparent: "bg-transparent border-transparent hover:bg-gray-
|
|
20
|
+
transparent: "bg-transparent border-transparent hover:bg-gray-600/50 active:bg-gray-600/60 focus:border-gray-600/60"
|
|
21
21
|
};
|
|
22
22
|
const sizeClasses = {
|
|
23
|
-
sm:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
sm: {
|
|
24
|
+
base: "text-base rounded-md gap-2",
|
|
25
|
+
pad: "px-2.5 py-1.5",
|
|
26
|
+
equal: "p-1.5"
|
|
27
|
+
},
|
|
28
|
+
md: {
|
|
29
|
+
base: "text-base rounded-md gap-3",
|
|
30
|
+
pad: "px-4 py-2",
|
|
31
|
+
equal: "p-2"
|
|
32
|
+
},
|
|
33
|
+
lg: {
|
|
34
|
+
base: "text-lg rounded-lg gap-3",
|
|
35
|
+
pad: "px-6 py-3",
|
|
36
|
+
equal: "p-3"
|
|
37
|
+
},
|
|
38
|
+
xl: {
|
|
39
|
+
base: "text-lg rounded-xl gap-4",
|
|
40
|
+
pad: "px-8 py-4",
|
|
41
|
+
equal: "p-4"
|
|
42
|
+
}
|
|
27
43
|
};
|
|
28
|
-
const buttonClass = "relative flex items-center gap-3 transition ease-in-out border text-gray-50 fill-gray-50 disabled:opacity-50 hover:shadow-lg active:scale-95 whitespace-nowrap";
|
|
44
|
+
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";
|
|
29
45
|
const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
30
46
|
const props1 = qwik._restProps(props, [
|
|
31
47
|
"color",
|
|
32
|
-
"size"
|
|
48
|
+
"size",
|
|
49
|
+
"square"
|
|
33
50
|
]);
|
|
34
51
|
props1.class = {
|
|
35
52
|
[buttonClass]: true,
|
|
36
53
|
[buttonColorClasses[props.color ?? "darkgray"]]: true,
|
|
37
|
-
[sizeClasses[props.size ?? "md"]]: true,
|
|
54
|
+
[sizeClasses[props.size ?? "md"].base]: true,
|
|
55
|
+
[sizeClasses[props.size ?? "md"].pad]: !props.square,
|
|
56
|
+
[sizeClasses[props.size ?? "md"].equal]: props.square,
|
|
38
57
|
...props1.class
|
|
39
58
|
};
|
|
40
59
|
return /* @__PURE__ */ qwik._jsxS("button", {
|
|
@@ -45,12 +64,15 @@ const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
45
64
|
const ButtonAnchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
46
65
|
const props1 = qwik._restProps(props, [
|
|
47
66
|
"color",
|
|
48
|
-
"size"
|
|
67
|
+
"size",
|
|
68
|
+
"square"
|
|
49
69
|
]);
|
|
50
70
|
props1.class = {
|
|
51
71
|
[buttonClass]: true,
|
|
52
72
|
[buttonColorClasses[props.color ?? "darkgray"]]: true,
|
|
53
|
-
[sizeClasses[props.size ?? "md"]]: true,
|
|
73
|
+
[sizeClasses[props.size ?? "md"].base]: true,
|
|
74
|
+
[sizeClasses[props.size ?? "md"].pad]: !props.square,
|
|
75
|
+
[sizeClasses[props.size ?? "md"].equal]: props.square,
|
|
54
76
|
...props1.class
|
|
55
77
|
};
|
|
56
78
|
return /* @__PURE__ */ qwik._jsxS("a", {
|
|
@@ -225,7 +247,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
225
247
|
class: "absolute inset-0"
|
|
226
248
|
}, null, 3, "OW_1"),
|
|
227
249
|
props.blobs && /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
228
|
-
class: "absolute -z-10 inset-0 transition-all overflow-clip animate-in fade-in anim-duration-[2s]",
|
|
250
|
+
class: "motion-reduce:hidden absolute -z-10 inset-0 transition-all overflow-clip animate-in fade-in anim-duration-[2s]",
|
|
229
251
|
style: {
|
|
230
252
|
containerType: "size"
|
|
231
253
|
}
|
|
@@ -256,22 +278,22 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
256
278
|
], 1, "OW_2")
|
|
257
279
|
],
|
|
258
280
|
class: {
|
|
259
|
-
"relative p-8 border rounded-lg transition-all": true,
|
|
281
|
+
"relative p-8 border rounded-lg motion-safe:transition-all": true,
|
|
260
282
|
[cardColorClasses[props.color ?? "darkgray"].card.bg]: !props.blobs,
|
|
261
283
|
[cardColorClasses[props.color ?? "darkgray"].card.bg_blobs]: props.blobs,
|
|
262
284
|
[cardColorClasses[props.color ?? "darkgray"].card.hover + " hover:shadow-lg"]: props.hover,
|
|
263
|
-
[cardColorClasses[props.color ?? "darkgray"].card.click + " active:scale-[99%] cursor-pointer select-none"]: props.hover == "clickable",
|
|
285
|
+
[cardColorClasses[props.color ?? "darkgray"].card.click + " active:scale-[99%] cursor-pointer select-none touch-manipulation"]: props.hover == "clickable",
|
|
264
286
|
...props1.class
|
|
265
287
|
}
|
|
266
288
|
}, null, 0, "OW_3");
|
|
267
289
|
}, "Card_component_DlkkcTEVka4"));
|
|
268
|
-
const InputClasses = "transition ease-in-out border border-gray-700 bg-gray-800 text-gray-50 hover:bg-gray-700 hover:shadow-lg focus:bg-gray-700 focus:outline-none focus:border-gray-400 rounded-md px-2.5 py-1.5";
|
|
290
|
+
const InputClasses = "motion-safe:transition ease-in-out border border-gray-700 bg-gray-800 text-gray-50 hover:bg-gray-700 hover:shadow-lg focus:bg-gray-700 focus:outline-none focus:border-gray-400 rounded-md px-2.5 py-1.5 touch-manipulation";
|
|
269
291
|
const TextInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
270
292
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
271
293
|
class: "flex flex-col"
|
|
272
294
|
}, [
|
|
273
295
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
274
|
-
class: "text-gray-300 pb-1",
|
|
296
|
+
class: "text-gray-300 pb-1 select-none",
|
|
275
297
|
for: qwik._fnSignal((p0) => p0.id, [
|
|
276
298
|
props
|
|
277
299
|
], "p0.id")
|
|
@@ -416,7 +438,7 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
416
438
|
/* @__PURE__ */ qwik._jsxQ("label", {
|
|
417
439
|
for: qwik._wrapSignal(props1, "id")
|
|
418
440
|
}, {
|
|
419
|
-
class: "text-gray-300 pb-1 flex"
|
|
441
|
+
class: "text-gray-300 pb-1 flex select-none"
|
|
420
442
|
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0s_0"), 1, null),
|
|
421
443
|
/* @__PURE__ */ qwik._jsxC(TextInputRaw, {
|
|
422
444
|
...props1,
|
|
@@ -489,7 +511,7 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
489
511
|
},
|
|
490
512
|
get class() {
|
|
491
513
|
return {
|
|
492
|
-
"transition-all absolute top-full mt-2 left-0 gap-1 z-[1000]": true,
|
|
514
|
+
"motion-safe:transition-all absolute top-full mt-2 left-0 gap-1 z-[1000]": true,
|
|
493
515
|
"opacity-0 pointer-events-none scale-95": !store.opened
|
|
494
516
|
};
|
|
495
517
|
},
|
|
@@ -522,11 +544,11 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
522
544
|
]),
|
|
523
545
|
[qwik._IMMUTABLE]: {
|
|
524
546
|
class: qwik._fnSignal((p0) => ({
|
|
525
|
-
"transition-all absolute top-full mt-2 left-0 gap-1 z-[1000]": true,
|
|
547
|
+
"motion-safe:transition-all absolute top-full mt-2 left-0 gap-1 z-[1000]": true,
|
|
526
548
|
"opacity-0 pointer-events-none scale-95": !p0.opened
|
|
527
549
|
}), [
|
|
528
550
|
store
|
|
529
|
-
], '{"transition-all absolute top-full mt-2 left-0 gap-1 z-[1000]":true,"opacity-0 pointer-events-none scale-95":!p0.opened}'),
|
|
551
|
+
], '{"motion-safe:transition-all absolute top-full mt-2 left-0 gap-1 z-[1000]":true,"opacity-0 pointer-events-none scale-95":!p0.opened}'),
|
|
530
552
|
color: qwik._fnSignal((p0) => p0.value ?? "#000000", [
|
|
531
553
|
props
|
|
532
554
|
], 'p0.value??"#000000"'),
|
|
@@ -680,7 +702,7 @@ const ColorPickerRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
680
702
|
]));
|
|
681
703
|
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
682
704
|
class: {
|
|
683
|
-
"transition-all p-4 bg-gray-800/50 backdrop-blur-xl flex flex-col gap-6 rounded-lg border border-gray-700 touch-none": true,
|
|
705
|
+
"motion-safe:transition-all p-4 bg-gray-800/50 backdrop-blur-xl flex flex-col gap-6 rounded-lg border border-gray-700 touch-none": true,
|
|
684
706
|
...props1.class
|
|
685
707
|
}
|
|
686
708
|
}, {
|
|
@@ -757,7 +779,7 @@ const ColorPickerRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
757
779
|
]),
|
|
758
780
|
style: `background: ${color}`
|
|
759
781
|
}, {
|
|
760
|
-
class: "w-[25px] h-[25px] border border-gray-700 rounded-md hover:scale-110 transition-all",
|
|
782
|
+
class: "w-[25px] h-[25px] border border-gray-700 rounded-md hover:scale-110 motion-safe:transition-all",
|
|
761
783
|
"preventdefault:mousedown": true,
|
|
762
784
|
"preventdefault:touchstart": true
|
|
763
785
|
}, null, 2, i);
|
|
@@ -823,12 +845,12 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
823
845
|
Component,
|
|
824
846
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
825
847
|
class: qwik._fnSignal((p0) => ({
|
|
826
|
-
"transition-all duration-200": true,
|
|
848
|
+
"motion-safe:transition-all duration-200": true,
|
|
827
849
|
"opacity-0": !p0.loading,
|
|
828
850
|
"opacity-100": p0.loading
|
|
829
851
|
}), [
|
|
830
852
|
props
|
|
831
|
-
], '{"transition-all duration-200":true,"opacity-0":!p0.loading,"opacity-100":p0.loading}')
|
|
853
|
+
], '{"motion-safe:transition-all duration-200":true,"opacity-0":!p0.loading,"opacity-100":p0.loading}')
|
|
832
854
|
}, /* @__PURE__ */ qwik._jsxC(LoadingIcon, {
|
|
833
855
|
width: 24,
|
|
834
856
|
[qwik._IMMUTABLE]: {
|
|
@@ -838,48 +860,108 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
838
860
|
], 1, "dL_5");
|
|
839
861
|
return Component;
|
|
840
862
|
}, "Header_component_FfGOhhBNG5k"));
|
|
841
|
-
const
|
|
863
|
+
const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
864
|
+
const menu = qwik.useSignal(false);
|
|
842
865
|
return /* @__PURE__ */ qwik._jsxQ("nav", null, {
|
|
843
866
|
class: qwik._fnSignal((p0) => ({
|
|
844
|
-
"transition-all duration-200 flex flex-col
|
|
845
|
-
"
|
|
867
|
+
"motion-safe:transition-all duration-200 flex flex-col top-0 left-0 w-full z-50": true,
|
|
868
|
+
"fixed": p0.fixed,
|
|
869
|
+
"absolute": !p0.fixed
|
|
846
870
|
}), [
|
|
847
871
|
props
|
|
848
|
-
], '{"transition-all duration-200 flex flex-col
|
|
849
|
-
}, /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
850
|
-
class: qwik._fnSignal((p0) => ({
|
|
851
|
-
"flex justify-evenly w-full mx-auto px-4 py-2 max-w-7xl": true,
|
|
852
|
-
"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl mt-3 rounded-lg": p0.floating
|
|
853
|
-
}), [
|
|
854
|
-
props
|
|
855
|
-
], '{"flex justify-evenly w-full mx-auto px-4 py-2 max-w-7xl":true,"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl mt-3 rounded-lg":p0.floating}')
|
|
872
|
+
], '{"motion-safe:transition-all duration-200 flex flex-col top-0 left-0 w-full z-50":true,"fixed":p0.fixed,"absolute":!p0.fixed}')
|
|
856
873
|
}, [
|
|
857
874
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
858
|
-
class:
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
875
|
+
class: qwik._fnSignal((p0) => ({
|
|
876
|
+
"sm:hidden motion-safe:transition-all flex flex-col px-2 items-center absolute w-full": true,
|
|
877
|
+
"top-full mt-2": p0.value,
|
|
878
|
+
"opacity-0 top-0": !p0.value
|
|
879
|
+
}), [
|
|
880
|
+
menu
|
|
881
|
+
], '{"sm:hidden motion-safe:transition-all flex flex-col px-2 items-center absolute w-full":true,"top-full mt-2":p0.value,"opacity-0 top-0":!p0.value}')
|
|
882
|
+
}, /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
883
|
+
class: {
|
|
884
|
+
"flex flex-col motion-safe:transition-all max-w-7xl w-full p-2 bg-gray-800/50 border border-gray-700/50 backdrop-blur-lg drop-shadow-xl rounded-lg": true
|
|
863
885
|
}
|
|
864
|
-
}, 3, "8r_0"), 1, null),
|
|
865
|
-
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
866
|
-
class: "flex flex-1 justify-center"
|
|
867
886
|
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
868
|
-
name: "
|
|
887
|
+
name: "mobile",
|
|
869
888
|
[qwik._IMMUTABLE]: {
|
|
870
889
|
name: qwik._IMMUTABLE
|
|
871
890
|
}
|
|
872
|
-
}, 3, "
|
|
891
|
+
}, 3, "8r_0"), 1, null), 1, null),
|
|
873
892
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
874
|
-
class:
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
[
|
|
878
|
-
|
|
893
|
+
class: qwik._fnSignal((p0) => ({
|
|
894
|
+
"bg-gray-800/50 border-b border-gray-700/50 backdrop-blur-lg drop-shadow-xl": !p0.floating,
|
|
895
|
+
"p-2 pb-0": p0.floating
|
|
896
|
+
}), [
|
|
897
|
+
props
|
|
898
|
+
], '{"bg-gray-800/50 border-b border-gray-700/50 backdrop-blur-lg drop-shadow-xl":!p0.floating,"p-2 pb-0":p0.floating}')
|
|
899
|
+
}, /* @__PURE__ */ qwik._jsxQ("div", {
|
|
900
|
+
class: {
|
|
901
|
+
"flex justify-evenly w-full mx-auto px-4 py-2 max-w-7xl": true,
|
|
902
|
+
"bg-gray-800/50 border border-gray-700/50 backdrop-blur-lg drop-shadow-xl rounded-lg": props.floating
|
|
879
903
|
}
|
|
880
|
-
},
|
|
881
|
-
|
|
882
|
-
|
|
904
|
+
}, null, [
|
|
905
|
+
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
906
|
+
class: "flex flex-1 gap-2 justify-start"
|
|
907
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
908
|
+
name: "start",
|
|
909
|
+
[qwik._IMMUTABLE]: {
|
|
910
|
+
name: qwik._IMMUTABLE
|
|
911
|
+
}
|
|
912
|
+
}, 3, "8r_1"), 1, null),
|
|
913
|
+
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
914
|
+
class: "flex flex-1 gap-2 justify-center"
|
|
915
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
916
|
+
name: "center",
|
|
917
|
+
[qwik._IMMUTABLE]: {
|
|
918
|
+
name: qwik._IMMUTABLE
|
|
919
|
+
}
|
|
920
|
+
}, 3, "8r_2"), 1, null),
|
|
921
|
+
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
922
|
+
class: "flex flex-1 gap-2 justify-end"
|
|
923
|
+
}, [
|
|
924
|
+
/* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
925
|
+
name: "end",
|
|
926
|
+
[qwik._IMMUTABLE]: {
|
|
927
|
+
name: qwik._IMMUTABLE
|
|
928
|
+
}
|
|
929
|
+
}, 3, "8r_3"),
|
|
930
|
+
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
931
|
+
children: /* @__PURE__ */ qwik._jsxQ("svg", null, {
|
|
932
|
+
class: "w-6 h-6",
|
|
933
|
+
fill: "none",
|
|
934
|
+
stroke: "currentColor",
|
|
935
|
+
viewBox: "0 0 24 24",
|
|
936
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
937
|
+
}, /* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
938
|
+
d: "M4 6h16M4 12h16m-7 6h7",
|
|
939
|
+
"stroke-linecap": "round",
|
|
940
|
+
"stroke-linejoin": "round",
|
|
941
|
+
"stroke-width": "2"
|
|
942
|
+
}, null, 3, null), 3, null),
|
|
943
|
+
class: {
|
|
944
|
+
"sm:hidden": true
|
|
945
|
+
},
|
|
946
|
+
color: "transparent",
|
|
947
|
+
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
948
|
+
const [menu2] = qwik.useLexicalScope();
|
|
949
|
+
return menu2.value = !menu2.value;
|
|
950
|
+
}, "Nav_component_nav_div_div_div_Button_onClick_J0TKJTxh4N4", [
|
|
951
|
+
menu
|
|
952
|
+
]),
|
|
953
|
+
square: true,
|
|
954
|
+
[qwik._IMMUTABLE]: {
|
|
955
|
+
class: qwik._IMMUTABLE,
|
|
956
|
+
color: qwik._IMMUTABLE,
|
|
957
|
+
onClick$: qwik._IMMUTABLE,
|
|
958
|
+
square: qwik._IMMUTABLE
|
|
959
|
+
}
|
|
960
|
+
}, 3, "8r_4")
|
|
961
|
+
], 1, null)
|
|
962
|
+
], 1, null), 1, null)
|
|
963
|
+
], 1, "8r_5");
|
|
964
|
+
}, "Nav_component_ZePSmw9628k"));
|
|
883
965
|
const Plus = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
884
966
|
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
885
967
|
...props,
|
|
@@ -923,7 +1005,7 @@ const NumberInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
923
1005
|
class: "flex flex-col"
|
|
924
1006
|
}, [
|
|
925
1007
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
926
|
-
class: "text-gray-300 pb-1",
|
|
1008
|
+
class: "text-gray-300 pb-1 select-none",
|
|
927
1009
|
for: qwik._fnSignal((p0) => p0.id, [
|
|
928
1010
|
props
|
|
929
1011
|
], "p0.id")
|
|
@@ -954,11 +1036,11 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
954
1036
|
`, "NumberInputRaw_component_useStyles_v5EsWTMt0DU"));
|
|
955
1037
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
956
1038
|
class: qwik._fnSignal((p0) => ({
|
|
957
|
-
"flex text-gray-50": true,
|
|
1039
|
+
"flex text-gray-50 touch-manipulation": true,
|
|
958
1040
|
"gap-2": !p0.input
|
|
959
1041
|
}), [
|
|
960
1042
|
props
|
|
961
|
-
], '{"flex text-gray-50":true,"gap-2":!p0.input}')
|
|
1043
|
+
], '{"flex text-gray-50 touch-manipulation":true,"gap-2":!p0.input}')
|
|
962
1044
|
}, [
|
|
963
1045
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
964
1046
|
size: "sm",
|
|
@@ -1088,7 +1170,7 @@ const SelectInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1088
1170
|
class: "flex flex-col"
|
|
1089
1171
|
}, [
|
|
1090
1172
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
1091
|
-
class: "text-gray-300 pb-1",
|
|
1173
|
+
class: "text-gray-300 pb-1 select-none",
|
|
1092
1174
|
for: qwik._fnSignal((p0) => p0.id, [
|
|
1093
1175
|
props
|
|
1094
1176
|
], "p0.id")
|
|
@@ -1102,7 +1184,9 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1102
1184
|
const props1 = qwik._restProps(props, [
|
|
1103
1185
|
"id",
|
|
1104
1186
|
"values",
|
|
1105
|
-
"class"
|
|
1187
|
+
"class",
|
|
1188
|
+
"display",
|
|
1189
|
+
"color"
|
|
1106
1190
|
]);
|
|
1107
1191
|
const store = qwik.useStore({
|
|
1108
1192
|
opened: false
|
|
@@ -1130,7 +1214,7 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1130
1214
|
}
|
|
1131
1215
|
`, "SelectInputRaw_component_useStyles_Zc40Za0ngqc"));
|
|
1132
1216
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1133
|
-
class: "relative"
|
|
1217
|
+
class: "relative touch-manipulation"
|
|
1134
1218
|
}, [
|
|
1135
1219
|
/* @__PURE__ */ qwik._jsxS("select", {
|
|
1136
1220
|
...props1,
|
|
@@ -1148,38 +1232,44 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1148
1232
|
], "p0.id")
|
|
1149
1233
|
}, 0, null),
|
|
1150
1234
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1235
|
+
get color() {
|
|
1236
|
+
return props.color;
|
|
1237
|
+
},
|
|
1151
1238
|
size: "sm",
|
|
1152
1239
|
get class() {
|
|
1153
1240
|
return {
|
|
1154
|
-
"flex
|
|
1241
|
+
"flex": true,
|
|
1155
1242
|
...props.class
|
|
1156
1243
|
};
|
|
1157
1244
|
},
|
|
1158
1245
|
children: [
|
|
1159
|
-
|
|
1246
|
+
qwik._fnSignal((p0) => p0.display, [
|
|
1247
|
+
props
|
|
1248
|
+
], "p0.display"),
|
|
1249
|
+
!props.display && /* @__PURE__ */ qwik._jsxQ("span", null, {
|
|
1160
1250
|
class: "flex-1 text-left",
|
|
1161
1251
|
id: qwik._fnSignal((p0) => `lui-${p0.id}-name`, [
|
|
1162
1252
|
props
|
|
1163
1253
|
], "`lui-${p0.id}-name`")
|
|
1164
|
-
}, props.values.find((value) => value.value.toString() === props1.value)?.name ?? props.values[0].name, 1,
|
|
1254
|
+
}, props.values.find((value) => value.value.toString() === props1.value)?.name ?? props.values[0].name, 1, "cA_3"),
|
|
1165
1255
|
/* @__PURE__ */ qwik._jsxC(ChevronDown, {
|
|
1166
1256
|
width: 16,
|
|
1167
1257
|
get class() {
|
|
1168
1258
|
return {
|
|
1169
|
-
"transition-all duration-200": true,
|
|
1259
|
+
"motion-safe:transition-all duration-200": true,
|
|
1170
1260
|
"transform rotate-180": store.opened
|
|
1171
1261
|
};
|
|
1172
1262
|
},
|
|
1173
1263
|
[qwik._IMMUTABLE]: {
|
|
1174
1264
|
class: qwik._fnSignal((p0) => ({
|
|
1175
|
-
"transition-all duration-200": true,
|
|
1265
|
+
"motion-safe:transition-all duration-200": true,
|
|
1176
1266
|
"transform rotate-180": p0.opened
|
|
1177
1267
|
}), [
|
|
1178
1268
|
store
|
|
1179
|
-
], '{"transition-all duration-200":true,"transform rotate-180":p0.opened}'),
|
|
1269
|
+
], '{"motion-safe:transition-all duration-200":true,"transform rotate-180":p0.opened}'),
|
|
1180
1270
|
width: qwik._IMMUTABLE
|
|
1181
1271
|
}
|
|
1182
|
-
}, 3, "
|
|
1272
|
+
}, 3, "cA_4")
|
|
1183
1273
|
],
|
|
1184
1274
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1185
1275
|
const [store2] = qwik.useLexicalScope();
|
|
@@ -1189,18 +1279,21 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1189
1279
|
]),
|
|
1190
1280
|
[qwik._IMMUTABLE]: {
|
|
1191
1281
|
class: qwik._fnSignal((p0) => ({
|
|
1192
|
-
"flex
|
|
1282
|
+
"flex": true,
|
|
1193
1283
|
...p0.class
|
|
1194
1284
|
}), [
|
|
1195
1285
|
props
|
|
1196
|
-
], '{"flex
|
|
1286
|
+
], '{"flex":true,...p0.class}'),
|
|
1287
|
+
color: qwik._fnSignal((p0) => p0.color, [
|
|
1288
|
+
props
|
|
1289
|
+
], "p0.color"),
|
|
1197
1290
|
onClick$: qwik._IMMUTABLE,
|
|
1198
1291
|
size: qwik._IMMUTABLE
|
|
1199
1292
|
}
|
|
1200
|
-
}, 1, "
|
|
1293
|
+
}, 1, "cA_5"),
|
|
1201
1294
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
1202
1295
|
class: {
|
|
1203
|
-
"transition-all absolute top-full left-0 p-1 mt-2 gap-1 bg-gray-800/50 backdrop-blur-xl flex flex-col rounded-lg border border-gray-700 z-[1000] max-h-72 lui-scroll overflow-auto select-none": true,
|
|
1296
|
+
"motion-safe:transition-all absolute top-full left-0 p-1 mt-2 gap-1 bg-gray-800/50 backdrop-blur-xl flex flex-col rounded-lg border border-gray-700 z-[1000] max-h-72 lui-scroll overflow-auto select-none": true,
|
|
1204
1297
|
"pointer-events-none opacity-0 scale-95": !store.opened
|
|
1205
1298
|
}
|
|
1206
1299
|
}, {
|
|
@@ -1209,6 +1302,7 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1209
1302
|
], "`lui-${p0.id}-opts`")
|
|
1210
1303
|
}, props.values.map((value, i) => {
|
|
1211
1304
|
return /* @__PURE__ */ qwik._jsxC(Button, {
|
|
1305
|
+
color: "transparent",
|
|
1212
1306
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1213
1307
|
const [props2, store2, value2] = qwik.useLexicalScope();
|
|
1214
1308
|
store2.opened = false;
|
|
@@ -1224,29 +1318,28 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1224
1318
|
]),
|
|
1225
1319
|
get class() {
|
|
1226
1320
|
return {
|
|
1227
|
-
"border-0 bg-transparent": true,
|
|
1228
1321
|
"opacity-0": !store.opened
|
|
1229
1322
|
};
|
|
1230
1323
|
},
|
|
1231
1324
|
children: qwik._wrapSignal(value, "name"),
|
|
1232
1325
|
[qwik._IMMUTABLE]: {
|
|
1233
1326
|
class: qwik._fnSignal((p0) => ({
|
|
1234
|
-
"border-0 bg-transparent": true,
|
|
1235
1327
|
"opacity-0": !p0.opened
|
|
1236
1328
|
}), [
|
|
1237
1329
|
store
|
|
1238
|
-
], '{"
|
|
1330
|
+
], '{"opacity-0":!p0.opened}'),
|
|
1331
|
+
color: qwik._IMMUTABLE
|
|
1239
1332
|
}
|
|
1240
1333
|
}, 1, i);
|
|
1241
1334
|
}), 1, null)
|
|
1242
|
-
], 1, "
|
|
1335
|
+
], 1, "cA_6");
|
|
1243
1336
|
}, "SelectInputRaw_component_Itdx5yPeQd4"));
|
|
1244
1337
|
const TextArea = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1245
1338
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1246
1339
|
class: "flex flex-col"
|
|
1247
1340
|
}, [
|
|
1248
1341
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
1249
|
-
class: "text-gray-300 pb-1",
|
|
1342
|
+
class: "text-gray-300 pb-1 select-none",
|
|
1250
1343
|
for: qwik._fnSignal((p0) => p0.id, [
|
|
1251
1344
|
props
|
|
1252
1345
|
], "p0.id")
|
|
@@ -1293,11 +1386,11 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1293
1386
|
]);
|
|
1294
1387
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1295
1388
|
class: qwik._fnSignal((p0) => ({
|
|
1296
|
-
"flex gap-3 items-center": true,
|
|
1389
|
+
"flex gap-3 items-center touch-manipulation": true,
|
|
1297
1390
|
"justify-center": p0.center
|
|
1298
1391
|
}), [
|
|
1299
1392
|
props
|
|
1300
|
-
], '{"flex gap-3 items-center":true,"justify-center":p0.center}')
|
|
1393
|
+
], '{"flex gap-3 items-center touch-manipulation":true,"justify-center":p0.center}')
|
|
1301
1394
|
}, [
|
|
1302
1395
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
1303
1396
|
class: "inline-flex relative items-center cursor-pointer"
|
|
@@ -1313,9 +1406,9 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1313
1406
|
}, 0, null),
|
|
1314
1407
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1315
1408
|
class: {
|
|
1316
|
-
"transition ease-in-out w-12 h-7 rounded-md peer border hover:shadow-lg": true,
|
|
1409
|
+
"motion-safe:transition ease-in-out w-12 h-7 rounded-md peer border hover:shadow-lg": true,
|
|
1317
1410
|
"bg-gray-800 border-gray-700 hover:bg-gray-700 active:bg-gray-600": true,
|
|
1318
|
-
"after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:border after:rounded-md after:h-5 after:w-5 after:transition-all after:ease-in-out": true,
|
|
1411
|
+
"after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:border after:rounded-md after:h-5 after:w-5 after:motion-safe:transition-all after:ease-in-out": true,
|
|
1319
1412
|
"after:bg-gray-700 after:border-gray-600 after:hover:bg-gray-600 after:active:bg-gray-500": true,
|
|
1320
1413
|
"peer-checked:bg-blue-700 peer-checked:border-blue-600 peer-checked:hover:bg-blue-600 peer-checked:active:bg-blue-500": true,
|
|
1321
1414
|
"peer-checked:after:translate-x-full peer-checked:after:bg-blue-600 peer-checked:after:border-blue-500 peer-checked:after:hover:bg-blue-500 peer-checked:after:active:bg-blue-400": true
|
|
@@ -1325,7 +1418,7 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1325
1418
|
props.label && /* @__PURE__ */ qwik._jsxQ("label", {
|
|
1326
1419
|
for: qwik._wrapSignal(props1, "id")
|
|
1327
1420
|
}, {
|
|
1328
|
-
class: "text-gray-300 flex gap-2"
|
|
1421
|
+
class: "text-gray-300 flex gap-2 select-none"
|
|
1329
1422
|
}, qwik._fnSignal((p0) => p0.label, [
|
|
1330
1423
|
props
|
|
1331
1424
|
], "p0.label"), 3, "yu_0")
|
|
@@ -1786,7 +1879,7 @@ exports.LogoPterodactyl = LogoPterodactyl;
|
|
|
1786
1879
|
exports.LogoPurpur = LogoPurpur;
|
|
1787
1880
|
exports.LogoVelocity = LogoVelocity;
|
|
1788
1881
|
exports.LogoWaterfall = LogoWaterfall;
|
|
1789
|
-
exports.
|
|
1882
|
+
exports.Nav = Nav;
|
|
1790
1883
|
exports.NumberInput = NumberInput;
|
|
1791
1884
|
exports.NumberInputRaw = NumberInputRaw;
|
|
1792
1885
|
exports.SelectInput = SelectInput;
|