@luminescent/ui-qwik 3.0.3 → 4.0.0-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 +35 -19
- package/lib/index.qwik.mjs +35 -19
- package/lib-types/components/functions.d.ts +4 -0
- package/lib-types/index.d.ts +1 -0
- package/package.json +2 -2
package/lib/index.qwik.cjs
CHANGED
|
@@ -484,8 +484,7 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
|
|
|
484
484
|
});
|
|
485
485
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
486
486
|
class: {
|
|
487
|
-
"lum-
|
|
488
|
-
flex: true,
|
|
487
|
+
"lum-card touch-none p-4 motion-safe:transition-all": true,
|
|
489
488
|
"flex-col": !horizontal,
|
|
490
489
|
...props.class
|
|
491
490
|
},
|
|
@@ -509,11 +508,11 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
|
|
|
509
508
|
"preventdefault:touchstart": true,
|
|
510
509
|
children: [
|
|
511
510
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
512
|
-
class: "h-[150px] w-[125px] rounded-
|
|
511
|
+
class: "h-[150px] w-[125px] rounded-md border border-gray-700 bg-gradient-to-b from-transparent to-black"
|
|
513
512
|
}),
|
|
514
513
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
515
514
|
class: {
|
|
516
|
-
"absolute -top-2 -left-2 h-4 w-4 rounded-
|
|
515
|
+
"absolute -top-2 -left-2 h-4 w-4 rounded-md border bg-white": true,
|
|
517
516
|
"border-white": getBrightness(hexNumberToRgb(hexStringToNumber(store.value))) < 0.5,
|
|
518
517
|
"border-black": getBrightness(hexNumberToRgb(hexStringToNumber(store.value))) > 0.5
|
|
519
518
|
},
|
|
@@ -534,7 +533,7 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
|
|
|
534
533
|
"preventdefault:mousedown": true,
|
|
535
534
|
"preventdefault:touchstart": true,
|
|
536
535
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
537
|
-
class: "absolute -bottom-2 -left-[5px] h-4 w-4 rounded-
|
|
536
|
+
class: "absolute -bottom-2 -left-[5px] h-4 w-4 rounded-md border border-white bg-[#ff0000]",
|
|
538
537
|
style: {
|
|
539
538
|
transform: `translateY(${-store.hue.position}px)`,
|
|
540
539
|
background: store.hue.color
|
|
@@ -557,11 +556,11 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
|
|
|
557
556
|
children: [
|
|
558
557
|
preview != "full" && /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
559
558
|
class: {
|
|
560
|
-
"border border-gray-700": true,
|
|
561
|
-
"aspect-square h-full
|
|
559
|
+
"border border-gray-700 rounded-sm": true,
|
|
560
|
+
"aspect-square h-full": preview == "left" || preview == "right",
|
|
562
561
|
"h-3 w-full": preview == "top" || preview == "bottom",
|
|
563
|
-
"rounded-
|
|
564
|
-
"rounded-
|
|
562
|
+
"rounded-b-none": preview == "top",
|
|
563
|
+
"rounded-t-none": preview == "bottom"
|
|
565
564
|
},
|
|
566
565
|
style: {
|
|
567
566
|
backgroundColor: `${store.value}`
|
|
@@ -569,7 +568,7 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
|
|
|
569
568
|
}),
|
|
570
569
|
/* @__PURE__ */ jsxRuntime.jsx("input", {
|
|
571
570
|
class: {
|
|
572
|
-
"lum-input w-full p-1 text-xs": true,
|
|
571
|
+
"lum-input w-full p-1 text-xs rounded-sm": true,
|
|
573
572
|
"rounded-t-none border-t-0": preview == "top",
|
|
574
573
|
"rounded-b-none border-b-0": preview == "bottom"
|
|
575
574
|
},
|
|
@@ -586,8 +585,9 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
|
|
|
586
585
|
}),
|
|
587
586
|
colors.map((color, i) => {
|
|
588
587
|
return /* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
588
|
+
type: "button",
|
|
589
589
|
class: {
|
|
590
|
-
"lum-btn h-[1.6rem] w-[1.6rem] border-2 border-white/30 p-0 hover:border-white": true
|
|
590
|
+
"lum-btn rounded-sm h-[1.6rem] w-[1.6rem] border-2 border-white/30 p-0 hover:border-white": true
|
|
591
591
|
},
|
|
592
592
|
style: {
|
|
593
593
|
background: color,
|
|
@@ -599,7 +599,8 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
|
|
|
599
599
|
}, i);
|
|
600
600
|
}),
|
|
601
601
|
/* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
602
|
-
|
|
602
|
+
type: "button",
|
|
603
|
+
class: "lum-btn rounded-sm h-[1.6rem] w-[1.6rem] p-0.5",
|
|
603
604
|
onClick$: async () => {
|
|
604
605
|
const color = `#${Math.floor(Math.random() * 16777215).toString(16)}`;
|
|
605
606
|
await setColor(color);
|
|
@@ -633,6 +634,7 @@ const ChevronDown = qwik.component$(({ size, ...props }) => {
|
|
|
633
634
|
});
|
|
634
635
|
const Dropdown = qwik.component$(({ class: Class, hover, opened, ...props }) => {
|
|
635
636
|
return /* @__PURE__ */ jsxRuntime.jsxs("button", {
|
|
637
|
+
type: "button",
|
|
636
638
|
class: {
|
|
637
639
|
"lum-btn": true,
|
|
638
640
|
...Class
|
|
@@ -739,13 +741,14 @@ const SelectMenuRaw = qwik.component$(({ id, values, class: Class, customDropdow
|
|
|
739
741
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
740
742
|
id: `lui-${id}-opts`,
|
|
741
743
|
class: {
|
|
742
|
-
"lum-bg-gray-800 lum-scroll flex max-h-72 flex-col gap-1 overflow-auto rounded-
|
|
744
|
+
"lum-bg-gray-800 lum-scroll flex max-h-72 flex-col gap-1 overflow-auto rounded-lum border p-1 backdrop-blur-xl select-none motion-safe:transition-all": true
|
|
743
745
|
},
|
|
744
746
|
children: [
|
|
745
747
|
values?.map(({ name, value }, i) => {
|
|
746
748
|
return /* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
749
|
+
type: "button",
|
|
747
750
|
class: {
|
|
748
|
-
"lum-btn lum-bg-transparent": true
|
|
751
|
+
"lum-btn lum-bg-transparent rounded-lum-1": true
|
|
749
752
|
},
|
|
750
753
|
onClick$: () => {
|
|
751
754
|
store.opened = false;
|
|
@@ -811,12 +814,12 @@ const Nav = qwik.component$(({ fixed, floating, nohamburger, colorClass = "lum-b
|
|
|
811
814
|
"mt-2": menu.value,
|
|
812
815
|
"pointer-events-none opacity-0": !menu.value,
|
|
813
816
|
"before:backdrop-blur-lg": !colorClass.includes("transparent"),
|
|
814
|
-
'before:absolute before:-z-10 before:h-full before:w-full before:rounded-
|
|
817
|
+
'before:absolute before:-z-10 before:h-full before:w-full before:rounded-lum before:drop-shadow-xl before:content-[""]': true
|
|
815
818
|
},
|
|
816
819
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
817
820
|
class: {
|
|
818
821
|
[colorClass]: true,
|
|
819
|
-
"flex w-full max-w-7xl flex-col gap-2 rounded-
|
|
822
|
+
"flex w-full max-w-7xl flex-col gap-2 rounded-lum border px-2 py-4 motion-safe:transition-all": true
|
|
820
823
|
},
|
|
821
824
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
|
|
822
825
|
name: "mobile"
|
|
@@ -835,9 +838,9 @@ const Nav = qwik.component$(({ fixed, floating, nohamburger, colorClass = "lum-b
|
|
|
835
838
|
class: {
|
|
836
839
|
"mx-auto flex w-full max-w-7xl justify-evenly px-2": true,
|
|
837
840
|
[colorClass]: floating,
|
|
838
|
-
"rounded-
|
|
841
|
+
"rounded-lum border": floating,
|
|
839
842
|
"before:backdrop-blur-lg": !colorClass.includes("transparent") && floating,
|
|
840
|
-
'before:absolute before:-z-10 before:h-full before:w-full before:max-w-7xl before:rounded-
|
|
843
|
+
'before:absolute before:-z-10 before:h-full before:w-full before:max-w-7xl before:rounded-lum before:drop-shadow-xl before:content-[""]': floating
|
|
841
844
|
},
|
|
842
845
|
children: [
|
|
843
846
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
@@ -947,6 +950,7 @@ const NumberInputRaw = qwik.component$(({ input, onDecrement$, onIncrement$, val
|
|
|
947
950
|
},
|
|
948
951
|
children: [
|
|
949
952
|
/* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
953
|
+
type: "button",
|
|
950
954
|
class: {
|
|
951
955
|
"lum-btn p-2": true
|
|
952
956
|
},
|
|
@@ -973,6 +977,7 @@ const NumberInputRaw = qwik.component$(({ input, onDecrement$, onIncrement$, val
|
|
|
973
977
|
}
|
|
974
978
|
}),
|
|
975
979
|
/* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
980
|
+
type: "button",
|
|
976
981
|
class: {
|
|
977
982
|
"lum-btn p-2": true
|
|
978
983
|
},
|
|
@@ -1209,7 +1214,7 @@ const Toggle = qwik.component$(({ checkbox, round, center, label, onColor = "blu
|
|
|
1209
1214
|
class: {
|
|
1210
1215
|
"peer h-7 border duration-300 ease-out hover:shadow-lg hover:duration-75 motion-safe:transition": true,
|
|
1211
1216
|
"after:absolute after:top-[4px] after:left-[4px] after:h-5 after:w-5 after:border after:duration-300 after:ease-out after:content-[''] after:hover:duration-75 after:motion-safe:transition-all": true,
|
|
1212
|
-
"rounded-
|
|
1217
|
+
"rounded-lum after:rounded-lum-1": !round,
|
|
1213
1218
|
"rounded-full after:rounded-full": round,
|
|
1214
1219
|
"w-12 peer-checked:after:translate-x-full": !checkbox,
|
|
1215
1220
|
"w-7 after:opacity-0 peer-checked:after:opacity-100": checkbox,
|
|
@@ -1229,6 +1234,16 @@ const Toggle = qwik.component$(({ checkbox, round, center, label, onColor = "blu
|
|
|
1229
1234
|
]
|
|
1230
1235
|
});
|
|
1231
1236
|
});
|
|
1237
|
+
const Hoverable = {
|
|
1238
|
+
onMouseMove$: (e, el) => {
|
|
1239
|
+
const mousex = e.clientX - el.getBoundingClientRect().left;
|
|
1240
|
+
const mousey = e.clientY - el.getBoundingClientRect().top;
|
|
1241
|
+
el.style.transform = `perspective(500px) rotateX(${(mousey / el.clientHeight - 0.5) * 10}deg) rotateY(${(mousex / el.clientWidth - 0.5) * 10}deg)`;
|
|
1242
|
+
},
|
|
1243
|
+
onMouseLeave$: (e, el) => {
|
|
1244
|
+
el.style.transform = "rotateX(0deg) rotateY(0deg)";
|
|
1245
|
+
}
|
|
1246
|
+
};
|
|
1232
1247
|
const LogoBirdflop = qwik.component$(({ confused, fillGradient, size, ...props }) => {
|
|
1233
1248
|
const gradientId = fillGradient?.join("-").replace("#", "");
|
|
1234
1249
|
return /* @__PURE__ */ jsxRuntime.jsxs("svg", {
|
|
@@ -1678,6 +1693,7 @@ exports.Anchor = Anchor;
|
|
|
1678
1693
|
exports.Blobs = Blobs;
|
|
1679
1694
|
exports.ColorPicker = ColorPicker;
|
|
1680
1695
|
exports.Dropdown = Dropdown;
|
|
1696
|
+
exports.Hoverable = Hoverable;
|
|
1681
1697
|
exports.LogoBirdflop = LogoBirdflop;
|
|
1682
1698
|
exports.LogoDiscord = LogoDiscord;
|
|
1683
1699
|
exports.LogoFabric = LogoFabric;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -482,8 +482,7 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
|
|
|
482
482
|
});
|
|
483
483
|
return /* @__PURE__ */ jsxs("div", {
|
|
484
484
|
class: {
|
|
485
|
-
"lum-
|
|
486
|
-
flex: true,
|
|
485
|
+
"lum-card touch-none p-4 motion-safe:transition-all": true,
|
|
487
486
|
"flex-col": !horizontal,
|
|
488
487
|
...props.class
|
|
489
488
|
},
|
|
@@ -507,11 +506,11 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
|
|
|
507
506
|
"preventdefault:touchstart": true,
|
|
508
507
|
children: [
|
|
509
508
|
/* @__PURE__ */ jsx("div", {
|
|
510
|
-
class: "h-[150px] w-[125px] rounded-
|
|
509
|
+
class: "h-[150px] w-[125px] rounded-md border border-gray-700 bg-gradient-to-b from-transparent to-black"
|
|
511
510
|
}),
|
|
512
511
|
/* @__PURE__ */ jsx("div", {
|
|
513
512
|
class: {
|
|
514
|
-
"absolute -top-2 -left-2 h-4 w-4 rounded-
|
|
513
|
+
"absolute -top-2 -left-2 h-4 w-4 rounded-md border bg-white": true,
|
|
515
514
|
"border-white": getBrightness(hexNumberToRgb(hexStringToNumber(store.value))) < 0.5,
|
|
516
515
|
"border-black": getBrightness(hexNumberToRgb(hexStringToNumber(store.value))) > 0.5
|
|
517
516
|
},
|
|
@@ -532,7 +531,7 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
|
|
|
532
531
|
"preventdefault:mousedown": true,
|
|
533
532
|
"preventdefault:touchstart": true,
|
|
534
533
|
children: /* @__PURE__ */ jsx("div", {
|
|
535
|
-
class: "absolute -bottom-2 -left-[5px] h-4 w-4 rounded-
|
|
534
|
+
class: "absolute -bottom-2 -left-[5px] h-4 w-4 rounded-md border border-white bg-[#ff0000]",
|
|
536
535
|
style: {
|
|
537
536
|
transform: `translateY(${-store.hue.position}px)`,
|
|
538
537
|
background: store.hue.color
|
|
@@ -555,11 +554,11 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
|
|
|
555
554
|
children: [
|
|
556
555
|
preview != "full" && /* @__PURE__ */ jsx("div", {
|
|
557
556
|
class: {
|
|
558
|
-
"border border-gray-700": true,
|
|
559
|
-
"aspect-square h-full
|
|
557
|
+
"border border-gray-700 rounded-sm": true,
|
|
558
|
+
"aspect-square h-full": preview == "left" || preview == "right",
|
|
560
559
|
"h-3 w-full": preview == "top" || preview == "bottom",
|
|
561
|
-
"rounded-
|
|
562
|
-
"rounded-
|
|
560
|
+
"rounded-b-none": preview == "top",
|
|
561
|
+
"rounded-t-none": preview == "bottom"
|
|
563
562
|
},
|
|
564
563
|
style: {
|
|
565
564
|
backgroundColor: `${store.value}`
|
|
@@ -567,7 +566,7 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
|
|
|
567
566
|
}),
|
|
568
567
|
/* @__PURE__ */ jsx("input", {
|
|
569
568
|
class: {
|
|
570
|
-
"lum-input w-full p-1 text-xs": true,
|
|
569
|
+
"lum-input w-full p-1 text-xs rounded-sm": true,
|
|
571
570
|
"rounded-t-none border-t-0": preview == "top",
|
|
572
571
|
"rounded-b-none border-b-0": preview == "bottom"
|
|
573
572
|
},
|
|
@@ -584,8 +583,9 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
|
|
|
584
583
|
}),
|
|
585
584
|
colors.map((color, i) => {
|
|
586
585
|
return /* @__PURE__ */ jsx("button", {
|
|
586
|
+
type: "button",
|
|
587
587
|
class: {
|
|
588
|
-
"lum-btn h-[1.6rem] w-[1.6rem] border-2 border-white/30 p-0 hover:border-white": true
|
|
588
|
+
"lum-btn rounded-sm h-[1.6rem] w-[1.6rem] border-2 border-white/30 p-0 hover:border-white": true
|
|
589
589
|
},
|
|
590
590
|
style: {
|
|
591
591
|
background: color,
|
|
@@ -597,7 +597,8 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
|
|
|
597
597
|
}, i);
|
|
598
598
|
}),
|
|
599
599
|
/* @__PURE__ */ jsx("button", {
|
|
600
|
-
|
|
600
|
+
type: "button",
|
|
601
|
+
class: "lum-btn rounded-sm h-[1.6rem] w-[1.6rem] p-0.5",
|
|
601
602
|
onClick$: async () => {
|
|
602
603
|
const color = `#${Math.floor(Math.random() * 16777215).toString(16)}`;
|
|
603
604
|
await setColor(color);
|
|
@@ -631,6 +632,7 @@ const ChevronDown = component$(({ size, ...props }) => {
|
|
|
631
632
|
});
|
|
632
633
|
const Dropdown = component$(({ class: Class, hover, opened, ...props }) => {
|
|
633
634
|
return /* @__PURE__ */ jsxs("button", {
|
|
635
|
+
type: "button",
|
|
634
636
|
class: {
|
|
635
637
|
"lum-btn": true,
|
|
636
638
|
...Class
|
|
@@ -737,13 +739,14 @@ const SelectMenuRaw = component$(({ id, values, class: Class, customDropdown, ho
|
|
|
737
739
|
children: /* @__PURE__ */ jsxs("div", {
|
|
738
740
|
id: `lui-${id}-opts`,
|
|
739
741
|
class: {
|
|
740
|
-
"lum-bg-gray-800 lum-scroll flex max-h-72 flex-col gap-1 overflow-auto rounded-
|
|
742
|
+
"lum-bg-gray-800 lum-scroll flex max-h-72 flex-col gap-1 overflow-auto rounded-lum border p-1 backdrop-blur-xl select-none motion-safe:transition-all": true
|
|
741
743
|
},
|
|
742
744
|
children: [
|
|
743
745
|
values?.map(({ name, value }, i) => {
|
|
744
746
|
return /* @__PURE__ */ jsx("button", {
|
|
747
|
+
type: "button",
|
|
745
748
|
class: {
|
|
746
|
-
"lum-btn lum-bg-transparent": true
|
|
749
|
+
"lum-btn lum-bg-transparent rounded-lum-1": true
|
|
747
750
|
},
|
|
748
751
|
onClick$: () => {
|
|
749
752
|
store.opened = false;
|
|
@@ -809,12 +812,12 @@ const Nav = component$(({ fixed, floating, nohamburger, colorClass = "lum-bg-gra
|
|
|
809
812
|
"mt-2": menu.value,
|
|
810
813
|
"pointer-events-none opacity-0": !menu.value,
|
|
811
814
|
"before:backdrop-blur-lg": !colorClass.includes("transparent"),
|
|
812
|
-
'before:absolute before:-z-10 before:h-full before:w-full before:rounded-
|
|
815
|
+
'before:absolute before:-z-10 before:h-full before:w-full before:rounded-lum before:drop-shadow-xl before:content-[""]': true
|
|
813
816
|
},
|
|
814
817
|
children: /* @__PURE__ */ jsx("div", {
|
|
815
818
|
class: {
|
|
816
819
|
[colorClass]: true,
|
|
817
|
-
"flex w-full max-w-7xl flex-col gap-2 rounded-
|
|
820
|
+
"flex w-full max-w-7xl flex-col gap-2 rounded-lum border px-2 py-4 motion-safe:transition-all": true
|
|
818
821
|
},
|
|
819
822
|
children: /* @__PURE__ */ jsx(Slot, {
|
|
820
823
|
name: "mobile"
|
|
@@ -833,9 +836,9 @@ const Nav = component$(({ fixed, floating, nohamburger, colorClass = "lum-bg-gra
|
|
|
833
836
|
class: {
|
|
834
837
|
"mx-auto flex w-full max-w-7xl justify-evenly px-2": true,
|
|
835
838
|
[colorClass]: floating,
|
|
836
|
-
"rounded-
|
|
839
|
+
"rounded-lum border": floating,
|
|
837
840
|
"before:backdrop-blur-lg": !colorClass.includes("transparent") && floating,
|
|
838
|
-
'before:absolute before:-z-10 before:h-full before:w-full before:max-w-7xl before:rounded-
|
|
841
|
+
'before:absolute before:-z-10 before:h-full before:w-full before:max-w-7xl before:rounded-lum before:drop-shadow-xl before:content-[""]': floating
|
|
839
842
|
},
|
|
840
843
|
children: [
|
|
841
844
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -945,6 +948,7 @@ const NumberInputRaw = component$(({ input, onDecrement$, onIncrement$, value =
|
|
|
945
948
|
},
|
|
946
949
|
children: [
|
|
947
950
|
/* @__PURE__ */ jsx("button", {
|
|
951
|
+
type: "button",
|
|
948
952
|
class: {
|
|
949
953
|
"lum-btn p-2": true
|
|
950
954
|
},
|
|
@@ -971,6 +975,7 @@ const NumberInputRaw = component$(({ input, onDecrement$, onIncrement$, value =
|
|
|
971
975
|
}
|
|
972
976
|
}),
|
|
973
977
|
/* @__PURE__ */ jsx("button", {
|
|
978
|
+
type: "button",
|
|
974
979
|
class: {
|
|
975
980
|
"lum-btn p-2": true
|
|
976
981
|
},
|
|
@@ -1207,7 +1212,7 @@ const Toggle = component$(({ checkbox, round, center, label, onColor = "blue", o
|
|
|
1207
1212
|
class: {
|
|
1208
1213
|
"peer h-7 border duration-300 ease-out hover:shadow-lg hover:duration-75 motion-safe:transition": true,
|
|
1209
1214
|
"after:absolute after:top-[4px] after:left-[4px] after:h-5 after:w-5 after:border after:duration-300 after:ease-out after:content-[''] after:hover:duration-75 after:motion-safe:transition-all": true,
|
|
1210
|
-
"rounded-
|
|
1215
|
+
"rounded-lum after:rounded-lum-1": !round,
|
|
1211
1216
|
"rounded-full after:rounded-full": round,
|
|
1212
1217
|
"w-12 peer-checked:after:translate-x-full": !checkbox,
|
|
1213
1218
|
"w-7 after:opacity-0 peer-checked:after:opacity-100": checkbox,
|
|
@@ -1227,6 +1232,16 @@ const Toggle = component$(({ checkbox, round, center, label, onColor = "blue", o
|
|
|
1227
1232
|
]
|
|
1228
1233
|
});
|
|
1229
1234
|
});
|
|
1235
|
+
const Hoverable = {
|
|
1236
|
+
onMouseMove$: (e, el) => {
|
|
1237
|
+
const mousex = e.clientX - el.getBoundingClientRect().left;
|
|
1238
|
+
const mousey = e.clientY - el.getBoundingClientRect().top;
|
|
1239
|
+
el.style.transform = `perspective(500px) rotateX(${(mousey / el.clientHeight - 0.5) * 10}deg) rotateY(${(mousex / el.clientWidth - 0.5) * 10}deg)`;
|
|
1240
|
+
},
|
|
1241
|
+
onMouseLeave$: (e, el) => {
|
|
1242
|
+
el.style.transform = "rotateX(0deg) rotateY(0deg)";
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1230
1245
|
const LogoBirdflop = component$(({ confused, fillGradient, size, ...props }) => {
|
|
1231
1246
|
const gradientId = fillGradient?.join("-").replace("#", "");
|
|
1232
1247
|
return /* @__PURE__ */ jsxs("svg", {
|
|
@@ -1677,6 +1692,7 @@ export {
|
|
|
1677
1692
|
Blobs,
|
|
1678
1693
|
ColorPicker,
|
|
1679
1694
|
Dropdown,
|
|
1695
|
+
Hoverable,
|
|
1680
1696
|
LogoBirdflop,
|
|
1681
1697
|
LogoDiscord,
|
|
1682
1698
|
LogoFabric,
|
package/lib-types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui-qwik",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-0",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vite-tsconfig-paths": "^5.1.4"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@luminescent/ui": "
|
|
55
|
+
"@luminescent/ui": "4.0.0-0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "qwik build",
|