@luminescent/ui 0.10.0-4 → 0.12.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.
@@ -8,6 +8,121 @@ const Anchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
8
8
  props
9
9
  ], "p0.id")
10
10
  }, null, 3, "Oa_0"), "Anchor_component_O7y4zyaazA0"));
11
+ const blobColorClasses = {
12
+ pink: [
13
+ "bg-pink-400",
14
+ "bg-pink-500",
15
+ "bg-pink-600"
16
+ ],
17
+ red: [
18
+ "bg-red-400",
19
+ "bg-red-500",
20
+ "bg-red-600"
21
+ ],
22
+ orange: [
23
+ "bg-orange-400",
24
+ "bg-orange-500",
25
+ "bg-orange-600"
26
+ ],
27
+ yellow: [
28
+ "bg-yellow-400",
29
+ "bg-yellow-500",
30
+ "bg-yellow-600"
31
+ ],
32
+ green: [
33
+ "bg-green-400",
34
+ "bg-green-500",
35
+ "bg-green-600"
36
+ ],
37
+ blue: [
38
+ "bg-blue-400",
39
+ "bg-blue-500",
40
+ "bg-blue-600"
41
+ ],
42
+ purple: [
43
+ "bg-purple-400",
44
+ "bg-purple-500",
45
+ "bg-purple-600"
46
+ ],
47
+ gray: [
48
+ "bg-gray-400",
49
+ "bg-gray-500",
50
+ "bg-gray-600"
51
+ ],
52
+ darkgray: [
53
+ "bg-gray-500",
54
+ "bg-gray-600",
55
+ "bg-gray-700"
56
+ ],
57
+ darkergray: [
58
+ "bg-gray-600",
59
+ "bg-gray-700",
60
+ "bg-gray-800"
61
+ ]
62
+ };
63
+ const blobClasses = [
64
+ "animate-blob",
65
+ "animate-blob1",
66
+ "animate-blob2",
67
+ "animate-blob3",
68
+ "animate-blob4",
69
+ "animate-blob5",
70
+ "animate-blob6"
71
+ ];
72
+ const Blobs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
73
+ const props1 = qwik._restProps(props, [
74
+ "color",
75
+ "blur"
76
+ ]);
77
+ const blob = Math.round(Math.random() * 6);
78
+ const colorClass = typeof (props.color ?? "darkgray") == "string" ? blobColorClasses[props.color ?? "darkgray"] : props.color ?? "darkgray";
79
+ return /* @__PURE__ */ qwik._jsxQ("div", {
80
+ class: {
81
+ "motion-reduce:hidden absolute -z-10 inset-0 transition-all animate-in fade-in anim-duration-[2s]": true,
82
+ ...props1.class
83
+ }
84
+ }, {
85
+ style: {
86
+ containerType: "size"
87
+ }
88
+ }, [
89
+ /* @__PURE__ */ qwik._jsxQ("div", {
90
+ class: {
91
+ "absolute top-0 w-[30cqw] h-[30cqw] rounded-full opacity-20 ease-in-out": true,
92
+ "blur-sm": (props.blur ?? "xl") === "sm",
93
+ "blur-md": (props.blur ?? "xl") === "md",
94
+ "blur-lg": (props.blur ?? "xl") === "lg",
95
+ "blur-xl": (props.blur ?? "xl") === "xl",
96
+ [blobClasses[blob]]: true,
97
+ [colorClass[0]]: true
98
+ }
99
+ }, null, null, 3, null),
100
+ /* @__PURE__ */ qwik._jsxQ("div", {
101
+ class: {
102
+ "absolute top-0 w-[30cqw] h-[30cqw] rounded-full opacity-20 ease-in-out": true,
103
+ "blur-sm": (props.blur ?? "xl") === "sm",
104
+ "blur-md": (props.blur ?? "xl") === "md",
105
+ "blur-lg": (props.blur ?? "xl") === "lg",
106
+ "blur-xl": (props.blur ?? "xl") === "xl",
107
+ "anim-delay-[-5s]": true,
108
+ [blobClasses[blob]]: true,
109
+ [colorClass[1]]: true
110
+ }
111
+ }, null, null, 3, null),
112
+ /* @__PURE__ */ qwik._jsxQ("div", {
113
+ class: {
114
+ "absolute top-0 w-[30cqw] h-[30cqw] rounded-full opacity-20 ease-in-out": true,
115
+ "blur-sm": (props.blur ?? "xl") === "sm",
116
+ "blur-md": (props.blur ?? "xl") === "md",
117
+ "blur-lg": (props.blur ?? "xl") === "lg",
118
+ "blur-xl": (props.blur ?? "xl") === "xl",
119
+ "anim-delay-[-10s]": true,
120
+ [blobClasses[blob]]: true,
121
+ [colorClass[2]]: true
122
+ }
123
+ }, null, null, 3, null)
124
+ ], 1, "OL_0");
125
+ }, "Blobs_component_246Oa50YM60"));
11
126
  const buttonColorClasses = {
12
127
  blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500 active:bg-blue-400 focus:border-blue-400",
13
128
  purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500 active:bg-purple-400 focus:border-purple-400",
@@ -87,12 +202,7 @@ const cardColorClasses = {
87
202
  bg: "bg-pink-400/60 border-pink-400",
88
203
  hover: "hover:bg-pink-400/20",
89
204
  click: "active:bg-pink-300/20"
90
- },
91
- blobs: [
92
- "bg-pink-400",
93
- "bg-pink-500",
94
- "bg-pink-600"
95
- ]
205
+ }
96
206
  },
97
207
  red: {
98
208
  card: {
@@ -100,12 +210,7 @@ const cardColorClasses = {
100
210
  bg: "bg-red-400/60 border-red-400",
101
211
  hover: "hover:bg-red-400/20",
102
212
  click: "active:bg-red-300/20"
103
- },
104
- blobs: [
105
- "bg-red-400",
106
- "bg-red-500",
107
- "bg-red-600"
108
- ]
213
+ }
109
214
  },
110
215
  orange: {
111
216
  card: {
@@ -113,12 +218,7 @@ const cardColorClasses = {
113
218
  bg: "bg-orange-400/60 border-orange-400",
114
219
  hover: "hover:bg-orange-400/20",
115
220
  click: "active:bg-orange-300/20"
116
- },
117
- blobs: [
118
- "bg-orange-400",
119
- "bg-orange-500",
120
- "bg-orange-600"
121
- ]
221
+ }
122
222
  },
123
223
  yellow: {
124
224
  card: {
@@ -126,12 +226,7 @@ const cardColorClasses = {
126
226
  bg: "bg-yellow-400/60 border-yellow-400",
127
227
  hover: "hover:bg-yellow-400/20",
128
228
  click: "active:bg-yellow-300/20"
129
- },
130
- blobs: [
131
- "bg-yellow-400",
132
- "bg-yellow-500",
133
- "bg-yellow-600"
134
- ]
229
+ }
135
230
  },
136
231
  green: {
137
232
  card: {
@@ -139,12 +234,7 @@ const cardColorClasses = {
139
234
  bg: "bg-green-400/60 border-green-400",
140
235
  hover: "hover:bg-green-400/20",
141
236
  click: "active:bg-green-300/20"
142
- },
143
- blobs: [
144
- "bg-green-400",
145
- "bg-green-500",
146
- "bg-green-600"
147
- ]
237
+ }
148
238
  },
149
239
  blue: {
150
240
  card: {
@@ -152,12 +242,7 @@ const cardColorClasses = {
152
242
  bg: "bg-blue-400/60 border-blue-400",
153
243
  hover: "hover:bg-blue-400/20",
154
244
  click: "active:bg-blue-300/20"
155
- },
156
- blobs: [
157
- "bg-blue-400",
158
- "bg-blue-500",
159
- "bg-blue-600"
160
- ]
245
+ }
161
246
  },
162
247
  purple: {
163
248
  card: {
@@ -165,12 +250,7 @@ const cardColorClasses = {
165
250
  bg: "bg-purple-400/60 border-purple-400",
166
251
  hover: "hover:bg-purple-400/20",
167
252
  click: "active:bg-purple-300/20"
168
- },
169
- blobs: [
170
- "bg-purple-400",
171
- "bg-purple-500",
172
- "bg-purple-600"
173
- ]
253
+ }
174
254
  },
175
255
  gray: {
176
256
  card: {
@@ -178,12 +258,7 @@ const cardColorClasses = {
178
258
  bg: "bg-gray-400/60 border-gray-400",
179
259
  hover: "hover:bg-gray-400/20",
180
260
  click: "active:bg-gray-300/20"
181
- },
182
- blobs: [
183
- "bg-gray-400",
184
- "bg-gray-500",
185
- "bg-gray-600"
186
- ]
261
+ }
187
262
  },
188
263
  darkgray: {
189
264
  card: {
@@ -191,12 +266,7 @@ const cardColorClasses = {
191
266
  bg: "bg-gray-800/60 border-gray-800",
192
267
  hover: "hover:bg-gray-800/40",
193
268
  click: "active:bg-gray-700/40"
194
- },
195
- blobs: [
196
- "bg-gray-500",
197
- "bg-gray-600",
198
- "bg-gray-700"
199
- ]
269
+ }
200
270
  },
201
271
  darkergray: {
202
272
  card: {
@@ -204,31 +274,17 @@ const cardColorClasses = {
204
274
  bg: "bg-gray-900/60 border-gray-900",
205
275
  hover: "hover:bg-gray-900/50",
206
276
  click: "active:bg-gray-800/50"
207
- },
208
- blobs: [
209
- "bg-gray-600",
210
- "bg-gray-700",
211
- "bg-gray-800"
212
- ]
277
+ }
213
278
  }
214
279
  };
215
- const blobClasses = [
216
- "animate-blob",
217
- "animate-blob1",
218
- "animate-blob2",
219
- "animate-blob3",
220
- "animate-blob4",
221
- "animate-blob5",
222
- "animate-blob6"
223
- ];
224
280
  const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
281
+ qwik._jsxBranch();
225
282
  const props1 = qwik._restProps(props, [
226
283
  "color",
227
284
  "hover",
228
285
  "row",
229
286
  "blobs"
230
287
  ]);
231
- const blob = Math.round(Math.random() * 6);
232
288
  return /* @__PURE__ */ qwik._jsxS("div", {
233
289
  ...props1,
234
290
  children: [
@@ -246,36 +302,20 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
246
302
  }, {
247
303
  class: "absolute inset-0"
248
304
  }, null, 3, "OW_1"),
249
- props.blobs && /* @__PURE__ */ qwik._jsxQ("div", null, {
250
- class: "motion-reduce:hidden absolute -z-10 inset-0 transition-all overflow-clip animate-in fade-in anim-duration-[2s]",
251
- style: {
252
- containerType: "size"
305
+ props.blobs && /* @__PURE__ */ qwik._jsxC(Blobs, {
306
+ get color() {
307
+ return props.color ?? "darkgray";
308
+ },
309
+ class: {
310
+ "overflow-clip": true
311
+ },
312
+ [qwik._IMMUTABLE]: {
313
+ class: qwik._IMMUTABLE,
314
+ color: qwik._fnSignal((p0) => p0.color ?? "darkgray", [
315
+ props
316
+ ], 'p0.color??"darkgray"')
253
317
  }
254
- }, [
255
- /* @__PURE__ */ qwik._jsxQ("div", {
256
- class: {
257
- "absolute top-0 w-[30cqw] h-[30cqw] rounded-full opacity-20 ease-in-out blur-xl": true,
258
- [blobClasses[blob]]: true,
259
- [cardColorClasses[props.color ?? "darkgray"].blobs[0]]: true
260
- }
261
- }, null, null, 3, null),
262
- /* @__PURE__ */ qwik._jsxQ("div", {
263
- class: {
264
- "absolute top-0 w-[30cqw] h-[30cqw] rounded-full opacity-20 ease-in-out blur-xl": true,
265
- "anim-delay-[-5s]": true,
266
- [blobClasses[blob]]: true,
267
- [cardColorClasses[props.color ?? "darkgray"].blobs[1]]: true
268
- }
269
- }, null, null, 3, null),
270
- /* @__PURE__ */ qwik._jsxQ("div", {
271
- class: {
272
- "absolute top-0 w-[30cqw] h-[30cqw] rounded-full opacity-20 ease-in-out blur-xl": true,
273
- "anim-delay-[-10s]": true,
274
- [blobClasses[blob]]: true,
275
- [cardColorClasses[props.color ?? "darkgray"].blobs[2]]: true
276
- }
277
- }, null, null, 3, null)
278
- ], 1, "OW_2")
318
+ }, 3, "OW_2")
279
319
  ],
280
320
  class: {
281
321
  "relative p-8 border rounded-lg motion-safe:transition-all": true,
@@ -786,6 +826,204 @@ const ColorPickerRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
786
826
  }), 1, null)
787
827
  ], 1, "0s_4");
788
828
  }, "ColorPickerRaw_component_CWQPPcezhyA"));
829
+ const ChevronDown = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
830
+ return /* @__PURE__ */ qwik._jsxS("svg", {
831
+ ...props,
832
+ children: /* @__PURE__ */ qwik._jsxQ("path", null, {
833
+ d: "M112 184l144 144 144-144",
834
+ fill: "none",
835
+ stroke: "currentColor",
836
+ "stroke-linecap": "round",
837
+ "stroke-linejoin": "round",
838
+ "stroke-width": "48"
839
+ }, null, 3, null)
840
+ }, {
841
+ height: qwik._fnSignal((p0) => p0.width, [
842
+ props
843
+ ], "p0.width"),
844
+ viewBox: "0 0 512 512",
845
+ xmlns: "http://www.w3.org/2000/svg"
846
+ }, 0, "rN_0");
847
+ }, "ChevronDown_component_V0linof0cMQ"));
848
+ const Dropdown = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
849
+ return /* @__PURE__ */ qwik._jsxQ("div", null, {
850
+ class: "flex flex-col"
851
+ }, [
852
+ /* @__PURE__ */ qwik._jsxQ("label", null, {
853
+ class: "text-gray-300 pb-1 select-none",
854
+ for: qwik._fnSignal((p0) => p0.id, [
855
+ props
856
+ ], "p0.id")
857
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "Zz_0"), 1, null),
858
+ /* @__PURE__ */ qwik._jsxC(DropdownRaw, {
859
+ ...props
860
+ }, 0, "Zz_1")
861
+ ], 1, "Zz_2");
862
+ }, "Dropdown_component_B5UM3uiu2TE"));
863
+ const DropdownRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
864
+ const props1 = qwik._restProps(props, [
865
+ "id",
866
+ "values",
867
+ "class",
868
+ "display",
869
+ "color",
870
+ "size"
871
+ ]);
872
+ const store = qwik.useStore({
873
+ opened: false,
874
+ value: props1.value
875
+ });
876
+ qwik.useStylesQrl(/* @__PURE__ */ qwik.inlinedQrl(`
877
+ .lui-scroll {
878
+ scroll-behavior: smooth;
879
+ }
880
+ .lui-scroll::-webkit-scrollbar {
881
+ appearance: none;
882
+ -webkit-appearance: none;
883
+ width: 8px;
884
+ height: 8px;
885
+ }
886
+ .lui-scroll::-webkit-scrollbar-track {
887
+ background-color: transparent;
888
+ }
889
+ .lui-scroll::-webkit-scrollbar-thumb {
890
+ background-color: #ffffff20;
891
+ border: 1px solid #ffffff20;
892
+ border-radius: 3px;
893
+ }
894
+ .lui-scroll::-webkit-scrollbar-corner {
895
+ background-color: transparent;
896
+ }
897
+ `, "DropdownRaw_component_useStyles_UFDvrln9Bfk"));
898
+ return /* @__PURE__ */ qwik._jsxQ("div", null, {
899
+ class: "relative touch-manipulation"
900
+ }, [
901
+ props.values && /* @__PURE__ */ qwik._jsxS("select", {
902
+ ...props1,
903
+ children: props.values.map((value, i) => {
904
+ return /* @__PURE__ */ qwik._jsxQ("option", {
905
+ value: qwik._wrapSignal(value, "value")
906
+ }, null, `${value.value}`, 1, i);
907
+ })
908
+ }, {
909
+ class: {
910
+ "hidden": true
911
+ },
912
+ id: qwik._fnSignal((p0) => p0.id, [
913
+ props
914
+ ], "p0.id")
915
+ }, 0, "Zz_3"),
916
+ /* @__PURE__ */ qwik._jsxC(Button, {
917
+ get color() {
918
+ return props.color;
919
+ },
920
+ get size() {
921
+ return props.size ?? "sm";
922
+ },
923
+ get class() {
924
+ return {
925
+ "flex": true,
926
+ ...props.class
927
+ };
928
+ },
929
+ children: [
930
+ qwik._fnSignal((p0) => p0.display, [
931
+ props
932
+ ], "p0.display"),
933
+ !props.display && /* @__PURE__ */ qwik._jsxQ("span", null, {
934
+ class: "flex-1 text-left",
935
+ id: qwik._fnSignal((p0) => `lui-${p0.id}-name`, [
936
+ props
937
+ ], "`lui-${p0.id}-name`")
938
+ }, props.values.find((value) => value.value.toString() === store.value)?.name ?? props.values[0].name, 1, "Zz_4"),
939
+ /* @__PURE__ */ qwik._jsxC(ChevronDown, {
940
+ width: 16,
941
+ get class() {
942
+ return {
943
+ "motion-safe:transition-all duration-200": true,
944
+ "transform rotate-180": store.opened
945
+ };
946
+ },
947
+ [qwik._IMMUTABLE]: {
948
+ class: qwik._fnSignal((p0) => ({
949
+ "motion-safe:transition-all duration-200": true,
950
+ "transform rotate-180": p0.opened
951
+ }), [
952
+ store
953
+ ], '{"motion-safe:transition-all duration-200":true,"transform rotate-180":p0.opened}'),
954
+ width: qwik._IMMUTABLE
955
+ }
956
+ }, 3, "Zz_5")
957
+ ],
958
+ onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
959
+ const [store2] = qwik.useLexicalScope();
960
+ store2.opened = !store2.opened;
961
+ }, "DropdownRaw_component_div_Button_onClick_d8M33E0JtyQ", [
962
+ store
963
+ ]),
964
+ [qwik._IMMUTABLE]: {
965
+ class: qwik._fnSignal((p0) => ({
966
+ "flex": true,
967
+ ...p0.class
968
+ }), [
969
+ props
970
+ ], '{"flex":true,...p0.class}'),
971
+ color: qwik._fnSignal((p0) => p0.color, [
972
+ props
973
+ ], "p0.color"),
974
+ onClick$: qwik._IMMUTABLE,
975
+ size: qwik._fnSignal((p0) => p0.size ?? "sm", [
976
+ props
977
+ ], 'p0.size??"sm"')
978
+ }
979
+ }, 1, "Zz_6"),
980
+ /* @__PURE__ */ qwik._jsxQ("div", {
981
+ class: {
982
+ "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,
983
+ "pointer-events-none opacity-0 scale-95": !store.opened
984
+ }
985
+ }, {
986
+ id: qwik._fnSignal((p0) => `lui-${p0.id}-opts`, [
987
+ props
988
+ ], "`lui-${p0.id}-opts`")
989
+ }, [
990
+ props.values.map(({ name, value, color = "transparent" }, i) => {
991
+ return /* @__PURE__ */ qwik._jsxC(Button, {
992
+ color,
993
+ get size() {
994
+ return props.size ?? "sm";
995
+ },
996
+ children: name,
997
+ onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
998
+ const [props2, store2, value2] = qwik.useLexicalScope();
999
+ store2.opened = false;
1000
+ const select = document.getElementById(props2.id);
1001
+ if (select) {
1002
+ select.value = value2.toString();
1003
+ select.dispatchEvent(new Event("change"));
1004
+ }
1005
+ store2.value = value2.toString();
1006
+ }, "DropdownRaw_component_div_div_Button_onClick_FOKnkeI0cno", [
1007
+ props,
1008
+ store,
1009
+ value
1010
+ ]),
1011
+ [qwik._IMMUTABLE]: {
1012
+ size: qwik._fnSignal((p0) => p0.size ?? "sm", [
1013
+ props
1014
+ ], 'p0.size??"sm"')
1015
+ }
1016
+ }, 1, i);
1017
+ }),
1018
+ /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
1019
+ name: "extra-buttons",
1020
+ [qwik._IMMUTABLE]: {
1021
+ name: qwik._IMMUTABLE
1022
+ }
1023
+ }, 3, "Zz_7")
1024
+ ], 1, null)
1025
+ ], 1, "Zz_8");
1026
+ }, "DropdownRaw_component_Hj5Qd2ULo0U"));
789
1027
  const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
790
1028
  const props1 = qwik._restProps(props, [
791
1029
  "width",
@@ -871,17 +1109,15 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
871
1109
  props
872
1110
  ], '{"motion-safe:transition-all duration-200 flex flex-col top-0 left-0 w-full z-50":true,"fixed":p0.fixed,"absolute":!p0.fixed}')
873
1111
  }, [
874
- /* @__PURE__ */ qwik._jsxQ("div", null, {
875
- class: qwik._fnSignal((p0) => ({
1112
+ /* @__PURE__ */ qwik._jsxQ("div", {
1113
+ class: {
876
1114
  "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, {
1115
+ "top-full mt-2": menu.value,
1116
+ "opacity-0 top-0 scale-95": !menu.value
1117
+ }
1118
+ }, null, /* @__PURE__ */ qwik._jsxQ("div", null, {
883
1119
  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
1120
+ "flex flex-col gap-2 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
885
1121
  }
886
1122
  }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
887
1123
  name: "mobile",
@@ -889,21 +1125,21 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
889
1125
  name: qwik._IMMUTABLE
890
1126
  }
891
1127
  }, 3, "8r_0"), 1, null), 1, null),
892
- /* @__PURE__ */ qwik._jsxQ("div", null, {
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", {
1128
+ /* @__PURE__ */ qwik._jsxQ("div", {
1129
+ class: {
1130
+ "bg-gray-800/50 border-b border-gray-700/50": !props.floating,
1131
+ 'before:absolute before:content-[""] before:w-full before:h-full before:backdrop-blur-lg before:drop-shadow-xl before:-z-10': !props.floating,
1132
+ "relative mt-2 mx-2": props.floating
1133
+ }
1134
+ }, null, /* @__PURE__ */ qwik._jsxQ("div", {
900
1135
  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
1136
+ "flex justify-evenly w-full mx-auto px-2 max-w-7xl": true,
1137
+ "bg-gray-800/50 border border-gray-700/50 rounded-lg": props.floating,
1138
+ 'before:absolute before:content-[""] before:w-full before:h-full before:backdrop-blur-lg before:drop-shadow-xl before:-z-10': props.floating
903
1139
  }
904
1140
  }, null, [
905
1141
  /* @__PURE__ */ qwik._jsxQ("div", null, {
906
- class: "flex items-center flex-1 gap-2 justify-start"
1142
+ class: "flex items-center flex-1 gap-2 py-2 justify-start"
907
1143
  }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
908
1144
  name: "start",
909
1145
  [qwik._IMMUTABLE]: {
@@ -911,7 +1147,7 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
911
1147
  }
912
1148
  }, 3, "8r_1"), 1, null),
913
1149
  /* @__PURE__ */ qwik._jsxQ("div", null, {
914
- class: "flex items-center flex-1 gap-2 justify-center"
1150
+ class: "flex items-center flex-1 gap-2 py-2 justify-center"
915
1151
  }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
916
1152
  name: "center",
917
1153
  [qwik._IMMUTABLE]: {
@@ -919,7 +1155,7 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
919
1155
  }
920
1156
  }, 3, "8r_2"), 1, null),
921
1157
  /* @__PURE__ */ qwik._jsxQ("div", null, {
922
- class: "flex items-center flex-1 gap-2 justify-end"
1158
+ class: "flex items-center flex-1 gap-2 py-2 justify-end"
923
1159
  }, [
924
1160
  /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
925
1161
  name: "end",
@@ -1146,200 +1382,6 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
1146
1382
  }, 0, "gk_7")
1147
1383
  ], 1, "gk_8");
1148
1384
  }, "NumberInputRaw_component_8sGf0eS1rvo"));
1149
- const ChevronDown = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1150
- return /* @__PURE__ */ qwik._jsxS("svg", {
1151
- ...props,
1152
- children: /* @__PURE__ */ qwik._jsxQ("path", null, {
1153
- d: "M112 184l144 144 144-144",
1154
- fill: "none",
1155
- stroke: "currentColor",
1156
- "stroke-linecap": "round",
1157
- "stroke-linejoin": "round",
1158
- "stroke-width": "48"
1159
- }, null, 3, null)
1160
- }, {
1161
- height: qwik._fnSignal((p0) => p0.width, [
1162
- props
1163
- ], "p0.width"),
1164
- viewBox: "0 0 512 512",
1165
- xmlns: "http://www.w3.org/2000/svg"
1166
- }, 0, "rN_0");
1167
- }, "ChevronDown_component_V0linof0cMQ"));
1168
- const SelectInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1169
- return /* @__PURE__ */ qwik._jsxQ("div", null, {
1170
- class: "flex flex-col"
1171
- }, [
1172
- /* @__PURE__ */ qwik._jsxQ("label", null, {
1173
- class: "text-gray-300 pb-1 select-none",
1174
- for: qwik._fnSignal((p0) => p0.id, [
1175
- props
1176
- ], "p0.id")
1177
- }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "cA_0"), 1, null),
1178
- /* @__PURE__ */ qwik._jsxC(SelectInputRaw, {
1179
- ...props
1180
- }, 0, "cA_1")
1181
- ], 1, "cA_2");
1182
- }, "SelectInput_component_m80ag1KuJSk"));
1183
- const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1184
- const props1 = qwik._restProps(props, [
1185
- "id",
1186
- "values",
1187
- "class",
1188
- "display",
1189
- "color",
1190
- "size"
1191
- ]);
1192
- const store = qwik.useStore({
1193
- opened: false
1194
- });
1195
- qwik.useStylesQrl(/* @__PURE__ */ qwik.inlinedQrl(`
1196
- .lui-scroll {
1197
- scroll-behavior: smooth;
1198
- }
1199
- .lui-scroll::-webkit-scrollbar {
1200
- appearance: none;
1201
- -webkit-appearance: none;
1202
- width: 8px;
1203
- height: 8px;
1204
- }
1205
- .lui-scroll::-webkit-scrollbar-track {
1206
- background-color: transparent;
1207
- }
1208
- .lui-scroll::-webkit-scrollbar-thumb {
1209
- background-color: #ffffff20;
1210
- border: 1px solid #ffffff20;
1211
- border-radius: 3px;
1212
- }
1213
- .lui-scroll::-webkit-scrollbar-corner {
1214
- background-color: transparent;
1215
- }
1216
- `, "SelectInputRaw_component_useStyles_Zc40Za0ngqc"));
1217
- return /* @__PURE__ */ qwik._jsxQ("div", null, {
1218
- class: "relative touch-manipulation"
1219
- }, [
1220
- /* @__PURE__ */ qwik._jsxS("select", {
1221
- ...props1,
1222
- children: props.values.map((value, i) => {
1223
- return /* @__PURE__ */ qwik._jsxQ("option", {
1224
- value: qwik._wrapSignal(value, "value")
1225
- }, null, value.name, 1, i);
1226
- })
1227
- }, {
1228
- class: {
1229
- "hidden": true
1230
- },
1231
- id: qwik._fnSignal((p0) => p0.id, [
1232
- props
1233
- ], "p0.id")
1234
- }, 0, null),
1235
- /* @__PURE__ */ qwik._jsxC(Button, {
1236
- get color() {
1237
- return props.color;
1238
- },
1239
- get size() {
1240
- return props.size ?? "sm";
1241
- },
1242
- get class() {
1243
- return {
1244
- "flex": true,
1245
- ...props.class
1246
- };
1247
- },
1248
- children: [
1249
- qwik._fnSignal((p0) => p0.display, [
1250
- props
1251
- ], "p0.display"),
1252
- !props.display && /* @__PURE__ */ qwik._jsxQ("span", null, {
1253
- class: "flex-1 text-left",
1254
- id: qwik._fnSignal((p0) => `lui-${p0.id}-name`, [
1255
- props
1256
- ], "`lui-${p0.id}-name`")
1257
- }, props.values.find((value) => value.value.toString() === props1.value)?.name ?? props.values[0].name, 1, "cA_3"),
1258
- /* @__PURE__ */ qwik._jsxC(ChevronDown, {
1259
- width: 16,
1260
- get class() {
1261
- return {
1262
- "motion-safe:transition-all duration-200": true,
1263
- "transform rotate-180": store.opened
1264
- };
1265
- },
1266
- [qwik._IMMUTABLE]: {
1267
- class: qwik._fnSignal((p0) => ({
1268
- "motion-safe:transition-all duration-200": true,
1269
- "transform rotate-180": p0.opened
1270
- }), [
1271
- store
1272
- ], '{"motion-safe:transition-all duration-200":true,"transform rotate-180":p0.opened}'),
1273
- width: qwik._IMMUTABLE
1274
- }
1275
- }, 3, "cA_4")
1276
- ],
1277
- onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
1278
- const [store2] = qwik.useLexicalScope();
1279
- store2.opened = !store2.opened;
1280
- }, "SelectInputRaw_component_div_Button_onClick_9Gkbglaqsdw", [
1281
- store
1282
- ]),
1283
- [qwik._IMMUTABLE]: {
1284
- class: qwik._fnSignal((p0) => ({
1285
- "flex": true,
1286
- ...p0.class
1287
- }), [
1288
- props
1289
- ], '{"flex":true,...p0.class}'),
1290
- color: qwik._fnSignal((p0) => p0.color, [
1291
- props
1292
- ], "p0.color"),
1293
- onClick$: qwik._IMMUTABLE,
1294
- size: qwik._fnSignal((p0) => p0.size ?? "sm", [
1295
- props
1296
- ], 'p0.size??"sm"')
1297
- }
1298
- }, 1, "cA_5"),
1299
- /* @__PURE__ */ qwik._jsxQ("div", {
1300
- class: {
1301
- "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,
1302
- "pointer-events-none opacity-0 scale-95": !store.opened
1303
- }
1304
- }, {
1305
- id: qwik._fnSignal((p0) => `lui-${p0.id}-opts`, [
1306
- props
1307
- ], "`lui-${p0.id}-opts`")
1308
- }, props.values.map((value, i) => {
1309
- return /* @__PURE__ */ qwik._jsxC(Button, {
1310
- color: "transparent",
1311
- onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
1312
- const [props2, store2, value2] = qwik.useLexicalScope();
1313
- store2.opened = false;
1314
- const select = document.getElementById(props2.id);
1315
- select.value = value2.value.toString();
1316
- const name = document.getElementById(`lui-${props2.id}-name`);
1317
- if (name)
1318
- name.textContent = value2.name;
1319
- select.dispatchEvent(new Event("change"));
1320
- }, "SelectInputRaw_component_div_div_Button_onClick_mLa0FdeKCLw", [
1321
- props,
1322
- store,
1323
- value
1324
- ]),
1325
- get class() {
1326
- return {
1327
- "opacity-0": !store.opened
1328
- };
1329
- },
1330
- children: qwik._wrapSignal(value, "name"),
1331
- [qwik._IMMUTABLE]: {
1332
- class: qwik._fnSignal((p0) => ({
1333
- "opacity-0": !p0.opened
1334
- }), [
1335
- store
1336
- ], '{"opacity-0":!p0.opened}'),
1337
- color: qwik._IMMUTABLE
1338
- }
1339
- }, 1, i);
1340
- }), 1, null)
1341
- ], 1, "cA_6");
1342
- }, "SelectInputRaw_component_Itdx5yPeQd4"));
1343
1385
  const TextArea = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1344
1386
  return /* @__PURE__ */ qwik._jsxQ("div", null, {
1345
1387
  class: "flex flex-col"
@@ -1365,7 +1407,7 @@ const TextAreaRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
1365
1407
  class: {
1366
1408
  [InputClasses]: true,
1367
1409
  "h-32": true,
1368
- "cursor-pointer active:bg-gray-600": props.output,
1410
+ "cursor-pointer active:bg-gray-600 select-none": props.output,
1369
1411
  ...props1.class
1370
1412
  },
1371
1413
  onClick$: props.output ? /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
@@ -1866,11 +1908,14 @@ const LogoWaterfall = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
1866
1908
  }, 0, "Pt_0");
1867
1909
  }, "LogoWaterfall_component_1hFl8GlECLI"));
1868
1910
  exports.Anchor = Anchor;
1911
+ exports.Blobs = Blobs;
1869
1912
  exports.Button = Button;
1870
1913
  exports.ButtonAnchor = ButtonAnchor;
1871
1914
  exports.Card = Card;
1872
1915
  exports.ColorInput = ColorInput;
1873
1916
  exports.ColorPickerRaw = ColorPickerRaw;
1917
+ exports.Dropdown = Dropdown;
1918
+ exports.DropdownRaw = DropdownRaw;
1874
1919
  exports.Header = Header;
1875
1920
  exports.InputClasses = InputClasses;
1876
1921
  exports.LoadingIcon = LoadingIcon;
@@ -1888,8 +1933,6 @@ exports.LogoWaterfall = LogoWaterfall;
1888
1933
  exports.Nav = Nav;
1889
1934
  exports.NumberInput = NumberInput;
1890
1935
  exports.NumberInputRaw = NumberInputRaw;
1891
- exports.SelectInput = SelectInput;
1892
- exports.SelectInputRaw = SelectInputRaw;
1893
1936
  exports.TextArea = TextArea;
1894
1937
  exports.TextAreaRaw = TextAreaRaw;
1895
1938
  exports.TextInput = TextInput;
@@ -1897,6 +1940,7 @@ exports.TextInputRaw = TextInputRaw;
1897
1940
  exports.Toggle = Toggle;
1898
1941
  exports._auto_blobClasses = blobClasses;
1899
1942
  exports._auto_buttonClass = buttonClass;
1943
+ exports.blobColorClasses = blobColorClasses;
1900
1944
  exports.buttonColorClasses = buttonColorClasses;
1901
1945
  exports.cardColorClasses = cardColorClasses;
1902
1946
  exports.sizeClasses = sizeClasses;