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