@luminescent/ui 0.5.1 → 0.6.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
CHANGED
|
@@ -59,30 +59,27 @@ const ButtonAnchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
59
59
|
}, null, 0, "7H_3");
|
|
60
60
|
}, "ButtonAnchor_component_vQT9xS0lqew"));
|
|
61
61
|
const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
stroke: "currentColor",
|
|
73
|
-
"stroke-width": "4"
|
|
74
|
-
}, null, 3, null),
|
|
75
|
-
/* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
76
|
-
class: "opacity-75",
|
|
77
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",
|
|
78
|
-
fill: "currentColor"
|
|
79
|
-
}, null, 3, null)
|
|
80
|
-
]
|
|
62
|
+
const props1 = qwik._restProps(props, [
|
|
63
|
+
"width",
|
|
64
|
+
"speed"
|
|
65
|
+
]);
|
|
66
|
+
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
67
|
+
...props1,
|
|
68
|
+
class: {
|
|
69
|
+
"animate-spin rounded-full border-transparent border-l-current border-t-current": true,
|
|
70
|
+
...props1.class
|
|
71
|
+
}
|
|
81
72
|
}, {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
style: qwik._fnSignal((p0) => ({
|
|
74
|
+
borderWidth: p0.width / 8,
|
|
75
|
+
width: p0.width,
|
|
76
|
+
height: p0.width,
|
|
77
|
+
animation: `spin ${p0.speed ?? "0.6s"} ease-in-out infinite`
|
|
78
|
+
}), [
|
|
79
|
+
props
|
|
80
|
+
], '{borderWidth:p0.width/8,width:p0.width,height:p0.width,animation:`spin ${p0.speed??"0.6s"} ease-in-out infinite`}')
|
|
81
|
+
}, 0, "1A_0");
|
|
82
|
+
}, "LoadingIcon_component_QMsA9D0RcAM"));
|
|
86
83
|
const cardColorClasses = {
|
|
87
84
|
pink: {
|
|
88
85
|
card: {
|
|
@@ -337,12 +334,8 @@ const CardHeader = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
337
334
|
props
|
|
338
335
|
], '{"transition-all":true,"opacity-0":!(p0.loading??false),"opacity-100":p0.loading??false}')
|
|
339
336
|
}, /* @__PURE__ */ qwik._jsxC(LoadingIcon, {
|
|
340
|
-
|
|
341
|
-
"text-white": true
|
|
342
|
-
},
|
|
343
|
-
width: 20,
|
|
337
|
+
width: 24,
|
|
344
338
|
[qwik._IMMUTABLE]: {
|
|
345
|
-
class: qwik._IMMUTABLE,
|
|
346
339
|
width: qwik._IMMUTABLE
|
|
347
340
|
}
|
|
348
341
|
}, 3, "OW_7"), 1, "OW_8")
|
|
@@ -927,7 +920,7 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
927
920
|
top: -7px;
|
|
928
921
|
left: -7px;
|
|
929
922
|
box-sizing: border-box;
|
|
930
|
-
|
|
923
|
+
}
|
|
931
924
|
|
|
932
925
|
.color-picker-hue {
|
|
933
926
|
width: 8px;
|
|
@@ -971,9 +964,6 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
971
964
|
box-sizing: border-box;
|
|
972
965
|
}
|
|
973
966
|
`, "ColorInput_component_useStyles_SMNFl4Oy0IA"));
|
|
974
|
-
const store = qwik.useStore({
|
|
975
|
-
value: (props.value ?? "#000000") || "#FFFFFF"
|
|
976
|
-
});
|
|
977
967
|
return /* @__PURE__ */ qwik._jsxQ("div", null, null, [
|
|
978
968
|
/* @__PURE__ */ qwik._jsxQ("label", {
|
|
979
969
|
for: qwik._wrapSignal(props1, "id")
|
|
@@ -983,7 +973,7 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
983
973
|
/* @__PURE__ */ qwik._jsxC(TextInputRaw, {
|
|
984
974
|
...props1,
|
|
985
975
|
get value() {
|
|
986
|
-
return
|
|
976
|
+
return props.value ?? "#000000";
|
|
987
977
|
},
|
|
988
978
|
onBlur$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
989
979
|
const [props12] = qwik.useLexicalScope();
|
|
@@ -993,51 +983,64 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
993
983
|
props1
|
|
994
984
|
]),
|
|
995
985
|
onFocus$: /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
996
|
-
const [props12, props2
|
|
986
|
+
const [props12, props2] = qwik.useLexicalScope();
|
|
997
987
|
const pickerDiv = document.getElementById(`${props12.id}-color-picker`);
|
|
998
988
|
if (!pickerDiv.children.length) {
|
|
999
989
|
if (build.isServer)
|
|
1000
990
|
return;
|
|
1001
991
|
const picker = new ColorPicker({
|
|
1002
992
|
el: pickerDiv,
|
|
1003
|
-
color:
|
|
993
|
+
color: props2.value ?? "#000000",
|
|
1004
994
|
colors: props2.presetColors,
|
|
1005
995
|
width: 150,
|
|
1006
996
|
height: 150
|
|
1007
997
|
});
|
|
1008
998
|
picker.onChange((color) => {
|
|
1009
|
-
|
|
999
|
+
element.value = color;
|
|
1000
|
+
switch (props2.preview ?? "left") {
|
|
1001
|
+
case "full":
|
|
1002
|
+
element.style.backgroundColor = color;
|
|
1003
|
+
element.style.color = getBrightness(hexNumberToRgb(hexStringToNumber(color))) > 0.5 ? "black" : "white";
|
|
1004
|
+
break;
|
|
1005
|
+
case "left":
|
|
1006
|
+
element.style.borderLeft = `40px solid ${color}`;
|
|
1007
|
+
break;
|
|
1008
|
+
case "right":
|
|
1009
|
+
element.style.borderRight = `40px solid ${color}`;
|
|
1010
|
+
break;
|
|
1011
|
+
case "top":
|
|
1012
|
+
element.style.borderTop = `10px solid ${color}`;
|
|
1013
|
+
break;
|
|
1014
|
+
case "bottom":
|
|
1015
|
+
element.style.borderBottom = `10px solid ${color}`;
|
|
1016
|
+
break;
|
|
1017
|
+
}
|
|
1010
1018
|
if (props2.onInput$)
|
|
1011
1019
|
props2.onInput$(color, element);
|
|
1012
1020
|
});
|
|
1013
|
-
element.addEventListener("input", () =>
|
|
1014
|
-
if (!/^#[0-9A-F]{6}$/i.test(element.value))
|
|
1015
|
-
return;
|
|
1016
|
-
picker.setColor(element.value);
|
|
1017
|
-
});
|
|
1021
|
+
element.addEventListener("input", () => picker.setColor(element.value));
|
|
1018
1022
|
}
|
|
1019
1023
|
pickerDiv.classList.remove("opacity-0", "pointer-events-none", "scale-95");
|
|
1020
1024
|
}, "ColorInput_component_div_TextInputRaw_onFocus_9bHrhSeTgfI", [
|
|
1021
1025
|
props1,
|
|
1022
|
-
props
|
|
1023
|
-
store
|
|
1026
|
+
props
|
|
1024
1027
|
]),
|
|
1025
1028
|
style: (props.preview ?? "left") == "full" ? {
|
|
1026
|
-
backgroundColor: `${
|
|
1027
|
-
color: getBrightness(hexNumberToRgb(hexStringToNumber(
|
|
1029
|
+
backgroundColor: `${props.value ?? "#000000"}`,
|
|
1030
|
+
color: getBrightness(hexNumberToRgb(hexStringToNumber(props.value ?? "#000000"))) > 0.5 ? "black" : "white"
|
|
1028
1031
|
} : (props.preview ?? "left") == "left" ? {
|
|
1029
|
-
borderLeft: `40px solid ${
|
|
1032
|
+
borderLeft: `40px solid ${props.value ?? "#000000"}`
|
|
1030
1033
|
} : (props.preview ?? "left") == "right" ? {
|
|
1031
|
-
borderRight: `40px solid ${
|
|
1034
|
+
borderRight: `40px solid ${props.value ?? "#000000"}`
|
|
1032
1035
|
} : (props.preview ?? "left") == "top" ? {
|
|
1033
|
-
borderTop: `10px solid ${
|
|
1036
|
+
borderTop: `10px solid ${props.value ?? "#000000"}`
|
|
1034
1037
|
} : (props.preview ?? "left") == "bottom" ? {
|
|
1035
|
-
borderBottom: `10px solid ${
|
|
1038
|
+
borderBottom: `10px solid ${props.value ?? "#000000"}`
|
|
1036
1039
|
} : {},
|
|
1037
1040
|
[qwik._IMMUTABLE]: {
|
|
1038
|
-
value: qwik._fnSignal((p0) => p0.value, [
|
|
1039
|
-
|
|
1040
|
-
],
|
|
1041
|
+
value: qwik._fnSignal((p0) => p0.value ?? "#000000", [
|
|
1042
|
+
props
|
|
1043
|
+
], 'p0.value??"#000000"')
|
|
1041
1044
|
}
|
|
1042
1045
|
}, 0, "0s_1"),
|
|
1043
1046
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
@@ -1294,12 +1297,13 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1294
1297
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1295
1298
|
children: [
|
|
1296
1299
|
/* @__PURE__ */ qwik._jsxQ("span", null, {
|
|
1300
|
+
class: "flex-1 text-left",
|
|
1297
1301
|
id: qwik._fnSignal((p0) => `lui-${p0.id}-name`, [
|
|
1298
1302
|
props
|
|
1299
1303
|
], "`lui-${p0.id}-name`")
|
|
1300
1304
|
}, props.values.find((value) => value.value.toString() === props1.value)?.name ?? props.values[0].name, 1, null),
|
|
1301
1305
|
/* @__PURE__ */ qwik._jsxC(ChevronDown, {
|
|
1302
|
-
width:
|
|
1306
|
+
width: 16,
|
|
1303
1307
|
get class() {
|
|
1304
1308
|
return {
|
|
1305
1309
|
"transition-all duration-200": true,
|
|
@@ -1318,6 +1322,7 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1318
1322
|
}, 3, "cA_3")
|
|
1319
1323
|
],
|
|
1320
1324
|
class: {
|
|
1325
|
+
"flex": true,
|
|
1321
1326
|
...props1.class
|
|
1322
1327
|
},
|
|
1323
1328
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
@@ -1332,7 +1337,7 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1332
1337
|
}, 1, "cA_4"),
|
|
1333
1338
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
1334
1339
|
class: {
|
|
1335
|
-
"transition-all absolute top-full p-1 mt-2 gap-1
|
|
1340
|
+
"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 overflow-scroll select-none": true,
|
|
1336
1341
|
"pointer-events-none opacity-0 scale-95": !store.opened
|
|
1337
1342
|
}
|
|
1338
1343
|
}, {
|
|
@@ -1489,6 +1494,7 @@ const LogoBirdflop = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
1489
1494
|
/* @__PURE__ */ qwik._jsxQ("g", null, {
|
|
1490
1495
|
"clip-path": "url(#clip-bf_3)",
|
|
1491
1496
|
"data-name": "bf - 3",
|
|
1497
|
+
fill: "currentColor",
|
|
1492
1498
|
id: "bf_3"
|
|
1493
1499
|
}, /* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
1494
1500
|
d: "M-1886.608-89.36c-8.311-65.774-27.64-219.008-27.64-221.333a.279.279,0,0,1,.09-.159q-.474-4.88-.477-9.885A101.066,101.066,0,0,1-1813.61-421.844a100.671,100.671,0,0,1,71.913,30.1l.093-.042c-.077-.093-8.783-10.549-22.7-24.758-8.216-8.388-16.645-16.459-25.052-23.993-10.51-9.417-21.018-18.013-31.23-25.552a120.5,120.5,0,0,0-40.468-71.567,119.916,119.916,0,0,0-77.984-28.881c-66.215,0-120.083,53.941-120.083,120.244h-.237v116.01h-.24c-.131,132.971-107.6,240.728-240.16,240.728V-330.289H-2300V-449.818h.362V-931.536h0V-1170c132.71,0,240.293,106.764,240.293,238.464v145.112a358.089,358.089,0,0,1,47.7-13.28,362.475,362.475,0,0,1,72.6-7.329,362.455,362.455,0,0,1,72.6,7.329,358.112,358.112,0,0,1,67.622,21.02,360.042,360.042,0,0,1,61.191,33.26,362.833,362.833,0,0,1,53.315,44.049,363.178,363.178,0,0,1,43.99,53.387,360.83,360.83,0,0,1,33.213,61.276A359.3,359.3,0,0,1-1586.118-519a363.948,363.948,0,0,1,7.317,72.7,363.957,363.957,0,0,1-7.317,72.7,359.333,359.333,0,0,1-20.992,67.714,360.95,360.95,0,0,1-33.213,61.277,363.233,363.233,0,0,1-43.99,53.388,362.833,362.833,0,0,1-53.315,44.049,360.017,360.017,0,0,1-61.191,33.259,358.108,358.108,0,0,1-67.622,21.02c-6.636,1.36-13.421,2.548-20.165,3.532Zm-79.831-365.056a27.049,27.049,0,0,1,27.038-27.059,27.048,27.048,0,0,1,27.037,27.059,27.049,27.049,0,0,1-27.037,27.06A27.05,27.05,0,0,1-1966.439-454.416Z",
|
|
@@ -1533,6 +1539,7 @@ const LogoDiscord = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1533
1539
|
d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"
|
|
1534
1540
|
}, null, 3, null)
|
|
1535
1541
|
}, {
|
|
1542
|
+
fill: "currentColor",
|
|
1536
1543
|
height: qwik._fnSignal((p0) => p0.width, [
|
|
1537
1544
|
props
|
|
1538
1545
|
], "p0.width"),
|
|
@@ -1608,12 +1615,13 @@ const LogoLuminescent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
1608
1615
|
d: "M 119.476562 -167.570312 C 90.671875 -133.253906 37.820312 -144.527344 30.308594 -109.710938 C 26.550781 -92.175781 39.074219 -75.644531 62.367188 -76.394531 C 67.878906 -77.398438 69.882812 -87.917969 66.628906 -90.671875 C 56.859375 -92.675781 55.855469 -99.691406 57.609375 -107.453125 C 62.117188 -125.988281 93.929688 -123.734375 113.96875 -147.28125 C 103.949219 -115.21875 96.933594 -78.902344 83.910156 -43.582031 C 59.363281 -58.863281 23.796875 -50.847656 21.542969 -27.050781 C 19.285156 -8.765625 32.8125 3.257812 55.355469 2.253906 C 72.386719 1.753906 80.902344 -4.007812 89.921875 -12.023438 C 112.464844 15.277344 138.261719 52.097656 181.347656 37.570312 C 188.609375 30.558594 183.347656 14.777344 177.085938 15.277344 C 147.28125 25.546875 132 1.253906 104.699219 -28.054688 C 119.476562 -56.105469 134.003906 -124.738281 148.53125 -167.320312 C 147.53125 -173.582031 124.488281 -177.339844 119.476562 -167.570312 Z M 46.339844 -28.804688 C 50.347656 -38.324219 68.128906 -36.570312 77.148438 -27.550781 C 72.890625 -20.789062 66.628906 -15.027344 57.359375 -15.027344 C 46.085938 -15.027344 43.332031 -22.792969 46.339844 -28.804688 Z M 46.339844 -28.804688 "
|
|
1609
1616
|
}, null, 3, null), 3, null), 3, null)
|
|
1610
1617
|
}, {
|
|
1618
|
+
fill: "currentColor",
|
|
1611
1619
|
height: qwik._fnSignal((p0) => p0.width, [
|
|
1612
1620
|
props
|
|
1613
1621
|
], "p0.width"),
|
|
1614
1622
|
preserveAspectRatio: "xMidYMid meet",
|
|
1615
1623
|
version: "1.0",
|
|
1616
|
-
viewBox: "
|
|
1624
|
+
viewBox: "80 80 220 220",
|
|
1617
1625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1618
1626
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1619
1627
|
zoomAndPan: "magnify"
|
|
@@ -1702,9 +1710,10 @@ const LogoLuminescentFull = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qw
|
|
|
1702
1710
|
}, null, 3, null), 3, null), 3, null)
|
|
1703
1711
|
]
|
|
1704
1712
|
}, {
|
|
1713
|
+
fill: "currentColor",
|
|
1705
1714
|
preserveAspectRatio: "xMidYMid meet",
|
|
1706
1715
|
version: "1.0",
|
|
1707
|
-
viewBox: "
|
|
1716
|
+
viewBox: "30 60 1160 200",
|
|
1708
1717
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1709
1718
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1710
1719
|
zoomAndPan: "magnify"
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, _jsxBranch, _IMMUTABLE, useStylesQrl,
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, _jsxBranch, _IMMUTABLE, useStylesQrl, _wrapSignal, useLexicalScope, useStore } from "@builder.io/qwik";
|
|
2
2
|
import { isServer } from "@builder.io/qwik/build";
|
|
3
3
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
4
4
|
const Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => /* @__PURE__ */ _jsxQ("span", null, {
|
|
@@ -57,30 +57,27 @@ const ButtonAnchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
57
57
|
}, null, 0, "7H_3");
|
|
58
58
|
}, "ButtonAnchor_component_vQT9xS0lqew"));
|
|
59
59
|
const LoadingIcon = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
stroke: "currentColor",
|
|
71
|
-
"stroke-width": "4"
|
|
72
|
-
}, null, 3, null),
|
|
73
|
-
/* @__PURE__ */ _jsxQ("path", null, {
|
|
74
|
-
class: "opacity-75",
|
|
75
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",
|
|
76
|
-
fill: "currentColor"
|
|
77
|
-
}, null, 3, null)
|
|
78
|
-
]
|
|
60
|
+
const props1 = _restProps(props, [
|
|
61
|
+
"width",
|
|
62
|
+
"speed"
|
|
63
|
+
]);
|
|
64
|
+
return /* @__PURE__ */ _jsxS("div", {
|
|
65
|
+
...props1,
|
|
66
|
+
class: {
|
|
67
|
+
"animate-spin rounded-full border-transparent border-l-current border-t-current": true,
|
|
68
|
+
...props1.class
|
|
69
|
+
}
|
|
79
70
|
}, {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
style: _fnSignal((p0) => ({
|
|
72
|
+
borderWidth: p0.width / 8,
|
|
73
|
+
width: p0.width,
|
|
74
|
+
height: p0.width,
|
|
75
|
+
animation: `spin ${p0.speed ?? "0.6s"} ease-in-out infinite`
|
|
76
|
+
}), [
|
|
77
|
+
props
|
|
78
|
+
], '{borderWidth:p0.width/8,width:p0.width,height:p0.width,animation:`spin ${p0.speed??"0.6s"} ease-in-out infinite`}')
|
|
79
|
+
}, 0, "1A_0");
|
|
80
|
+
}, "LoadingIcon_component_QMsA9D0RcAM"));
|
|
84
81
|
const cardColorClasses = {
|
|
85
82
|
pink: {
|
|
86
83
|
card: {
|
|
@@ -335,12 +332,8 @@ const CardHeader = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
335
332
|
props
|
|
336
333
|
], '{"transition-all":true,"opacity-0":!(p0.loading??false),"opacity-100":p0.loading??false}')
|
|
337
334
|
}, /* @__PURE__ */ _jsxC(LoadingIcon, {
|
|
338
|
-
|
|
339
|
-
"text-white": true
|
|
340
|
-
},
|
|
341
|
-
width: 20,
|
|
335
|
+
width: 24,
|
|
342
336
|
[_IMMUTABLE]: {
|
|
343
|
-
class: _IMMUTABLE,
|
|
344
337
|
width: _IMMUTABLE
|
|
345
338
|
}
|
|
346
339
|
}, 3, "OW_7"), 1, "OW_8")
|
|
@@ -925,7 +918,7 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
925
918
|
top: -7px;
|
|
926
919
|
left: -7px;
|
|
927
920
|
box-sizing: border-box;
|
|
928
|
-
|
|
921
|
+
}
|
|
929
922
|
|
|
930
923
|
.color-picker-hue {
|
|
931
924
|
width: 8px;
|
|
@@ -969,9 +962,6 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
969
962
|
box-sizing: border-box;
|
|
970
963
|
}
|
|
971
964
|
`, "ColorInput_component_useStyles_SMNFl4Oy0IA"));
|
|
972
|
-
const store = useStore({
|
|
973
|
-
value: (props.value ?? "#000000") || "#FFFFFF"
|
|
974
|
-
});
|
|
975
965
|
return /* @__PURE__ */ _jsxQ("div", null, null, [
|
|
976
966
|
/* @__PURE__ */ _jsxQ("label", {
|
|
977
967
|
for: _wrapSignal(props1, "id")
|
|
@@ -981,7 +971,7 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
981
971
|
/* @__PURE__ */ _jsxC(TextInputRaw, {
|
|
982
972
|
...props1,
|
|
983
973
|
get value() {
|
|
984
|
-
return
|
|
974
|
+
return props.value ?? "#000000";
|
|
985
975
|
},
|
|
986
976
|
onBlur$: /* @__PURE__ */ inlinedQrl(() => {
|
|
987
977
|
const [props12] = useLexicalScope();
|
|
@@ -991,51 +981,64 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
991
981
|
props1
|
|
992
982
|
]),
|
|
993
983
|
onFocus$: /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
994
|
-
const [props12, props2
|
|
984
|
+
const [props12, props2] = useLexicalScope();
|
|
995
985
|
const pickerDiv = document.getElementById(`${props12.id}-color-picker`);
|
|
996
986
|
if (!pickerDiv.children.length) {
|
|
997
987
|
if (isServer)
|
|
998
988
|
return;
|
|
999
989
|
const picker = new ColorPicker({
|
|
1000
990
|
el: pickerDiv,
|
|
1001
|
-
color:
|
|
991
|
+
color: props2.value ?? "#000000",
|
|
1002
992
|
colors: props2.presetColors,
|
|
1003
993
|
width: 150,
|
|
1004
994
|
height: 150
|
|
1005
995
|
});
|
|
1006
996
|
picker.onChange((color) => {
|
|
1007
|
-
|
|
997
|
+
element.value = color;
|
|
998
|
+
switch (props2.preview ?? "left") {
|
|
999
|
+
case "full":
|
|
1000
|
+
element.style.backgroundColor = color;
|
|
1001
|
+
element.style.color = getBrightness(hexNumberToRgb(hexStringToNumber(color))) > 0.5 ? "black" : "white";
|
|
1002
|
+
break;
|
|
1003
|
+
case "left":
|
|
1004
|
+
element.style.borderLeft = `40px solid ${color}`;
|
|
1005
|
+
break;
|
|
1006
|
+
case "right":
|
|
1007
|
+
element.style.borderRight = `40px solid ${color}`;
|
|
1008
|
+
break;
|
|
1009
|
+
case "top":
|
|
1010
|
+
element.style.borderTop = `10px solid ${color}`;
|
|
1011
|
+
break;
|
|
1012
|
+
case "bottom":
|
|
1013
|
+
element.style.borderBottom = `10px solid ${color}`;
|
|
1014
|
+
break;
|
|
1015
|
+
}
|
|
1008
1016
|
if (props2.onInput$)
|
|
1009
1017
|
props2.onInput$(color, element);
|
|
1010
1018
|
});
|
|
1011
|
-
element.addEventListener("input", () =>
|
|
1012
|
-
if (!/^#[0-9A-F]{6}$/i.test(element.value))
|
|
1013
|
-
return;
|
|
1014
|
-
picker.setColor(element.value);
|
|
1015
|
-
});
|
|
1019
|
+
element.addEventListener("input", () => picker.setColor(element.value));
|
|
1016
1020
|
}
|
|
1017
1021
|
pickerDiv.classList.remove("opacity-0", "pointer-events-none", "scale-95");
|
|
1018
1022
|
}, "ColorInput_component_div_TextInputRaw_onFocus_9bHrhSeTgfI", [
|
|
1019
1023
|
props1,
|
|
1020
|
-
props
|
|
1021
|
-
store
|
|
1024
|
+
props
|
|
1022
1025
|
]),
|
|
1023
1026
|
style: (props.preview ?? "left") == "full" ? {
|
|
1024
|
-
backgroundColor: `${
|
|
1025
|
-
color: getBrightness(hexNumberToRgb(hexStringToNumber(
|
|
1027
|
+
backgroundColor: `${props.value ?? "#000000"}`,
|
|
1028
|
+
color: getBrightness(hexNumberToRgb(hexStringToNumber(props.value ?? "#000000"))) > 0.5 ? "black" : "white"
|
|
1026
1029
|
} : (props.preview ?? "left") == "left" ? {
|
|
1027
|
-
borderLeft: `40px solid ${
|
|
1030
|
+
borderLeft: `40px solid ${props.value ?? "#000000"}`
|
|
1028
1031
|
} : (props.preview ?? "left") == "right" ? {
|
|
1029
|
-
borderRight: `40px solid ${
|
|
1032
|
+
borderRight: `40px solid ${props.value ?? "#000000"}`
|
|
1030
1033
|
} : (props.preview ?? "left") == "top" ? {
|
|
1031
|
-
borderTop: `10px solid ${
|
|
1034
|
+
borderTop: `10px solid ${props.value ?? "#000000"}`
|
|
1032
1035
|
} : (props.preview ?? "left") == "bottom" ? {
|
|
1033
|
-
borderBottom: `10px solid ${
|
|
1036
|
+
borderBottom: `10px solid ${props.value ?? "#000000"}`
|
|
1034
1037
|
} : {},
|
|
1035
1038
|
[_IMMUTABLE]: {
|
|
1036
|
-
value: _fnSignal((p0) => p0.value, [
|
|
1037
|
-
|
|
1038
|
-
],
|
|
1039
|
+
value: _fnSignal((p0) => p0.value ?? "#000000", [
|
|
1040
|
+
props
|
|
1041
|
+
], 'p0.value??"#000000"')
|
|
1039
1042
|
}
|
|
1040
1043
|
}, 0, "0s_1"),
|
|
1041
1044
|
/* @__PURE__ */ _jsxQ("div", {
|
|
@@ -1292,12 +1295,13 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1292
1295
|
/* @__PURE__ */ _jsxC(Button, {
|
|
1293
1296
|
children: [
|
|
1294
1297
|
/* @__PURE__ */ _jsxQ("span", null, {
|
|
1298
|
+
class: "flex-1 text-left",
|
|
1295
1299
|
id: _fnSignal((p0) => `lui-${p0.id}-name`, [
|
|
1296
1300
|
props
|
|
1297
1301
|
], "`lui-${p0.id}-name`")
|
|
1298
1302
|
}, props.values.find((value) => value.value.toString() === props1.value)?.name ?? props.values[0].name, 1, null),
|
|
1299
1303
|
/* @__PURE__ */ _jsxC(ChevronDown, {
|
|
1300
|
-
width:
|
|
1304
|
+
width: 16,
|
|
1301
1305
|
get class() {
|
|
1302
1306
|
return {
|
|
1303
1307
|
"transition-all duration-200": true,
|
|
@@ -1316,6 +1320,7 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1316
1320
|
}, 3, "cA_3")
|
|
1317
1321
|
],
|
|
1318
1322
|
class: {
|
|
1323
|
+
"flex": true,
|
|
1319
1324
|
...props1.class
|
|
1320
1325
|
},
|
|
1321
1326
|
onClick$: /* @__PURE__ */ inlinedQrl(() => {
|
|
@@ -1330,7 +1335,7 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1330
1335
|
}, 1, "cA_4"),
|
|
1331
1336
|
/* @__PURE__ */ _jsxQ("div", {
|
|
1332
1337
|
class: {
|
|
1333
|
-
"transition-all absolute top-full p-1 mt-2 gap-1
|
|
1338
|
+
"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 overflow-scroll select-none": true,
|
|
1334
1339
|
"pointer-events-none opacity-0 scale-95": !store.opened
|
|
1335
1340
|
}
|
|
1336
1341
|
}, {
|
|
@@ -1487,6 +1492,7 @@ const LogoBirdflop = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
1487
1492
|
/* @__PURE__ */ _jsxQ("g", null, {
|
|
1488
1493
|
"clip-path": "url(#clip-bf_3)",
|
|
1489
1494
|
"data-name": "bf - 3",
|
|
1495
|
+
fill: "currentColor",
|
|
1490
1496
|
id: "bf_3"
|
|
1491
1497
|
}, /* @__PURE__ */ _jsxQ("path", null, {
|
|
1492
1498
|
d: "M-1886.608-89.36c-8.311-65.774-27.64-219.008-27.64-221.333a.279.279,0,0,1,.09-.159q-.474-4.88-.477-9.885A101.066,101.066,0,0,1-1813.61-421.844a100.671,100.671,0,0,1,71.913,30.1l.093-.042c-.077-.093-8.783-10.549-22.7-24.758-8.216-8.388-16.645-16.459-25.052-23.993-10.51-9.417-21.018-18.013-31.23-25.552a120.5,120.5,0,0,0-40.468-71.567,119.916,119.916,0,0,0-77.984-28.881c-66.215,0-120.083,53.941-120.083,120.244h-.237v116.01h-.24c-.131,132.971-107.6,240.728-240.16,240.728V-330.289H-2300V-449.818h.362V-931.536h0V-1170c132.71,0,240.293,106.764,240.293,238.464v145.112a358.089,358.089,0,0,1,47.7-13.28,362.475,362.475,0,0,1,72.6-7.329,362.455,362.455,0,0,1,72.6,7.329,358.112,358.112,0,0,1,67.622,21.02,360.042,360.042,0,0,1,61.191,33.26,362.833,362.833,0,0,1,53.315,44.049,363.178,363.178,0,0,1,43.99,53.387,360.83,360.83,0,0,1,33.213,61.276A359.3,359.3,0,0,1-1586.118-519a363.948,363.948,0,0,1,7.317,72.7,363.957,363.957,0,0,1-7.317,72.7,359.333,359.333,0,0,1-20.992,67.714,360.95,360.95,0,0,1-33.213,61.277,363.233,363.233,0,0,1-43.99,53.388,362.833,362.833,0,0,1-53.315,44.049,360.017,360.017,0,0,1-61.191,33.259,358.108,358.108,0,0,1-67.622,21.02c-6.636,1.36-13.421,2.548-20.165,3.532Zm-79.831-365.056a27.049,27.049,0,0,1,27.038-27.059,27.048,27.048,0,0,1,27.037,27.059,27.049,27.049,0,0,1-27.037,27.06A27.05,27.05,0,0,1-1966.439-454.416Z",
|
|
@@ -1531,6 +1537,7 @@ const LogoDiscord = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
1531
1537
|
d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"
|
|
1532
1538
|
}, null, 3, null)
|
|
1533
1539
|
}, {
|
|
1540
|
+
fill: "currentColor",
|
|
1534
1541
|
height: _fnSignal((p0) => p0.width, [
|
|
1535
1542
|
props
|
|
1536
1543
|
], "p0.width"),
|
|
@@ -1606,12 +1613,13 @@ const LogoLuminescent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
1606
1613
|
d: "M 119.476562 -167.570312 C 90.671875 -133.253906 37.820312 -144.527344 30.308594 -109.710938 C 26.550781 -92.175781 39.074219 -75.644531 62.367188 -76.394531 C 67.878906 -77.398438 69.882812 -87.917969 66.628906 -90.671875 C 56.859375 -92.675781 55.855469 -99.691406 57.609375 -107.453125 C 62.117188 -125.988281 93.929688 -123.734375 113.96875 -147.28125 C 103.949219 -115.21875 96.933594 -78.902344 83.910156 -43.582031 C 59.363281 -58.863281 23.796875 -50.847656 21.542969 -27.050781 C 19.285156 -8.765625 32.8125 3.257812 55.355469 2.253906 C 72.386719 1.753906 80.902344 -4.007812 89.921875 -12.023438 C 112.464844 15.277344 138.261719 52.097656 181.347656 37.570312 C 188.609375 30.558594 183.347656 14.777344 177.085938 15.277344 C 147.28125 25.546875 132 1.253906 104.699219 -28.054688 C 119.476562 -56.105469 134.003906 -124.738281 148.53125 -167.320312 C 147.53125 -173.582031 124.488281 -177.339844 119.476562 -167.570312 Z M 46.339844 -28.804688 C 50.347656 -38.324219 68.128906 -36.570312 77.148438 -27.550781 C 72.890625 -20.789062 66.628906 -15.027344 57.359375 -15.027344 C 46.085938 -15.027344 43.332031 -22.792969 46.339844 -28.804688 Z M 46.339844 -28.804688 "
|
|
1607
1614
|
}, null, 3, null), 3, null), 3, null)
|
|
1608
1615
|
}, {
|
|
1616
|
+
fill: "currentColor",
|
|
1609
1617
|
height: _fnSignal((p0) => p0.width, [
|
|
1610
1618
|
props
|
|
1611
1619
|
], "p0.width"),
|
|
1612
1620
|
preserveAspectRatio: "xMidYMid meet",
|
|
1613
1621
|
version: "1.0",
|
|
1614
|
-
viewBox: "
|
|
1622
|
+
viewBox: "80 80 220 220",
|
|
1615
1623
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1616
1624
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1617
1625
|
zoomAndPan: "magnify"
|
|
@@ -1700,9 +1708,10 @@ const LogoLuminescentFull = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlined
|
|
|
1700
1708
|
}, null, 3, null), 3, null), 3, null)
|
|
1701
1709
|
]
|
|
1702
1710
|
}, {
|
|
1711
|
+
fill: "currentColor",
|
|
1703
1712
|
preserveAspectRatio: "xMidYMid meet",
|
|
1704
1713
|
version: "1.0",
|
|
1705
|
-
viewBox: "
|
|
1714
|
+
viewBox: "30 60 1160 200",
|
|
1706
1715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1707
1716
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1708
1717
|
zoomAndPan: "magnify"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PropsOf } from '@builder.io/qwik';
|
|
2
|
+
interface loadingIconProps extends Omit<PropsOf<'div'>, 'class'> {
|
|
3
|
+
class?: {
|
|
4
|
+
[key: string]: boolean;
|
|
5
|
+
};
|
|
6
|
+
width: number;
|
|
7
|
+
speed?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const LoadingIcon: import("@builder.io/qwik").Component<loadingIconProps>;
|
|
10
|
+
export {};
|
|
@@ -2,6 +2,7 @@ export * from './elements/Anchor';
|
|
|
2
2
|
export * from './elements/Button';
|
|
3
3
|
export * from './elements/Card';
|
|
4
4
|
export * from './elements/ColorInput';
|
|
5
|
+
export * from './elements/LoadingIcon';
|
|
5
6
|
export * from './elements/NumberInput';
|
|
6
7
|
export * from './elements/SelectInput';
|
|
7
8
|
export * from './elements/TextArea';
|
|
@@ -2,7 +2,6 @@ export * from './logos/Birdflop';
|
|
|
2
2
|
export * from './logos/Discord';
|
|
3
3
|
export * from './logos/Fabric';
|
|
4
4
|
export * from './logos/Forge';
|
|
5
|
-
export * from './logos/LoadingIcon';
|
|
6
5
|
export * from './logos/Luminescent';
|
|
7
6
|
export * from './logos/Paper';
|
|
8
7
|
export * from './logos/Pterodactyl';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@builder.io/qwik-city": "^1.4.5",
|
|
46
46
|
"@types/eslint": "^8.56.2",
|
|
47
47
|
"@types/node": "^20.11.19",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^7.0.
|
|
49
|
-
"@typescript-eslint/parser": "^7.0.
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
|
49
|
+
"@typescript-eslint/parser": "^7.0.2",
|
|
50
50
|
"autoprefixer": "^10.4.17",
|
|
51
51
|
"chart.js": "^4.4.1",
|
|
52
52
|
"eslint": "^8.56.0",
|